Skip to content
This repository was archived by the owner on Nov 5, 2026. It is now read-only.

feat(harness): verify agy (Antigravity) as a crewmate and scout adapter - #1

Merged
auss merged 13 commits into
mainfrom
fm/fm-agy-adapter
Sep 12, 2026
Merged

auss merged 13 commits into
mainfrom
fm/fm-agy-adapter

Conversation

@auss

@auss auss commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Intent

Captain (2026-09-10 ~17:35 UTC), answering firstmate's proposal to verify Antigravity (agy) as a worker runtime in firstmate, so the fleet has capacity in reserve when Claude and Codex quotas are exhausted: "tak, zlec" (yes, commission it). The proposal's scope: full adapter verification of agy per the harness-adapters contract - detection, spawn, busy state, composer, lifecycle, live guard. Installed agy 1.2.0 offers --model, --effort low|medium|high, --prompt-interactive, --continue/--conversation, and --dangerously-skip-permissions. Captain (~17:45 UTC), on how to deliver it given there is no push access to kunchenguid/firstmate: "2. Fork i PR" - push to the fork https://github.com/auss/firstmate and open a public PR against kunchenguid/firstmate. Captain (18:45 UTC), choosing the worker model: "ok, pusc astre". Captain (2026-09-1112): run the real agy end-to-end test with recorded evidence, then finish validation. Captain (2026-09-12 ~11): implement agy quota-fallback support as a quickfix - provider mapping agy in fm-quota-choose.sh, quota source agy-cli-manager with short_usage_value and weekly_usage_value meaning percent REMAINING, and test coverage replacing the old rejection. Captain (2026-09-12): resume and finish the validation, then put the PR up in our own repository (auss/firstmate).

What Changed

  • Added the Antigravity CLI (agy) as a verified crewmate/scout adapter: detection via the ANTIGRAVITY_AGENT=1 marker and agy process name, a spawn template using --dangerously-skip-permissions --prompt-interactive with --model and --effort low|medium|high, Escape interrupt and /exit control verbs, secondmate launches refused like muse/gemini, and busy state reported as unknown agy-unverified until a semantic source is verified.
  • Taught the shared composer classifier agy's > composer inside solid rule pairs, accepting both the 1.2.0 ? for shortcuts footer and the 1.2.1 constant status bar anchored on | ctx:, and extended the shared ghost stripper with an opt-in palette-index foreground class (38;5;8) so agy's de-emphasized mode placeholder never reads as typed input; the tmux liveness detector and crew-dispatch/bootstrap harness enumeration now include agy.
  • Mapped agy to the agy provider in fm-quota-choose.sh (percent-remaining semantics from agy-cli-manager) so it participates in quota-fallback worker selection, replacing the previous rejection, and pinned the adapter with new portable (tests/fm-agy-harness.test.sh) and live (tests/fm-agy-signals-live-e2e.test.sh) tests plus a verified tool record (.agents/skills/harness-adapters/references/harness/agy.md) and dated live-guard evidence in docs/verification/runtime-backends.md.

Risk Assessment

✅ Low: The change is a well-bounded adapter verification whose review-prescribed fixes all landed exactly as authorized; the last fixer commit strictly deleted duplicated machinery while manual tracing confirmed both default and agy-specific stripping behavior is preserved, leaving no substantiated defect.

Testing

Drove the full live agy adapter surface against the real product: the captain-ordered live guard ran a real agy 1.2.2 scout end-to-end (launch, trust, detection, composer, interrupt, exit, relaunch) and passed, real-agy liveness was verified through both the tmux backend and the shared process classifier, and quota fallback was exercised with the real agy-cli-manager quota through the real chooser; every targeted portable suite passed with no failures. Two supporting behaviors — bootstrap crew-dispatch acceptance of agy rules and the fm-spawn agy launch profile flags — were covered only by portable fixture suites and remain live-untested.

  • Live validation: ✅ go - 5 of 7 scenarios driven live against the product
Scenario Result Live Evidence
A real agy scout launched via fm-spawn through an isolated Herdr lab session completes the canonical lifecycle: folder trust accepted, in-tool harness self-detection returns agy, live composer reads e… ✅ pass live FM_AGY_LIVE=1 bin/fm-test-run.sh tests/fm-agy-signals-live-e2e.test.sh against real Antigravity CLI 1.2.2 (artifact: Live e2e guard)
fm-harness.sh detects agy: the ANTIGRAVITY_AGENT marker outranks an inherited Claude marker, an invalid marker value is rejected, and a real agy-named parent process is detected by ancestry ✅ pass live Direct drives of bin/fm-harness.sh in artifact: Manual live drives; also exercised inside the real agy tool process by the live e2e
A live agy TUI pane classifies alive through the real tmux backend (default backend) and the shared process classifier classifies the real agy process comm as agent, while agy-containing decoy names s… ✅ pass live Real agy binary launched in a real private tmux server: comm=agy -> state=alive; shared classifier agy -> agent, agyw/magyar -> other (artifact: Manual live drives; suite: tmux liveness)
Quota fallback selects agy from the real agy-cli-manager quota (percent-remaining semantics) when Claude and Codex are exhausted, and an exhausted agy row makes a later candidate win ✅ pass live bin/fm-quota-choose.sh driven with a schema-5 snapshot whose agy row carries the live agy-cli-manager refresh-usage values: healthy 81.59% remaining -> 'agy default'; exhausted_now -> 'pi default' (ar…
agy composer contract: the palette-8 mode placeholder is never read as typed input while bold typed input reads pending, across the recorded 1.2.0 placeholder and 1.2.1 status-bar shapes, with fleet-w… ✅ pass live Live composer empty/pending asserted through fm_backend_herdr_composer_state in the live e2e; 1.2.0/1.2.1 recorded shapes via tests/fm-agy-harness.test.sh and default-caller invariance via tests/fm-co…
Session bootstrap accepts a config/crew-dispatch.json dispatch rule naming agy (no false 'unverified harness: agy' diagnostic; unsupported agy:xhigh still flagged) ⏸️ untested no The prior payload recorded only the portable suite tests/fm-bootstrap.test.sh driving bin/fm-bootstrap.sh over fixture homes; it did not drive a real session bootstrap on the running product for this…
fm-spawn launch profile for agy carries the model and supported effort flags, omits unsupported efforts, stays worker-only, and does not touch Gemini project settings ⏸️ untested no The prior payload recorded only fixture-level profile assertions in tests/fm-spawn-dispatch-profile.test.sh; although the live e2e launched agy via fm-spawn with --effort low, it did not observe this…
Evidence: Live e2e guard: real agy 1.2.2 canonical launch, composer, interrupt, exit and relaunch

Source: Live e2e guard: real agy 1.2.2 canonical launch, composer, interrupt, exit and relaunch

spawned probe harness=agy kind=scout window=fm-lab-agy-live-1783276-7763:w1:p1 interrupt-delivered probe harness=agy backend=herdr verified=agent-alive cancel=unconfirmed relaunched probe harness=agy from=agy model=default effort=low backend=herdr ok - agy 1.2.2 canonical launch, composer, interrupt, exit and relaunch

FM_TEST_BEGIN 2026-09-12T18:21:17Z tests/fm-agy-signals-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 task(s) in flight, but no live watcher process holds this home lock (last beat: 1s ago).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  repair a missing or failed watcher cycle with the Pi tool fm_watch_arm_pi, or restart Pi with -e ~/.no-mistakes/worktrees/c7b2df826ee7/01M2B62X88FW9RW8SPSPYFE8TZ/.pi/extensions/fm-primary-turnend-guard.ts -e ~/.no-mistakes/worktrees/c7b2df826ee7/01M2B62X88FW9RW8SPSPYFE8TZ/.pi/extensions/fm-primary-pi-watch.ts if the extensions are not loaded.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
spawned probe harness=agy kind=scout window=fm-lab-agy-live-1783276-7763:w1:p1 worktree=/tmp/fm-agy-live.vaS2wq/wt
interrupt-delivered probe harness=agy backend=herdr verified=agent-alive cancel=unconfirmed
stopped probe harness=agy backend=herdr endpoint=fm-lab-agy-live-1783276-7763:w1:p1 worktree=/tmp/fm-agy-live.vaS2wq/wt
WARNING: watcher still down (same stale episode; last beat: 20s ago, grace 300s) - full banner already printed this episode.
relaunched probe harness=agy from=agy model=default effort=low backend=herdr endpoint=fm-lab-agy-live-1783276-7763:w1:p1 worktree=/tmp/fm-agy-live.vaS2wq/wt
stopped probe harness=agy backend=herdr endpoint=fm-lab-agy-live-1783276-7763:w1:p1 worktree=/tmp/fm-agy-live.vaS2wq/wt
ok - agy 1.2.2 canonical launch, composer, interrupt, exit and relaunch
FM_TEST_END 2026-09-12T18:21:53Z tests/fm-agy-signals-live-e2e.test.sh exit=0 duration_ms=36017 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=36141
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=36017 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-agy-signals-live-e2e.test.sh duration_ms=36017
Evidence: Manual live drives: real agy tmux liveness, shared classifier, detection, and real-quota fallback

Source: Manual live drives: real agy tmux liveness, shared classifier, detection, and real-quota fallback

real agy pane pid=1801012 comm=agy -> tmux backend state=alive shared classifier: agy -> agent chooser (claude, codex exhausted; real agy 81.59% remaining): agy default chooser (agy exhausted_now): pi default ALL MANUAL LIVE DRIVES PASSED

real agy pane pid=1801012 comm=agy -> tmux backend state=alive
ok - real agy TUI classifies alive through the real tmux backend
shared classifier: agy -> agent
ok - shared process classifier classifies the real agy comm as agent
ok - agy-containing decoy names stay non-agent in the shared classifier
ok - fm-harness.sh: marker outranks inherited claude marker, invalid marker rejected, real ancestry detected
agy-cli-manager real output:
{
  "account": "[email protected]",
  "bucket_count": 2,
  "plan_type": null,
  "project_id": "aicode-consumers",
  "prompt_credits_available": null,
  "prompt_credits_monthly": null,
  "short_reset_at": "2026-09-12T22:57:06+00:00",
  "short_usage_status": "known",
  "short_usage_value": 89.62,
  "source_home": "~",
  "weekly_reset_at": "2026-09-19T11:15:52+00:00",
  "weekly_usage_status": "known",
  "weekly_usage_value": 81.59
}
real agy effective percent remaining (min of short/weekly): 81.59
chooser (claude, codex exhausted; real agy 81.59% remaining): agy default
ok - quota fallback selects agy from the real agy-cli-manager quota when claude/codex are exhausted
chooser (agy exhausted_now): pi default
ok - exhausted agy quota yields to the later candidate
ALL MANUAL LIVE DRIVES PASSED
Evidence: Portable agy contract suite (detection, worker-only lifecycle, 1.2.0/1.2.1 composer shapes)

Source: Portable agy contract suite (detection, worker-only lifecycle, 1.2.0/1.2.1 composer shapes)

FM_TEST_BEGIN 2026-09-12T18:15:22Z tests/fm-agy-harness.test.sh family=pure-contract-unit expected_gate_skip=none
ok - agy native marker and executable ancestry work independently
ok - agy lifecycle is worker-only and busy state remains unknown
ok - agy composer requires identity, container and footer together
ok - agy palette placeholder stays ghost while typed input stays pending
ok - agy 1.2.1 status-bar footer carries both idle and typed verdicts
FM_TEST_END 2026-09-12T18:15:23Z tests/fm-agy-harness.test.sh exit=0 duration_ms=731 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=883
FM_TEST_SUMMARY_FAMILY family=pure-contract-unit count=1 duration_ms=731 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-agy-harness.test.sh duration_ms=731
Evidence: Composer ghost/lib suites after the shared palette-class stripper fold

Source: Composer ghost/lib suites after the shared palette-class stripper fold

FM_TEST_BEGIN 2026-09-12T18:15:26Z tests/fm-composer-ghost.test.sh family=pure-contract-unit expected_gate_skip=none
FM_TEST_BEGIN 2026-09-12T18:15:26Z tests/fm-composer-lib.test.sh family=pure-contract-unit expected_gate_skip=none
ok - fm_tmux_strip_ghost drops dim/faint runs, keeps normal and bold text
ok - fm_tmux_strip_ghost handles combined SGR, ESC[22m, and reset-then-dim
ok - fm_tmux_strip_ghost keeps bright colored text with 2 payloads
ok - fm_tmux_strip_ghost drops a dark/muted truecolor foreground (grok placeholder)
ok - fm_tmux_strip_ghost keeps muse's near-threshold glyph and its typed text
ok - fm_pane_input_pending: a dim ghost-only composer is NOT pending
ok - fm_pane_input_pending: dim ghost inside a bordered composer is NOT pending
ok - fm_pane_input_pending: normal-intensity typed text is still pending
ok - fm_pane_input_pending: bright colored text with 2 payloads is still pending
ok - fm_pane_input_pending: a dark truecolor ghost-only composer (grok placeholder) is NOT pending
ok - fm_tmux_composer_state: dark truecolor shell prompts read unknown
ok - fm_pane_input_pending: real text plus a trailing ghost run is still pending
ok - fm_tmux_composer_state: text above an empty cursor row is pending
ok - fm_tmux_composer_state: a message wrapped across three rows is pending
ok - fm_tmux_composer_state: a proven titled box tolerates a bottom-border cursor
ok - fm_tmux_composer_identity: unknown busy state cannot become idle identity
ok - fm_tmux_composer_state: typed Pi and Grok busy signatures inside a box are pending
ok - fm_tmux_composer_state: a bare busy-footer row reads unknown (strict container-proof rule)
ok - fm_tmux_composer_state: an unbounded bordered box fails closed as unknown
ok - fm_tmux_composer_state: clipped and asymmetric composer edges fail closed
ok - fm_tmux_composer_state: inconsistent box geometry fails closed
ok - fm_tmux_composer_state: misaligned box bounds fail closed
ok - fm_tmux_composer_state: unproved ghost and malformed geometry stay unknown while styled placeholder-like text stays pending-unproven
ok - fm_tmux_composer_state: differing widths prefer pending or unknown, never empty
ok - fm_tmux_composer_state: emoji and CJK text remain pending under the C locale
ok - fm_tmux_composer_state: all tmux harnesses share empty and pending classification
ok - fm_pane_input_pending: unrecognized states defer by default
ok - fm_tmux_composer_state: one capture feeds the classifier; no band-capture race remains
ok - fm_tmux_composer_state: absent Pi identity preserves Claude's enclosed bare verdict
ok - fm_tmux_composer_state: only proven structural and non-bordered empty routes stay empty
ok - fm_tmux_composer_state: panes without bordered structure retain compatibility fallback
ok - fm_tmux_composer_state: interior edge glyphs retain non-bordered fallback
ok - fm-peek output is escape-free (no raw -e bytes reach firstmate context)
FM_TEST_END 2026-09-12T18:15:31Z tests/fm-composer-ghost.test.sh exit=0 duration_ms=5174 gate_skip=false
ok - fm_composer_classify_content: a bare shell prompt glyph (>/$/%/#) reads unknown, never empty
ok - fm_composer_classify_content: stripped unbordered content is unknown except verified agent glyphs
ok - fm_composer_classify_content: a bare shell prompt carrying a command is not empty
ok - fm_composer_classify_content: a bare prompt glyph inside a bordered composer box reads empty (claude's own idle composer)
ok - fm_composer_classify_content: agent prompt glyphs (❯ claude, › codex, ⟩ muse) read empty bordered or bare
ok - fm_composer_classify_content: an empty composer reads empty
ok - fm_composer_classify_content: idle matching is limited to proven placeholder positions
ok - fm_composer_classify_content: idle matching preserves the caller's case mode
ok - fm_composer_classify_content: real unsubmitted text reads pending (including a popup argument-hint fill)
ok - matrix: claude's ❯+NBSP row reads empty on every profile in both locales (#1988)
ok - matrix: codex's dim hint is empty when styling proves it, unknown (never pending) when it cannot
ok - matrix: muse's ⟩ reads empty everywhere and survives losing the styled-glyph signal
ok - matrix: cursor's reverse-video placeholder remnant reads empty; real typed text stays pending
ok - matrix: herdr half-block rules bound a bare composer's wrap region
ok - matrix: omp's status row bounds the bare composer's wrap region
ok - matrix: pi's separated composer needs identity + structure; the blank row alone never proves it
ok - matrix: opencode's left-bar composer reads empty everywhere and scans the full active run
ok - matrix: grok's titled bottom border is tolerated as a title, not read as ambiguity
ok - matrix: kimi's bordered shell-glyph box reads empty through the shared owner (spawn's fourth copy retired)
ok - matrix: the real claude-in-zellij --ansi dump reads empty in both locales
ok - strict posture: blank and unidentified rows are unknown, never injectable empty
ok - fm_composer_classify_screen: the bare composer's wrap region stays identified; structure breaks it
ok - fm_composer_classify_screen: a row-leading agent glyph reanchors the live composer
ok - fm_composer_classify_screen: a lower dead shell invalidates only cursorless stale composers
ok - fm_composer_classify_screen: cursorless bare wrap regions participate in verdicts
ok - fm_composer_classify_screen: cursorless containers reject only contiguous unclaimed activity
ok - fm_composer_classify_screen: the bottom-most candidate wins; stale banners cannot
ok - fm_composer_classify_screen: incomplete lower structure invalidates stale boxes
ok - fm_composer_classify_screen: titled bottoms retain full box geometry
ok - fm_composer_classify_screen: a proven box tolerates a bottom-border cursor
ok - fm_composer_extract_selected_content: scopes user content and excludes furniture
ok - fm_composer_queued_enter_verdict: pending + busy returns empty (queued Enter)
ok - fm_composer_queued_enter_verdict: pending + idle/unknown stays pending
ok - fm_composer_queued_enter_verdict: only proven pending is converted
FM_TEST_END 2026-09-12T18:15:40Z tests/fm-composer-lib.test.sh exit=0 duration_ms=14010 gate_skip=false
FM_TEST_SUMMARY total=2 failed=0 skipped_gate=0 duration_ms=14278
FM_TEST_SUMMARY_FAMILY family=pure-contract-unit count=2 duration_ms=19184 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-composer-lib.test.sh duration_ms=14010
FM_TEST_SLOWEST rank=2 script=tests/fm-composer-ghost.test.sh duration_ms=5174
Evidence: Quota chooser suite including agy acceptance and exhausted-agy fallback

Source: Quota chooser suite including agy acceptance and exhausted-agy fallback

FM_TEST_BEGIN 2026-09-12T18:15:43Z tests/fm-quota-choose.test.sh family=standalone expected_gate_skip=none
ok - help renders the complete header only
ok - first positive candidate wins
ok - exhausted provider is skipped
ok - no positive candidate returns none and exit 1
ok - positional candidates work
ok - specific model scope bounds generic quota
ok - omp openai-codex prefix matches the bare codex model scope
ok - omp without a mapped prefix fails closed
ok - default model uses provider-wide quota
ok - fractional positive quota is eligible
ok - unknown harness fails closed
ok - all candidates are validated before selection
ok - malformed provider data fails closed
ok - multiple JSON values fail closed
ok - known-empty quota fails closed
ok - semantics and availability statuses must agree
ok - exhausted runway vetoes unknown headroom
ok - unknown headroom is not positive quota
ok - partial semantics accept mixed availability
ok - stdin snapshot is accepted
ok - empty model candidate fails closed
ok - bare harness maps to default model
ok - default TOON snapshot is accepted
ok - renderer-shaped TOON snapshot is accepted
ok - malformed nonzero TOON envelopes fail closed
ok - zero-row TOON has no positive quota
ok - empty-array TOON has no positive quota
ok - inline attention TOON has no positive quota
ok - TOON attention identities fail closed
ok - truncated zero-row TOON fails closed
ok - malformed zero-row TOON fails closed
ok - zero-row TOON rejects leading garbage
ok - counted TOON rows require every declared field
ok - TOON conversion preserves unknown-headroom exhaustion
ok - trailing empty TOON fields fail closed
ok - quoted TOON scope vetoes dispatch
ok - provider-level unknown quota is not positive
ok - Muse candidate is accepted
ok - Muse uses Meta quota
ok - agy candidate is accepted
ok - exhausted agy quota yields to later candidate
ok - duplicate providers fail closed
ok - empty quota scopes fail closed
ok - whitespace quota identities fail closed
ok - out-of-range quota fails closed
ok - invalid runway status fails closed
ok - missing applicable quota is not positive
ok - any exhausted applicable scope vetoes dispatch
ok - named model quota matches exact identity only
ok - invalid availability status fails closed
ok - helper reuses the captured quota snapshot
# all fm-quota-choose tests passed
FM_TEST_END 2026-09-12T18:15:56Z tests/fm-quota-choose.test.sh exit=0 duration_ms=13369 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=13506
FM_TEST_SUMMARY_FAMILY family=standalone count=1 duration_ms=13369 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-quota-choose.test.sh duration_ms=13369
Evidence: tmux liveness suite including real agy-name and decoy panes

Source: tmux liveness suite including real agy-name and decoy panes

FM_TEST_BEGIN 2026-09-12T18:16:01Z tests/fm-tmux-agent-liveness.test.sh family=backend-dispatch expected_gate_skip=none
ok - tmux liveness: a harness-named foreground process classifies alive
ok - tmux liveness: muse's version-suffixed muse-bin-<version> classifies alive
ok - tmux liveness: unrelated muse-containing command names stay ambiguous
ok - tmux liveness: omp's bare binary name classifies alive
ok - tmux liveness: unrelated omp-containing command names stay ambiguous
ok - tmux liveness: agy's bare binary name classifies alive
ok - tmux liveness: unrelated agy-containing command names stay ambiguous
ok - tmux liveness: a version-named executable under a harness install path classifies alive
ok - tmux liveness: a version-named executable under a decoy path stays ambiguous
ok - tmux liveness: a process neither name source attributes stays ambiguous rather than inventing an agent
ok - tmux liveness: a launcher whose own identity reads as a bare shell classifies alive from its harness child
ok - tmux liveness: an idle shell pane classifies dead
ok - tmux liveness: a harness-named background process in an idle pane still classifies dead
ok - tmux liveness: an absent window classifies missing rather than inheriting tmux's active-window fallback
ok - cursor composer: an idle Cursor pane reads empty even though the cursor row is blind
ok - cursor composer: real typed text still reads pending, so the injection guard holds
ok - cursor composer: an identical screen stays unknown when the pane is not Cursor
ok - cursor composer: a stale Cursor screen over a dead shell never reads empty
FM_TEST_END 2026-09-12T18:16:11Z tests/fm-tmux-agent-liveness.test.sh exit=0 duration_ms=10417 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=10573
FM_TEST_SUMMARY_FAMILY family=backend-dispatch count=1 duration_ms=10417 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-tmux-agent-liveness.test.sh duration_ms=10417
Evidence: Bootstrap crew-dispatch validation suite (agy rules accepted, agy:xhigh flagged)

Source: Bootstrap crew-dispatch validation suite (agy rules accepted, agy:xhigh flagged)

FM_TEST_BEGIN 2026-09-12T18:16:14Z tests/fm-bootstrap.test.sh family=session-bootstrap expected_gate_skip=none
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap reports treehouse lease + tasks-axi/quota-axi bootstrap contracts
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap enforces no-mistakes minimum version
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap enforces gh-axi minimum version
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap permits nonvisual work without compatible lavish-axi and retains its presentation floor
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap enforces tasks-axi minimum version
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap enforces quota-axi minimum version
ok - bootstrap requires git with an install instruction
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap: backend=orca gates the Orca CLI without requiring it on the default backend
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap: session-provider backends require their own CLI + jq + treehouse, never tmux
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - 

... [714 bytes truncated] ...

f the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap: JSON-emitting backends require jq (their genuine dep), never tmux
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap: the treehouse lease check follows the resolved backend's worktree provider
ok - bootstrap computes a fleet-size-aware default timeout and preserves partial fleet-sync output
ok - bootstrap keeps the quick 20s default for small fleets
ok - bootstrap preserves FM_FLEET_SYNC_BOOTSTRAP_TIMEOUT as an explicit override
ok - bootstrap treats a blank timeout override as unset
ok - bootstrap computes the timeout before launching fleet sync
ok - bootstrap keeps routine tasks-axi, harness, dispatch, and already-live liveness confirmations silent
ok - bootstrap routine contract runs under system /bin/bash
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap: FM_BOOTSTRAP_NETWORK partitions one run into local and network halves
ok - bootstrap: every deferred mutating sweep rechecks fleet-lock ownership
ok - bootstrap: each deferred network phase, secondmate, and clone records its own elapsed time
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap: the tasks-axi compatibility verdict travels exactly one process hop
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap surfaces active crew-dispatch rules only as verbose BOOTSTRAP_INFO
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
ok - bootstrap validates crew-dispatch.json and reports malformed or unverified configs
FM_TEST_END 2026-09-12T18:17:21Z tests/fm-bootstrap.test.sh exit=0 duration_ms=66861 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=67000
FM_TEST_SUMMARY_FAMILY family=session-bootstrap count=1 duration_ms=66861 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-bootstrap.test.sh duration_ms=66861

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed (2) ✅
  • ⚠️ bin/fm-agent-process-lib.sh:43 - agy was added to tmux's liveness classifier only, via the local wrapper fm_backend_tmux_classify_process_name (bin/backends/tmux.sh:160-168, prior fix round a6d6d66), but the shared owner fm_agent_process_classify_name (bin/fm-agent-process-lib.sh:43, case list 'claude|codex|opencode|grok|kimi|rovo|pi|pi-signed|pi-launcher|Pi|omp') still has no agy entry, and FM_HARNESS_NAMES (bin/fm-session-lock-lib.sh:28) omits it too. This violates the library's own documented invariant (fm-agent-process-lib.sh:12-15: the two backends 'must agree on what a given process name means, or a harness one backend recognizes silently reads as a dead pane on the other') and leaves the herdr backend - the backend agy was verified on - misclassifying a live agy process. Concrete paths: (1) every fm_backend_herdr_pane_process_state read of a live agy pane classifies its foreground agy as other (bin/backends/herdr.sh:2150), so the resample loop that only retries other burns the full settle window (FM_BACKEND_HERDR_IDLE_SHELL_PROOF_POLLS=10 x 0.1s plus 10 herdr CLI round trips) on every husk check, crew-state, watch, and relaunch-state read, before concluding other->live; (2) a wrong result without erroring: when the agy TUI is alive but outside the pane's foreground group - the suspended/backgrounded/nested-shell shape the descendant walk at bin/backends/herdr.sh:2175 exists to defend (issue Recovery classifier trusts a stale herdr agent registration as 'live', blocking relaunch/spawn after a Pi crew exits to a shell kunchenguid/firstmate#4115 'crew shape'), or an agy Bash tool command holding the tty foreground with a shell kernel name - the descendant walk fails to recognize the live agy process, returns shell, and fm_backend_herdr_pane_agent_state reports stale-agent -> fm_backend_herdr_agent_state reports dead. That dead verdict is what fm-spawn.sh:1351 requires to license a relaunch (a second agent launched into the same endpoint/worktree while the first agy is still alive) and what bin/fm-watch.sh:447 uses to mark steering unavailable for a live worker. Remedy: add an anchored agy to the shared case in fm_agent_process_classify_name next to omp/muse (a one-line mechanical fix fully inside the change's stated intent - every other verified adapter is listed there), which also makes the tmux-local wrapper a redundant parallel copy of the rule that can be folded back to direct fm_agent_process_classify_name calls.

🔧 Fix applied.
2 issues (1 warning, 1 info) still open:

  • ⚠️ bin/fm-composer-lib.sh:1475 - _fm_composer_agy_strip_ghost duplicates fm_composer_strip_ghost's entire SGR-parsing machinery (sgr_code, skip_color_payload, and the byte-scanner loop are copied verbatim, ~60 lines) with only the de-emphasis predicate swapped (38;5;8 palette foreground instead of dark-truecolor luma). The library's own header declares fm_composer_strip_ghost 'the ONE fleet-wide ANSI-aware extractor', so there are now two owners of that parser and any future parser fix (e.g. the OSC-leak or payload-skipping edge both copies share) must land twice. The capability itself is required - the verified 1.2.0/1.2.1 mode placeholder must not read as typed input - but a strictly narrower form satisfies it: parameterize the one shared extractor with an agy-only extra ghost class (e.g. a palette-colour argument) instead of a second parser copy. Remedy is removal of the duplicate machinery, not hardening; because it touches the fleet-wide load-bearing function the change's own comment deliberately scoped away ('no other harness's styling vocabulary is load-bearing here'), the fold needs user authorization.
  • ℹ️ bin/fm-harness.sh:43 - The new ANTIGRAVITY_AGENT=1 check runs before every other harness's own marker (cursor, gemini, rovo, omp, claude, pi, grok), and no other harness's launch template unsets ANTIGRAVITY_AGENT. A non-agy firstmate component started by hand from inside an agy process tree (agy exports the marker to its tool subprocesses) would self-detect as agy - e.g. a claude primary started from an agy session would resolve fm_supervision_model to 'persistent' instead of 'autoarm'. This mirrors the repo's already-accepted claude-under-cursor shape (claude's template does not unset CURSOR_AGENT either), and no in-fleet fm-spawn path nests a non-agy worker under an agy ancestor since agy is worker-only and never spawns, so it is informational. If it ever matters, the remedy is -u ANTIGRAVITY_AGENT in the other templates or omp-style ancestry corroboration of the marker.

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

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 5 of 7 scenarios driven live against the product
Scenario Result Live Evidence
A real agy scout launched via fm-spawn through an isolated Herdr lab session completes the canonical lifecycle: folder trust accepted, in-tool harness self-detection returns agy, live composer reads e… ✅ pass live FM_AGY_LIVE=1 bin/fm-test-run.sh tests/fm-agy-signals-live-e2e.test.sh against real Antigravity CLI 1.2.2 (artifact: Live e2e guard)
fm-harness.sh detects agy: the ANTIGRAVITY_AGENT marker outranks an inherited Claude marker, an invalid marker value is rejected, and a real agy-named parent process is detected by ancestry ✅ pass live Direct drives of bin/fm-harness.sh in artifact: Manual live drives; also exercised inside the real agy tool process by the live e2e
A live agy TUI pane classifies alive through the real tmux backend (default backend) and the shared process classifier classifies the real agy process comm as agent, while agy-containing decoy names s… ✅ pass live Real agy binary launched in a real private tmux server: comm=agy -> state=alive; shared classifier agy -> agent, agyw/magyar -> other (artifact: Manual live drives; suite: tmux liveness)
Quota fallback selects agy from the real agy-cli-manager quota (percent-remaining semantics) when Claude and Codex are exhausted, and an exhausted agy row makes a later candidate win ✅ pass live bin/fm-quota-choose.sh driven with a schema-5 snapshot whose agy row carries the live agy-cli-manager refresh-usage values: healthy 81.59% remaining -> 'agy default'; exhausted_now -> 'pi default' (ar…
agy composer contract: the palette-8 mode placeholder is never read as typed input while bold typed input reads pending, across the recorded 1.2.0 placeholder and 1.2.1 status-bar shapes, with fleet-w… ✅ pass live Live composer empty/pending asserted through fm_backend_herdr_composer_state in the live e2e; 1.2.0/1.2.1 recorded shapes via tests/fm-agy-harness.test.sh and default-caller invariance via tests/fm-co…
Session bootstrap accepts a config/crew-dispatch.json dispatch rule naming agy (no false 'unverified harness: agy' diagnostic; unsupported agy:xhigh still flagged) ⏸️ untested no The prior payload recorded only the portable suite tests/fm-bootstrap.test.sh driving bin/fm-bootstrap.sh over fixture homes; it did not drive a real session bootstrap on the running product for this…
fm-spawn launch profile for agy carries the model and supported effort flags, omits unsupported efforts, stays worker-only, and does not touch Gemini project settings ⏸️ untested no The prior payload recorded only fixture-level profile assertions in tests/fm-spawn-dispatch-profile.test.sh; although the live e2e launched agy via fm-spawn with --effort low, it did not observe this…
  • FM_AGY_LIVE=1 bin/fm-test-run.sh tests/fm-agy-signals-live-e2e.test.sh (real agy 1.2.2 scout via isolated fm-lab-agy-live-* Herdr session: launch, trust, marker detection, composer empty/pending, interrupt verified=agent-alive, exit, relaunch)
  • bin/fm-test-run.sh tests/fm-agy-harness.test.sh (detection precedence/ancestry, worker-only lifecycle, 1.2.0 palette-placeholder and 1.2.1 status-bar composer shapes)
  • bin/fm-test-run.sh tests/fm-composer-ghost.test.sh tests/fm-composer-lib.test.sh (fleet-wide default ghost-stripping unchanged after folding agy into the shared palette-class stripper)
  • bin/fm-test-run.sh tests/fm-quota-choose.test.sh (agy provider mapping, healthy selection, exhausted yields to later candidate)
  • bin/fm-test-run.sh tests/fm-tmux-agent-liveness.test.sh (agy bare name alive; agyw/magyar decoys ambiguous)
  • bin/fm-test-run.sh tests/fm-bootstrap.test.sh (crew-dispatch.json rules naming agy accepted; agy:xhigh flagged)
  • bin/fm-test-run.sh tests/fm-spawn-dispatch-profile.test.sh (agy model/effort flags, worker-only boundary, no Gemini settings leakage)
  • Manual live drive: real agy TUI pane in a real private tmux server -> fm_backend_agent_state tmux = alive; real comm 'agy' -> fm_agent_process_classify_name = agent
  • Manual live drive: ANTIGRAVITY_AGENT=1 outranks CLAUDECODE, ANTIGRAVITY_AGENT=0 rejected, real agy-named parent detected by ancestry via bin/fm-harness.sh
  • Manual live drive: bin/fm-quota-choose.sh with a schema-5 snapshot whose agy row carries the real ~/.venv/bin/agy-cli-manager refresh-usage values (healthy selects agy after exhausted claude/codex; exhausted_now agy selects later pi candidate)
⚠️ **Document** - 2 infos
  • ℹ️ docs/agent-control.md:51 - The resume-shape enumeration this change extended still omits muse (muse.md verifies muse resume &lt;session-uuid&gt; from a session id printed at exit, though muse resume --last also exists) and rovo (rovo.md records only the printed --restore &lt;session-id&gt; hint, never an exercised restore). Both omissions predate this change; completing or scoping that enumeration is a judgment call left for a follow-up because rovo's pane-resume was never verified to the sentence's bar.
  • ℹ️ bin/fm-session-lock-lib.sh:21 - The FM_HARNESS_RE/FM_HARNESS_NAMES comment says "extend when a new adapter is verified", but the tables omit every crewmate/scout-only adapter: gemini, muse, rovo, and now agy. Either the comment's contract should be scoped to harnesses that can hold a home session lock (primary/secondmate-capable, which matches the tables' actual contents including kimi) or the tables need the crewmate-only names; extending the tables is an executable-behavior change outside this document phase, and the file documents its cursor exclusion but not this one, so the intent is ambiguous.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.


Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@auss
auss merged commit 53f858e into main Sep 12, 2026
15 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants