Skip to content

build(pypi,npm): build and install-test wheels and npm packages for all five targets in the release rehearsal - #13809

Merged
EffortlessSteven merged 12 commits into
mainfrom
claude/project-thread-oxqhl8
Nov 8, 2026
Merged

EffortlessSteven merged 12 commits into
mainfrom
claude/project-thread-oxqhl8

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Governing issue or accepted claim: #5378

Acceptance delta (one sentence): One release-server-binaries.yml dispatch now wraps all five qualified archive payloads into ripr-rs platform wheels and native npm packages plus the launcher, and installs each family member offline with pip and npm on its own native runner, without publishing anything.

Problem

PyPI and npm only carry Linux x86-64 alphas. The five server archives already qualify for every target, but nothing turned those payloads into wheels or npm platform packages, so macOS, Windows and Linux ARM users had no registry install path (#5378). The npm native producer from #11085 admitted Linux x64 only, and there was no wheel producer that reuses archive bytes.

Change

  • policy/distribution.toml: each target pins a wheel_platform_tag (manylinux_2_34_x86_64, manylinux_2_34_aarch64, macosx_10_12_x86_64, macosx_11_0_arm64, win_amd64), checked by check-release-targets. The manylinux floor matches the archive job's glibc 2.34 check; the macOS values are rustc's defaults, since the archive build sets no deployment target.
  • npm_native.rs: the package name, os/cpu/libc, executable path and archive name come from the identity's policy row, cross-checked against the launcher contract. Receipts are per target. Windows payloads skip the source execute-bit check, because zips carry no POSIX mode. expected_qualification is the single owner of the identity/producer/build/archive binding, shared with the wheel producer.
  • New wheel_native.rs: a deterministic ripr_rs-<pep440>-py3-none-<tag>.whl built from the verified payload with the same binding as the npm producer. METADATA comes from packaging/python/pyproject.toml. The wheel is re-opened and fully verified before promotion.
  • New packages.rs and release-server-archive --packages-from <artifacts> --out-dir <dir>: extracts each target's flat archive (refusing nested, hidden, duplicate or non-regular members) and runs both producers in a private staging directory. Only when all five targets succeed are npm/ and wheels/ promoted; any failure promotes nothing.
  • Workflows:
    • release-server-binaries.yml stays pure delegation (its existing guard forbids steps in the entrypoint) and adds a packages job that calls the new workflow after rehearse.
    • New package-family-qualification.yml (workflow_call only, contents: read): build produces the family and packs the launcher into the ripr-platform-packages artifact; package-smoke runs on five native runners. pip installs from the whole five-wheel directory and must choose the host's own tag. npm installs --offline from the launcher plus the host's native tarball with an empty cache. Both installed commands must print ripr <version> (<commit>) and run ripr doctor in a fresh Cargo project. On macOS the Mach-O minimum OS must not exceed the wheel tag.
    • New guard test swarm_package_family_rehearsal_cannot_publish with seven negative controls (write permissions, id-token, secrets, registry-url, npm publish, twine/pypi-publish, persisted credentials).
  • Docs (RELEASE_BINARIES.md, INSTALL_CHANNELS.md), workflow allowlist, lane ledger, risk packs and changelog fragment.

Decisions

  • Wrap archive bytes instead of rebuilding with maturin per platform. One binary per target, already qualified and digest-bound, so wheel, npm and archive installs run identical bytes.
  • Ride the existing rehearsal dispatch through a called workflow. The release operator gets archives and packages from one dispatch, while the entrypoint keeps its no-steps guard.
  • No publication. Uploading to PyPI and npm stays with the release operator in EffortlessMetrics/ripr. Native npm packages must go out before the launcher, with a non-latest tag for prereleases.

Evidence

  • Local: cargo test -p xtask -- wheel_native npm_native release_server::packages passes, including every policy target packing its launcher-matching npm package, cross-target identity refusal, wheel inventory/RECORD/tag/mutation rejections, archive extraction negatives and the failed-family-promotes-nothing case. The workflow guard tests pass.
  • Rehearsal run 42502366826 (head a625240) was fully green on all five platforms; pip chose the host tag everywhere and macOS minos matched 10.12/11.0.
  • Rehearsal run 42517337270 on head 19290b3 (after the split and atomic promotion): archives, manifest, package build and install smoke on all platforms. Final result is recorded in the source review.
  • gh_pr_status_no_settings (flagged by the focused-proof bot) passes 7/7 locally on 19290b3; it does not touch this diff.
  • Local full precommit was OOM-killed compiling the unrelated ripr lib test target in this container; hosted CI covers it.

Workflow trust note

This PR changes release qualification machinery, so it needs independent review and cannot self-qualify. The new jobs have contents: read only, use no secrets, and the only thing they upload is an Actions artifact.


🤖 Generated with Claude Code

https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq

…, #4778)

The native npm producer admitted only Linux x64. It now derives the
package name, platform metadata, executable path and archive name from
the identity's policy row, cross-checked against the launcher contract,
and writes a per-target receipt so one output directory can hold the
whole family.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
Wraps one target's verified native release payload into a platform-tagged
ripr-rs wheel without rebuilding, binding the same payload identity, producer
receipt, selected-target build identity and qualified archive as the npm
producer. Re-opens and verifies the wheel before promotion and writes a
per-target receipt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…mily and install-smoke each platform (#5378)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…nd document it (#5378)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 41527141-0002-42f0-b351-dbd3cbfc6c26
Commits

Reviewing files that changed from the base of the PR and between bea374c and 6064009.

Files selected for processing: 19

  • .github/workflows/package-family-qualification.yml
  • .github/workflows/release-server-binaries.yml
  • changelog.d/5378-platform-wheels-and-npm-packages.md
  • docs/INSTALL_CHANNELS.md
  • docs/RELEASE_BINARIES.md
  • policy/ci-lane-whitelist.toml
  • policy/ci-risk-packs.toml
  • policy/distribution.toml
  • policy/proof-packs.toml
  • policy/workflow_allowlist.txt
  • xtask/src/main.rs
  • xtask/src/policy/distribution/contract.rs
  • xtask/src/policy/distribution/targets.rs
  • xtask/src/reports/release_server.rs
  • xtask/src/reports/release_server/npm_native.rs
  • xtask/src/reports/release_server/packages.rs
  • xtask/src/reports/release_server/payload.rs
  • xtask/src/reports/release_server/wheel_native.rs
  • xtask/src/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY — head 87d1c5f

Independent fresh-context review of the full diff found nothing blocking. Its three nits are in a625240: a pinned toolchain for the smoke job, a diagnostic when the macOS minimum cannot be read, and the docs pip command now matches the workflow. 87d1c5f adds only a merge of main, with no conflicts.

Rehearsal run 42502366826 on a625240 (https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/42502366826) passed every job:

  • five archives built and qualified;
  • packages wrote five wheels, five native npm packages and the launcher;
  • package-smoke passed on Linux x64 and ARM64, macOS Intel and ARM64, and Windows x64. On each one pip picked the host's own tag from all five wheels, offline npm installed the launcher plus the native package, and both installs printed ripr 0.11.0 (a625240d…) and ran ripr doctor. The macOS Mach-O minimums read 10.12 and 11.0, equal to the wheel tags.

Locally: 17 producer tests, clippy -D warnings on xtask, fmt, check-workflows, check-ci-lane-whitelist, check-release-targets, check-command-catalog, and the process and network policies all came back clean. The full local precommit was OOM-killed while compiling an unrelated ripr lib-test target, so hosted CI covers that part.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 8, 2026 18:24
@EffortlessSteven EffortlessSteven self-assigned this Nov 8, 2026
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 6064009a3323 · run · advisory, static evidence only (not a mutation run).

ripr did not produce a report for this commit. Nothing here is a finding.

diff_scope_oversized: 2023 changed Rust lines across 9 Rust files exceed the RIPR_MAX_DIFF_CHANGED_RUST_LINES limit (2000)

…eds; one owner for build-identity binding (#5378 review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…package family into a called read-only workflow (#5378)

swarm_server_binary_rehearsal_cannot_publish requires release-server-binaries.yml
to carry no steps of its own. The package build and install smoke now live in
package-family-qualification.yml (workflow_call only, contents: read), guarded
by swarm_package_family_rehearsal_cannot_publish with publication negatives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs focused proof failure resolved before upstream.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package xtask --test gh_pr_status_no_settings. This is a current failure, not a red/green witness.

…harden family promotion (#5378)

Independent review of the workflow split found the moved package jobs had
left release-proof routing: proof-packs only listed the entrypoint. The
release-package pack and check-proof-packs' required surfaces now include
package-family-qualification.yml.

Also: roll back a partially promoted family so a retry is never refused,
create the family staging before the temp payload dir so a refused output
dir leaks nothing, restrict the called workflow's triggers to exactly
workflow_call (schedule negative control added), bind the caller check to
the packages job, and correct the lane ledger description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY — head 6064009

A fresh-context reviewer read the delta 87d1c5f..19290b3 and found nothing blocking. Its findings are repaired in 6064009:

  • Release-proof routing: package-family-qualification.yml is now in the release-package proof pack and in check-proof-packs' required release surfaces, so editing it trips release proof the way editing the entrypoint did.
  • A partially promoted family is moved back into staging, so a retry is never refused, and the family staging is created before the temp payload directory, so a refused output directory leaks nothing.
  • The guard test now accepts exactly one trigger (workflow_call), with a new schedule negative control, and checks needs: rehearse inside the packages job only, with its own negative control.
  • The lane ledger says where the delegated jobs actually run.

Earlier on this branch, all reviewed: unused-import fix, atomic family staging with a failed-family test, a single owner for expected_qualification, and the entrypoint kept as pure delegation with the jobs in the new called read-only workflow.

Rehearsal run 42517337270 on 19290b3 (https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/42517337270) passed every job: five archives, manifest, package build, and install smoke on Linux x64 and ARM64, macOS Intel and ARM64, and Windows x64. 6064009 changes no workflow file. Its only production change is in the failure and rollback paths of family promotion plus staging order, which the unit tests cover.

Locally on 6064009: 36 focused xtask tests (packages, wheel, npm, proof packs, both rehearsal guards), clippy -D warnings on xtask all targets, fmt, check-proof-packs and check-ci-lane-whitelist all came back clean. The ub-review sensor's gh_pr_status_no_settings exit 101 does not touch this diff; that test passes 7/7 locally.


Generated by Claude Code

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants