Skip to content

fix(bin): refuse away mode without a verifiable operator session - #8022

Open
kesslerio wants to merge 9 commits into
kunchenguid:mainfrom
kesslerio:fix/7168-afk-verifiable-operator-session
Open

kesslerio wants to merge 9 commits into
kunchenguid:mainfrom
kesslerio:fix/7168-afk-verifiable-operator-session

Conversation

@kesslerio

@kesslerio kesslerio commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

  • bin/fm-afk-launch.sh now resolves the operator session (target, backend, supported-backend check, and endpoint existence) before it writes state/.afk, on both start and start-native, so a refusal leaves existing lifecycle files untouched instead of reporting an armed window that can deliver nothing.
  • Moved the supported supervisor backend list and its predicate into bin/fm-supervisor-target-lib.sh, and taught supervisor discovery to recognize ORCA_TERMINAL_HANDLE after every innermost signal, so an Orca-hosted captain gets the named unsupported-backend refusal (daemon startup and launcher) rather than falling through to the firstmate:0 tmux fallback.
  • Updated docs (architecture.md, configuration.md, orca-backend.md, t3code-backend.md, tern-backend.md, verification/runtime-backends.md) to point at the single refusal/discovery owner, and extended tests/fm-daemon.test.sh, tests/fm-afk-launch.test.sh, tests/fm-backend-t3code.test.sh, and tests/lib.sh with discovery-precedence, pre-arm refusal, and Orca-marker isolation cases.

Risk Assessment

✅ Low: The changes preserve the required discovery precedence and enforce launcher refusal before arming, with no material defects found in the source review.

Testing

Both behaviour owners ran green (tests/fm-afk-launch.test.sh exit=0 with the real herdr e2e and tmux e2e plus the new refusal units; tests/fm-daemon.test.sh exit=0 including the hc and Orca discovery units), and tests/fm-afk-return.test.sh stayed green. The touched t3code restart unit also passed; that suite's single failure is the Codex configuration guard the intent already records as environmental on this host. I then drove the real product in a disposable marked lab home on its own tmux socket: away entry refused a session-less host, an Orca-hosted captain, an hc-hosted captain, and mistyped/unresolvable endpoints before writing state/.afk, with the daemon giving the same named refusals at startup, while a real live tmux pane passed the endpoint probe, armed, launched the daemon (log target=%0, backend=tmux), and stopped cleanly; a tmux pane nested in Orca kept its own transport. Only the T3-thread-inside-Orca precedence could not be driven live because no T3 Code instance or config/t3code-token credential exists here; it is asserted by the passing daemon discovery units. The lab was torn down in this same turn.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
Away entry (start and start-native) on a host whose discovery names no operator session refuses with the named message and writes no state/.afk ✅ pass live live-away-refusal-and-arming.txt steps A1/A2: could not resolve a verifiable operator session ... refusing to arm away mode, rc=1, state afk=ABSENT terminal=ABSENT, posture record unchanged
An Orca-hosted captain is recognized by its ORCA_TERMINAL_HANDLE and refused by name at both away entry paths before arming ✅ pass live live-away-refusal-and-arming.txt steps B1/B2: away supervision does not support supervisor backend 'orca' yet ...; refusing to arm away mode, rc=1, no .afk/.afk-daemon-terminal
An hc (Herdr Core) operator session - main's auto-detection - is resolved and refused by name at the launcher and by the daemon at startup ✅ pass live live-away-refusal-and-arming.txt steps C1/C2 (does not support supervisor backend 'hc') and drive3 (error: away-mode daemon does not support supervisor backend 'hc', log `startup failed: unsupport…
A stale or mistyped supervisor endpoint is refused by the real backend probe before arming, for both entry paths ✅ pass live live-away-refusal-and-arming.txt steps D1 (supervisor target 'no-such-session:0' does not resolve to a tmux endpoint) and D2 (%99999), both rc=1 with no .afk
start-native against a real live tmux pane passes the endpoint probe, arms away mode, records the native terminal shape, and stop clears it ✅ pass live live-away-refusal-and-arming.txt E1/E2: rc=0, afk=away terminal=none - native, then stop archived the record and cleared state
start (daemon entry) against a real live tmux pane passes the probe, launches the supervising daemon against that pane, and stop tears the daemon session down ✅ pass live live-away-refusal-and-arming.txt drive2 F1/F2: daemon launched in detached tmux session 'fm-afk-daemon-...', supervising %0, record tmux fm-afk-daemon-..., daemon log `target=%0; target_source=FM_…
A real herdr captain endpoint is accepted by the endpoint probe; the daemon runs in a separate non-visible herdr workspace and stop removes the workspace and record ✅ pass live tests/fm-afk-launch.test.sh ok - herdr e2e: ... (7 assertions, probe seam cleared inside e2e_herdr), full log in fm-afk-launch-test.log, exit=0
A tmux pane nested inside an Orca terminal keeps its own transport, so away mode arms against the pane instead of refusing orca ✅ pass live live-away-refusal-and-arming.txt drive2 G1: ORCA_TERMINAL_HANDLE=term_live123 bin/fm-afk-launch.sh start-native inside the tmux pane armed (rc=0, afk=away, terminal=none - native); discovery probe `…
Daemon startup refuses an unsupported backend loudly with its source, instead of injecting into the firstmate:0 tmux fallback ✅ pass live live-away-refusal-and-arming.txt step H: rc=1, error: away-mode daemon does not support supervisor backend 'orca' yet, log `startup failed: unsupported supervisor backend 'orca' (source=ORCA_TERMINA…
An explicitly selected live T3 thread stays the operator session inside an Orca-hosted captain (T3 discovery 4d outranks Orca 4e) ⏸️ untested no Driving it live needs a running T3 Code instance with one live thread for this home plus a config/t3code-token credential (and explicit t3code selection) so the real adapter's cwd match returns that t…
Evidence: tests/fm-afk-launch.test.sh full run (exit=0, herdr + tmux e2e live)

Source: tests/fm-afk-launch.test.sh full run (exit=0, herdr + tmux e2e live)

FM_TEST_BEGIN 2026-11-02T08:31:46Z tests/fm-afk-launch.test.sh family=real-herdr-gated expected_gate_skip=herdr
ok - clear-stale: removes escalations buffer, sidecar, wedge marker, and unknown-wake acknowledgements
ok - clear-stale: leaves the durable wake-queue intact (no pending work dropped)
ok - enter: one call writes the record with the words, expected return, and spend cap, reads it back without asking for a go, and launches no daemon
ok - enter: the retired --grant flag is refused by name and leaves the standing record alone
ok - enter: refuses while the prior return catch-up is pending
ok - propose: the retired wait-for-go step is refused by name, writes nothing, and releases the launcher lock
ok - confirm: the retired wait-for-go step is refused by name, writes nothing, and releases the launcher lock
ok - pi: start refuses to launch the daemon and writes no state
ok - pi: start-native refuses to prepare a daemon
ok - pi-signed: start refuses to launch the daemon and writes no state
ok - pi-signed: start-native refuses to prepare a daemon
ok - FM_TEST_HARNESS seam is inert without the test marker
ok - pi enter stop: reports that no daemon terminal was running
ok - daemon entry: no daemon lifecycle starts without the away-posture record
ok - daemon entry: enter then start-native run back to back with no confirmation between them
ok - native entry: no verifiable operator session refuses before the armed flag, and leaves the posture record alone
ok - native entry: a supported operator session still records the existing 'none - native' terminal shape
ok - start refuses an unresolvable supervisor target before arming
ok - start-native refuses an unresolvable supervisor target before arming
ok - native entry: a refused refresh preserves the existing armed flag and stale escalation artifacts byte-for-byte
ok - native entry: an Orca operator session is recognized and refused by name before the armed flag
ok - daemon entry: start refuses an Orca operator session by name too, before arming
ok - failed start: preserves the posture record enter wrote
ok - stop: clears the away flag and archives the posture record under its entry time
ok - launcher paths: relative home and state ignore CDPATH before daemon command construction
ok - launcher paths: absolute symlink spellings are preserved
ok - launcher paths: unresolved relative FM_HOME fails loudly
ok - launcher paths: unresolved relative FM_STATE_OVERRIDE fails loudly
ok - refresh: daemon already alive - stale artifacts preserved (current session's buffer kept)
ok - mode: a fresh entry with FM_AFK_MODE=quiet writes quiet
ok - mode: a fresh entry with FM_AFK_MODE unset defaults to away
ok - mode: a bare refresh (FM_AFK_MODE unset) of an already-running quiet daemon preserves quiet, never resets to away
ok - start: an unset-mode quiet refresh preserves the quiet record and flag
ok - start: /afk over a running quiet daemon refreshes the flag to away
ok - start-native: an unset-mode quiet refresh preserves the quiet record and flag
ok - start-native: /afk over a running quiet daemon refreshes the flag to away
ok - mode: an empty (legacy pre-mode) flag reads as away
ok - mode: a bare-epoch-timestamp (legacy pre-mode) flag reads as away
ok - mode: unrecognized content falls back to away
ok - mode: a missing flag reads as away
ok - stop-ordering: daemon SIGTERM'd while .afk still present (flush is not a no-op)
ok - stop-ordering: .afk cleared last
ok - stop-ordering: daemon-terminal record removed
ok - stop identity: stale lock cannot signal an unrelated live process
ok - failed start: away flag and delivery artifacts roll back
ok - concurrent start: one serialized daemon terminal remains tracked
ok - launcher lock: incomplete publication receives initialization grace
ok - launcher signal: TERM exits and releases the lifecycle lock
fm-afk-launch: daemon launched in non-visible herdr workspace ws-partial (pane lab:pane-exact), supervising lab:captain
ok - herdr create: malformed response recovers durable exact ownership
fm-afk-launch: herdr create failed after returning exact ids; closing lab:pane-exact
fm-afk-launch: recorded terminal teardown is unconfirmed; preserving exact id
ok - herdr create error: unconfirmed exact id is persisted for reconciliation
fm-afk-launch: failed to run daemon in herdr pane lab:pane-exact; closing it
fm-afk-launch: recorded terminal teardown is unconfirmed; preserving exact id
ok - herdr run failure: unconfirmed exact id remains reconcilable
ok - herdr daemon terminal: runs with the captain's primary harness
ok - tmux daemon terminal: runs with the captain's primary harness
fm-afk-launch: failed to persist daemon terminal record; closing tmux:exact-session
ok - record failure: newly created terminal is closed by exact id
fm-afk-launch: daemon did not become ready; closing tmux:exact-session
ok - readiness failure: exact terminal and durable record roll back
fm-afk-launch: daemon did not become ready; closing tmux:exact-session
fm-afk-launch: recorded terminal teardown is unconfirmed; preserving exact id
ok - readiness failure: unconfirmed terminal retains its reconciliation id
ok - tmux absence: clean missing differs from transport probe failure
ok - native lifecycle: launcher owns state with no terminal
ok - native lifecycle: uniform stop clears state without closing a terminal
ok - supervision host: away start-native on a claude home (config file: -) refuses the daemon and keeps the record
ok - supervision host: away start-native on a claude home (config file: empty) refuses the daemon and keeps the record
ok - supervision host: quiet start-native and a plain refresh of the quiet daemon still prepare the daemon
ok - supervision host: config/supervision-host-off keeps the away daemon on a claude home
ok - supervision host: away mode on an opted-in cursor, opencode, omp, grok, codex, or agy home launches no daemon
ok - supervision host: enter names a missing engine on an opted-in home and says nothing otherwise
ok - quiet entry: the daemon-backed quiet record announces a present captain with nothing held for a return
ok - quiet entry: a later /afk entry turns the quiet record into the away posture, which holds for the return
ok - supervision host: /quiet is a statement where the attended host runs, and a quiet enter writes nothing there
ok - supervision host: quiet-check says the supervision session is paused while its latch holds, and starts nothing
ok - supervision host: quiet-check names what the attended host lacks
ok - supervision host: an unready host's quiet entry records its mode, which carries the daemon start
ok - supervision host: /quiet under a live away record refuses and names it until the return
ok - supervision host: /quiet under a live away record over a fallback quiet daemon refuses until the return
ok - supervision host: a failed quiet start archives its quiet record so the present captain is not parked
ok - supervision host: a failed away start keeps its away record
ok - native entry: launcher-prepared lifecycle state is not rewritten
fm-afk-launch: reconciling leaked daemon terminal tmux:exact-session
fm-afk-launch: recorded terminal teardown is unconfirmed; preserving exact id
ok - teardown failure: exact terminal record is preserved
ok - record publication: failed atomic rename preserves the complete prior record
fm-afk-launch: daemon terminal record is malformed; refusing to act on it
ok - record read: malformed record fails closed without acting on a partial id
fm-afk-launch: daemon terminal record is malformed; refusing to act on it
fm-afk-launch: malformed daemon terminal record; refusing to stop away mode
ok - stop: malformed terminal record preserves away state and fails closed
fm-afk-launch: failed to create detached tmux daemon session 'fm-afk-daemon-1670146865-3550607-55-1793608353'
ok - tmux launch: planned exact target is recorded before creation and removed on failure
fm-afk-launch: failed to create detached tmux daemon session 'fm-afk-daemon-841287634-3550642-6372-1793608353'
ok - tmux launch: unique names eliminate collision teardown
ok - stop validation: malformed record causes no daemon or state side effects
ok - launcher lock: incomplete metadata fails acquisition and releases lock
fm-afk-launch: failed to clear away-mode flag
fm-afk-launch: away mode stopped; terminal teardown or the record archive remains recorded for retry
ok - stop state: away-flag removal failure is surfaced
fm-afk-launch: away-mode daemon did not exit after SIGTERM; preserving lifecycle state
ok - stop liveness: captured live daemon preserves lifecycle state after lock release
fm-afk-launch: an away-posture record is required; run enter before starting the daemon
fm-afk-launch: an away-posture record is required; run enter before starting the daemon
ok - refresh record: malformed terminal identity fails closed
fm-afk-launch: an away-posture record is required; run enter before starting the daemon
ok - clear failure: native entry aborts and restores prior state
fm-afk-launch: reconciling leaked daemon terminal tmux:exact-session
fm-afk-launch: terminal close command failed, but exact absence was confirmed
ok - confirmed absence: cleanup succeeds and removes the stale record
fm-afk-launch: rollback restoration incomplete; backup retained at /tmp/fm-afk-restore-fail.Wzopge/state/.afk-launch-backup.tQzhUX
ok - rollback restore: incomplete restoration retains its recovery backup
fm-afk-launch: an away-posture record is required; run enter before starting the daemon
ok - flag failure: lifecycle aborts without active state
ok - herdr e2e: captain tab pane count unchanged after start (no split)
ok - herdr e2e: daemon launched in a separate non-visible workspace
ok - herdr e2e: daemon pane is NOT in the captain's tab
ok - herdr e2e: daemon terminal scoped to the lab session
ok - herdr e2e: captain tab pane count restored after stop
ok - herdr e2e: daemon workspace removed by exact id on stop
ok - herdr e2e: record + .afk cleared on stop
ok - tmux e2e: captain window pane count unchanged after start (no split-window)
ok - tmux e2e: daemon launched in a separate detached session
ok - tmux e2e: captain window pane count unchanged after stop
ok - tmux e2e: daemon session killed by exact id on stop
ok - tmux e2e: record + .afk cleared on stop
skip: rex CLI not found at $REX_BIN_DIR, on PATH, or at the server bundle path
skip: Rex CLI or jq unavailable (rex e2e)
FM_TEST_END 2026-11-02T08:32:35Z tests/fm-afk-launch.test.sh exit=0 duration_ms=49179 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=49239
FM_TEST_SUMMARY_FAMILY family=real-herdr-gated count=1 duration_ms=49179 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-afk-launch.test.sh duration_ms=49179
Evidence: tests/fm-daemon.test.sh full run (exit=0, hc + Orca discovery units)

Source: tests/fm-daemon.test.sh full run (exit=0, hc + Orca discovery units)

FM_TEST_BEGIN 2026-11-02T08:32:40Z tests/fm-daemon.test.sh family=watcher-wake-lock expected_gate_skip=none
ok - fm-afk-start.sh fails before daemon startup when the afk flag cannot be written
ok - fm-afk-start.sh ignores stale pidfile-only live pids
ok - fm-afk-start.sh refuses tern as an away-mode supervisor backend (unsupported; documented in docs/tern-backend.md)
ok - fm-afk-start.sh recognizes an Orca operator session and refuses it by name (source=ORCA_TERMINAL_HANDLE)
ok - fm-afk-start.sh reclaims stale daemon locks whose live pid identity no longer matches
ok - supervise daemon state root is scoped by FM_HOME
ok - routine signal self-handles
ok - captain-relevant status verbs escalate
ok - check + unknown escalate; heartbeat self-handles
ok - a delivered unknown wake is acknowledged once per away session; a new one and ordinary escalations still fire
ok - a failed unknown-wake acknowledgement write does not re-inject a delivered digest
ok - transient stale self-handles and records a persistence marker
ok - enriched stale wedges bypass status absorption except under a declared wait, without disturbing busy workers
ok - an enriched wedge under a declared wait uses the pause cadence and restores wedge detection on resume
ok - an enriched wedge under a worker blocker is not escalated only where config/wedge-defer-worker-wait arms it
ok - stale + terminal status escalates immediately
ok - stale escalation and current wait cadence remain independent
ok - paused reasons with captain phrases remain pause-classified
ok - a foreign resolved line keeps a pause, while the worker's own resolved line retracts it
ok - a captain-held transfer classifies as pause, not as a wedge candidate
ok - handle_wake on a paused stale records a pause marker, drops the wedge marker, and does not escalate
ok - handle_wake records a declared pause from a routine signal for long-cadence rechecks
ok - a terminal signal clears pause and stale tracking across both supervisors
ok - housekeeping migrates a normal-watcher's declared pause into daemon tracking
ok - housekeeping clears an already-resumed watcher pause across both supervisors
ok - housekeeping seeds pause tracking from status without a watcher marker
ok - persistent stale escalates after threshold and clears its marker
ok - resumed (busy) stale clears its marker without escalating
ok - housekeeping re-surfaces a stale declared pause on the long cadence and resets its window
ok - housekeeping re-surfaces a forgotten captain hold on the long cadence and resets its window
ok - housekeeping silences a captain hold only under an away record, never under quiet mode's
ok - a busy pane cannot gate the pause clear once its crew's status no longer declares the wait
ok - housekeeping matures a busy pane's declared-wait window into exactly one recheck per window
ok - housekeeping bounds a distant declared time, defers to a near one, and rechecks a passed one at once
ok - housekeeping clears a paused marker once the crew is no longer declaring the pause
ok - housekeeping clears the pause marker once a captain hold is answered
ok - housekeeping moves an existing stale marker to pause before wedge escalation
ok - housekeeping moves a captain hold's existing stale marker to pause before wedge escalation
ok - housekeeping clears tracking when a crew leaves pause
ok - persistent herdr stale resolves the target from metadata and escalates
ok - herdr idle busy-footer stale clears through capture corroboration
ok - resumed herdr stale clears through backend-aware busy state
ok - persistent Orca stale resolves the terminal from metadata
ok - multiple escalations flush as a single batched digest
ok - batch flush measures max-delay from the first append, not the last
ok - catch-all scan escalates a missed terminal once, not twice
ok - handle_wake routes routine->self and captain->escalate
ok - a decision-owned queued row escalates once as the decision, then suppresses until the status changes
ok - a captain-held decision-owned row is self-handled without escalation, now and on repeat
ok - INJECT_SKIP forces self-handle, bypassing captain-relevant classification
ok - is_wake_reason distinguishes watcher wake reasons from singleton-status stdout
ok - terminal-stale escalate removes its marker so housekeeping does not re-escalate
ok - captain signal escalate marks seen so the catch-all scan does not re-fire
ok - _collapse_newlines replaces newlines with literal separator
ok - afk flag absent: daemon does not inject, buffer preserved
ok - busy-guard defers injection when supervisor pane is busy
ok - marker detection: marker -> stay afk, no marker -> exit afk
ok - /afk invocation is exempt from afk exit (no self-cancel)
ok - should_exit_afk returns false when afk is not active
ok - strip_injection_marker removes the sentinel marker cleanly
ok - a marker-preserving primary still receives the typed U+2063 away-supervisor envelope and no record
ok - record-backed doorbell: only a doorbell naming this home's own record stays afk; a bare ASCII label, a missing record, and another home's record exit
ok - pane_input_pending detects partial input on the cursor line
ok - pane_input_pending: a blank unidentified cursor row defers (strict container-proof rule)
ok - pane_input_pending: only proven empty agent prompts pass
ok - fm_tmux_composer_state: a bare shell prompt ($/%/#/>) reads unknown, never empty (dead-shell injection safety)
ok - fm_tmux_composer_state: a bordered composer box and bare agent glyphs (❯/›) still read empty
ok - fm_tmux_composer_state: only matching edge borders form a composer box
ok - pane_input_pending preserves bright placeholder-like drafts in styled captures
ok - classify_signal dedupes against the catch-all scan seen marker
ok - turn-end markers stay routine while mixed actionable status batches escalate
ok - an actionable event is escalated to an away captain despite later routine appends
ok - the daemon commits exactly the endpoint captured by classification
ok - a stale wake escalates a blocker hidden by later progress
ok - a stale span read failure surfaces without advancing its marker
ok - a recreated status rejects the old captured identity
ok - an unverifiable status identity surfaces without advancing markers
ok - a status read failure surfaces without advancing the daemon suppressor
ok - catch-all routine scans advance before later actionable appends
ok - failed escalation writes retain durable wakes and classification positions
ok - stuck inbox escalation reaches supervision in away mode and survives buffering failure
ok - stuck inbox escalation reaches supervision in quiet mode and survives buffering failure
ok - write inbox escalation reaches supervision in away mode and survives buffering failure
ok - write inbox escalation reaches supervision in quiet mode and survives buffering failure
ok - reset inbox escalation reaches supervision in away mode and survives buffering failure
ok - reset inbox escalation reaches supervision in quiet mode and survives buffering failure
ok - inbox dispatch preserves ordinary stale, busy-turn, and other doorbell routing
ok - catch-all markers advance only after escalation buffering succeeds
ok - classification failure retains the complete durable wake batch
ok - missing-status stale wakes remain ordinary and acknowledgeable
ok - transient unreadable signals recover without advancing their position
ok - daemon catch-all reclassifies permission-recovered status content
ok - a permanent classification failure is reported, acknowledged, and never advances its position
ok - the away-mode catch-all scan surfaces a masked event once
ok - classify_stale dedupes against the signal path seen marker
ok - AFK nonterminal working:+merged keeps wedge aging and re-escalates at bound
ok - genuine done: and merge-check events still escalate
ok - pane_input_pending: an idle bordered composer is NOT pending (afk-invx-i5)
ok - pane_input_pending: text inside a bordered composer is still pending
ok - submit-ACK confirms a submit when the composer returns to a bordered-empty box
ok - submit-ACK reports pending on a persistently swallowed Enter (type-once)
ok - max-defer on an empty stuck pane types once, alarms, and preserves the buffer
ok - max-defer flushes and clears the buffer on an empty bordered pane
ok - max-defer on a pending composer alarms without typing
ok - a composer deferral names pending text apart from an unproven composer
ok - normal flush clears a stale wedge marker
ok - an oversized buffered digest is delivered bounded, with the full text kept durable
ok - a digest past its byte budget counts the omitted events and keeps them in the full text
ok - an initial-send failure logs its stage, bytes, and stderr, and the wedge alarm names it
ok - an Enter-confirmation failure logs its own stage and byte count
ok - a bounded digest's full-text file survives a failure after typing, and a deferral writes none
ok - below MAX_DEFER: no inject, no alarm, buffer preserved
ok - max-defer does not flush or alarm while afk is inactive
ok - library mode: sourcing the daemon defaults FM_WEDGE_ALARM_EXEC to discard (no test can fire a real notification)
ok - wake helpers replace inherited notifier overrides with the safe recorder
ok - the discard seam suppresses every notifier, including command: (fires nothing)
ok - direct notifier helpers honor the discard seam, including command:
ok - osascript channel routes through the notifier seam with the summary (never a real notification)
ok - herdr channel routes through the notifier seam with the summary (never a real notification)
ok - rex channel routes through the notifier seam with the summary (never a real pane write)
ok - auto never adds the opt-in rex channel, even on a Rex supervisor pane
ok - command channel runs the captain command with the summary on $1 and on stdin
ok - command channel failures redact configured commands while logging their exit status
ok - unknown channel directives are redacted while the alarm keeps running
ok - off disables every active alert regardless of directive position (marker and tmux flash are unaffected)
ok - auto resolves to the macOS osascript notifier on Darwin (default-on)
ok - auto on a non-macOS platform selects no built-in OS channel (the marker or a configured command carries it)
ok - config/wedge-alarm selects every configured channel and skips comment and blank lines
ok - a failing channel logs and falls back to the next channel, never crashing the alarm
ok - a hung notifier is bounded, logged, and falls through to the next channel
ok - a backgrounded command notifier remains bounded until its process group is reaped
ok - a hung notifier override is bounded, logged, and proceeds to the next channel
ok - daemon shutdown stops and reaps the active notifier process group
ok - inject_wedge_alarm writes the marker AND emits the active alert even with no tmux status-line (herdr backend)
ok - in-process wedge throttle prevents alert spam when the marker cannot persist
ok - fm-send returns 3 with a non-error no-resend warning when confirmation stays pending
ok - fm-send exits non-zero when initial text send fails
ok - fm-send exits non-zero unless delivery is proven empty
ok - discover_supervisor_backend: override > TMUX_PANE > HERDR_ENV+HERDR_PANE_ID > tmux fallback
ok - discover_supervisor_target: override > TMUX_PANE > herdr '<session>:<pane-id>' composition > firstmate:0 fallback
ok - discover_supervisor_{target,backend}: hc markers resolve <session>:<address> + hc; bare id, nested tmux/herdr keep their verdicts; supported list stays closed to hc
ok - discover_supervisor_*: explicit > tmux > herdr > rex > t3code > Orca (ORCA_TERMINAL_HANDLE) > fallback; orca is recognized but unsupported
ok - discover_supervisor_*: t3code resolves from the home's live thread after env, TMUX_PANE, and herdr; zero, ambiguous, and no-bearer fall through
ok - pane_is_busy: t3code accepts only a settled thread with no pending request and never reads a rendered tail
ok - pane_is_busy: herdr native busy_state='busy' short-circuits without a capture fallback
ok - primary busy guard isolates rendered signatures by detected harness
ok - pane_is_busy: omitted backend defaults to tmux for Grok's isolated fallback
ok - pane_input_pending: dispatches through fm_backend_composer_state for backend=herdr
ok - inject_msg: herdr busy-guard defers before ever attempting a submit
ok - inject_msg: herdr composer-guard defers before ever attempting a submit
ok - inject_msg: herdr pane-gone check defers before any busy/composer/submit call
ok - inject_msg: dispatches busy-guard/composer-guard/submit through the herdr backend and succeeds on a confirmed empty composer
ok - inject_msg: defers on a dead-shell/unreadable composer (unknown), never typing the escalation into a shell
ok - inject_msg: unrecognized composer states defer by default
ok - a dialog name on a first-sight stale reaches the away persistence line
ok - a seen terminal status on the picker clears like a plain stale
ok - a dialog name joins the escalation of an unseen status
ok - a dialog name after demand-deep-inspection still escalates, and a declared wait still pauses
FM_TEST_END 2026-11-02T08:33:21Z tests/fm-daemon.test.sh exit=0 duration_ms=40882 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=40945
FM_TEST_SUMMARY_FAMILY family=watcher-wake-lock count=1 duration_ms=40882 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-daemon.test.sh duration_ms=40882
exit=0
Evidence: tests/fm-afk-return.test.sh full run (exit=0)

Source: tests/fm-afk-return.test.sh full run (exit=0)

FM_TEST_BEGIN 2026-11-02T08:36:21Z tests/fm-afk-return.test.sh family=afk expected_gate_skip=none
ok - return catch-up owns live blocker remediation, reports itself to Bearings as content, preserves evidence once, and clears idempotently
ok - tmux and Herdr blockers require the same explicit durable reclassification before ordinary work
ok - needs-decision remains reportable without masquerading as a firstmate-actionable blocker
ok - AFK return re-drains published wakes until handling acknowledges
ok - away-mode re-entry fails closed while the prior return catch-up is pending
ok - /quiet off's return path behaves identically for a quiet-content flag as for a legacy away-content one
ok - check retries recorded terminal teardown and keeps catch-up gated until success
ok - an unreadable superseded mandate stays required until its record validates
ok - the retained contract epoch requires its final archive on every check
ok - the return brief renders health, the words with the session account, waiting, could-not-fix, handled, and cost from durable records, and the gate shrinks to what the away session could not fix
ok - the return brief lists landed work whose worker is still up, from the durable merge marker only, without gating on it and never offering a secondmate for teardown
ok - the return brief points at the drain for branch outcomes on a host home and leaves the read cursor to it, and a Pi home's brief is unchanged
ok - the all-silent return keeps the outcome stored without promising a drain presentation
ok - a drain that cannot record its branch-outcome presentation keeps the return's catch-up gated until a check records it
ok - a refreshed posture keeps its original window, superseded mandate, and earlier outcomes
ok - a malformed posture record stays live and gates return catch-up
ok - an epochless malformed record remains required until restored valid
ok - an unreadable outcome store gates catch-up until a successful reread
ok - an unavailable held listing gates catch-up until a successful reread
ok - an unreadable status stays private and gates until a successful reread
ok - a status-file-less leftover record gates return; a readable status on that same record is the proven path that passes
ok - a leftover record with a readable status file lets return catch-up clear
ok - the read-only guard treats the away-posture record as active away mode without the legacy flag
ok - the return brief leads with supervisor health and names every detected gap
ok - the return brief does not report an already-acked watcher-down marker as an open gap
ok - the return brief reports a wake mid-handling at return as information, and only an open downtime episode as a gap
ok - the return brief's failures section names an engine latch inside the away window with its time, error count, and cooldown state
ok - a lost second trip append does not attach the current pause to a recovered episode
ok - a recovered row preceding the stale retry time does not invent a second trip
ok - a later failed probe does not change the trip-row error count
ok - the return brief excludes prior-session latch rows
ok - the return brief retains in-window trips and failed turns across a main restart
ok - a return with only the legacy away flag still renders the brief and measures the window from the flag
FM_TEST_END 2026-11-02T08:37:11Z tests/fm-afk-return.test.sh exit=0 duration_ms=50123 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=50184
FM_TEST_SUMMARY_FAMILY family=afk count=1 duration_ms=50123 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-afk-return.test.sh duration_ms=50123
Evidence: Live away-mode refusal, discovery-precedence, and real-pane arming transcripts from the disposable lab home

Source: Live away-mode refusal, discovery-precedence, and real-pane arming transcripts from the disposable lab home

A1 no session -> refusing to arm away mode; B1 Orca -> does not support supervisor backend 'orca'; C1 hc -> does not support supervisor backend 'hc'; D1 no-such-session:0 -> supervisor target 'no-such-session:0' does not resolve to a tmux endpoint; E1 real pane %0 -> rc=0 afk=away terminal=none - native; F1 start -> daemon launched in detached tmux session, daemon log target=%0 backend=tmux; F2 stop -> daemon terminal torn down, .afk cleared; G1 Orca inside tmux -> arms with tmux transport; discovery: hc -> iso1:7, hc+Orca -> hc, Orca only -> orca, Orca+tmux -> tmux, explicit override wins; supported: tmux herdr rex t3code, refused: hc orca zellij cmux tern

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

🔧 **Rebase** - 10 issues found → auto-fixed ✅
  • ⚠️ bin/fm-afk-launch.sh - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ bin/fm-supervisor-target-lib.sh - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ docs/configuration.md - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ docs/orca-backend.md - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ docs/verification/runtime-backends.md - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ tests/fm-afk-launch.test.sh - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ tests/fm-backend-t3code.test.sh - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ tests/fm-daemon.test.sh - merge conflict rebasing onto refs/remotes/no-mistakes-push/fix/7168-afk-verifiable-operator-session
  • ⚠️ docs/configuration.md - merge conflict rebasing onto origin/main
  • ⚠️ tests/fm-daemon.test.sh - merge conflict rebasing onto origin/main

🔧 Fix applied.
✅ Re-checked - no issues remain.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ tests/fm-afk-launch.test.sh:76 - The new no_operator_session helper leaves HC_TERMINAL_ID and HC_TERMINAL_SOCKET inherited. Running this suite inside an hc terminal therefore discovers hc instead of no session or Orca: the no-session assertion at tests/fm-afk-launch.test.sh:248 and Orca assertions at :315 and :325 fail, while the preservation case at :298 passes for the wrong refusal reason. Clear the hc identity markers in this shared helper so these fixtures exercise their intended paths.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
Away entry (start and start-native) on a host whose discovery names no operator session refuses with the named message and writes no state/.afk ✅ pass live live-away-refusal-and-arming.txt steps A1/A2: could not resolve a verifiable operator session ... refusing to arm away mode, rc=1, state afk=ABSENT terminal=ABSENT, posture record unchanged
An Orca-hosted captain is recognized by its ORCA_TERMINAL_HANDLE and refused by name at both away entry paths before arming ✅ pass live live-away-refusal-and-arming.txt steps B1/B2: away supervision does not support supervisor backend &#39;orca&#39; yet ...; refusing to arm away mode, rc=1, no .afk/.afk-daemon-terminal
An hc (Herdr Core) operator session - main's auto-detection - is resolved and refused by name at the launcher and by the daemon at startup ✅ pass live live-away-refusal-and-arming.txt steps C1/C2 (does not support supervisor backend &#39;hc&#39;) and drive3 (error: away-mode daemon does not support supervisor backend &#39;hc&#39;, log `startup failed: unsupport…
A stale or mistyped supervisor endpoint is refused by the real backend probe before arming, for both entry paths ✅ pass live live-away-refusal-and-arming.txt steps D1 (supervisor target &#39;no-such-session:0&#39; does not resolve to a tmux endpoint) and D2 (%99999), both rc=1 with no .afk
start-native against a real live tmux pane passes the endpoint probe, arms away mode, records the native terminal shape, and stop clears it ✅ pass live live-away-refusal-and-arming.txt E1/E2: rc=0, afk=away terminal=none - native, then stop archived the record and cleared state
start (daemon entry) against a real live tmux pane passes the probe, launches the supervising daemon against that pane, and stop tears the daemon session down ✅ pass live live-away-refusal-and-arming.txt drive2 F1/F2: daemon launched in detached tmux session &#39;fm-afk-daemon-...&#39;, supervising %0, record tmux fm-afk-daemon-..., daemon log `target=%0; target_source=FM_…
A real herdr captain endpoint is accepted by the endpoint probe; the daemon runs in a separate non-visible herdr workspace and stop removes the workspace and record ✅ pass live tests/fm-afk-launch.test.sh ok - herdr e2e: ... (7 assertions, probe seam cleared inside e2e_herdr), full log in fm-afk-launch-test.log, exit=0
A tmux pane nested inside an Orca terminal keeps its own transport, so away mode arms against the pane instead of refusing orca ✅ pass live live-away-refusal-and-arming.txt drive2 G1: ORCA_TERMINAL_HANDLE=term_live123 bin/fm-afk-launch.sh start-native inside the tmux pane armed (rc=0, afk=away, terminal=none - native); discovery probe `…
Daemon startup refuses an unsupported backend loudly with its source, instead of injecting into the firstmate:0 tmux fallback ✅ pass live live-away-refusal-and-arming.txt step H: rc=1, error: away-mode daemon does not support supervisor backend &#39;orca&#39; yet, log `startup failed: unsupported supervisor backend 'orca' (source=ORCA_TERMINA…
An explicitly selected live T3 thread stays the operator session inside an Orca-hosted captain (T3 discovery 4d outranks Orca 4e) ⏸️ untested no Driving it live needs a running T3 Code instance with one live thread for this home plus a config/t3code-token credential (and explicit t3code selection) so the real adapter's cwd match returns that t…
  • bash bin/fm-test-run.sh tests/fm-afk-launch.test.sh (exit=0; real herdr e2e 7 assertions, tmux e2e 5 assertions, rex e2e skipped: Rex CLI unavailable)
  • bash bin/fm-test-run.sh tests/fm-daemon.test.sh (exit=0, including discover_supervisor_hc and discover_supervisor_orca_after_inner_signals units and test_afk_start_refuses_orca_supervisor_backend)
  • bash bin/fm-test-run.sh tests/fm-afk-return.test.sh (exit=0)
  • bash bin/fm-test-run.sh tests/fm-backend-t3code.test.sh (touched unit native restart re-arms discarded T3 stale warnings exactly once and preserves delivered suppression passed; the only failure is the environment-bound installed Codex failed the tracked configuration guard that the intent records as reproducing on unmodified main on this host)
  • Live lab drive: marked lab home via bin/fm-lab-home.sh create, private socket tmux -L fm-lab with TMUX_TMPDIR=$LAB/tmux, real bin/fm-afk-launch.sh driven from inside the lab pane: enter, then start-native/start with cleared markers (refusal, no state/.afk), with ORCA_TERMINAL_HANDLE (refusal naming orca), with HC_TERMINAL_ID/HC_TERMINAL_SOCKET (refusal naming hc), with FM_SUPERVISOR_TARGET=no-such-session:0 and %99999 (endpoint-probe refusal)
  • Live lab drive: start-native against the real pane (FM_SUPERVISOR_TARGET=$TMUX_PANE FM_SUPERVISOR_BACKEND=tmux) arms state/.afk + none - native; stop clears it
  • Live lab drive: start against the real pane launches detached fm-afk-daemon-* session with daemon log target=%0; target_source=FM_SUPERVISOR_TARGET; backend=tmux; stop tears the session down and archives the record
  • Live lab drive: ORCA_TERMINAL_HANDLE set inside the tmux pane still arms against tmux transport (Orca checked last)
  • Live lab drive: bin/fm-afk-start.sh with ORCA_TERMINAL_HANDLE and with hc markers refuses at startup (startup failed: unsupported supervisor backend &#39;orca&#39; (source=ORCA_TERMINAL_HANDLE), &#39;hc&#39;), touching no firstmate:0 session
  • Live lab drive: real discover_supervisor_{target,backend} precedence probe (nothing/hc/hc+Orca/Orca/tmux+Orca/explicit override) and fm_supervisor_backend_supported for tmux herdr rex t3code hc orca zellij cmux tern
  • Teardown: tmux -L fm-lab kill-server, rm -rf $LAB; no lab processes or temp dirs left, worktree clean (git status --porcelain empty)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous test finding is fixed and no new blocking issue remains.

Reviews (4) · Last reviewed commit: "no-mistakes(document): Align away-superv..." · Reviewed by Greptile

Comment thread tests/fm-afk-launch.test.sh Resolved
Comment thread docs/architecture.md Resolved
@kesslerio kesslerio changed the title fix(bin): refuse away supervision without a verifiable operator session fix(bin): refuse away mode without a verifiable operator session Oct 31, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @kesslerio for closing both #7168 gaps in one careful change, and for keeping the refusal story in a single owner.

What I checked on 80fce12a against main 095db3bc:

  • Closes #7168 is right. Gap 1: fm_afk_launch_capture_captain runs on both start and start-native before anything writes state/.afk. It refuses when discovery names no session, when the backend is unsupported, or when the target doesn't resolve on its backend, so none - native is only recorded for a session we can name. Gap 2: ORCA_TERMINAL_HANDLE is now the last discovery signal, after tmux, Herdr, Rex and T3, so an Orca primary gets the named unsupported-backend refusal instead of the tmux fallback.
  • FM_SUPERVISOR_SUPPORTED_BACKENDS and fm_supervisor_backend_supported now live only in bin/fm-supervisor-target-lib.sh, and the daemon and the launcher both read them from there. The probe seam only works with FM_TEST_SEAM=1, and your seam-guard run shows that.
  • The attestation binds this head with no skipped steps. The quick checks pass, both Greptile threads are resolved, and Greptile's summary on this head is 5/5. Live validation is a go at 12 of 14 rows. The two untested rows (Rex, because there's no Rex CLI on your host, and the full discovery order, covered by unit tests) are named honestly. I found no workflow, credential or network surface.

Contract-class (my own read): new-default. The Orca half is a restore, because the docs already promised that refusal. But start-native refusing at /afk time, and both entry paths now refusing a target that doesn't resolve, are new behavior on the unconfigured path. That matches what I wrote on #7168. So this goes to Kun for a merge decision, not auto-merge.

VISION.md, rule by rule: One captain, one interface: aligns (an away window that looks armed while delivering nothing is the hidden failure the honesty rule forbids). Authority is explicit: aligns (it refuses instead of guessing a target). Scripts own the mechanics: aligns (deterministic discovery with one owner for the backend list). A restart is a non-event: aligns (state/.afk now exists only when supervision can deliver). Delegation with a spine: aligns (strengthens a refusal path). The fleet outlives any vendor: aligns (Orca gets an honest, named refusal). Scope: aligns (command-layer supervision).

Nothing is needed from you right now. The red Full suite row is our label gate, not your code. Next we run the full suite, and if it's green this goes to Kun.

@kunchenguid kunchenguid added the full-ci Maintainer go-ahead: run the full CI suite on this outside pull request label Oct 31, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @kesslerio. Head 80fce12a still merges cleanly onto main 30d6d15e. I've added the full-ci label so the Full suite runs. If it's green, this goes to Kun, because refusing start-native without a verifiable session and the new endpoint probe change the default away-mode path. Nothing is needed from you.

@kesslerio

Copy link
Copy Markdown
Contributor Author

Heads-up on Behavior portable serial 8 (run 41229038385, job 124619147126): this looks like the same runner-load flake family already proven twice today — serial-4 (not ok - away grok: the host did not stop on TERM, tests/fm-supervision-host.test.sh) on #7212 was diagnosed as the suite-documented TERM/settle race and came back green on rerun with the head unchanged, and a serial-5 failure on #8019 is showing the same signature under triage. This PR touches bin/fm-afk-launch.sh and bin/fm-supervisor-target-lib.sh — not the supervision-host suite. If the failed test is a supervision-host timing case, could we get a rerun of the failed jobs? (We lack rerun rights from the fork side.)

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @kesslerio for the heads-up. You were right that it isn't your code, though the lanes were different ones. On run 41229038385, Behavior portable serial 6 failed tests/fm-watcher-lock.test.sh ("recovery drain after forced arm interruption failed"), which is a known main flake in the watcher-lock area. Behavior portable serial 8 failed tests/fm-watch-arm.test.sh ("watcher did not log the state-gone exit reason") during a temp-dir removal race. Lint 2 was cancelled with every file already passing. Neither test reaches bin/fm-afk-launch.sh, bin/fm-supervisor-target-lib.sh or bin/fm-supervise-daemon.sh. The only shared-test change, unset ORCA_TERMINAL_HANDLE in tests/lib.sh, does nothing on CI runners.

I've re-run the failed jobs once on head 80fce12a. If the Full suite comes back green, this goes to Kun, because refusing start-native without a verifiable session and the new endpoint probe change the default away-mode path. Nothing is needed from you.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @kesslerio. The rerun came back fully green on 80fce12a (run 41229038385, attempt 2), including the Full suite and the two lanes that flaked. That confirms they weren't your code. The attestation binds this head with no skipped steps, Greptile's threads are resolved, and your live run covers 12 of 14 scenarios, with the two gaps named honestly.

This is now with Kun. Refusing away mode without a verifiable operator session, and probing the endpoint before arming, change what an unconfigured start/start-native does, so it's his merge decision. It's waiting on Kun, not you.

…on (kunchenguid#7168)

Two ways of arming away supervision that looks live while delivering
nothing are still open after kunchenguid#5591. Both now refuse at the point where
the flag would be written.

Gap 1 (new default): `fm_afk_launch_start_native` wrote `state/.afk` and
recorded `none - native` without ever calling `discover_supervisor_target`,
so `/afk` reported armed before any refusal was possible and no daemon ran.
`start` and `start-native` now share one pre-flag capture
(`fm_afk_launch_capture_captain`): discovery must name an operator session
the away daemon can inject into, or the entry refuses and writes nothing.
A refused refresh leaves the existing flag and stale escalation artifacts
byte-for-byte.

Gap 2 (restore): the documented Orca refusal never ran, because
`discover_supervisor_backend`/`discover_supervisor_target` had no Orca arm
and an Orca primary fell through to the `firstmate:0` tmux fallback.
Discovery now recognizes `ORCA_TERMINAL_HANDLE`, which Orca puts into every
terminal it spawns, checked after every innermost signal so nested tmux,
Herdr, Rex, and an explicit T3 thread keep their own transport. The daemon
refuses it by name (`source=ORCA_TERMINAL_HANDLE`) and the launcher refuses
it before arming. Recognition is for the refusal only; Orca stays
explicit-only for task endpoints.

`FM_SUPERVISOR_SUPPORTED_BACKENDS` and its predicate move into
`bin/fm-supervisor-target-lib.sh`, the single owner of supervisor
resolution, so the daemon and the launcher cannot disagree about a backend.

Tests cover both directions: no session refuses without arming, a refused
refresh preserves prior state, a supported session still records the
existing `none - native` shape, and Orca is recognized-but-refused on both
entry paths and at daemon startup.

Closes kunchenguid#7168
The daemon's usage header listed every auto-discovered supervisor signal
except the Orca terminal handle, and the runtime verification record named a
host its own commands contradicted. Both now say what the code does: the
header carries $ORCA_TERMINAL_HANDLE in the discovery order, and the record
states the Orca version it inspected and leaves the app path to the machine
being checked.
…/fm-afk-launch.test.sh: the suite-level FM_AFK_LAUNCH_TARGET_PROBE pin now only serves backend-free lifecycle units. e2e_herdr and e2e_rex each declare `local FM_AFK_LAUNCH_TARGET_PROBE=` exactly like e2e_tmux, so both provision real captain endpoints and exercise the real fm_backend_target_exists probe instead of the seam, catching a probe that wrongly refuses a valid endpoint (the sleeper daemon replacement means no later daemon check covers this). E2E assertions are unchanged, and each of the three e2e functions now carries a one-line comment naming that reason. (2) docs/architecture.md: split the refusal sentence so unsupported supervisor backends are stated to refuse at daemon startup and in bin/fm-afk-launch.sh before it writes state/.afk, while a discovery naming no injectable operator session refuses only in bin/fm-afk-launch.sh (start and start-native) before that flag; direct daemon startup warns and keeps the legacy firstmate:0 fallback. The existing configuration.md cross-reference (which owns the refusal contract and the launcher endpoint check) is retained. Verification: `bash bin/fm-test-run.sh tests/fm-afk-launch.test.sh` passed (exit=0) with herdr present, so e2e_herdr ran through the real probe and all seven herdr assertions and five tmux e2e assertions passed; rex e2e skipped because the Rex CLI is unavailable here. The real rex probe path uses fm_backend_rex_target_ready, which parses the target and reads with --autostart=false, independent of REX_SESSION. `bash bin/fm-doc-audience-check.sh` passed (surfaces=137, local_links=1107) and shellcheck on the test file is clean. The Greptile check log itself could not be retrieved (check run no longer present), but its two P2 findings are fixed as described. code_change_needed=true because the test-seam skip was a real defect in the change's own coverage and the doc overclaimed a safeguard
@kesslerio
kesslerio force-pushed the fix/7168-afk-verifiable-operator-session branch from 80fce12 to a20e6ab Compare November 2, 2026 08:19
Comment thread tests/fm-afk-launch.test.sh Resolved
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @kesslerio for carrying this through the rebase onto hc auto-select. On the new head 71ba94be, the full suite is green (run 41415073841). Greptile's "Tests fail inside hc" P2 is fixed by 25eddfd2 and resolved. The attestation binds this head with every step completed, and live is a go at 9 of 10, with the one T3-inside-Orca row named honestly. It merges cleanly with main c61646ff. This is back with Kun for the merge decision (contract-class new-default, unchanged). It's waiting on Kun, not you. One small note: the regenerated description no longer carries Closes #7168, so we'll close #7168 by hand when this merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Maintainer go-ahead: run the full CI suite on this outside pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants