Skip to content

ci: stage printed-command and python wheel callable leaves (split 4 of #8082) - #11700

Closed
EffortlessSteven wants to merge 2 commits into
mainfrom
split/8082-s4
Closed

EffortlessSteven wants to merge 2 commits into
mainfrom
split/8082-s4

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Slice 4 of the #8082 split (qualification_scope_oversized). Adds the workflow_call exact-subject paths to printed-command-paste.yml and python-wheel-qualification.yml with their contract suites (printed_command_admission.rs, python_wheel_workflow.rs), original-workflow fixture, handoffs and changelog fragments; rust_only_routing.rs now also covers the printed-command callable authority (slice 3 landed the ci.yml part). Inert until the caller slice lands. Source: reviewed #8082 head cf94f3d956. Plan: #8082 (comment)

Source-of-truth Links

Governing issue or accepted claim: #4987
Acceptance delta (one sentence): Stages the callable printed-command and Python wheel qualification leaves and their contract proof without changing legacy triggers or activating the caller.

Candidate Relationships

Stack parent or prerequisite PR (if any): slice 3 (#11631, merged as e278cc9)
Proposed replacement of PR (if any; not yet accepted): partial successor of #8082


Generated by Claude Code

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

Copy link
Copy Markdown
Member Author

Review of record, exact head 0e094caf29fce858e4dda715a87dd91563d69d41 (slice 4 of the #8082 split).

Angles and findings:

  • Correctness / provenance: workflows, fixtures, handoffs, python_wheel_workflow.rs, printed_command_admission.rs, rust_only_routing.rs and changelog fragments are byte-identical to reviewed ci: stage reviewed qualification leaves in exact-subject caller #8082 head cf94f3d956 (the stale policy::distribution:: selector and duplicate source-contract step repairs from that head are included). Allowlist lines for printed-command-paste.yml (block cap 22) and printed_command_admission.rs copied from the same head. rust_only_routing.rs completes what slice 3 deliberately scoped (printed-command callable group/cancel rule).
  • Tests: contract suites replay literal workflow Bash with stubbed Git/Cargo under bounded timeouts; no skip/exclusion.
  • Spec / contract: legacy triggers unchanged; leaves are workflow_call paths not invoked by main's caller yet (inert). No permission change.
  • Perf / security: no new network or write authority; persist-credentials: false on leaf checkouts.
  • Not established locally: compile/test; proof is hosted qualification on this head.

Disposition: no blocking findings; merge on green exact-head qualification.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 31, 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 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: 7f543a40-514e-40b8-b8f7-369891164785
Commits

Reviewing files that changed from the base of the PR and between e278cc9 and 6f099b7.

Files selected for processing: 15
  • .github/workflows/printed-command-paste.yml
  • .github/workflows/python-wheel-qualification.yml
  • changelog.d/4987-printed-command-admitted-leaf.md
  • changelog.d/4987-wheel-callable-subject.md
  • changelog.d/4987-wheel-codegen.md
  • changelog.d/4987-wheel-parallel-contract.md
  • docs/handoffs/2026-10-15-printed-command-admitted-leaf.md
  • docs/handoffs/2026-10-15-python-wheel-callable.md
  • fixtures/convergence/printed-command-paste/original.yml
  • packaging/python/pyproject.toml
  • policy/process_allowlist.txt
  • policy/workflow_allowlist.txt
  • tools/repo-policy/tests/printed_command_admission.rs
  • tools/repo-policy/tests/python_wheel_workflow.rs
  • tools/repo-policy/tests/rust_only_routing.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Copy link
Copy Markdown
Member Author

Review of record update, exact head 6f099b782967f770212a23012139f1fd91bae7ee. Qualification on 0e094caf failed the formatting preflight: printed_command_admission.rs:120 was not rustfmt-clean in the carried #8082 source. Fixed by running rustfmt on that one file (3-line whitespace/wrapping change, no semantic edit); all other files in this slice checked clean with rustfmt --check. Prior angles and findings unchanged; no blocking findings. Re-requesting qualification.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Deferred (no push, no label cycle): hosted qualification on head 6f099b78 failed only on main's check-rust-source-role-authority break from #11596, not on this slice. Per the coordinator's critical-path rule, no merge-ready cycling until #11807, #11822 and #11837 have their Result. Next transition: after main's fix lands, merge main into split/8082-s4, cycle merge-ready once, merge on green. Dependent slices (caller 6a, 6c, 5b, 7) wait on this one.


Generated by Claude Code

EffortlessSteven commented Oct 31, 2026 •

Copy link
Copy Markdown
Member Author

Coordination only; no requested scope expansion of this active #8082 slice.

For #10690/#4508, the installed ordinary CLI row now demonstrates a real wheel-installed analyzer, a test-only boundary improvement, one native test, same-gap refresh, and wrong-input/base/expectation/zero-test controls. I am preparing a disjoint strict-installed-input mode in the existing Rust ordinary_daily_loop test/helper. No edit to your workflow, its contract suite, or Python/TypeScript integration files is being made.

After this callable-leaf slice lands, the smallest hosted hook is: stage the existing boundary_gap_closure integration executable from Cargo JSON (with digest) beside the wheel; after one pip consumer completes the existing Rust-free installation proof, separately admit pinned Rust only for the target fixture's native test and invoke the one exact ordinary case with the already verified CONSUMER_EXECUTABLE, expected payload digest/version and retained evidence output. Missing installed inputs must refuse with no fallback to a workspace binary. Retain the no-checkout property and existing pip/uv identity checks.

This follow-on reuses the existing fixture/oracles and wheel custody; it adds no language matrix, second package build, new manifest, public release, or claim that installation requires Rust. The native-test phase is explicitly later and separately provisioned. It does not complete the governed/agent/editor/adoption rows.

Your active ownership and stated main-repair continuation remain intact. I will reconcile the hook against the landed result rather than race this workflow or cycle its labels. Source preparation is owned in the linked #10690 comment.

The owner's named prerequisite event has now occurred: #11807 merged at 20:17:36 UTC, #11822 at 20:26:11, and #11837 at 21:01:32 on October 31. This is a resumption signal for your existing conflict/integration review, not an instruction to chase unrelated main movement or a claim that the current merge subject contains those repairs. The ordinary harness remains disjoint and will be joined only against the accepted callable-leaf result; your branch is not being overwritten.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head 6f099b78), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

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

Independent review (fresh-context reviewer, head 6f099b7): REPAIR_REQUIRED

Inspected:

  • Head 6f099b782, base 56444f1605fa1431054375f9b232c37f72ede436: 15 files, additions=1549 / deletions=29 / changed_files=15. PR-reported size 1,578 counted lines / 15 files, against the admission action's ordinary envelope of 3,000 lines / 160 files (.github/actions/pr-candidate-admission/candidate_admission.py:575), so this slice is admissible by size.
  • Contribution measured by blob SHA against the current base tip a69bf0214: 1,393 lines outstanding across 8 paths; 185 lines across 7 paths are already present on main.
  • Content relationship to the other open slices computed by blob comparison, not by title: this PR is disjoint from #11761 and from #11988 (same=0 on both), so it is a complementary leaf, not a rival implementation.
  • The landed sibling: PR #11906, "ci: printed-command paste callable leaf (slice 2 of #8082)", merged into main at 2026-11-01T00:08:12Z by commit a4a71f3a4. Blob comparison of this PR against #11906: 4 paths byte-identical, 4 paths differing, 7 paths unique to this PR.
  • The repository's own run-block accounting, re-implemented from tools/repo-policy/src/lib.rs:2118-2161 (extract_workflow_run_blocks) and applied to the workflows at this head: .github/workflows/printed-command-paste.yml has 4 run: blocks with a maximum of 22 non-empty lines against a declared budget of 22; .github/workflows/python-wheel-qualification.yml has 17 blocks with a maximum of 194 against a declared budget of 194. Zero over-budget blocks.
  • policy/workflow_allowlist.txt read in full at this head, at main, and at the umbrella's head 4b2f669ea; tools/repo-policy/tests/printed_command_admission.rs read in full at this head and at main.

Blocking:

  1. The printed-command half of this PR has already landed on main in a different revision, and merging this PR as it stands would revert it. PR #11906 merged the "printed-command paste callable leaf (slice 2 of #8082)" at 2026-11-01T00:08:12Z, and main now carries tools/repo-policy/tests/printed_command_admission.rs with blob 7e3e3ed4105ea9931e353e2cce5e135ac05d21b4. This PR proposes blob 3bf2c88fb541cabdba20db71ac6c65730eccac90 for the same path, and its head commit (6f099b782, "style: rustfmt printed_command_admission") is dated 2026-10-31T14:45:31Z — roughly nine hours before that merge. Reading both revisions side by side, they differ in exactly nine lines, and the difference is substantive rather than cosmetic: main's landed revision has fn payload(source: &str) -> &str and no rewrite, while this PR's revision has fn payload(source: &str) -> String and contains the shim .replace("Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2", "Swatinem/rust-cache@v2"). That shim exists to map a commit-pinned third-party action back to its floating tag so the extracted payload still matches the ORIGINAL fixture; main's landed revision no longer needs it, which means main has since moved the fixture or the binding and this PR's older revision would reintroduce a comparison that accepts a floating-tag payload against a commit-pinned workflow. This is the exact class of drift the repository's action-pinning policy exists to prevent, and it would arrive as a silent content replacement rather than a conflict. The repair is to drop the already-landed printed-command content from this PR and keep only the python-wheel leaf; the remaining disagreement is then limited to the two policy ledgers below.

  2. The two policy ledgers need exactly one reconciliation, and this PR holds the correct side of it. policy/workflow_allowlist.txt currently exists in three different revisions: main 5a2d4f5048d55f508b75b3e73212c586823acd19, this PR 673043a73b046d231947869cda0dcd1f7307d62f, and the umbrella #8082 e4f9c6792c1627cfef64f919407db171840ab1e4. This PR's revision is the sound one: it has zero duplicate rows and keeps printed-command-paste.yml|22 at its sorted position (line 33), whereas the umbrella's revision carries the duplicated windows-subset-qualification.yml|437 row that I reported on #8082. policy/process_allowlist.txt is in the same state — main eeaa4701ad9edfc3129560f9ab4fb7b044553aa0, this PR a6d6f64dea68953260205393392c71eb15232e58, umbrella 58d29841e0944be49b303877666ff80289c67699 — three different edits to one ledger. Whichever PR lands second has to take this PR's rows for printed-command-paste.yml and must not reintroduce the umbrella's duplicate; that reconciliation is currently written down nowhere, and it belongs with the leaf that owns the ledger rather than with the caller.

Non-blocking:

  • Both declared run-block budgets hold exactly, with zero margin: printed-command-paste.yml peaks at 22 non-empty lines in a run: block against a budget of 22, and python-wheel-qualification.yml peaks at 194 against a budget of 194. That satisfies check-workflows today, and it is worth knowing that the leaf is now one line away from failing the gate in either workflow — the budget raise from 1 to 22 for printed-command-paste.yml is the minimum the change needs, not headroom.
  • tools/repo-policy/tests/python_wheel_workflow.rs (488 lines) is a genuine addition rather than a re-proposal: main's blob for that path differs from this PR's, and no other open slice proposes it. docs/handoffs/2026-10-15-python-wheel-callable.md (233) and .github/workflows/python-wheel-qualification.yml (126) are likewise new relative to main.
  • The contract suite reads the workflow and the original fixture with include_str!, so the comparison is against the source tree at compile time with no runtime file I/O, and the workflow under test is the one that actually ships. The input-binding and contract helpers are both mutation-checked against explicit wrong controls (for example replacing SUBJECT: ${{ inputs.subject_sha || github.sha }} with SUBJECT: main, and removing the "Verify exact source before product execution" guard), so the assertions are discriminating rather than self-confirming.

Efficiency:

  • The leaf's own cost profile is bounded by the repository's line accounting and holds: the two workflows it touches carry run-block budgets of 22 and 194 non-empty lines, and every run: block is at or under its budget. That is the mechanism the repository uses to keep workflow bodies reviewable, and the leaf respects it.
  • The revision this PR would restore for printed_command_admission.rs allocates a String per payload() call where the landed revision returns &str, so re-landing the older revision would also reintroduce a per-call allocation into a helper that is called from several test bodies. Small in absolute terms, but it is the same direction as the rest of this finding: the older revision is behind main in both shape and allocation.
  • No new runtime cost is introduced by the python-wheel leaf itself: include_str! embeds the fixtures at compile time, so the contract suite adds no file I/O and no process spawning at test time.

Not run:

  • The Rust toolchain on this host is not on PATH, so nothing was compiled, tested or linted locally; cargo xtask precommit and cargo xtask check-workflows were not executed. The run-block budget result above is from re-implementing the repository's own extraction rule against the workflow source at this head, not from running the gate.
  • No hosted Rust lane was inspected for this PR in this pass, so no claim is made about the hosted result at head 6f099b782; the disposition above rests on source, blob comparison and the repository's own documented admission rules.
  • The python_wheel_workflow.rs suite was read only in part (its size and its relationship to main and to the other slices). Its full assertion set was not audited line by line, and the workflow it exercises was not executed.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 6f099b782967f770212a23012139f1fd91bae7ee. Not an approval.

Copy link
Copy Markdown
Member Author

Closing as superseded by main (not by this PR's head 6f099b7).

Evidence (merge of origin/main into split/8082-s4, then a per-file diff of every path this PR touches against current main):

Nothing is lost by closing. Reviewed source for these slices lives on main via #11906 and #11930.


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