agent-orchestrator/backend/internal
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
..
domain feat(decide): populate open-PR Evidence; document decision zero-value contract 2026-05-27 00:38:34 +05:30
lifecycle fix(session): harden teardown/restore safety + drop dead reaction flag 2026-05-27 14:21:47 +05:30
ports fix(session): harden teardown/restore safety + drop dead reaction flag 2026-05-27 14:21:47 +05:30
session fix(session): harden teardown/restore safety + drop dead reaction flag 2026-05-27 14:21:47 +05:30