Repository navigation
fix(admission): drop the dead blocker helper and correct the marker docstring (#14788) - #14809
Conversation
|
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 56 minutes. View limit details
|
There was a problem hiding this comment.
Code Review
This pull request updates .github/actions/pr-candidate-admission/review_disposition.py by refining the docstring for comment_body_negative to clarify the behavior of mis-formatted positive markers followed by other prose. Additionally, the unused comment_body_blocks function has been removed. There are no review comments to evaluate, so I have no feedback to provide.
9e49707 to
d134507
Compare
4fd113c to
b8099be
Compare
|
Stack reconciliation and behaviour proof on head The stack still applies unchanged at #14756's final head. #14756's head moved to Behaviour is unchanged, measured three ways. I extracted both trees and compared the module predicate by predicate:
Scope note: these are module-level predicates on the extracted files. I did not run the admission action end to end, and no hosted lane has run on this branch because it is a draft. Not checked: which of the parent's review discussions the docstring correction should cite, if the reviewer wants a thread reference there. |
…ocstring (#14788) comment_body_blocks was defined and never called: the blocker veto lives in comment_body_negative's neutral_first block, so the helper's docstring promised a veto nothing performed. Remove it. comment_body_negative's docstring still described the pre-9e497070be reading, where a mis-formatted positive marker was always neutral. Since 9e49707 it is neutral only when nothing but allowlisted chatter follows, so say that. No behaviour change: the self-test, the action's python suite and 100 comparisons against 9e49707 are identical.
b8099be to
b6b0d0f
Compare
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Exact-head evidence checkpoint for the existing owner after the post-#14756 rebase: current head is Published receipts distinguish two subjects: comment 6901500861 records the 1,938 differential comparisons and self-tests on predecessor The remaining evidence handoff is a link to an existing independent exact-head receipt, or successor review before merge, including whether predecessor proof carries over. Owner custody is unchanged; no queue change, CI request, competing writer, or formal approval was performed. The separate #14755/#14783 behavior questions are not acceptance claimed by this cleanup. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact-head source review of #14809 at b6b0d0f.
The acceptance holds. comment_body_blocks is gone and nothing referenced it. At the recorded base 235d2a91e2 the name appears exactly once in the whole tree, at its own def: no call site, no test reference, no workflow string. At this head the name appears nowhere.
The docstring correction describes the code that runs. Probed at this head, SOURCE_REVIEW_READY <short-sha> scores neutral on its own; with one allowlisted chatter line, or an Exact-head review (head <sha>) line, it stays neutral; with objection prose, two chatter lines, an unallowlisted one-liner, or a withdrawal line, it scores negative and vetoes. That is the post-9e497070be reading the docstring now states.
Behaviour is unchanged, measured independently. Both --self-test runs exit 0, and a differential over 4,704 bodies across comment_body_negative, comment_body_ready, marker_line_neutral and comment_body_chatter shows 0 differences between 235d2a91e2 and this head. The only public-name delta is the removed helper, and the module has no dynamic dispatch, so deleting the binding cannot change a lookup.
Candidate identity. One commit, parent exactly 235d2a91e2, one file, +3/-17, git show --check clean, author and committer as required. git merge-tree --write-tree against current main eda56cc118 exits 0, and main's blob for this file is still 5ec6bb66, so the file has not drifted on main.
Non-blocking observations.
- The governing issue #14788 is still open with
status/needs-work; this PR body names it without a closing keyword, so merging will leave the issue open. The root should close or link it. - "Allowlisted chatter" here is exactly one substantive line, because
comment_body_chatterrequires that; two allowlisted chatter lines read as negative. That follows the module's own definition and is not a defect.
Not checked: no hosted Rust lane has run on this head, only CodeRabbit, Graphite mergeability and GitGuardian; the repo-policy admission suite is the Coder's local evidence, and I ran no cargo build on this box.
|
Docstring nit on
So a reader who takes "allowlisted chatter" as Not a defect: the behaviour is correct and the tests pin it. Only the description is one allowance short. Read from the committed blob at |
Summary
comment_body_blocksfrom.github/actions/pr-candidate-admission/review_disposition.py. It is defined and never called — not in the module, not inself_test, not inmain— and its docstring promises a blocker veto that is actually performed bycomment_body_negative'sneutral_firstblock.comment_body_negative's docstring, which still describes the pre-9e497070bereading where a mis-formatted positive marker was always neutral. Since9e497070beit is neutral only when nothing but allowlisted chatter follows.Closes #14788.
Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:surface
Source-of-truth Links
Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #14788
Acceptance delta (one sentence): On the
9e497070befile,comment_body_blocksno longer exists andcomment_body_negative's docstring states the post-9e497070berule, with identical admission behaviour.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
ripr-coding/14788-dead-blocker-helperStack parent or prerequisite PR (if any): none. This branch was stacked on #14756 (
ripr-coding/14728-marker-tail-neutral), which introduced both defects; #14756 merged 2026-11-16T00:28:06Z as squashaff7a55aa5, and this branch is rebased ontomainat235d2a91e2.Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Scope
.github/actions/pr-candidate-admission/review_disposition.py: delete the dead helper, correct one docstring.Scope Classification
This PR is scoped by:
Production delta:
comment_body_blocksremoved (17 lines, including its docstring).comment_body_negativedocstring now says the mis-formatted marker is neutral only when nothing but allowlisted chatter follows.Evidence/support delta:
self_testrows and the Rustissue_14728_stated_marker_selection_and_neutral_tailtest already cover the behaviour; no new test is needed for a docstring and a dead function.Single acceptance criterion:
comment_body_blocksappears nowhere in the repository, and thecomment_body_negativedocstring matches the code path that runs.Non-goals:
neutral_marker_body, or tocomment_body_negative's logic.Support-tier Impact
Claim/proof notes:
Policy Impact
Ledger or exception notes:
docs/CHANGELOG_POLICY.mdexcludes "internal refactors with no behavior, API, output, or workflow impact", which is this change.Proof
Result, failures, or skipped proof:
--self-test: exit 0.test_trusted_bundle.py: 4 of 7 fail on this Windows box, identically on a cleanmaincheckout at235d2a91e2; environment limitation, not a signal about this change.cargo test -p repo-policy --test review_disposition_admission: 13 passed, 0 failed, includingreview_disposition_self_test_passesandissue_14728_stated_marker_selection_and_neutral_tail.comment_body_negative,marker_line_neutralandcomment_body_chatterover a 646-body generated corpus,main(235d2a91e2) vs this head — 0 differences.comment_body_blocksis present onmainand absent at this head, which is the whole delta.3e25f6d7a3, byte-identical before and after the rebase;git diff origin/main...HEADis one file, +3/-17, andgit show --checkis clean.test_trusted_bundle.pyfails 4 of 7 on this Windows box (exit 127,OSError [Errno 22]) and fails identically on a cleanmaincheckout at235d2a91e2, so it is an environment limitation here and cannot discriminate this change.cargo xtask ci-policyon this head. The change is a docstring and a dead function in a Python file;ci-policypassed on the parent head9e497070beand no policy input changes here. Hosted checks will confirm.Claim Boundary
What may be claimed after this PR? What must not be claimed yet?
main(comment_body_blocksis present there and called nowhere), so this removes code that exists rather than code that only exists on an unmerged branch.Rollback
How can this PR be reverted safely?
Spec-Test-Code Traceability
review_disposition.py --self-test;tools/repo-policy/tests/review_disposition_admission.rs.github/actions/pr-candidate-admission/review_disposition.pyStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo xtask check-static-language(viaci-policyon the parent head)cargo xtask check-no-panic-family(viaci-policyon the parent head)cargo xtask check-allow-attributes(viaci-policyon the parent head)cargo xtask check-local-context(viaci-policyon the parent head)cargo xtask check-file-policy(viaci-policyon the parent head)cargo xtask check-covered-by(viaci-policyon the parent head)cargo xtask check-executable-files(viaci-policyon the parent head)cargo xtask check-process-policy(viaci-policyon the parent head)cargo xtask check-network-policy(viaci-policyon the parent head)cargo xtask check-changelog-fragments(run directly on the parent head)Not run locally on this head:
cargo fmt --check,cargo check --workspace --all-targets,cargo test --workspace,cargo clippy --workspace --all-targets -- -D warnings,cargo doc --workspace --no-deps,cargo package -p ripr --list,cargo publish -p ripr --dry-run, and the remainingcheck-*gates. The change touches one Python file and no Rust, manifest, workflow or generated artifact.