Repository navigation
fix(doctor): report runtime tool schema validation errors - #88493
vincentkoc wants to merge 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 31, 2026, 12:56 PM ET / 16:56 UTC. Summary PR surface: Source +77, Tests +141. Total +218 across 2 files. Reproducibility: yes. from source inspection: current main calls tool construction and normalization inside the doctor runtime schema check without local error conversion, so those exceptions abort the check. The PR adds focused tests for the three reported failure classes. 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: Keep this as the doctor/reporting companion to the runtime quarantine stack, land it in the intended order, then retarget to main and rerun or explicitly accept the relevant changed-gate proof. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main calls tool construction and normalization inside the doctor runtime schema check without local error conversion, so those exceptions abort the check. The PR adds focused tests for the three reported failure classes. Is this the best way to solve the issue? Yes, the implementation is a narrow doctor-local reporting fix that preserves runtime policy and converts known error points into health findings. The remaining question is landing order and validation, not the code shape itself. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 0ee5f47fbabb. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +77, Tests +141. Total +218 across 2 files. View PR surface stats
Acceptance criteria:
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
|
ec876f1 to
0773aa1
Compare
# Conflicts: # src/flows/doctor-core-checks.runtime.ts
0773aa1 to
7569ddc
Compare
Summary
Stack
fuzz-tool-schema-runtime-20260530) at2dae89797917569ddc70d2mainand rerun the focused proof.Verification
node scripts/run-vitest.mjs src/flows/doctor-core-checks.runtime.test.ts src/flows/doctor-core-checks.runtime-errors.test.ts --reporter=verbose./node_modules/.bin/oxfmt --check $(cat /tmp/doctor-runtime-errors-files-current.txt)node scripts/run-oxlint.mjs $(cat /tmp/doctor-runtime-errors-files-current.txt)git diff --check @{u}...HEADrg -n "dofbot|doftbot" $(cat /tmp/doctor-runtime-errors-files-current.txt) || true.agents/skills/autoreview/scripts/autoreview --mode branch --base @{u}node scripts/crabbox-wrapper.mjs run --provider aws --label doctor-runtime-errors-check-changed --shell -- "pnpm check:changed"(run_3621756fcf12, AWS leasecbx_09998d224eb3, slugtidal-prawn)Real behavior proof
Behavior addressed: doctor now reports runtime tool-set load and normalization failures as
core/doctor/runtime-tool-schemasfindings instead of letting those paths abort schema validation.Real environment tested: local Codex gwt worktree stacked on #88368 plus AWS Crabbox Linux
c7a.8xlargeremote changed gate.Exact steps or command run after this patch: targeted doctor runtime Vitest, oxfmt, oxlint, diff whitespace check, private-name scrub, autoreview, and AWS Crabbox
pnpm check:changedlisted above.Evidence after fix: targeted tests passed 1 routed Vitest shard / 33 tests; formatting, lint, diff, scrub, and autoreview passed; AWS Crabbox
run_3621756fcf12passedpnpm check:changedand cleaned up its lease.Observed result after fix: doctor returns clear findings for agent runtime load failures, agent runtime schema normalization failures, and bundled MCP normalization failures while preserving runtime quarantine behavior from #88368.
What was not tested: no live Telegram turn in this slice; live channel proof should come after the runtime and doctor stack is landed/retargeted.