Repository navigation
Description
What happened
Issue #48 was filed by the retro agent with ready-for-triage. Triage (run 42697997651, agents@v0.54.0) completed and applied bug, dependencies, ready-to-code. ready-for-triage was never removed, and the issue was closed by PR #49 still carrying bug, ready-for-triage, ready-to-code, dependencies.
This happens on every agent-triaged issue in shairevivo/react-shopping-cart: #6 (ready-for-triage, ready-to-code), #7 (triaged, ready-for-triage), #8 (ready-for-triage, ready-to-code), #36 (open; triaged, ready-for-triage), and #48. Human-triaged issues in the same repo do not have the label.
In scripts/post-triage.sh (v0.54.0 and main), each terminal action resets its own control labels (ready-to-code, needs-info, pr-open, blocked), and triaged is cleared up front. ready-for-triage only appears where the script adds it to newly created/split issues and in MANDATORY_LABELS. No path removes it after triage runs. Its own label description is "Triggers triage agent dispatch", which suggests it is meant as a one-shot trigger, not a persistent state label.
What could go better
When the trigger label stays on the issue:
- The label state contradicts itself. An open issue can show both
triagedandready-for-triage(feat(triage): add effort-based gating via effort-estimation skill #36), and filters likelabel:ready-for-triagereturn issues that are already triaged. That makes the backlog harder to read for maintainers and for agents that use labels as state (e.g. prioritize/nextwork-style tooling). - Adding the label again does not re-trigger triage. GitHub only emits
labeledwhen the label is absent. A maintainer who wants a re-triage has to know to remove the label and add it back.
Confidence: high that the label persists (seen on 5/5 agent-triaged issues and confirmed in the script source). Medium that leaving it is unintentional. I found no ADR or doc that says ready-for-triage should persist, but a maintainer may have a reason I can't see, such as using it as an "in the fullsend pipeline" marker. Impact is low: this is legibility and re-trigger ergonomics, not a correctness failure in the code/review pipeline.
One possible cost: removing the label emits an unlabeled event, which may allocate a no-op routing run in the dispatch shim. The shim-filtering work in fullsend-ai/fullsend#6244 / #7359 already covers that kind of event.
Proposed change
In scripts/post-triage.sh (and the GitLab/Jira equivalents via the *-triage-ops.lib.sh tracker helpers), call tracker_remove_label "ready-for-triage" once on the triaged issue after the triage result has been validated. Place it next to the existing up-front tracker_remove_label "triaged" reset, or apply it in every terminal action branch (ready-to-code, needs-info, blocked, duplicate/close, in-progress, triaged). Do this before the DEFERRED_LABEL is applied, so the ready-to-code event still fires last (see the #1752 ordering comment).
Leave the existing logic that adds ready-for-triage to newly created/split issues unchanged. Add a case to scripts/post-triage-test.sh asserting the label is removed for at least the ready-to-code and needs-info actions. Update docs/triage.md to state that ready-for-triage is consumed when a run finishes, and that adding it again triggers a fresh triage.
If maintainers decide persistence is intentional, the alternative is a one-line note in docs/triage.md explaining that, and how to re-trigger (remove and re-add, or /fs-triage).
Validation criteria
post-triage-test.shcovers label removal for at least two terminal actions and passes.- After the change ships in an agents release, the next 5 agent-triaged issues across repos using that release no longer have
ready-for-triageonce triage posts its result. - Adding
ready-for-triageto an already-triaged issue dispatches a new triage run without first removing the label by hand. - No change in
ready-to-codedispatch reliability, i.e. code dispatch still fires for ready-to-code outcomes (the CI should block harness changes on fullsend lint SeverityError #1752 ordering still holds).
Related issues checked
Searched: post-triage ready-for-triage (agents, fullsend, source); remove ready-for-triage (agents, fullsend, source); ready-for-triage stale / ready-for-triage after triage (agents, fullsend); triage trigger label cleared / consume trigger label (agents, fullsend, source); ready-for-triage label not removed (agents, fullsend, source)
Considered: #1447, #1304, #1682, fullsend-ai/fullsend#5035, fullsend-ai/fullsend#6244, fullsend-ai/fullsend#5909
#1447: clears stale status labels (e.g. blocked) on issue close, not the triage trigger label after a run. #1304: triage-start reset of PR-scoped labels on a linked PR; different label set. #1682: case-sensitivity of the control-label guard; unrelated. fullsend-ai/fullsend#5035: reduce total label count; does not address the trigger-label lifecycle. fullsend-ai/fullsend#6244: shim label filtering; relevant only to the unlabeled-event cost. fullsend-ai/fullsend#5909: cross-repo retro issues missing ready-for-triage; the opposite case (label never added).
Generated by retro agent from fullsend-ai/react-shopping-cart#49
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity