Repository navigation
fix(doctor): show disabled automations during authority reauthorization - #127998
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 22, 2026, 3:31 PM ET / 19:31 UTC. ClawSweeper reviewWhat this changesUpdates Doctor’s scheduled-authority remediation hint to use Merge readinessThis PR remains necessary: current main still gives a default inventory command that omits disabled automations despite Doctor counting them. The one-line hint change preserves the documented default and makes the remediation actionable. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherDoctor normalizes persisted automation rows into scheduled-authority findings and gives operators a remediation command. The automation CLI queries the Gateway and normally omits disabled jobs unless flowchart LR
A[Persisted automation rows] --> B[Doctor normalization]
B --> C[Authority warning]
C --> D[Remediation hint]
D --> E[Automation CLI]
E --> F[Gateway inventory]
F --> G[Enabled and disabled jobs]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +35. Total +35 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the enabled-only default inventory and merge this hint-and-regression repair after exact-head validation. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: current main counts all affected stored jobs while its default inventory path excludes disabled ones; the supplied after-fix terminal transcript demonstrates the same distinction. Is this the best way to solve the issue? Yes. Changing only the hint is the narrowest owner-boundary fix; filtering Doctor’s count or changing the default CLI contract would alter valid behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d0700b3bc26b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Post-fix real-behavior proof for reviewed head This used the built CLI ( Redacted terminal transcriptObserved invariant: Doctor counted both affected persisted rows and now points to the only inventory command that exposes both. The established default list still hides the disabled row. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Closes #127858
What Problem This Solves
Doctor counts disabled automations when reporting scheduled-authority reauthorization debt, but its remediation command previously hid those disabled rows. Operators could therefore see a count larger than the inventory they were told to review.
Why This Change Was Made
Doctor now recommends
openclaw automations list --all, matching the all-row authority classification while preserving the established enabled-only default list behavior.The regression test exercises the Doctor boundary with one enabled and one disabled affected automation. This is the canonical hint-only repair: filtering disabled rows out of Doctor would hide real authority debt, while changing the default list behavior would alter existing CLI semantics.
User Impact
Operators following Doctor's remediation can enumerate every automation included in its warning count, including disabled automations retained in history.
Evidence
openclaw automations listinstead ofopenclaw automations list --all.8973e8duses the built CLI, production SQLite store, and real loopback Gateway. Doctor reports both affected rows and recommendslist --all; the default list returns only the enabled affected row, whilelist --allreturns both and marks the disabled rowdisabled.