Repository navigation
perf(sessions): reduce turn completion database work - #168592
Merged
Merged
Conversation
…odules Merge current main while preserving shared physical admission, cancellation, reader validation birthtime, and live deletion authority. Split worker usage, pool construction, failure settlement, and schema owner types to keep the existing line caps.
Checkpoint the single-owner cutover, cache invalidation regressions, and request-owned read transactions. Keep explicit migration verification. Paired measurement and final validation are still in progress.
Route retained existing-state writer coverage through the host-owned worker project, preserve first-admission incompatibility refusal, and match the final deletion-authority contract. Keep the gateway test under its inherited line count by moving existing pure fixture helpers. Regenerate assertion allowances without adding production assertions.
Include the thirteen transitive admission modules required by the native wrapper import-closure proof. Carry the existing birthtime through the worker validation fixture to preserve its physical-file identity.
Merge current main and preserve its optional settlement-only receipt delivery through the extracted owner. Keep the worker refusal error with the leaf contract to stay within the existing admission line cap. End the marker-free read-only fixture transaction normally; dedicated rollback and explicit revocation coverage remains unchanged.
Preserve snapshot-local reuse without freshness queries, publish dedicated archive writes, and remove Workboard polling. Retain native authority and settlement boundaries. Checkpoint reviewed corrections and focused regression repairs; final integrated proof remains in progress.
Define inactive typed durable phases, versioned hot snapshots, complete commit receipts, pure bookkeeping reducers, and unknown-outcome fencing. Share lifetime and settlement vocabulary with the existing incognito actor without changing routing or persistence.
Keep native-incognito delivery and restart receipts on their existing entry owner, and send only cloneable claim fields to the durable actor. Repair completion typing and fixture ownership exposed by CI.
Preserve native incognito state-root identity and register dispatch mocks before consuming modules. Keep queue disposition bookkeeping in the existing reply operation state owner.
This was referenced Oct 11, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 12, 2026
* perf(sqlite): checkpoint shared admission across workers (WIP) * test(sqlite): align worker fixtures with shared admission * perf(sqlite): avoid repeated quarantine reads in retained scopes * docs(sqlite): define single-owner database freshness * perf(sqlite): replace runtime probes with writer publications Checkpoint the single-owner cutover, cache invalidation regressions, and request-owned read transactions. Keep explicit migration verification. Paired measurement and final validation are still in progress. * test(sqlite): align first-admission coverage and deletion fixtures Route retained existing-state writer coverage through the host-owned worker project, preserve first-admission incompatibility refusal, and match the final deletion-authority contract. Keep the gateway test under its inherited line count by moving existing pure fixture helpers. Regenerate assertion allowances without adding production assertions. * build(sqlite): include shared admission in compiled wrappers Include the thirteen transitive admission modules required by the native wrapper import-closure proof. Carry the existing birthtime through the worker validation fixture to preserve its physical-file identity. * test(sqlite): use the canonical settlement owner in publication proof * fix(sqlite): complete writer custody and snapshot cache lifetimes Preserve snapshot-local reuse without freshness queries, publish dedicated archive writes, and remove Workboard polling. Retain native authority and settlement boundaries. Checkpoint reviewed corrections and focused regression repairs; final integrated proof remains in progress. * fix(sqlite): retain integrity and worker admission through cleanup * test(sqlite): preserve reader coverage in existing fixture owners * fix(sqlite): preserve cache receipts across sibling writers and temp DDL * fix(workboard): type the replacement card-list promise * fix(sessions): integrate receipt-based list revision reads * perf(sessions): reuse committed entry facts across ordered reads * refactor(sessions): identify fused query as worker-only * fix(sessions): preserve receipt facts across read phases * docs(sessions): clarify retained listing and alias guards * refactor(sessions): define shared session actor contract Define inactive typed durable phases, versioned hot snapshots, complete commit receipts, pure bookkeeping reducers, and unknown-outcome fencing. Share lifetime and settlement vocabulary with the existing incognito actor without changing routing or persistence. * refactor(sessions): update actor cutover contract * refactor(sessions): prepare usage facts for actor completion * refactor(sessions): add inactive phase actor backend * fix(sessions): preserve actor projection readiness and held facts * refactor(sessions): share terminal receipt reducers * perf(sessions): reuse retained transcript initialization facts * test(sessions): split admitted cohort lifecycle coverage * test(sessions): service actor fixture admission synchronously * perf(sessions): fuse terminal accounting and delivery custody in actor * test: capture native incognito completion regression Keep the B4 cutover blocked until actor acquisition can preserve the existing native in-memory owner. The regression expects normal usage completion with no second memory owner or durable fallback; it is not an expected-failure allowance. * refactor(sessions): use shared string validation for entry facts * feat(sessions): contract update 2 for existing incognito owners * fix(sessions): preserve query builder method binding * fix(sessions): acquire existing native incognito completion owner * fix(sessions): separate actor admission from accepted settlement * fix(sessions): reacquire incognito projection claims after actor commits * test(sessions): distinguish model metadata from context messages * refactor(sessions): separate actor contracts and share mutation executors * docs(sessions): explain actor assertion invariants * fix(sessions): reject ownership changes inside native hooks * fix(sessions): use internal completion authority and fresh test versions * refactor(sessions): share native transcript presence query * test(sessions): run usage accounting with host admission * fix(sessions): preserve transient completion and native store keys * chore(sessions): document closed projection assertions * test(sessions): explain actor eviction mock isolation * test(sessions): publish maintenance lifecycle fixture mutations * chore(sessions): place snapshot safety invariant at assertion * refactor(sessions): make snapshot projection assertion explicit * test(sessions): align actor fixtures with typed owner contracts * test(sessions): use real live-model reducer preparation * fix(sessions): preserve actor callback bindings and audit inactive APIs * test(sessions): retire removed mock exceptions * fix(sessions): keep host config out of worker transport bundles * feat(sessions): contract update 3 for scoped receipts and command preimages * fix(sessions): reject mutations during actor authority admission * test(reply): project compound session patch fixtures * fix(sessions): retain actor state across unrelated pending writes * fix(sessions): pass a record to canonical postimage projection * fix(sessions): preserve incognito transaction settlement contract * test(reply): retain record-shaped fixture projections * test(sessions): keep scoped receipt fixtures within storage contracts * test(sessions): use the extracted history owner in reset proof * refactor(sessions): separate receipt and transcript helper responsibilities * fix(sessions): use scoped entry receipt for the adopted window * test(sessions): type native receipt fixtures against storage contracts * fix(sessions): complete integrated actor reader references * test(sessions): follow extracted entry presence reader * refactor(sessions): keep patch step reducer private * fix(sessions): finish actor validation cleanup * refactor(sessions): satisfy completion owner lint contracts * chore(sessions): shrink moved assertion baseline * test(sessions): assert command-local delivery admission * fix(sessions): complete against the settled runtime writer * refactor(sessions): simplify actor replica validation * fix(sessions): preserve native completion ownership after actor cutover Keep native-incognito delivery and restart receipts on their existing entry owner, and send only cloneable claim fields to the durable actor. Repair completion typing and fixture ownership exposed by CI. * fix(sessions): reuse native delivery settlement owner * test(sessions): run delivery actor fixtures with host broker * fix(sessions): align incognito and dispatch fixtures Preserve native incognito state-root identity and register dispatch mocks before consuming modules. Keep queue disposition bookkeeping in the existing reply operation state owner. * fix(reply): keep queue disposition types acyclic
steipete
added a commit
that referenced
this pull request
Oct 14, 2026
Share completion projection and settlement, reuse existing command gates and session-source preparation, and remove duplicate response/receipt mirrors. Keep private-source authority, approvals, FIFO, transcript durability, bounded retry behavior, and write-capable shutdown settlement at their existing owners. Best-effort tradeoffs accepted: - Idle source/config changes may retain unused capacity until expiry; allocation and private-source transfer still authorize use (#143372, #143410). - Mid-read model configuration and native availability may keep prepared display facts for that read; catalog/account authority remains (#169253). - Cosmetic health topology and clock rollback use normal refresh or an explicit probe; live lifecycle mismatch checks remain (#128222, #128503). - Bootstrap enrollment overlapping shutdown/reload may fail and retry rather than reject every post-await close interleaving (#133037). - Late internal completion reducers are not persisted; completion stays idempotent and final-intent receipt validation remains (#168592). - An in-flight plugin UI catalog may finish against its selected registry; HTTP asset disclosure still checks current authority (#134943, #169449). These removed guards have speculative/synthetic provenance, not cited human actual-use incidents. Keep the human-reported memory-flush retry bound (#85645). The Phase E standalone session memory backend and its tests are untouched.
steipete
added a commit
that referenced
this pull request
Oct 14, 2026
* refactor(gateway): consolidate reply and worker preparation paths Share completion projection and settlement, reuse existing command gates and session-source preparation, and remove duplicate response/receipt mirrors. Keep private-source authority, approvals, FIFO, transcript durability, bounded retry behavior, and write-capable shutdown settlement at their existing owners. Best-effort tradeoffs accepted: - Idle source/config changes may retain unused capacity until expiry; allocation and private-source transfer still authorize use (#143372, #143410). - Mid-read model configuration and native availability may keep prepared display facts for that read; catalog/account authority remains (#169253). - Cosmetic health topology and clock rollback use normal refresh or an explicit probe; live lifecycle mismatch checks remain (#128222, #128503). - Bootstrap enrollment overlapping shutdown/reload may fail and retry rather than reject every post-await close interleaving (#133037). - Late internal completion reducers are not persisted; completion stays idempotent and final-intent receipt validation remains (#168592). - An in-flight plugin UI catalog may finish against its selected registry; HTTP asset disclosure still checks current authority (#134943, #169449). These removed guards have speculative/synthetic provenance, not cited human actual-use incidents. Keep the human-reported memory-flush retry bound (#85645). The Phase E standalone session memory backend and its tests are untouched. * refactor(gateway): consolidate dispatch and trusted result projections * refactor(workers): trust admitted preparation facts
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
…2342) * refactor(gateway): consolidate reply and worker preparation paths Share completion projection and settlement, reuse existing command gates and session-source preparation, and remove duplicate response/receipt mirrors. Keep private-source authority, approvals, FIFO, transcript durability, bounded retry behavior, and write-capable shutdown settlement at their existing owners. Best-effort tradeoffs accepted: - Idle source/config changes may retain unused capacity until expiry; allocation and private-source transfer still authorize use (openclaw#143372, openclaw#143410). - Mid-read model configuration and native availability may keep prepared display facts for that read; catalog/account authority remains (openclaw#169253). - Cosmetic health topology and clock rollback use normal refresh or an explicit probe; live lifecycle mismatch checks remain (openclaw#128222, openclaw#128503). - Bootstrap enrollment overlapping shutdown/reload may fail and retry rather than reject every post-await close interleaving (openclaw#133037). - Late internal completion reducers are not persisted; completion stays idempotent and final-intent receipt validation remains (openclaw#168592). - An in-flight plugin UI catalog may finish against its selected registry; HTTP asset disclosure still checks current authority (openclaw#134943, openclaw#169449). These removed guards have speculative/synthetic provenance, not cited human actual-use incidents. Keep the human-reported memory-flush retry bound (openclaw#85645). The Phase E standalone session memory backend and its tests are untouched. * refactor(gateway): consolidate dispatch and trusted result projections * refactor(workers): trust admitted preparation facts
scribe-dandelion-cult
added a commit
to karmaterminal/openclaw
that referenced
this pull request
Oct 16, 2026
Absorbs fp#1318-1442 (125 first-parent commits), ending just before openclaw#168592 (fp#1443), which starts the next conflict cluster. Conflicts (2, generated/budget only): - plugin-sdk-surface-report: upstream re-based its own budgets (3661 exports / 2127 callable) on the async inspection/authorization replacements; ours stays upstream + the continuation contracts (+11 / +4). Measured on the merged tree: 3672 / 2131. - worker-access-inventory.md: regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Jhynq2GVpzuVQQieebEubg
scribe-dandelion-cult
added a commit
to karmaterminal/openclaw
that referenced
this pull request
Oct 16, 2026
…step 30) openclaw#168592 wraps terminal turn accounting in one retained session-actor completion owner (withAgentTurnCompletion): usage, group-intro, fallback-notice and live-model bookkeeping are staged as reducers and commit with pending-final custody through completion.complete(). Continuation reconciliation: - Arm continuation only after the terminal completion commits. accountFollowupTurn now returns scheduleContinuation, which followup-runner calls after turnCompletion.complete(); completeReplyAgentRun settles the completion before scheduleReplyContinuation on every return path (silent continuation, signal-only, and final). A wake is never visible for a turn whose bookkeeping or final custody failed to settle. New followup-runner tests pin the order and the failed-settle case (both red with the order reversed). - After the continuation chain reset, re-read through the completion owner instead of the caller's pre-turn entry, which discarded the owner's projection (upstream fallback-notice tests caught it). - Recipient-authority advance on visibility narrowing runs before the committed revision is read, so upstream's no-op-write fast path never mistakes an advance for a no-op. - Owner path reads the exact-row cache from upstream's new session-accessor.sqlite-entry-query module; sqlite-entry-read is now byte-identical to upstream. - Test fixtures: continuation work-span tests seed the real session row the completion actor commits to; followup-runner accounting mocks carry scheduleContinuation; reduceSessionEntryPatch mocks follow upstream's move to projectSessionEntryPatch; persist-usage provenance tests follow upstream's removal. Premaps: 🕯 Emeric (source map) and 🌊 Ronan (ordering risk). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Jhynq2GVpzuVQQieebEubg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Turn completion persisted related session bookkeeping through separate generic
patches: group intro, fallback notice, usage/context/billing, live-model cleanup,
activity, and final-delivery custody. Those independent prepare/commit cycles
repeated entry reads, side-table work, publication and transaction envelopes.
User Impact
No intended user-visible behavior change: the session owner performs less
duplicated database work while preserving completion, accounting and delivery
custody. No operator migration or configuration change is required.
Why This Change Was Made
Stacked on
dbasync/actorb1. Route terminal work through its existing physicalsession owner and
completeTurn, without appending a second assistant message.The shared pure bookkeeping reducers also serve the named native/SDK patch
adapter; the folded patch-fusion work suppresses unchanged entry/window/snapshot
writes and reuses authoritative postimages within the synchronous commit.
Restart delivery records
deliveryPendingbefore sending anddeliverySettledonly after confirmed delivery or a proven no-send result. Pending-final settlement
retains exact intent/payload IDs, current harness authority, actual dispositions,
and recovery-wake decisions. Usage remains best-effort; live-model failure still
propagates. Captured model/auth fields prevent an older completion from clearing
a newer selection. Known commits survive fallible publication; unknown outcomes
follow B1's existing disclosure/reconciliation contract and are not replayed by B4.
The native-incognito adapter retains the already-open memory owner. Cancellation
rejects new actor admission/disclosure without revoking accepted phase work or
receipt installation. Maintenance consumes the same committed completion entry
and the existing reply-owner settlement; no new trigger or early intent clearing.
Deleted superseded internal
persistSessionUsageUpdateandconsolidateLiveModelSwitchAfterRunwriters. No schema, durability, retention,permission, released SDK or foreign-commit freshness change is intended.
Queued/steering activity retains its own actor command because that branch has
no later durable point before returning. Ordinary terminal accounting is fused.
Measurements
Four alternating B1,B4 pairs on one admitted, task-owned AWS Crabbox lease.
Each run completed 13 successful turns, a second session, control, cron,
compaction and shutdown. Warmed all-thread statements fell 681.95 → 615.35
(−66.60, −9.77%); DB requests 168.5 → 163.9 and total worker requests
169.9 → 165.2. Explicit native commits fell 66.1 → 64.05.
The overall actor target is not reached by this lane; only the verified saving
is claimed. No savings are attributed to moving work between threads.
The shared census harness is unchanged. Task-local analysis corrects a
source-map-sensitive CPU classifier:
recordProviderPrompthas the samezero-SQL CPU contract in source and bundled stacks. This removes 16 wrongly
classified candidate DB requests across each full run, without changing total
worker requests, statements, frames, or transactions. Native attribution groups
by thread, operation and normalized SQL, not source-map-dependent filenames.
All phases: ALL + MAIN counters and durations
Pinned B1
cc65e9aacc50bfd2e86a8edc0eb89d561e571b3aand B4ae04df5e0d58faf3d02afced834b10240928eefc; 4 alternating pairs. Cells are median [min–max]. Warmed values are the median of each run’s ten-turn mean, not pooled individual turns.Native SQLite statements and explicit commits
DB requests and transfer frames
All logical worker requests (including CPU-only work)
Actor commands
Phase duration
Explicit commits count observed native COMMIT/END statements, including read transactions; they do not infer autocommit transactions from statement totals. Actor command entry events, logical DB requests, and transfer frames remain distinct counters.
Attribution
The fixed warmed foreground replacement is 41 fewer statements and zero net
requests: four generic patch requests disappear, replaced by one actor read,
one completion and two settlements. Shared no-op/postimage reuse removes another
two statements from lifecycle projection. The remaining 23.6 observed statements
and 4.6 DB requests per turn are workload/timing effects, not a claim that B4
deleted that many fixed calls. Per-family medians need not sum to a median total.
Combined-window and whole-run check
Fixed warmed SQL families (generic patches, actor phases and lifecycle projection)
Per-operation attribution, DB requests and native statements
Unchanged operations are omitted. Fixed savings are the actor/patch/lifecycle rows above; the other rows are observed scheduling, background, or first-use attribution.
Warmed per turn
First turn
Whole run
The connect increase is deferred work: memory initialization's
database.domain.executemoves 130 statements / one request from first-turnto connect, with the same SQL fingerprints; its accompanying bind also moves.
The unchanged startup scheduler additionally completes two transcript prewarms
(18 statements). Schema/admission SQL already present in baseline reader opens
shifts between first-use owners; history-page has +16 statements while inventory,
maintenance and other reader-open families fall. No per-call schema check was
added. Boot+connect+first is lower in every pair and by median (4,848 → 4,797).
First-turn DB requests rise 272 → 276.5. Five restart/lifecycle startup
requests move from connect into that window, and an existing prepare-write
request moves from warmed turn one into first-turn (whole-run count stays 2).
The extra whole-run pair required by RAW TURN INCREASE was completed: whole-run
statements 15,588.5 → 14,765, DB requests 2,934 → 2,895.5, total worker
requests 2,958 → 2,918.5. The operation table shows the affected families;
these are redistribution/background differences, not a new foreground loop.
Shutdown's +4 statements are the unchanged audit pruner (+1 call), within the
10-statement non-turn tolerance. Other non-turn phases do not increase.
The folded patch-fusion maintenance concern is specifically checked:
session.maintenance.readremains 20 / 20 requests per whole run(104 / 88 statements), with no new scheduler trigger and no early intent clear.
All gated duration ratios are below 1.5. Historical patch-fusion results are
not used as B4 proof.
Evidence
The first real Gateway comparison exposed a B4 integration defect before any
savings were claimed: the model completed, but terminal accounting compared the
pre-run entry's writer with the writer claimed by execution. The repair carries
the existing native settlement's exact writer through the execution result,
including zero-compaction turns, into ordinary and queued completion. It adds
no reads, requests or handshake. A real-finalizer regression failed with
Terminal accounting session changedbefore repair and passed afterward(3.77 s test time; 47.83 s Vitest, 148.49 s wrapper including worker compilation).
The failed run is not included in the measurement comparison.
On
c2d7162cb57f3, core production types, touched-file lint, thenative-incognito suite (6/6; 15.52 s Vitest / 51.50 s wrapper), and T1 no-growth
against pinned B1 passed. Native completion retains the original memory
database, with no replacement worker owner or disk database. The broader
current-head owner selection then passed 80 tests across 13 files / five shards
(166.16 s wrapper) at
c7198b99c8f2e. The preceding infra shard passed 124 testsbut found an obsolete two-command delivery assertion; the only intervening edit
updates that test to require one command and zero preparatory reads, preserving
all persisted-custody and replacement assertions. The corrected file passed.
Reusable prior-head behavioral evidence: 320 reply/Gateway tests, including
227 real reply-runner cases and public non-main session creation durability
(448.26 s wrapper); 151 dispatch/settlement tests (142.20 s Vitest / 155.72 s
wrapper); and all 24 restart-recovery tests (133.75 s Vitest / 151.16 s wrapper).
The restart regression requires exactly one
deliveryPendingcommand and nopreparatory read. Later changes in that owner only add lint-required braces.
Maintenance fixtures now publish lifecycle changes through their owning writer
and clear mock calls in cleanup; all three corrected cases passed on Linux
(36.98 s Vitest / 38.67 s wrapper). No foreign-commit polling was restored.
Canonical
check:changedwork was continued past individually recorded inheritedfailures. It passed assertion safety, T1 no-growth, timeout/mock-export ratchets,
formatting, boundaries, dependency guards, all 27 core test-type graphs
(925.821 s at
223bc7a99fe3b), coercion/deprecated-API checks, script lint,schema-version/storage/media/sidecar guards, webhook ordering and pairing guards.
Madge reports zero runtime import cycles. B4-owned type/lint/dead-export findings
were repaired without widening budgets or suppressing diagnostics. Final B1
integration only changed pure-reader reuse, unused callback removal, fixture
types and the relocated assertion baseline; production types and touched lint
were rerun on the final head.
Inherited checks, independently verified against main or B1's unchanged parent
files, remain recorded rather than described as passing:
696e8256e55f6.c4e70bc82a5f7. Actual UI type graphs passed.POST_ACTIVATION_INSPECTIONS_STEP,and two session-channel fixture stubs. B1 reproduced them independently;
its obsolete pending-write export was removed before the final comparison.
1d4f42e8f385with identical diagnostics and no B4-touched files.
MockConfiginagents-mutate.test.tsis untouched hereand appears in B1's independent core-lint result.
Final SQL/focused source pin:
ae04df5e0d58; final pushed branch:e3333d2f34379522f21be939ce6b1cc30beb12ab, stacked on6e8a0034934cc2c914562f7bade42cf1d2c49a3e. The only later source delta is B1'sfive-file replica simplification (23 additions / 64 deletions), merged without
conflicts. It removes duplicate in-memory validation and changes no SQL or
phase command; the paired measurements remain explicitly pinned to cc65/ae04.
On AWS Crabbox
cbx_8eaa757bd06b, runrun_1016330a292060fc7cbeccac4021f7e4:node scripts/run-vitest.mjs … --maxWorkers=1pnpm check:madge-import-cyclespnpm check:database-worker-ratchet --base cc65…pnpm tsgo:corepnpm plugin-sdk:api:diff --base cc65… --head ae04…dd27e91ccheck:changedfor the nine runtime-writer fix filespnpm deadcode:fullThe repeated inherited failures are not hidden or repaired outside this lane.
All 27 graphs and remaining changed-check stages had already run as described
above. Post-merge verification additionally passes the canonical messaging and
agents-sessions graphs (15.25 s / 15.07 s) and production types (16.52 s), plus
the replica/completion selection (58.74 s wrapper). The inherited UI inventory
guard remains failed; no guard/budget or fixture expectation is weakened.
Final integrated checks ran against
e3333d2f3437inrun_a8353feadca8a7b029629d189fbc0e24.The parent-file typed lint passed (zero warnings/errors, 110.84 s including
SDK declaration preparation). Final SDK diff against B1
6e8a0034934calsopassed in 301.17 s; its public entrypoints and direct declarations remain
unchanged (148 reachable closures, digest
dd27e91c).Final nine-file typed lint and formatting passed in
run_fbd053946ee6e764fdbf4bcbbe1ca666:zero warnings/errors, 9.9 s lint, 28.62 s remote command including preparation.
One final-head local E2E attempt stopped before test execution because the
managed-artifact fence could not prove separation. No guard was bypassed and no
managed Gateway was changed; the subsequent 227-case remote E2E pass supplies
that evidence.
Three Codex P2 review rounds completed under campaign convergence. The final
finding (newer auth selection consumed during refresh) was fixed by capturing
the concrete reducer at accounting; real-finalizer regression cases cover
auth-profile and source-only changes. No fourth review round.
Published-driver × candidate update cell: pending (lander).
Size and follow-ups
Chosen compromises
No B4-specific fencing token, generation ledger, recovery journal, or settlement
handshake is added. Completion uses B1's existing actor contract and the existing
delivery intent/payload identity. A proven version refusal retries once from its
returned postimage without an extra preparatory read. An unknown
commit is not blindly retried because this actor contract does not promise
idempotent phase replay; B4 does not add a second reconciliation mechanism.
Usage-only persistence remains best effort with a diagnostic on a proven failure.
Group-intro and fallback-notice bookkeeping keeps arrival-order semantics: a
later terminal update can replace an intervening internal metadata choice. No
per-field versioning is added for that recoverable edge. Model/auth selection
retains its existing targeted guard because changing the selected credentials or
model can affect paid work. Session/intent/payload checks prevent a reset or
delivery retry from attributing data or sending a reply to the wrong operation.
Maintenance reuses the settled completion rather than adding a scheduler trigger.
Against pinned B1
cc65e9aacc50b: production/tooling +1,999/−1,054 (net +945);tests/support +2,111/−1,005 (net +1,106). Guard baselines count as production/tooling.
Growth is the full terminal cutover, additive phase
contracts, receipt/authority handling, shared postimage reuse and regression
coverage; obsolete writers and duplicated old tests are removed.
Structural extractions keep the query cache, snapshot readers and queued activity
operation with narrow leaf owners. The native-runtime ownership check only retries
a publication that preceded its synchronous hook; it never retries an ownership
change made inside that hook. Otherwise suppressed no-op writes could let a second
hook invocation adopt changed authority. The existing five-field hook regression
protects that boundary.
Remote capacity: a prior Testbox waited 15 minutes without a runner and was
stopped; the authorized AWS fallback reused one task-owned lease and one remote
slot. The lease is now stopped; its campaign slot is released. Raw/duplicate
measurement downloads and automatic evidence archives were removed from active
proof storage; compact summaries and cited logs remain for the lander.
Other earlier capacity waits are recorded in the lane notes. No local
Docker was used. This is a READY stacked PR against
dbasync/actorb1;retarget as the parent lands. Do not merge this lane as part of publication.
Integration corrections: entry-only callers retain fallback/group bookkeeping
through the shared pure reducers (no second durable writer). Native-memory
acquisition permits canonical keys in an explicitly selected incognito store;
the exact path, original owner/incarnation, and canonical agent-key checks stay
in place. Durable integration assertions now consume the published postimage,
not a superseded object alias. The usage suite uses the existing broker-capable
test shard; its earlier hostless-thread failures were fixed, not suppressed.
The maintenance fixture repair does not restore foreign-commit polling. It keeps
the lifecycle and logical-source admission checks meaningful under SINGLE OWNER:
the changed lifecycle is published by the same native writer as production.
Regression owners:
agent-runner-result-accounting.persistence.test.tscoversthe real finalizer and no-send completion, successor model/auth selection, and
committed failures;
session-accessor.sqlite-entry-writes.test.tscovers no-opentry/window/snapshot suppression;
model-setup.ownership.test.tspreservesauthority when a native hook changes any of the five ownership fields;
restart-recovery-receipt.test.tsanddelivery-completion.test.tscover exactcustody, wrong-source/tool refusal, post-preparation revocation and confirmation.