Skip to content

source-control:babysit-prs: advisory-P2-under-approval routing has no ignored-vs-material policy (babysit_feedback.py) #594

Closed as not planned

Description

@kyle-sexton

Lane: babysit. Triggering PR: #567 (fix/499-babysit-snapshot-approve-nits-classification).

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.

Activity

  1. added
    needs-triage
    and removed
    needs-triage
    on Jul 20, 2026
  2. kyle-sexton commented on Jul 20, 2026

    @kyle-sexton
    MemberAuthor

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

  3. kyle-sexton commented on Jul 20, 2026

    @kyle-sexton
    MemberAuthor

    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.

  4. kyle-sexton commented on Jul 21, 2026

    @kyle-sexton
    MemberAuthor

    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.
    • The ordering is a documented gap. babysit_classify.py:293-296 — "A review submitted in the formal APPROVED/DISMISSED state is routed to ignored upstream, 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."
    • What the buckets mean downstream:
      • material is 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.
      • ignored is 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: material already 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.

    Cross-links

    Routing recommendations (to triage lane)

    1. Apply status: needs-decision — a genuine unmade, author-owned policy call, currently unlabeled for the decision queue.
    2. Resolve the dup-priority label anomaly — source-control:babysit-prs: advisory-P2-under-approval routing has no ignored-vs-material policy (babysit_feedback.py) #594 carries both priority: high and priority: medium; exactly one should remain (the 2026-07-20 promote-note argues priority: high).
  5. kyle-sexton commented on Jul 22, 2026

    @kyle-sexton
    MemberAuthor

    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.

  6. added
    status: ready
    and removed on Jul 22, 2026
  7. added
    needs-human
    on Jul 23, 2026
  8. kyle-sexton commented on Aug 13, 2026

    @kyle-sexton
    MemberAuthor

    Frontier disposition (drain session)

    Ruling: Close as not planned.

    Advisory-P2-under-approval routing policy is folded into babysit feedback ledger doctrine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanstatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions