HC / FIELD BRIEF

Playbook · cases

Cases & decisions

Rules on the main playbook page exist because something broke. This page works one incident end to end — failure, diagnosis, control, measured result, operating cost, and what is still unproven — with the evidence trail, then shows where every other decision note lives.

Owner Haiyuan Cao Incident 2026-10-15 Control approved 2026-10-18 Written 2026-10-20

Case: the 2026-10-15 exec wedge — a Mac that answered but could not launch

Context

The fleet’s long jobs run on one Mac through grok-tmux-run: a tmux session, a streaming log, and a ~540-second stale watchdog (§8 launch standards). Scheduled work depends on spawning processes all day — hourly collect packs at :32, the 12-hour Field Brief at :34, evening reviews. The health signal in use was connection-level: the machine answers ListMachines, and a shell responds. No routine checked whether the Mac could still start a program.

Failure

2026-10-15, ~18:43 PT. Mac e327005d reported connected — ListMachines OK, shell OK — but newly started programs hung before running and never came back. From the on-shift collector’s episode note (vault Hunt/agent-analytics/2026-10-15-1832-agy-episode.md):

The 18:32 Agy collect filed SKIP (MAC_EXEC_HANG) and staged nothing — no prompt, no session, no pack. The day’s consolidation (vault Wiki/Daily/2026-10-15-agent-analytics.md, vault commit 2d03f7b) records the blast radius: Muse 1632 left only an .incomplete skeleton, DSH 1732 never ran, Agy 1832 hit the wedge, and the 19:32 Muse collect recovered at ~20:39 PT covering the 4.5-hour gap. The same evening a review run’s tmux server hung at ~19:55 PT; it was relaunched at 22:46, one minute after a “Mac healthy” signal at 22:45 (~/work/perm-1015/RESUME.md, per the main page’s Mac run lessons). Haiyuan reports that a restart cleared the wedge — and that the two obvious bare checks, python3 -c 'print(1)' and tmux -V, had themselves hung during it.

Diagnosis

The wedge sat in process launch: clients stuck at _dyld_start, code-signing validation unresponsive, while the machine, the shell, and already-running processes stayed healthy. Every existing health signal answered “is the Mac there?”, and the true answer was useless: the Mac was there and could not run anything new. Two gaps followed. First, no skill defined a spawn-ok check, so nothing distinguished “unreachable” from “reachable but cannot exec” — collectors filed MISS_MAC-style gaps or, worse, launched into the wedge. Second, the standard probe wrapper was itself unsafe: timeout hung during the wedge, so a naive health check would hang beside everything else.

Control added

Approved by Haiyuan 2026-10-18 11:46 PT (proposal 4 of the harness update; lock Maps/Decisions/2026-10-18-harness-update-approved-1-2-4-5-6.md, vault commit d6983a6): after any Mac trouble — a disconnect, an app restart, a hang the watchdog cannot explain — check spawn-ok before any launch, relaunch or resume. Spawn-ok means both timed probes exit 0:

/usr/bin/perl -e 'alarm 10; exec @ARGV or exit 127' python3 -c 'print(1)'
/usr/bin/perl -e 'alarm 10; exec @ARGV or exit 127' tmux -V

Exit 142 means the program hung; 127 means it could not start; a probe that does not return within about 15 seconds counts as hung. Never probe with timeout — it hung in the 10-15 wedge. On any failure: kill only your own hung probes, launch or resume nothing, record gap: mac-exec-hang as a skip receipt, and ask Haiyuan for a restart. The round-3 review amendment added that the probe must also fail on a missing program or failed exec — not only on a hang.

Where it landed: the box Mac-launch-heartbeats skill (exec-wedge row) and the tmux-backed-launches skill; the vault field-brief-source-collect and harness-lab-source-collect skills; the routine prompts for the daily CLI update, the nightly audit, and the Lab collect kick; and the main page as #spawn-ok. The same lock approved the sibling fix for the evening’s other failure (the Agy idle collect): resume-first with the recorded conversation id, parking when the old process is not confirmed gone.

Measured result after

What it costs to operate

Two probes, each seconds (worst case the ~15 s hang window), run by hand before any launch, relaunch or resume after Mac trouble — plus one skip receipt line when they fail. The controls inventory rates it report-only: it is not wired into the launcher, so discipline, not code, keeps it in the path. The review cost is already paid (three triage rounds on the wording, including the false-pass catch). The resume-first recovery path it gates still waits on one manual verification run before kicks may use it.

What remains unproven

Where the decision notes live

Every dated rule on the main page cites its lock inline as Maps/Decisions/YYYY-MM-DD-slug.md in the vault; the vault folder is the canonical store, and the page is the readable index over it. Entry points by topic:

TopicMain-page sectionExample locks cited there
Memory, provenance, recall§4 vault2026-10-13-memory-write-consolidate-recall-apply · 2026-10-05-memory-provenance-cards · 2026-10-08-shared-memory-admission-rule
Review method & rounds§5 EM loop2026-10-06-reviewer-rule-docs-vs-code · 2026-10-20-review-convergence · 2026-10-09-review-posts-blockers-only
Field Brief cadence & seats§6 pipeline2026-10-07-field-brief-12h-cadence · 2026-10-13-muse-field-brief-writer · 2026-09-30-six-hour-brief-extra-seats
Mac launch & recovery§8 launch2026-10-18-harness-update-approved-1-2-4-5-6 · 2026-10-08-watchdog-resume-safety-and-review-breaker · 2026-09-05-no-exit-while-waiting
Routing layer§13 Jev2026-09-20-jev-decision-layer · 2026-09-27-lab-keeps-folded-into-playbook
Proof, gates, kill machinery§16 KEEPs2026-09-23-0xgenai-three-run-kill-review-gyr · 2026-09-25-decision-queue-kill-conditions-receipts · 2026-10-04-nine-link-gap-ideas-added
Rule ↔ enforcer statuscontrols inventoryMaps/Contracts/rule-enforcers.md (73 rules, checked 2026-10-20)
Extending the team§17 extend2026-10-05-five-field-role-cards · 2026-10-04-nine-link-gap-ideas-added

A planned example of the same evidence discipline, held — not live: a fix to the usage dashboard’s routine fire proxy pins the locked 12-hour Field Brief schedule and raises a visible CONFIG DRIFT flag when a month-old routines dump disagrees with the 2026-10-07 lock — observed source versus current config, side by side, never silently merged. The edit went into a hub copy of collect_and_build.py that is not the live builder, so porting it to the live one waits for Haiyuan’s go.