refactor(lifecycle): move replay, PR git kernels, and query wait to owners - #1180
Conversation
Move admitted graph-query adapters, branch diagnostics, store-meta counters, and fact-owner identity into their owner crates so TraceDecay keeps handles and typed results instead of façade logic.
Move DashboardGraphTestRuntimeV1 out of the production dashboard module into a test-transport-only fixture so #1088 test runtimes do not ship in composition code.
The generation wait/retry kernel belongs with the scheduler owner; root keeps only the spawn onto the admitted project.
Activation still mounts the scheduler in the daemon; Git identity, leases, and teardown proofs now live with pr_tracking.
…plan-reopened' into grok/w2-facade-contraction
…plan-reopened' into grok/w2-branch-lifecycle # Conflicts: # Cargo.lock # crates/tracedecay/src/daemon/pr_autotrack.rs
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4efc97499
ℹ️ 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".
| for (key, value) in fields { | ||
| let _ = write!(extras, " {key}={value}"); | ||
| } | ||
| tracing::info!("{event}{extras}"); |
There was a problem hiding this comment.
Preserve default visibility of replay failures
When the daemon runs without an explicit RUST_LOG, the CLI installs a WARN-level tracing subscriber, so routing the former unconditional log_daemon_event calls through this tracing::info! helper suppresses non-retryable bootstrap and replay-stop reason codes. In particular, ReplayPassDecision::Stop terminates the asynchronous worker without returning a typed error, and wait_idle can subsequently report success, leaving no default-visible indication of the failure; emit the failure receipts at an appropriate default-visible tracing level.
AGENTS.md reference: AGENTS.md:L108-L112
Useful? React with 👍 / 👎.
…cade-claim-clarity # Conflicts: # crates/tracedecay/src/dashboard.rs
refactor(root): contract the TraceDecay facade onto owner crates
…80-lifecycle-correction
7781ee7
into
codex/tracedecay-total-redesign-plan-reopened
Performance Comparison
|
Move remaining worktree adapters, profile replay, and deferred query waiting into their existing owner crates. Preserve the root-installed Hermes admission callback, exact branch/source boundaries, and existing cancellation behavior.
The corrected head keeps terminal replay failures visible under the default WARN filter and keeps three internal Git helpers private. Actual root bootstrap/WARN and Hermes durable admission/receipt regressions pass (cc-12963/12964, two tests). Strict owner-crate Clippy passes with zero warnings/errors (cc-12966); independent review is clear.