Repository navigation
ci(pypi): qualify local wheelhouse installs with a fail-closed aggregate (#4631) - #4827
Conversation
…ate (#4631) Add a dispatch-only, credential-free Python wheelhouse qualification lane for the selected linux/x86_64 pip and uv matrix. Discriminating negative controls reject missing, skipped, failed, unsupported, zero-subject, mismatched, PATH/Cargo, planted-binary, and publication rows. Live installed-use analysis remains #4626, so a wheel install without a nonzero discriminator still cannot pass. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 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. Comment |
The qualify entrypoint needs crate-visible access to the wheelhouse owner, and the gate-report writer must not move PathBufs before using them in error messages. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…4631) The previous uppercase fixture used only digits, so to_ascii_uppercase could not discriminate. Match the isolated pip invocation as written, including the quoted binary path. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…clude (#4631) The dispatch-only workflow fails the job when the aggregate fails, so the catalog must record ci_enforced. Keep the workflow text include in tests only so non-test builds stay warning-clean. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…ins (#4631) Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT)
reviewed_head_sha: 176cac3708dad42abd59419636c994410790c098
integration_basis: origin/main (13c7ec58a0a76759c00d4baa757df744c395d689 at candidate branch time)
claim_boundary: #4631 fail-closed linux/x86_64 pip+uv local-wheelhouse aggregate and no-publish dispatch workflow. Not #4490/#4630/#4626.
changed_surfaces_and_semantic_owners_inspected:
- xtask/src/policy/distribution/wheelhouse.rs (evaluate_wheelhouse, receipt assemble, qualify CLI)
- xtask command catalog / dispatch / policy facade
- .github/workflows/python-wheelhouse-qualification.yml
- policy/python-wheelhouse-qualification.toml, workflow_allowlist, ci-lane-whitelist, ci-risk-packs
- docs/PYTHON_WHEELHOUSE_QUALIFICATION.md, DOCUMENTATION.md, PYPI_NPM_DISTRIBUTION.md, CHANGELOG.md
blocking_findings: none on source/oracle for this head
non_blocking_suggestions:
- cargo_reachable also records rustc PATH reachability; field name is Cargo-centric
- workflow contract tests are include_str/substring; they do not execute pip/uv on a runner
refuted_or_stale_findings: none
proof_and_ci_observed:
- cargo test -p xtask --bin xtask wheelhouse: 38 passed
- cargo clippy -p xtask --all-targets -- -D warnings: pass
- cargo xtask precommit: pass
- cargo xtask check-command-catalog / check-ci-lane-whitelist / check-workflows: pass
- hosted required merge-gate jobs: not yet observed on this head
proof_or_review_missing: hosted Routed Rust / merge-gate receipts for 176cac3708dad42abd59419636c994410790c098
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim, candidate head identity
residual_assumptions_and_non-claims:
- A passing live wheelhouse run still requires #4490 wheels and a #4626 nonzero discriminator.
- Receipt evaluation trusts the producer; the dispatch workflow is that producer.
- This lane must not be read as PyPI publication, a compatibility floor, or support-tier promotion.
disposition: REVIEW_INCOMPLETE
Inspected the full origin/main...HEAD diff. The aggregate is fail-closed: missing, not_run, failed, unsupported, zero-subject, identical wheel/payload digests, PATH/Cargo/source/ambient escapes, undetected planted PATH, enabled network, publication authority, unbounded retention, extra OS/client rows, unknown JSON fields, and uppercase identity all refuse pass. The workflow is workflow_dispatch only, contents: read, persist-credentials: false, no secrets/OIDC/twine, artifact retention 5 days, if-no-files-found: error. When no wheels are staged, required rows stay missing so the job cannot pass.
GitHub cannot request changes from the author; this COMMENT is not approval. Only a later published-head pass with current hosted required checks may emit REVIEW_READY.
Keep both Unreleased Added notes. Main moved unrelated analyzer, LSP saved-edit, and doctor work; this lane still owns only the fail-closed python wheelhouse aggregate. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 176cac3708
ℹ️ 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".
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT) — head after conflict repair
reviewed_head_sha: 2ab9f0bf39ebb42360e079c0be860123703ee1d5
integration_basis: origin/main 6ce048205 (merged into this candidate; CHANGELOG was the only textual conflict)
claim_boundary: #4631 fail-closed linux/x86_64 pip+uv local-wheelhouse aggregate and no-publish dispatch workflow. Not #4490/#4630/#4626. Upstream #4631 equivalent did not land.
changed_surfaces_and_semantic_owners_inspected:
- same wheelhouse owner as the previous head, plus merged main CHANGELOG coexistence with lsp-performance-report
blocking_findings: none on source/oracle for this head
non_blocking_suggestions: unchanged from the 176cac370 COMMENT (cargo_reachable also records rustc; workflow tests are include_str)
refuted_or_stale_findings: prior head 176cac370 review is stale for candidate head identity only; production/oracle text for the wheelhouse owner is unchanged
proof_and_ci_observed:
- cargo test -p xtask --bin xtask wheelhouse: 38 passed on this head
- cargo xtask check-command-catalog: pass
- PR mergeable after CHANGELOG resolution
- hosted Routed Rust Small is in progress (Ripr Rust Small on GitHub Hosted pending); required context is Ripr Rust Small Result
proof_or_review_missing: exact-head required check Ripr Rust Small Result not yet terminal
affected_currentness_dimensions: conflict resolution, integration basis, candidate head identity
residual_assumptions_and_non-claims: unchanged; live pass still needs #4490 wheels and #4626 discriminators
disposition: REVIEW_INCOMPLETE
Conflict repair kept both Unreleased Added notes. GitHub cannot request changes from the author; this COMMENT is not approval. A later pass on this SHA with terminal Ripr Rust Small Result is required before REVIEW_READY / squash merge.
Replace the cowsay/--no-index stand-in with an independent pypi.org URL probe, record source-checkout reachability from a readable Cargo.toml in the consumer cwd, hash the one staged wheel instead of the first glob, and reject mixed filenames across required passed rows. Route the new workflow, policy, and docs onto the release_surface path pack. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT) — probe-honesty repair
reviewed_head_sha: 4142151d0b42a10ac8a0e1451a6eec6401045c45
integration_basis: origin/main 6ce048205
claim_boundary: #4631 fail-closed linux/x86_64 pip+uv local-wheelhouse aggregate and no-publish dispatch workflow. Not #4490/#4630/#4626. No network sandbox or checkout unmount.
changed_surfaces_and_semantic_owners_inspected:
- .github/workflows/python-wheelhouse-qualification.yml isolated-install producer (urllib pypi.org probe, CONSUMER_ROOT cwd, Cargo.toml readability, exactly-one wheel, argv[8] hash)
- xtask/src/policy/distribution/wheelhouse.rs mismatched_identity_reasons (wheel_filename set among required passed rows)
- docs/PYTHON_WHEELHOUSE_QUALIFICATION.md claim boundary
- policy/ci-risk-packs.toml release_surface.paths
blocking_findings: none on source/oracle for this head
non_blocking_suggestions:
- cargo_reachable also records rustc PATH reachability; field name is Cargo-centric
- workflow contract tests are include_str/substring; they do not execute pip/uv on a runner
refuted_or_stale_findings:
- Codex P1 network/source/wheel-hash: repaired on this head
- Devin release_surface.paths: repaired on this head
- Devin spec mapping: incorrect; Windows packaged qualification is also issue+policy with no RIPR-SPEC
proof_and_ci_observed:
- cargo test -p xtask --bin xtask wheelhouse: 40 passed
- cargo clippy -p xtask --all-targets -- -D warnings: pass
- cargo xtask precommit: pass
- hosted required merge-gate Ripr Rust Small Result: not yet terminal on this SHA
proof_or_review_missing: exact-head Ripr Rust Small Result; Gemini/CodeRabbit remain missing-review not blockers
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim, generated relationships, candidate head identity
residual_assumptions_and_non-claims:
- urllib typically succeeds on GitHub-hosted runners, so network_disabled_after_staging stays false and the aggregate fail-closes until a sandbox exists.
- Cargo.toml remains readable from CONSUMER_ROOT, so source_checkout_reachable stays true and the aggregate fail-closes until a filesystem unmount exists.
- Live pass still needs #4490 wheels and a #4626 nonzero discriminator.
- This lane must not be read as PyPI publication, a compatibility floor, or support-tier promotion.
disposition: REVIEW_INCOMPLETE
Inspected the origin/main...4142151d0 wheelhouse owner. Network is an independent URL probe, source is checkout-file readability from consumer cwd, mixed wheelhouses leave required rows missing, and required passed rows cannot disagree on wheel_filename. GitHub cannot request changes from the author; this COMMENT is not approval. Only a later published-head pass with terminal Ripr Rust Small Result may emit REVIEW_READY.
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT) — published-head merge review
reviewed_head_sha: 4142151d0b42a10ac8a0e1451a6eec6401045c45
integration_basis: origin/main 3911480a34 (behind-only relative to this candidate; no restack)
claim_boundary: #4631 fail-closed linux/x86_64 pip+uv local-wheelhouse aggregate and no-publish dispatch workflow. Not #4490/#4630/#4626. No network sandbox or checkout unmount.
changed_surfaces_and_semantic_owners_inspected:
- xtask/src/policy/distribution/wheelhouse.rs evaluate_wheelhouse / mismatched_identity_reasons / qualify CLI
- .github/workflows/python-wheelhouse-qualification.yml dispatch-only producer (urllib pypi.org, CONSUMER_ROOT cwd, Cargo.toml readability, exactly-one wheel, argv[8])
- policy/python-wheelhouse-qualification.toml, workflow_allowlist, ci-lane-whitelist, ci-risk-packs release_surface.paths
- docs/PYTHON_WHEELHOUSE_QUALIFICATION.md, DOCUMENTATION.md, PYPI_NPM_DISTRIBUTION.md, CHANGELOG.md
blocking_findings: none
non_blocking_suggestions:
- cargo_reachable also records rustc PATH reachability; field name is Cargo-centric
- workflow contract tests are include_str/substring; they do not execute pip/uv on a runner
refuted_or_stale_findings:
- Codex P1 network/source/wheel-hash: repaired on this head; threads resolved
- Devin release_surface.paths: repaired; thread resolved
- Devin spec mapping: incorrect (Windows packaged qualification analog); thread resolved
- prior REVIEW_INCOMPLETE on this SHA is stale for exact-head CI only
proof_and_ci_observed:
- cargo test -p xtask --bin xtask wheelhouse: 40 passed
- cargo clippy -p xtask --all-targets -- -D warnings: pass
- cargo xtask precommit: pass
- Routed Rust Small 36531469046 success on 4142151d0
- required check Ripr Rust Small Result: pass (job 109297846930)
- Ripr Rust Small on GitHub Hosted / Rust gates: pass 24m13s
- ub-review: pass (advisory)
- CodeRabbit: skipped/manual; Gemini quota: missing-review, not blockers
proof_or_review_missing: none required; live dispatched wheelhouse run not claimed
affected_currentness_dimensions: exact-head CI receipts (this pass); production/oracle/public-claim unchanged since 4142151d0
residual_assumptions_and_non-claims:
- urllib typically succeeds on GitHub-hosted runners, so network_disabled_after_staging stays false and the aggregate fail-closes until a sandbox exists.
- Cargo.toml remains readable from CONSUMER_ROOT, so source_checkout_reachable stays true and the aggregate fail-closes until a filesystem unmount exists.
- Live pass still needs #4490 wheels and a #4626 nonzero discriminator.
- This lane must not be read as PyPI publication, a compatibility floor, or support-tier promotion.
disposition: REVIEW_READY
Inspected the published 4142151d0 owner with current hosted required proof. Isolation facts are independent probes, mixed wheelhouses cannot pass, and the workflow remains dispatch-only with contents: read. GitHub cannot request changes from the author; this COMMENT is the merge-readiness disposition, not an APPROVE event. Ordinary protected squash may proceed.
Summary
Adds the #4631 local-wheelhouse qualification lane: a dispatch-only, credential-free workflow and a fail-closed xtask aggregate for linux/x86_64 pip and uv. Missing, skipped, failed, unsupported, zero-subject, mismatched, PATH/Cargo, planted-binary, publication, or unbounded-retention rows cannot pass.
Review repair on
4142151d0: independentpypi.orgURL probe, source-checkout readability from consumer cwd, exactly-one staged wheel hashed by path (not first glob), mixedwheel_filenamerejection, andrelease_surface.pathscoverage for the new workflow/policy/docs.Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk for trusted same-reporiprwork. Confirm the change belongs here:This lane has no registry write, OIDC, secret, tag, or release permission.
Source-of-truth Links
Proposal: n/a
Spec: n/a (wheelhouse-local contract; generic DTO remains #4630)
ADR: n/a
Plan item:
docs/PYPI_NPM_DISTRIBUTION.mdinstalled-journey wheelhouseGoverning issue or accepted claim: #4631 (parent #4493)
Acceptance delta: required linux/x86_64 pip and uv rows cannot satisfy the aggregate unless isolation facts, distinct wheel/payload digests, matching wheel filenames, and a nonzero subject count are present; the no-publish workflow cannot pass on missing, mixed, or zero-subject work.
Candidate Relationships
Candidate branch:
cursor/pypi-wheelhouse-qualify-91fcStack parent or prerequisite PR: none. Open PR #4711 is the #4490 wheel-adapter witness, not this aggregate. Open draft PR #4846 is #4630, not this lane.
Proposed replacement of PR: none
Scope
Wheelhouse-specific row/aggregate gate, dispatch-only consumer workflow, policy ledger, and discriminating negative controls. Does not absorb the Maturin adapter (#4490), generic package-qualification DTO (#4630), or clean-consumer analysis journey (#4626).
Scope Classification
Production delta:
cargo xtask qualify-python-wheelhouse --receipts <file-or-dir>evaluates a deny-unknown-fields receipt againstpolicy/python-wheelhouse-qualification.toml..github/workflows/python-wheelhouse-qualification.ymlis workflow_dispatch-only,contents: read,persist-credentials: false, Actions-artifact retention 5 days.Evidence/support delta:
Single acceptance criterion: a required linux/x86_64 pip or uv row can pass only with exact distinct wheel and payload digests, matching wheel filenames across required passed rows, nonzero subjects, no Cargo/source/ambient escape, a detected planted wrong-PATH binary, network disabled after staging (independent URL probe), no publication authority, and retention in 1..=5.
Non-goals: PyPI upload; Maturin adapter; generic DTO; installed-use analysis; matrix widening; network sandbox or checkout unmount.
Support-tier Impact
Docs describe an on-demand rehearsal. They do not promote a support tier or publication channel.
Policy Impact
Proof
cargo fmt --check cargo test -p xtask --bin xtask wheelhouse cargo clippy -p xtask --all-targets -- -D warnings cargo xtask precommitcargo xtask precommitpassed on4142151d0b42a10ac8a0e1451a6eec6401045c45.Ripr Rust Small Resultis not yet terminal on this head.Claim Boundary
May claim: a no-publish linux/x86_64 pip+uv wheelhouse aggregate that fail-closes on missing/skipped/zero-subject/mismatched/escape rows, and that records network/source/wheel identity from independent probes rather than pip flags, PATH membership, or first-glob hashing.
Must not claim: a successful live wheel qualification, PyPI publication, compatibility floor, support-tier promotion, a network sandbox, or a filesystem unmount of the checkout.
Rollback
Revert. Dispatch-only; not a required merge gate; no publication side effects.
Spec-Test-Code Traceability
xtask/src/policy/distribution/wheelhouse.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
.github/workflows/python-wheelhouse-qualification.yml(new, dispatch-only).python-wheelhouse.Closes #4631