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: advisory-P2-under-approval routing has no ignored-vs-material policy (babysit_feedback.py) #594
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.status: readyTriaged, unblocked, and fully specified; eligible to pick up.
Worker's live re-review of the pushed fix (c86fc59) surfaced a design question the code doesn't currently answer: when a bot review is an overall Approve carrying a real P2 finding, should that P2 be routed to material (surfaced to the operator) or silently dropped into the ignored bucket? Currently classify_pr's feedback dict never exposes the ignored bucket at all, so there's no code-backed policy either way — changing it is an author-owned policy call, not a mechanical fix.
Category: behavioral. Needs a human decision on the intended severity-vs-approval-state routing policy before a fix can be written.
Umbrella-fold → #534 (babysit merge-readiness classifier). "Material vs ignored routing for P2-under-Approve" is finding-state classification — squarely #534's stated pattern ("authorship/finding/approval detection is hand-rolled at each call site; no shared classifier"). Not routed standalone; blocked by #534 recorded natively. The policy call itself (which bucket a P2-under-Approve lands in) still needs an operator ruling — that lives inside #534's shared-classifier design, not as a separate needs-human item.
Promoted priority: high (tower, 2026-07-20):#618 closed as resolved-by-decision — Codex scoping is unimplementable upstream, so this issue's advisory ignored-vs-material policy + the #534-specced advisory-thread fast-path is now the primary lever against the measured review-loop latency (median 72m, tracks reviews-per-PR). Scaling-chain member per T2 rule 8b.
This was generated by AI (decide lane — decision-brief pass; surfaced via coverage sweep — this decision was unlabeled).
Problem
When a bot review is submitted in the formal APPROVED state but carries a real advisory P2 finding, the feedback pipeline drops the whole record into ignored before any severity scan runs — so the P2 is absent from the babysit queue snapshot/delta, even though the readiness gate counts the same marker as a source finding. No code-backed policy has been chosen for whether that P2 should route to material (surfaced, non-blocking) or stay ignored (dropped from the feedback surface).
Today (verified)
APPROVED short-circuits before the severity branch.babysit_feedback.py:203 — elif state in {"APPROVED", "DISMISSED"}: ignored.append(record) fires ahead of the severity branch at :205; an APPROVED body is never severity-scanned. A P2 posted as a standalone bot comment also lands in ignored (:247), since P2 is not a blocking severity.
"Blocking severity" is CRITICAL/IMPORTANT only.babysit_classify.py:102 — BLOCKING_SEVERITY_RE = re.compile(r"\b(?:CRITICAL|IMPORTANT)\b"). P2 / [P2] / SUGGESTION are advisory.
materialis surfaced to the operator, non-blocking — printed as material feedback: … (pr_queue_snapshot.py:362) and reported as "N material bot feedback item(s)" (babysit_delta.py:539-540). It does not gate: the snapshot exit code keys only on errors (pr_queue_snapshot.py:exit_code_for), and babysit_merge.py never reads the feedback buckets.
ignoredis dropped from the feedback surface — the snapshot prints blocking/material/human_blocking/human only (pr_queue_snapshot.py:360-371); ignored has no downstream consumer.
The two surfaces disagree — the readiness gate's count_findings counts [P0]–[P3] / /badge/P0-3/ markers as source findings (babysit_classify.py:344-348) and blocks readiness (READINESS_BLOCKED reason=under-decomposed) until each has a classification row (reference/loop.md:285-291, 410-412). So the same P2 the gate counts as a finding requiring classification is the one the feedback dict silently routes to ignored.
Options
1. Route P2-under-APPROVE to material — surface-but-non-blocking. [RECOMMENDED]
Severity-scan the APPROVED body before the ignored short-circuit; a surviving advisory marker (P2/SUGGESTION, no CRITICAL/IMPORTANT) → material, not blocking. Rationale: materialalready is the surface-but-non-blocking tier, so this is the middle path — operator sees the finding, loop is not stalled, approve verdict is honored — and it aligns the feedback surface with what the readiness gate already counts. Matches the report-only posture of #440. Reversibility: high — a pure classification change in babysit_feedback.py, no external side effect, trivially revertible.
2. Route to ignored — status quo.
Cheapest (no change). Cost: a genuine advisory finding stays absent from the queue snapshot and inconsistent with the gate that counts it. Reversibility: high (current state).
3. Escalate to blocking — treat P2-under-APPROVE as a loop-stopper.
Most conservative. Cost: over-blocks advisory-tier findings, contradicts the bot's own approve verdict, and adds review-loop latency — the very latency this issue's 2026-07-20 promote-note flags (median 72m). Not recommended.
Review-severity convention — plugins/review/context/severity.md: CRITICAL (block) / IMPORTANT (fix soon) / SUGGESTION (optional). Flag, don't rely on: that file's P-scale is CVSS security P1–P5, whereas the babysit parser reads Codex's shields.io P0–P3 badge scale — different vocabularies; the babysit "advisory P2" is the P0–P3 non-blocking tier, not severity.md's security P2.
Operator ruling (ratification interview, 2026-07-22 ~03:05Z): advisory P2 under APPROVED routes to material. Surface-but-non-blocking: operator sees it, the approve verdict is honored, the loop is not stalled, and the feedback surface aligns with the readiness gate (which already counts these). blocking rejected — it adds exactly the re-review churn the 7-round #857 evidence blames; ignored rejected — hides findings the gate still counts. Pure classification change in babysit_feedback.py. Keep consistent with / fold into #621. Dup priority label deduped (keeping priority: high). Flipping to status: ready.
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.status: readyTriaged, unblocked, and fully specified; eligible to pick up.
Activity
kyle-sexton commentedon Jul 20, 2026
This was generated by AI during triage.
Umbrella-fold → #534 (babysit merge-readiness classifier). "Material vs ignored routing for P2-under-Approve" is finding-state classification — squarely #534's stated pattern ("authorship/finding/approval detection is hand-rolled at each call site; no shared classifier"). Not routed standalone;
blocked by #534recorded natively. The policy call itself (which bucket a P2-under-Approve lands in) still needs an operator ruling — that lives inside #534's shared-classifier design, not as a separate needs-human item.fix(source-control): babysit snapshot classifies Approve-with-nits bo…
refactor(source-control): one shared babysit authorship/finding/appro…
kyle-sexton commentedon Jul 20, 2026
Promoted priority: high (tower, 2026-07-20): #618 closed as resolved-by-decision — Codex scoping is unimplementable upstream, so this issue's advisory ignored-vs-material policy + the #534-specced advisory-thread fast-path is now the primary lever against the measured review-loop latency (median 72m, tracks reviews-per-PR). Scaling-chain member per T2 rule 8b.
kyle-sexton commentedon Jul 21, 2026
This was generated by AI (decide lane — decision-brief pass; surfaced via coverage sweep — this decision was unlabeled).
Problem
When a bot review is submitted in the formal APPROVED state but carries a real advisory P2 finding, the feedback pipeline drops the whole record into
ignoredbefore any severity scan runs — so the P2 is absent from the babysit queue snapshot/delta, even though the readiness gate counts the same marker as a source finding. No code-backed policy has been chosen for whether that P2 should route tomaterial(surfaced, non-blocking) or stayignored(dropped from the feedback surface).Today (verified)
babysit_feedback.py:203—elif state in {"APPROVED", "DISMISSED"}: ignored.append(record)fires ahead of the severity branch at:205; an APPROVED body is never severity-scanned. A P2 posted as a standalone bot comment also lands inignored(:247), since P2 is not a blocking severity.babysit_classify.py:102—BLOCKING_SEVERITY_RE = re.compile(r"\b(?:CRITICAL|IMPORTANT)\b"). P2 /[P2]/ SUGGESTION are advisory.babysit_classify.py:293-296— "A review submitted in the formal APPROVED/DISMISSED state is routed toignoredupstream, before this predicate; whether that short-circuit should be severity-scanned first is tracked as a follow-up in issue source-control:babysit-prs: should formal APPROVED-state reviews be severity-scanned before the ignored short-circuit (bot AND human paths) #621."materialis surfaced to the operator, non-blocking — printed asmaterial feedback: …(pr_queue_snapshot.py:362) and reported as "N material bot feedback item(s)" (babysit_delta.py:539-540). It does not gate: the snapshot exit code keys only onerrors(pr_queue_snapshot.py:exit_code_for), andbabysit_merge.pynever reads the feedback buckets.ignoredis dropped from the feedback surface — the snapshot prints blocking/material/human_blocking/human only (pr_queue_snapshot.py:360-371);ignoredhas no downstream consumer.count_findingscounts[P0]–[P3]//badge/P0-3/markers as source findings (babysit_classify.py:344-348) and blocks readiness (READINESS_BLOCKED reason=under-decomposed) until each has a classification row (reference/loop.md:285-291, 410-412). So the same P2 the gate counts as a finding requiring classification is the one the feedback dict silently routes toignored.Options
1. Route P2-under-APPROVE to
material— surface-but-non-blocking. [RECOMMENDED]Severity-scan the APPROVED body before the
ignoredshort-circuit; a surviving advisory marker (P2/SUGGESTION, no CRITICAL/IMPORTANT) →material, notblocking. Rationale:materialalready is the surface-but-non-blocking tier, so this is the middle path — operator sees the finding, loop is not stalled, approve verdict is honored — and it aligns the feedback surface with what the readiness gate already counts. Matches the report-only posture of #440. Reversibility: high — a pure classification change inbabysit_feedback.py, no external side effect, trivially revertible.2. Route to
ignored— status quo.Cheapest (no change). Cost: a genuine advisory finding stays absent from the queue snapshot and inconsistent with the gate that counts it. Reversibility: high (current state).
3. Escalate to
blocking— treat P2-under-APPROVE as a loop-stopper.Most conservative. Cost: over-blocks advisory-tier findings, contradicts the bot's own approve verdict, and adds review-loop latency — the very latency this issue's 2026-07-20 promote-note flags (median 72m). Not recommended.
Cross-links
needs-human+wayfind: design. source-control:babysit-prs: advisory-P2-under-approval routing has no ignored-vs-material policy (babysit_feedback.py) #594 is the P2-specific slice; a ruling here should stay consistent with (or fold into) source-control:babysit-prs: should formal APPROVED-state reviews be severity-scanned before the ignored short-circuit (bot AND human paths) #621.plugins/review/context/severity.md: CRITICAL (block) / IMPORTANT (fix soon) / SUGGESTION (optional). Flag, don't rely on: that file's P-scale is CVSS security P1–P5, whereas the babysit parser reads Codex's shields.io P0–P3 badge scale — different vocabularies; the babysit "advisory P2" is the P0–P3 non-blocking tier, not severity.md's security P2.Routing recommendations (to triage lane)
status: needs-decision— a genuine unmade, author-owned policy call, currently unlabeled for the decision queue.priority: highandpriority: medium; exactly one should remain (the 2026-07-20 promote-note arguespriority: high).kyle-sexton commentedon Jul 22, 2026
Operator ruling (ratification interview, 2026-07-22 ~03:05Z): advisory P2 under APPROVED routes to
material. Surface-but-non-blocking: operator sees it, the approve verdict is honored, the loop is not stalled, and the feedback surface aligns with the readiness gate (which already counts these).blockingrejected — it adds exactly the re-review churn the 7-round #857 evidence blames;ignoredrejected — hides findings the gate still counts. Pure classification change inbabysit_feedback.py. Keep consistent with / fold into #621. Dup priority label deduped (keepingpriority: high). Flipping tostatus: ready.kyle-sexton commentedon Aug 13, 2026
Frontier disposition (drain session)
Ruling: Close as not planned.
Advisory-P2-under-approval routing policy is folded into babysit feedback ledger doctrine.