Repository navigation
fix: diagnose and repair unbound legacy cron accounts - #193570
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
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: blocked before merge. What this changesAdds Doctor lint findings for unbound legacy automations and saved account-order entries whose effective credentials are missing. Example: An unbound automation can use fixture:other, with fixture:current also eligible.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR addresses a real Doctor diagnostic gap while preserving established account-selection behavior; no introduced correctness or security defect was identified. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherDoctor reads automation definitions and effective credentials, projects actionable findings, and leaves account adoption to the existing offline repair owner. flowchart TD
A[Doctor CLI] --> B[Health check registry]
B --> C[Cron migration preview]
B --> D[Auth health collector]
C --> E[Automation and account owners]
D --> E
C --> F[Actionable findings]
D --> F
Technical reviewBest possible solution: Keep diagnostics on the existing credential and migration owners while preserving account bindings, inherited credentials, and offline repair authority. Do we have a high-confidence way to reproduce the issue? Current main omits order-only missing credentials from auth-health findings and does not register the migration preview in default lint; the PR reports matching isolated CLI scenarios, but this review ran no target code. Is this the best way to solve the issue? The focused fix reuses existing decision owners, preserves planner-based adoption, and extends existing regression fixtures without adding competing state or repair paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1bf13d4df5c1. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +66, Tests +14, Docs +7, Other +2. Total +89 across 12 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
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 HistoryReview history (1 earlier review cycle)
Reviewed November 5, 2026, 11:16 AM ET / 16:16 UTC (Revision 2). |
Keep the account selection and credentialless-route behavior established by #173509. Default Doctor lint previews the same account that offline repair records, including alternatives.
|
@steipete, source comparison of #193541 at d61b864 with #193570 at 420c8b1 confirms your PR covers the missing saved-order diagnostic and the inherited/shared control. I am retiring the diagnostic draft rather than merging a duplicate collector. Thanks @kip-claw for the report and @steipete for owning the broader repair. One small context edge: Preserved evidence for d61b864 only: CI 42053693961 built successfully; shared-health 18 tests and profile-health 11 tests passed on both Node and Bun. Our draft still has a formatting failure and missing CLI/red-base/stable-upgrade proof. These results do not qualify your head or resolve the reporter's wider history. No further draft CI is proposed while coordinating supersession. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(cron): surface legacy inference account repair in Doctor * fix(cron): preserve planned account adoption for legacy jobs Keep the account selection and credentialless-route behavior established by openclaw#173509. Default Doctor lint previews the same account that offline repair records, including alternatives.
* fix(cron): surface legacy inference account repair in Doctor * fix(cron): preserve planned account adoption for legacy jobs Keep the account selection and credentialless-route behavior established by openclaw#173509. Default Doctor lint previews the same account that offline repair records, including alternatives.
What Problem This Solves
Fixes legacy cron automations being refused for a missing inference-account binding while Doctor lint reports no related problem. Closes #193517. Thanks @kip-claw for the report.
User Impact
openclaw doctor --lintidentifies unbound legacy jobs, names the account that offlineopenclaw doctor --fixwould record, and gives recovery guidance. When several accounts are eligible, Doctor records the runtime planner's account and lists the alternatives. Existing bindings, model/default/fallback selections, and personal-account protections stay unchanged.Why This Change Was Made
The #173509 rule established by @obviyus stands: a job without a recorded account gets the account its next unbound run would use—an explicit selection, or the first account from the normal runtime planner. This PR preserves that selection, its alternatives log, and the credentialless-route planning check. It adds the existing migration's read-only preview to default lint; no runtime adoption path is added.
An empty per-agent credential table can legitimately inherit shared credentials. Auth-profile lint reports saved account-order IDs only when the canonical credential owner also lacks them.
doctor --lint --allincludes that deeper check and account-list guidance; it does not delete order entries or recreate credentials.Evidence
fixture:otherand listsfixture:currentas an alternative. Doctor recordsfixture:otherand logs that alternative. An isolated macOS Gateway returnsLEGACY_ACCOUNT_OKfrom local Ollamaqwen2.5:7bthrough a synthetic-key relay. Reversing account order preserves the binding and still usesfixture:other. Removing that account refuses with zero additional requests; a new sole-account legacy job repairs and runs. Synthetic personal-account selection remains refused.b195b13377a4c16ec448d9b8fed6d33aad443de5, against6d49ef1c4b364218f2470df9b069c7a1e5b020d0. ClawSweeper reviewed that head with no code findings.openclaw/ci-gate(43 successful jobs).The automatic CI event was delayed while GitHub retained the old merge ref, so an expanded exact-head fallback was also dispatched. That extra run hit inherited unused exports fixed by 228f05f55ab and a Windows declaration fixture fixed by #193522; both match earlier main CI. It also hit three unchanged archive/UI timing cases. All three focused macOS replays passed; those passes are not fixes or proof of a Windows/Linux timing cause. No timeout, assertion, or CI result was weakened.
Production: +80/-14 (net +66); tests: +39/-25 (net +14); docs: +8/-1. Growth supplies the missing diagnostics/default registration/canonical lookup. A 14-line test allocation protects preview/repair agreement while restoring the original selection regression.
Released-binary upgrade proof is not included; the lead explicitly accepts that proof-only hold. Fresh live proof is macOS with synthetic API-key accounts backed by a real local model, not live OAuth.