Other

/monitor-law-gate

Mechanical monitor-law gate: assert a persistent monitor is armed on the ACTIVE collab channel with a heartbeat marker. Triggers: lead/orc sprint, spawn workers, 'back to silent'.

$ golems-cli skills install monitor-law-gate

Updated 1 month ago

Fleet law: canon #7 owns claim/guard/DONE/harvest-close. This skill is the deterministic monitor/collab enforcement gate.

What It Is

A deterministic detector over a lead/orchestrator transcript: when there is in-flight work (spawned workers) and an active collab channel, it asserts a persistent monitor is armed ON the active channel and keyed to a real heartbeat marker (### / ORC-RECEIPT: / @name / BLOCKED). The pinned RED/GREEN fixtures ARE the replayable gate (R-003/R-014 pattern).

The detector must not accept a prose claim like monitor=X as proof. When heartbeat or registry ground truth is available, the claimed monitor id is checked against it: stale heartbeat, missing id, or a live heartbeat on the wrong collab file is a FLAG. Same-turn Monitor/tail -f evidence still proves the monitor shape; registry/heartbeat evidence proves liveness.

Registry-Polling Doctrine (2026-07-02)

After three same-day monitor-death cascades (model flips and app restarts left registry agents inbox_monitor_not_alive while completed workers sat unharvested), worker-completion watching must be registry-polling, not session-tail based.

  • Completion detection polls durable ground truth: list_agents state=done and/or registry state files.
  • Session-scoped inbox heartbeats and tail monitors are not completion detectors; they die with model flips and app restarts, leaving the lead idle-and-blind while believing it is armed.
  • Persistent collab monitors remain required for inbound coordination on the active channel. They catch new posts, blockers, and receipts, but they do not replace registry polling for worker completion.
  • A lane that is stood down with disclosure and acknowledgement, with no active sprint and no live workers remaining in the registry, is allowed to have monitor=none.

Violation Taxonomy

CodeWhat it catches
MONITOR_ABSENTspawned workers + active channel but NO monitor/watch armed (the "back to silent" no-op)
MONITOR_WRONG_CHANNELa monitor armed on a side/Q&A collab while the squad posts to the active channel
MONITOR_NO_MARKERa monitor on the right channel but keyed to no heartbeat marker — it never fires
MONITOR_NOT_PERSISTENTa one-shot monitor or bounded timeout tail -f is claimed as the go-silent watch
MONITOR_STALE_HEARTBEATmonitor=X is absent from ground truth or has no fresh heartbeat in its window

GREEN: a persistent Monitor (or tail -f … | grep backstop) on the active channel keyed to ^### |ORC-RECEIPT:|@<name>|BLOCKED with live heartbeat/registry proof when a monitor id is claimed; or no in-flight lead/orc work (N/A). Worker seats, monitor-policy discussion, and disclosed/acked stand-down states are false-positive guards.