Repository navigation
fix(doctor): diagnose malformed provider catalogs - #88351
Conversation
4de36d8 to
8a7ab79
Compare
|
Codex review: needs maintainer review before merge. Reviewed May 31, 2026, 9:37 AM ET / 13:37 UTC. Summary PR surface: Source +529, Tests +606. Total +1135 across 8 files. Reproducibility: no. executed high-confidence current-main repro was run in this read-only review. The source path is clear: current projection directly iterates provider catalog rows, and the PR adds focused tests for malformed shapes that would otherwise reach that projection boundary. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land only after maintainer review confirms the stricter doctor-owned provider catalog diagnostics are intentional and representative provider catalog proof is adequate, while keeping runtime projection on the typed contract. Do we have a high-confidence way to reproduce the issue? No executed high-confidence current-main repro was run in this read-only review. The source path is clear: current projection directly iterates provider catalog rows, and the PR adds focused tests for malformed shapes that would otherwise reach that projection boundary. Is this the best way to solve the issue? Mostly yes: moving malformed catalog diagnostics into doctor matches the repository preference to keep runtime projection on a typed contract. The remaining question is merge policy, because the new doctor check deliberately makes malformed provider catalogs operator-visible and unhealthy. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 5dc4531fdf56. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +529, Tests +606. Total +1135 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
8a7ab79 to
d06ca46
Compare
d06ca46 to
7e96af5
Compare
0cf8ec9 to
33a8362
Compare
bcd51a4 to
c11f6d7
Compare
b364db3 to
d9d13ac
Compare
147b44d to
cf2d4fe
Compare
cf2d4fe to
876fdda
Compare
|
Pre-merge verification for head
GitHub CI: all PR checks green on run Known proof gap: no live provider/network catalog calls; this is scoped to static provider catalog doctor validation. |
Summary
openclaw doctorcore/doctor/provider-catalog-projectionhealth check for full provider registrationsVerification
node scripts/run-vitest.mjs src/flows/doctor-core-checks.runtime.test.ts src/flows/doctor-core-checks.test.ts src/flows/doctor-health-contributions.test.ts src/flows/doctor-health-conversion-plan.test.ts src/plugin-sdk/provider-entry.test.tsnode_modules/.bin/oxfmt --check src/plugins/provider-catalog-unified-text.ts src/flows/doctor-core-checks.ts src/flows/doctor-core-checks.test.ts src/flows/doctor-core-checks.runtime.ts src/flows/doctor-core-checks.runtime.test.ts src/flows/doctor-health-contributions.ts src/flows/doctor-health-contributions.test.ts src/flows/doctor-health-conversion-plan.ts src/flows/doctor-health-conversion-plan.test.tsnode scripts/run-oxlint.mjs src/flows/doctor-core-checks.runtime.ts src/flows/doctor-core-checks.runtime.test.ts src/plugins/provider-catalog-unified-text.tspnpm tsgo:testgit diff --check origin/main...HEAD.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --prompt-file /tmp/provider-catalog-doctor-review-context.txtReal behavior proof
Behavior addressed: malformed static provider catalog output is diagnosed by doctor instead of adding runtime fallback/tolerance to unified text provider catalog projection.
Real environment tested: local OpenClaw checkout on branch head
876fdda5a352b0f15bfbe2abe9be43ebada7c596.Exact steps or command run after this patch: ran focused Vitest suites for doctor health checks, doctor contributions, conversion-plan wiring, and provider-entry projection coverage; ran formatter, targeted lint, test typecheck, diff whitespace check, and autoreview.
Evidence after fix: tests cover full provider registrations, invalid provider containers, falsy malformed results, invalid or missing
models, invalid model iterators, unreadable provider/model rows, invalid provider keys, invalid model ids/names, invalid static catalog order/hooks, revoked proxy handling, static catalog hook failures, and doctor contribution rendering.Observed result after fix:
openclaw doctorhealth check paths report actionable malformed provider catalog findings while runtime projection keeps the typed provider catalog contract.What was not tested: no live provider/network catalog calls; scoped to static provider catalog validation.