Skip to content

refactor(root): move profile registry, cloud, and telemetry owners - #1147

Open
ScriptedAlchemy wants to merge 6 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
grok/w1-small-owners
Open

refactor(root): move profile registry, cloud, and telemetry owners#1147
ScriptedAlchemy wants to merge 6 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
grok/w1-small-owners

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Child of #707 for #1073 (composition root). Three small leftovers move to their owners; root cloud.rs, profile_registry_maintenance glue, and runtime_telemetry.rs (197 lines) are gone.

  • refactor(global-db): exact-final profile-registry forget/gc/wipe helpers move into tracedecay-global-db as a type wrapping an already-admitted profile lease, so global-db never opens store-runtime. fix(cli): the CLI binary now declares store-runtime so the admit helper can open an existing profile lease.
  • refactor(cli): sync cloud version checks (ureq) move to tracedecay-cli; the composition root cannot depend on the CLI binary, so doctor takes admitted ureq probes and MCP looks up the implementations admitted at process start (tracedecay-dashboard-api/src/cloud.rs carries the shared shape).
  • refactor(runtime-core): the crate-private store telemetry collection pass moves to tracedecay-runtime-core::store_telemetry; MCP health handlers assemble the wire snapshot from kernel facts plus admitted census and registry projection values.

Remaining root leftovers are composition surfaces (doctor, dashboard, serve, runtime_ports) and the mcp/daemon owners covered by other child PRs. Touches mcp/server/{connection,ledger,lifecycle}.rs (also in #1135) for import/callsite lines only.

Verified locally per commit (check/clippy -D warnings on the touched crates, storage_suite global_registry_test / projects_forget_test, fmt, commitlint); merged #707 3473b1f92. Full matrix on CI.

Move exact-final forget/gc/wipe helpers out of the composition root.
The type wraps an already-admitted profile lease so global-db never
opens store-runtime.
The CLI binary did not declare store-runtime, so the admit helper
could not open an existing profile lease.
The composition root cannot depend on the CLI binary, so doctor
takes admitted ureq probes and MCP looks up the same implementations
admitted at process start.
Move the crate-private collection pass off the composition root.
Handlers assemble the wire snapshot from kernel facts plus admitted
census and registry projection values.
@changeset-bot

changeset-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 68d87f7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T09:40:21.461749Z a11c42a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a11c42a876

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

clru = "0.6"
hotpath.workspace = true
schemars = "1.2.1"
semver = "1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove semver from the former owner

With the version-comparison implementation and its semver import moved into tracedecay-dashboard-api, a repository-wide search finds no remaining semver usage under crates/tracedecay, but crates/tracedecay/Cargo.toml:363 still declares it as a direct dependency. Remove that stale declaration so the composition-root manifest reflects its actual crate boundary and does not retain an unused dependency after the cutover.

AGENTS.md reference: AGENTS.md:L113-L120

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Performance Comparison codex/tracedecay-total-redesign-plan-reopenedgrok/w1-small-owners

Total Elapsed Time: 4.15s → 3.90s (-6.1%)
CPU Baseline: 90.75µs → 89.98µs (-0.8%)
Benchmark ID: index-bench-timing

timing - Execution duration of functions.

+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| Function                                 | Calls                      | Avg                            | P95                             | Total                            | % Total                      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| tracedecay-index-bench                   | 1 → 1 (+0.0%)              | 4.15s → 3.90s (-6.0%)          | 4.15s → 3.90s (-6.0%)           | 4.15s → 3.90s (-6.0%)            | 100.00% → 100.00% (+0.0%)    |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.append_pages              | 13 → 13 (+0.0%)            | 131.39ms → 118.58ms (-9.7%)    | 180.22ms → 160.69ms (-10.8%)    | 1.71s → 1.54s (-9.9%)            | 41.13% → 39.51% (-3.9%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| code_index.workers.install               | 83 → 83 (+0.0%)            | 15.39ms → 13.14ms (-14.6%)     | 63.50ms → 45.91ms (-27.7%) 🚀   | 1.28s → 1.09s (-14.8%)           | 30.75% → 27.95% (-9.1%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| domain.canonical.sha256                  | 110414 → 110414 (+0.0%)    | 8.12µs → 8.39µs (+3.3%)        | 10.38µs → 10.47µs (+0.9%)       | 896.10ms → 926.09ms (+3.3%)      | 21.58% → 23.74% (+10.0%)     |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| code_index.build.and_publish             | 2 → 2 (+0.0%)              | 432.03ms → 445.48ms (+3.1%)    | 494.14ms → 520.09ms (+5.3%)     | 864.07ms → 890.95ms (+3.1%)      | 20.81% → 22.84% (+9.8%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.batch.sqlite              | 13 → 13 (+0.0%)            | 68.40ms → 67.93ms (-0.7%)      | 91.55ms → 90.57ms (-1.1%)       | 889.22ms → 883.09ms (-0.7%)      | 21.41% → 22.64% (+5.7%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.batch.postings            | 13 → 13 (+0.0%)            | 60.21ms → 59.94ms (-0.4%)      | 81.99ms → 81.00ms (-1.2%)       | 782.68ms → 779.19ms (-0.4%)      | 18.85% → 19.97% (+5.9%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.finalization.advance_wake | 14 → 14 (+0.0%)            | 46.09ms → 44.62ms (-3.2%)      | 273.68ms → 268.96ms (-1.7%)     | 645.23ms → 624.73ms (-3.2%)      | 15.54% → 16.01% (+3.0%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| code_index.chunk.index_file              | 276 → 276 (+0.0%)          | 1.92ms → 2.20ms (+14.6%)       | 2.82ms → 4.40ms (+56.0%) ⚠️     | 529.45ms → 608.18ms (+14.9%)     | 12.75% → 15.59% (+22.3%) ⚠️  |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| code_index.extract.parser_artifact       | 276 → 276 (+0.0%)          | 1.87ms → 2.03ms (+8.6%)        | 2.88ms → 3.23ms (+12.2%)        | 517.41ms → 559.31ms (+8.1%)      | 12.46% → 14.34% (+15.1%)     |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.prepare_pages             | 13 → 13 (+0.0%)            | 53.86ms → 41.86ms (-22.3%) 🚀  | 78.51ms → 60.98ms (-22.3%) 🚀   | 700.16ms → 544.17ms (-22.3%) 🚀  | 16.86% → 13.95% (-17.3%)     |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.batch.postings.ngram_rows | 13 → 13 (+0.0%)            | 33.56ms → 33.36ms (-0.6%)      | 45.84ms → 45.55ms (-0.6%)       | 436.22ms → 433.64ms (-0.6%)      | 10.50% → 11.12% (+5.9%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| query.artifact.batch.parallel_prepare    | 13 → 13 (+0.0%)            | 44.66ms → 32.88ms (-26.4%) 🚀  | 65.86ms → 48.10ms (-27.0%) 🚀   | 580.60ms → 427.40ms (-26.4%) 🚀  | 13.98% → 10.96% (-21.6%) 🚀  |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| code_index.build.assemble                | 2 → 2 (+0.0%)              | 202.57ms → 202.01ms (-0.3%)    | 212.60ms → 210.76ms (-0.9%)     | 405.14ms → 404.01ms (-0.3%)      | 9.75% → 10.36% (+6.3%)       |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+
| code_index.chunk.build                   | 276 → 276 (+0.0%)          | 1.21ms → 1.32ms (+9.1%)        | 1.72ms → 1.85ms (+7.6%)         | 333.78ms → 363.14ms (+8.8%)      | 8.04% → 9.31% (+15.8%)       |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+----------------------------------+------------------------------+

Generated with hotpath-rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant