…ness
Add tracked .agents/hooks.json, bin/fm-sessionstart-agy.sh, bin/fm-turnend-guard-agy.sh, PreToolUse --agy seatbelt flags, session-lock agy ancestry, autoarm supervision model, and --secondmate agy workspace trust pre-registration and spawn support.
Intent
Promote Antigravity CLI (agy) in Firstmate from a crewmate/scout-only adapter to a full Firstmate harness supporting Primary Supervisor, Persistent Secondmate (--secondmate agy), and Crewmate/Scout roles.
Requirements and design decisions:
.agents/hooks.jsonusing Antigravity 1.4.9's named hook spec ({"firstmate":{...}}), wiringSessionStarttobin/fm-sessionstart-agy.sh,PreToolUse(run_command|bash|Bashand.*matchers) tobin/fm-arm-pretool-check.sh --agy,bin/fm-cd-pretool-check.sh --agy, andbin/fm-subagent-pretool-check.sh --agy, andStop(withtimeout: 28800) tobin/fm-turnend-guard-agy.sh, with Windowscmd /c-safesh -c "..." || cd .command wrappers.SessionStartrun-tier startup digest delivery inbin/fm-sessionstart-agy.shvia{"injectSteps":[{"systemMessage":{"systemMessage":...}}]}JSON with{}fail-open and worker/gate-worktree skip guards.Stop-hook parked supervision inbin/fm-turnend-guard-agy.shandbin/fm-turnend-guard.sh --agyusing autoarm supervision semantics (polling a tracked backgroundbin/fm-watch-arm.shorbin/fm-supervision-host.sh parkchild, with supersession, session-lock ownership,NO_TOOL_CALLtermination filtering, and loop-ceiling checks) and emitting{"decision":"continue","reason":...}JSON on stdout when continuing or{}when allowing stop.bin/fm-arm-pretool-check.sh,bin/fm-cd-pretool-check.sh, andbin/fm-subagent-pretool-check.shwith--agytransport flags exiting0and emitting{"decision":"deny","reason":...}JSON on stdout for blocked tool calls.bin/fm-session-lock-lib.sh(agyancestor recognition),bin/fm-wake-lib.sh(agyautoarm supervision model),bin/fm-control-lib.sh(agyin primary/secondmate adapter lists),bin/fm-afk-launch.sh(agyinfm_afk_launch_host_primary),bin/fm-agy-trust.sh(--secondmate-homeworkspace trust pre-registration),bin/fm-spawn.sh(--secondmate agytrust pre-seeding), andbin/fm-supervision-instructions.sh(--harness agyprotocol rendering fromdocs/supervision-protocols/agy.mdanddocs/supervision-protocols/supervision-host.md).AGENTS.md,.agents/skills/harness-adapters/*,docs/supervision-protocols/*,docs/supervision-host.md,docs/verification/agy.md,docs/sessionstart-nudge.md,docs/turnend-guard.md,docs/arm-pretool-check.md,docs/subagent-guard.md,docs/documentation-audiences.json, anddocs/fm-test-portable-shards.md) and registertests/fm-agy-primary.test.shandtests/fm-agy-primary-live-e2e.test.shinbin/fm-test-run.sh.What Changed
.agents/hooks.jsonusing the live-verified{"firstmate":{...}}named hook spec and Windowscmd /c-safesh -c "..." || cd .commands.SessionStartrunsbin/fm-sessionstart-agy.sh, delivering the startup digest viainjectSteps[].systemMessage.systemMessage, failing open with{}, and skipping worker and gate worktrees. ThePreToolUsehooks callfm-arm-pretool-check.sh,fm-cd-pretool-check.sh, andfm-subagent-pretool-check.shwith--agy, blocking disallowed tool calls by printing{"decision":"deny","reason":...}and exiting0.Stoprunsbin/fm-turnend-guard-agy.sh(andfm-turnend-guard.sh --agy), parking on a tracked backgroundfm-watch-arm.sh/fm-supervision-host.sh parkcycle and returning{"decision":"continue","reason":...}on actionable wakes or repair notices.--secondmate: the session-lock, wake, away-launch (fm_afk_launch_host_primary), and control libraries accept agy as a primary/secondmate adapter.fm-agy-trust.shgains--secondmate-home <home> <id>mode, which pre-registers workspace trust for a seeded secondmate home after checking its marker, ownership, and directory layout.fm-spawn.shpre-seeds that trust for--secondmate agy, andfm-supervision-instructions.sh --harness agyrendersdocs/supervision-protocols/agy.mdanddocs/supervision-protocols/supervision-host.md.tests/fm-agy-primary.test.sh) and live E2E tests (tests/fm-agy-primary-live-e2e.test.sh) and registers both inbin/fm-test-run.sh. Updates the README, AGENTS.md, harness-adapter skill references, hook/guard docs,docs/supervision-host.md,docs/verification/agy.md, and the documentation audience inventory to show agy as a verified primary and secondmate harness.Risk Assessment
🟢 Low:
All hook schemas, JSON payload contracts (
injectSteps,decision: "continue",decision: "deny"), Stop-hook watcher parking (fm-watch-arm.sh/fm-supervision-host.sh park), and--secondmate agytrust pre-seeding are verified both by portable behavior suites (tests/fm-agy-primary.test.sh,tests/fm-afk-launch.test.sh) and end-to-end against the realagy 1.4.9binary (tests/fm-agy-primary-live-e2e.test.sh,tests/fm-agy-signals-live-e2e.test.sh).Testing
I ran the 4 targeted portable suites, the coverage check and the doc-audience check, and all exited 0. They use fixtures rather than the live product, so they are not counted as live validation. Both live E2E suites passed against the real agy 1.4.9 binary. The primary suite covered SessionStart digest injection and lock, a PreToolUse deny with positive BLOCKED/[watcher-direct] evidence, the Stop-hook park, and the --secondmate agy launch with pre-seeded trust. The signals suite covered busy-footer detection, launch-prompt processing, the Escape cancel and /quit. I also ran a short fm-lab tmux agy primary from the gate worktree under an isolated HOME. Isolating HOME meant the operator's real ~/.gemini trust store was never written. The run confirmed the linked-worktree skip guard: the hook returned no digest and wrote no state, and the session kept working. The lab was torn down in the same turn and the worktree is clean. This is a CLI/hook change with no rendered UI, so the evidence is CLI transcripts and tmux pane captures.
Evidence: Live agy primary E2E transcript (SessionStart, PreToolUse deny, Stop park, secondmate trust launch)
Source: Live agy primary E2E transcript (SessionStart, PreToolUse deny, Stop park, secondmate trust launch)
Evidence: Live agy signals E2E transcript
Source: Live agy signals E2E transcript
Evidence: fm-lab agy primary in gate worktree: SessionStart stand-down pane capture
Source: fm-lab agy primary in gate worktree: SessionStart stand-down pane capture
Evidence: Portable agy primary suite output
Source: Portable agy primary suite output
Evidence: Portable agy harness suite output
Source: Portable agy harness suite output
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-turnend-guard-agy.sh:91- The Stop-hook park callsbin/fm-watch.sh --timeout Ndirectly and branches on exit codes 0, 2 and 3. The real bin/fm-watch.sh does not parse--timeout(it ignores arguments). It never exits 2 or 3, and it exits 0 withwatcher: already running pid Nwhenever another watcher holds state/.watch.lock (bin/fm-watch.sh:3365-3390). Concrete paths: (a) a watcher is already running, so rc=0 and the hook returns {decision:continue, reason:'watcher: already running pid N'}. That fakes a wake, starts a new turn, and loops until the executionNum ceiling. (b) No watcher is running, so fm-watch.sh blocks with no bound until a wake arrives. The 360s hooks.json timeout kills the hook, which bypasses the 2→re-park and 3→fleet-empty branches entirely. Those branches are dead code. tests/fm-agy-primary.test.sh:103-150 stubs fm-watch.sh with invented exit codes, so the suite cannot catch this. The park also bypasses bin/fm-watch-arm.sh (the arm-command policy says fm-watch.sh must not be run directly; docs/supervision-protocols/agy.md:28 claims the hook runs fm-watch-arm.sh). Fix: park on bin/fm-watch-arm.sh, or on bin/fm-supervision-host.sh when the host is enabled, the way bin/fm-turnend-guard-cursor.sh:317-335 does. Bound the park with its own timer and classify outcomes from the arm's output rather than invented exit codes. Rewrite the tests to use the real watcher contract.bin/fm-sessionstart-agy.sh:47- Several required intent constraints are contradicted. (1) Intent: SessionStart delivers the digest 'via hookSpecificOutput.additionalContext JSON'. The diff emits{injectSteps:[{systemMessage:{systemMessage:$msg}}]}(bin/fm-sessionstart-agy.sh:47). (2) Intent: the Stop hook translates non-empty stdout 'to decision: block JSON on stdout'. The diff emits{decision:"continue",reason:...}(bin/fm-turnend-guard-agy.sh wake/timeout branches; bin/fm-turnend-guard.sh block_stop agy branch). (3) Intent: the --agy pretool checks emit 'permissionDecision: deny on stdout'. The diff emits{decision:"deny",reason:...}(bin/fm-arm-pretool-check.sh:198,233; bin/fm-cd-pretool-check.sh:198; bin/fm-subagent-pretool-check.sh:217). (4) Intent: the PreToolUse matchers are 'run_command and invoke_subagent'. .agents/hooks.json:17 usesrun_command|bash|Bashand :32 uses.*, so the subagent guard runs on every tool call. The shapes the author used may reflect verified agy 1.4.9 behaviour, but they conflict with the stated acceptance criteria, so a human needs to decide which is authoritative.bin/fm-supervision-instructions.sh:745- agy was added to the host-snippet harness list, and docs/supervision-protocols/supervision-host.md:4 now tells an agy primary that 'The Stop-hook park runs the supervision host in the arm's place' and that 'Only a wake the host hands back reaches you'. bin/fm-turnend-guard-agy.sh never checks fm_supervision_host_enabled and never runs bin/fm-supervision-host.sh. On a home with config/supervision-host, the rendered protocol (and the agy repair line at bin/fm-supervision-instructions.sh:229-234) therefore describes a host that never runs. Either run the host from the park as the Cursor guard does, or drop agy from the host lists.bin/fm-inbox.sh:895- agy now maps to the autoarm supervision model in fm_supervision_model (bin/fm-wake-lib.sh:289) and in bin/fm-spawn.sh:7019. bin/fm-inbox.sh's lock-holder model resolution still maps onlyclaude|cursorto autoarm, so an agy lock holder resolves topersistent. The inbox consumer verdict for an agy primary or secondmate home then demands a live watcher process instead of the autoarm fresh-beacon rule, and reports supervision unhealthy between parks. Add agy to that case.bin/fm-arm-pretool-check.sh:187- The new agy-only 'manual-arm-redundant' deny is not required by the intent, which asks only for a --agy transport flag. It matches*fm-watch-arm.sh*anywhere in the command string. While a watcher is healthy, it therefore also deniesbin/fm-watch-arm.sh --stop,--restart,--take-over, and read-only commands such ascat bin/fm-watch-arm.shorgit log -- bin/fm-watch-arm.sh, before the shared policy (bin/fm-arm-command-policy.mjs) classifies them. Recommend removing this agy-specific branch and leaving classification to the shared policy.bin/fm-turnend-guard-agy.sh:64- When executionNum reaches the ceiling (default 4), the hook returns {} before checking whether supervision is needed. It neither parks nor routes through the bounded repair nag. If executionNum counts consecutive hook-continued turns, then after about 4 park cycles with crewmates still in flight the turn ends with no watcher. This is the 'turn would end blind' state the guard exists to prevent, and it happens silently. The ceiling semantics and the fallback (for example, delegating to fm-turnend-guard.sh --agy) need a product decision.tests/fm-agy-primary-live-e2e.test.sh:52- Intent requires comprehensive live E2E suites against agy 1.4.9. The live test only exercises SessionStart digest injection. It never drives the Stop-hook park, the PreToolUse denies, or a --secondmate agy launch against a real agy binary, which is why the fm-watch.sh exit-code mismatch above went undetected. It also hardcodes--model gemini-3.8-flash-low.bin/fm-spawn.sh:6584- New fallbacks resolve fm-git-strip-ai-trailers.sh (and fm-agy-trust.sh at :5729-5730) from $SCRIPT_DIR when $FM_ROOT/bin lacks the script. The strip-hook fallback applies to every harness and no intent requirement needs it; it appears to exist only for the test fixture's FM_ROOT_OVERRIDE=''. Recommend removing it, or narrowing it to what the agy secondmate path strictly needs.bin/fm-subagent-pretool-check.sh:162- The newcase managesubagents|managetask) exit 0duplicates the OBSERVE_ONLY_TOOLS entries added at :66. Themanage_subagents/manage_taskentries can never match, because NORMALIZED strips underscores (:151). Keep onlymanagesubagents managetaskin OBSERVE_ONLY_TOOLS and drop the extra case block.docs/supervision-protocols/agy.md:13- Several doc claims do not match the code. agy.md:13 says the park 'polls at FM_AGY_PARK_POLL seconds up to FM_AGY_PARK_TIMEOUT', but the code uses a single value with POLL overriding TIMEOUT. agy.md:28 says the hook runs fm-watch-arm.sh as its tracked child, but it runs fm-watch.sh. docs/sessionstart-nudge.md:377 says the wrapper sources fm-primary-scope-lib.sh and captures output from fm-session-start.sh, but it only calls fm-sessionstart-run.sh, which owns scope. docs/arm-pretool-check.md and docs/subagent-guard.md describe thedecision:denyshape, which conflicts with the intent'spermissionDecisionshape.🔧 Fix applied.
9 issues (2 errors, 6 warnings, 1 info) still open:
bin/fm-turnend-guard-agy.sh:91- The Stop-hook park callsbin/fm-watch.sh --timeout Ndirectly and branches on exit codes 0, 2 and 3. The real bin/fm-watch.sh does not parse--timeout(it ignores arguments). It never exits 2 or 3, and it exits 0 withwatcher: already running pid Nwhenever another watcher holds state/.watch.lock (bin/fm-watch.sh:3365-3390). Concrete paths: (a) a watcher is already running, so rc=0 and the hook returns {decision:continue, reason:'watcher: already running pid N'}. That fakes a wake, starts a new turn, and loops until the executionNum ceiling. (b) No watcher is running, so fm-watch.sh blocks with no bound until a wake arrives. The 360s hooks.json timeout kills the hook, which bypasses the 2→re-park and 3→fleet-empty branches entirely. Those branches are dead code. tests/fm-agy-primary.test.sh:103-150 stubs fm-watch.sh with invented exit codes, so the suite cannot catch this. The park also bypasses bin/fm-watch-arm.sh (the arm-command policy says fm-watch.sh must not be run directly; docs/supervision-protocols/agy.md:28 claims the hook runs fm-watch-arm.sh). Fix: park on bin/fm-watch-arm.sh, or on bin/fm-supervision-host.sh when the host is enabled, the way bin/fm-turnend-guard-cursor.sh:317-335 does. Bound the park with its own timer and classify outcomes from the arm's output rather than invented exit codes. Rewrite the tests to use the real watcher contract.bin/fm-sessionstart-agy.sh:47- Several required intent constraints are contradicted. (1) Intent: SessionStart delivers the digest 'via hookSpecificOutput.additionalContext JSON'. The diff emits{injectSteps:[{systemMessage:{systemMessage:$msg}}]}(bin/fm-sessionstart-agy.sh:47). (2) Intent: the Stop hook translates non-empty stdout 'to decision: block JSON on stdout'. The diff emits{decision:"continue",reason:...}(bin/fm-turnend-guard-agy.sh wake/timeout branches; bin/fm-turnend-guard.sh block_stop agy branch). (3) Intent: the --agy pretool checks emit 'permissionDecision: deny on stdout'. The diff emits{decision:"deny",reason:...}(bin/fm-arm-pretool-check.sh:198,233; bin/fm-cd-pretool-check.sh:198; bin/fm-subagent-pretool-check.sh:217). (4) Intent: the PreToolUse matchers are 'run_command and invoke_subagent'. .agents/hooks.json:17 usesrun_command|bash|Bashand :32 uses.*, so the subagent guard runs on every tool call. The shapes the author used may reflect verified agy 1.4.9 behaviour, but they conflict with the stated acceptance criteria, so a human needs to decide which is authoritative.bin/fm-supervision-instructions.sh:745- agy was added to the host-snippet harness list, and docs/supervision-protocols/supervision-host.md:4 now tells an agy primary that 'The Stop-hook park runs the supervision host in the arm's place' and that 'Only a wake the host hands back reaches you'. bin/fm-turnend-guard-agy.sh never checks fm_supervision_host_enabled and never runs bin/fm-supervision-host.sh. On a home with config/supervision-host, the rendered protocol (and the agy repair line at bin/fm-supervision-instructions.sh:229-234) therefore describes a host that never runs. Either run the host from the park as the Cursor guard does, or drop agy from the host lists.bin/fm-turnend-guard-agy.sh:64- When executionNum reaches the ceiling (default 4), the hook returns {} before checking whether supervision is needed. It neither parks nor routes through the bounded repair nag. If executionNum counts consecutive hook-continued turns, then after about 4 park cycles with crewmates still in flight the turn ends with no watcher. This is the 'turn would end blind' state the guard exists to prevent, and it happens silently. The ceiling semantics and the fallback (for example, delegating to fm-turnend-guard.sh --agy) need a product decision.tests/fm-agy-primary-live-e2e.test.sh:52- Intent requires comprehensive live E2E suites against agy 1.4.9. The live test only exercises SessionStart digest injection. It never drives the Stop-hook park, the PreToolUse denies, or a --secondmate agy launch against a real agy binary, which is why the fm-watch.sh exit-code mismatch above went undetected. It also hardcodes--model gemini-3.8-flash-low..agents/hooks.json:2- This is an intent-conformance question. The intent says to 'Ship tracked project-local hooks in .agents/hooks.json (version 1)', and the recorded human decision says to keep the.agents/hooks.jsonmatchers 'unchanged'. Fix round 418a5af nonetheless replaced{"version":1,"hooks":{...}}with a single named spec{"firstmate":{...}}. It also flattened SessionStart and Stop to bare handler lists while PreToolUse keeps thematcher/hooksgroups. The fixer justifies this in .agents/skills/harness-adapters/references/harness/agy.md:54 ('any other top-level key, such as a version field, silently disables the whole file (verified live)'). The unit test at tests/fm-agy-primary.test.sh:198-205 was rewritten in the same round to assert the new shape, so it is not independent evidence. A human needs to confirm whether the live-verified agy 1.4.9 schema supersedes the 'version 1' wording in the intent. If it does not, revert the shape to the original version-1 file.bin/fm-turnend-guard-agy.sh:144- PARK_TIMEOUT (330s) is reset for each arm attempt (waited=0sits inside theattemptloop at :134-144), and ARM_ATTEMPTS=2. The hook timeout in .agents/hooks.json is 360s. Concrete case: attempt 1 attaches to an existing cycle, and after about 300s fm-watch-arm.sh exits with 'FAILED - attached watcher ... stalled' or 'cycle ended without an actionable reason'. If no healthy watcher remains, attempt 2 starts with another 330s budget. agy then kills the hook mid-park, at about 360s, before it can emit the[supervision-park]continue or reach the repair nag. The EXIT trap may not run, leaving the arm child and.agy-park-output.*behind. This defect is in code added by fix round 418a5af, which ported the Cursor park loop but added a per-attempt bound. The Cursor guard has no hook-timeout budget, so it never needed one. Fix: compute one deadline before the attempt loop (for exampleDEADLINE=$((SECONDS + PARK_TIMEOUT))) and checkSECONDS -ge DEADLINEin the poll loop. Skip the retry when too little budget remains.bin/fm-turnend-guard-agy.sh:154- Every idle park timeout returns{decision:"continue",reason:"[supervision-park] ..."}, which forces another hook-driven turn and raises executionNum. LOOP_CEILING defaults to 4 (:48). Cursor's equivalent ceiling defaults to 180. Concrete case: a primary has crewmates in flight for an hour and no wakes arrive. Parks 1-3 time out (about 330s each), executionNum 4 gets the one-time 'CEILING REACHED' notice (:103), and executionNum 5 returns{}. From then on no Stop-hook park delivers wakes until the captain sends a message, so supervision goes dark after about 20 minutes of quiet. The original commit used the same< 4ceiling, and fix round 418a5af kept it while adding the notice. Whether timeout re-parks should count toward the ceiling, or whether the ceiling should be raised (and to what agy's forced-invocation cap allows), is a product decision.tests/fm-agy-primary-live-e2e.test.sh:92- The live PreToolUse deny check, added in fix round 418a5af, only asserts thatstate/live-deny-ranis absent. That also passes when the model declines or never issues the command, so a broken or unregistered PreToolUse hook still passes. Also assert that the output carries the deny evidence:BLOCKEDtogether with the[watcher-direct]reason code that the hook returns.🔧 Fix applied.
4 issues (1 error, 2 warnings, 1 info) still open:
bin/fm-sessionstart-agy.sh:47- Several required intent constraints are contradicted. (1) Intent: SessionStart delivers the digest 'via hookSpecificOutput.additionalContext JSON'. The diff emits{injectSteps:[{systemMessage:{systemMessage:$msg}}]}(bin/fm-sessionstart-agy.sh:47). (2) Intent: the Stop hook translates non-empty stdout 'to decision: block JSON on stdout'. The diff emits{decision:"continue",reason:...}(bin/fm-turnend-guard-agy.sh wake/timeout branches; bin/fm-turnend-guard.sh block_stop agy branch). (3) Intent: the --agy pretool checks emit 'permissionDecision: deny on stdout'. The diff emits{decision:"deny",reason:...}(bin/fm-arm-pretool-check.sh:198,233; bin/fm-cd-pretool-check.sh:198; bin/fm-subagent-pretool-check.sh:217). (4) Intent: the PreToolUse matchers are 'run_command and invoke_subagent'. .agents/hooks.json:17 usesrun_command|bash|Bashand :32 uses.*, so the subagent guard runs on every tool call. The shapes the author used may reflect verified agy 1.4.9 behaviour, but they conflict with the stated acceptance criteria, so a human needs to decide which is authoritative.bin/fm-supervision-instructions.sh:745- agy was added to the host-snippet harness list, and docs/supervision-protocols/supervision-host.md:4 now tells an agy primary that 'The Stop-hook park runs the supervision host in the arm's place' and that 'Only a wake the host hands back reaches you'. bin/fm-turnend-guard-agy.sh never checks fm_supervision_host_enabled and never runs bin/fm-supervision-host.sh. On a home with config/supervision-host, the rendered protocol (and the agy repair line at bin/fm-supervision-instructions.sh:229-234) therefore describes a host that never runs. Either run the host from the park as the Cursor guard does, or drop agy from the host lists..agents/hooks.json:2- This is an intent-conformance question. The intent says to 'Ship tracked project-local hooks in .agents/hooks.json (version 1)', and the recorded human decision says to keep the.agents/hooks.jsonmatchers 'unchanged'. Fix round 418a5af nonetheless replaced{"version":1,"hooks":{...}}with a single named spec{"firstmate":{...}}. It also flattened SessionStart and Stop to bare handler lists while PreToolUse keeps thematcher/hooksgroups. The fixer justifies this in .agents/skills/harness-adapters/references/harness/agy.md:54 ('any other top-level key, such as a version field, silently disables the whole file (verified live)'). The unit test at tests/fm-agy-primary.test.sh:198-205 was rewritten in the same round to assert the new shape, so it is not independent evidence. A human needs to confirm whether the live-verified agy 1.4.9 schema supersedes the 'version 1' wording in the intent. If it does not, revert the shape to the original version-1 file.docs/verification/agy.md:162- Fix round 941141c made the park unbounded by default (FM_AGY_PARK_TIMEOUTnow defaults to 0, under the 28800s hook timeout). It updated docs/supervision-protocols/agy.md, docs/turnend-guard.md and the harness-adapters agy reference, but left this sibling behind. The line still says the park runs 'until woken by an incoming event or its bounded park timeout', which implies a default bound that no longer exists. Reword it to say the park waits under the 28800s hook timeout and is bounded only when the optionalFM_AGY_PARK_TIMEOUTis set. No other stale references remain: grepping for 'default 330', '360s' and 'default 4)' finds nothing.🔧 Fix applied.
3 issues (1 error, 2 warnings) still open:
bin/fm-sessionstart-agy.sh:47- Several required intent constraints are contradicted. (1) Intent: SessionStart delivers the digest 'via hookSpecificOutput.additionalContext JSON'. The diff emits{injectSteps:[{systemMessage:{systemMessage:$msg}}]}(bin/fm-sessionstart-agy.sh:47). (2) Intent: the Stop hook translates non-empty stdout 'to decision: block JSON on stdout'. The diff emits{decision:"continue",reason:...}(bin/fm-turnend-guard-agy.sh wake/timeout branches; bin/fm-turnend-guard.sh block_stop agy branch). (3) Intent: the --agy pretool checks emit 'permissionDecision: deny on stdout'. The diff emits{decision:"deny",reason:...}(bin/fm-arm-pretool-check.sh:198,233; bin/fm-cd-pretool-check.sh:198; bin/fm-subagent-pretool-check.sh:217). (4) Intent: the PreToolUse matchers are 'run_command and invoke_subagent'. .agents/hooks.json:17 usesrun_command|bash|Bashand :32 uses.*, so the subagent guard runs on every tool call. The shapes the author used may reflect verified agy 1.4.9 behaviour, but they conflict with the stated acceptance criteria, so a human needs to decide which is authoritative.bin/fm-supervision-instructions.sh:745- agy was added to the host-snippet harness list, and docs/supervision-protocols/supervision-host.md:4 now tells an agy primary that 'The Stop-hook park runs the supervision host in the arm's place' and that 'Only a wake the host hands back reaches you'. bin/fm-turnend-guard-agy.sh never checks fm_supervision_host_enabled and never runs bin/fm-supervision-host.sh. On a home with config/supervision-host, the rendered protocol (and the agy repair line at bin/fm-supervision-instructions.sh:229-234) therefore describes a host that never runs. Either run the host from the park as the Cursor guard does, or drop agy from the host lists..agents/hooks.json:2- This is an intent-conformance question. The intent says to 'Ship tracked project-local hooks in .agents/hooks.json (version 1)', and the recorded human decision says to keep the.agents/hooks.jsonmatchers 'unchanged'. Fix round 418a5af nonetheless replaced{"version":1,"hooks":{...}}with a single named spec{"firstmate":{...}}. It also flattened SessionStart and Stop to bare handler lists while PreToolUse keeps thematcher/hooksgroups. The fixer justifies this in .agents/skills/harness-adapters/references/harness/agy.md:54 ('any other top-level key, such as a version field, silently disables the whole file (verified live)'). The unit test at tests/fm-agy-primary.test.sh:198-205 was rewritten in the same round to assert the new shape, so it is not independent evidence. A human needs to confirm whether the live-verified agy 1.4.9 schema supersedes the 'version 1' wording in the intent. If it does not, revert the shape to the original version-1 file.🔧 **Test** - 1 issue found → no changes applied ✅
🔧 No changes applied.
✅ Re-checked - no issues remain.
./tests/fm-agy-primary.test.sh./tests/fm-agy-harness.test.sh./tests/fm-supervision-instructions.test.sh./tests/fm-turnend-guard.test.sh./bin/fm-test-run.sh --check-coverage./bin/fm-doc-audience-check.shFM_AGY_PRIMARY_LIVE=1 ./tests/fm-agy-primary-live-e2e.test.shFM_AGY_SIGNALS_LIVE=1 ./tests/fm-agy-signals-live-e2e.test.shfm-lab tmux primary:bin/fm-lab-home.sh create $LAB+tmux -L fm-lab new-session ... -e FM_HOME=$LAB -e HOME=$LAB/user-home agyfrom the gate worktree, prompted for startup digest, inspected $LAB/state, ranbin/fm-sessionstart-agy.shdirectly, thentmux -L fm-lab kill-serverandrm -rf $LAB✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.