trail-boss/daemon
jedarden 59096c49d6 feat(reconcile): implement stuck-direction reconcile for dropped Stop events
- Add reconcileStuckDirection() to scan transcripts and recover sessions that became stuck while daemon was down
- Add paneExists() to verify tmux pane still exists before enqueuing
- Add detectStuckFromTranscriptTail() to detect stuck state from transcript tail
- Add getSessionsNotInQueue() to DB layer for finding non-queued sessions
- Call reconcileStuckDirection() on daemon startup to recover dropped events
- Remove duplicate AS-4 test code

Acceptance criteria:
- Extended test-walking-skeleton.sh AS-4 to full plan scenario (daemon restart with transcript tail scan)
- All AS-1..AS-7 tests pass
- Session appears in /queue within one sweep after daemon restart

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 08:45:26 -04:00
..
claude-adapter.ts feat(trail-boss): commit phase 3 daemon code (previously untracked) 2026-05-25 22:57:51 -04:00
db.ts feat(reconcile): implement stuck-direction reconcile for dropped Stop events 2026-07-02 08:45:26 -04:00
index.ts feat(reconcile): implement stuck-direction reconcile for dropped Stop events 2026-07-02 08:45:26 -04:00
reconcile.ts feat(reconcile): implement stuck-direction reconcile for dropped Stop events 2026-07-02 08:45:26 -04:00
schema.sql feat(trail-boss): commit phase 3 daemon code (previously untracked) 2026-05-25 22:57:51 -04:00
types.ts feat(trail-boss): commit phase 3 daemon code (previously untracked) 2026-05-25 22:57:51 -04:00