Skip to content

refactor(lifecycle): move replay, PR git kernels, and query wait to owners - #1180

Merged
ScriptedAlchemy merged 15 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
grok/w2-branch-lifecycle
Sep 9, 2026
Merged

refactor(lifecycle): move replay, PR git kernels, and query wait to owners#1180
ScriptedAlchemy merged 15 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
grok/w2-branch-lifecycle

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Sep 9, 2026

Copy link
Copy Markdown
Owner

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.

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
@changeset-bot

changeset-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 077d45d

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-09T19:13:43.115058Z e4efc97 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: 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}");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@ScriptedAlchemy
ScriptedAlchemy merged commit 7781ee7 into codex/tracedecay-total-redesign-plan-reopened Sep 9, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Performance Comparison codex/tracedecay-total-redesign-plan-reopenedgrok/w2-branch-lifecycle

Total Elapsed Time: 4.18s → 4.04s (-3.3%)
CPU Baseline: 81.50µs → 83.70µs (+2.7%)
Benchmark ID: index-bench-timing

timing - Execution duration of functions.

+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| Function                                 | Calls                      | Avg                            | P95                             | Total                           | % Total                      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| tracedecay-index-bench                   | 1 → 1 (+0.0%)              | 4.18s → 4.04s (-3.3%)          | 4.18s → 4.04s (-3.3%)           | 4.18s → 4.04s (-3.3%)           | 100.00% → 100.00% (+0.0%)    |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.append_pages              | 13 → 13 (+0.0%)            | 130.86ms → 122.58ms (-6.3%)    | 189.27ms → 165.68ms (-12.5%)    | 1.70s → 1.59s (-6.5%)           | 40.74% → 39.47% (-3.1%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| code_index.workers.install               | 83 → 83 (+0.0%)            | 14.60ms → 14.16ms (-3.0%)      | 49.58ms → 47.74ms (-3.7%)       | 1.21s → 1.18s (-2.5%)           | 29.01% → 29.11% (+0.3%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| domain.canonical.sha256                  | 110414 → 110414 (+0.0%)    | 8.79µs → 9.45µs (+7.5%)        | 11.60µs → 12.75µs (+9.9%)       | 970.17ms → 1.04s (+7.2%)        | 23.24% → 25.84% (+11.2%)     |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| code_index.build.and_publish             | 2 → 2 (+0.0%)              | 467.62ms → 468.10ms (+0.1%)    | 538.97ms → 541.59ms (+0.5%)     | 935.24ms → 936.20ms (+0.1%)     | 22.40% → 23.19% (+3.5%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.sqlite              | 13 → 13 (+0.0%)            | 73.45ms → 70.16ms (-4.5%)      | 102.63ms → 93.19ms (-9.2%)      | 954.81ms → 912.02ms (-4.5%)     | 22.87% → 22.59% (-1.2%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.postings            | 13 → 13 (+0.0%)            | 64.22ms → 61.63ms (-4.0%)      | 89.65ms → 83.23ms (-7.2%)       | 834.82ms → 801.20ms (-4.0%)     | 19.99% → 19.85% (-0.7%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.finalization.advance_wake | 14 → 14 (+0.0%)            | 46.84ms → 45.51ms (-2.8%)      | 295.17ms → 280.49ms (-5.0%)     | 655.80ms → 637.10ms (-2.9%)     | 15.71% → 15.78% (+0.4%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| code_index.chunk.index_file              | 276 → 276 (+0.0%)          | 2.16ms → 2.26ms (+4.6%)        | 3.20ms → 3.30ms (+3.1%)         | 595.38ms → 624.23ms (+4.8%)     | 14.26% → 15.46% (+8.4%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| code_index.extract.parser_artifact       | 276 → 276 (+0.0%)          | 2.09ms → 2.07ms (-1.0%)        | 3.22ms → 3.17ms (-1.6%)         | 578.06ms → 570.90ms (-1.2%)     | 13.84% → 14.14% (+2.2%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.prepare_pages             | 13 → 13 (+0.0%)            | 47.96ms → 43.35ms (-9.6%)      | 73.53ms → 62.42ms (-15.1%)      | 623.51ms → 563.54ms (-9.6%)     | 14.93% → 13.96% (-6.5%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.postings.ngram_rows | 13 → 13 (+0.0%)            | 36.36ms → 34.68ms (-4.6%)      | 53.58ms → 47.68ms (-11.0%)      | 472.63ms → 450.80ms (-4.6%)     | 11.32% → 11.17% (-1.3%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.parallel_prepare    | 13 → 13 (+0.0%)            | 38.83ms → 34.20ms (-11.9%)     | 58.79ms → 49.32ms (-16.1%)      | 504.78ms → 444.66ms (-11.9%)    | 12.09% → 11.01% (-8.9%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| code_index.build.assemble                | 2 → 2 (+0.0%)              | 211.10ms → 208.59ms (-1.2%)    | 219.02ms → 215.61ms (-1.6%)     | 422.19ms → 417.17ms (-1.2%)     | 10.11% → 10.33% (+2.2%)      |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+
| code_index.chunk.build                   | 276 → 276 (+0.0%)          | 1.34ms → 1.41ms (+5.2%)        | 1.95ms → 2.03ms (+4.1%)         | 370.44ms → 388.72ms (+4.9%)     | 8.87% → 9.63% (+8.6%)        |
+------------------------------------------+----------------------------+--------------------------------+---------------------------------+---------------------------------+------------------------------+

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