Skip to content

perf(sessions): publish transcript projections off thread - #154069

Merged
steipete merged 64 commits into
mainfrom
codex/transcript-publication-h050-20260920
Sep 25, 2026
Merged

steipete merged 64 commits into
mainfrom
codex/transcript-publication-h050-20260920

Conversation

@steipete

@steipete steipete commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

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 4475dcf83e10 adds 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 merge b03fd9b6 (this head into e124d77e00fa). The earlier timeout remains unexplained, rather than claimed as a causal fix. The installed-upgrade proof retains its original 724919 source binding and unchanged runtime contract.

The final conflict resolution adopts one exact canonical-main file: sandbox read replies use the existing admitted constant 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 fixed f4151933 is clean. This changes no dependency, updater, storage or shutdown contract. The installed-upgrade result below remains applicable with its original 724919 binding; the preceding e209 head'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 in wizard-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 public ready outcome 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 1db25fb05848 CI 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 724919 CI 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 from 724919c0d566. 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-state manual-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 against 168d454d is 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 1db25fb05848 is 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 through 4f1acb78. Legacy successful catalog results now record discovery provenance; bundled static/advisory results explicitly remain non-discovery. The existing strict retention rule from 36def8b stays 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 c5b3ef0dde12 found no actionable code/security issue and accepted the real finalizer proof, but identified a separate published-updater startup coverage gap. A bounded published 2026.9.6 updater-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:187 lost 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 3d1dcd99 was 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 88e2ebef is 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 against 88e2ebef are conflict-free.

The preceding production correction after the qualified d2b3c2d4595e integration was the exact one-file canonical correction from #158071, commit 488ce1e590dc. 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 against 488ce1e is clean; prior worker/finalizer evidence keeps its valid source binding.

The current candidate retains the c5b3ef0dde12 composition of fixed canonical main a68216889f19, 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 in abde4d46 moved 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 main 34e8976a is 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 cancellation d65bc76d, 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:

✓ session-transcript-reconcile.publication.test.ts > delivers a committed finalization before close permits a physical successor 1766ms
Test Files  1 passed (1)
Tests       6 passed (6)

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 b511801c hosted 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 missing baseline_version setup in an unrelated upgrade-survivor fixture, independently fixed on main by 6f51289a; that canonical repair is now included in the fixed-main composition.

  • 240 tooling assertions and 46 Gateway assertions pass on the uninstrumented composition, including the archive static boundary, both real queued-cancellation modes, topology retirement and prepared-row behavior. Two declaration cases refuse this checkout's known ancestor installation; their guard remains intact and current hosted CI must qualify the clean physical build.
  • The portal case reached its unchanged 30-second deadline before emitting its worker-installation receipt. One instrumented original-order diagnostic passed all 47 cases, with portal completion in 26.66 seconds; it reached the destination before metadata publication in both iterations, so the proposed fixture wait-cycle fix was not supported or applied. This passing diagnostic does not erase the original timing failure. A final timestamp-only probe measured 4.55 seconds of setup, 17.96 seconds of Gateway startup and 8.15 seconds of worker-bundle preparation; the deadline expired before clients connected. All diagnostic edits were removed byte-for-byte. No timeout, assertion, production behavior or fixture wait was changed.
  • Production, both Gateway test projects, scripts and root-test types pass. Scoped formatting/lint, whitespace, both line-cap ratchets and native-route uniqueness pass. Final managed review completed all three passes scoped-clean through P2 after receiving the exact close/readiness owners and the attachment table's unique-environment constraint; the earlier incomplete review and rejected concerns remain recorded.

The preceding d2b3c2d4595e hosted 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 merge da3a8f44 subsequently 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 3872465e8f09 composes fixed main b1b0b487f7c1 and the canonical CI repair 818b0092d2ee by @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.

  • 255 storage integration cases and 153 Gateway/journal cases pass on the composition. These cover maintenance/archive work, native integrity, shared-state reads, topology, startup admission, event delivery and queued cancellation. Both real preaccept cancellation cases passed here; that is not a claim to repair the separately owned scheduler-cleanup race reported on main.
  • After the small dispatcher extraction, 58 selected state-worker, sandbox and guard cases pass, including all four sandbox reads and the actual CLI with zero parent-thread SQLite calls. These overlap earlier integration proof and are not added to it. The focused chat reasoning/auth case and all 19 native updater cases also pass.
  • The unchanged 2,048-session benchmark passes at 92.18 ms describe / 27.88 ms dirty describe, within its existing 100 ms limits. All three forbidden-read counters remain zero. Earlier measurements retain their original source and host conditions.
  • Production and four owning test-type projects, final core types, scoped lint/formatting, whitespace, native routing and both line-cap ratchets pass. Final managed composition review: all three passes are scoped-clean through P2. A subsequent test-only collision adopts canonical 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 eeb553798fa9 CI 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; canonical 818b0092 moves 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 38491caefdf3 local 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 38491caefdf3 resolves the actual conflicts with fixed main d9a69464657d, preserving the canonical cold-read owners from #156121. Superseded caller waiting loops and the old parallel PR-reader interface are removed.

  • The initial union passes 166 cases across nine files. The final 86 caller cases include the complete 49-case access suite, event/ancestor preparation, group authority, registered startup/resolve flows, and managed-room callers. These selections overlap and are not added together.
  • Authorized private-session delivery first failed in both workspace and repository cases. The repaired five-case selection passes, including held-read rejection after same-ID reset, native namespace replacement, and repository deletion. These five cases are included in the final access suite.
  • Production types, five owning test-type configurations, scoped lint/formatting, whitespace, and the staged line-cap ratchet pass. The extracted access fixture's function body is byte-identical; assertions and cleanup remain intact.
  • The complete two-pass independent P0–P2 review is scoped-clean, including the private-source guard and semantic owner composition.

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 30140c229912 incorporates fixed main 8de617b5499b. 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.

  • 64 changed-owner cases and 29 affected caller cases pass, covering native creation witnesses, startup journal admission, cleanup, replacement settlement, trajectory writes, profile authority and changed chat flows. The prior 455-case correction proof retains its source bindings; overlapping runs are not added together.
  • Four held-topology registration controls first failed because unrelated store changes dropped pending lifecycle/marker events. After the owner fix, all 43 topology/invalidation assertions and 12 reconciliation lifecycle assertions pass, including physical replacement, same-ID reset, aliases, disposal and source retirement. The lifecycle spy now forwards the real reconciliation mode.
  • The complete P0–P2 follow-up review is scoped-clean after resolving both findings. Subsequent fixture-only consolidation preserves the assertions and dynamic-config behavior; all 12 targeted cases, owning types and lint pass. Independent fixture-parity review found no actionable issue; the final staged line-cap ratchet passes.
  • Production and owning test types, scoped formatting/lint, and the 26-target routing union pass. The canonical baseline type-import repair from #157659 is included, with credit to @fuller-stack-dev; it changes no emitted runtime behavior.

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 03e87bd6fd0f retains the fixed-main composition and adds the verified CI corrections.

  • Combined correction proof covers 455 distinct assertions across 15 files: 25 permission/lifecycle fixture cases, 15 native discovery and source-lifetime controls, and 415 affected Gateway/tooling assertions. The final two fixture changes are requalified by seven focused cases; overlapping reruns are not added to that count.
  • The registry race first failed with a real worker reply held across a canonical registration change, then passed with the bounded refresh. Controls reject repeated churn, physical source retirement, and worker failure.
  • CI fixture corrections preserve their assertions: task setup and teardown respect the live Gateway's shared-state lifetime; worker adapters retain request attachments; event mocks model generation changes; scoped auth config is published through its existing owner. A held real transcript finalizer reproduced the archive fixture's pending-projection refusal; the completed-transcript fixture now joins its setup before paging.
  • The shard test now checks actual coalescing instead of comparing split bundles with unsplit owners. Coverage, uniqueness, capacity, runner, and determinism assertions remain intact.
  • Production and owning test types, scoped formatting/lint, line-cap/max-lines and assertion-safety ratchets pass. Fresh independent P0–P2 review is scoped-clean.

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 82e67eff6da5 incorporates fixed main eee3bdf9c4e7. 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.

  • 63 focused cases pass across six affected files, covering reset-recall snapshots/visibility, binding retirement, readiness cancellation, and startup races. Earlier 279-case composition proof and the preceding 454-case selection retain their source bindings; overlapping runs are not added together.
  • Five owning type configurations, formatting, lint, and whitespace checks pass. The maintained routing API selects all 19 union targets exactly once, with no inventory duplicates and unchanged watch ownership.
  • The preceding full four-pass P0–P2 review is scoped-clean. Independent review of the latest four-file union verified feature-code parity, preservation of the existing transcript fence and native snapshot owner, and the exact routing union. Its one fixture finding is fixed: the new admission spy forwards the original attachment while preserving every retirement assertion.

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 d834d2b03683 incorporates fixed main 59c02b8cb7a6. 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.

  • 279 changed-input cases pass across 17 files, covering journal/native readers, attribution, participant recording, physical invalidation and topology, error transport, and the composed worker fixtures. These overlap earlier proof and are not added to historical counts.
  • The unchanged 2,048-session regression measures 24.40 ms for describe and 16.09 ms for dirty describe, below the existing 100 ms limits. All three forbidden materialization-read counters remain zero; 2,047 rows remain after the dirty response.
  • Current production types and three owning test-type graphs pass, along with both cycle checks, scoped formatting/lint and whitespace checks. The line-limit repair moves one existing physical-store invalidation case, byte-identically, into the existing invalidation suite; fixtures and assertions are unchanged.
  • Fresh independent four-pass P0–P2 review is scoped-clean. The subsequent mechanical test move also has an independent body/fixture parity audit and passed the affected type/lint/runtime checks.

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 fccd3c00bc94 incorporates fixed main 1bbd578b463d.

  • 454 distinct selected assertions pass across the affected storage, projection, native-worker, Gateway, and routing contracts. This includes 438 whole-file cases and 16 deliberately selected caller/routing cases; repeated confirmations are not additional coverage.
  • The unchanged 2,048-session regression passes in the original eight-file Gateway order: describe 30.05 ms, dirty describe 25.62 ms, both below the existing 100 ms limits. All three forbidden materialization-read counters remain zero, and 2,047 rows remain after the dirty response.
  • Current production types and the three affected test-type graphs pass, as do formatting/lint for the seven composed paths and whitespace checks. Earlier nine-graph and two-cycle proof remains retained for unchanged inputs.
  • Full independent P0–P2 review completed. Its sole finding claimed an undefined parameter; complete source inspection shows the typed parameter and both supplying callers, corroborated by the passing typecheck. That finding is retained with an explicit rejection; there are no accepted actionable findings.

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 9462953bc02a composes fixed main 4ab8c58fbe59. Exact-head CI remains required before landing.

  • All 15 selected static commands pass: formatting, scoped lint, whitespace, production types, eight test-type graphs, and both cycle checks.
  • 79 focused runtime cases pass: 34 state/worktree, 28 transcript/history/native-entry/purge, four selected static-note cases, all 12 original Gateway startup cases, and the original performance case. Seven unrelated static-note cases were deliberately deselected.
  • The unchanged 2,048-row benchmark completes describe in 25.94 ms and dirty describe in 15.78 ms, below the existing 100 ms limits. Transcript, usage, and bounded materialization read counters remain zero; 2,047 rows remain after the dirty response.
  • All 1,601 selected routing assertions pass. The wrapper originally exited 1 during final generated-directory removal. After native work joined, its exact task-owned namespace was removed through the same cleanup operation under maintainer authorization. That separate completion does not rewrite the original exit or rerun the assertions.
  • Fresh independent P0–P2 review produced one lifecycle finding. It was explicitly rejected after current producer/caller inspection and comparison with the retained real cached-write control: accepted cached writes durably mark 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 AbortError whose 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=1 logical-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 subsequent maxEvents=1 operation 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.

@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 20, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 1:25 PM ET / 17:25 UTC (Revision 40).

ClawSweeper review

What this changes

Moves 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
Reviewed head: 4475dcf83e1054f2c15239caba70e8a4dfe022cd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Real worker and installed-upgrade evidence support a substantial cutover, with no concrete defect found in the reviewed head.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed production owner publishes transcript projections through the agent SQLite worker. Supplied terminal evidence exercises the real worker and SQLite finalizer through commit, notification, close, and replacement, and a published 2026.9.6 updater cell observes candidate serving and transcript restoration. Those results retain their stated source revisions; the latest head adds test diagnostics only. The diff changes no stored schema or data representation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed production owner publishes transcript projections through the agent SQLite worker. Supplied terminal evidence exercises the real worker and SQLite finalizer through commit, notification, close, and replacement, and a published 2026.9.6 updater cell observes candidate serving and transcript restoration. Those results retain their stated source revisions; the latest head adds test diagnostics only. The diff changes no stored schema or data representation.
Evidence reviewed 7 items Current main still needs the change: Current main keeps runProjectionWrite in the reconciliation module and invokes the synchronous agent write transaction from that path; it does not contain the new publication worker.
Worker publication and authority: The branch opens the agent SQLite worker for projection publication and checks the captured execution owner before dispatching each command.
Final-effect regression: The real worker-result test holds finalizer delivery and checks committed rows, notification, database close, and physical replacement in that order. The PR body reports this case passing; this read-only review did not execute it.
Findings None None.
Security None None.

How this fits together

Session 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]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Installed upgrade proof 1 published-driver-to-candidate cell It checks existing operator state and transcript restoration across the worker cutover.

Stored data model

Persistent data-model change detected: database schema: src/config/sessions/combined-store-paths.ts, serialized state: src/state/agent-deletion-journal.ts, unknown-data-model-change: src/state/agent-deletion-journal.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded Gateway responsiveness improvement with meaningful but limited user impact.
  • merge-risk: 🚨 session-state: Asynchronous projection publication crosses session events and database retirement, where stale or misassociated state is the specific merge-sensitive failure mode.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed production owner publishes transcript projections through the agent SQLite worker. Supplied terminal evidence exercises the real worker and SQLite finalizer through commit, notification, close, and replacement, and a published 2026.9.6 updater cell observes candidate serving and transcript restoration. Those results retain their stated source revisions; the latest head adds test diagnostics only. The diff changes no stored schema or data representation.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner publishes transcript projections through the agent SQLite worker. Supplied terminal evidence exercises the real worker and SQLite finalizer through commit, notification, close, and replacement, and a published 2026.9.6 updater cell observes candidate serving and transcript restoration. Those results retain their stated source revisions; the latest head adds test diagnostics only. The diff changes no stored schema or data representation.

Evidence

What I checked:

  • Current main still needs the change: Current main keeps runProjectionWrite in the reconciliation module and invokes the synchronous agent write transaction from that path; it does not contain the new publication worker. (src/config/sessions/session-transcript-reconcile.ts:137, e124d77e00fa)
  • Worker publication and authority: The branch opens the agent SQLite worker for projection publication and checks the captured execution owner before dispatching each command. (src/config/sessions/session-transcript-reconcile.ts:199, 4475dcf83e10)
  • Final-effect regression: The real worker-result test holds finalizer delivery and checks committed rows, notification, database close, and physical replacement in that order. The PR body reports this case passing; this read-only review did not execute it. (src/config/sessions/session-transcript-reconcile.publication.test.ts:233, 4475dcf83e10)
  • Private-read authority: The Control UI read path rechecks the live operator, scopes, visibility, projection, session incarnation, and source identity before a retained target is used; its tests include revoked and replaced private-session cases. (src/gateway/control-ui-session-pr-read.ts:251, 4475dcf83e10)
  • Published-updater proof: The captured PR body reports a published [email protected] updater running into candidate 724919c in one completed installed-upgrade cell, with candidate serving, Doctor cleanup, rollback, and raw transcript restoration. Later current-head changes are described as preserving that runtime contract; the proof retains its original revision binding. (724919c0d566)
  • Latest-head continuity: Compared with the prior reviewed head, the latest commit changes only failure diagnostics in the first-sign-in test; it does not change production code, assertions, mocks, or the deadline. The earlier Linux timeout remains unattributed after a bounded exact-merge replay. (src/gateway/setup-inference.first-signin.integration.test.ts:23, 4475dcf83e10)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • galiniliev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (39 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-25T12:47:29.987Z sha c5b3ef0 :: blocked before merge. :: none
  • reviewed 2026-09-25T14:43:41.751Z sha 2ab155a :: blocked before merge. :: none
  • reviewed 2026-09-25T15:10:24.282Z sha 1db25fb :: blocked before merge. :: [P1] Preserve legacy catalog acquisition provenance
  • reviewed 2026-09-25T15:34:27.686Z sha 724919c :: blocked before merge. :: none
  • reviewed 2026-09-25T16:03:00.381Z sha 724919c :: blocked before merge. :: none
  • reviewed 2026-09-25T16:12:31.146Z sha 724919c :: blocked before merge. :: none
  • reviewed 2026-09-25T16:43:48.259Z sha e209fd7 :: blocked before merge. :: none
  • reviewed 2026-09-25T17:13:07.282Z sha e209fd7 :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/session-hydration-publication-20260919 branch 5 times, most recently from c081523 to cd92e10 Compare September 22, 2026 00:33
@steipete
steipete force-pushed the codex/session-hydration-publication-20260919 branch from cd92e10 to 30a49b6 Compare September 22, 2026 04:36
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.
@steipete
steipete force-pushed the codex/transcript-publication-h050-20260920 branch from 1022fe7 to 05d69cf Compare September 22, 2026 08:56
@steipete
steipete marked this pull request as ready for review September 22, 2026 09:00
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.
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts labels Sep 22, 2026
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.
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

agents Agent runtime and tooling commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant