From 748fa739318876c16c5b7e7a1dd0a43bbc380031 Mon Sep 17 00:00:00 2001 From: gastown/crew/max Date: Wed, 21 Jan 2026 21:20:45 -0800 Subject: [PATCH] chore(formula): trim verbose witness-patrol description Remove redundant routing rules and health check documentation that was duplicating information available elsewhere. Co-Authored-By: Claude Opus 4.5 --- internal/formula/formulas/mol-witness-patrol.formula.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/formula/formulas/mol-witness-patrol.formula.toml b/internal/formula/formulas/mol-witness-patrol.formula.toml index 5834a9d4..12c612b9 100644 --- a/internal/formula/formulas/mol-witness-patrol.formula.toml +++ b/internal/formula/formulas/mol-witness-patrol.formula.toml @@ -38,7 +38,7 @@ needs = ['check-timer-gates'] title = 'Check if active swarm is complete' [[steps]] -description = "Send WITNESS_PING to Deacon for second-order monitoring.\n\nThe Witness fleet collectively monitors Deacon health - this prevents the\n\"who watches the watchers\" problem. If Deacon dies, Witnesses detect it.\n\n## CRITICAL: Routing Rules\n\n**WITNESS_PING always goes to `deacon/` - NEVER to `mayor/`.**\n\nMayor only receives ALERT messages (Step 3), never raw WITNESS_PING messages.\n\n## What \"Healthy\" Looks Like\n\n- Deacon session exists → healthy\n- Deacon idle at prompt → healthy (NORMAL)\n- Deacon actively running → healthy\n\n**Step 1: Send ping**\n```bash\ngt mail send deacon/ -s \"WITNESS_PING \" -m \"Rig: \nTimestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)\nPatrol: \"\n```\n\n**Step 2: Check Deacon health**\n```bash\n# Check Deacon agent bead for last_activity\nbd list --type=agent --json | jq '.[] | select(.description | contains(\"deacon\"))'\n```\n\nLook at the `last_activity` timestamp. If stale (>5 minutes since last update):\n- Deacon may be dead or stuck\n\n**Step 3: Escalate if needed**\n```bash\n# If Deacon appears down\ngt mail send mayor/ -s \"ALERT: Deacon appears unresponsive\" -m \"No Deacon activity for >5 minutes.\nLast seen: \nWitness: /witness\"\n```\n\nNote: Multiple Witnesses may send this alert. Mayor should handle deduplication." +description = "Send WITNESS_PING to Deacon for second-order monitoring.\n\nThe Witness fleet collectively monitors Deacon health - this prevents the\n\"who watches the watchers\" problem. If Deacon dies, Witnesses detect it.\n\n**Step 1: Send ping**\n```bash\ngt mail send deacon/ -s \"WITNESS_PING \" -m \"Rig: \nTimestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)\nPatrol: \"\n```\n\n**Step 2: Check Deacon health**\n```bash\n# Check Deacon agent bead for last_activity\nbd list --type=agent --json | jq '.[] | select(.description | contains(\"deacon\"))'\n```\n\nLook at the `last_activity` timestamp. If stale (>5 minutes since last update):\n- Deacon may be dead or stuck\n\n**Step 3: Escalate if needed**\n```bash\n# If Deacon appears down\ngt mail send mayor/ -s \"ALERT: Deacon appears unresponsive\" -m \"No Deacon activity for >5 minutes.\nLast seen: \nWitness: /witness\"\n```\n\nNote: Multiple Witnesses may send this alert. Mayor should handle deduplication." id = 'ping-deacon' needs = ['check-swarm-completion'] title = 'Ping Deacon for health check'