Repository navigation
perf(sessions): publish transcript projections off thread - #154069
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 25, 2026, 1:25 PM ET / 17:25 UTC (Revision 40). ClawSweeper reviewWhat this changesMoves transcript search-index publication and startup deletion-journal reads into existing SQLite workers, while preserving session event and read authority across asynchronous work. Merge readiness⛔ Blocked before merge - 2 items remain Current main still performs transcript projection writes on the Gateway thread, so this PR retains a distinct useful change. The reviewed source and supplied proof establish no actionable defect in the current head. Priority: P2 Review scores
Verification
How this fits togetherSession transcripts feed SQLite projections used by search, session reads, and Gateway events. Reconciliation prepares transcript facts, publishes derived rows, then notifies readers after commit. flowchart LR
A[Transcript changes] --> B[Reconciliation planner]
B --> C[Read worker checks readiness]
B --> D[Agent database worker publishes rows]
D --> E[Committed session notification]
E --> F[Gateway reads and events]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep transcript projection writes and readiness reads with their existing worker owners, with source-bound admission and post-commit notification through database retirement. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source shows the synchronous projection write path, and the PR supplies a focused Gateway/SQLite proof path; I did not execute code during this read-only review. Is this the best way to solve the issue? Yes. The branch moves publication and readiness work to their existing SQLite worker owners and retains current-source checks at the affected read and notification boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e124d77e00fa. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (39 earlier review cycles; latest 8 shown)
|
c081523 to
cd92e10
Compare
cd92e10 to
30a49b6
Compare
Keep the hydration input private to its shared worker union owner while retaining the externally consumed SQLite target input export. This clears the unused-export finding without changing emitted runtime code.
Preserve current sharing projections, membership facts, database identity checks, and incognito ownership while retaining the canonical metadata-unavailable error import. Hydration feature changes remain identical to the prior qualified source.
Route the canonical row-facts operation through the extracted history reader owner, preserving the 64-key bound and captured inputs. Retain hydration cancellation, database custody, and worker retirement while incorporating current main types, dispatch, and snapshot reads.
Move deferred projection writes and readiness reads onto the existing worker owners while preserving compressed transcript bytes, navigation, and FTS identity maintenance. Join the exact in-progress database close before readiness re-admission. Preserve finalized receipts when retirement prevents a new orphan sweep; the next preflight still repairs derived orphan rows. Validation: 73 focused cases, 16 current-main composition cases, causal SQL control, complete supported lint stripes and selected guards, current union types, and independent P0-P2 feature and lint-delta reviews.
1022fe7 to
05d69cf
Compare
Transfer canonical transcript chunks through the existing history worker while retaining one read-only snapshot and complete caller-side results. Preserve SQLite text encodings, BOM errors, cancellation, current-owner checks, and native cleanup without raising the worker heap limit.
Carry the reviewed snapshot-streaming hydration repair onto main 41f119, including canonical payload projections and the shared queued-authority, MCP fixture-cache, and Doctor ownership fixes. The current union passes 73 selected cases, owning types and typed lint, a fresh P0-P2 integration review, and the same 640 MiB actual-worker regression with the unchanged 512 MiB worker limit.
Carry the admitted database environment through post-commit publication. Register the projection worker protocol and route its test consumers through the host broker. Synchronize cancellation and planner fixtures with the real projection task and completed reconciliation owner.
Model interactive admission and the canonical streaming result in the existing quarantine error fixture, preserving its cleanup and retirement assertions. Remove a redundant unknown-alias assertion from the reader; emitted production JavaScript is unchanged. The complete 21-case worker error file, assertion ratchet, owning types, scoped lint, and fresh P0-P2 review pass.
Preserve the reviewed projection delta while integrating the current hydration stream and its complete-array, snapshot, and cancellation contracts. Current streaming, worker-error, readiness, and compressed publication cases plus union types and scoped lint pass.
Compose canonical #158139 (52fc3da) with the qualified #158113 catalog correction. Preserve captured alias normalization only for outcome filtering, original hook scope, explicit outcome authority, and single evaluation of accepted legacy projections. Clarify the legacy omitted-outcome compatibility exception in the combined documentation. All 16 alias/legacy controls, core and owning types, lint/formatting, both cycle guards and managed P2 review pass.
Merge fixed main52fc3daa84f71b15a052f7bd60caa7096ed5b31a to resolve the actual shared catalog-owner conflict. Preserve both captured alias filtering and qualified legacy discovery provenance, plus all original Projection authority and finalization semantics. The exact union passed fresh managed P2 review; independent incoming-contract review found no actionable issue. All77 composition cases and the additional shared-pressure/model-policy/pending-input cohort pass, alongside core and five affected test type projects, scoped lint/formatting and the current-base ratchet. Normal frozen installation and full installed lock parity are verified; unchanged source-bound proof is retained.
Restore all 43 differing detour paths to canonical main52fc3daa84f71b15a052f7bd60caa7096ed5b31a, as verified against the canonical reversal manifest. Preserve the Projection implementation, strict36def retention consumer, canonical alias scope, and #158115 validated HTTP-success fixture correction. The separate legacy-retention repair is not imported. Validation: 45 native-worker/catalog-builder cases pass; the original discovery lifecycle and credential-free full-refresh cases pass. Core and three owning type projects, scoped lint/formatting, both cycle guards and managed P2 review pass. The longer native Gateway tour reached its final proof marker then hit its unchanged120-second deadline during cleanup, followed by one shutdown cascade; that gap is retained without a retry or deadline change. Current-head CI and installed-upgrade proof remain required.
Compose the exact qualified nine-file shutdown correction from #158047 at541451990b7395eb25c449f0f3a4d4106004e601. Retain cancellation before bootstrap and join the shared prelude only after admitted Gateway owners fence new work. Preserve main's heartbeat-before-cron ordering and all original Projection publication/authority semantics. Validation: all19 held-acquisition and metadata lifecycle cases pass in this composition; core plus four owning test type projects, scoped lint/formatting, both cycle guards and fresh managed P2 review pass. Supplier real SIGTERM and import-fault proof retains its original source binding. The earlier native-tour cleanup timeout remains unattributed and was not rerun or relabeled; installed-upgrade proof and final exact-head CI remain pending.
Resolve the actual duplicate-extraction conflict by adopting canonical main's registry dispatcher postimage. The existing admitted constant supplies the same primitive ok/sourceAdmitted fields to each fresh reply; commands, kernel calls, arguments and admission behavior are unchanged. All11 owning native sandbox read cases, core types, lint/formatting and fresh managed P2 review pass. Prior724 hosted CI and installed-upgrade proof retain their applicable source and contract bindings; no broad main carry or dependency change.
|
Merged via squash.
|
What Problem This Solves
Deferred transcript rebuilds prepare history in a worker but still perform publication SQL on the Gateway thread. Startup admission and session-row topology also repeatedly read the deletion journal there. Asynchronous preparation additionally exposed ordering and invalidation gaps in event delivery and foreground row reads.
User Impact
Moves transcript projection publication and the observed startup journal reads to their existing workers while preserving transcript bytes, branches, FTS identities, sibling sessions, and state-directory scope. Pending reads retain subscriptions but deliver only when their original source, request authority, configuration, and prepared facts are current. Foreground row reads can complete without draining the full roster.
Why This Change Was Made
The canonical agent worker owns bounded projection writes; the shared history worker owns readiness reads. Post-commit publication retains its admitted database scope. Waiters join the exact database close before re-admission. Shutdown cancels work attached to a retiring owner, leaving durable dirty watermarks for explicit readiness or fresh repair after close. Successful publication keeps its receipt when retirement prevents a later orphan sweep; unfinished writes and native cleanup failures still fail.
Startup requests carry their captured preparation-journal requirement. If a deletion commits while an asynchronous snapshot reply is in flight, the existing store-fact owner invalidates that reply before runtime handoff; startup re-reads under its original captured authority. Ordinary requests avoid the lookup; preparation requests recheck original authority before effects. The existing state reader supplies typed journal status and one transactional deletion/registration snapshot. Topology prepares that snapshot asynchronously and threads the same facts through combined-store and scope selection. Source replacement, identity mutation, disposal, configuration changes, and cancellation invalidate captured work. The SQL-zero claim covers observed parent-thread journal reads at the real Gateway startup entry point, not all startup SQL.
The existing projection owner observes identity changes across preparation and retains bounded foreground preparation demand. Event and marker callers preserve their original source and incarnation. Transparent adapters forward the original worker attachment. The fixed-main composition preserves committed policy configuration, current read authority, historical eviction, bounded purge, cleanup, and routing contracts. This changes no schema, retention, permissions, or configuration options.
Pure physical-target discovery can refresh its registry facts once when a concurrent registration invalidates a completed read. The refresh keeps the original captured source admission. Source retirement, cancellation, worker failures, and repeated registry churn remain terminal; session creation and mutations are never replayed.
Pending event observations now survive unrelated store registration while retaining their original configuration and physical candidates. Replacement files, matching identity mutations, configuration changes, and disposal still invalidate them.
The cold-read composition uses the canonical prepared resolver and subscription reader. Authorized private-session PR targets retain native generation, session incarnation, and prepared source facts rather than transient Row object identity. Subsequent use rechecks the original reader, projection, physical source, and repository context; private rows never enter the resident roster.
A healthy background integrity confirmation can retire a shared-state read admission while the Gateway remains active. Each new topology attempt can now obtain a fresh read admission for the same captured physical database under the original owner scopes. Prior replies stay revoked. Bulk refresh can finish bounded already-accepted exact-row facts while a page remains pinned, while new worker reads still yield to foreground preparation.
Evidence
The current head
4475dcf83e10adds failure-only phase timestamps and fixed mocked-endpoint counts to the existing first-sign-in diagnostic. It changes no production code, test assertions, request order, mock response or deadline. Owning Gateway test types, formatting/lint and managed P0–P2 review pass. An exact failed-merge replay with temporary observations passed 66 cases / one Windows-only skip locally: sign-in took 40.24 seconds, including 29.16 seconds of Gateway startup; all five wizard waits settled. The temporary wizard interception was removed. This macOS replay does not reproduce or explain the earlier Linux CI timeout; Current-head CI 36166233840 now passes with 157 successful jobs / 18 scope skips. The previously failing first-sign-in case passes in 38.687 seconds on tested mergeb03fd9b6(this head intoe124d77e00fa). The earlier timeout remains unexplained, rather than claimed as a causal fix. The installed-upgrade proof retains its original724919source binding and unchanged runtime contract.The final conflict resolution adopts one exact canonical-main file: sandbox read replies use the existing
admittedconstant instead of repeating its two boolean fields. Commands, kernel calls, arguments, returned values and admission are unchanged; each reply is still a fresh object. All 11 owning native read cases, core types, lint/formatting and fresh managed P0–P2 review pass, and the complete merge preview against fixedf4151933is clean. This changes no dependency, updater, storage or shutdown contract. The installed-upgrade result below remains applicable with its original724919binding; the precedinge209head's CI did not complete successfully. Run 36161699666 recorded 120 successful jobs, 18 skips and 35 cancellations after one workload failed: the existing first device-sign-in integration case reached its unchanged 90-second deadline inwizard-next, before any wizard step returned. Its telemetry records one mocked request without its URL; the pending stage and cause are not yet established. The same case passed in 45.25 seconds in the preceding green run. Cancelled contexts are incomplete evidence, not additional product failures. The bounded exact-merge diagnosis above preserves this uncertainty; no timeout or assertion was changed.The unlanded catalog inference detour from #158113 has been removed. All 44 affected paths now match canonical
52fc3daa, including the existing explicit-outcome contract, SDK/static behavior and original test owners. This PR retains no inferred publicreadyoutcome change. Its original hosted catalog failure was already fixed by #158115,d5d4952: real HTTP fixture successes now report validated discovery and account provenance. Those lifecycle/freshness fixture bytes and canonical alias-scoping behavior remain intact.The worker/Projection implementation and its original authority, finalization, performance and negative-control evidence are preserved. The separate shipped-legacy retention repair is not included or treated as a prerequisite. The catalog detour's green tests did not establish its shipped compatibility; those results remain historical below. Its head
1db25fb05848CI and build runs were deliberately canceled after the new contract finding, with no merge request submitted.The unchanged runtime candidate passes the unchanged native worker regression and 44 catalog-builder cases. The actual discovery-lifecycle case passes in 24.52 seconds, and the credential-free full-refresh case passes in 36.47 seconds. Core and three owning test-type projects, scoped formatting/lint, both cycle guards and fresh managed P0–P2 review pass. The 43-path reversal matches the canonical owner's manifest, and all other feature paths remain unchanged.
The broader native Gateway tour did not pass: its no-provider-credentials case emitted the final proof marker after the last body readback, then hit its unchanged 120-second deadline during cleanup. The next case refused the still-closing plugin metadata owner. The specific pending cleanup await and cause remain unproven; the tested close path matched canonical
52fc. The reached shutdown dependency is now corrected as described below; this does not establish the timeout's historical cause. No unchanged tour retry, deadline increase or metadata-fence bypass was used. The focused worker pass does not relabel this failure.The reached shutdown dependency composes the exact qualified nine-file correction from #158047, commit
541451990b73. Cancellation is retained before bootstrap, shared only after admitted Gateway owners fence new work, and joined before reload and final teardown. Main's heartbeat-before-cron ordering is preserved. All 19 held-acquisition and metadata lifecycle cases pass in this composition, with core and four owning test-type projects, scoped lint/formatting, both cycle guards and fresh managed P0–P2 review clean. The supplier's real SIGTERM and import-fault proof retains its original binding; it is not presented as installed proof for this distinct candidate. The failed native tour was not retried or relabeled.The preceding qualified
724919CI run 36154146798 succeeded with 157 successful jobs and 18 skips, including build artifacts.The required published-updater cell also passed on
724919, before the equivalent registry-reply simplification below: one attempt, 1,004 seconds, no timeout or recovery path, cleanup joined. It installed published[email protected](eb377ac), authored existing operator state with that baseline, and ran its updater into the tarball built from724919c0d566. The update result records the distinct before/after build identities despite the same package version. Automatic migration and candidate-schema checks, baseline-authored cron/approval/plugin state, candidate serving, the next update's no-op check, Doctor cleanup, and backup/rollback with verified raw transcript restoration passed. The restored baseline session remains readable. Gateway startup took 34 seconds, health/readiness probes 1 second each, and status 2 seconds.This was the maintained
legacy-operator-statemanual-restart scenario; it does not claim automatic service restart with held model acquisition. The optional first-hop post-core exit snapshot was unavailable, so no private subphase outcome is inferred from it. The updater result, exact candidate identity, state assertions, startup and serving outcomes were observed directly. This closes the installed-upgrade coverage gap identified by current-head ClawSweeper revision 35; the separate historical local cleanup timeout remains recorded above.Previous integration proof, catalog detour and preserved source-bound history
The following records retain their original source bindings. In particular, the inferred-ready catalog integration described here was subsequently removed; it is not a current design or a compatibility claim.
The actual later catalog conflict is resolved by one fixed carry of canonical
52fc3daa(#158139). Its captured alias normalizer filters outcome scope while hooks retain their original request scope; the qualified legacy projection is still evaluated only once. The combined docs distinguish legacy omitted outcomes from explicit non-discovery arrays. The forward merge preview against168d454dis clean.This composition passes 101 cases across ten affected owner/sibling files, covering canonical path identity, row projection, worker pressure retirement, committed publication before close, alias/legacy outcomes, operator model policy and pending-input names. Core and five owning test-type projects, scoped formatting/lint, whitespace and the current-base line-cap check pass. The catalog union has fresh managed P0–P2 review; an independent bounded audit of the 18 feature overlaps found no composition defect. All other feature paths remain byte-identical. The normal frozen install and full 185-importer installed-lock parity pass; the only dependency-lock changes add four links to the already-pinned filesystem package. No unchanged full local build or broad runtime suite was repeated.
Candidate
1db25fb05848is locally qualified; its new exact-head hosted CI is pending. The catalog failure from the previous hosted run is addressed by the qualified canonical correction from #158113, composed through4f1acb78. Legacy successful catalog results now record discovery provenance; bundled static/advisory results explicitly remain non-discovery. The existing strict retention rule from36def8bstays intact. Generated default-static SDK catalogs follow the same contract, and their test-loader type lives in a cycle-free leaf with the same public type export. No dependency, schema, request-authority, assertion or deadline change was introduced.Composition proof passes 37 strict owner/boundary cases, 123 affected provider/auth cases, and the final 18-case generated-provider owner file. These selections overlap supplier coverage and are not additive proof totals. Core, affected test and extension type projects, formatting, scoped lint, line caps, both maintained cycle guards and fresh managed P0–P2 reviews pass. Exact matching supplier proof is reused for the four Gateway freshness cases and the static/advisory sibling cohorts, with its source/dependency/environment bindings retained. The preliminary 762-case original-order replay predates the strict consumer carry and is not presented as final integration proof. The final current-head hosted run and native replacement gates remain required. The latest completed ClawSweeper review of prior head
c5b3ef0dde12found no actionable code/security issue and accepted the real finalizer proof, but identified a separate published-updater startup coverage gap. A bounded published2026.9.6updater-to-candidate cell using isolated baseline-authored state is being prepared; no completed upgrade result is claimed.The previous hosted run 36134910626 remains recorded as canceled after
models-list.discovery-lifecycle.integration.test.ts:187lost prior learned rows during unavailable-provider refresh: 64 jobs succeeded, 18 skipped and 92 canceled, with the catalog workload and aggregate gate failing. Build artifacts succeeded; 757 other Gateway assertions and the preceding 3,806 UI assertions passed. Canceled jobs are not counted as passing proof.A separate actual conflict with fixed main
3d1dcd99was two insertions at the beginning of the same worker byte-accounting function. This branch relocates its two mutually exclusive journal/snapshot clauses without changing any formula, command or authority. Main's cron clause can then merge unchanged. All 35 worker-owner cases, core types, lint/formatting and the narrow managed P0–P2 review pass. Exact clause parity and the complete merge preview against that fixed main are clean. No broad main carry or dependency reconciliation was needed.A later one-file fixture collision with canonical
88e2ebefis resolved without importing another main tree. The precise-plan assertions now use main's matching full runtime template and explicitly reject deferred runtime files; the dedicated UI comparison retains its original changed-path context. Every environment, worker, runner, concurrency and coverage assertion remains. The owning case passes (58.41 seconds wrapper wall), root-test types/lint/formatting pass, and the focused managed P0–P2 review is clean. The exact file union and full merge preview against88e2ebefare conflict-free.The preceding production correction after the qualified
d2b3c2d4595eintegration was the exact one-file canonical correction from #158071, commit488ce1e590dc. Its proxy file, pinned-config owner, synchronous fallback and one-shot tests matched the canonical preimage. On this updated branch, all 73 owning CLI cases pass, along with core/config-CLI types, scoped lint/formatting and a fresh managed P0–P2 review. The CLI carry changes no assertions, deadlines, loaders, dependencies or Projection code. The full merge preview against488ce1eis clean; prior worker/finalizer evidence keeps its valid source binding.The current candidate retains the
c5b3ef0dde12composition of fixed canonical maina68216889f19, the earliest main commit needed to resolve the actual worker conflict. It retains main's logical session-entry worker and opening-refusal provenance while preserving this PR's original request attachment and startup-journal checks. The integration forwards the captured attachment through the new reader and uses one canonical registry-change error class. No mutation or dispatched read is replayed. A subsequent canonical test extraction inabde4d46moved the corrected planner case into its integration-test owner. The resolution preserves the exact case semantics and main's routing, removes its old location, and changes no native/session production code. All four cases in the canonical integration file pass (104.04 seconds wrapper wall), along with scripts/root-test types, scoped lint/formatting and the line-cap check. Independent semantic parity inspection and the final two-pass managed P0–P2 review are clean. The full merge preview against observed main34e8976ais conflict-free. The normal frozen install reconciles main's transitive TypeScript 5.9.3 tooling dependency; the production compiler remains TypeScript 7.0.2, and the full installed dependency lock matches source.The changed-owner cohort passes 104 assertions across nine files, including registration failure transport, original logical/physical/caller custody, source-retirement controls, startup-journal invalidation, restart recovery, and committed finalization before physical replacement. Core, four owning test type projects, root-test types, scoped lint/formatting, whitespace, and both ratchets pass. Both affected planner cases and all ten upgrade-survivor baseline-order cases pass on this composition. The completed eight-pass managed P0–P2 review found no Projection integration defect. It reported one inherited main issue in Doctor's duplicate systemd-alias cleanup; the affected source is identical to canonical main and the finding was handed to its existing service owner. The raw finding and disposition remain retained; this is not a claim that the entire main delta is finding-free.
Canonical archive bootstrap
a759f770, collector cancellationd65bc76d, and portal #157943 remain included. The alternate scheduler-hold proposal is not included. Earlier source-bound proof is retained below; final current-head hosted build/CI and native replacement recovery remain required.The remaining final-effect proof is now covered by the real publication/reconciliation test. It holds the actual successful worker finalizer reply before host delivery, confirms committed original SQLite rows and no notification, and begins canonical async close with physical replacement chained after close. Releasing delivery produces exactly
committed → notification → closed → replaced: the notification observes the original inode and committed projection, close joins it, and the distinct successor contains only its own transcript and FTS rows. No native result or admission is fabricated. This complements the existing accepted commit-grant retirement control.Redacted terminal result from the normal maintained runner:
The complete publication file took 85.48 seconds wrapper wall, including compilation; the new case took 1.766 seconds. Owning types, lint/format, both ratchets, independent test-value audit and managed P0–P2 review pass. Production code is unchanged.
The preceding
b511801chosted run finished with 155 successful jobs, including distribution and runtime proof, and one failed tooling workload. Its UI-planner assertion compared precise template capacity with a differently rebalanced complete plan; the corrected fixture uses each branch's canonical producer and preserves all coverage, environment, runner, concurrency, fallback and memory assertions. The original mismatch and the insufficient changed-path-only adjustment both reproduced; the proper reference passes in 59.79 seconds wrapper wall, with types/lint and P2 review clean. The other two failures were missingbaseline_versionsetup in an unrelated upgrade-survivor fixture, independently fixed on main by6f51289a; that canonical repair is now included in the fixed-main composition.The preceding
d2b3c2d4595ehosted run 36115316189 finished with 157 successful jobs and 18 skips, with one failed workload plus the aggregate gate. The failed CLI partition passed 445 assertions and skipped eight, but three real proxy-exit children hit their unchanged 30-second deadline. The historical timeout cause remains unattributed. Unmodified exact mergeda3a8f44subsequently passed the original 16-file Linux group (448 assertions, eight skips); different hardware, memory and observation conditions limit that comparison. Identical direct CLI files do not rule out effects from changed transitive config/state inputs. Separately, profiling established an unnecessary eager config import: canonical #158071 reduced the measured cold lazy phase from 14.887 to 3.969 seconds using the existing pinned-config owner and the same guarded synchronous fallback. That improvement is not proof of the earlier timeout cause. No assertion, deadline or loader was changed; the canonical correction is now included and locally qualified; current-head CI remains required.Remaining before landing: complete the new source's exact-head CI and native completed-evidence replacement recovery/merge gates. The historical timeout remains unattributed and is not relabeled a flake or a proven Projection-independent failure. The earlier auto-merge request remains confirmed canceled. Prior build and compiled-authority results retain their source bindings; no unchanged full local build was repeated.
Retained prior-head proof and CI outcomes
Current candidate
3872465e8f09composes fixed mainb1b0b487f7c1and the canonical CI repair818b0092d2eeby @joshavant. The actual fixture conflicts preserve main's retired filesystem facade, both maintenance observers, and the lifecycle-removal case in its existing focused owner. The chat fixture retains its fresh store and captures the returned path before awaiting. Four existing sandbox read branches now use the existing registry dispatcher, retaining the same admitted database, kernels, reply fields and outer cleanup/error handling.cb3e6df65676, retaining the stronger coalescing check and exact routing membership; its 238 planner, schema-fixture and wrapper cases, types, lint and focused P0–P2 review pass. The complete merge preview against the inspected current main is clean and contains no duplicate native route entries.The preceding exact-head
eeb553798fa9CI run completed with 155 successful jobs, including the distribution build, runtime suites and type checks. Its two failed workload guards were caused by main's extracted config-RPC fixture; canonical818b0092moves that fixture into the test-helper directory and fixes both without growing the suppression inventory. The optional typed-helper refactor in #157859 was closed unmerged and deferred, rather than being claimed as landed.The earlier
38491caefdf3local ordinary build, nine compiled authority cases and five Visitor Access cases retain their exact source bindings. They are not relabeled as a build of the current composition.Current-head CI run 36095045209 completed with 153 successful jobs, 17 skips, and three failed workloads plus the aggregate gate: archive-worker static closure, queued native cancellation publication, and authenticated portal streaming. The archive defect is fixed on main by
a759f770; that repair is not yet composed into this head. The cancellation and portal repairs remain separately owned and under qualification. No failure is classified as a flake or cleared by a passing replay.Remaining before landing: integration and qualification of the required canonical repairs, passing exact-head CI, and native completed-evidence replacement recovery/merge gates. The earlier auto-merge request remains confirmed canceled. Historical failures and cleanup-only wrapper exits remain recorded separately from subsequent proof.
Retained 38491 build, caller proof, and earlier history
These results retain their original source bindings and outcomes.
Candidate
38491caefdf3resolves the actual conflicts with fixed maind9a69464657d, preserving the canonical cold-read owners from #156121. Superseded caller waiting loops and the old parallel PR-reader interface are removed.The ordinary full distribution build passes on this exact head, including declarations, SDK exports, plugin output, 53 native module-loading checks, UI, and build metadata. The complete nine-case compiled plugin-state authority file and five-case Visitor Access file pass through the normal runtime runner (157.29 seconds including preparation). The existing build checkout was reconciled with the normal frozen install; source and full lockfile readbacks are clean.
Remaining before landing: exact-head CI and native completed-evidence replacement recovery/merge gates. The canceled earlier auto-merge intent remains retired.
Retained 30140 composition and earlier proof history
These results retain their original source bindings and do not replace the current head's remaining checks.
Candidate
30140c229912incorporates fixed main8de617b5499b. The actual agent-worker conflict is resolved by retaining both request attachments and main's trajectory/initialization commit receipts. Newly added adapters forward the original attachment.Remaining before landing: the current ordinary distribution build, nine compiled plugin-state authority cases, the runtime-required visitor-access test, exact-head CI, and native recovery/merge gates. The existing dependency graph was reconciled normally for main's added declaration of an already-pinned package.
The 55-assertion topology/lifecycle run exited 1 afterward while replacing its old compiler cache: only metadata files remained. After all work joined and the exact namespace had no holders, scoped cleanup completed. The original wrapper exit remains recorded separately from the passing assertions.
Retained prior-head proof and failure history
These records preserve their original source bindings and outcomes, including failed checks and accepted-request retirement. They do not substitute for pending current-head checks.
Candidate
03e87bd6fd0fretains the fixed-main composition and adds the verified CI corrections.The preceding exact-head full build and nine compiled authority cases passed. The updated distribution build, compiled authority confirmation, exact-head CI, and native recovery/merge gates remain pending for this candidate. The dependency graph and lockfile are unchanged. The earlier auto-merge request was retired before publishing these corrections.
Retained prior-head proof and failure history
The following evidence retains its original source binding and outcome; it does not substitute for pending current-head checks.
Candidate
82e67eff6da5incorporates fixed maineee3bdf9c4e7. The latest conflict was a test-owner inventory insertion. Both memberships and watch ownership are preserved; this PR's unchanged entries are placed away from the shared prepend location.The ordinary full build passes on this exact head in 14m 25.4s, including SDK declarations and exports, plugin output, 53 native module-loading checks, UI, and build metadata. The complete nine-case built plugin-state authority file also passes through the normal runner (48.27s including runtime and worker preparation). Both source and lockfile readbacks are clean. The existing dedicated physical checkout uses the normal frozen dependency graph; no dependency change, cache deletion, skip flag, or declaration-guard bypass was introduced.
Still required before landing: exact-head CI and native merge gates.
Retained preceding candidate proof and failure history
These records retain their original source bindings and outcomes. They do not claim that the current candidate's pending checks have passed.
Candidate
d834d2b03683incorporates fixed main59c02b8cb7a6. The actual conflict was adjacent imports in the invalidation suite; both contracts are retained. Main's attribution/participant commands, retained row facts, and error transport remain intact.Current build status: the ordinary cached full build and the complete nine-case built plugin-state authority file are being qualified for this new source. The preceding candidate's full build and built tests passed, but are retained as prior-head evidence because main changed error serialization and worker artifacts. No cache deletion, dependency change, build skip, or guard bypass is part of this carry.
Still required before landing: completion of the current distribution/built authority proof, exact-head CI, and native merge gates.
Retained preceding candidate proof and failure history
The following records retain their original source bindings and outcomes. They do not claim that the new candidate's pending checks have passed.
Candidate
fccd3c00bc94incorporates fixed main1bbd578b463d.The ordinary full distribution build passes on this exact commit (22m 13.7s), including cold declarations, SDK exports, 95 plugins, native module-loading checks, UI, and build metadata. The complete nine-case plugin-state authority file also passes against those built artifacts through the normal runner (149.44s, including runtime preparation). The dedicated physical checkout uses the same source and lockfile with a normal frozen installation; source readback is clean. These nine cases are separate from the 454 selected source assertions above.
Required before landing: exact-head CI and native merge gates. Local proof does not replace them.
Current failure history: the first performance run reported 263/192 ms without forbidden reads. A temporary timing probe found substantial wall-time versus thread-CPU gaps under heavy host load; it passed without a production change. The original uninstrumented eight-file order then passed all 109 cases. These observations do not prove the exact cause of the first timing failure, and its result remains retained.
The two companion authority assertions passed, but their wrapper exited 1 during final generated-directory removal. After all work joined, inspection found only an owned metadata file in that exact generation; the maintained removal operation completed separately. The original exit is not rewritten and the assertions were not replayed.
The first full-build attempt refused an existing ancestor dependency directory during native declaration lookup. The documented physical-checkout isolation route preserves the same source, lockfile, normal installation, and declaration guard; no dependency link or guard bypass was introduced.
Before the final main carry, the startup freshness repair passed the complete 54-case startup cohort, including the real delayed-deletion-reply regression. Its original stale-handoff control failed for the intended reason. This retained proof is source-scoped and overlaps current snapshot coverage; it is not added to the 454-case count.
Retained prior-head proof and failure history
The following records describe their original candidates. They are retained history, not current-head pass claims.
Candidate
9462953bc02acomposes fixed main4ab8c58fbe59. Exact-head CI remains required before landing.needs_rebuild, and retiring scheduler ownership is removed before close completes. Automatic reopening would change the existing close contract. There are zero accepted actionable findings; the raw review is retained as findings.The ordinary full distribution build passes on this exact commit (10 minutes), including cold declarations, SDK exports, 95 plugin builds, UI, and build metadata. The complete nine-case plugin-state authority file also passes against those built artifacts (23.47 seconds). Both process groups, source/dependency readback, and allocation accounting settled successfully; the working tree is clean. These nine cases are separate from the 79 focused cases above.
Required before landing: exact-head CI and native merge gates. Local proof does not replace them.
Current failure history: the first Gateway run had five passing and seven failing cases. Diagnostic tracing established a subprocess Unix-socket path of 138 bytes against the platform's 104-byte limit. A shorter task-owned temporary directory made the original 12-case order pass without product, assertion, or deadline changes. The first earlier pending-status mismatch remains unproven. The interrupted diagnostic had no durable native-exit receipt; its outcome remains unknown and its full reservation was permanently charged. Prior proof and resource failures remain historical evidence, not retroactive passes.
Retained historical proof, unresolved failures, and limitations
These runs retain their original source bindings and do not qualify the final candidate by themselves. The pre-carry startup/topology/snapshot selection passed 48 cases; the final affected caller selection passed 121 cases with 32 unchanged caller cases retained. The preceding fixed-main composition passed 127 cases. Repeated runs and overlapping selections are not additional coverage.
Reader-fixture follow-up: CI run 35790856736 reported an active-branch projection still rebuilding after its scheduled-work join. The original 16-case file and original 63-file selection passed locally (1,006 executed cases, two platform skips), so the historical CI cause remains unproven. A separate real-planner control demonstrated that the old fixture deleted its inputs before native cleanup finished and then correctly hit a database-identity refusal. The suite now uses the existing scoped state fixture, which drains work and closes native owners before restoring environment selectors and removing files. The same held-acknowledgement control passes, all 16 original cases pass (31.8 seconds through the maintained wrapper), and fresh P0–P2 review passes. Test bodies, assertions, deadlines, and production readiness behavior are unchanged.
Follow-up cancellation repair: the new asynchronous projection-status read could reject with a raw abort reason, unlike the established polling
AbortErrorwhose cause is that reason. The waiter now restores that shape only for its own signal reason, after the read and execution release settle. Other read, timer, and cleanup errors pass through unchanged. CI run 35788683880 captured this mismatch at the real embedded-session boundary. A deterministic queued-read control fails before the fix and passes afterward; all 28 original boundary cases and four readiness cases pass (145.9 seconds through the maintained wrapper). The original caller assertions and deadlines remain unchanged. Independent P0–P2 review passes.Current main includes the canonical task completion-order correction (
346219cf52ce), command-worker cap assertion fix (test(ci): respect retained command worker caps #155735), and GitHub-only storage packing assertion fix (fix(ci): apply storage file-limit assertion to GitHub jobs #155943). The prior run 35769304699 failures are retained and attributed to those fixes plus one duplicated history-test registration. This PR removes only its obsolete core registration, preserving the canonical forked Gateway worker owner. Three unchanged ownership tests fail before that removal and pass afterward; its full selected gate and fresh P0–P2 review pass. The current-main merge preserves all feature additions/removals and the already-reviewed fixture correction. Current composition proof passes nine readiness/publication cases, seven history-error/cancellation cases, four routing/allocation cases, current core types, and formatting. All three canonical storage-packing backend cases pass under their current test name.A real fixture teardown race is corrected: transcript rewrite fixtures now drain scheduled reconciliation and close their scoped native database owners before removing their directories. Cleanup attempts every owner, preserves failures, and retains inputs if closure cannot be verified. The existing 31 rewrite cases pass (56.749 seconds through the maintained wrapper), alongside 22 fixture-lifetime cases. A real paused planner control fails with the old premature deletion and passes with full drainage; a failure control verifies error retention and cleanup of sibling handles. Fresh P0–P2 review and the full selected type/lint/guard gate pass. No assertions, timeouts, production readiness behavior, or synchronous SQL paths change.
CI run 35758134393 on the prior public head failed one
maxEvents=1logical-parent rewrite after its scheduled readiness wait. The exact original 64-file cohort passed locally (1,200 cases, three platform skips); that replay does not prove the historical failure fixed. The diagnostic independently demonstrated directory deletion while a planner still owned work, but the subsequentmaxEvents=1operation passed. The original readiness failure remains unexplained after this bounded investigation. This publication contains the proven teardown correction, not a speculative readiness-contract change.Current-main composition includes the canonical updater fixture isolation from fix(test): isolate update activation handoff storage #155844. The reviewed fixture bytes and all other feature additions/removals are identical after integration; 640 focused routing cases pass with the current inventories and normal frozen dependencies. The prior feature evidence below retains its original source binding.
Current-main composition: 19 focused cases pass across projection readiness/publication, exact-read authority retirement, queued-collector authorization, and progress-card revalidation. Current core types, formatting, and diff checks pass. Progress-card and projection-status operations coexist under the canonical history worker; exact-entry membership/authorization fields, queued read ownership, cancellation, and hydration streaming are preserved. This includes the canonical launcher fix from fix(test): pass the fixture lifetime to launcher fixtures #155825 and the prepared benchmark fixture from fix: keep history benchmark startup outside test deadlines #155780. The preceding 26-case current-turn/replay/routing composition remains prior-input proof. The preceding membership/branch/publication composition passed 29 cases plus owning types and scoped lint. Feature additions and removals are byte-identical after the main integration. The fresh review’s lifecycle finding was rejected after direct maintainer inspection of the supported cancellation contract and a real cached-write control; the original finding and disposition are retained.
The compressed 520-message case verifies canonical and physical payload preservation, branch visibility, FTS identities, and sibling isolation. All six measured parent SQLite API counters remain zero through reconciliation, a no-op pass, and normal shutdown. The retained H-source control exercises those counters; this is not a SQL-statement count or a whole-waiter SQL-zero claim.
The follow-up CI repair preserves maintenance-only dirty projection writes without requiring a runtime lease and excludes canonical worker tests from duplicate threaded Gateway execution. The existing 256 MiB large-corpus migration, cross-native/SDK owner identity, scoped-state-directory tests, 432 planner/watch cases through focused recovery, and full-suite exactly-once check pass. Causal controls fail on the old routing. Independent P0–P2 review, affected types/lint, and static guards pass.
The earlier CI repair retained 134 affected runtime cases and 1,709 routing/guard cases through focused recovery on the prior hydration base, plus independent P0-P2 review and affected static checks. These overlap earlier feature proof and are not fresh executions of the composed head. Original failures and the interrupted disk-reserve attempt remain retained.
The latest CI repair routes transcript rewriting and user-turn recording through their canonical host-worker test owner. Its host-only commit observer uses a connection-local trigger; exact callback counts and a wrong-custody control preserve the original assertions. All 73 Node cases through focused recovery, the Bun admission case, ownership checks, affected types/lint, static guards, and independent P0–P2 review pass. Earlier timing failures and diagnostics remain retained; the separate cleanup startup optimization is not included.
Earlier distribution builds and compiled Node/Bun matrix cells remain historical. Current test-worker entries were compiled, but no new distribution, DTS, or UI build is claimed. Historical metadata SDK calibration and phase-location limitations remain unchanged. Prior hosted CI was red; current-head hosted CI is still required. The prior updater activation fixture lock failure is repaired by the canonical fix(test): isolate update activation handoff storage #155844 change included here. One failed job could not be inspected because its log retrieval was refused, so its cause remains unattributed. Draft-skipped checks are not qualification.