Repository navigation
chore(doctor): schedule removal of restored pre-July state importers - #176504
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR records November 29, 2026 as the removal deadline for restored pre-July state importers and adds matching lifecycle comments. Example: A maintainer checks the Doctor deprecation registry on November 29, 2026.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful removal tracking through the existing registry without changing migration behavior; no actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherDoctor migrates legacy state into canonical SQLite stores; this change adds maintenance metadata consumed by the deprecation registry guard, without altering those migrations. flowchart TD
A[Restored Doctor importers] --> B[Compatibility inventory]
B --> C[Deprecation registry guard]
C --> D[Compare removal deadline]
D --> E[Report due records]
E --> F[Maintainer removal review]
Technical reviewBest possible solution: Track the restored importers in the existing inventory while preserving their upgrade repair until removal is independently validated. Do we have a high-confidence way to reproduce the issue? This is maintenance metadata rather than a runtime bug; source inspection confirms the restored importers lack the new inventory record on fetched main. Is this the best way to solve the issue? The explicit record is the smallest complete change using the existing owner and guard, and avoids assigning an invalid historical renewal date. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4bba764a8308. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +31. Total +31 across 5 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 Reviewed October 18, 2026, 5:44 PM ET / 21:44 UTC. |
…penclaw#176504) Adds a doctor compatibility inventory record (doctor-pre-july-retired-state, removeAfter 2026-11-29) for the pre-July JSON state importers restored by openclaw#174489 to fix the openclaw#174343 dead end, plus pointer comments in the four restored importer modules, so the release removal check deletes them after the window. No runtime behavior change.
What Problem This Solves
The temporary pre-July state importers restored in #174489 had no tracked removal deadline.
User Impact
No runtime behavior changes. Existing Doctor migrations remain available; their removal is now scheduled for November 29, 2026, as requested by Peter.
Why This Change Was Made
Add
doctor-pre-july-retired-stateto the canonical Doctor compatibility inventory under the existingconfigowner, with the October 16 introduction date, state-migration documentation, and six existing repair test files. Add matching removal comments to the four restored importer modules.This uses an explicit, unrenewed record because
compatRecord(...)forces an August 29 renewal date, which predates this record's October introduction and would violate the inventory's chronology checks. No helper or migration behavior changes.Related: #174489, #174343.
Evidence
node scripts/run-vitest.mjs src/commands/doctor/shared/deprecation-compat.test.ts test/scripts/check-doctor-deprecation-registry.test.ts src/infra/state-migrations.retired-runtime.test.ts --maxWorkers=1— 17 tests passed across 3 files/shards, 371.48 seconds total. The runtime file took 307.03 seconds, 98% transform; its nine tests took approximately 3.63 seconds. Cold worker compilation took 226.48 seconds; no slow test case or flaky failure was observed.node --import ./scripts/tsx.mjs scripts/check-doctor-deprecation-registry.ts— OK as of 2026-10-18. A direct check through the registry guard confirmed this record is not due on 2026-11-28 and is due on 2026-11-29.node scripts/run-tsgo.mjs -p tsconfig.core.json --incremental --tsBuildInfoFile .artifacts/sunset-174489/core.tsbuildinfo— passed.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json <five changed files>— passed. An initial invocation withtsconfig.core.jsoninstead triggered unrelated plugin-SDK declaration preparation and timed out after 300 seconds; the source-backed core lint configuration above avoids that unnecessary preparation.oxfmt --check <five changed files>,git diff --check, andnode --import ./scripts/tsx.mjs scripts/check-madge-import-cycles.ts— passed; 0 import cycles.All test/check processes used an isolated HOME and OPENCLAW_STATE_DIR. The registry command is the executable proof for this metadata-only change; no Gateway or operator state was used. No generated inventory artifacts needed updating. Full
check:changed/SQLite inventory was omitted under the campaign's local gate budget; PR CI supplies broad proof.