[ORCH-008] Kill Authority Implementation #114
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?
Safety Critical: Kill Authority
Mosaic Stack MUST retain the ability to terminate any Orchestrator service (`apps/orchestrator/`) operation.
If the Orchestrator swarm goes rogue, Mosaic Stack can terminate everything.
Endpoints
Requirements
Hard Termination
• No graceful shutdown — immediate kill signal
• Orchestrator must honor kill within seconds
• Timeout + force if Orchestrator unresponsive
Audit Trail
All kill operations logged with:
[ ] Who initiated the kill
[ ] What was terminated (task IDs, session IDs)
[ ] Why (required reason field)
[ ] Timestamp
[ ] Task state at termination
UI Controls
[ ] Kill button per task (confirmation required)
[ ] Kill All button in workspace admin panel
[ ] Emergency Stop in super admin panel
[ ] Visual indicator for killed tasks
RBAC
• Workspace members can kill their own tasks
• Workspace admins can kill any task in workspace
• Super admin can emergency stop everything
Deliverables
[ ] Kill endpoint implementations
[ ] RBAC enforcement
[ ] Audit logging
[ ] UI integration (see #101)
[ ] Orchestrator kill signal implementation (see #102)
Dependencies
• #99 Task Dispatcher Service
• #102 Gateway Integration
Related
• #95 Agent Orchestration EPIC
• #101 Task Progress UI
• ORCH-117 (Killswitch implementation in Orchestrator)