fix: triage agent must clean up throwaway debug branch on exit/crash #341
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The triage agent creates a throwaway branch for debug instrumentation (console.log, verbose logging). If the agent crashes or times out, the branch is left behind polluting the repo.
Fix
Add a trap in the triage entrypoint path (or the formula runner) that deletes the throwaway branch on any exit:
Same pattern as the stack lock trap already in
entrypoint-reproduce.sh.Files
docker/reproduce/entrypoint-reproduce.sh— add branch cleanup to the exit trapformulas/triage.toml— instruct Claude to register the cleanup in its first step