credit-stall-mid-orchestration-revive-collisionlisted
Install: claude install-skill wan-huiyan/agent-traffic-control
# Credit-stall mid-orchestration: revive-collision recovery
## Problem
You're orchestrating N parallel subagents (Task tool with `run_in_background: true`),
each working on independent tracks (e.g., one PR per track). Mid-run, an Anthropic
billing/credit failure or other transient harness outage hits — all in-flight subagents
freeze simultaneously. The user fixes billing, reports back, and asks you to continue.
**The trap:** stalled subagents are NOT dead — they're suspended at the harness layer.
When API access is restored, the harness can auto-resume them from the exact tool-call
boundary they froze on. If you naively relaunch "resume" agents to pick up where you
think the originals stopped, you end up with TWO agents racing on:
- The same git branch (one commits + pushes, the other rebases on top of stale state)
- The same PR (duplicate review comments, conflicting label changes)
- The same files (one Edit lands, then the other Edit overwrites)
Symptoms when this happens: PR has two "no issues found" review comments, force-push
storms as both agents rebase, agent A reports "PR already merged" while agent B is
still polling CI for that same PR.
**Severity ladder** (observed in an earlier session, 2026-05-08, all three originals revived ~2hr
post-stall):
1. **Best case (Track A original)**: revives mid-implementation, notices the merged
PR via subsequent harness signals, sends a status update, terminates. Resume agent
had pivoted to value-add (PR #571) under a s