Repository navigation
test: repair two inherited proof fixtures (validation count, codex-804 prefix) - #5652
Conversation
The contract test asserted exactly one SchemaValidator.validate call. Schema selection legitimately probes the resolved version and then historical versions until one accepts, and the synthetic Claude AI payload is rejected by the current package and accepted by a historical one, so the count was 2 with no duplicated work. Assert the regression the test exists for instead: no (validator, sample) pair is validated twice. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
|
You have reached your Codex usage limits for security reviews. Please try again later. |
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. |
The proof fixture recorded raw_ids[0] as the cursor's prefix hash. Source admission now mints a source-scoped raw id distinct from the content hash, so the planner's SHA-256 of the prefix bytes never matched and plan_append refused every fragment. Record the byte hash, as the live route does (captured_content_hashes holds the blob hash). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
|
Verification:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Fixes the inherited red
test_current_payload_uses_one_schema_validation_pass(polylogue-u2859). The instrument was wrong; production isn't validating twice.Problem
The test asserted exactly one
SchemaValidator.validatecall. Tracing the call stack on origin/master shows two calls:resolve_payload_schemaprobes the resolved (default) Claude AI package, which rejects the synthetic fixture.That is schema selection working as designed, not repeated work. The runtime already reuses the selection's verdicts (#4830).
Solution
Assert the regression the test exists for: no (validator, sample) pair is validated twice. The probed objects are kept alive, so their ids stay unique for the whole call.
Verification
validatecalls throughresolve_payload_schema(lines 180 and 189) confirmed the diagnosis.devtools test tests/unit/pipeline/test_validation_parallelism_contracts.pyis queued behind the host pytest pool; the result will be posted here.Residuals
The fixture is not valid under the current Claude AI package, which is why selection falls back to a historical version. The test does not depend on that.
🤖 Generated with Claude Code
https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4