Skip to content

test(distribution): prove same-target payload identity across archive, wheel and npm installs #4624

Open

Description

@EffortlessSteven

Parent: #4489.
Depends on: #4490, #4491, and at least one applicable platform proof from #4621, #4622, or #4623.
Go consumers: #6229 package-build binding and installed journeys #6233/#6234/#6237 under #5521.

Outcome

For one admitted version and target, prove archive, wheel and npm installs expose the same admitted final native payload identity and compatible product behavior. Container/package bytes may differ; ungoverned executable/payload substitution may not.

Shared parity contract

For each selected target/version/channel row:

If a packaging tool legitimately repairs, strips or repacks before the accepted final boundary, record the transformation and compare the resulting admitted payload. Do not assert pre-repair bytes must equal installed bytes without evidence.

Go extension

When a selected package version advertises Go:

A channel/target subset is valid only when explicitly selected. Missing unselected channels remain omitted; an advertised required row must execute.

Required controls

  1. One channel contains a stale/substituted/wrong-target executable -> fail with channel and digest diagnostics.
  2. Desired manifest agrees but installed payload differs -> fail.
  3. Container hash differs while admitted extracted payload agrees -> record, do not false-fail.
  4. Ambient executable or alternate version satisfies one path -> fail.
  5. Wheel/npm payload uses different effective features from the archive -> fail.
  6. Same-version Go-less payload appears in one channel -> Go parity row fails.
  7. Normalized result changes because one channel silently changes CWD/environment/arguments -> fail.
  8. Missing selected channel/target or zero-subject useful fixture -> fail.
  9. Receipt reorders rows/relocates equivalent roots -> stable normalized identity; material payload movement changes it.

Acceptance

Non-goals

No registry publication, credentials, support promotion, cross-target byte equality, assumption that independently compiled Cargo source installs are byte-identical, or requirement that every channel/target be selected for the first bounded release.

Claim boundary

Completion proves final payload parity and compatible behavior for the executed same-target channel rows. It does not establish public availability, unexecuted targets or support beyond the fixture/result actually bound.

Activity

  1. added
    release-check
    status/needs-work
    on Sep 29, 2026
  2. EffortlessSteven commented on Oct 31, 2026

    @EffortlessSteven
    MemberAuthor

    Claim (Wheel and Windows packaged rehearsal lane), for the 0.11 cut via #9274 C3. Scope of the first slice: Linux x64, archive vs ripr-rs wheel only (npm and Go rows stay out). Branch/PR will be linked here. First step is empirical: the archive route (cargo xtask release-server-archive) and the wheel route (maturin build --release) compile independently, so I am comparing the installed executable digests from main 9f5ee1cc8 before deciding whether the receipt asserts byte identity or records a transformation/difference.


    Generated by Claude Code

  3. EffortlessSteven commented on Nov 7, 2026

    @EffortlessSteven
    MemberAuthor

    Ownership check for the 0.11 package qualification work: the October 31 claim above covers the Linux x64 archive-versus-wheel slice. Is that lane still active, and is there an unpublished branch, result, or current owner to continue? I found no linked parity PR or receipt in this issue. I will avoid a competing implementation while ownership is being reconciled. The exact frozen-candidate execution remains under #2769; predecessor rehearsals are not its evidence.

  4. EffortlessSteven commented on Nov 7, 2026

    @EffortlessSteven
    MemberAuthor

    Candidate-neutral fixture/proof review against swarm main 3438c362a7a9d61ad7e607f5dad6198bcc890a17 (not an execution and not a competing implementation):

    • Archive qualification builds with release-server-archive, checks the extracted payload against payload-identity.json, and binds its producer receipt. The npm native producer accepts a qualified archive, payload identity, producer receipt, and build identity. A parity fixture should exercise those real bindings, then independently hash the installed npm and archive executable; merely comparing their input manifests can miss substitution after staging.
    • The wheel workflow independently runs maturin build; packaging/python/pyproject.toml explicitly sets strip = true, a release codegen override, and language features. Therefore measure and record the final transformation/feature boundary before requiring equality: matching versions or source SHAs alone cannot prove final installed payload equality, while differing containers alone must not fail it.
    • wheelhouse.rs already checks pip/uv payload agreement, wrong-PATH detection, source/ambient reachability, and nonzero subjects. Reuse those controls, but they compare consumers of one wheel and are not cross-channel proof. Add a changed installed executable with unchanged input manifest, a same-version Go-less executable where Go is selected, and a missing selected channel; each must fail with the affected channel. An altered container with unchanged final payload should remain admissible. Record selected, omitted, executed and failed counts, and exercise one identical useful fixture through each actual installed path with normalized output and no PATH fallback.

    These are proposed discriminators for the existing owner, not executed results or exact-candidate evidence.

  5. EffortlessSteven commented on Nov 7, 2026

    @EffortlessSteven
    MemberAuthor

    Historical artifact availability check (2026-11-07; no rebuild or dispatch):

    • No .whl, ripr-server*.tar.gz, or payload-identity.json was found under /workspace to depth 5 or in the accessible ripr-swarm/target and .ripr-environment trees. Therefore no installed payload hash or useful-behavior comparison was executed.
    • The wheelhouse and wheel runs on source 1267b11f52a0a3b4311862f83bb547876fc4e3d2 retain Actions artifacts including python-wheelhouse-stage-1267b11f52a0a3b4311862f83bb547876fc4e3d2 and ripr-rs-python-wheel-1267b11f52a0a3b4311862f83bb547876fc4e3d2 (runs 42134591238 and 42134596524). They are not present in this workspace. No archive run has yet been identified with a verified matching candidate input and retained payload for that source and target.
    • The earlier paired wheel rehearsals 41199282855 and 41199285392 (source 9f5ee1cc80409e1e2164b65fc30fa0ef5c10a431) now have zero listed Actions artifacts. Archive run 39678302594 retains Linux archive and identity artifacts but names a different candidate source 393e229fa6759b298a85ab8a711c3f1dd3be1c4d. Run 41201032578 retains archive artifacts, but its workflow head_sha is not by itself proof of its candidate_sha input.

    Missing for this empirical comparison: independently accessible actual x86_64 Linux archive and installed wheel with verified identical source/tree/target and build identities, including final transformed executable and feature evidence. Existing #4624 claimant owns the empirical slice; please share its retained objects or identify the exact matching archive run/input if available. This inventory does not claim candidate parity, feature equality, or a payload mismatch.

  6. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Pre-cut alpha parity evidence, 2026-11-20. The retained Linux x64 payload-identity.json in archive run 43722063769 records ripr 0.11.0, source af88836e4de1319ae9ce057e65e7f20d36ceb7ea, tree 902b3d2ca76b0e0abde4ad04b8378cdc8828aa56, selected features lang-python, lang-rust, lang-typescript, and aggregate payload SHA-256 cbe4d4e463231f7368498931c60cd39af865c4b05ec5b5a0af0eacde534a4329. Exact-name repository Actions artifact queries for ripr-rs-python-wheel-<source> and python-wheelhouse-stage-<source> each returned zero for that SHA. Wheel run 43539587087 retains a wheel for a different source, daf69803abb5f09fecae569a1676473039c7b4c4.

    On Windows at a3ce76b9b2cd61ba7c9882169bac46fe638490f9, npm --prefix packaging/npm/launcher test reported 26 passed, 7 skipped and 14 required controls verified. node --test packaging/npm/qualification/test/journey.test.cjs reported 9 passed and 6 skipped. Missing-native-package refusal ran. The real installed MCP exchange, substituted POSIX payload and real-binary journey were among the skips. Same-source installed archive/wheel/npm parity and the shared useful fixture remain unverified. No qualification was dispatched.

  7. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Concrete producer difference for the existing Linux x64 parity slice, now that the alpha wheel and npm channels are selected: at 2df7ed089c572b1dff48c0b806afbf7e3780d883, the archive producer applies fat LTO (true) and one codegen unit. The wheel manifest uses four codegen units and inherits workspace ThinLTO; the qualification workflow builds that wheel through Maturin. This is a difference before packaging, not just container compression, but no same-source installed digest mismatch has yet been executed.

    Before full installed qualification, use the cheapest same-source/target Linux x64 comparison available: resolve each real installed executable without ambient PATH fallback, record effective build profile and strip/repair boundary, and compare final executable digests separately from wheel/archive/npm container hashes. Prefer one admitted final native payload across selected channels if compatible with their packaging; if a separate build profile is intentional, bring the exact row back to the release selection owner rather than calling it parity. Keep the same-version substituted-payload negative. Record the eventual frozen-candidate result on #2769. This is pre-freeze source evidence only, not a rerun, release approval, or qualification receipt.

  8. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Windows x64 alpha parity rehearsal on archive source 532f7ccadabad8ed26ca1e83197fc1e7a125176e. The repository native archive producer generated a 27,943,445-byte ZIP and recorded a 71,684,608-byte executable, SHA-256 e22e254b53d145e00f8d07cbc21704d53bfee1e488153f509b8777fe86107d97. The aggregate final payload identity is ecd4ea6cfd7b252b2262d46fd4d162fcb76d7a1ac07f0be23201fe940a7120bd. The workflow's checksum, extracted-file, payload and git-bound version readbacks passed locally.

    The native npm wrapper built from those bytes, and a fresh offline install of the launcher plus native tarball exposed the same executable hash. Its public command found the expected weakly exposed predicate and returned an inspect-details continuation. Flipping one executable byte made payload verification fail. Removing the native package made the launcher exit 1 with the exact missing package/version even with a working same-version ripr executable first on PATH.

    The wheel producer stopped itself: wheel entry ripr_rs-0.11.0.data/scripts/ripr.exe has mode 100664, expected 100755. The ZIP writer at this revision encodes the native host format. #15637 already has the Windows ZIP host fix at 92d1ea9d86f4d36b6add303cdda42cb39896b8c8; its PR will carry the real-archive retry. The three-channel result and immutable-candidate qualification are still open.

  9. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Linux x64, version 0.11.0: the archive-derived wheel and npm package passed installed parity; the separate Maturin wheel produced a different executable. Both observations use source af88836e4de1319ae9ce057e65e7f20d36ceb7ea, tree 902b3d2ca76b0e0abde4ad04b8378cdc8828aa56. Governed archive and identity artifacts supplied the archive, native/producer identity and build receipt. Selected features are lang-python, lang-rust and lang-typescript. Go is unselected.

    Installed path Bytes Final installed native SHA-256
    Extracted qualified archive 52,433,248 17fabe984c1c7db796cbeac46085c436d0863b10d2b789fe02644d78685eb02f
    pip-installed archive-derived manylinux_2_34_x86_64 wheel 52,433,248 17fabe984c1c7db796cbeac46085c436d0863b10d2b789fe02644d78685eb02f
    npm launcher resolving installed @effortlessmetrics/ripr-linux-x64-gnu 52,433,248 17fabe984c1c7db796cbeac46085c436d0863b10d2b789fe02644d78685eb02f
    pip-installed workflow-profile Maturin linux_x86_64 wheel 57,202,632 a2c6810da6b332bb497bfe7d5033cd92bd275109553cc6d1c907ae02ef7f09c9

    The exact-source native Linux controller validated the retained archive, build and payload identities before wrapping the first wheel and npm tarball. Archive aggregate cbe4d4e463231f7368498931c60cd39af865c4b05ec5b5a0af0eacde534a4329. Container hashes were independent: archive c2c5b732686872e9723ba519865d5e0576393ca62d5647b6258ec7e1a006c104; wrapped wheel 3681df7c0790e0c58a5dbcc3fe65f25c2a0976fa59974653fcb4452f3ce14af5; native npm e8fe31158717acbf4e58e3f2443da6040a9fab5587bbdb91fcb396edca38dd33; exact-source launcher 0ba118fecacd47ec9ae5f5b9b6c962187c33c594e5f7a0b1750a472f32a8424d.

    Each real installed command ran the same owned Rust threshold fixture twice. All produced complete analysis, exactly one finding at src/lib.rs:5, the expected weakly_exposed → exposed change, and matching limitations and continuation. The canonical comparison normalizes only the owned directory in rendered continuation commands; relocation preserved the result. Replacing the installed npm binary with a same-version different-digest copy preserved the version line but failed installed identity. Removing it with a runnable ambient ripr on PATH produced an explicit missing-native error and never invoked the ambient executable. The selected portable receipt identity is 24a61eb6716ee98615f3a9f3c849107a682ac2318d2b8682f0093e3ffcd70c21.

    For the independent wheel, the exact source workflow uses Maturin 1.14.1, --release, --target x86_64-unknown-linux-gnu and --compatibility linux. In WSL Ubuntu its offline build followed those arguments, ThinLTO, four codegen units and strip. Cargo’s real bin fingerprint contained default plus the three selected languages. Wheel SHA-256 deeb366b79823b0ff533d4116702d74a0a78da561fa84d7fe482d97c8fcba281. All four commands reported the same full Git SHA and matched both semantic fixture states. The generic Linux binary references GLIBC_2.39; archive imports peak at GLIBC_2.34. Platform floor execution remains owned by #4621/#4489. The builds differ in host, profile and transformation inputs, so this comparison cannot isolate a single cause.

    For a byte-parity row, use the existing release package family producer. The separately built Maturin wheel supplies its own wheel/ordinary-install evidence under #4490; substituting it for the archive-derived wheel fails the parity comparison. No registry publication or release qualification was performed. Receipts, transcripts, containers and scripts are retained under target/release-prep/adapter-parity-af88836e-linux/ (wrapped-parity.json SHA caf2c74ac219730937d92c42c0c73dd6c90b4b83bb35fdead0384c6bd99c0841, maturin-compare.json SHA 70a631c4e78f88505f0a7d540dbf6c7dece3c24dd4f3e83034ad436c399235e9).

    Physical layout readback: archive-derived wheel and npm each contain the executable and both original license files at their channel paths. npm also carries the archive notice README-server.txt. The wheel verifies the input notice and supplies its own package metadata/README; no member has the archive notice digest. The common four-file aggregate binds producer input provenance. This row measured installed executable bytes and had no additional native helper.

  10. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Windows x64 archive, wheel and npm parity passed on one pre-cut source. The native archive used 532f7ccadabad8ed26ca1e83197fc1e7a125176e. The corrected wheel producer came from existing #15637 at 92d1ea9d86f4d36b6add303cdda42cb39896b8c8 (local xtask SHA-256 95ce2fed621dbf2c55b94a83256c7cff152dc47af13f2bdbf72f7229c00688a6). The original wheel writer at the native source revision refused its own data/scripts entry as 100664. The corrected producer encoded creator Unix and 100755 for the executable, 100644 for the other five members. Two independent wheel writes were byte-identical. Python zipfile verified the complete RECORD member set, digests and sizes.

    Fresh offline pip and npm installs, plus archive extraction, resolved the same 71,684,608-byte executable, SHA-256 e22e254b53d145e00f8d07cbc21704d53bfee1e488153f509b8777fe86107d97. All three commands returned the exact version/source and found the same changed predicate, probe:src_lib.rs:predicate:c80557eb. The original tests classified it as weakly_exposed. Adding the exact-boundary assertion classified it as exposed. The three routes agreed on limitations and continuation in both states. A second fixture under a path with spaces reproduced both results after normalizing only the known fixture and patch paths (including their display quotes). A one-byte change retained the native version string and failed payload verification. Removing the npm native package failed even with the correct-version executable first on PATH.

    Artifact SHA-256
    Final native payload aggregate ecd4ea6cfd7b252b2262d46fd4d162fcb76d7a1ac07f0be23201fe940a7120bd
    Windows wheel 49f7908ae010fc0d2f2892cab4253c35ea85e39262fed6231a47db8a307df200
    Windows npm native tarball 3be5ae2b013e9e572160e75e4e6975f8cb33fcf8a280eb2266d14d294db98582
    Normalized Windows parity receipt 8a341cbb0610d2d29df081f534c1fd5e25398dcd0e3c9474810af924d27d9523

    Scope is one Windows x64 target, three installed channels, local pre-cut archive wrapping. Final qualification still needs a single selected immutable source with its integrated wheel writer and the selected publication route. The separate Linux Maturin result is recorded on this issue.

  11. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    A second Linux x64 readback used previously produced official package-family artifacts for all three channels. The governed family build and Linux x64 install succeeded. This new readback downloaded family artifact 13628816987, archive 13625939504, native identity 13626617494 and build identity 13626298411. The four retained objects bind source a625240d7bcf4046d45cb00231452c1046876627, tree 2b06300b801a961ac6b5f7e6977c802856468b7d, 0.11.0 and aggregate 678200a1fe33d3121164d78f1a69b526c0bb1dd2fe0257992a4868b69ee25c70.

    Archive SHA-256 11e29f058f61315c49bc92d90bad6e61be5b9ca10ec3e762c0193ecd37046aab, manylinux_2_34_x86_64 wheel ad79f86f70130e252a321c3721327b3d3a4b476d0e9bb9410a69ce1c390c4b9c, GNU x64 native npm tarball ccfa306a05dfc4b1386b349e136db151f2fbcc84289e8ae3d2c199b6b0287bcb. Extracted archive, fresh offline pip install, and fresh offline npm install plus actual launcher resolved the same 50,201,112-byte executable SHA-256 26369d9121b8288f159aa7ea052f0edc09a4ffbbeac3c542785af34a6ea43629. All three commands reported the expected full source SHA.

    The same owned Rust threshold fixture ran through each installed entry point before and after adding its boundary assertion. All three reported complete analysis, exactly one finding at src/lib.rs:5, weakly_exposed then exposed, and identical normalized outputs including limits and continuation. Replacing the installed npm executable preserved --version but yielded digest 60709b72f5cd2e0799519c4e91351eaffdebdb462df0e7a4c9542536c3fe0517; digest comparison refused it. Local evidence: target/release-prep/adapter-parity-a625240d-linux/retained-parity.json, SHA-256 bded0b4d0e8f0113cdb1229c10768378fb2424246b59fd7813c011e1b97846bd. This is a readback of the earlier governed row. Newer-source wrapped/Maturin comparison, native glibc floor under #4621 and frozen-candidate execution retain their own evidence.

  12. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    The current governed native install row checks wheel selection, full version/source text and doctor, but not the pip-installed executable bytes. The npm receipt aggregate already derives the single expected executable SHA-256 (not the aggregate payload hash) from the qualified target's payload-identity.json and binds candidate commit/tree. Reuse that identity in the existing family run, not another native build. Resolve and hash the exact fresh venv's native ripr / ripr.exe without shell or system PATH fallback; gate the retained per-target pip receipt against that identity and keep the wheel container hash distinct. Exercise the same useful fixture on all three installed routes and make the pip gate refuse a substituted executable that still returns the expected version. The measured same-source Maturin difference is why version-only acceptance is insufficient. Recommend the archive-derived wheel for the selected alpha parity claim; if the independent producer remains intentional, report it as a distinct build rather than claiming equal bytes.

    Historical Windows install did pass, but the wheel was produced by the Ubuntu family builder. That does not discharge the native Windows ZIP-writer fix in #15637 or immutable candidate qualification on #2769. No dispatch or release action.

  13. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    All five target packages carried their qualified executable at the same rehearsal commit. Linux x64 and Windows x64 also passed the same installed three-channel behavioral fixture.

    The completed governed rehearsal produced native source c31d051e5c675e007fd35a29c76f9fb4f32a304c, tree 370c6851e9c4cfa0dc9ef714902abd8d38b9466a, version 0.11.0, with lang-python, lang-rust, and lang-typescript. I downloaded the three package families and independently streamed each executable from its actual archive, wheel scripts directory and native npm package. All 15 container hashes agreed with their producer records. The three executable hashes agreed with the qualified executable row separately on each target.

    Target Native executable SHA-256 Hosted npm journey subjects executed
    Linux x64 b8a9fa49cc9f3a5200e04d627abcd9a74980919a5e2c9a91163957e5fb9c760c 19
    Linux arm64 f1a6c00ab512eded9618636a6470a343c08b1a578b85e85af842a1350f1a58dd 19
    Windows x64 fef2c4047c2a553a4c2d1cabde8794bb1c957ce6fd98ac441c5bd122be489383 18
    macOS x64 4ed73d269dedafe388dbb9cdf148916b7174672561fa131b02415373505791fc 19
    macOS arm64 ffd23b91a88836028ad168ac0964c9ea1e2d503935ae3c60005aad6db1f4d885 19

    For Linux x64 and Windows x64 I then installed the same run's wheel with offline pip and launcher/native packages with offline npm and scripts disabled. I invoked the actual npm launcher, explicit venv executable and unpacked archive on each OS with ambient ripr removed. The three paths each returned the exact expected version and agreed on the same-source examples/rust-discount-threshold finding, missing evidence, limitations and continuation before and after strengthening the boundary test. All six original checks were weakly exposed and all six strengthened checks exposed. The candidate verifier in #15783 accepted both venv installs and refused a byte-modified executable on each OS after independently confirming it still printed the identical version.

    The three other target rows here have downloaded-byte identity and the pre-existing hosted npm receipt. The common three-channel behavioral fixture was rerun on two of the five targets. The five-row readback JSON SHA-256 is a7d727dea535ddf3ccb4d869daac00db5e78f25b97f3e72a7a750edbdc7ef668. These are historical release-rehearsal bytes. Repeat applicable rows on the frozen candidate under #2769. No workflow dispatch, Go qualification or registry operation was involved.

  14. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Follow-up for frozen-candidate parity: bind the wheel pip selected to the already-qualified wheel. #15783’s exact verifier independently checks the pip-installed executable bytes. Its wheel-container predicates check only the platform suffix and SHA-256 syntax. An unchanged executable therefore does not prove pip picked the expected distribution version or container. This is narrower than the installed-executable claim and need not interrupt #15783’s existing qualification.

    The same family artifact already carries wheels/wheel-native-receipt-<target>.json. Bind that receipt to the raw qualified payload identity digest and matching source/tree, target, native version and platform tag. Compare the local wheel basename, SHA-256 and normalized distribution version from pip’s report with the producer record, and retain the separate installed executable hash. No new native build or alternate wheel producer is needed. This check qualifies results after pip install and before launching RIPR; it is not pre-install validation.

    A local prototype passed one real offline pip install/report of an inert test package at 0.2.0rc1 (native fixture version 0.2.0-rc.1). With identical installed bytes, report-only controls rejected alternate same-tag wheel, wrong digest, wrong metadata version and wrong distribution; changed producer tree and payload identity were rejected, as was a mismatched executable. No alternate wheel was installed. This is verifier evidence only, not a native release result. Keep the frozen installed channel, behavioral fixture and receipt obligations on #4624/#2769.

  15. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    The wheel-container follow-up is implemented as stacked draft #15788, parent #15783. At 4ed9088 the post-install verifier joins pip's selected wheel name, SHA, package name and Python version to the wheel receipt and its raw archive payload identity. Seven focused tests passed. The reviewed historical five-target producer rows match the wheel files and metadata. Windows and Linux x64 both passed real offline installs and refused all four same-executable report substitutions. The PR retains the exact scope and sequencing. Frozen-candidate execution, public PyPI publisher parity and the #2769 receipt remain outstanding.

  16. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Source-join handoff for the alpha package owners

    The held public qualifiers and the incoming product disagree about installed CLI identity. Public source S (33554d5f10fafc04c4e40e94ce67c59e2f438c57) requires exactly ripr <native-version> in the pip consumer and in both local and reinstalled-global npm consumers. The incoming product at protected draft #13325 (d2da9dc9926887d3badacf80e709e00e4319b22d) emits ripr <native-version> (<full source commit>). Its wheel qualification already expects that stamp. Its npm consumer still expects the old line, and its private npm caller pins the old public controller. Both shapes cannot prove one installed executable on the source join.

    Measured control. I downloaded the historical public Linux x64 ripr-rs==0.11.0a1 wheel and @effortlessmetrics/ripr@0.11.0-alpha.1 tarball, verified the PyPI SHA-256 and npm SHA-512 integrity, and installed both offline in isolated consumers. Their actual executable SHA-256 was 6e72eef24c3533f91edcc96a10c4c485bd3f77e684b628cf3a76185111447a1c, matching the package pin for b1955d098cb628925801976bf1642dbf9329e07e. Their bare version was accepted by the original consumers and refused by the source-join patch. This is a two-channel historical row. No archive row or Go execution is claimed.

    I then installed the retained workflow-profile Maturin wheel and archive-derived npm package at the exact stamped source af88836e4de1319ae9ce057e65e7f20d36ceb7ea. The old readbacks refused both. The patched readbacks accepted the exact source and refused a wrong full commit and wrong version. That source is a version-format control, not an alpha publication candidate. Its Maturin executable remained a2c6810da6b332bb497bfe7d5033cd92bd275109553cc6d1c907ae02ef7f09c9; its archive-derived npm executable remained 17fabe984c1c7db796cbeac46085c436d0863b10d2b789fe02644d78685eb02f. Matching the version output does not discharge the executable mismatch or establish three-channel parity.

    Source-owner action. At the public product-source join, port the three-file patch below (locally reviewed subject e309551f5ce08eba6ccff66435f993bdd0a154c6, parent S). Bind the pip readback to its already-validated exact caller SHA and npm local/global readbacks to the existing verified product_source_sha. Restore the public PR path filters and main dispatch under §10, and wire npm to the joined, accepted public wheel controller (the public parent uses a local reusable workflow). Carry successful exact-head, run/attempt, artifact and prerelease controls through #4490/#4491. Applying the changed predicate to the currently published bare-output product would reject a valid historical alpha; the product change and controller change have to meet at the source join. No public ref, protected publisher, credential or registry was mutated.

    Native Linux tests on the patch passed 31 npm cases, including bare/short/foreign stamp and wrong version. The designated staging-CLI transport case skipped. All 14 PyPI controls passed. Native Windows also passed the npm suite with five platform/staging skips; the PyPI suite on that host encountered symlink-privilege and bash environment failures. Linux is the source-owned qualification platform. Retained executable control receipt SHA-256 is a99ac50c318558bbb03ef7449bd6e32cb0a3f3210b706b69b1a7a29cecc01d43.

    Outstanding frozen-candidate decision. #4490/#4491 and #4489/#4624 must select or attest the same authoritative final transformed native object on the actual public alpha paths. #4493’s typed package gate is single-channel; the joined stable cross-channel receipt still needs a producer for the selected archive, PyPI and npm installs, normalized useful result, continuation, and explicit selected/omitted rows. #15783/#15788 cover the separate archive-wrapped wheel. The selected distribution roster at #13325 names Python, Rust and TypeScript; the manifest has no lang-go and these rows make no Go claim. If Go is advertised, #6225/#6227/#6229 must establish the payload, #6231/#6233/#6234/#6237 must execute the same accepted Go fixture and same-version Go-less control, and #6238 owns the gate. Existing scope should remain explicit until those exact rows run.

    Self-contained Git patch and verified bundle for the source owner

    The patch is based on public S and only changes the two read-only qualifiers and their regression test. The bundle has that single commit and requires only S, which is already in public history. Decode the base64 to a file, check its SHA-256, then use git bundle verify and git bundle list-heads. The blob below recovers the commit without a public push.

    Format-patch SHA-256 2f6cd4ab6e75301a62d9c03ecaf0ecfe21514b1581d796c391d048f760815acd. Bundle SHA-256 3dd8b55e86cbebd86438e2c2d4f8d13a85c7dcfd1c98823c3a805e28f6b77e9d (1327 bytes).

    From e309551f5ce08eba6ccff66435f993bdd0a154c6 Mon Sep 17 00:00:00 2001
    From: EffortlessSteven <15812269+EffortlessSteven@users.noreply.github.com>
    Date: Fri, 20 Nov 2026 14:00:29 -0500
    Subject: [PATCH] fix(qualification): require the joined source stamp from
     installed alpha payloads
    
    ---
     .github/scripts/npm_consumer.py                  |  9 +++++++--
     .github/scripts/test_npm_package.py              | 10 ++++++++++
     .github/workflows/python-wheel-qualification.yml |  2 +-
     3 files changed, 18 insertions(+), 3 deletions(-)
    
    diff --git a/.github/scripts/npm_consumer.py b/.github/scripts/npm_consumer.py
    index a568f9f41a..001bc4f2c8 100644
    --- a/.github/scripts/npm_consumer.py
    +++ b/.github/scripts/npm_consumer.py
    @@ -23,6 +23,11 @@ def require(condition, message):
             raise ValueError(message)
     
     
    +def require_native_version(output, pin):
    +    expected = f"ripr {pin['native_version']} ({pin['product_source_sha']})"
    +    require(output.strip() == expected, "installed native version or source commit mismatch")
    +
    +
     def sha(path):
         return hashlib.sha256(path.read_bytes()).hexdigest()
     
    @@ -118,7 +123,7 @@ def main():
             require(sha(local_binary) == pin["payload_sha256"], "local native bytes mismatch")
             require((local / "node_modules/.bin/ripr").resolve() == local_binary, "npm did not link native executable directly")
             local_prefix = [local / "node_modules/.bin/ripr"]
    -        require(command([*local_prefix, "--version"], root, env).stdout.strip() == "ripr " + receipt["version"], "native version mismatch")
    +        require_native_version(command([*local_prefix, "--version"], root, env).stdout, pin)
             proof["routes"].append(useful_journey(local_prefix, project, env, output, "local"))
             global_root = root / "global"
             command([*npm_command, "install", "--global", "--prefix", global_root, "--ignore-scripts", "--offline", "--no-audit", "--no-fund", tarball], root, env)
    @@ -208,7 +213,7 @@ def main():
                 require(attempt.returncode != 0 and "EBADPLATFORM" in attempt.stderr, "wrong platform was accepted: " + key)
                 proof["negative_controls"].append("npm rejects contradictory " + key + " metadata")
             reinstall_global(npm_command, global_root, tarball, root, env, pin["payload_sha256"])
    -        require(command([global_binary, "--version"], root, env).stdout.strip() == "ripr " + receipt["version"], "reinstalled native version mismatch")
    +        require_native_version(command([global_binary, "--version"], root, env).stdout, pin)
             (project / "ripr.toml").unlink()
             proof["reinstall_journey"] = useful_journey([global_binary], project, env, output, "fresh-reinstall")
             command([*npm_command, "uninstall", "--global", "--prefix", global_root, "--ignore-scripts", PACKAGE_NAME], root, env)
    diff --git a/.github/scripts/test_npm_package.py b/.github/scripts/test_npm_package.py
    index e6816c5a2a..a8638377ff 100644
    --- a/.github/scripts/test_npm_package.py
    +++ b/.github/scripts/test_npm_package.py
    @@ -100,6 +100,16 @@ def native_evidence_fixture():
     
     
     class NpmNativeEvidenceTests(unittest.TestCase):
    +    def test_joined_native_version_binds_the_exact_product_source(self):
    +        sha = "a" * 40
    +        version = "0.11.0-alpha.2"
    +        pin = {"native_version": version, "product_source_sha": sha}
    +        CONSUMER.require_native_version(f"ripr {version} ({sha})\n", pin)
    +        for wrong in (f"ripr {version}", f"ripr {version} ({'b' * 40})",
    +                      f"ripr {version} ({sha[:12]})", f"ripr 0.11.0 ({sha})"):
    +            with self.subTest(output=wrong), self.assertRaisesRegex(ValueError, "source commit"):
    +                CONSUMER.require_native_version(wrong, pin)
    +
         def test_native_preparation_requires_same_run_completed_python_consumers_and_exact_zip(self):
             source, files, artifact = native_evidence_fixture()
             data = zip_bytes(files)
    diff --git a/.github/workflows/python-wheel-qualification.yml b/.github/workflows/python-wheel-qualification.yml
    index cef7446438..8805d04a78 100644
    --- a/.github/workflows/python-wheel-qualification.yml
    +++ b/.github/workflows/python-wheel-qualification.yml
    @@ -584,7 +584,7 @@ jobs:
               test "${resolved}" = "${executable}"
               test "$(sha256sum "${resolved}" | awk '{print $1}')" = "${EXPECTED_PAYLOAD_SHA256}"
               test "$(env -i HOME="${HOME}" PATH="${consumer_path}" ripr --version)" = \
    -            "ripr ${RIPR_NATIVE_VERSION}"
    +            "ripr ${RIPR_NATIVE_VERSION} (${CANDIDATE_SHA,,})"
               test ! -e "${planted_marker}"
               python3 evidence/python_consumer_evidence.py passed native_identity
               {
    IyB2MiBnaXQgYnVuZGxlCi0zMzU1NGQ1ZjEwZmFmYzA0YzRlNDBlOTRjZTY3YzU5ZTJmNDM4YzU3IGNpOiBpc29sYXRlIG5wbSB3b3JrZmxvdyBsaW50IGNvbmZpZ3VyYXRpb24gKCMxOTAwKQplMzA5NTUxZjVjZTA4ZWJhNmNjZmY2NjQzNWY5OTNiZGQwYTE1NGM2IEhFQUQKClBBQ0sAAAACAAAACJAXeJy1jUtOxDAQBfc5RS9BiJHj+BMjhNhwAk7QttvEI8fO+IOY25M1e5b1Sk/VKxFoieRZEHyxytlltdag8k5Lh4pbhioE5rm204GVcodlkVJ4GWYWMDgmnCDByAhHSjtpiAexrE7qCUffSoWPEErtiVr77PRNGV5nuc6cK/P0V72PRrVdcql0pPvlK/Zt2Isr+xvM2kjOzpuBZyYZm851j73TvwWmEH8ebgNTDNFhjyU/vkCl24iVoG8E1xIzeWhlVEfQOu4HhFp2iPmElE6H6dgQDryngr5NvyFieeDxAvD6dAaWUVwNVm6a8z0d7m4+/K8/eJxbxrOMZwMzo8jG1OrzGm0/f/3V8N4q9Lkn81vfsvWbxRn5WQH+Fg8F8wOuZFX04Y9TDyPzukMokCSwgoJNK3icATMAzP/DAsMCkOMUW+wBN8Kzh+Gyqk9EMLt9o9Zw86KR9zgUMZCgMXNNQBSiJeFBCsO3IWWDWmqJ8Bf39wNA3kizFm1UbletJ9xlfYOWqJBiaXicATcAyP+RA5EDkBcUABvE8shGK+0iwyS4/mz92mQGk+qRK+QUqGODd/8yqdQ4pw8oG87MVwLAngiTIwFuvBQY2v4QpWj59BplJW20STgUV+f200ZFagh4nNtYMbdygyJTfVFqYWlmUWp8XmJJZllqfFlqUXFmfp5GfmlJQWmJjkJBZp6mFZcCEKRWFKQml6SmKNgqpCkVZRYUKVQDJaPVUTWqx9YqaEAkCoryU0qTS+KL80uLklPjizMSgZKaSmDDoLZq5MuA7dErLgGaqKGpYGsLt0dHQWmyjoWkVH6RAsQEheT83NzMEoXczOLcxJLkDKXNkkw/JfnRXD5ZSMaCFezuzb0yVtIY0vP1pSaLSMhBlEw20FfaXGBxkBkAwaRfmfce5oFsWip9QOBFAy8/FQaPYbTMDd14nHt9knnLOeYNwsL1WfmZeakp8XmJJZllqfFlqUXFmfl58UmZeSnF8SUZqfGpFYnJJfEFRfkppUC6OL+0KDlVozg1J03TiksBCoozEhVsFZQSlRS0FEwM4MJQw0BSBnqGhnoGuok5BRmJekZKcCUF9Zkg+WolVPuVrGCadRSUUO2OB1oGlAaStXBTnP39gkN9XYP0ilILSzOLUtF8o5GmVJRZUKRQDeXXKmhUg/RrxuQp+eooFGTmacKNSssvUigvys9LVwA6DEOjko4CFrPUk9TBHq/VnMz4SNIUu23RVoZGsbWaCBMgQQJzymRGYyWe/NKSgtISW7D9kx+UiEw+ny3MB/G2QnJ+bm5midLkRBXhyR+0OWVweBWid6OP6GZh4RsXAUV+pHTxApL2qkr3ixeukCvjH3Kx1d592TQueJxbwrmEc4MFk0gH6wWvCu4bP46nrntiarX68exMfuvNPkwRTADqUw23+ALO90RkOCMM/Es4NrJL+8E0YwMFtXicu9DP9LSfacOBbFEFDZVqZ0c/F08XxxDX+GAPRx2dWs3JEyskN9/M/i4NADJiDyNf0EdQ1e3YhmyJsUMLVzyyFepaKQ==
    
  17. EffortlessSteven commented on Nov 24, 2026

    @EffortlessSteven
    MemberAuthor

    Historical public positive control for the Python lane: PyPI’s file provenance reports a verified Publish attestation for ripr_rs-0.11.0a1-py3-none-manylinux_2_34_x86_64.whl, SHA-256 de881aa3512d10b79b48ef55233afdd133ff37b845a054b037185522d0e0c0bd. It names EffortlessMetrics/ripr, publish-pypi.yml, commit b1955d098cb628925801976bf1642dbf9329e07e and run 36671146581, attempt 1, matching the first-upload receipt.

    This is PyPI’s recorded verification, not a new local verifier run or install. It establishes the publisher identity for this exact historical Linux x86-64 alpha wheel only. It neither closes #15788’s selected-wheel/installed-payload proof nor qualifies a new candidate, additional targets, or publication. Public copy should keep the ripr-rs distribution distinct from the ripr command and the unrelated ripr distribution.

  18. EffortlessSteven commented on Nov 25, 2026

    @EffortlessSteven
    MemberAuthor

    PR #15788 landed as 5000e3d6ae745eb39f94c9569762efe48f07b2e4 (tree 8abb41fc27f7a8487525dcf59419b3ed353884f7) after the protected merge group's required result passed. The verifier now binds pip's selected wheel basename, digest, distribution and normalized Python version to the governed wheel producer receipt instead of assuming the intended container was installed.

    This is a code landing, not qualification of a frozen package. The remaining acceptance is to run the selected archive, wheel and npm channels on the immutable #1609 candidate, retain the real pip install report, selected container checksums and installed executable/helper identities, and carry the same-run useful parity outcomes to #2769. Keep the wrong-wheel/report controls and no PATH fallback. Run 44901189601 remains historical predecessor evidence; this comment does not close either issue.

  19. EffortlessSteven commented on Nov 25, 2026

    @EffortlessSteven
    MemberAuthor

    Independent replay of historical Linux x64 wheel/npm only: retained containers bound to b1955d098cb628925801976bf1642dbf9329e07e both installed offline to executable SHA-256 6e72eef24c3533f91edcc96a10c4c485bd3f77e684b628cf3a76185111447a1c. Replayed four check outputs and both explain --from continuations byte-for-byte against the same fixture. Both channels recognized the added assertion but still returned weakly_exposed where the fixture expected exposed. Retained replay shard SHA-256 5f1a06cb7303f26c73869089cddefbc910140cbfbebe1cb5bcb2e10e19774e36, 16,803,840 bytes. This is a historical calibration receipt, not an accepted #1609 frozen candidate, archive-channel proof, or release approval.

  20. EffortlessSteven commented on Nov 30, 2026

    @EffortlessSteven
    MemberAuthor

    Bounded installed-wheel verifier follow-up for the existing package owner. On exact base 0e12a8b05c758ef252e295c238acad74a1f98dc6, an internally consistent producer record, wheel name and pip report all claiming Python 0.11.0a1 were incorrectly accepted for stable native 0.11.0. The patch binds the producer/pip version to the existing Rust native-to-Python mapping and preserves the v1 receipt schema. Independent exact-diff replay verified both postimages, 12 unit tests, 14 mapping edge controls and 2 v1 exact-key/schema controls. It rejects the wrong-version triple before emitting receipt. This is offline verifier evidence, not a real package test or approval to publish. Please keep one integration owner and use the normal source-review and qualification path.

    Patch SHA-256 dcbd456283e60ed9d934039bf356dfe6aebb753cfe513d59b28b081e48f79b2c; 4,949 LF bytes including final newline.

    Exact tested patch
    diff --git a/tools/python/installed-wheel-identity/test_verify.py b/tools/python/installed-wheel-identity/test_verify.py
    index 795e82d8fcb564d9a1112ec0a61a0aa60f8134d9..aa5762584a2ab858be81f7e584246199e485d8dd 100644
    --- a/tools/python/installed-wheel-identity/test_verify.py
    +++ b/tools/python/installed-wheel-identity/test_verify.py
    @@ -39,14 +39,43 @@ class InstalledWheelIdentity(unittest.TestCase):
             wheels.mkdir(parents=True)
             self.producer_file = wheels / "wheel-native-receipt-x86_64-pc-windows-msvc.json"
     
    -    def verify(self, *, identity_bytes=None):
    +    def verify(self, *, identity_bytes=None, native_version="0.11.0"):
             if identity_bytes is None:
                 identity_bytes = json.dumps(self.identity).encode()
             self.identity_file.write_bytes(identity_bytes)
             self.producer_file.write_text(json.dumps(self.producer), encoding="utf-8")
             package = {"download_info": self.download, "metadata": self.metadata}
             (self.root / "pip-report.json").write_text(json.dumps({"install": [package]}), encoding="utf-8")
    -        return verify(self.root, self.root, "x86_64-pc-windows-msvc", "0.11.0", "a" * 40, "win_amd64")
    +        return verify(self.root, self.root, "x86_64-pc-windows-msvc", native_version, "a" * 40, "win_amd64")
    +
    +    def set_versions(self, native, python):
    +        self.identity["version"] = self.producer["version"] = native
    +        self.producer["payload_identity_sha256"] = hashlib.sha256(json.dumps(self.identity).encode()).hexdigest()
    +        self.producer["python_version"] = self.metadata["version"] = python
    +        self.producer["wheel"] = f"ripr_rs-{python}-py3-none-win_amd64.whl"
    +        self.download["url"] = "file:///" + self.producer["wheel"]
    +
    +    def test_matching_alpha_wheel_and_report_refused_for_stable_native_version(self):
    +        self.set_versions("0.11.0", "0.11.0a1")
    +        with self.assertRaisesRegex(ValueError, "native version"):
    +            self.verify()
    +        self.assertFalse((self.root / "installed-wheel-identity.json").exists())
    +
    +    def test_supported_prerelease_versions(self):
    +        versions = (("0.11.0-alpha.1", "0.11.0a1"),
    +                    ("0.11.0-beta.2", "0.11.0b2"),
    +                    ("0.11.0-rc.12", "0.11.0rc12"))
    +        for native, python in versions:
    +            with self.subTest(native=native):
    +                self.set_versions(native, python)
    +                self.assertEqual(self.verify(native_version=native), self.binary)
    +
    +    def test_lossy_or_unsupported_native_version_refused(self):
    +        for native in ("0.11.0-preview.1", "0.11.0-rc.01", "0.11.0+build.1"):
    +            with self.subTest(native=native):
    +                self.set_versions(native, "0.11.0")
    +                with self.assertRaisesRegex(ValueError, "unsupported native version"):
    +                    self.verify(native_version=native)
     
         def test_smoke_path_names_verified_executable_and_receipt_distinguishes_hashes(self):
             (self.root / "ripr").write_bytes(b"extensionless sibling")
    diff --git a/tools/python/installed-wheel-identity/verify_installed_wheel.py b/tools/python/installed-wheel-identity/verify_installed_wheel.py
    index def873cc755ee47b6fbe69bb634387f5a56ea492..0ab38276e44afbd1ac8b6e1a19c0729c91304890 100644
    --- a/tools/python/installed-wheel-identity/verify_installed_wheel.py
    +++ b/tools/python/installed-wheel-identity/verify_installed_wheel.py
    @@ -10,6 +10,18 @@ import sysconfig
     from urllib.parse import unquote, urlsplit
     
     
    +def expected_python_version(native):
    +    """Apply xtask's distribution::version::pep440_version contract offline."""
    +    number = r"(?:0|[1-9][0-9]*)"
    +    match = re.fullmatch(rf"({number}\.{number}\.{number})(?:-(alpha|beta|rc)\.({number}))?", native)
    +    if match is None:
    +        raise ValueError(f"unsupported native version {native!r}")
    +    release, label, ordinal = match.groups()
    +    if label is None:
    +        return release
    +    return release + {"alpha": "a", "beta": "b", "rc": "rc"}[label] + ordinal
    +
    +
     def verify(root, scripts, target, version, commit, wheel_tag):
         identities = list((root / "qualified-payload").rglob("payload-identity.json"))
         if len(identities) != 1:
    @@ -45,7 +57,9 @@ def verify(root, scripts, target, version, commit, wheel_tag):
         ):
             raise ValueError("wheel producer receipt does not match the qualified payload")
         metadata = package["metadata"]
    -    python_version = producer["python_version"]
    +    python_version = expected_python_version(version)
    +    if producer["python_version"] != python_version:
    +        raise ValueError(f"wheel producer Python version differs from {python_version} for native version {version}")
         if re.sub(r"[-_.]+", "-", metadata["name"]).lower() != "ripr-rs" or metadata["version"] != python_version:
             raise ValueError("pip distribution name or version differs from the qualified wheel")
         selected = urlsplit(download["url"])
  21. EffortlessSteven commented on Nov 30, 2026

    @EffortlessSteven
    MemberAuthor

    Independent test-only handoff for the wheel-version candidate. The package-family workflow (blob 948adfd88207caa0d4ffa4f00d213af7adc8cbe4) consumes the verifier's exit status and stdout executable path under set -euo pipefail. The receipt upload is success-gated. A pre-existing receipt's presence alone does not identify a successful retry.

    Add this method to InstalledWheelIdentity in the candidate's tools/python/installed-wheel-identity/test_verify.py. From that directory run python -m unittest -v test_verify.InstalledWheelIdentity.test_retry_cli_preserves_history_and_withholds_success_path. One test passed locally against verifier blob 0ab38276e44afbd1ac8b6e1a19c0729c91304890. In the same fixture root the first CLI invocation returned zero and the verified path; the mismatched retry returned nonzero, emitted the expected diagnostic and zero stdout bytes. An archived copy of the first receipt retained its exact bytes. This exercises the attempt boundary without prescribing cleanup of a scratch file or deletion of historical receipts. Synthetic Windows layout on Linux, no package install or hosted run.

        def test_retry_cli_preserves_history_and_withholds_success_path(self):
            import os
            import subprocess
            import sys
    
            # Use the real CLI with its scripts directory pointed at the fixture.
            verifier = Path(__file__).with_name("verify_installed_wheel.py")
            entry = ("import runpy, sys, sysconfig; "
                     "sysconfig.get_path = lambda _: sys.argv[2]; "
                     "runpy.run_path(sys.argv[1], run_name='__main__')")
            env = dict(os.environ, RUNNER_TEMP=str(self.root),
                       TARGET=self.identity["target"], VERSION="v0.11.0",
                       CANDIDATE_SHA="a" * 40, WHEEL_TAG="win_amd64")
            def attempt():
                self.identity_file.write_bytes(json.dumps(self.identity).encode())
                self.producer_file.write_bytes(json.dumps(self.producer).encode())
                package = {"download_info": self.download, "metadata": self.metadata}
                (self.root / "pip-report.json").write_bytes(json.dumps({"install": [package]}).encode())
                return subprocess.run([sys.executable, "-c", entry, str(verifier), str(self.root)],
                                      env=env, capture_output=True, check=False)
    
            first = attempt()
            self.assertEqual(first.returncode, 0, first.stderr)
            self.assertEqual(first.stdout, (self.binary.as_posix() + "\n").encode())
            receipt = self.root / "installed-wheel-identity.json"
            archived = self.root / "attempt-1" / receipt.name
            archived.parent.mkdir()
            prior = receipt.read_bytes()
            archived.write_bytes(prior)
            self.set_versions("0.11.0", "0.11.0a1")
            retry = attempt()
            self.assertNotEqual(retry.returncode, 0)
            self.assertIn(b"wheel producer Python version differs", retry.stderr)
            self.assertEqual(retry.stdout, b"")
            self.assertEqual(archived.read_bytes(), prior)
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

    release-checkstatus/needs-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions