Repository navigation
refactor(scripts): share SQLite reliability message waits - #146900
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 13, 2026, 1:43 PM ET / 17:43 UTC (Revision 6). ClawSweeper reviewWhat this changesShares SQLite reliability probes’ worker-message waits and releases listeners and timers when callbacks throw, with focused lifecycle regression coverage. Merge readiness⛔ Blocked before merge - 1 item remains The PR remains useful and has no actionable correctness findings. Current main retains the callback-failure resource leak. The previous migration-proof blocker is inapplicable because no persistent-data contract changes. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s SQLite reliability scripts coordinate child workers to exercise snapshot, restore, repair, and crash recovery. The shared waiter receives worker messages and failures, then releases its resources before returning results to the probes. flowchart TD
A[Reliability probe] --> B[Register worker wait]
B --> C[Optional worker command]
C --> D[Worker messages]
D --> E{Expected message or failure}
E -->|Unrelated message| D
E -->|Match or failure| F[Remove listeners and timer]
F --> G[Continue probe or report error]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +143, Other -114. Total +29 across 8 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep IPC settlement in the existing process lifecycle owner while preserving each probe’s predicates, deadlines, diagnostics, and recovery checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: a synchronous action exception rejects the current-main writer wait without clearing its timer or listeners. This review did not execute that scenario locally. Is this the best way to solve the issue? Yes. Extending the existing lifecycle owner removes duplicated settlement logic and fixes exception cleanup without changing persistent-data or recovery contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9542320aa5cd. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review Please review current head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7341604 to
4dd9546
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
* commit '201f11afefdb19a9c75e9d3542bf7425c80df7a7': (141 commits) fix: keep catalog discovery scoped and execution lazy (#147159) fix: serialize reclamation worker shutdown with foreground writes (#147178) test(sessions): cover abrupt committed transcript recovery (#143984) fix: stop transcript storms during context overflow recovery (#147202) fix: reduce CPU overhead for small history and usage reads (#147205) fix: resume tasks after tools finish and the model times out (#147203) refactor(scripts): share SQLite reliability message waits (#146900) feat(exec): configure approval reviewer thinking and fastMode (#147192) test: remove redundant Bonjour module headers (#146981) refactor: share streaming media tail boundary update (#146989) refactor(tui): classify resume candidates once (#146983) improve: skip unused toast dismissal work (#147196) fix(linux): recover saved remote connections without replacing active sessions (#146047) fix: doctor stays silent when Windows state dir is under OneDrive (#123720) feat: announce successful Daybreak retries (#147146) feat(code-mode): reuse results across code cells (#147154) refactor(test): reuse CLI plugin fixture writer (#147186) test: skip unused compiler setup in routing fixtures (#147194) test: reuse LINE webhook runtime fixture (#146710) fix(code-mode): check automation and process result types (#147143) ...
* commit '2d87daf04b78992382299d552f15ac84a86a23ed': (1815 commits) fix(ui): distinguish tool activity with semantic icons (#147207) fix(linux): recover completed Quick Chat replies without resending (#146048) feat(desktop): unify Tauri title bar and window controls (#147097) refactor(test): share plugin fixture server shims (#147225) perf(gateway): defer worker workspace execution imports (#143496) fix(gateway): post-ack webhook work fails with "Async work scope is closed" (#144801) refactor(scripts): centralize upgrade survivor version floors (#146975) fix(ci): check publication registries before FRV fanout (#147184) fix(qa): align system-agent delegation with channel contracts (#145905) improve: reduce repeated chat message identity work (#147210) fix(channels): remove stale pre-tool previews from Slack and Telegram (#147106) fix: keep catalog discovery scoped and execution lazy (#147159) fix: serialize reclamation worker shutdown with foreground writes (#147178) test(sessions): cover abrupt committed transcript recovery (#143984) fix: stop transcript storms during context overflow recovery (#147202) fix: reduce CPU overhead for small history and usage reads (#147205) fix: resume tasks after tools finish and the model times out (#147203) refactor(scripts): share SQLite reliability message waits (#146900) feat(exec): configure approval reviewer thinking and fastMode (#147192) test: remove redundant Bonjour module headers (#146981) ...
…46900) * refactor(scripts): share SQLite reliability message waits * fix(scripts): preserve IPC rejection values without lint errors * test(scripts): register IPC rejection suppression
What Problem This Solves
When a SQLite reliability probe's start callback throws, its IPC wait rejects but leaves its listeners and timer active.
User Impact
Internal reliability tooling now releases those resources on callback failure. Worker predicates, timeout diagnostics, crash behavior, and database checks are preserved; no migration or operator action is required.
Why This Change Was Made
Six copied IPC waiters now share the existing process lifecycle owner. Each caller keeps its message filter, deadline, and lazy diagnostics; restore filesystem barriers stay with the restore proof. Production changes: −114 lines; tests: +143 lines.
Evidence
4dd954670e8e8f7ecc12c9f89691ae610f709a48, CI attempt 1 passed, including all 9 lifecycle tests, all 7 existing benchmark tests, all 4 suppression-audit tests, lint and pinned formatting. The required aggregate gate passed.Data Compatibility
The named “Add data-model compatibility proof” request is addressed by unchanged-contract evidence: database operations, schemas, schema versions, transactions, worker-side repair logic, crash scheduling, physical restore barriers and report shapes are unchanged. The exact-current-head real crash/recovery suite passed as linked above. This change only centralizes IPC settlement and releases listeners/timers on synchronous callback failure, so there is no data migration to exercise.
The latest exact-head review, revision 5, explicitly confirms that the earlier migration request is inapplicable and that no migration or upgrade exercise is warranted. Its generated checklist repeats that request; the unchanged contracts and current-head execution above provide its concrete disposition. No remaining source finding or rank-up move was reported.