Repository navigation
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. |
2b173f6 to
777de21
Compare
|
Codex review: blocked before merge. What this changesThe branch separates the completed media rewrite from the moving database schema version, allows normal v16-to-v17 upgrades, and refreshes Doctor’s database registrations. Review scores
Merge readiness⛔ Blocked before merge - 5 items remain Keep open for an owner decision. Merged work now covers Doctor convergence and registry recovery, but the branch’s online-upgrade behavior differs from the shipped stopped-writer contract. Maintainer ownership also prevents automated cleanup. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherPer-agent SQLite databases hold session transcripts and agent state. Database admission and Doctor coordinate schema upgrades before that state becomes available to the Gateway. flowchart TD
A[Existing agent database] --> B[Database admission]
B --> C{Media rewrite completed?}
C -->|No| D[Doctor media rewrite]
C -->|Yes| E[Structural schema migration]
D --> E
E --> F[Registry refresh]
F --> G[Gateway session access]
Technical reviewBest possible solution: Keep schema advancement and registration publication in the current Doctor owner, preserving stopped-writer migrations; retain only independently useful regression coverage or a demonstrated remaining defect. Do we have a high-confidence way to reproduce the issue? No current-main reproduction of the original accidental v16-to-v17 parking failure was established. The historical defect is source-backed, but current runtime refusal is an explicit migration contract. Is this the best way to solve the issue? No, this branch is no longer the best direct landing path: current Doctor already owns convergence and registration recovery, while online admission requires a separate decision against the shipped migration boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8e4f1533a300. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +51, Tests +44, Generated 0. Total +95 across 25 files. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (9 earlier review cycles; latest 8 shown)
Reviewed October 3, 2026, 12:41 PM ET / 16:41 UTC (Revision 10). |
4a85ddb to
bbc3b7a
Compare
bbc3b7a to
231e061
Compare
|
Thanks. The independent media-migration floor was implemented in #130986 and is now used by admission, prerequisite migration and media persistence. Current migration code also converges and registers the final schema when no content rewrite is needed. The useful behavior in this PR is covered by those owners, so closing as superseded. |
What Problem This Solves
Fixes an issue where a Gateway with an already-migrated v16 agent database could park during an upgrade to schema v17 and incorrectly require
openclaw doctor --fix. The media guard treated every version below the current structural schema as pre-media state, so it blocked the online v16-to-v17 lease-table retirement before that migration could run.Why This Change Was Made
The completed media rewrite is now represented by its own durable schema floor: v16, with v15 as the Doctor-owned predecessor. Normal runtime opens accept v16 and converge it through the canonical v17 structural migration. Doctor first crosses the real v15-to-v16 media fence, then independently converges the database to the current structural schema and records the actual final registry version.
True pre-media databases remain fail-closed behind Doctor. No SQLite schema version is added or changed by this repair.
User Impact
Operators upgrading from an already-migrated v16 agent database to v17 no longer see the Gateway park for an offline migration that has already completed. Legacy v15 media state still requires and receives the existing Doctor rewrite.
Evidence
state_leasestable.git diff --check: clean.Provenance: the latent current-version coupling was made visible when #121943 advanced the structural schema from v16 to v17.