Skip to content

fix(admission): drop the dead blocker helper and correct the marker docstring (#14788) - #14809

Merged
EffortlessSteven merged 1 commit into
mainfrom
ripr-coding/14788-dead-blocker-helper
Nov 16, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
ripr-coding/14788-dead-blocker-helper

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Remove comment_body_blocks from .github/actions/pr-candidate-admission/review_disposition.py. It is defined and never called — not in the module, not in self_test, not in main — and its docstring promises a blocker veto that is actually performed by comment_body_negative's neutral_first block.
  • Correct comment_body_negative's docstring, which still describes the pre-9e497070be reading where a mis-formatted positive marker was always neutral. Since 9e497070be it is neutral only when nothing but allowlisted chatter follows.
  • No behaviour change.

Closes #14788.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    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 9e497070be file, comment_body_blocks no longer exists and comment_body_negative's docstring states the post-9e497070be rule, with identical admission behaviour.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): ripr-coding/14788-dead-blocker-helper
Stack 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 squash aff7a55aa5, and this branch is rebased onto main at 235d2a91e2.
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:

  • Other: dead-code removal and docstring correction with no behaviour change

Production delta:

  • comment_body_blocks removed (17 lines, including its docstring).
  • comment_body_negative docstring now says the mis-formatted marker is neutral only when nothing but allowlisted chatter follows.

Evidence/support delta:

  • None. The existing self_test rows and the Rust issue_14728_stated_marker_selection_and_neutral_tail test already cover the behaviour; no new test is needed for a docstring and a dead function.

Single acceptance criterion:

  • The name comment_body_blocks appears nowhere in the repository, and the comment_body_negative docstring matches the code path that runs.

Non-goals:

Support-tier Impact

  • none

Claim/proof notes:

  • Internal-only change; no user-visible, CLI, JSON, editor or package claim moves.

Policy Impact

  • none

Ledger or exception notes:

  • Changelog: no fragment. docs/CHANGELOG_POLICY.md excludes "internal refactors with no behavior, API, output, or workflow impact", which is this change.

Proof

python .github/actions/pr-candidate-admission/review_disposition.py --self-test
python .github/actions/pr-candidate-admission/test_trusted_bundle.py <worktree>
cargo test -p repo-policy --test review_disposition_admission

Result, failures, or skipped proof:

  • --self-test: exit 0.
  • test_trusted_bundle.py: 4 of 7 fail on this Windows box, identically on a clean main checkout at 235d2a91e2; environment limitation, not a signal about this change.
  • cargo test -p repo-policy --test review_disposition_admission: 13 passed, 0 failed, including review_disposition_self_test_passes and issue_14728_stated_marker_selection_and_neutral_tail.
  • Behaviour equivalence against the rebase base: 1,938 comparisons of comment_body_negative, marker_line_neutral and comment_body_chatter over a 646-body generated corpus, main (235d2a91e2) vs this head — 0 differences. comment_body_blocks is present on main and absent at this head, which is the whole delta.
  • Rebase integrity: the patched file blob is 3e25f6d7a3, byte-identical before and after the rebase; git diff origin/main...HEAD is one file, +3/-17, and git show --check is clean.
  • test_trusted_bundle.py fails 4 of 7 on this Windows box (exit 127, OSError [Errno 22]) and fails identically on a clean main checkout at 235d2a91e2, so it is an environment limitation here and cannot discriminate this change.
  • Not run: cargo xtask ci-policy on this head. The change is a docstring and a dead function in a Python file; ci-policy passed on the parent head 9e497070be and no policy input changes here. Hosted checks will confirm.

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

Rollback

How can this PR be reverted safely?

  • Revert the single commit. It restores a dead function and a stale docstring; no behaviour depends on either.

Spec-Test-Code Traceability

  • Spec: n/a
  • Tests: review_disposition.py --self-test; tools/repo-policy/tests/review_disposition_admission.rs
  • Code: .github/actions/pr-candidate-admission/review_disposition.py
  • Golden outputs: n/a
  • Metrics: n/a
  • ADR/learning: n/a

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: none
  • Workflows touched: none
  • Branch protection impact: none
  • Failure mode caught: none new; this removes a false guarantee from the module that decides admission
  • Cheaper signal considered: the Python self-test and the repo-policy admission suite, both run
  • Required lanes affected: none
  • Advisory lanes affected: none
  • On-demand/release lanes affected: none
  • Labels that alter behavior: none
  • Artifact families affected: none
  • Rollback path: revert the commit

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo xtask check-static-language (via ci-policy on the parent head)
  • cargo xtask check-no-panic-family (via ci-policy on the parent head)
  • cargo xtask check-allow-attributes (via ci-policy on the parent head)
  • cargo xtask check-local-context (via ci-policy on the parent head)
  • cargo xtask check-file-policy (via ci-policy on the parent head)
  • cargo xtask check-covered-by (via ci-policy on the parent head)
  • cargo xtask check-executable-files (via ci-policy on the parent head)
  • cargo xtask check-process-policy (via ci-policy on the parent head)
  • cargo xtask check-network-policy (via ci-policy on 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 remaining check-* gates. The change touches one Python file and no Rust, manifest, workflow or generated artifact.

@coderabbitai

coderabbitai Bot commented Nov 15, 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 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 145 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: f57f1916-66c2-418e-884d-17a9bf183924
Commits

Reviewing files that changed from the base of the PR and between 235d2a9 and b6b0d0f.

Files selected for processing: 1

  • .github/actions/pr-candidate-admission/review_disposition.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gemini-code-assist gemini-code-assist 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.

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Stack reconciliation and behaviour proof on head b8099be5ef. Evidence only; no head change, no label, no queue write. This PR is still a held draft and the stack parent #14756 is still queued.

The stack still applies unchanged at #14756's final head. #14756's head moved to d134507f55 and its own diff rewrote the same region of review_disposition.py. I checked the parent's bytes rather than assuming: at d134507f55, comment_body_negative is still at line 499 and comment_body_blocks is still defined at line 548, never called (one occurrence in the file: the def). git diff d134507f55 b8099be5ef is still exactly two changes — the docstring correction and the 15-line helper deletion. So the rebase after #14756 lands is a retarget with no conflict resolution, and the premise "the helper is dead and the docstring is stale" holds at the post-parent tree, not only at the base I branched from.

Behaviour is unchanged, measured three ways. I extracted both trees and compared the module predicate by predicate:

  • Differential probe: comment_body_negative, marker_line_neutral and comment_body_chatter over 646 generated bodies (every pair of 25 seed lines plus singles, including markers, retractions, fenced blockers, empty and whitespace bodies). 1,938 comparisons, 0 differences.
  • self_test() passes at both trees (d134507f55 and b8099be5ef).
  • The corrected docstring now describes what the code does. Ten discriminating bodies, identical values at both heads and all ten matching the prose: a mis-formatted marker alone (REVIEW_READY <sha>, the - form and the head form) is neutral; neutral with allowlisted chatter or an exact-head review line after it; still negative with retraction prose, "The evidence is weak.", a REPAIR_REQUIRED line or a plain-English blocker. Zero disagreements with the new wording.

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.

Base automatically changed from ripr-coding/14728-marker-tail-neutral to main November 16, 2026 00:28
…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.
@EffortlessSteven
EffortlessSteven force-pushed the ripr-coding/14788-dead-blocker-helper branch from b8099be to b6b0d0f Compare November 16, 2026 01:49
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 16, 2026 01:49
@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!

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Copy link
Copy Markdown
Member Author

Exact-head evidence checkpoint for the existing owner after the post-#14756 rebase: current head is b6b0d0f7189a6a98b25fe8e200ee9ae31e2ed978, parent 235d2a91e28961f3af7323582f5a8dd2d9d9be46, and the PR is now non-draft. The current one-file diff remains the docstring correction plus dead-helper deletion.

Published receipts distinguish two subjects: comment 6901500861 records the 1,938 differential comparisons and self-tests on predecessor b8099be5; the current-head Devin review reports no issues but does not state integration/equivalence coverage or a scoped source-review attestation. The older Gemini review is attached to 4fd113cd. There are no inline review threads. I could not establish a published independent exact-head integration/source-review receipt covering this rebased successor, or a receipt explicitly carrying the predecessor evidence forward after verifying unchanged content. This does not assert that an unpublished review never occurred.

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

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_chatter requires 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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Docstring nit on b6b0d0f718 — non-blocking. My SOURCE_REVIEW_READY on this head stands; this is a conversation comment, not a review, so it does not replace that marker.

comment_body_negative's new paragraph says a mis-formatted positive marker is neutral "only when nothing follows it but allowlisted chatter (#14728)". The code admits three tails, not one. At review_disposition.py:528-540 the remainder after the marker must be at most one line, and that line must be either one of the two CHATTER_BODIES strings (thanks, will look., no code change needed.) or a match for EXACT_HEAD_REVIEW (Exact-head review (head <sha>)). An empty tail is also admitted.

So a reader who takes "allowlisted chatter" as CHATTER_BODIES alone would predict that REVIEW_READY followed by Exact-head review (head <sha>) refuses, when it is admitted. Since this PR exists to make that docstring exact, naming the third allowance — or phrasing it as "an empty tail, one of the two chatter bodies, or the exact-head review line" — closes the gap.

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 b6b0d0f718; nothing executed.

Merged via the queue into main with commit 5ec23eb Nov 16, 2026
21 checks passed
@EffortlessSteven
EffortlessSteven deleted the ripr-coding/14788-dead-blocker-helper branch November 16, 2026 07:08
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.

admission: comment_body_blocks is dead code and its docstring promises a veto nothing performs

1 participant