agent-orchestrator/backend/internal/session
harshitsinghbhandari 4c331d907e test(session): cover spawn orphan-to-errored route and restore runtime rollback (review follow-ups)
Adds an injectable OnSpawnCompleted failure to the recording LCM and two tests:
- Spawn: when OnSpawnCompleted fails, the seeded record is parked terminal/errored
  (via OnKillRequested(KillError)) and runtime+workspace are torn down.
- Restore: when OnSpawnCompleted fails post-create, the new runtime is destroyed
  while the workspace is preserved.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 14:00:44 +05:30
..
fakes_test.go test(session): cover spawn orphan-to-errored route and restore runtime rollback (review follow-ups) 2026-05-27 14:00:44 +05:30
manager.go fix(session): harden Restore — require agent session id, roll back runtime on post-create failure (PR #7 review) 2026-05-27 13:50:24 +05:30
manager_test.go test(session): cover spawn orphan-to-errored route and restore runtime rollback (review follow-ups) 2026-05-27 14:00:44 +05:30