Repository navigation
perf(database): PostgreSQL replica reuse parity — scoped commit revisions and read snapshots - #175498
Conversation
Publish only mutation-backed PostgreSQL receipts, reuse pure read snapshots, and keep raw-write and unknown-outcome invalidation. Preserve eager deferred writer locking and prove scoped, empty-commit, shared-anchor and concurrent read-then-write behavior.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 70413815ed
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (/^\s*(?:COMMIT|ROLLBACK)\s*;?\s*$/i.test(sql)) { | ||
| this.isTransaction = false; |
There was a problem hiding this comment.
Settle writes when a batch ends its transaction
When a caller submits a complete batch such as BEGIN; INSERT ...; COMMIT, PostgreSQL commits it, but this standalone-only check leaves isTransaction true. The detected mutation therefore remains pending instead of publishing its cache-invalidating receipt, and the next managed transaction tries SAVEPOINT against an idle backend and fails. Use the returned trailing command/transaction status to recognize transaction-ending batches and settle the write immediately.
AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.
|
Codex review: blocked before merge. What this changesThis PR gives PostgreSQL scoped replica invalidation and moves pure worker reads to read-only snapshots. Example: A transaction updates session scope second while scope first has a cached replica.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this useful maintainer-owned optimization resolves the earlier findings, while the explicit merge pause remains warranted. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherDatabase workers execute session and state operations through the PostgreSQL bridge, then publish anchor receipts that determine whether cached replicas remain reusable. flowchart TD
A[Gateway operations] --> B[Database workers]
B --> C[Read snapshot or write transaction]
C --> D[PostgreSQL bridge]
D --> E[PostgreSQL store]
D --> F[Scoped anchor receipts]
F --> G[Session replicas]
Technical reviewBest possible solution: Retain the scoped receipt implementation while resolving the aggregate-work increase and the failed Linux check before advancing this PR. Do we have a high-confidence way to reproduce the issue? Current main publishes a broad anchor revision for every successful COMMIT, directly explaining invalidation after empty or unrelated transactions; this review did not execute target code. Is this the best way to solve the issue? Reusing the existing scoped receipt and snapshot owners addresses the observed invalidation without a competing cache mechanism, although the measurements do not establish overall work parity. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4a4f9c81f216. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +74, Tests +217, Docs +6. Total +297 across 31 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 17, 2026, 9:52 AM ET / 13:52 UTC (Revision 3). |
Keep modifying CTE DML inside its certified owner scope while SELECT INTO and uncertified raw writes retain broad invalidation. Align Workboard rollback assertions with SQLite’s monotonic mutation witness, retaining row persistence and known-versus-unknown outcome checks. Validation: 47 focused PostgreSQL tests, three affected Workboard cases, targeted typecheck and lint, and scoped-clean autoreview through P2.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 96e11490d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| mutation === undefined && | ||
| /^(?:INSERT|UPDATE|DELETE|MERGE)$/.test(keyword) && | ||
| !(keyword === "UPDATE" && (previousKeyword === "FOR" || previousKeyword === "KEY")) |
There was a problem hiding this comment.
Invalidate writes performed through SELECT functions
When writable raw SQL invokes a side-effecting PostgreSQL function—such as SELECT mutate_rows()—the server reports SELECT, and this keyword allowlist also produces no mutation hint. A later standalone COMMIT therefore finds no pending write, publishes no receipt, and leaves cached snapshots stale even though the function changed rows. Such unclassifiable statements need conservative invalidation or must be rejected in writable transactions.
AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a32b7b2f0e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| mutation === undefined && | ||
| /^(?:INSERT|UPDATE|DELETE|MERGE)$/.test(keyword) && | ||
| !(keyword === "UPDATE" && (previousKeyword === "FOR" || previousKeyword === "KEY")) | ||
| ) { | ||
| mutation = "scoped"; |
There was a problem hiding this comment.
Restrict DML hints to actual write clauses
Because this lexer classifies every unquoted INSERT, UPDATE, DELETE, or MERGE token, a read that uses one as an identifier—such as SELECT t.update FROM status AS t—is reported as a scoped mutation. execute() consequently advances mutationRevision and publishes a writer receipt when the read-only transaction rolls back, invalidating otherwise reusable replicas despite no write occurring. Parse these keywords only in statement/CTE command positions rather than treating arbitrary words as mutation evidence.
AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.
|
@clawsweeper re-review Both prior findings are addressed. Workboard rollback assertions retain committed-row and outcome checks while matching monotonic attempted-write cache invalidation. The batch settlement regression now reproduces the stale transaction-state defect before the fix and passes with the bridge returning PostgreSQL's existing backend transaction status after successful queries. Final head: a32b7b2. Focused PG, type, lint, independent review, exact SQLite statement comparison, warm census, and C=64 proof are complete; the PR body has the final-head tables and remaining parity limitation. Both PostgreSQL CI shards are running. Do not merge. |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02db95bb27
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const autocommitWrite = !wasTransaction && mutated; | ||
| if (result.command === "COMMIT" || autocommitWrite) { | ||
| // All confirmed commits advance the anchor, including callers using raw SQL. | ||
| if (!this.isTransaction && (mutated || wasTransaction)) { |
There was a problem hiding this comment.
Settle committed prefixes before retaining a later transaction
When a compound query commits a mutation and then opens another transaction, such as BEGIN; INSERT ...; COMMIT; BEGIN, result.inTransaction is true, so this condition leaves pendingWrite unsettled even though the insert is already durable. Other handles can consequently reuse stale scoped snapshots for the lifetime of the new transaction; track and settle the committed prefix rather than gating every mutation on only the trailing server status.
AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.
|
@clawsweeper re-review Final head: 02db95b. The qualified-keyword read classification finding is fixed, with live regressions for qualified columns and quoted/numeric SELECT INTO boundaries. The session-actor rollback assertion now matches SQLite's monotonic attempted-write invalidation; durable data and authority checks remain exact. The body now contains the completed final-head warm census and C=64 replay: 320/320 successful turns, no actor invalidation, and unchanged SQLite statement captures. It also preserves the full-window work increase and explicitly makes no parity or isolated timing-speedup claim. PostgreSQL CI shards are running; the three session projection count failures in changed-test shard 14 remain under investigation. No merge is requested. |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 035edd3749
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| { operation: "query", sql, parameters }, | ||
| !wasTransaction || /^\s*COMMIT\b/i.test(sql), |
There was a problem hiding this comment.
Treat embedded commits as outcome-unknown
When the connection is already in a transaction and a compound request contains a later commit—for example, SELECT 1; INSERT INTO entries VALUES (1); COMMIT—this passes false because the SQL does not start with COMMIT. If the connection drops after PostgreSQL commits but before returning the response, the inserted mutation has not yet set pendingWrite, so loseConnection() publishes no receipt and cached snapshots can remain stale; batches capable of committing need the same unknown-outcome handling as standalone commits.
AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
This is a real pre-existing raw-batch outcome gap, rather than an introduced regression. I compared the original baseline c7640b5 and the exact main parent of the original failed CI run, 9c26ee3. Both already pass !wasTransaction || /^\s*COMMIT\b/i.test(sql) to request, and both only invalidate on connection loss when that flag is true. For a transaction whose first write is in the reported SELECT-leading compound request, the lost reply already bypasses the baseline's confirmed-COMMIT publication. This PR preserves that classification and its standalone-COMMIT safeguards. I am recording embedded-COMMIT loss classification as a separate follow-up; no runtime reproduction or fix is claimed here. The PR remains explicitly unmerged.
|
@clawsweeper re-review Head: 035edd3. The receipts owner confirmed REVIEW-OK through the coordinator. The new read-snapshot mutation guard preserves a sibling writer's pending receipt until real COMMIT, with a live regression that fails before the guard and passes afterward. SELECT-called write-function classification is documented. All three original shard-14 assertion signatures reproduce on exact CI merge 8fc7cf12666a61ae08b70c4de6e560fda29d3bc6 and its main parent 9c26ee3. The two original files now pass 11/11 in final-head shard 18. SQLite statement maps and steady warm counts remain unchanged. Independent review is clean. Final-head PG integrations passed. Infra hit a fixed 120-second Git-backup timeout followed by contention; unchanged focused Bun and Node 24 replays pass, and one failed-only timing recovery is running. The body preserves that failure and the increased full-window PG work. No parity claim or merge is requested. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…ions and read snapshots (openclaw#175498) * perf(database): restore PostgreSQL scoped replica reuse Publish only mutation-backed PostgreSQL receipts, reuse pure read snapshots, and keep raw-write and unknown-outcome invalidation. Preserve eager deferred writer locking and prove scoped, empty-commit, shared-anchor and concurrent read-then-write behavior. * fix(database): retain certified PostgreSQL CTE write scopes Keep modifying CTE DML inside its certified owner scope while SELECT INTO and uncertified raw writes retain broad invalidation. Align Workboard rollback assertions with SQLite’s monotonic mutation witness, retaining row persistence and known-versus-unknown outcome checks. Validation: 47 focused PostgreSQL tests, three affected Workboard cases, targeted typecheck and lint, and scoped-clean autoreview through P2. * fix(database): settle PostgreSQL transaction batches from server state * fix(database): distinguish PostgreSQL names from mutation keywords * test(database): align actor rollback witnesses across engines * fix(database): reject mutations in PostgreSQL read snapshots
What Problem This Solves
PostgreSQL invalidates session replicas after unrelated or empty transactions, repeating database work on warm Gateway turns.
User Impact
Warm PostgreSQL turns can reuse unaffected replicas. Pure worker reads use read-only snapshots; transactions that may write still take the eager store advisory lock before reading. No configuration, schema, durability, or SQLite token-format change.
Why This Change Was Made
Reuse the existing scoped receipt owner at PostgreSQL mutation and settlement boundaries instead of publishing a broad revision for every COMMIT. Transactions with no mutation publish no revision. Uncertified raw writes and schema work retain broad invalidation. Modifying CTE DML can borrow certified owner scopes; SELECT INTO remains broad. Attempted writes retain SQLite’s monotonic cache witness across rollback, and unknown outcomes retain conservative invalidation. Per-connection pending-write ownership prevents an idle read handle from settling another handle's write on a shared anchor.
The PostgreSQL bridge retains mutation evidence across SQL batches, including a trailing SELECT. It also returns the existing backend transaction status after each successful query, so a batch ending in COMMIT settles immediately and a transaction opened later in a batch stays pending. No extra SQL is issued; error and unknown-outcome handling are retained. The existing placeholder lexer distinguishes scoped modifying CTE DML from schema-changing SELECT INTO, including mixed batches. Qualified keyword columns stay pure reads; quoted identifiers and numeric literals are consumed as tokens so they cannot hide a following SELECT INTO. Pending scoped tokens now predict the same receipt that COMMIT publishes, using the existing SQLite composition unchanged.
Switch 21 clearly pure read callsites to the existing snapshot owner. Keep repairing/callback-uncertain deferred paths and maintenance metadata settlement callbacks intact; empty metadata transactions no longer invalidate replicas.
Evidence
Matched synthetic Gateway census on PostgreSQL 17 with pgvector; same frozen provider fixture and one-second settle as the earlier campaign. Traced request values are per warm turn, separate from full windows that include detached/background work. The matched baseline
c7640b58060and measured head02db95bb276each have three warm windows. The subsequent read-snapshot mutation guard is at035edd3749b; its final SQLite warm replay passed, and prior PostgreSQL performance results retain their measured revision. Earlier candidate replays remain separate prior-head evidence and are not pooled with the final head. Both use Node 24.22.0. The traced path improves, but SQLite request parity is not reached, and full-window database work increases. The completed coordinator review authorizes landing this scoped change; the remaining work is separate follow-up.c7640b58060)02db95bb276)02db95bb276)Traced requests decrease 17.4%, round trips 11.5%, and SQL 10.3%. Full-window values below include detached/background work and overlap the traced values; they are not additive.
02db95bb276)A separately labelled diagnostic run observed scoped session writes and confined broad raw-write publications to the state database; it found no broad agent-store settlement in those warm windows. Remaining PG-only work includes transcript anchors/hydration, activity summaries, ACP metadata, history, and detached row/membership/shared-fact refreshes. This PR does not establish their remaining invalidation cause or claim end-to-end work parity.
02db95bb276)No timeouts occurred in either C=64 run. The final candidate completed in 100.928 seconds. p95 is end-to-end latency among successful turns; throughput is successful turns divided by stage wall time. Final throughput is 4.00× the observed baseline, with 74.4% lower p95. These are shared-host observations: initial one-minute host load was 18.29 for the final candidate versus 50.28 for baseline, so the timing difference is not an isolated causal speedup. Both the invalidation class name and message fragment were checked; the baseline has one confirmed occurrence and the final candidate has none. All 320 final turns invoked session_status successfully, and every result named the final build. The earlier
96e11490d7ereplay also completed 320/320 turns, at 2.821 turns/s and 27,715.1 ms p95; that result remains separate prior-head evidence.Focused proof: 45 final-head SQLite receipt/scoped-token/commit-receipt/transaction tests, plus an earlier 92-test mixed-engine receipt/transaction/worker run; 53 PostgreSQL lexer/connection/reuse/locking tests plus 38 earlier decoder/connection checks after narrowing the decoder contract; three affected Workboard rollback/terminated-session cases. The concurrent deferred increment regression holds the eager lock before the first read and commits both updates without deadlock. Empty commits preserve unrelated scoped replicas. Live tests cover raw and scoped modifying CTEs, SELECT INTO, pending-to-committed tokens, shared-anchor read-handle close, completed/open transaction batches, and connection loss. SQLite exact transaction statement captures passed. The final-head SQLite Gateway repeats the baseline windows exactly: 62 SQL / 17 requests / 0 MAIN, then 61 / 16 / 0 twice; every normalized native SQL statement and count matches per phase. Core and infra test typechecks and targeted lint pass on the corrected source. Autoreview is scoped-clean through P2 after the final correction.
Initial CI exposed two Workboard assertions that expected rollback to preserve cache revisions. They now require SQLite’s existing monotonic attempted-write invalidation while preserving exact committed-row and known-versus-unknown outcome checks. The three affected cases pass locally. Hosted review also caught transaction-batch settlement and qualified-keyword false mutation hints; both have base-failing/live-head-passing regressions. Independent review caught quoted-name and numeric-literal SELECT INTO boundaries during the lexer repair; both were reproduced live and fixed before committing. A later infra CI run exposed the analogous old PG-only rollback expectation in the session-actor suite; the affected case now passes on both SQLite and PG, preserving durable data, authority-refusal, reopened state and transcript assertions. Final-head CI follows. No failed CI run was blindly rerun.
Footprint: 31 files, +459/-122, net +337 lines (production +82, tests +248, docs +7).
The changed-file test-type selector encountered main's existing root-budget limits (gateway-root 721; infra 733; limit 720). No test roots were added. The narrow core and infra compiler graphs pass; CI remains the broad proof.
SELECT-only caller audit (candidate line numbers)
src/agents/auth-profiles/inline-usage.worker.tssrc/config/sessions/session-accessor.sqlite-branches.worker.tssrc/config/sessions/session-accessor.sqlite-maintenance-transaction.tssrc/config/sessions/session-accessor.sqlite-transcript-reports.worker.tssrc/config/sessions/session-accessor.transcript-range.worker.tssrc/config/sessions/session-entry-cohort.worker.tssrc/config/sessions/session-entry-list.worker.tssrc/config/sessions/session-entry-read.worker.tssrc/config/sessions/session-history-read-operation.worker.tssrc/config/sessions/session-memory-entry.worker.tssrc/config/sessions/session-pending-input-history.kernel.tssrc/config/sessions/session-pending-input-source.kernel.tssrc/config/sessions/session-transcript-maintenance-read.tssrc/config/sessions/session-transcript.worker.tssrc/infra/restart-sentinel.read.worker.tssrc/sessions/session-state-events.read.worker.tssrc/state/openclaw-state-read-session-rows.worker.tsRouting-only follow-ups:
session-lifecycle-projection.worker.ts:202can repair canonical entries.session-accessor.sqlite-projection-read.ts:503,session-transcript-anchor-read.kernel.ts:356,session-accessor.sqlite-read.ts:202,352,385,417, andsession-canonical-key.ts:162,338retain callback/admission composition needing owner review.Receipts review follow-up
The receipts owner gave REVIEW-OK through the coordinator. A follow-up prevents a read snapshot from publishing a sibling writer's pending receipt when raw SELECT SQL trips the mutation lexer (for example, an unquoted
mergecolumn). The connection tracks its read-only transaction and rejects any classified mutation before write bookkeeping. The live regression fails before the fix and passes afterward; it checks that the writer's pending token remains private and the real COMMIT publishes it. The SELECT-call write-function classification requirement is documented; the current inventory contains no such function.The follow-up passes 54 targeted PostgreSQL tests, 45 SQLite receipt/token/transaction tests plus 18 mixed transaction/statement-capture tests, core/infra type checks, targeted lint/format, and independent autoreview through P3. Its exact-head Node 24.22.0 SQLite Gateway warm replay is 62 SQL / 17 requests / 0 MAIN, then 61 / 16 / 0 twice, identical to baseline. Every normalized statement/count map matches per phase; artifact hashes identify
035edd3749b.Shard-14 attribution
The earlier local baseline
c7640b58060was not the base that CI executed. Run 39036252400 checked out merge8fc7cf12666a61ae08b70c4de6e560fda29d3bc6, whose main parent is9c26ee3d6f581bf473dbe21a2a29b7dcf8e7aef1and PR parent is02db95bb27630f2e32ff269b61ca078707c6a1ad.With isolated frozen installs and the same pinned Bun four-worker archive group, both exact merge and exact main parent fail the archived-list assertion at line 79 with
materializedCountexpected 3 / actual 0; each finishes 27/28 tests. That signature is inherited. The exact Node diagnostics replay also fails both assertions on both refs: each finishes 5/7 tests and reportsmaterializedRowCountexpected 0 / actual 1 andreusedRowCountexpected 1 / actual 0. All three original shard-14 signatures are therefore inherited from the main parent; no passing replay is used for that attribution.8fc7cf126669c26ee3d6f5Archive replay: pinned Bun,
vitest.gateway-methods.config.ts, four workers, the CI three-file group (chat.abort-errors,sessions-list-archived,sessions-sharing.identities). Diagnostics replay: Node 24.22.0,vitest.gateway-database-workers.config.ts, two workers, onlysessions-read-diagnostics.test.ts. Both worktrees use isolated frozen-lockfile installs and remain source-clean. Linux Testbox capacity queued and was stopped; the exact-ref reproductions above ran on macOS. The archived and diagnostic assertion bytes match the Linux CI failures.Source inspection finds no loss of the named SQLite publication scopes: top-level read snapshots call the same deferred transaction helper, and the explicit surrounding post-commit scopes remain. No assertion was weakened or read-owner conversion reverted on the basis of a passing replay.
Final-head CI
Head
035edd3749bbd8afc8f32d4367117ee3116f5774is READY and unmerged. CI run 39038871417, after one failed-job recovery, has 59 successful jobs, 24 skipped, and no failures. Its exact merge is0a8aa289d6597e3b8133d01ce5797e04384b0728, main parentd23cd5d48f80a960d1851dceb05ac94f9d015f71.The first infra attempt passed 434 tests and failed two in Git backup: its long case exceeded the fixed 120-second deadline, then the next case hit state-owner contention. That case took 109.885 seconds in the preceding successful PG CI run. The backup implementation, test and key ownership fixtures are byte-identical between the original and final CI main parents; indirect main changes are not established as causal. Both cases share suite state, so an overlapping timed-out operation makes the subsequent contention plausible.
The unchanged final-head file passes focused PG17 replays under pinned Bun (16.722s and 4.220s; 46.32s total) and Node 24.22.0 (54.723s and 7.622s; 99.96s total). Those are macOS observations, not identical Linux reproduction or a code fix. Based on the fixed-deadline failure, prior near-deadline CI pass and complete focused replays, only failed CI jobs were rerun once as timing-flake recovery. The same head passed: the two Git-backup cases took 96.241s and 15.060s, and all 436 infra tests passed. No source, timeout, assertion or baseline was changed for the recovery; the original failure remains recorded.
Hosted review also identified connection loss after an embedded COMMIT in a SELECT-leading raw batch. The original baseline and exact CI main parent already use the same outcome classification and skip invalidation in the reported lost-reply case. That separate inherited gap is recorded for follow-up; no runtime reproduction or repair is claimed. The existing standalone-COMMIT safeguards remain intact.
A fresh hosted review was requested for this head; independent autoreview is already clean. The disposable local PG17 cluster was stopped, verified inactive, and only its exact data directory removed. All worktrees and proof artifacts remain for the coordinator. The completed coordinator review authorizes landing this scoped change; the remaining work is separate follow-up.
Landing decision
The coordinator gate is complete for
035edd3749bbd8afc8f32d4367117ee3116f5774: scoped receipts and read-snapshot mutation refusal are accepted; the eager writer lock stays. The receipts review is REVIEW-OK, shard-14 attribution is satisfied by matching failures on the exact CI merge and its main parent, and independent autoreview is clean. Final-head CI run 39038871417 attempt 2 is successful, including both PostgreSQL shards andopenclaw/ci-gate. No current CI exception is needed. The prior Git-backup timing-flake recovery and inherited shard-14 evidence remain recorded above.