Skip to content

feat(conformance): offline release-conformance harness and evidence schema - #99

Merged
AetherAI3 merged 6 commits into
mainfrom
claude/nano88-release-conformance
Nov 8, 2026
Merged

AetherAI3 merged 6 commits into
mainfrom
claude/nano88-release-conformance

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

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

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. verify rejects 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/unsorted SHA256SUMS, 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, identity exact_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 on main since 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

AetherAI3 and others added 6 commits November 7, 2026 23:24
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]>
…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]>
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.

[P1][hillclimb] Build reproducible offline release conformance from exact source and wheels

1 participant