Skip to content

fix(sqlite): preserve pending cold schema preparation - #170300

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-cold-schema-publication
Oct 12, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-cold-schema-publication

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A first database open can fail during temporary schema contention because the worker's schema-prepare exchange records the pending condition as a terminal refusal before the existing cold-open retry owner can handle it.

User Impact

Cold database opens can wait within their existing deadline for schema preparation to finish. Non-initial opens, companion databases, held schema leases, revoked authority, and ordinary transaction refusals remain terminal. No DDL, schema version, stored-row format, configuration, permission, or retention change is introduced.

Why This Change Was Made

Preserve the pending result across both sides of the existing port exchange before a schema lease or mutation body begins. The existing cold-open owner supplies the retry and deadline; this adds no owner, handshake, timeout, or write replay. The real-port regression covers retry, exhaustion, revocation, path boundaries, and held leases. No authority check is removed.

Candidate 2af1dd0ac7cab0cfaecfb49c6eeb176c40b006e0 changes two files (+161/−70). Its delta matches the isolated Codex-reviewed patch and preserves main's private receipt simplification. Main 6315f8adc18ab275a4c933c497113a65bc3f783b still has the exact preimages of both changed files, so there is no source overlap at that pin. The separate broker repair is excluded.

Evidence

Scoped qualification is complete. The exact-candidate update cell passed; skipped or historical jobs remain labeled according to their actual scope.

Boundary Result and scope
Current static qualification Run 38315479055, exact candidate: production/test types, all selected lint, source contracts, boundaries, baseline ratchets, and architecture passed. Madge reported zero cycles and Kysely guardrails passed. The run completed with 51 successful, eight failed, and 25 skipped jobs. Build-artifacts and published-driver update explicitly skipped.
Current Knip Job 115031514632 failed its full-tree unused-file scan on the two Control UI benchmark files described below. Production/export scans completed; production unused-file scan passed with zero entries. The inherited failure is repaired by landed #170347 (0d1e09b7913219091baae888feb7fcdec2b06d2c): selected-head run 38318772519 executed deadcode:full with all five file/export groups at zero, Madge at zero cycles, and applicable static gates passing. This does not change the failed candidate job into a pass.
Cold-admission regression All 13 cases, including eight schema cases, passed in job 114956450854 on a prior composition with identical changed-source blobs. That job was red on four usage-cache fixture assertions. Bounded source/input review qualifies this retained pass for the admission change; no exact-candidate execution is claimed.
Operation-admission sibling 26/26 passed in job 115001073266, on a prior composition with identical owner and test blobs; bounded source/input review qualifies this focused reuse, not exact-candidate execution.
Node-host config sibling pnpm test src/node-host/config.test.ts --maxWorkers=1: 13/13 on composition 7ac691f4a04689c9711192262ad0bc3c73b6ad92, 175.41 s runner / 606.8 s wrapper. This included the separate broker repair and does not isolate either repair's effect.
Required update cell Job 115046869851 passed on verified candidate 2af1dd0ac7cab0cfaecfb49c6eeb176c40b006e0: published 2026.10.2 → candidate 2026.10.2, readiness 200, running version verified, and durable/incognito before-and-after stages all exited zero. One attempt, 658 seconds; lane and service cleanup completed.

The focused reuse compares complete owners/tests and 63 source/config/package inputs. Infra runner/setup inputs and test-loader versions match. Identified drift consists of credential cleanup, opt-in lock-diagnostic removal, lifecycle drain classification, unused Postgres/actor-maintenance paths, a TypeBox bump outside the imported standalone normalization helpers, and a PostCSS patch outside these stylesheet-free tests. The operation sibling calls unchanged settlement directly, not the changed actor dispatch path. These changes do not alter the focused admission/receipt behavior being asserted.

The preceding cached-main audit at b68c44ca8f3ca9d0d4bccb7b620f867547e4cd55 found 60 of the 63 retained inputs unchanged since the previous audit. The three changed inputs come from #170235: optional worker timing in broker request/reply functions, its type-only contract fields, and an early return for empty registry installs. The retained tests call admission and settlement directly, outside the changed broker functions. Schema cases do not install registry payloads; creation cases do not depend on an empty install publishing a revision or cleaning unrelated retired records, and new descriptor creation still publishes its facts. The two-file patch retains the same reviewed patch ID. Additional lockfile drift adds only Control UI dependencies, and workflow drift selects WebKit for another UI suite. This supports the same bounded reuse; it does not qualify general registry housekeeping, worker timing, or the merged runtime.

The preceding source audit pinned 0d1e09b7913219091baae888feb7fcdec2b06d2c, after #169622 and the Knip repair. All 63 retained inputs are unchanged since the preceding audit. The #169622 session/authority contract changes do not enter the two focused tests: cold cases construct the admission owner and real port directly, while the operation sibling uses native in-memory transactions and direct settlement. A supporting static-relative import census found no #169622 changes among 133 cold-test modules, 213 operation-test modules, or 25 shared-setup modules. Its only intersections in the 47-module infra-config census are two lists selecting other tests; neither focused file’s selection or isolation changes. The unchanged owners and actual call paths preserve the bounded 13/13 and 26/26 reuse; #169622 does not itself require integration or fresh execution for those assertions. This is not a complete dynamic import graph and does not qualify its session/authority integration, the broader Gateway, or an installed update. The separate exact-candidate update pass above supplies installed-update evidence at its selected SHA.

The final source pin is 6315f8adc18ab275a4c933c497113a65bc3f783b. Both candidate-file preimages and all 63 retained inputs are unchanged from the preceding audit, including the intermediate a00f582 check. The direct admission/port and transaction/settlement boundaries preserve the same bounded focused-test reuse. The candidate imports/exports are unchanged, so this repair needs no fresh graph qualification. The passing update cell qualifies the unchanged candidate package; it is not represented as execution of this later main or a merged tree.

The prior published-driver cell job 115009067830 passed published 2026.10.2 → candidate 2026.10.2 with readiness 200 and running-version verification. It is historical coverage only: dependencies and update/Doctor/state-migration owners have changed since that composition. The subsequent composition omitted this patch and supplies no cold-schema update proof.

The red tests are classified separately against completed scheduled-main run 38311154418, head 11a12460482f7790aca049243de04cb9193e87c2:

  • Four session-cost-usage-cache.creation-race.test.ts cases match historical main's offline-maintenance error instead of the expected creation/schema-refresh refusal. Current main contains fixture fix a919b2151d5f6487689d5dd032032a9280231e71, which explicitly prepares shared storage while keeping the competing agent database cold; its exact postimage is verified. No new runtime pass is claimed by this source audit.
  • Seventeen board-progress.write-admission.test.ts cases match historical main's unprepared user-profile catalog, followed by retirement and recursive instrumentation errors. Node/Bun stack formatting differs; the named cases and primary error match. Current main’s refactor: move bundled session reads and authority into workers #169622 fixture prepares the role schema/catalog and restores instrumentation even when a request rejects; no new executed pass is claimed here.
  • The default-store rotation case in session-accessor.test.ts matches main's expected session-rebound / received undefined failure. Main already contains fixture fix be7696c5e9bca74537156e5dc326fb71ca81aa02; the candidate contains its exact preimage.
  • Seven users-preferences.test.ts cases fail before dispatch because runtime config is unprepared. Their fixtures are already corrected on main by 7e596d5128cc1f678a8463cc9e39d6b27fd179e3. This is source-verified fixture debt; no executed scheduled-main signature was located or claimed.
  • Knip reports scripts/bench-control-ui-cold-load.ts and ui/src/test-helpers/control-ui-cold-load-probes.ts. The flagged files, all-exports config and scan driver remain unchanged; current main’s root Knip config now includes the missing executable entry. Commit 5559404e2da9eb32abe8bbfd74f159d605630f57 introduced the documented path-invoked benchmark without a Knip root; it imports the flagged helper. The separate Knip repair also registers the path-invoked Linux onboarding Vite fixture. Its exact-head manual run 38318772519 passed the full dead-code scan, Madge and applicable statics, and the repair is merged. The inherited static failure is resolved by that landed fix. This is a real static failure, not infrastructure.

The exact-candidate real-Gateway job also timed out in background-work.real-gateway.e2e.test.ts, while 16 other cases passed. The candidate contains the exact two-file preimage of main fix 9b54cd97281693edf641d320a7a6a9a44d6e2820: its observer omits chat.startup, which appears successful in the timeout diagnostics. This is a known, already-fixed observer defect; the compact log does not prove it was the sole cause of the timeout. The 14 failures in media-generate-background-retention.test.ts are source-attributed to the older runtime-config fixture, already repaired on main by 4944a6df77080f328fed59ee22384e3ee45d522f. The candidate writes config without preparing its runtime snapshot: admission returns null before requester lookup in eight cases, and six late-revocation cases wait for a requester-read spy that is never reached. The existing fix prepares the snapshot after all four fixture writes, without weakening assertions; #169622 now sets that fixture snapshot directly. Both production media owners remain unchanged. The session-accessor and users-preferences fixtures also gained explicit early snapshot preparation in #169622; their earlier failures remain historical evidence, not current-main failures or passes. This is historical fixture debt, not infrastructure. The hidden config exception is not printed in this job, and no pass on the repaired version is claimed.

One isolated Codex review completed with no actionable P0–P2 findings; the reviewed delta is unchanged. Source formatting and diff checks passed. Direct basic oxlint reports max-lines at 711 > 700; the repository's native CI lint policy makes that rule advisory, and current core lint passed. The raw basic lint command is not reported as passing.

This is a correctness repair, not a SQL-reduction change. It adds no SQL call or public SDK surface. No numeric statement/request or main-thread T1 reduction, standalone cold-file wall time, aggregate green CI result, or exact-head check:changed pass is claimed.

Preserve temporary schema-admission contention across the worker prepare exchange before a schema lease is acquired. Reuse the existing cold-open deadline without recording a terminal operation refusal.

Keep non-initial opens, companion databases, held leases, revoked authority and transaction requests terminal. Extend the real-port regression while preserving the fresh concurrent node configuration test.
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves temporary schema-preparation contention across the worker admission exchange so initial database opens can retry within their existing deadline.

Example: An initial open of state.sqlite encounters temporary schema contention with 100 ms available.

  • Before: The host records a terminal refusal, preventing the cold-open owner from retrying.
  • After: The worker receives a pending error and retries within the same budget, checking current authority again before proceeding.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-correct with meaningful boundary coverage; independently inspectable runtime evidence remains limited, and retained composed-head results do not establish final-head CI success.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authored classification exempts this PR from the ordinary contributor-proof gate; retained reports exercise the changed MessagePort exchange, and GitHub confirms the V27 published-driver update succeeded on matching source blobs, while detailed runtime logs were inaccessible through this host.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An initial database open can fail during temporary schema contention despite having an existing bounded retry budget.
Reason: The focused repair restores the existing cold-open contract, preserves the same authority owner, and adds no user-facing option or public API; the supplied maintainer authorship establishes direction.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: current main still turns temporary schema-preparation contention into terminal refusal, and this focused repair preserves the existing retry owner without weakening authority checks. No actionable introduced defects were found.

Priority: P2
Reviewed head: 2af1dd0ac7cab0cfaecfb49c6eeb176c40b006e0

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied update smoke does not establish contention recovery through a shipped entry point, and no pre-fix failing run of the new schema cases is supplied.
Agent review details

How this fits together

SQLite workers request schema permission through a private MessagePort; the host checks the retained job and database authority, then returns a grant, terminal refusal, or retryable pending result.

flowchart TD
  A[Initial database open] --> B[Cold admission deadline]
  B --> C[Worker preparation request]
  C --> D[Host authority checks]
  D --> E[Schema lease and grant]
  D --> F[Pending contention]
  F --> B
  D --> G[Terminal refusal]
Loading

Technical review

Best possible solution:

Preserve pending schema contention through the existing exchange and let the cold-open owner enforce its deadline while retaining terminal authority refusals.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes the failure path: a pending schema error becomes a terminal host refusal and worker owner refusal before the existing cold-open retry handler can receive it; no tests or target code were run during this read-only review.

Is this the best way to solve the issue?

The repair addresses the producer and consumer of the lost pending result, reuses the existing deadline, and excludes cases where retry could replay work or borrow another database's authority.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 22443525fa0f.

Provenance checked

  • Host schema-preparation refusal changes intended behavior with a stated reason (8b16e53: Schema preparation remains under the host's live database authority while ordinary transaction exclusion belongs to SQLite.)
  • Worker refusal provenance changes intended behavior with a stated reason (a682168: Preserve terminal admission refusal provenance during worker recovery; this PR keeps that recording for terminal outcomes and separates retryable preparation contention.)
  • Cold-admission regression coverage keeps the original intent (fa23864: Keep initial primary creation contention retryable within the existing budget without replaying a write or accepting revoked authority.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned patch and merge result: The introduced production changes preserve pending contention on both sides of the existing exchange; the verified test merge contains the same focused production delta. (src/infra/sqlite-worker-operation-admission.ts:454, 2af1dd0ac7ca)
  • Current main still has the failure path: Current main unconditionally calls refuse when schema preparation throws and records every non-granted worker outcome as an owner refusal. (src/infra/sqlite-worker-operation-admission.ts:454, 22443525fa0f)
  • Authority and retry boundaries: The broker supplies coldOpenPath only for an initial primary open; retries repeat request and access checks, while existing leases, other targets, and ordinary transactions remain terminal. (src/infra/sqlite-worker-broker-reply.ts:198, 2af1dd0ac7ca)
  • Focused behavioral coverage: The extended real-port table retains creation coverage and adds schema retry, exhaustion, revocation, target, held-lease, acquisition-contention, and transaction controls without production test hooks. (src/infra/sqlite-worker-cold-admission.test.ts:19, 2af1dd0ac7ca)
  • Retained candidate identity and update result: GitHub contents metadata verifies that V17 and V27 have identical production, cold-admission-test, and sibling-test blobs to this head. The linked V27 published-driver update job succeeded. Its detailed logs redirect to a host blocked by the review environment, so readiness and state-survival details were not independently inspected. (83712e949c88)
  • Original intent and feature history: The earlier cold-creation repair explicitly preserved bounded retries before creation; this PR extends that intent to schema preparation. Historical admission-delay work in fix: prevent SQLite admission refusals during Gateway delays #154682 preserves live-owner decisions rather than treating delay as revocation. The follow-history search reached an unavailable creation object; introduction beyond that boundary remains unknown. (src/infra/sqlite-worker-operation-admission.ts, fa23864b6435)

PR surface

Source +35, Tests +56. Total +91 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 38 3 +35
Tests 1 123 67 +56
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 161 70 +91

Labels

Label changes:

  • add P2: Temporary contention can fail an initial database open; the repair has a narrow admission boundary and introduces no configuration or persisted-format changes.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Temporary contention can fail an initial database open; the repair has a narrow admission boundary and introduces no configuration or persisted-format changes.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 12, 2026, 6:04 PM ET / 22:04 UTC.

@steipete
steipete merged commit 3c79d11 into main Oct 12, 2026
212 of 224 checks passed
@steipete
steipete deleted the dbasync/redmain-cold-schema-publication branch October 12, 2026 23:23
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
## What Problem This Solves

A first database open can fail during temporary schema contention because the worker's schema-prepare exchange records the pending condition as a terminal refusal before the existing cold-open retry owner can handle it.

## User Impact

Cold database opens can wait within their existing deadline for schema preparation to finish. Non-initial opens, companion databases, held schema leases, revoked authority, and ordinary transaction refusals remain terminal. No DDL, schema version, stored-row format, configuration, permission, or retention change is introduced.

## Why This Change Was Made

Preserve the pending result across both sides of the existing port exchange before a schema lease or mutation body begins. The existing cold-open owner supplies the retry and deadline; this adds no owner, handshake, timeout, or write replay. The real-port regression covers retry, exhaustion, revocation, path boundaries, and held leases. No authority check is removed.

Candidate `2af1dd0ac7cab0cfaecfb49c6eeb176c40b006e0` changes two files (+161/−70). Its delta matches the isolated Codex-reviewed patch and preserves main's private receipt simplification. Main `feb893ca13908081c27230530cc88c59ac7c0158` still has the exact preimages of both changed files, so there is no source overlap at that pin. The separate broker repair is excluded.

## Evidence

Scoped qualification is complete. The exact-candidate update cell passed; skipped or historical jobs remain labeled according to their actual scope.

| Boundary | Result and scope |
| --- | --- |
| Current static qualification | [Run 38315479055](https://github.com/openclaw/openclaw/actions/runs/38315479055), exact candidate: production/test types, all selected lint, source contracts, boundaries, baseline ratchets, and architecture passed. Madge reported zero cycles and Kysely guardrails passed. The run completed with 51 successful, eight failed, and 25 skipped jobs. Build-artifacts and published-driver update explicitly skipped. |
| Current Knip | Job 115031514632 failed its full-tree unused-file scan on the two Control UI benchmark files described below. Production/export scans completed; production unused-file scan passed with zero entries. The inherited failure is repaired by landed openclaw#170347 (`73611b92e96a103e7ecd4260dd2583150f90a1cd`): selected-head run 38318772519 executed `deadcode:full` with all five file/export groups at zero, Madge at zero cycles, and applicable static gates passing. This does not change the failed candidate job into a pass. |
| Cold-admission regression | All 13 cases, including eight schema cases, passed in [job 114956450854](https://github.com/openclaw/openclaw/actions/runs/38292637049/job/114956450854) on a prior composition with identical changed-source blobs. That job was red on four usage-cache fixture assertions. Bounded source/input review qualifies this retained pass for the admission change; no exact-candidate execution is claimed. |
| Operation-admission sibling | 26/26 passed in [job 115001073266](https://github.com/openclaw/openclaw/actions/runs/38306200884/job/115001073266), on a prior composition with identical owner and test blobs; bounded source/input review qualifies this focused reuse, not exact-candidate execution. |
| Node-host config sibling | `pnpm test src/node-host/config.test.ts --maxWorkers=1`: 13/13 on composition `7ac691f4a04689c9711192262ad0bc3c73b6ad92`, 175.41 s runner / 606.8 s wrapper. This included the separate broker repair and does not isolate either repair's effect. |
| Required update cell | [Job 115046869851](https://github.com/openclaw/openclaw/actions/runs/38316114387/job/115046869851) passed on verified candidate `2af1dd0ac7cab0cfaecfb49c6eeb176c40b006e0`: published 2026.10.2 → candidate 2026.10.2, readiness 200, running version verified, and durable/incognito before-and-after stages all exited zero. One attempt, 658 seconds; lane and service cleanup completed. |

The focused reuse compares complete owners/tests and 63 source/config/package inputs. Infra runner/setup inputs and test-loader versions match. Identified drift consists of credential cleanup, opt-in lock-diagnostic removal, lifecycle drain classification, unused Postgres/actor-maintenance paths, a TypeBox bump outside the imported standalone normalization helpers, and a PostCSS patch outside these stylesheet-free tests. The operation sibling calls unchanged settlement directly, not the changed actor dispatch path. These changes do not alter the focused admission/receipt behavior being asserted.

The preceding cached-main audit at `2be43c633c855851ffd8f6f8e3cba47038d2b9fb` found 60 of the 63 retained inputs unchanged since the previous audit. The three changed inputs come from openclaw#170235: optional worker timing in broker request/reply functions, its type-only contract fields, and an early return for empty registry installs. The retained tests call admission and settlement directly, outside the changed broker functions. Schema cases do not install registry payloads; creation cases do not depend on an empty install publishing a revision or cleaning unrelated retired records, and new descriptor creation still publishes its facts. The two-file patch retains the same reviewed patch ID. Additional lockfile drift adds only Control UI dependencies, and workflow drift selects WebKit for another UI suite. This supports the same bounded reuse; it does not qualify general registry housekeeping, worker timing, or the merged runtime.

The preceding source audit pinned `73611b92e96a103e7ecd4260dd2583150f90a1cd`, after openclaw#169622 and the Knip repair. All 63 retained inputs are unchanged since the preceding audit. The openclaw#169622 session/authority contract changes do not enter the two focused tests: cold cases construct the admission owner and real port directly, while the operation sibling uses native in-memory transactions and direct settlement. A supporting static-relative import census found no openclaw#169622 changes among 133 cold-test modules, 213 operation-test modules, or 25 shared-setup modules. Its only intersections in the 47-module infra-config census are two lists selecting other tests; neither focused file’s selection or isolation changes. The unchanged owners and actual call paths preserve the bounded 13/13 and 26/26 reuse; openclaw#169622 does not itself require integration or fresh execution for those assertions. This is not a complete dynamic import graph and does not qualify its session/authority integration, the broader Gateway, or an installed update. The separate exact-candidate update pass above supplies installed-update evidence at its selected SHA.

The final source pin is `feb893ca13908081c27230530cc88c59ac7c0158`. Both candidate-file preimages and all 63 retained inputs are unchanged from the preceding audit, including the intermediate `01bf2a7` check. The direct admission/port and transaction/settlement boundaries preserve the same bounded focused-test reuse. The candidate imports/exports are unchanged, so this repair needs no fresh graph qualification. The passing update cell qualifies the unchanged candidate package; it is not represented as execution of this later main or a merged tree.

The prior published-driver cell [job 115009067830](https://github.com/openclaw/openclaw/actions/runs/38306200884/job/115009067830) passed published 2026.10.2 → candidate 2026.10.2 with readiness 200 and running-version verification. It is historical coverage only: dependencies and update/Doctor/state-migration owners have changed since that composition. The subsequent composition omitted this patch and supplies no cold-schema update proof.

The red tests are classified separately against completed scheduled-main run [38311154418](https://github.com/openclaw/openclaw/actions/runs/38311154418), head `60e5d43fa25737d62aa6ac7bdb7a11f9d936bdcb`:

- Four `session-cost-usage-cache.creation-race.test.ts` cases match historical main's offline-maintenance error instead of the expected creation/schema-refresh refusal. Current main contains fixture fix `b506924d58fc9447ab35a821c2029f0c8e110cbf`, which explicitly prepares shared storage while keeping the competing agent database cold; its exact postimage is verified. No new runtime pass is claimed by this source audit.
- Seventeen `board-progress.write-admission.test.ts` cases match historical main's unprepared user-profile catalog, followed by retirement and recursive instrumentation errors. Node/Bun stack formatting differs; the named cases and primary error match. Current main’s openclaw#169622 fixture prepares the role schema/catalog and restores instrumentation even when a request rejects; no new executed pass is claimed here.
- The default-store rotation case in `session-accessor.test.ts` matches main's expected `session-rebound` / received `undefined` failure. Main already contains fixture fix `5e848de8695e9e8a93ac431447c11de2ffb02a6b`; the candidate contains its exact preimage.
- Seven `users-preferences.test.ts` cases fail before dispatch because runtime config is unprepared. Their fixtures are already corrected on main by `95f8e973c07b5984c2760dcc3429cfae9a26ae86`. This is source-verified fixture debt; no executed scheduled-main signature was located or claimed.
- Knip reports `scripts/bench-control-ui-cold-load.ts` and `ui/src/test-helpers/control-ui-cold-load-probes.ts`. The flagged files, all-exports config and scan driver remain unchanged; current main’s root Knip config now includes the missing executable entry. Commit `e35494d3fdfc92cedccd7273910de78b28571aa2` introduced the documented path-invoked benchmark without a Knip root; it imports the flagged helper. The separate Knip repair also registers the path-invoked Linux onboarding Vite fixture. Its exact-head manual run 38318772519 passed the full dead-code scan, Madge and applicable statics, and the repair is merged. The inherited static failure is resolved by that landed fix. This is a real static failure, not infrastructure.

The exact-candidate real-Gateway job also timed out in `background-work.real-gateway.e2e.test.ts`, while 16 other cases passed. The candidate contains the exact two-file preimage of main fix `3dcebb24ab46297acdf43ca08acf2c715f8b277d`: its observer omits `chat.startup`, which appears successful in the timeout diagnostics. This is a known, already-fixed observer defect; the compact log does not prove it was the sole cause of the timeout. The 14 failures in `media-generate-background-retention.test.ts` are source-attributed to the older runtime-config fixture, already repaired on main by `8f447c5e83cb39fd74840eace70034c8ad1c3dd6`. The candidate writes config without preparing its runtime snapshot: admission returns null before requester lookup in eight cases, and six late-revocation cases wait for a requester-read spy that is never reached. The existing fix prepares the snapshot after all four fixture writes, without weakening assertions; openclaw#169622 now sets that fixture snapshot directly. Both production media owners remain unchanged. The session-accessor and users-preferences fixtures also gained explicit early snapshot preparation in openclaw#169622; their earlier failures remain historical evidence, not current-main failures or passes. This is historical fixture debt, not infrastructure. The hidden config exception is not printed in this job, and no pass on the repaired version is claimed.

One isolated Codex review completed with no actionable P0–P2 findings; the reviewed delta is unchanged. Source formatting and diff checks passed. Direct basic oxlint reports `max-lines` at 711 > 700; the repository's native CI lint policy makes that rule advisory, and current core lint passed. The raw basic lint command is not reported as passing.

This is a correctness repair, not a SQL-reduction change. It adds no SQL call or public SDK surface. No numeric statement/request or main-thread T1 reduction, standalone cold-file wall time, aggregate green CI result, or exact-head `check:changed` pass is claimed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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