[ORCH-118] Resource cleanup #253
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Clean up resources when agent terminates.
Acceptance Criteria
Implementation Summary
Created CleanupService as a dedicated, reusable service for agent resource cleanup.
Files Created/Modified
Key Features
Test Coverage
All 25 tests pass (10 CleanupService, 8 KillswitchService, 7 Controller)
Cleanup order: Docker -> Git worktree -> Valkey state -> Event emission