Repository navigation
refactor(cli): deslop CLI and Doctor command flows - #164669
Conversation
Retire pre-July sandbox JSON registry imports with preserved-source upgrade guidance. Simplify CLI, model runtime, update, and Doctor owners while retaining supported output and migration contracts. Preserve malformed subagent allowlist values during stale-target repair.
|
🦞👀 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 3, 2026, 9:36 PM ET / October 4, 2026, 01:36 UTC. ClawSweeper reviewWhat this changesThe branch simplifies CLI and Doctor flows, retires pre-July sandbox JSON imports with intermediate-upgrade guidance, and prevents malformed subagent allowlists from crashing repair. Merge readiness⛔ Blocked before merge - 3 items remain The PR contains useful work that current main does not implement, and no concrete introduced code defect was found. Its migration retirement still needs upgrade-boundary validation. Priority: P2 Review scores
Verification
How this fits togetherCLI commands and Doctor translate operator requests and existing configuration into diagnostics, repairs, and service operations. The updater invokes these owners while protecting installation authority and persisted state. flowchart TD
A[Operator commands] --> B[CLI admission]
B --> C[Doctor and update owners]
D[Configuration and stored state] --> C
C --> E{Supported state format}
E -->|Current| F[Guarded repairs and service operations]
E -->|Retired| G[Preserved files and upgrade guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1000, Tests -550, Docs +6, Other -2. Total -1546 across 61 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the documented retirement and simpler owners, with verified staged-upgrade recovery and unchanged operation for fresh and existing SQLite installations. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the ancillary crash: repair an allowlist containing a stale string target and a non-string value on current main. The PR reports a failing regression, but this read-only review did not execute it. Is this the best way to solve the issue? Yes, the refactor uses existing owners and preserves upstream admission and write guards; retiring the importer matches the documented retention policy. Upgrade validation remains necessary before landing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f415c15d9b91. LabelsLabel 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
|
* refactor(cli): deslop CLI and Doctor command flows Retire pre-July sandbox JSON registry imports with preserved-source upgrade guidance. Simplify CLI, model runtime, update, and Doctor owners while retaining supported output and migration contracts. Preserve malformed subagent allowlist values during stale-target repair. * refactor(cli): shrink assertion ratchet for simplifications
What Problem This Solves
CLI and Doctor flows retain duplicate decision paths, unused internal options, and a sandbox-registry importer whose last JSON writer predates the supported migration window.
User Impact
Normal CLI output, flags, exit codes, and July-or-later migration behavior stay unchanged. Doctor now reports retained pre-July sandbox JSON registries and refuses repair without changing their bytes; operators must upgrade through
2026.9.7and runopenclaw doctor --fixon the original host first. Current SQLite sandbox registries remain supported.Repairing a subagent allowlist containing both a stale agent ID and malformed values no longer crashes. Doctor preserves malformed values for the existing config validator.
Why This Change Was Made
This second pass follows the merged file inventories from #163840 and #164159. It removes 1,000 net production lines in one batch. The open deslop PR overlap check was refreshed before validation; audit, cron, heartbeat/Automations, and PR-tooling ownership remains untouched.
ce015cef577removed the writers on June 7; none of the 189 published versions lacking that cutover was published on or after July 1. Supported July and extended-stable writers use SQLite, and2026.9.7retains the importer.Fixes Found Along the Way
maybeRepairStaleSubagentAllowlistsskipped non-string values while scanning but called.trim()on them during repair. Its repair now removes only stale string IDs and preserves malformed entries and the original input. The regression exercises the repair boundary without a new production seam.Evidence
entry.trim is not a function, then passes with the fix.