Repository navigation
fix(test): keep Codex validation error fixture invalid - #200684
Conversation
|
🦞👀 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 changesReplace numeric test values with empty objects so the Codex validation-error fixture remains invalid after argument coercion. Example: The bounded-error test supplies ten fields declared as strings.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR restores a meaningful validation-error test with the smallest complete change; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Codex dynamic-tool bridge receives JSON arguments, runs shared argument coercion and schema validation, and returns tool results or bounded validation errors. flowchart LR
A[Codex tool call] --> B[Dynamic tool bridge]
B --> C[Shared argument coercion]
C --> D[Schema validation]
D --> E[Tool execution]
D --> F[Bounded error response]
Technical reviewBest possible solution: Land this fixture-only repair once the required CI checks complete successfully. Do we have a high-confidence way to reproduce the issue? The hourly failure trace shows the exact unexpected execution, and current source explains its numeric-to-string conversion; no target code was executed during this read-only review. Is this the best way to solve the issue? Changing the invalid fixture is appropriate because coercion is intentional and objects remain invalid; weakening assertions or reverting production coercion would defeat existing contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7b0a97a4c96e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. 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:
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 17, 2026, 11:29 AM ET / 16:29 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Preserve intentional numeric-to-string coercion and use an actually invalid object in the high-cardinality fixture. Baseline reproduced; fixed file 52 tests pass. Targeted parent lint/format pass. (cherry picked from commit 3aa72ab) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
The hourly Codex tests fail their bounded validation-error check because its ten numeric values now validly coerce to strings after #193200. The fixture therefore executes the tool instead of exercising rejection.
User Impact
No runtime behavior changes. Restore the test of bounded validation errors returned to Codex.
Why This Change Was Made
Use empty objects for the string fields so they remain invalid after the shared coercion step. Preserve the execution-rejection, omitted-violation, detail-truncation, and response-length assertions.
Evidence
Original failure: hourly Codex shard. The unchanged case reproduced the same unexpected execution with all ten values converted to
"47".Candidate: all 52 tests in
dynamic-tools.test.tspass under pinned Bun (7.34 seconds reported by Vitest; 8.95 seconds wall time). The original focused failure took 37.25 seconds including cold worker compilation.Targeted type-aware lint, formatting, and
git diff --checkpass. Fresh full-source P0–P3 review found no actionable issues.Local proof used the qualified native620 checkout with the two exact current validation owners and candidate test overlaid; original bytes were restored. This is bounded bridge-owner proof, not a full current-main or real-Gateway run. PR CI supplies broader coverage.
Exact-head CI 44123517060 completed with one setup failure: job134182012909 exhausted Git PPA downloads with HTTP503 and exited100 before Node/dependencies/tests. The aggregate failed downstream; all other selected jobs, including security, passed. The CI checkout was merge
ee6bba6bef60226d5ad1801e217649a49abf78d8, whose tree exactly equals this PR head. CI workflow, setup action, and Git installer blobs match the baseline. This inherited infrastructure failure remains recorded as failed CI; it is not a passing test result.