Repository navigation
test: cover reclamation and child-abort persistence - #149031
Conversation
Exercise conversation directory, synthetic send, and durable completion while native reclamation awaits commit authorization. Cover admitted direct child cancellation through successful and failed terminal persistence. Mutation controls verify sensitivity to bypassed writer admission and restart misclassification; they do not diagnose current main as defective. Related: #130741
|
🦞👀 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: needs maintainer review before merge. Reviewed September 17, 2026, 6:05 AM ET / 10:05 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds integration tests for conversation writes during native SQLite cleanup and strengthens child-cancellation tests to verify persisted outcomes. Merge readiness✅ Ready for maintainer review Keep open: the coverage remains useful and distinct from the merged fixes. No actionable defect was found, and the previously reviewed test changes are unchanged. Priority: P2 Review scores
Verification
How this fits togetherGateway conversation operations and session lifecycle events write to OpenClaw’s SQLite storage. These tests check that background reclamation and child cancellation preserve write ordering, durable results, and resource cleanup. flowchart TD
A[Conversation operations] --> C[Database write admission]
B[Native reclamation worker] --> C
C --> D[SQLite storage]
E[Child cancellation] --> F[Lifecycle persistence]
F --> D
D --> G[Reopened state and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +242. Total +242 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain focused integration coverage at the existing storage and lifecycle owners, with broader live-performance acceptance tracked in the linked campaign. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds coverage for existing behavior and explicitly does not claim a current-main defect; tests were not executed during this read-only review. Is this the best way to solve the issue? Yes: extending existing suites with real storage and admission owners covers interactions that isolated writer tests do not, without adding production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ee5c26f4080. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Preserve the published two-file regression coverage and its ancestry while refreshing the mainline base for current checks.
|
Merged via squash.
|
* test(gateway): cover native reclamation and abort admission Exercise conversation directory, synthetic send, and durable completion while native reclamation awaits commit authorization. Cover admitted direct child cancellation through successful and failed terminal persistence. Mutation controls verify sensitivity to bypassed writer admission and restart misclassification; they do not diagnose current main as defective. Related: openclaw#130741 * fix(ci): preserve shard planning without map spreads
Related: #130741
What Problem This Solves
Adds integration coverage for conversation writes and child cancellation while native database reclamation and terminal persistence overlap.
User Impact
No user-visible behavior change. This PR adds regression coverage only.
Why This Change Was Made
The tests exercise existing Gateway and storage owners together, checking durable results, direct-cancellation state after reopening storage, native Worker exit, and lease cleanup.
Evidence
All 29 tests passed across both edited suites and the worker-coordination sibling on the updated mainline base. The full selected
check:changedgate also passed. The two reviewed test patches are unchanged, and their existing mutation controls remain valid sensitivity evidence. No live latency or production performance improvement is claimed.