Repository navigation
refactor(matrix): retire pre-July JSON sidecar migrations - #163383
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 October 2, 2026, 4:40 AM ET / 08:40 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Matrix plugin removes five pre-July JSON importers, preserves retired files with intermediate-upgrade guidance, and retains supported SQLite, credential, and sync-cache migrations. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: the cleanup remains distinct from current main, and no blocking code defect was identified. The earlier upgrade-safety evidence gap remains unresolved. Priority: P2 Review scores
Verification
How this fits togetherMatrix stores account identity, encryption material, sync state, and replay markers locally. Doctor repairs older state before the Matrix client uses it to connect and process messages. flowchart TD
A[Existing Matrix account state] --> B[Doctor and client admission]
B --> C{Supported format?}
C -->|Yes| D[SQLite state and supported imports]
D --> E[Matrix client and message processing]
C -->|No| F[Preserve files and explain recovery]
F --> G[Intermediate release migration]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -674, Tests -75, Docs +3. Total -746 across 24 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the plugin-owned retirement and recovery guidance, with verified upgrade and rollback behavior across the published updater boundary. Do we have a high-confidence way to reproduce the issue? Not applicable to this cleanup PR; source inspection establishes the changed admission behavior, but no published-updater scenario was executed during this review. Is this the best way to solve the issue? Yes, removing obsolete readers at the Matrix owner fits the documented retention policy; complete upgrade-boundary evidence is still needed to establish safe deployment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2ab22d8772fb. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
c81bd87 to
d7f7f11
Compare
…63383) Retire pre-July Matrix recovery-key, legacy crypto status, IndexedDB snapshot, storage metadata, and inbound-dedupe JSON imports. Leave retired sources intact with intermediate-upgrade guidance, and preserve supported July SQLite and sync-cache migration contracts. Focused Matrix suites, the shipped July SQLite fixture through Doctor, Doctor suites, plugin contracts, changed-file checks, both import-cycle checks, and independent review passed. Preserve the public error helper fix from main during conflict resolution.
What Problem This Solves
Retires five Matrix JSON state migrations whose last shipped writers predate the July 2026 support window.
User Impact
Upgrades from pre-July-2026 versions are no longer migrated:
recovery-key.json,legacy-crypto-migration.json,crypto-idb-snapshot.json,storage-meta.json, andinbound-dedupe.json. Doctor and affected runtime paths preserve those sources and direct operators through OpenClaw 2026.9.5, its Doctor, and one Matrix startup before retrying the current release.Supported SQLite keys, metadata, crypto snapshots, replay markers and schema upgrades remain intact. Credential JSON and
bot-storage.jsonsync-cache migrations stay: July code still produced those inputs, including Doctor's flat-to-account sync-cache relocation. No public Plugin SDK or SQLite schema change.Why This Change Was Made
Recovery-key, legacy crypto status, and IndexedDB file writers ended in
0566b969274on June 6; publishedv2026.6.5-beta.2still wrote them, while beta.3 shipped SQLite on June 8. Storage metadata's writer ended in1a3ded761e0on June 16 (v2026.6.8last writer;v2026.6.9-beta.1first replacement). Inbound dedupe's JSON writer ended in84a965a1a27on May 30, first shipped inv2026.5.30-beta.1on May 31. July's normal, recovery, server-backup and importer paths write canonical SQLite; external IndexedDB is in memory and has no independent file writer.Deletes the JSON decoders/importers, obsolete migration declarations, exclusive fixtures, and the generic factory left with only one sync-cache consumer. Existing Doctor step ordering and the inbound migration completion key remain. SQLite authority, atomic updates, chunk digest checks, retention ordering, and archive exclusion are preserved. Recovery fixture setup now shares its existing test-support owner instead of duplicating payload writes.
Measured reduction: 671 production TypeScript lines, plus three manifest lines.
Evidence
Linux single-worker test wall times
Measured with
pnpm test <file> --maxWorkers=1, including compiler preparation when needed. SDK and IndexedDB numbers are from the final API cleanup; the other timings are from the passing retirement candidate:All execution used a pinned isolated AWS checkout with verified candidate bytes. The observed merge conflict with main commit
b23a3416050was resolved by preserving its public error helper; 70 affected tests, all 1,132 plugin contracts and both cycle checks passed after that change. Affected changed-file validation and a fresh P2 review also passed. The earlier full retirement/July fixture proof applies to unchanged inputs. Hosted CI passed on headd7f7f11dafaeaea39f5a5ab2d9bd152b2ee87575; extension bundle jobs took 124s and 282s. Merged as70828f0ba5957642e4e66a042b1c6eadb3db76d2; ancestry and unchanged merged Matrix source verified.