Repository navigation
test(matrix): isolate released account repair proof - #163183
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: needs changes before merge. Reviewed October 1, 2026, 10:46 PM ET / October 2, 2026, 02:46 UTC. ClawSweeper reviewWhat this changesThe PR replaces a full Doctor CLI subprocess in the Matrix upgrade test with direct calls to the registered plugin migration while retaining the released SQLite fixture and persistence checks. Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this focused test improvement remains useful, preserves the migration invariants, and has no identified blocking defect. The author is a repository member, so automatic closure is also excluded. Priority: P2 Review scores
Verification
How this fits togetherDoctor loads plugin migration contracts to repair older OpenClaw state. Matrix owns its account databases; this test checks that repair preserves account data and lets the sync store resume writing. flowchart TD
A[Released SQLite fixture] --> B[Matrix migration detection]
B --> C[Active account database]
B --> D[Excluded archive]
C --> E[Schema repair]
E --> F[Preserved account rows]
F --> G[Sync store write and reopen]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -85. Total -85 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep released-data repair coverage at the Matrix migration boundary, with Doctor dispatch and contract loading covered by their core owners. Do we have a high-confidence way to reproduce the issue? No independently executed reproduction was established in this read-only review; the captured body identifies the failing release run, and source confirms the removed full-CLI path. Is this the best way to solve the issue? Yes: the registered Matrix migration exercises the retained upgrade invariants without duplicating core Doctor dispatch and loading coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 949f3f52121b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
(cherry picked from commit d8f221e) Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: RomneyDa <[email protected]>
…w#163968) (cherry picked from commit d8f221e) Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes: the Matrix released-account Doctor migration test spends 96–120 seconds booting the entire CLI and times out in the diagnostics drain before it reaches the migration proof.
User Impact
User impact: release validation still verifies the shipped Matrix account-state upgrade, archive exclusion, stale-writer rejection, row preservation, and repaired-store reopen behavior without a redundant full CLI boot.
Why This Change Was Made
Core Doctor tests already own CLI dispatch and plugin-contract loading. This suite now exercises the registered Matrix migration at its plugin-owned boundary, keeping the released SQLite fixture and all migration invariants local to Matrix.
Evidence
pnpm test extensions/matrix/doctor-contract-api.account-state.test.ts --maxWorkers=1: 1/1 passed in 16.97s; migration body completed in 1.34s.git diff --checkpassed except for the repository's pre-existing 11 expired plugin-boundary compatibility records.The additional full CLI supporting run was stopped during its unrelated 11-stage build; the existing core dispatch and focused contract proofs cover that boundary.