Skip to content

feat(pypi): build and qualify wheel-only ripr-rs adapter (#4490) - #4711

Merged
EffortlessSteven merged 30 commits into
mainfrom
build/4490-python-wheel-rehearsal
Oct 1, 2026
Merged

EffortlessSteven merged 30 commits into
mainfrom
build/4490-python-wheel-rehearsal

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

What

Add and qualify the first wheel-only PyPI adapter for the existing native ripr CLI.

Refs #4490. Parent #4487 remains open for the broader distribution program. The merged #4488 contract owns product/distribution identity; #4489 owns measured native compatibility; #4521 owns the cross-channel final-payload boundary. This PR does not authorize publication.

Package source

  • packaging/python/pyproject.toml uses pinned Maturin bin mode and selects the existing ripr binary explicitly;
  • version remains dynamic from the Cargo workspace; the adapter cannot acquire an independent Python version;
  • locked Cargo inputs, Rust 1.95, stripping, the release feature set, package-page metadata, and byte-identical MIT/Apache notices are enforced;
  • the distribution is ripr-rs; product and executable remain ripr;
  • no import ripr, python -m ripr, runtime dependency, sdist fallback, install-time downloader, or consumer-side Rust compilation is introduced;
  • package guidance uses uv tool install ripr-rs and uvx --from ripr-rs ripr …, and rejects guidance that would select the unrelated ripr distribution.

cargo xtask check-release-targets now validates the Python adapter, including backend pin, dynamic-version authority, exact features, CLI binding, required package-page disclosures, compatibility non-claims, and license copies. The package manifest has one narrow governed non-Rust/dependency-policy entry.

No-publish qualification

.github/workflows/python-wheel-qualification.yml is read-only and has no OIDC or registry-write permission. On an exact candidate it:

  1. builds exactly one ripr_rs-<version>-py3-none-linux_x86_64.whl on Ubuntu 22.04 with a generic Linux tag and no manylinux/minimum-glibc claim;
  2. validates METADATA, WHEEL tags, full RECORD inventory/digests/sizes, executable permission, exact binary target, license bytes, wheel checksum, installed-payload checksum, source SHA/tree, Cargo.lock, toolchain, runner, and pinned packaging clients;
  3. removes the executable from a copied wheel and proves the same validator rejects that negative control;
  4. retains the wheel, receipt, negative control, pinned offline client wheels, and independent Python fixture as a short-lived Actions artifact;
  5. installs through both pip/local-wheelhouse and uv tool with no checkout, Cargo, rustc, or ambient ripr available;
  6. plants a conflicting PATH executable and proves the installed payload, exact checksum, version, and candidate are selected instead;
  7. runs the Python no-config preview against an independent fixture and requires nonzero probes/findings plus truthful preview disclosure;
  8. executes ripr explain from a fresh shell, proves the project virtualenv is not accidentally used, and verifies explicit Python disablement is a typed limited result rather than a false clean result;
  9. force-reinstalls and uninstalls through both clients without deleting the project or the planted unrelated executable.

Acceptance and claim boundary

After merge, the repository may claim a committed ripr-rs wheel adapter and a no-publish Linux-x64 build/install/use/lifecycle rehearsal for the exact candidate.

It may not claim:

The produced wheel remains compatibility_state = unqualified under #4489. Public publication must consume a separately qualified source candidate and exact retained files; this rehearsal is not release authorization.

Exact candidate / proof

current main: e7ab89cead66c3aab5b789d01bc6500416fb627d
exact head:   f3b9117c5d0125064e7c191876128de48e3db2b5
merge base:   f6aa0ab8cbfdf0945a9d3cacc5c6014e646f7ef9

The branch is behind current main by 106 commits (behind-only movement; the latest integrated protected-main merge is d04f70fd0) and 30 commits ahead, with no history rewriting; the previously reviewed package-specific tree is unchanged.

Exact-head check state (observed on f3b9117c5d0125064e7c191876128de48e3db2b5):

  • PASS: required Ripr Rust Small Result (the branch-protection required check), routed Rust gates, and the Rust-only feature lane;
  • PASS: read-only build and inspect Linux x64 wheel plus the clean pip and uv consumer journeys;
  • PASS: ub-review, cargo-deny, dependency-review, GitGuardian, CodeRabbit, and pr-plan;
  • PASS: exact-head integration re-review, with no new package-specific finding;
  • FAIL (advisory, not in the required-check set): droid-review timed out at 24h0m1s; the substantive Devin and ChatGPT review findings are repaired at this head (native/PEP 440 wheel identity split, stale-RECORD negative control, tokenized package-README command gate) and re-verified locally (cargo test -p xtask --bin xtask --locked policy::distribution: 19 passed);
  • NOT_RUN: public PyPI lookup/upload/install; no registry operation is authorized here.

Do not merge from predecessor proof. The exact current head and current-base synthetic merge must be terminal green, and any substantive review finding must be repaired or explicitly adjudicated.

Rollback

Revert the package source, validator, policy entries, and no-publish workflow together. The core binary, language activation rules, existing server-archive output, registry state, tags, releases, and credentials are otherwise unchanged.

stackable = false

Add a committed Maturin bin-mode adapter for the existing ripr executable. Keep version authority in Cargo, pin the build backend, duplicate the governed license notices byte-for-byte, and document the distribution/executable distinction without claiming a public release.
Validate the committed PEP 517/621 manifest, pinned Maturin bin-mode configuration, dynamic Cargo version authority, feature set, package-page safety text, and byte-identical licenses through the existing distribution gate.
@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 Sep 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 71599720-645c-43ad-8191-73c88855092d

📥 Commits

Reviewing files that changed from the base of the PR and between f6aa0ab and f3b9117.

📒 Files selected for processing (12)
  • .github/workflows/python-wheel-qualification.yml
  • packaging/python/LICENSE-APACHE
  • packaging/python/LICENSE-MIT
  • packaging/python/README.md
  • packaging/python/pyproject.toml
  • policy/dependency_allowlist.txt
  • policy/non-rust-allowlist.toml
  • policy/workflow_allowlist.txt
  • xtask/src/policy/distribution/mod.rs
  • xtask/src/policy/distribution/python.rs
  • xtask/src/policy/distribution/python_guidance.rs
  • xtask/src/policy/distribution/tests.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review September 29, 2026 05:38
@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!

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) September 29, 2026 05:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T05:43:26.407365Z 289715a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

reviewed_head_sha: 289715a752e37e6e8119b07501b4fee05f1675fd
integration_basis: c9afd7f1c4d8de7eada32a038450ec2dc35a9193
claim_boundary: committed wheel-only adapter plus read-only Linux-x64 local-wheelhouse qualification; compatibility and publication remain excluded.

disposition: REVIEW_READY — no blocking code finding in the inspected candidate

Surfaces inspected

  • PEP 517/621 metadata and Maturin bin-mode target selection;
  • Cargo-derived version and exact release feature enforcement;
  • package-name/executable-name collision guidance;
  • wheel filename/tag, METADATA/WHEEL/RECORD, license and executable permission validation;
  • retained source/tree/lock/toolchain/wheel/payload identity;
  • deliberately missing-executable negative control;
  • clean pip and uv tool consumers without checkout/Rust/ambient ripr;
  • planted PATH collision, exact payload/version selection, Python no-config preview, fresh-shell explain, project-venv isolation, explicit-disable honesty, reinstall/uninstall and project preservation;
  • workflow permissions and no-publication boundary.

The generic linux_x86_64 wheel is correctly treated as an unqualified rehearsal artifact rather than a manylinux/minimum-glibc claim. Public delivery still requires #4489-selected compatibility evidence, source integration, exact retained files, protected publisher configuration and separate authorization.

Hosted qualification, required Routed Rust Small and post-ready automated review remain authoritative. A terminal failure or new substantive finding returns this disposition to repair-required; predecessor greens are not merge authority.

@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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 289715a752

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread xtask/src/policy/distribution/python.rs Resolved
Refresh the wheel candidate against main 13c7ec5 after the protected base advanced. Integrate the intervening Python analyzer repair without rewriting the packaging history or changing the adapter-specific files.

@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.

reviewed_head_sha: 979095c7d99bebd5c32e96f316f0f2cc26e73603
integration_basis: 13c7ec58a0a76759c00d4baa757df744c395d689

This head is an ancestry-preserving integration refresh. Relative to the previously reviewed package candidate, the only added tree delta is protected-main commit 13c7ec58… in the Python analyzer; no package source, validator, policy, or qualification-workflow file changed. The PR-specific reviewed tree and claim boundary are unchanged.

disposition: REVIEW_READY pending fresh exact-head hosted proof

The wheel workflow intentionally exercises Python preview behavior, so the integrated main repair is relevant rather than ignored. Fresh CI, read-only wheel qualification, required Routed Rust Small, and post-refresh automated review remain authoritative. A terminal failure or substantive new finding returns the candidate to repair-required.

Refresh PR #4711 against current main without rewriting branch history.
Keep Cargo SemVer for the executable while deriving and retaining a distinct PEP 440 package version for wheel filenames, metadata, and installer requirements. Add a stale-RECORD payload mutation control and govern unsafe ripr install-command variants plus the qualification workflow shape through the Rust distribution gate.
Keep the command-policy assertion focused on the rejection class while allowing the diagnostic to retain the exact unsafe version or extra specifier that was selected.
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.

1 participant