fix: repeat doctor state migration repairs#89281
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 2, 2026, 3:11 AM ET / 07:11 UTC. Summary PR surface: Source +79, Tests +182. Total +261 across 2 files. Reproducibility: yes. Source inspection shows current main can stop plugin-state sidecar imports before legacy-only rows are inserted and can keep richer same-identity install records in conflict; the PR adds focused regression fixtures for those states. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land after a maintainer explicitly accepts the doctor migration/archive compatibility behavior and the reported validation remains green. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main can stop plugin-state sidecar imports before legacy-only rows are inserted and can keep richer same-identity install records in conflict; the PR adds focused regression fixtures for those states. Is this the best way to solve the issue? Yes. The fix is in the right owner boundary, doctor legacy state migrations, and the remaining question is maintainer acceptance of the upgrade semantics rather than a narrower code defect. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 0552ec899f38. Label changesLabel justifications:
Evidence reviewedPR surface: Source +79, Tests +182. Total +261 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Nice direction overall — especially the extra migration coverage. One edge case still looks risky in |
|
Addressed the ClawSweeper feedback. Changes:
Verification:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Simplified the diff after review. What changed:
Diff size is down from Verification:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
85b6b25 to
3a60464
Compare
|
Rebased onto latest Verification after rebase:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer pre-merge proof for head Work done:
Local proof:
CI proof:
Known proof gaps:
|
Summary
doctor --fixnoisyVerification
node scripts/run-vitest.mjs src/commands/doctor-state-migrations.test.tspnpm tsgo:corepnpm tsgo:core:testgit diff --check.agents/skills/autoreview/scripts/autoreview --mode local