Repository navigation
fix(bench): retain source ownership in unknown and mixed excerpts - #1240
Merged
Merged
Conversation
This was referenced Oct 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1239
Summary
Retains source ownership for unresolved headers and explicitly numbered rows in mixed excerpts. This follows #1235/#1237 with measurement protocol v4; no retrieval or process-status behavior changes.
Graph/text consumer audit:
score_all,brief-check,probe-test, andprobe-translateshare the parser; their API is unchanged. The graph reports a lower bound with unresolved Python call sites; text search covers those imports.Evidence
20670993b0f2ed778cd7226955e4582df91c37e0, the new tests alone fail with six assertions: unknown docs receivesrc/app.py:7, mixed fences invent header line 2, and valid mixed bare numbered rows lose credit. Command:python3 -I scripts/bench/tool-census/score_brief.py --self-test SelfTest.test_unknown_source_owns_its_fence_without_global_matchback SelfTest.test_mixed_numbered_blocks_cannot_renumber_rows_into_the_header_range(tests added, production parser unchanged), exit 1.8c02189cc2d134d008b80ddc1672bd6d94e13f8a: 40 scorer tests, 16 brief-check tests, 24 probe-test tests and 4 probe-translate tests pass. SPDX and whitespace checks pass. The later evidence-only head3612ad4f0fafb21df0e030c8693245ca1e6dfcdaretains scorer SHA-25695bf349407a86091b7627f0d7726697478408b743345b32d4ed919da36233106./tmp/pixel-benchmark.lock. Internal p95 latency 657 / 705 ms is descriptive. Common integrated v4 reference with per-question/category/native evidence and commands. These edge cases are absent from the 56-brief corpus; synthetic regressions demonstrate the fix. No retrieval gain.8c02189cc2d134d008b80ddc1672bd6d94e13f8a: 34/34 controls (same frozen script/fixtures as v3), 3/3 minimal controls, 40 scorer self-tests and a native optional-probe timeout control pass. Its independent replay agrees on all 56 brief hashes, seven pins and zero v3/v4 score deltas. The public head contains the same scorer bytes; this audit is not a GitHub approval.bdee0c162569ec6a0bbf405c1d4312eb98033832: Test + Format, both install.sh checks and all three CodeQL language analyses pass; Rust-only lanes are scope-skipped. No Rust changes, local installation, real-agent or zero-call claim, or mutation campaign.3027ea60f4c2692905828860218617e1d70f7f46, whose whole tree is identical to merged baseline20670993b0f2ed778cd7226955e4582df91c37e0(45de73045f83b8491426461634c5f9f0a014c26d). The after checkout is code commit8c02189c. The documentation-only supplement recording this equivalence and the external audit is signed and published at3612ad4f0fafb21df0e030c8693245ca1e6dfcda. Only README.md and identity.json changed after the previous CI-validated head; scorer bytes are unchanged. Final-head CI: run 39173299066 and CodeQL 39173299057 are complete/success on exact head3612ad4f0fafb21df0e030c8693245ca1e6dfcda. Test + Format, both install.sh checks, Record the green verdict and all three CodeQL language analyses pass; Rust-only lanes are scope-skipped. The signed publication is complete; the worktree is clean. Merged with--adminon explicit maintainer authorization as7b178f5a7e584563d474e8a6056a4a9f7e5f891b. The merged tree equals the CI-validated head; scorer and questions hashes were reverified after merge.Merge Danger
Door: two-way for tooling; newly emitted reports name protocol v4, historical reports remain untouched.
Blast radius: bench scoring and parser consumers. Unknown-source quotes cannot earn global code credit; mixed blocks can lose false sequential credit or regain their valid explicit coordinates.
Docs touched
SCORING_PROTOCOL.mdrecords protocol v4, mixed-row semantics and headerless/unnumbered controls. No changelog fragment: measurement tooling ships nothing in the binary.ARCHITECTURE.mdand agent prompts describe unchanged runtime behavior. The dated v3 common reference remains immutable; the v4 comparison is published separately underdocs/bench/scorer-protocol-v4-2026-10-19/.Need help on this PR? Tag
@codesmith-botwith what you need.