Mode: omp (Oh My Pi) extension background wake.
When this session owns supervision and away mode is not active:
- Drain first with
bin/fm-wake-drain.sh. After handling all emitted wakes and reconciling open decisions and unread status lines, run the exact--ack-throughcommand printed asWAKE_ACK_REQUIRED; until then the work remains durable for idempotent re-handling after interruption. - Confirm the omp primary auto-loaded both project extensions from
.omp/extensions/; omp has no project-trust gate, so a plainompstarted with this home as its working directory loads them with no dialog. Ifbin/fm-session-start.shreported the omp extensions as not loaded, FM_OMP_RESTART_LONG. - Initial process cycle only: make the one required
fm_watch_arm_ompcall; if startup already owned the fleet lock, this is an ownership-based no-op. Use/fm-watch-arm-omponly as a human-entered fallback. Never runbin/fm-watch-arm.shthrough omp's bash tool because that foreground arm can wedge the agent and bypasses extension-owned cleanup. - If the extension says no live session holds the lock, run
bin/fm-session-start.shto reclaim the session lock, then callfm_watch_arm_ompagain. - The extension starts
bin/fm-watch-arm.sh --restart, keeps the child attached to the live omp process, and owns every later successor launch. - Ordinary same-process session replacement (
/new,/resume,/fork) retires only the prior generation; when the replacement owns the fleet lock, itssession_startarms the new generation without a model turn or anotherfm_watch_arm_ompcall. The generation-owner contract and in-flight actionable-close handoff live in.omp/extensions/fm-primary-omp-watch.ts; because omp reports no shutdown reason, every shutdown with a pending actionable close persists the handoff, and the next owningsession_startin any process replays it. - After an actionable child close, the extension rechecks session-lock ownership and verifies one successor before it delivers the follow-up wake; its bounded fallback is defined in
docs/watcher-continuity.md. - Ordinary work, turn completion, and ordinary signal, stale, check, heartbeat, or other wake handling: do not call
fm_watch_arm_ompagain because continuity is extension-owned rather than model-memory-owned. - An unexpected child close enters bounded exponential retry, and an exhausted retry or lost session lock is surfaced as a watcher failure instead of disappearing.
- Missing, failed, or unhealthy cycle only: if a later notification explicitly reports one of those repair conditions, drain queued wakes, inspect the failure text, call
fm_watch_arm_omp, and FM_OMP_RESTART_SHORT if the extensions are not loaded. A redundant call while the extension owns an arm child or scheduled retry is an ownership-basedwatcher: unchangedno-op, not an independent health claim. - Never use shell
&for watcher supervision. The arm mechanism above is extension-owned, not a model tool call, but a manual recovery probe that backgrounds, pipes, or bundles the arm is denied automatically by the pre-tool seatbelt (bin/fm-arm-pretool-check.sh, wired into the turn-end guard extension at__FM_OMP_TURNEND_EXT__).
The turn-end guard on omp is structural, not advisory: __FM_OMP_TURNEND_EXT__ answers omp's blocking session_stop hook, and when bin/fm-turnend-guard.sh returns 2 it forces one continuation carrying the guard text, bounded to one per turn by the stop_hook_active flag omp sets on the continuation's own stop.
An interrupted turn never raises session_stop, so a supervisor-initiated interrupt is not guarded; bin/fm-control.sh owns that postcondition.
The Pi supervision branch (docs/pi-supervision-branch.md) is Pi's in-process conversation and does not run on omp: without the supervision host every actionable wake is delivered to this conversation and the lease, outcome-store, and fm_branch_processed contracts do not apply here, while a home with config/supervision-host and no config/supervision-host-off runs the host's away session (supervision-host.md).
The turn-end guard extension lives at __FM_OMP_TURNEND_EXT__.
The watcher extension lives at __FM_OMP_EXT__.
Both are tracked, project-local .omp/extensions/*.ts files that omp auto-discovers from this home with no trust dialog; bin/fm-session-start.sh reports when the running omp session has not loaded both required extensions.