Skip to content

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

Closed

Description

@AetherAI3

Outcome and evidence gap

Create one reproducible, machine-readable release-conformance path for the now-integrated source. Nano main contains #82 at cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f; ATLAS #188 landed on claude/qcomms-hw0-atlas-multipub at db6a30eb50fd096af870843e80e31385629ba7a3, and Predator #460 on claude/qcomms-hw0-pilot at 34adff73a31631be5b3c2b49303a42416f258a2e. These private branches are not their default main deployments.

The integration had reviewed local evidence, including 2446 Nano passes/3 skips and 522 Predator passes/0 skips, under an explicit waiver for those three PRs. Cloud run 41322926091 failed startup with zero jobs/checks. This issue builds a reproducible harness; it does not relabel that historical run or assume the old waiver applies to future merges.

First milestone and immutable input manifest

Implement a local harness and release-evidence schema before any workflow integration. Inputs pin full 40-hex repo commits, dependency/SDK versions, artifact SHA256 values, platform/interpreter and selected suite IDs. Verify source refs/cleanliness before execution and afterward. Validate that a proposed merge tree corresponds to the source under test; distinguish equivalent tested tree from exact tested commit and record both.

Use separate required modes:

  1. dependency-free core/import/CLI/contribution suite;
  2. optional pinned Qiskit/Aer local compile/prepare/decode suite;
  3. cross-repository fake-provider lifecycle/accounting/provenance suite using explicit local checkout paths.

No implicit private checkout or environment credential discovery. Private sources are caller-supplied reviewed directories or separately authorized read-only checkouts. Run source checkouts and installed wheels from outside the repo, preventing PYTHONPATH/cwd leakage.

Conformance coverage

Honest evidence contract

Emit source/head/base/tree identity, dependency lock hashes, commands, environment allowlist names without values, per-suite executed/pass/fail/error/skip counts, skip reasons, required capability status, exit codes, JUnit/log hashes and artifact locations. Empty collection, all-skipped required suite, missing fixture or nonzero tool exit fails that suite. Startup/admission failure means NOT_EXECUTED. A configured runner label is not an actual runner identity; capture actual runner/job/run IDs only when execution occurs.

Separate conformance manifest from existing runtime run-log serialization (#10); link that issue instead of creating another log schema authority. Runtime timestamps/performance data stay outside canonical behavior hashes.

Acceptance and integration boundary

A fresh environment reproduces the same functional/canonical evidence twice on a documented supported platform. Exercise another available platform/interpreter or report that matrix row unverified. Fault-injection controls prove wrong SHA, dirty source, changed dependency, missing test, all-skips, swapped fixture, broken wheel/import and manifest mismatch cannot yield a passing required gate. Tests must not import provider credentials, contact IBM, call models or execute deployment hooks.

A second small PR may integrate an already authorized self-hosted route with serialized execution and artifact upload. Do not change runner registration, credential scopes, security policies or publish to a Cloud branch with preview side effects under this issue alone. Unavailable runner admission is an external blocker, not permission to bypass controls. Final release/native-bridge completion requires #61; the initial harness milestone can land with that gap truthfully recorded.

Hillclimb protocol and evidence

Start from a clean, isolated branch and record the actual base SHA; the reviewed baseline is Nano cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f (source). Rebase and recheck if main has advanced. Link this issue to roadmap #67. Before editing, freeze the contract/fixture hashes, reproduce the specific missing behavior, and record a passing adjacent compatibility control. A missing feature is an expected rejection, not an invented production incident.

Use at most three candidate iterations against the frozen development set. Log each hypothesis, minimal diff, command, seed/environment, result and regression delta. Keep any held-out set immutable and report its final evaluation separately; do not tune against it. Stop and report an unresolved failure or dependency rather than weakening validation, increasing caps, deleting a negative control or relabelling skips as passes.

Deliver small reviewable PRs with exact head/base SHAs, commands, pass/fail/skip denominators, fixture/artifact hashes and limitations. Coordinate shared schemas before implementation; only one lane edits each shared contract at a time. Preserve baseline/Intent/executable/package/quantum schema identities independently. Issue creation is planning authorization, not permission to launch agents, merge, deploy, spend or change runner/security/credential settings. Tests are offline, fake-provider or local simulator only. CI startup failure with zero jobs remains a failure; any later merge exception needs its own applicable authority. The prior local-test waiver covered only PRs #82/#188/#460.

Dependencies and lane boundary

Harness/schema/failure-controls can begin independently. Native prepare/sample release conformance remains BLOCKED until #61 acceptance passes. Consume #84 package CLI and #86 portable-wire goldens when available, with explicit capability status. #85 records are a separately declared future capability; #87 supplies frozen benchmark reports. Reuse existing #10 for runtime run-log byte stability and #55/#56/#57 for unfinished hardening. Own harness/report files; ask the responsible lane for source fixes instead of racing shared service/compiler files.

Activity

  1. AetherAI3 commented on Nov 8, 2026

    @AetherAI3
    OwnerAuthor

    Frozen protocol goldens for #88 from #86 (#91/#92): protocol/qsearch-lifecycle/v1/ with SHA256SUMS. The goldens are regenerated deterministically by fixtures/regen.py, and --check exits non-zero on any byte drift. Stack-head hashes (first 16 hex): CONTRACT.md be60cd4a786b79fe, SHA256SUMS b988622065113bcf, negative.v1.json 0dc5ac0e08908cc9. Release conformance can verify against SHA256SUMS directly.

  2. AetherAI3 commented on Nov 8, 2026

    @AetherAI3
    OwnerAuthor

    Linux follow-up: #103 (merged 387900c) adds the Release conformance workflow, which runs the harness on every push to main. Its first Linux end-to-end run (run 42476394471), CPython 3.11.18, Qiskit 2.3.1 / Aer 0.17.2:

    • gate core=PASS, release=PASS, admission ADMITTED, identity exact_commit; verify passed
    • core pytest 2307/2307 (11 optional-dependency skips); all wheel checks PASS
    • package CLI 207, records 190, lifecycle wire 334 (SHA256SUMS + regen check PASS), proposal benchmark 54, QUBO 255, native bridge 81 — all required, all PASS
    • optional, not executed: TypeScript client rows (--no-node; it has its own workflow) and the cross-repository mode

    Full-harness runs on Linux CPython 3.10/3.12/3.13 remain unverified; the harness's own tests run on all four in CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions