Repository navigation
feat(conformance): offline release-conformance harness and evidence schema - #99
Merged
Merged
Conversation
RFC 0066 still listed records and portable clients as deferred. Point it at RFC 0085 and the q-search lifecycle wire contract, keep enums, results and write clients explicitly deferred, and list the new docs in docs/README.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ce schema Stdlib-only harness under scripts/conformance. It checks out the exact commit in a shared, remote-less clone, pins an input manifest (commit, tree, interpreter, dependency versions, optional SDK pins, Node and wheel-builder versions, suite files and fixture SHA-256), admits a run only when observations equal the pins, and runs the dependency-free core, wheel, capability, pinned-Qiskit and optional cross-repository suites in scrubbed child processes. Evidence is canonical with separate telemetry (docs/release-conformance.schema.json). Capabilities follow main's layout: #84 package CLI (also from the wheel), #85 records, #86 lifecycle wire v1 (SHA256SUMS, regen.py --check, contract and client tests) plus the optional TypeScript client (offline lockfile install, tsc, node --test on each supplied runtime), #87 benchmark replay, the QUBO artifact and the #61 native bridge with required test IDs. Fault-injection tests prove wrong SHA, dirty source, dependency drift, missing tests, all-skips, empty collection, swapped fixtures, broken wheels and manifest mismatch cannot pass a gate. Part of #88. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…le tests that must pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ing a result Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d test checkouts past MAX_PATH Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ndependently
The first Linux CI run of the harness tests failed in two ways that a
Windows-only run could not show:
- The scrubbed child environment dropped LD_LIBRARY_PATH, so the
actions/setup-python toolcache interpreter (a shared-library CPython build)
could not start ("libpython3.10.so.1.0: cannot open shared object file").
Allow the name through; evidence still records names only.
- JUnit file attributes were parsed with the host's path flavour, so a
Windows-produced report did not relativize on Linux. Parse each path by its
own spelling.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 8, 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.
Adds
scripts/conformance/release_conformance.py, a stdlib-only harness that turns "the tests passed somewhere" into a reproducible, machine-checkable release record for an exact commit. Also indexes the new records, native bridge and benchmark docs.What it does
nano --help,nano package --help, import with Qiskit/ATLAS/Predator blocked under-I, and the core pytest suite.git archiveexport of the exact commit, then import, CLI help, package CLI and native fixtures from the wheel only.SHA256SUMSverification,regen.py --check, contract and client tests), TS status client on two Node runtimes (optional, locked install from a caller-supplied npm cache), proposal benchmark ([P1][hillclimb] Freeze an offline proposal-and-repair benchmark for agent-facing Nano #87).NOT_EXECUTEDand listed as such.Evidence contract: versioned
nano.release-conformance.evidence.v1(docs/release-conformance.schema.json), JUnit-derived per-suite counts, skip reasons, exit codes and log hashes. Environment variable names only, never values. Timestamps and durations stay out of the canonical hash. Empty collection, all-skipped required suites, missing fixtures and nonzero exits fail.verifyrejects hand-edited documents. Links #10 for the run log rather than defining a second schema.Fault injection (
tests/test_conformance_faults.py): wrong SHA, dirty source, dependency drift, missing test, all-skips, empty collection, swapped fixture, tampered/unlisted/unsortedSHA256SUMS, broken wheel/import and manifest mismatch can never produce a passing required gate.Results: two fresh runs on the integrated tree, both
core=PASS/release=PASS, identityexact_commit, with byte-identical canonical evidence (sha256:914c402c…bec072). core 2292/2302 (10 optional-dependency skips), package CLI 207, records 190, lifecycle wire 161 + 26 strict xfail, TS client 81/81 on Node 24.18 and 22.19, benchmark 54, QUBO 255, native bridge 81/81. The only change onmainsince then is the #97 benchmark replay fix, which passed CI separately.Limits: verified on Windows / CPython 3.13 only (Linux coverage comes from CI). Mode 3 has not been run against real checkouts. Workflow integration is a follow-up. No workflow, runner or credential changes.
Closes #88. Part of #67.
🤖 Generated with Claude Code