Skip to content

fix(conformance): validate paired fixture count expectations - #14125

Merged
vincentkoc merged 3 commits into
morluto:mainfrom
DeryFerd:fix/conformance-reject-half-declared-count
Nov 30, 2026
Merged

vincentkoc merged 3 commits into
morluto:mainfrom
DeryFerd:fix/conformance-reject-half-declared-count

Conversation

@DeryFerd

@DeryFerd DeryFerd commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reject incomplete or malformed symbol/string count expectations in conformance fixture manifests. Previously a half-declared pair could skip verification, and a null prefix with a zero count could pass through string coercion.

Behavior and scope

  • Require both the prefix and count, or neither. A present prefix must be a string and its count a nonnegative safe integer.
  • Preserve valid empty prefixes and zero counts. Keep the verifier's defensive failure for incomplete pairs.
  • Validate once at manifest admission, before compiling or counting fixture records. Existing complete manifests keep their behavior.
  • This fixes the existing verification gate and introduces no new provider, target interaction, or authority. No separate issue tracks the defect.

Validation

  • Current head: 2aa0273adcb691bc54a9d4b499d4d5ed67532d11. All current-head checks passed, including all 12 built-test shards and Apple E2E.
  • Source suite: 36,495 passed, 31 skipped. All 43 conformance-fixture verifier tests passed, including the compiler-produced half-count negative case. Source-built verification separately passed four Linux fixtures.
  • All 32 direct Node 24 production-parser controls passed. The null-prefix false acceptance was reproduced before the fix for both symbol and string expectations.
  • Added 30 portable regression cases across both pairs; preserved compiler-backed coverage.
  • Canonical review found no P2 findings.

Author readiness

See CONTRIBUTING.md#pull-request-ownership-and-readiness.

Human owner: @DeryFerd

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T17:10:13.287902Z
We couldn’t complete this review. Comment @codex review to try again.
808c6ef PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no blocking issues remain.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues remain.

Summary

The PR rejects incomplete count pairs when reading a fixture manifest.

  • Fixture checks reject counted expectations missing a prefix or count.

Both previous, unnumbered findings are fixed: ordinary fixtures can omit both members, and half-count now declares the intended incomplete pair.

No new actionable issues or security concerns were found. Tests were not run during this review. The check for a replacement PR was blocked by unavailable GitHub authentication.

Reviews (2) · Last reviewed commit: "fix(fixtures): validate counted expectat..." · Reviewed by Greptile

Comment thread scripts/verify-conformance-fixtures.mjs Resolved
A counted expectation is a pair: the prefix selects the records and the count is
what the verifier binds to the source. Admission accepted either half, and
verifyCount returned silently when one was missing, so a fixture could declare
the invariant and never have it checked while verify:fixtures still reported
the fixture as verified.

Require both members in parseConformanceFixtureManifest and treat a half pair
at verification time as a producer defect instead of skipping the count.
@DeryFerd
DeryFerd force-pushed the fix/conformance-reject-half-declared-count branch from 808c6ef to bee43c9 Compare November 23, 2026 17:36
@DeryFerd

Copy link
Copy Markdown
Contributor Author

Thanks. Both P1s are fixed in bee43c9. verifyCount returns when neither member is present and throws only for a half-declared pair, so ordinary fixtures such as c and the version fixtures still verify; and the half-count mode now sits inside the outer condition, so it declares symbolPrefix without symbolCount and admission refuses it before verification instead of the assertion passing for the wrong reason.

@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@DeryFerd thanks for the PR — there are 2 open review threads here:

Could you address or reply to these? Once they're resolved and CI is green we can take another look.
cc @gensokyo-dev @dandgabr

@DeryFerd

Copy link
Copy Markdown
Contributor Author

@morluto both threads are resolved. verifyCount now returns when neither member is present and throws only for a half-declared pair, so ordinary fixtures such as c and the version fixtures still verify; and the half-count mode now declares symbolPrefix without symbolCount, so admission refuses it before verification instead of the assertion passing for the wrong reason. CI is green at bee43c9 with 23 checks passing.

@morluto morluto added area: tests Test suite and verification bug Something isn't working labels Nov 26, 2026
* commit '31cec30f51fb59b28a1849a67d09ab79b1c40094': (803 commits)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  fix(nro): exclude ASET header bytes from asset ranges (morluto#15185)
  fix(bflt): reject relocation tables overlapping image segments (morluto#15188)
  docs(artifacts): document Kubernetes audit log inventory (morluto#15187)
  fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182)
  perf(n64): stream ROM byte-order normalization (morluto#15179)
  fix(oci)!: keep unobserved directory identity unknown (morluto#15164)
  fix(nds): bind file names to disjoint FNT subtables (morluto#15178)
  fix(glb): preserve JSON chunk read failures (morluto#15181)
  fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169)
  fix(artifacts): retain stored files in Godot PCK patches (morluto#15180)
  fix(setup): do not persist versioned launcher paths (morluto#15123)
  fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136)
  fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949)
  fix(macos-pkg): retain cpio hard-link contents (morluto#15157)
  fix(artifacts): report macOS package bundle release versions (morluto#14860)
  test(asar): verify cleanup on the original file handle (morluto#15155)
  ...
@vincentkoc vincentkoc changed the title fix(conformance): refuse a fixture that declares half of a count pair fix(conformance): validate paired fixture count expectations Nov 30, 2026
@vincentkoc
vincentkoc merged commit 81384ec into morluto:main Nov 30, 2026
57 checks passed
@vincentkoc

Copy link
Copy Markdown
Collaborator

thanks! merged with strict prefix/count validation. the compiler-backed regression, all 43 verifier tests, and current-head CI passed.

vincentkoc added a commit to WoWHellgarve-HolyDeeW/rea that referenced this pull request Nov 30, 2026
* commit '7f7d34ad7c30a5fe015b642118dd40e8e9ac093d': (167 commits)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  fix(nro): exclude ASET header bytes from asset ranges (morluto#15185)
  ...
vincentkoc added a commit to XiaoBinGan/rea that referenced this pull request Nov 30, 2026
* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (173 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
vincentkoc added a commit to ShuaixinHuang/rea that referenced this pull request Nov 30, 2026
* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (34 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
vincentkoc added a commit to 2SinceJuly/rea that referenced this pull request Nov 30, 2026
…180-warc-archive

* commit '5f15fdf457a890a149cbe574cce96e32422c1904': (206 commits)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  ...
vincentkoc added a commit to 2SinceJuly/rea that referenced this pull request Nov 30, 2026
…186-evtx-archive

* commit '5f15fdf457a890a149cbe574cce96e32422c1904': (89 commits)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  fix(screenshots): report the PNG comparison memory allowance (morluto#15217)
  fix(process): compare Windows server paths by native realpath (morluto#15044)
  fix(firmware): recheck decoded member source on completion (morluto#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208)
  fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207)
  perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants