synod-cancellisted
Install: claude install-skill quantsquirrel/claude-synod-debate
# Cancel Synod Session
## Action
1. Find active session (status != "complete" in `${SYNOD_BASE}/*/status.json`)
- `SYNOD_BASE="${SYNOD_SESSION_DIR:-.omc/synod}"` — matches the real session root used by phase0-setup (`SESSION_DIR=".omc/synod/${SESSION_ID}"`) and synod-resume (`ls -td .omc/synod/synod-*`).
- Locate the most-recent non-complete session:
```bash
SYNOD_BASE="${SYNOD_SESSION_DIR:-.omc/synod}"
ACTIVE_SESSION=""
for dir in $(ls -td "${SYNOD_BASE}"/synod-* 2>/dev/null); do
status=$(python3 -c "import json,sys; d=json.load(open('${dir}/status.json')); print(d.get('status',''))" 2>/dev/null)
if [[ "$status" != "complete" && "$status" != "cancelled" && -n "$status" ]]; then
ACTIVE_SESSION="$dir"
break
fi
done
```
2. Kill worker processes scoped to the active session's tmp directory.
Phase 1 invokes CLIs as `run_cli "$GEMINI_CLI" ... < "${SESSION_DIR}/tmp/gemini-prompt.txt"` — the word "synod" never appears in their argv, so patterns like `pkill -f "gemini-3.*synod"` are no-ops. Instead, target processes whose command line references the session-specific tmp path:
```bash
if [[ -n "$ACTIVE_SESSION" ]]; then
SESSION_TMP="${ACTIVE_SESSION}/tmp"
# Kill provider CLI processes reading from this session's tmp files.
# Scope the match to the session path to avoid killing unrelated user processes.
pkill -f "gemini-3.*${SESSION_TMP}" 2>/dev/null || true
pkill -f "openai-cl