Problem
No mechanism to cancel a task after dispatch. Once claude -p is running, the only option is kill <pid> manually.
Expected
Should: find the process (from slot tracking), send SIGTERM, wait 5s, SIGKILL if needed, move to done/ with status=cancelled, log cancellation event in audit.jsonl.
Context
During adjutant build, 3 parallel agents were dispatched. Wanted to cancel 2 after realizing they'd conflict, but had no mechanism.
Problem
No mechanism to cancel a task after dispatch. Once
claude -pis running, the only option iskill <pid>manually.Expected
Should: find the process (from slot tracking), send SIGTERM, wait 5s, SIGKILL if needed, move to done/ with status=cancelled, log cancellation event in audit.jsonl.
Context
During adjutant build, 3 parallel agents were dispatched. Wanted to cancel 2 after realizing they'd conflict, but had no mechanism.