Skip to content

chore(doctor): schedule removal of restored pre-July state importers - #176504

Merged
steipete merged 1 commit into
mainfrom
upd/sunset-174489
Oct 18, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/sunset-174489

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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-state to the canonical Doctor compatibility inventory under the existing config owner, 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 with tsconfig.core.json instead 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, and node --import ./scripts/tsx.mjs scripts/check-madge-import-cycles.ts — passed; 0 import cycles.
  • Codex autoreview — scoped clean through P2; no actionable findings. Simplification retained only the requested metadata/comments: production +33/-2 lines, tests +0/-0.

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.

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 18, 2026 21:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T21:30:39.894344Z f98b963 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS labels Oct 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:docs Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:docs Preliminary submission classification; full source review pending. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The restored pre-July importers have no inventory record to flag their removal deadline.
  • After: The guard reports doctor-pre-july-retired-state as due and requests supported-upgrade proof or a documented removal blocker.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused metadata change with proportionate registry validation, unchanged runtime and storage contracts, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored metadata change leaves product behavior unchanged; supplied validation exercises the registry command and deadline boundary without using Gateway or operator state.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Temporary upgrade-recovery code has no tracked removal deadline.
Reason: The maintainer-authored direction adds bounded lifecycle tracking without removing the recovery path or introducing another owner.

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
Reviewed head: f98b963fd89604ffd887a7dae5cda163e9f11ede

Before merge

None.

Findings

None.

Agent review details

How this fits together

Doctor 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]
Loading

Technical review

Best 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

  • Restored Doctor importers keeps the original intent (956dd5d: Restore Doctor-only migration and archival so older installations can escape an intermediate-release upgrade dead end.)
  • Canonical compatibility inventory keeps the original intent (4c40cf8: Inventory compatibility surfaces so release removals check their owners, replacements, documentation, and tests.)
  • August renewal cohort keeps the original intent (048eb11: Renew existing compatibility review windows through November 29 while preserving their historical chronology, as documented at fix(doctor): renew compatibility review dates #132313.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 16095df adds src/commands/doctor/shared/deprecation-compat.ts:60 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 16095df1d750; files: src/commands/doctor/shared/deprecation-compat.ts)
  • Vincent Koc: Raw commit 048eb11 adds src/commands/doctor/shared/deprecation-compat.ts:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 048eb11252ca; files: src/commands/doctor/shared/deprecation-compat.ts)

PR surface

Source +31. Total +31 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 33 2 +31
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 33 2 +31

Labels

Label changes:

  • add P3: This is internal lifecycle tracking with no change to runtime behavior or persisted user state.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is internal lifecycle tracking with no change to runtime behavior or persisted user state.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 18, 2026, 5:44 PM ET / 21:44 UTC.

@steipete
steipete merged commit ed14cd4 into main Oct 18, 2026
208 of 209 checks passed
@steipete
steipete deleted the upd/sunset-174489 branch October 18, 2026 21:51
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant