agent-orchestrator/backend/internal/lifecycle
harshitsinghbhandari f03c7c8c88 fix(session): harden teardown/restore safety + drop dead reaction flag
Address PR #2 Copilot review comments on the merged LCM+SM lane:

- session: validate runtime handle + workspace path before Kill/Cleanup
  teardown; refuse (ErrIncompleteTeardownMetadata) or skip rather than
  hand empty args to a real adapter's Destroy (unsafe delete).
- session: reject Restore unless the session is terminal
  (ErrNotRestorable) so a live session can't spawn a duplicate
  runtime/workspace.
- ports: document SpawnConfig.OpenTerminal as reserved/not yet honored.
- lifecycle: remove the unread reactionConfig.auto field; note
  approved-and-green is notify-only (human decides to merge).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 14:21:47 +05:30
..
decide_bridge.go feat(lifecycle): activity resolves detecting + review polish 2026-05-27 01:49:28 +05:30
fakes_test.go feat(session): implement Session Manager (spawn/kill/list/get/send/restore/cleanup) 2026-05-27 13:43:40 +05:30
manager.go fix(lifecycle): kill clears trackers, send-failure budget, inclusive escalation (Copilot review) 2026-05-27 13:11:00 +05:30
manager_test.go feat(lifecycle): ACT layer — reaction table + escalation engine (split B) 2026-05-27 02:17:51 +05:30
reactions.go fix(session): harden teardown/restore safety + drop dead reaction flag 2026-05-27 14:21:47 +05:30
reactions_test.go fix(lifecycle): kill clears trackers, send-failure budget, inclusive escalation (Copilot review) 2026-05-27 13:11:00 +05:30