Skip to content

work-items(work-loop): admission gate re-queues body-ratified items for ratify-c3, re-applying needs-human #1348

Closed

Description

@kyle-sexton

Context

Discovered live during a /work-items:work-loop cycle against this repository (2026-07-25): issues #815, #816, and #965 each carry a recorded ratification directly in their issue body (Work-class: C3 (bug-fix-shaped) -- attended triage 2026-07-23, operator-ratified.), and each already has a same-day correction comment (2026-07-24) explicitly restoring them to the autonomous frontier after a prior work-loop cycle wrongly re-queued them for first-drain ratify-c3 ratification without reading the body first.

As of this cycle, all three issues have needs-human re-applied a second time, alongside a fresh kind=ratify-c3 queue comment posted the same day -- reproducing the exact same mis-classification the 2026-07-24 correction comment already diagnosed and fixed once.

Proposed work

The work-loop admission gate's first-drain C3 ratification check (work-items:work-loop SKILL.md, "First-drain C3 ratification (earn-trust)") should check the issue body for an existing recorded ratification (the attended triage <date>, operator-ratified marker pattern, or any other body-recorded ratification signal track/triage use) before queuing a fresh ratify-c3 comment and reapplying needs-human. An item that already carries its own recorded ratification is dispatch-eligible outright and should never be re-queued.

Acceptance criteria

  • The admission gate reads the issue body for an existing ratification marker before applying needs-human / posting a ratify-c3 queue comment.
  • An item with a body-recorded ratification is treated as already-ratified (dispatch-eligible) rather than re-queued.
  • Regression coverage (or a documented manual-check step, if this gate has no automated test surface) for the exact scenario observed: an item corrected once via a "Superseded" comment does not flap back to needs-human on a later cycle.

References

Metadata

Surfaced while a /work-items:work-loop lane was running its admission gate and cross-checking candidate items for existing ratification before dispatch.

Work-class: unclassified -- self-filed raw intake, not a verified diagnosis. Routing left to triage. 🤖

Activity

  1. added
    needs-triage
    on Jul 25, 2026
  2. added theissue type on Jul 25, 2026
  3. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage

    Verified. Confirmed against plugins/work-items/skills/work-loop/SKILL.md "First-drain C3 ratification (earn-trust)": the admission gate's only two accepted ratification signals are (1) the /work-items:attend-queue reply on the item's own kind=ratify-c3 machine-marked comment, or (2) first_drain_complete in durable state. The gate has no logic to read the issue body for a prior recorded ratification (e.g. Work-class: C3 (bug-fix-shaped) — attended triage <date>, operator-ratified.), nor for a same-day "Superseded" correction comment that already restored agent-ready. That confirms the reported defect: a body-ratified item with no first_drain_complete flag is unconditionally re-queued.

    Classification: Bug, work-class: scoped.

    Note: this item was filed by the same work-loop lane that reproduced the bug. Per the loop's own self-grading rule it is routed for normal dispatch on a later cycle/session, not claimed in the same breath as this triage pass.

    Agent Brief

    Type: Bug
    Summary: The work-loop admission gate's first-drain C3 ratification check re-queues (re-applies the human-gated role label + posts a fresh kind=ratify-c3 comment) on items that already carry a recorded ratification signal other than the attend-queue reply shape it currently recognizes.

    Current behavior: The gate recognizes exactly one ratification shape — the /work-items:attend-queue reply on the item's own kind=ratify-c3 comment — plus the global first_drain_complete durable-state flag. Any other evidence of prior ratification (a body-recorded marker such as attended triage <date>, operator-ratified, or a same-day correction comment that already restored the autonomous-eligible role) is invisible to the gate, so a body-ratified item is treated as unratified and re-queued on every cycle run before first_drain_complete is set.

    Desired behavior: Before applying the human-gated role label and posting a kind=ratify-c3 comment, the gate checks the item's body (and, where practical, its comment history) for an existing ratification marker. An item carrying prior recorded ratification is treated as already-ratified — dispatch-eligible outright, never re-queued — regardless of which recognized shape (attend-queue reply vs. body-recorded marker) it carries.

    Key interfaces:

    • The first-drain ratification check in the work-loop admission gate — extend its ratification-evidence lookup to include a body-marker scan, not only the kind=ratify-c3 comment-reply shape.
    • The ratification-marker pattern: attended triage <date>, operator-ratified (or equivalent explicit body-recorded ratification language already used by track/triage) should be recognized as an accepted evidence shape alongside the existing comment-reply shape.

    Acceptance criteria:

    • An item whose body carries an existing ratification marker is treated as already-ratified (dispatch-eligible) and is never re-queued for ratify-c3.
    • An item previously corrected back to autonomous-eligible via a "Superseded"-style comment does not flap back to human-gated on a later cycle.
    • Regression coverage (automated test, or a documented manual-check step if this gate has no test surface) for the exact scenario observed: a body-ratified item surviving one admission-gate pass without being re-queued.

    Out of scope:

  4. added
    agent-ready
    and removed
    needs-triage
    on Jul 25, 2026
  5. self-assigned this
    on Jul 25, 2026
  6. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  7. added a commit that references this issue on Jul 25, 2026
    1353d39
  8. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during work-loop execution.

    Dispatched. Admission already passed (agent-ready / work-class: scoped from an independent triage pass) — claimed via the tracker seam (assignee + lease), implemented in an out-of-tree worktree on branch fix/1348-admission-gate-body-ratification, and opened as PR #1372: #1372

    Fix summary: work-loop's first-drain C3 ratification gate now checks (1) whether the item already carries the resolved autonomous-eligible label without the human-gated label, and (2) whether the issue body carries an attended-triage ratification marker — either is dispatch-eligible outright, never re-queued. Both signals are ones this unattended gate cannot produce itself, closing the self-certification gap a broader "any ratification-shaped prose" rule would have opened.

    Handing off to /source-control:babysit-prs for CI + review; this lane never merges.

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

Metadata

Metadata

Assignees

Labels

agent-ready

Type

Fields

No fields configured for Bug.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions