Repository navigation
fix(policy): drop orphaned run_chain import entry (#12021) - #12027
Conversation
The #11924 import regrouping left the exact-pattern entry unmatched; the spawn site stays covered by the sibling Command::new entry.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 38 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Evidence gaps
- Repository proof completion is not independently demonstrated because the late cargo-test receipt is absent.
- Model proof intent was rejected by deterministic validation.
- The red/green proof is claimed as a pre-change failure and post-change pass, but no completed receipt is present in the shared evidence packet.
- The PR's local gate-pass proof is not independently evidenced by the supplied sensor receipts; cargo-test is listed as scheduled-late with no receipt shown.
- The required process-policy proof is reported as passing, but no completed late cargo-test receipt is present in this packet.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head 4abdc90): REPAIR_REQUIRED
Inspected:
- Head
4abdc905d765406e517f0b989260b19fe43de207, basemain, non-draft, amerge-readylabel is applied, mergeStateStatus BLOCKED at review time. - The PR's entire proposed change measured against the current
origin/maintip99b2e4d08e5dbed103d661e89cf1c6fabb6a7b62:git diff refs/ripr-review/jj/main refs/ripr-review/jj/head-12027is EMPTY, and the two trees are byte-identical (main^{tree}==head-12027^{tree}==fd7d51c1f37479c8ee12ea1903414bfe908d75c9).git diff main...head-12027is likewise empty, so the merge base IS the main tip. - The proposed deletion's correctness, read at source:
crates/ripr/src/output/first_pr/run_chain.rs:21importsuse std::process::{Child, Command, ExitStatus, Stdio};, so the allowlist's literaluse std::process::Commandpattern matches nothing in that file and the row really was orphaned. The spawn sitecrates/ripr/src/output/first_pr/run_chain.rs:368(Command::new(exe)) stays covered by the siblingCommand::newrow, andcrates/ripr/tests/first_pr_run_chain.rs:8still contains the literaluse std::process::Command;, so that file's own row is not orphaned. The allowlist as it now stands on main holds exactly three rows for this feature and no orphan. - Provenance of the landed change:
git log --oneline main -- policy/process_allowlist.d/11720-first-pr-run-chain.txtshows99b2e4d08e fix: repair main after #11950 (verdict-corpus rows, eq-divert labels, LSP order, selector tests) (#11995)andc0352bed5a feat(first-pr): opt-in --run-chain runs the missing-artifact chain in one invocation (#11720) (#11793). #11995's commit message contains the bullet "fix(process-policy): drop the orphaned run_chain.rs import entry (same change as #11975)", which is this PR's change verbatim.
Blocking:
- The change this PR proposes is already on
main, and this head adds nothing to it. The head tree is byte-identical to the main tip tree, so the PR cannot deliver a diff, cannot be reviewed as a change, and merging it would be a no-op merge that only creates an empty commit. It also carries themerge-readylabel while contributing zero files, which is a false-confidence surface: anyone reading the label would believe a mergeable change is queued. Action: close this PR as already-landed (superseded by #11995, which carried the identical one-line removal and cites #11975) and drop themerge-readylabel rather than queueing a no-op merge. - The one thing this PR has that #11995's copy did not carry is a changelog fragment.
git diff --name-only main...head-12027is empty, so this PR contributes nochangelog.d/entry either; #11975 carriedchangelog.d/11720-run-chain-process-allowlist.md. If the removal is to be attributed in the changelog, that attribution has to come from the surviving PR. Nothing needs to land from here.
Non-blocking:
- The
merge-readylabel on a zero-diff PR is the same class of problem the campaign's own policy checks flag elsewhere: a control whose stated contract (a reviewed, mergeable candidate) exceeds its actual enforcement. A check that refusesmerge-readywhen the head tree equals the base tree would stop a second instance from queueing a no-op merge. - No code, fixture, spec or changelog file is touched by this head, so there is nothing here to review for behavioral risk, test-oracle grip, or platform-specific branching.
Efficiency/performance:
- Not applicable in the usual sense: the head carries no code change, so no runtime or compile-time cost is added or removed. The artifact is a static allowlist data file (
policy/process_allowlist.d/11720-first-pr-run-chain.txt) read bycargo xtask check-process-policy; the orphan-entry check lives atxtask/src/main.rs:19697. Dropping one unmatched row makes that gate marginally cheaper and cannot slow any analyzed workspace. No performance defect is found, because there is no code here that could be defective.
Not run:
- Hosted exact-head Rust proof is unavailable for this head: the required check
Ripr Rust Small Resultis ABSENT from this head's check set, and every Rust context reportsSKIPPED(30 skipped, 9 success, 4 still pending).Ripr Rust Small on GitHub Hosted / Rust gatesandRust-only feature lanewere stillIN_PROGRESSwhen this review was written, so no Rust verdict exists for4abdc905at all. cargo xtask check-process-policywas not run locally andcargo xtask precommitwas not run: with the head tree identical to the main tree, a local gate run would measuremainrather than this PR, so the review budget went to the diff and lineage evidence instead.cargo xtask fixtures,cargo xtask goldens check, and the full workspace build were not run; no Rust unit or integration test was executed locally.- What WAS verified locally and read-only: the git tree and blob identities above, the source text of
run_chain.rsandfirst_pr_run_chain.rsat the reviewed SHA, thegit loglineage of the allowlist file, and the GitHub check-run set for this head. No repository file was modified and HEAD was not moved.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 4abdc905d765406e517f0b989260b19fe43de207. Not an approval.
|
Final exact-head review at 35ac775: REVIEW_READY. One deleted line in |
|
Re-review at new head 4abdc90 (owner merged main, incl. #11995): REVIEW_READY unchanged. The candidate delta is still the single deleted orphaned import line; the merge only adds main-side repairs. Local |
Summary
use std::process::Commandallowlist entry forrun_chain.rs(fix(policy): remove orphaned run_chain import allowlist entry (main red) #12021). feat(first-pr): run-chain timeout, Windows quoting, Python/TypeScript e2e (#11720 remainder) #11924 regrouped the import, leaving theexact-pattern entry unmatched and failing
check-process-policyonmain for every PR. The spawn site stays covered by the sibling
Command::newentry.Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmsurface
Source-of-truth Links
Proposal:
Spec:
ADR:
Plan item: main-health, process-policy gate
Governing issue or accepted claim: #12021
Acceptance delta (one sentence):
cargo xtask check-process-policypasses on main again with the orphaned import entry removed.Scope
policy/process_allowlist.d/11720-first-pr-run-chain.txt.No code change, no behavior change.
Proof
cargo xtask check-process-policy: pass (local, onorigin/main+ this line).Command::newentry still covers theCommand::new(exe)spawn site inrun_chain.rs; the test-file import entry is untouched (its literal import still exists).Rollback