# T2 Stop Repair

audience: AI coding agents first.

status: DONE
task IDs: #14
source request: Stop work fails for incident `T2`; UI reports action failed and incident remains visible.

## Outcome

Restore deployed `T2` Stop work safely. Preserve incident data. Stop only exact bound incident unit. Land durable fix.

## Acceptance criteria

- Reproduce installed failure and capture backend reason.
- NEVER broad-kill. Target only server-derived exact incident unit and dispatch identity.
- Preserve `T2` record on failure.
- Focused regression passes.
- Install candidate with rollback; prove action through installed UI in real browser.
- Run affected gates, land, redeploy, and remove runtime/source drift.

## Preserved WIP

- Worktree: `/home/user/Projects/overdeck/.worktrees/fix-t2-stop`
- Branch: `wt/fix-t2-stop`
- Shared checkout unrelated edits MUST remain untouched.

## Constraints

- Follow `/od-emergency`: owner use before broad gates and Git.
- UI proof MUST use remote browser path.
- Do not delete `T2`; stop and delete are distinct actions.

## Execution steps

1. Inspect deployed collector request/error and authoritative `T2` task/unit identity.
2. Reproduce smallest failing backend seam.
3. Add regression and repair in isolated worktree.
4. Run focused test and independent safety review.
5. Install candidate atomically; prove installed stop action in browser.
6. Run affected gates; commit, guarded-land, redeploy, verify.

## Current receipt

2026-08-14: DONE. Root cause was an exact legacy failed unit without the newer dispatch environment marker. Commit `7fe457e65` added inactive/failed-only compatibility while active, conflicting, and duplicate identities still fail closed. Focused collector tests passed 36/36; independent safety review found no defect; full guarded landing gates passed; repair landed and deployed. Installed source contains the repaired checks at both activity and stop seams. After the collector restarted on installed source, the approved remote browser flow submitted Stop work for canonical T2 `4e4b7e21-8c85-490a-98bf-72ada21408d2`; T2 disappeared from the active Incidents view and authenticated lookup now returns not found, while its exact worker unit remains failed/inactive. This is expected Stop behavior: the Kanboard task is closed and historical data is preserved, not deleted.

## Next executable action

None.
