You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
source-control:babysit-prs: should formal APPROVED-state reviews be severity-scanned before the ignored short-circuit (bot AND human paths) #621
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.wayfind: designWayfind decision item: design-space or domain-model decision; human in the loop.
A reviewer bot can submit a formal APPROVED-state review whose body carries a live CRITICAL/IMPORTANT finding (e.g. Verdict: Approve overall. IMPORTANT: authorization bypass.). In collect_feedback (plugins/source-control/skills/babysit-prs/scripts/babysit_feedback.py) the elif state in {"APPROVED", "DISMISSED"}: ignored.append(record) branch short-circuits to ignoredbefore the has_blocking_text / has_blocking_severity predicate is reached, so the severity marker is never inspected — no blocker, no worker dispatch. The same short-circuit exists on the non-bot (human) path a few lines above.
Why this is a deferred design question, not a PR #567 fix
Design-shaped. Making a formal APPROVED verdict yield a blocker based on body prose is a contract change to how explicit review states are treated, and it spans both the bot and human paths (the human path has the identical APPROVED/DISMISSED → ignored short-circuit). It carries a false-positive surface (descriptive severity words in an otherwise-clean approval) and interacts with the approval-downgrade heuristic.
Per the no-false-guarantees rule, PR #567 does not ship a present-tense guarantee this finding contradicts: its CHANGELOG/docstring wording was narrowed to the enforced behavior (severity stays blocking in a comment or non-APPROVED-state review), with this issue cited as the caveat. The classifier itself is left unchanged in #567.
The design question to decide
Should a formal APPROVED/DISMISSED-state review (bot and human) have its body severity-scanned before the ignored short-circuit — i.e. can a live CRITICAL/IMPORTANT in the body override the reviewer's explicit approval state? If yes, define the precedence and the false-positive guard; apply consistently across both paths.
Belongs to the #534 shared-classifier design space; likely umbrella-fold at triage.
Triage (umbrella-fold) — reporter self-flagged this as belonging to #534's shared-classifier design space (the APPROVED/DISMISSED short-circuit precedence question, bot and human paths). Folding rather than routing standalone per the umbrella-fold rule.
Blocked by #534's decision. Not routed to needs-human individually.
This was generated by AI during triage (historic normalization, rule 8g).
Reporter severity note (rule 5 sub-sort): this masks CRITICAL/IMPORTANT findings behind a formal APPROVED-state review — high consequence if it fires, even though tier stays priority: medium per rule 8c (source-control is a priority-set plugin, which affects ordering within the tier, not the tier itself).
The design question is genuinely open, not a single defaultable fork: should a formal APPROVED review ever short-circuit before severity inspection, or should severity markers always gate regardless of review state (and if so, on both the bot and human paths, which currently share the same short-circuit)? Reserved for a human call rather than defaulted.
Decision brief — APPROVED-state severity short-circuit (bot & human paths)
2-minute read. Human decision required; this brief does not decide, relabel, or close.
Problem (2 sentences)
A reviewer submitting a formal APPROVED-state review whose body carries a live CRITICAL/IMPORTANT finding is routed straight to ignored — the severity of the body is never inspected, so no blocker is raised and no worker is dispatched. High consequence if it fires (a masked high-severity finding merges), even though this lane's tier stays priority: medium.
What's verified today (cited, against origin/main @ 49c2ae5)
Bot path (kind == "bot"): state == "CHANGES_REQUESTED" → blocking (L201-202); state in {"APPROVED","DISMISSED"} → ignored, short-circuit (L203-204); only the else branch (COMMENTED / no state) reaches has_blocking_text(text) or has_blocking_severity(text) (L205).
Human path (kind != "bot"): state in {"APPROVED","DISMISSED"} → ignored, short-circuit (L190-191); the non-approved branch gates on inlineReview / CHANGES_REQUESTED / has_blocking_text(text) only (L192-197) — note it does not call has_blocking_severity at all.
Three facts that sharpen the decision beyond the issue's own framing:
The codebase has already decided prose-approval cannot mask a CRITICAL.approval_downgrade (babysit_classify.py L305-306) returns False — stays blocking — when a CRITICAL/IMPORTANT marker survives negation redaction. The formal APPROVED state is the one remaining path where an approval verdict can still mask a live finding. Fixing it extends an established principle to the state-based path; it is not new policy.
The bot path is internally inconsistent today. The COMMENTED-state branch already calls has_blocking_severity (L205); the APPROVED branch short-circuits before it (L203-204). So an APPROVED bot review is treated more leniently than a COMMENTED one with the identical CRITICAL body. The fix reuses a primitive already wired into the sibling branch.
has_blocking_severity already exists (babysit_classify.py L269-280) — negation-redacted CRITICAL/IMPORTANT scan, the exact reuse target. No new classifier needed.
Comment 1 folded this under #534 as "blocked by #534's decision."#534 is now CLOSED — it delivered the shared classifier (babysit_classify.py, incl. has_blocking_severity) but did not decide this precedence question. So #621 is now unblocked and implementable, not resolved. The stale "blocked by #534" framing no longer holds.
Options
(a) — RECOMMENDED — Severity-scan the bot APPROVED path now; treat the human APPROVED path as a separate, flagged judgment call.
Insert a has_blocking_severity(text) check ahead of the bot {APPROVED,DISMISSED}→ignored short-circuit so a surviving CRITICAL/IMPORTANT routes to blocking (or material under the existing approval_downgrade/disposition precedence).
Scope to APPROVED, not DISMISSED: a DISMISSED review was explicitly set aside; scanning its body could resurrect stale findings. Keep DISMISSED on the short-circuit unless separately justified.
Human path deferred as a flagged call, not swept in: a human clicking GitHub's Approve is a deliberate, stronger signal than a bot's automated state, and re-blocking on body prose overrides an explicit human action. The human path also has nohas_blocking_severity wiring today (net-new, not a symmetric move). Recommend: implement the bot fix, and put the human-path question to the operator as a distinct decision (see (c)).
(b) — Status quo: keep {APPROVED,DISMISSED} as an unconditional short-circuit on both paths. REJECTED.
Leaves the bot path treating APPROVED more leniently than COMMENTED for identical CRITICAL bodies (#2), and leaves the masked-finding gap open. The consequence (a high-severity finding merges unseen) outweighs the near-zero cost of the (a) predicate. Recorded only to state the risk being declined.
(c) — Also severity-scan the human APPROVED path (complete symmetry).
Add has_blocking_severity gating ahead of the human {APPROVED,DISMISSED}→ignored short-circuit (L190-191).
For: closes the gap symmetrically; a human can also paste a CRITICAL under an Approve click.
Against: net-new wiring (human path has no severity scan today); genuinely overrides a deliberate human action on the basis of body prose — higher false-positive/annoyance cost, and philosophically contestable in a way the bot case is not. This is the "strong reason not to" the masked-findings argument has to answer.
Recommendation: do not bundle into (a). Surface as the operator's explicit choice; if taken, apply the same APPROVED-only (not DISMISSED) scoping and consider a guard/notice rather than a hard silent re-block.
Tradeoff summary
False-negative (masked CRITICAL)
Added latency/complexity
Overrides deliberate signal
Reversibility
(a) bot-only
Closes bot-path gap
~nil (reuses primitive)
No (bot state is automated)
High (one predicate)
(b) status quo
Open
none
n/a
n/a
(c) + human
Closes both
Net-new human wiring
Yes (human Approve click)
High, but reverts a policy choice
Recommendation restated: take (a) — bot APPROVED path severity-scanned now (APPROVED only), leaning toward closing the security-relevant gap where the risk and the code inconsistency concentrate; defer the human path (c) to an explicit operator call rather than flattening "both paths" into one undifferentiated fix.
Ruling: no severity-scan before the APPROVED short-circuit. A formal APPROVED-state review is the reviewer's authoritative verdict; letting body prose override the formal state inverts the review contract and turns every approval into a text-classification problem. A reviewer that approves while writing IMPORTANT/CRITICAL in the body is emitting a contradictory signal, and the fix belongs on the reviewer's side, not in babysit-prs second-guessing formal states.
Reopen trigger: a demonstrated case where a live P1 finding shipped because it rode in an APPROVED body and was materially missed (not merely re-raised in a later CHANGES_REQUESTED round).
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.wayfind: designWayfind decision item: design-space or domain-model decision; human in the loop.
Activity
docs(source-control): scope blocking-severity guarantee to enforced b…
fix(source-control): babysit snapshot classifies Approve-with-nits bo…
kyle-sexton commentedon Jul 20, 2026
This was generated by AI during triage.
Triage (umbrella-fold) — reporter self-flagged this as belonging to #534's shared-classifier design space (the
APPROVED/DISMISSEDshort-circuit precedence question, bot and human paths). Folding rather than routing standalone per the umbrella-fold rule.Blocked by #534's decision. Not routed to
needs-humanindividually.fix(source-control): reject approver-bot approvals that report blocki…
kyle-sexton commentedon Jul 20, 2026
This was generated by AI during triage (historic normalization, rule 8g).
Reporter severity note (rule 5 sub-sort): this masks CRITICAL/IMPORTANT findings behind a formal APPROVED-state review — high consequence if it fires, even though tier stays
priority: mediumper rule 8c (source-control is a priority-set plugin, which affects ordering within the tier, not the tier itself).The design question is genuinely open, not a single defaultable fork: should a formal APPROVED review ever short-circuit before severity inspection, or should severity markers always gate regardless of review state (and if so, on both the bot and human paths, which currently share the same short-circuit)? Reserved for a human call rather than defaulted.
kyle-sexton commentedon Jul 20, 2026
Decision brief — APPROVED-state severity short-circuit (bot & human paths)
2-minute read. Human decision required; this brief does not decide, relabel, or close.
Problem (2 sentences)
A reviewer submitting a formal
APPROVED-state review whose body carries a liveCRITICAL/IMPORTANTfinding is routed straight toignored— the severity of the body is never inspected, so no blocker is raised and no worker is dispatched. High consequence if it fires (a masked high-severity finding merges), even though this lane's tier stayspriority: medium.What's verified today (cited, against
origin/main@49c2ae5)collect_feedbackinplugins/source-control/skills/babysit-prs/scripts/babysit_feedback.py:kind == "bot"):state == "CHANGES_REQUESTED"→blocking(L201-202);state in {"APPROVED","DISMISSED"}→ignored, short-circuit (L203-204); only the else branch (COMMENTED / no state) reacheshas_blocking_text(text) or has_blocking_severity(text)(L205).kind != "bot"):state in {"APPROVED","DISMISSED"}→ignored, short-circuit (L190-191); the non-approved branch gates oninlineReview/CHANGES_REQUESTED/has_blocking_text(text)only (L192-197) — note it does not callhas_blocking_severityat all.Three facts that sharpen the decision beyond the issue's own framing:
approval_downgrade(babysit_classify.pyL305-306) returnsFalse— stays blocking — when aCRITICAL/IMPORTANTmarker survives negation redaction. The formal APPROVED state is the one remaining path where an approval verdict can still mask a live finding. Fixing it extends an established principle to the state-based path; it is not new policy.has_blocking_severity(L205); the APPROVED branch short-circuits before it (L203-204). So an APPROVED bot review is treated more leniently than a COMMENTED one with the identical CRITICAL body. The fix reuses a primitive already wired into the sibling branch.has_blocking_severityalready exists (babysit_classify.pyL269-280) — negation-redactedCRITICAL/IMPORTANTscan, the exact reuse target. No new classifier needed.#534 status correction
Comment 1 folded this under #534 as "blocked by #534's decision." #534 is now CLOSED — it delivered the shared classifier (
babysit_classify.py, incl.has_blocking_severity) but did not decide this precedence question. So #621 is now unblocked and implementable, not resolved. The stale "blocked by #534" framing no longer holds.Options
(a) — RECOMMENDED — Severity-scan the bot APPROVED path now; treat the human APPROVED path as a separate, flagged judgment call.
Insert a
has_blocking_severity(text)check ahead of the bot{APPROVED,DISMISSED}→ignoredshort-circuit so a survivingCRITICAL/IMPORTANTroutes toblocking(ormaterialunder the existingapproval_downgrade/disposition precedence).approval_downgrade's negation guards apply), and easily reversible (single predicate).APPROVED, notDISMISSED: a DISMISSED review was explicitly set aside; scanning its body could resurrect stale findings. Keep DISMISSED on the short-circuit unless separately justified.has_blocking_severitywiring today (net-new, not a symmetric move). Recommend: implement the bot fix, and put the human-path question to the operator as a distinct decision (see (c)).(b) — Status quo: keep
{APPROVED,DISMISSED}as an unconditional short-circuit on both paths. REJECTED.Leaves the bot path treating APPROVED more leniently than COMMENTED for identical CRITICAL bodies (#2), and leaves the masked-finding gap open. The consequence (a high-severity finding merges unseen) outweighs the near-zero cost of the (a) predicate. Recorded only to state the risk being declined.
(c) — Also severity-scan the human APPROVED path (complete symmetry).
Add
has_blocking_severitygating ahead of the human{APPROVED,DISMISSED}→ignoredshort-circuit (L190-191).APPROVED-only (notDISMISSED) scoping and consider a guard/notice rather than a hard silent re-block.Tradeoff summary
Recommendation restated: take (a) — bot APPROVED path severity-scanned now (
APPROVEDonly), leaning toward closing the security-relevant gap where the risk and the code inconsistency concentrate; defer the human path (c) to an explicit operator call rather than flattening "both paths" into one undifferentiated fix.kyle-sexton commentedon Aug 12, 2026
Frontier disposition (drain session)
Ruling: no severity-scan before the APPROVED short-circuit. A formal APPROVED-state review is the reviewer's authoritative verdict; letting body prose override the formal state inverts the review contract and turns every approval into a text-classification problem. A reviewer that approves while writing IMPORTANT/CRITICAL in the body is emitting a contradictory signal, and the fix belongs on the reviewer's side, not in babysit-prs second-guessing formal states.
Reopen trigger: a demonstrated case where a live P1 finding shipped because it rode in an APPROVED body and was materially missed (not merely re-raised in a later CHANGES_REQUESTED round).