Repository navigation
fix(doctor): warn about missing profiles in saved auth order - #193541
roboclaw-bot wants to merge 1 commit into
Conversation
Report order-only missing effective profiles without changing credentials or orders. Co-authored-by: steipete <[email protected]>
|
🦞👀 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: needs maintainer review before merge. What this changesDoctor warns when a saved provider order references a profile absent from the effective auth store. Example: Agent alpha orders diagnostic-provider:shared, which exists in neither local nor shared credentials.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a source-visible Doctor diagnostic gap, preserves existing credential ownership, and has no definite introduced correctness finding. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherDoctor reads shared and agent-local auth stores, resolves inherited credentials, and emits structured findings for lint and normal diagnostic output. flowchart TD
A[Doctor CLI] --> B[Auth health targets]
B --> C[Shared and local stores]
C --> D[Effective credential loader]
D --> E[Auth finding collector]
E --> F[Lint and normal Doctor output]
Technical reviewBest possible solution: Retain the focused effective-store diagnostic in the existing finding owner and leave automation recovery to the linked issue. Do we have a high-confidence way to reproduce the issue? Current main's collector and profile-only health summary establish how an order-only missing effective profile escapes detection; no runtime reproduction was executed. Is this the best way to solve the issue? The patch uses the existing collector and runtime inheritance owner, preserving same-store expiry and cooldown reporting without adding storage or competing credential policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 44a6171ae58a. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +33, Tests +66, Docs +3, Other +2. Total +104 across 4 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. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 November 5, 2026, 10:26 AM ET / 15:26 UTC. |
|
Closing this diagnostic-only draft in favor of #193570, which covers the missing saved-order profile warning and inherited/shared-profile guard along with the broader legacy cron repair. The remaining multi-provider diagnostic-context edge and useful regression controls were handed to that PR owner; see the handoff comment there. No merge or credential/binding change was made here. The exact-head build and named Node/Bun test evidence remain in this PR history; live CLI/latest-stable upgrade proof was not completed. Thanks to kip-claw for the report and Peter for the broader fix. |
Related: #193517
What Problem This Solves
Doctor's auth-profile check misses a provider-order reference when its profile is absent from the agent's effective auth store.
User Impact
Doctor now warns about that missing reference and points to the affected agent's available profiles. Shared and inherited profiles count as present; existing static, native, and credentialless routes retain their behavior. This diagnostic does not edit orders, credentials, bindings, authorization, or automation jobs.
The broader upgrade/automation failure in #193517 remains unresolved and evidence-dependent. An empty local credential table does not establish lost credentials. Legacy automation account adoption already exists and is unchanged. The existing reporter evidence request is not repeated.
Why This Change Was Made
The existing finding owner checks saved provider-order IDs against the complete runtime/effective store. When a same-store health read lacks an ordered ID, it resolves normal shared inheritance before deciding that the profile is missing. Existing health and cooldown reporting keep their prior store view; no synthetic credential rows or new health-summary shape are introduced.
Evidence
Candidate:
d61b864320614aff1fa7a89ba2380c33ecd1658a.validation_tier=full,release_scope=full, trusted main workflow30db562cc5390d62835f8f9ce8e4db8ff1f4a2ea, and the exact candidate target. Preflight, Doctor auth shard, and the complete build-artifacts job succeeded. Checkout logs verify the candidate SHA; workflow SHA is kept separate. No check from the earlier invalid main-tier dispatch is reused.src/commands/doctor-auth.shared-health.test.tsin check-docs and check-lint. Lint itself, all five core lint stripes and core test typechecks passed. The frozen head is unchanged. Other broad jobs also failed and remain unclassified; the overall CI run is not green.Author simplification retained one finding owner: production delta +34/-1; tests +66 lines with a dedicated allocation. No bindings, credential policy, stored orders, or automation migration changed. The broader #193517 report remains unresolved.
Draft remains unready. Native review records the actual passing tests/build but stays
NEEDS WORKbecause formatting and the remaining product/upgrade proof are unresolved. No ready, prepare, or merge action has been taken; parent owns the final decision.