Skip to content

fix: treat quiet records as attended across supervision - #6064

Merged
kunchenguid merged 4 commits into
mainfrom
fm/fm-quiet-record-posture-consumers-r1
Sep 29, 2026
Merged

kunchenguid merged 4 commits into
mainfrom
fm/fm-quiet-record-posture-consumers-r1

Conversation

@kunchenguid

@kunchenguid kunchenguid commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Stack

This PR builds on #6033 (now merged to main), whose fm_afk_contract_away_present it reuses; the branch is rebased onto main, so the diff is this change alone.

Known limitations, not fixed here

  • Host home on the quiet-daemon fallback: /afk flips the record to away but the quiet daemon keeps supervising, so the return catch-up may load /quiet instead of /afk. Pre-existing and tracked separately.
  • /quiet entered over a live away record on a non-host home can leave a quiet daemon beside an away record (Review finding at bin/fm-afk-contract.sh:510 and the Greptile thread). That code is fix: stop quiet mode from holding requested actions for return #6033's, not this PR's diff; it is a known limitation tracked separately. The Risk Assessment line below refers to it.

Live verification provenance (read with the Testing section)

The pipeline Test step did not re-drive every scenario itself. Provenance, plainly:

  • Quiet-record host with no daemon (a worker decision passed to the present captain; a done outcome handled posture=attended, the Stop hook rewoke the primary, and the primary drained BRANCH OUTCOMES and asked for the merge call): live-verified with real Claude Code primaries and the real Claude host engine on the pre-pipeline fix commit 1f965e6f (patch-identical to this PR's fix commit), not re-driven by the pipeline test step. A pre-fix run on the fix: stop quiet mode from holding requested actions for return #6033 head reproduced the bug: host posture=away, three captain outcomes withheld, primary never woken for 18+ minutes.
  • Watcher captain-held recheck: under a daemon-backed quiet record the held item was rechecked after its cadence and surfaced to the captain; under the away daemon it was absorbed silently on every pass. Live-verified on the same pre-pipeline fix commit 1f965e6f, not re-driven by the pipeline test step.
  • /afk over a quiet record: record rewritten to away, host posture=away, outcome held for return (unchanged away behavior), same commit.
  • Codex checkpoint bound: live-verified with a real Codex CLI 0.155.1 primary on pipeline head 34e5d854 (the pushed head b12f9165 adds only comment and documentation changes). Under the quiet record the host logged boundary after 60s and the checkpoint returned no actionable wake within 60s (attended bound kept); under the away record the host parked with FM_SUPERVISION_HOST_PARK_SECONDS=3600 and no boundary at 91s (bound raised).
    The regression tests for these paths each failed on the fix: stop quiet mode from holding requested actions for return #6033 head and passed on the fix.

Intent

yes

Context: that "yes" approved routing two /quiet fixes found during the /quiet live validation (AFK revamp rung 3c-4, landed as #5928). This is the second: a live quiet record is treated as away by the supervision host and watcher posture checks, parking a present captain. Evidence (review finding quiet-fallback-parks-present-captain on the 3c-4 re-land): a quiet fallback records mode: quiet, but bin/fm-supervision-host.sh's posture checks treat any existing quiet or away record as away. When a quiet record is live with no daemon flag (for example after a failed daemon start restored its backup and left the record), the host parks the present captain and withholds outcomes, and bin/fm-watch.sh afk_record_present silences captain-held rechecks on record presence alone. The fix makes a live quiet record mean a present captain at those consumers. The watcher part changes daemon-backed quiet mode on every home (captain-held items are rechecked while a quiet daemon runs); that is intended, since a quiet captain is present.

The first fix, routed together and landed before this one, made daemon-backed quiet mode stop writing a hold-for-return reading of the record.

The AFK revamp's standing words apply: "2 should be done by opus crewmates" and "this is a major architectural revamp so i want it to do very careful live validation including regression in isolated live environments with some real complex sessions before calling it done. it's ok to use my real llm tokens here".

What Changed

  • Treat live quiet records as a present captain in supervision-host routing, outcome delivery, branch authority, and watcher handoffs instead of applying away behavior.
  • Recheck captain-held items while quiet mode is active, including with a running daemon; continue suppressing those rechecks for away records.
  • Update posture documentation and regression coverage for quiet records across host, watcher, daemon, and primary-harness paths.

Risk Assessment

✅ Low: The posture changes are bounded to the intended consumers, and this review found no new material source defect beyond previously declined concerns.

Testing

The checkpoint test and focused behavioral checks passed; a real Claude lab confirmed quiet mode, and the contract CLI distinguished quiet from away. Full host and watcher scripts timed out, and no real host-engine wake or live watcher recheck was completed.

  • Live validation: ⚠️ inconclusive - 1 of 4 scenarios driven live against the product
Scenario Result Live Evidence
A present captain enters quiet mode and the recorded posture remains quiet rather than away ✅ pass live Claude lab quiet-mode interaction and disposable lab posture CLI output
A quiet-record host with no daemon delivers a decision and captain outcome to the present captain ⏸️ untested no The focused check used a stub engine, not a real host-engine turn. A disposable real-Claude primary was launched and completed a quiet-mode turn, but no verified dialog-mirror and host wake was driven…
A watcher rechecks captain-held work under quiet, including daemon-backed quiet, but suppresses it while away ⏸️ untested no The focused watcher checks used fixture endpoints and did not observe a real endpoint through a complete live recheck. A disposable Claude lab was available but no real worker endpoint and watcher cyc…
An opted-in host checkpoint keeps the attended bound under quiet and raises it while away ⏸️ untested no The checkpoint test substitutes a fixture host. No real lab host park was driven through both bounds; a disposable primary and host would need to be kept running for those timed parks.
Evidence: Claude lab quiet-mode interaction

Source: Claude lab quiet-mode interaction

▝▜██████▀  Opus 4.8 with high effort · Claude Max
 ▝▝   ▝▝   ~/.no-mistakes/worktrees/52b07e9083e7/01M3MW8BQEWDKY717DXWQX5QCF


❯ In this lab home only, run FM_AFK_MODE=quiet bin/fm-afk-contract.sh enter
  --words "quiet but present" and then bin/fm-afk-contract.sh mode; report the
  mode.

  Ran 2 shell commands

⏺ Captain, done. The mode reads back quiet.

  Both commands ran in this lab home: the enter recorded quiet mode at
  2026-09-28T22:33:30Z with your words "quiet but present" verbatim, holding
  nothing since you're present, and mode confirms quiet. Only an explicit /quiet
  off ends it.

✻ Sautéed for 15s · done 3:33 PM

────────────────────────────────────────────────────────────────────────────────
❯ now run /quiet off
────────────────────────────────────────────────────────────────────────────────
  Opus 4.8 ctx window   ▉               60.2k / 1.0M
  ⏵⏵ auto mode on (shift+tab to cycle) · ← for agents
Evidence: Disposable lab posture CLI output

Source: Disposable lab posture CLI output

Quiet mode recorded at 2026-09-28T22:12:25Z: you are present, so nothing waits for your return: every action you ask for, a local landing or a merge included, proceeds now under ordinary attended authority, and quiet mode changes only which updates reach this conversation. Only an explicit /quiet off ends it.
Quiet mode (recorded):
  entered: 2026-09-28T22:12:25Z
  holds: none - you are present, so nothing waits for your return: every action you ask for, a local landing or a merge included, proceeds now under ordinary attended authority, and quiet mode changes only which updates reach this conversation.
  your words (verbatim):
    present and observing
quiet mode: quiet
away-present quiet exit: 1
~/.no-mistakes/worktrees/52b07e9083e7/01M3MW8BQEWDKY717DXWQX5QCF/.fm-test.kRRljA/state/afk-contracts/1790633545.afk-contract
Away posture recorded at 2026-09-28T22:12:25Z: hold-for-return only. No phone channel is configured; anything that needs you waits for your return. Your away instructions are recorded verbatim; the away session will carry them out where it can, and anything it is unsure of, or that needs you, waits for your return. Destructive, irreversible, and security-sensitive actions are never pre-authorizable, whatever the words say. Expected return: not given. Spend cap: 4 concurrent workers.
Away posture (recorded):
  entered: 2026-09-28T22:12:25Z
  expected return: not given
  spend cap: 4 concurrent workers
  reach: hold-for-return only. No phone channel is configured; anything that needs you waits for your return.
  your words (verbatim):
    return later
away mode: away
away-present away exit: 0
- Outcome: ⚠️ 1 warning across 2 runs (51m35s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found ✅
  • 🚨 bin/fm-afk-contract.sh:510 - On a non-host home with a live away record, /quiet follows its documented quiet-check → enter → start path. This line silently keeps the record away, but bin/fm-afk-launch.sh:422 uses the explicit FM_AFK_MODE=quiet to write a quiet daemon flag; both the start path at :730 and start-native at :791 can do so. The daemon then operates as quiet while record consumers still treat the captain as away. Refuse the quiet entry over an away record before either start can change the flag, so the documented return happens first.

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (2 of 4 scenarios were driven live against the product); untested: A quiet-record host with no daemon handles a wake as attended and returns a captain outcome to the present captain, A watcher rechecks a captain-held item under quiet, including daemon-backed quiet, but keeps it silent while away
  • Live validation: ⚠️ inconclusive - 2 of 4 scenarios driven live against the product
Scenario Result Live Evidence
A captain enters quiet mode and the record says they are present, with nothing held for return ✅ pass live Live quiet-to-away posture CLI transcript
A captain enters away mode over quiet, and a later quiet request does not mask the away posture ✅ pass live Live quiet-to-away posture CLI transcript
A quiet-record host with no daemon handles a wake as attended and returns a captain outcome to the present captain ⏸️ untested no I created a disposable lab home and attempted to launch the installed claude CLI on its private tmux -L fm-lab socket. Tmux refused the worktree-confined socket path with “File name too long”; a s…
A watcher rechecks a captain-held item under quiet, including daemon-backed quiet, but keeps it silent while away ⏸️ untested no The focused watcher checks ran the real watcher against a disposable home but substituted its pane and crew-state backend. I could not establish a worktree-confined private tmux primary because its so…
  • bin/fm-afk-contract.sh enter, mode, and readback against a disposable home, including an attempted quiet entry over an away record

  • bash tests/fm-afk-contract.test.sh

  • bash tests/fm-afk-launch.test.sh

  • FM_TEST_ONLY=test_captain_held_rechecked_under_a_quiet_record bash tests/fm-watch-triage.test.sh

  • FM_TEST_ONLY=test_captain_held_never_rechecked_while_away_record_exists bash tests/fm-watch-triage.test.sh

  • bash tests/fm-supervision-host.test.sh (timed out after reaching the quiet-record and captain-rewake cases)

  • Attempted a disposable real-Claude primary on the lab’s private tmux socket; tmux refused the socket path as too long

  • ⚠️ live validation verdict: inconclusive (1 of 4 scenarios were driven live against the product); untested: A quiet-record host with no daemon delivers a decision and captain outcome to the present captain, A watcher rechecks captain-held work under quiet, including daemon-backed quiet, but suppresses it while away, An opted-in host checkpoint keeps the attended bound under quiet and raises it while away

  • Live validation: ⚠️ inconclusive - 1 of 4 scenarios driven live against the product

Scenario Result Live Evidence
A present captain enters quiet mode and the recorded posture remains quiet rather than away ✅ pass live Claude lab quiet-mode interaction and disposable lab posture CLI output
A quiet-record host with no daemon delivers a decision and captain outcome to the present captain ⏸️ untested no The focused check used a stub engine, not a real host-engine turn. A disposable real-Claude primary was launched and completed a quiet-mode turn, but no verified dialog-mirror and host wake was driven…
A watcher rechecks captain-held work under quiet, including daemon-backed quiet, but suppresses it while away ⏸️ untested no The focused watcher checks used fixture endpoints and did not observe a real endpoint through a complete live recheck. A disposable Claude lab was available but no real worker endpoint and watcher cyc…
An opted-in host checkpoint keeps the attended bound under quiet and raises it while away ⏸️ untested no The checkpoint test substitutes a fixture host. No real lab host park was driven through both bounds; a disposable primary and host would need to be kept running for those timed parks.
  • bash tests/fm-watch-checkpoint.test.sh
  • Focused fm-supervision-host.test.sh cases for quiet-record outcomes, decisions, and Stop-hook rewake
  • Focused fm-watch-triage.test.sh cases for quiet rechecks and away suppression
  • Ran the real Claude CLI in a disposable lab home; entered quiet mode and read back its mode
  • Ran fm-afk-contract.sh against a disposable lab home to compare quiet and away posture
  • Attempted the full host and watcher test scripts; both timed out before completing
✅ **Document** - passed

✅ No issues found.

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Changes how quiet mode records are classified in supervision logic.

The PR appears safe to merge, though the display-tail refresh should preserve its existing copy when a store read fails.

Reviews (2) · Last reviewed commit: "no-mistakes(document): Clarify quiet-rec..."

Comment thread bin/fm-afk-contract.sh
fm_afk_contract_validate "$record" || return 1
fm_afk_contract_log "away posture already recorded at $(fm_afk_contract_read_field "$record" entered); a refresh leaves it untouched"
standing=$(fm_afk_contract_record_mode "$record")
[ "$standing" = quiet ] || FM_AFK_CONTRACT_ENTRY_MODE=away

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Quiet daemon under away record
On a non-host home with a live away record, /quiet proceeds to entry and daemon start. This line keeps the record away, but the quiet procedure passes FM_AFK_MODE=quiet to start or start-native, which writes a quiet daemon flag. The daemon can then operate in quiet mode while record consumers still treat the captain as away. Refuse quiet entry over the away record before the daemon flag can change; the captain’s return must come first.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Known limitation, not fixed in this PR. This /quiet-over-a-live-away-record edge is in the code from #6033 (now on main), not this PR's diff. It is tracked as its own follow-up (fm-quiet-daemon-host-away-handoff-r1, behind AFK rung 3e).

…nd watcher

A quiet record left without its daemon (a quiet start that never ran or was
interrupted) was read as away by the supervision host, so it parked a present
captain's main and held captain outcomes for a return that never comes, and
the watcher and daemon silenced captain-held rechecks on record presence.

The host's posture checks, the watcher's and daemon's captain-held silencing,
and the host's outcome path (branch report, drain BRANCH OUTCOMES, relocated
branch authority, the owners' away wake note, and the Codex checkpoint bound)
now ask the record owner's away-or-quiet reading, so only an away record is
away. A live away record keeps today's behavior.
@kunchenguid
kunchenguid force-pushed the fm/fm-quiet-record-posture-consumers-r1 branch from 8827a5d to b12f916 Compare September 28, 2026 22:44
@kunchenguid kunchenguid changed the title fix: treat quiet records as attended posture fix: treat quiet records as attended across supervision Sep 28, 2026
@kunchenguid
kunchenguid merged commit 2d833ff into main Sep 29, 2026
39 of 40 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-quiet-record-posture-consumers-r1 branch September 29, 2026 00:19
knowttl pushed a commit to knowttl/firstmate that referenced this pull request Sep 29, 2026
…6064)

* fix(bin): read a live quiet record as a present captain at the host and watcher

A quiet record left without its daemon (a quiet start that never ran or was
interrupted) was read as away by the supervision host, so it parked a present
captain's main and held captain outcomes for a return that never comes, and
the watcher and daemon silenced captain-held rechecks on record presence.

The host's posture checks, the watcher's and daemon's captain-held silencing,
and the host's outcome path (branch report, drain BRANCH OUTCOMES, relocated
branch authority, the owners' away wake note, and the Codex checkpoint bound)
now ask the record owner's away-or-quiet reading, so only an away record is
away. A live away record keeps today's behavior.

* no-mistakes(document): Correct quiet-record documentation and supervision guidance

* no-mistakes(document): Clarify quiet-record posture and captain-held rechecks

* no-mistakes(document): Clarify quiet-record posture in documentation
RooseveltAdvisors pushed a commit to RooseveltAdvisors/firstmate that referenced this pull request Sep 29, 2026
…6064)

* fix(bin): read a live quiet record as a present captain at the host and watcher

A quiet record left without its daemon (a quiet start that never ran or was
interrupted) was read as away by the supervision host, so it parked a present
captain's main and held captain outcomes for a return that never comes, and
the watcher and daemon silenced captain-held rechecks on record presence.

The host's posture checks, the watcher's and daemon's captain-held silencing,
and the host's outcome path (branch report, drain BRANCH OUTCOMES, relocated
branch authority, the owners' away wake note, and the Codex checkpoint bound)
now ask the record owner's away-or-quiet reading, so only an away record is
away. A live away record keeps today's behavior.

* no-mistakes(document): Correct quiet-record documentation and supervision guidance

* no-mistakes(document): Clarify quiet-record posture and captain-held rechecks

* no-mistakes(document): Clarify quiet-record posture in documentation
andrewesweet pushed a commit to andrewesweet/firstmate that referenced this pull request Sep 30, 2026
…6064)

* fix(bin): read a live quiet record as a present captain at the host and watcher

A quiet record left without its daemon (a quiet start that never ran or was
interrupted) was read as away by the supervision host, so it parked a present
captain's main and held captain outcomes for a return that never comes, and
the watcher and daemon silenced captain-held rechecks on record presence.

The host's posture checks, the watcher's and daemon's captain-held silencing,
and the host's outcome path (branch report, drain BRANCH OUTCOMES, relocated
branch authority, the owners' away wake note, and the Codex checkpoint bound)
now ask the record owner's away-or-quiet reading, so only an away record is
away. A live away record keeps today's behavior.

* no-mistakes(document): Correct quiet-record documentation and supervision guidance

* no-mistakes(document): Clarify quiet-record posture and captain-held rechecks

* no-mistakes(document): Clarify quiet-record posture in documentation
ironerumi added a commit to ironerumi/firstmate that referenced this pull request Oct 2, 2026