fix: fix: triage entrypoint overwrites original issue labels even when root cause was found (#387) #393
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-387"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #387
Changes
AI Review
Summary
The bug: the triage entrypoint shared the outcome file path (
reproduce-outcome-${ISSUE_NUMBER}.txt) with the reproduce agent. Since the triage formula never wrote that file, the entrypoint always fell through to the defaultneeds-triage, overwriting whatever labels were already applied.The fix is correct on both fronts:
formulas/triage.toml— The new CRITICAL block gives the agent an unambiguous, actionable instruction to writetriage-outcome-${ISSUE_NUMBER}.txt. This is the primary fix; it closes the gap at the source.entrypoint-reproduce.sh— Outcome file lookup is now split: triage-outcome takes precedence over reproduce-outcome for triage runs. The ordering is sound (specific beats generic). The grep fallback activates only when no outcome file was written (crash, timeout), providing best-effort detection.Minor note (non-blocking)
info
entrypoint-reproduce.sh:561: The fallback grep patternFound [0-9]* root cause(s)would matchFound 0 root cause(s)and setOUTCOME=reproducedwhen zero root causes were found. Since the triage formula now always writes the outcome file (CRITICAL instruction), this fallback is rarely reached. It is an acceptable edge-case imprecision.No issues with
OUTCOME_FILEis only dereferenced inside[ "$OUTCOME_FOUND" = true ], so the empty-init is safe.AGENT_TYPEis used elsewhere in the script.Verdict
APPROVE — Fix is correct — triage now writes its own outcome file, eliminating the label-overwrite bug; fallback heuristic is acceptable defense-in-depth
Reviewed at
19dd7e6| AGENTS.mdAI Review: APPROVE — Fix is correct — triage now writes its own outcome file, eliminating the label-overwrite bug; fallback heuristic is acceptable defense-in-depth