Skip to content

test: repair two inherited proof fixtures (validation count, codex-804 prefix) - #5652

Merged
Sinity merged 2 commits into
masterfrom
claude/bugsweep-2
Sep 27, 2026
Merged

Sinity merged 2 commits into
masterfrom
claude/bugsweep-2

Conversation

@Sinity

@Sinity Sinity commented Sep 27, 2026

Copy link
Copy Markdown
Owner

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.validate call. Tracing the call stack on origin/master shows two calls:

  1. resolve_payload_schema probes the resolved (default) Claude AI package, which rejects the synthetic fixture.
  2. It then probes a historical version, which accepts it.

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

  • A call-stack trace of both validate calls through resolve_payload_schema (lines 180 and 189) confirmed the diagnosis.
  • Focused devtools test tests/unit/pipeline/test_validation_parallelism_contracts.py is 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

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T21:45:11.544450Z 101bd46 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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
@Sinity Sinity changed the title test(validation): assert no sample is revalidated, not a call count test: repair two inherited proof fixtures (validation count, codex-804 prefix) Sep 27, 2026
@Sinity
Sinity enabled auto-merge (squash) September 27, 2026 19:51
@Sinity

Sinity commented Sep 27, 2026

Copy link
Copy Markdown
Owner Author

Verification:

  • test_validation_parallelism_contracts.py: focused devtools test PASSED at b6c0d87, receipt 20260927T185109Z-focused-test-1604067-61f7e48e.
  • codex-804 fixture: acquire_codex_revision_chain on a scaled-down chain (20 revisions, 3 append fragments) through the same production seams. Before the fix, plan_append returned None at the prefix-hash check. After it, all fragments plan (23 raws). The full storage-scale 804 test was not run: it's a scale job, not a focused check.

@Sinity

Sinity commented Sep 27, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 101bd46573

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@Sinity
Sinity merged commit ace569e into master Sep 27, 2026
3 checks passed
@Sinity
Sinity deleted the claude/bugsweep-2 branch September 27, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant