Skip to content

feat(bin): add agy (Antigravity CLI) as a verified crewmate/scout harness adapter - #23

Merged
alandomio merged 8 commits into
mainfrom
fm/fm-verify-agy-harness
Sep 10, 2026
Merged

alandomio merged 8 commits into
mainfrom
fm/fm-verify-agy-harness

Conversation

@alandomio

Copy link
Copy Markdown
Owner

Intent

Verify agy (Antigravity CLI) as a firstmate harness adapter and land the adapter support so crewmates and scouts can be dispatched on it, following harness-adapters' verification procedure: spawn trivial supervised tests via fm-spawn's raw-launch-command escape hatch and confirm every fact empirically rather than assuming anything from another adapter's shape.

Empirically confirmed and landed: (1) env markers ANTIGRAVITY_AGENT / ANTIGRAVITY_AGENTAPI_EXE plus the detection-ordering hazard shared with cursor (agy does not clear an inherited CLAUDECODE/AI_AGENT, so bin/fm-harness.sh tests agy's marker before CLAUDECODE, matching cursor's precedent) - bin/fm-harness.sh. (2) Launch shape: agy rejects a bare positional prompt (unlike claude/grok/muse) and requires -i ""; --dangerously-skip-permissions is kept as the CLI's own documented autonomy flag even though ordinary tool calls proceeded unprompted in the interactive TUI without it on this account, since no narrower prompt-vs-skip flag exists (--mode only toggles plan-vs-execute) and this matches the fleet-wide explicit-autonomy-flag pattern; model/effort flags mapped, capped at low/medium/high (no xhigh/max in agy's own help output) - bin/fm-spawn.sh. (3) A genuine semantic busy-state source: agy's own per-conversation SQLite database's steps table status column, live-verified 8=running/3=settled including on interrupt, folded via sqlite3 -readonly with a workspace-path byte-grep binding sidecar mirroring muse's pattern (never a rendered-tail fallback) - bin/fm-busy-lib.sh. (4) Interrupt=single Escape with no clear key needed (composer left empty, unlike muse), exit=/exit, and a crewmate/scout-only kind restriction (agy has no hook, plugin lifecycle, notify flag, or app-server surface of any kind to build a secondmate's primary supervision on - verified against the full agy help and agy plugin help command tree) - bin/fm-control-lib.sh, refusal also in bin/fm-spawn.sh. (5) Ordinary crewmate/scout liveness classification in bin/backends/tmux.sh, needed independently of secondmate capability for stuck-crewmate-recovery (the original task brief's file list had only anticipated this file for secondmate liveness). (6) Composer classification: agy's shape (a single content row bounded by two solid horizontal rules, plain ASCII greater-than glyph) structurally collides with Pi's own identity-gated separator-pair composer mechanism in bin/fm-composer-lib.sh - a genuinely idle Pi composer also collapses to one blank row between two rules. A first, naive structure-only fix attempt was caught and rejected by the existing live regression test suite (it reintroduced a previously-fixed bug: an ordinary shell pane's unrelated content once got misread as an empty Pi composer). The correct fix instead extends bin/fm-tmux-lib.sh's fm_tmux_composer_identity probe (previously pi-only) to also recognize a genuine agy foreground process via real process identity, and only then does bin/fm-composer-lib.sh's _fm_composer_pi_verdict classify the single-row pair from content - verified end-to-end against a live tmux pane (idle=empty, unsent-typed-text=pending) with the full existing composer test suite passing with zero regressions.

Deliberately scoped: agy is added to AGENTS.md's verified-harness list as crewmate/scout only (same restriction as muse), never for --secondmate, because it has no lifecycle/hook surface to build primary supervision on. Two facts are documented as genuinely open rather than silently closed: agy does not discover the captain's user-level Claude skills directory at all (only its own workspace-relative .agents/skills path, a global path, or a shared path under its own config home), so the no-mistakes skill invocation is NOT yet reachable for an ordinary agy project crewmate until the skill is mirrored into one of agy's own paths - this is flagged in both the harness-adapters skill and the skill-invocation table, not fixed in this task. The busy-state fold's dependency on the sqlite3 CLI (present on this machine only via the Android SDK's platform-tools bundle, not a general system package) is documented with no bootstrap check added, and is also filed as a note: CANDIDATE in the task status log for firstmate to consider. A Google API key was observed present in the ambient shell environment during verification; its value was never echoed, copied, logged, or written anywhere - credential handling reads it, or an existing OAuth login, entirely from the environment agy's own process already inherits, matching how the skill documents muse's credential preflight.

Added a new tests/fm-agy-harness.test.sh (10 cases: detection ordering, ancestry, control-lib tables, busy fold resolution/idle/prior-exclusion/ambiguity-refusal) and two new cases in tests/fm-composer-lib.test.sh for the identity-gated agy composer verdict. Full existing regression suite (composer, tmux agent-liveness, tmux submit-busy, herdr, muse/cursor/grok/kimi/secondmate harness tests) was re-run and passes with zero regressions; bin/fm-lint.sh and bin/fm-doc-audience-check.sh are both clean.

What Changed

  • Registers agy across the fleet's harness tables: bin/fm-harness.sh detects ANTIGRAVITY_AGENT before CLAUDECODE (agy leaks an inherited marker, same hazard as cursor) and matches the exact agy comm; bin/fm-spawn.sh launches it as agy --dangerously-skip-permissions --model/--effort -i "<brief>" with effort capped to low|medium|high and foreign markers cleared, and refuses --secondmate; bin/fm-control-lib.sh records single-Escape interrupt with no clear key, /exit, none interrupt-ack, and the crewmate/scout-only kind restriction; bin/backends/tmux.sh, bin/fm-bootstrap.sh, and bin/fm-teardown.sh pick up liveness classification, dispatch-profile validation, and sidecar cleanup.
  • Adds a semantic busy-state fold in bin/fm-busy-lib.sh that reads agy's own per-conversation SQLite steps table via sqlite3 -readonly, keyed on the (step_type, status) pair, bound to the pane by a new <id>.agy-session sidecar written at spawn (conversations root, workspace path, prior conversations) plus an <id>.agy-session-current resolution cache; the workspace binding scans .db and .db-wal siblings for the path as a complete protobuf length-delimited field (wire-type-2 tag byte plus exact-length varint) so sibling pool-slot worktrees cannot mis-bind.
  • Fixes composer classification for agy's separator-pair shape, which structurally collides with Pi's: bin/fm-tmux-lib.sh's identity probe now also recognizes a live agy foreground process, _fm_composer_pi_verdict classifies the pair from content only once identity proves it, and the cursor-mode scan adopts the pair containing the cursor so agy's background-task strip below the composer no longer outranks it. Adds tests/fm-agy-harness.test.sh (detection ordering, ancestry, control tables, busy-fold resolution/idle/prior-exclusion/ambiguity refusal), two identity-gated composer cases, and documents agy in AGENTS.md, the harness-adapters skill, and docs/, including the open sqlite3 dependency and the unreachable user-level Claude skills directory.

Risk Assessment

⚠️ Medium: The adapter is large but carefully bounded, well documented, and covered by real behavior tests; the two issues are a one-line env-sanitization asymmetry the new detection precedence introduces and an unbounded rescan in the unresolved-binding path, both safe to land with follow-ups rather than blocking.

Testing

Ran the targeted offline suites (agy harness, composer, tmux agent-liveness, control, busy-adapter wiring, submit-busy) — all pass — then verified the adapter end-to-end against a real agy 1.2.0 session in a live tmux pane launched with the exact command fm-spawn emits, capturing harness detection from agy's own tool subprocess, the semantic SQLite busy fold reporting busy through real working windows and idle after (including the first turn, closing the earlier WAL blind spot), the background-task-strip composer fix demonstrated fail-before/pass-after on the same live screen against the pre-fix library, a real steer delivered through the submit path returning the delivered verdict, a single-Escape interrupt taking the pane busy→idle within one second with the composer left empty, and /exit terminating the process. I also closed a coverage gap by adding three behavioral spawn tests for the launch shape, effort capping, and the secondmate refusal, each confirmed to fail against a deliberately mutated bin/fm-spawn.sh before restoring the source. Visual evidence for the TUI surface was captured as a rendered PNG of the live panes with their verdicts (the chrome-devtools-axi bridge was returning "Required at pageId" for every call, so I rendered with headless Chrome directly). Transient scratch workspaces and fixtures were removed; the only working-tree change is the intended test file.

Evidence: Same evidence page as rendered HTML

Source: Same evidence page as rendered HTML

<!doctype html><meta charset="utf-8"><style>
body{background:#12131a;color:#e6e6e6;font-family:system-ui,sans-serif;margin:24px}
h1{font-size:20px;margin:0 0 4px} p.sub{color:#9aa0b4;margin:0 0 20px;font-size:13px}
h2{font-size:14px;font-weight:600;color:#c8ccd8;margin:22px 0 4px}
p.v{margin:0 0 6px;font-size:12.5px;color:#8fd6a0}
pre.term{background:#000;padding:12px 14px;border-radius:6px;overflow-x:auto;
 font-family:"DejaVu Sans Mono",Menlo,monospace;font-size:11.5px;line-height:1.25;white-space:pre}
</style>
<h1>agy (Antigravity CLI) adapter &mdash; live tmux panes, agy 1.2.0</h1>
<p class="sub">Real agy session in a real tmux pane, launched with the exact command bin/fm-spawn.sh emits. Every verdict below is what firstmate&rsquo;s own bin/fm-tmux-lib.sh, bin/fm-composer-lib.sh, bin/fm-busy-lib.sh and bin/fm-control-lib.sh returned for that exact pane on the target commit.</p>
<section><h2>Background task strip on screen, composer empty</h2><p class="v">fm_tmux_composer_state = <b>empty</b> &nbsp;(pre-fix lib returned <b>unknown</b>) &nbsp;· identity probe: agy/idle</p><pre class="term">      ▄▀▀▄        Antigravity CLI 1.2.0
     ▀▀▀▀▀▀       &lt;captain-account-redacted&gt; (Google AI Pro)
    ▀▀▀▀▀▀▀▀      Gemini 3.7 Flash (Medium)
   ▄▀▀    ▀▀▄     /tmp/agy-e2e-551412/ws
  ▄▀▀      ▀▀▄

────────────────────────────────────────────────────────────
&gt; Read the file /tmp/agy-e2e-551412/ws/fixture.txt with your file-read tool and tell me the MARKER_WORD value. Then run the shell command: sleep 12; echo TURN_DONE  and report its output.

● Read(/tmp/agy-e2e-551412/ws/fixture.txt)
● Bash(sleep 12; echo TURN_DONE) (ctrl+o to expand)

  I have read the file and launched the command in the background. Waiting for it to finish...

  The MARKER_WORD value from fixture.txt is PERSIMMON.

  ### Command Output

    TURN_DONE

────────────────────────────────────────────────────────────
&gt; Run the shell command: sleep 45 &amp;&amp; echo LATE_TASK_DONE . Run it in the background and do not wait for it; just tell me you started it.

● Bash(sleep 45 &amp;&amp; echo LATE_TASK_DONE) (ctrl+o to expand)

  I have started the command sleep 45 &amp;&amp; echo LATE_TASK_DONE in the background (task ID: task-10).

────────────────────────────────────────────────────────────
&gt;
────────────────────────────────────────────────────────────
  ● [05:10:05] sleep 45 &amp;&amp; echo LATE_TASK_DONE running
────────────────────────────────────────────────────────────
? for shortcuts                                                                                                                                           Gemini 3.7 Flash · medium · 1 task(s) · /tasks</pre></section>
<section><h2>Same strip, text typed but not sent</h2><p class="v">fm_tmux_composer_state = <b>pending</b> &nbsp;(pre-fix lib returned <b>unknown</b>) &nbsp;· identity probe: agy/idle</p><pre class="term">      ▄▀▀▄        Antigravity CLI 1.2.0
     ▀▀▀▀▀▀       &lt;captain-account-redacted&gt; (Google AI Pro)
    ▀▀▀▀▀▀▀▀      Gemini 3.7 Flash (Medium)
   ▄▀▀    ▀▀▄     /tmp/agy-e2e-551412/ws
  ▄▀▀      ▀▀▄

────────────────────────────────────────────────────────────
&gt; Read the file /tmp/agy-e2e-551412/ws/fixture.txt with your file-read tool and tell me the MARKER_WORD value. Then run the shell command: sleep 12; echo TURN_DONE  and report its output.

● Read(/tmp/agy-e2e-551412/ws/fixture.txt)
● Bash(sleep 12; echo TURN_DONE) (ctrl+o to expand)

  I have read the file and launched the command in the background. Waiting for it to finish...

  The MARKER_WORD value from fixture.txt is PERSIMMON.

  ### Command Output

    TURN_DONE

────────────────────────────────────────────────────────────
&gt; Run the shell command: sleep 45 &amp;&amp; echo LATE_TASK_DONE . Run it in the background and do not wait for it; just tell me you started it.

● Bash(sleep 45 &amp;&amp; echo LATE_TASK_DONE) (ctrl+o to expand)

  I have started the command sleep 45 &amp;&amp; echo LATE_TASK_DONE in the background (task ID: task-10).

────────────────────────────────────────────────────────────
&gt; unsent draft text
────────────────────────────────────────────────────────────
  ● [05:10:05] sleep 45 &amp;&amp; echo LATE_TASK_DONE running
────────────────────────────────────────────────────────────
                                                                                                                                                          Gemini 3.7 Flash · medium · 1 task(s) · /tasks</pre></section>
<section><h2>bin/fm-harness.sh run by agy's own shell tool</h2><p class="v">agy reports its own harness identity end to end</p><pre class="term">      ▄▀▀▄        Antigravity CLI 1.2.0
     ▀▀▀▀▀▀       &lt;captain-account-redacted&gt; (Google AI Pro)
    ▀▀▀▀▀▀▀▀      Gemini 3.7 Flash (Medium)
   ▄▀▀    ▀▀▄     /tmp/agy-e2e-551412/ws
  ▄▀▀      ▀▀▄

────────────────────────────────────────────────────────────
&gt; Read the file /tmp/agy-e2e-551412/ws/fixture.txt with your file-read tool and tell me the MARKER_WORD value. Then run the shell command: sleep 12; echo TURN_DONE  and report its output.

● Read(/tmp/agy-e2e-551412/ws/fixture.txt)
● Bash(sleep 12; echo TURN_DONE) (ctrl+o to expand)

  I have read the file and launched the command in the background. Waiting for it to finish...

  The MARKER_WORD value from fixture.txt is PERSIMMON.

  ### Command Output

    TURN_DONE

────────────────────────────────────────────────────────────
&gt; Run the shell command: sleep 45 &amp;&amp; echo LATE_TASK_DONE . Run it in the background and do not wait for it; just tell me you started it.

● Bash(sleep 45 &amp;&amp; echo LATE_TASK_DONE) (ctrl+o to expand)

  I have started the command sleep 45 &amp;&amp; echo LATE_TASK_DONE in the background (task ID: task-10).

  The background task has completed successfully with output:

    LATE_TASK_DONE

────────────────────────────────────────────────────────────
&gt; Run this shell command and report its exact stdout: ~/.no-mistakes/worktrees/34c874d3722d/01M246G8JH3YJP5XZ6WEHTED9Q/bin/fm-harness.sh . Then sleep 20 and say STEER_TURN_DONE.

● Bash(~/.no-mistakes/worktrees/34c874d3722d/01M246G8JH3YJP5XZ6WEHTED9Q/bin/fm-harness.sh)
● Bash(sleep 20) (ctrl+o to expand)

  Exact stdout:

    agy

  Sleeping for 20 seconds...
⣻  Working...
└ Tip: Use /fork to branch the conversation from an earlier point

... [1058 bytes truncated] ...

 Gotgam). In this fable, a ferocious tiger creeps into a
  village at night, intending to snatch a human meal. Outside a cottage, he overhears a mother trying to quiet her crying child. She warns the child that a bear, then a fox, and finally a tiger is
  coming, yet the child cries on. The tiger is amazed by the child&#x27;s courage. Then the mother says, &quot;Here, look! A dried persimmon (gotgam)!&quot; and the baby immediately ceases crying. The tiger,
  terrified, concludes that the mysterious gotgam must be a beast far more terrifying and formidable than himself, and flees into the mountains. This fable illustrates the unparalleled soothing and
  desirable status the sweet dried persimmon held in traditional Korean households.

  Furthermore, Korean cuisine developed sujeonggwa, an elegant, traditional dessert punch made by simmering cinnamon bark and ginger root, sweetened with honey or sugar, and served chilled with
  rehydrated dried persimmon and pine nuts. The spicy warmth of ginger and cinnamon paired with the rich sweetness of the softened persimmon represents one of East Asia&#x27;s most sophisticated winter
  comfort beverages.
  ──────
  ### The New World Relative: Diospyros virginiana and Indigenous Heritage

  While Diospyros kaki was flourishing across East Asia, a distinct native cousin was thriving across the eastern and central woodlands of North America: Diospyros virginiana, the American
  persimmon.

  Native American nations—including the Algonquian, Cherokee, Creek, Choctaw, and Shawnee—had utilized the wild persimmon for generations before European arrival. The very English word &quot;persimmon&quot;
  derives from the Algonquian (Powhatan) language word pessamin, putchamin, or pasiminan, which translates loosely to &quot;a dry fruit&quot; or &quot;fruit dried by hand.&quot;

  Indigenous peoples harvested the small, plum-sized fruits in late autumn, typically after the first heavy frosts when the sharp tannins had broken down into a rich, custard-like pulp. The fruit
  was mashed, seeded, and formed into dense, nutritious loaves or cakes that were sun-dried or baked over slow coals. These persimmon cakes possessed remarkable keeping qualities, serving as vital
  energy reserves and travel rations through the barren winter months. The pulp was also blended into cornmeal porridges and stews.

  When English colonists established the Jamestown settlement in Virginia in 1607, they quickly encountered the native persimmon. Captain John Smith recorded one of the most vivid and humorous
  botanical descriptions in colonial literature in his 1612 account:

  │ &quot;The fruit like a Medler it is first greene, then yellow, and red when it is ripe: if it be not ripe it will drawe a mans mouth awrie with much torment, but when it is ripe, it is as delicious
  │ as an Apricocke.&quot;

  Smith’s cautionary note reflected the universal human experience of encountering an underripe astringent persimmon. The extreme concentration of soluble tannins binds instantly to salivary
  proline-rich proteins, causing them to aggregate and precipitate, stripping the oral cavity of its natural lubrication and producing an instantaneous, overwhelming sensation of dryness and
  contraction.

  Throughout the 18th and 19th centuries in the American South and Midwest, the persimmon became a beloved staple of rural folk foodways. The annual ripening of &quot;possum apples&quot; (so named because
  opossums eagerly sought the fallen fruit) signaled the time for baking persimmon puddings, persimmon breads, and churning persimmon fudge. In Mitchell, Indiana, the annual Persimmon Festival,
  established in 1947, continues to draw bakers from across the region to compete in the prestigious Persimmon Pudding Contest, celebrating an unbroken American culinary tradition rooted in
  indigenous foraging.
  ──────
  ### The Old World&#x27;s Ancient Lotus: Diospyros lotus

  Across Western Asia, the Caucasus, and the Mediterranean basin grew a third notable species: Diospyros lotus,

  ⎿  Interrupted · What should Antigravity CLI do instead?
────────────────────────────────────────────────────────────
&gt;
────────────────────────────────────────────────────────────
? for shortcuts                                                                                                                                                                Gemini 3.7 Flash · medium</pre></section>
<section><h2>Interrupt timing: fm_busy_classify polled at 1&nbsp;Hz across the Escape</h2><p class="v">Escape x1 sent at 05:12:43</p><pre class="term">05:12:27  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:28  busy=idle agy-conversation    identity=agy/idle     footer=
05:12:29  busy=idle agy-conversation    identity=agy/idle     footer=
05:12:30  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:32  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:33  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:34  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:35  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:36  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:37  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:38  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:39  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:40  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:42  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:43  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:44  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:45  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:46  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:47  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:48  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:49  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:50  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:51  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:52  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:53  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:54  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:55  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:56  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:58  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:59  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:00  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:01  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:02  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:03  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:04  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:05  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:06  busy=idle agy-conversation    identity=agy/working  footer=esc to cancel
05:13:07  busy=idle agy-conversation    identity=agy/idle     footer=
05:13:08  busy=idle agy-conversation    identity=             footer=
05:13:09  busy=idle agy-conversation    identity=             footer=</pre></section>
Evidence: Live end-to-end verification transcript (launch, detection, busy, interrupt, exit, composer)

Source: Live end-to-end verification transcript (launch, detection, busy, interrupt, exit, composer)

# agy (Antigravity CLI) adapter — live end-to-end verification

Host: Linux, tmux 3.4, **agy 1.2.0** (`agy --version`), sqlite3 from Android platform-tools.
Workspace: a throwaway git repo at `/tmp/agy-e2e-*/ws` (NOT the firstmate worktree).
Everything below drove firstmate's real code paths on the target commit against a
real, token-spending agy session in a real tmux pane.

## 1. Launch shape

`bin/fm-spawn.sh` emits (captured in `agy-spawn-launch-command.txt`):

    env -u CURSOR_AGENT -u CURSOR_INVOKED_AS env -u CLAUDECODE -u AI_AGENT -u PI_CODING_AGENT \
      -u GROK_AGENT -u FM_PI_HARNESS agy --dangerously-skip-permissions \
      --model 'gemini-3.7-flash' --effort 'high' -i "$(.../fm-operational-input.sh encode launch-brief < .../brief.md)"

The live pane was launched with exactly that shape. agy started, showed a
first-launch workspace trust prompt ("Do you trust the contents of this project?"),
and after confirmation ran the brief.

## 2. Harness detection, end to end

The steer asked agy to run `bin/fm-harness.sh` with its own shell tool. agy's own
tool subprocess printed (see `agy-live-pane-harness-detect.txt`):

    ● Bash(/…/bin/fm-harness.sh)
      Exact stdout:
        agy

## 3. Semantic busy state (agy's own SQLite conversation database)

Binding resolved from the `state/<id>.agy-session` sidecar seeded exactly as
fm-spawn seeds it:

    bound conversation: ~/.gemini/antigravity-cli/conversations/34ad7f00-…-e0696a97b16b.db

`fm_busy_classify tmux <pane> agy <id> <state>` polled at 1 Hz through two real
turns (`agy-live-busy-poll.txt`) — the source name and the pane identity agree
throughout, and `busy agy-conversation` is reported for the whole working window,
including the FIRST turn (the round-1 `.db-wal` blind spot):

    05:10:57  busy=idle agy-conversation  identity=agy/working
    05:10:58  busy=busy agy-conversation  identity=agy/working
    …
    05:11:57  busy=busy agy-conversation  identity=agy/working
    05:11:59  busy=idle agy-conversation  identity=agy/idle

## 4. Interrupt = a single Escape, no clear key

`fm_control_interrupt_key/repeat/clear_key/exit_command` returned
`Escape / 1 / <none> / /exit`. Those exact values were replayed against a live
generation turn (`agy-live-interrupt-poll.txt`):

    05:12:42  busy=busy agy-conversation  identity=agy/working  footer=esc to cancel
    05:12:43  busy=busy agy-conversation  identity=agy/working  footer=esc to cancel   <- Escape x1 sent 05:12:43
    05:12:44  busy=idle agy-conversation  identity=agy/idle     footer=? for shortcuts

Pane after the interrupt (`agy-live-pane-after-interrupt.txt`):

    ⎿  Interrupted · What should Antigravity CLI do instead?

Composer read `empty` immediately afterwards — no clear key needed, as the
control table claims.

## 5. Exit

`fm_control_exit_command agy` -> `/exit`; typing it ended the agy process and the
tmux pane (`tmux has-session` -> gone, no agy process left).

## 6. Composer classification, including the background-task strip regression

Live screen with agy's running-background-task strip below the composer
(`agy-live-pane-taskstrip.txt`, footer `1 task(s) · /tasks`):

    ────────────────────────────────  <- composer open rule
    >
    ────────────────────────────────  <- composer close rule
      ● [05:10:05] sleep 45 && echo LATE_TASK_DONE running
    ────────────────────────────────  <- task-strip close rule

`fm_tmux_composer_state` against that live pane:

| screen                          | pre-fix lib (69e61e3) | target commit |
|---------------------------------|-----------------------|---------------|
| empty composer + task strip     | `unknown`             | `empty`       |
| typed composer + task strip     | `unknown`             | `pending`     |

`fm_tmux_composer_identity` reported the real `agy/idle` tuple in both cases.
The pre-fix `unknown` is what made `bin/fm-send.sh` report
"text not submitted … delivery unconfirmed" for a steer that had landed.

## 7. Real steer delivery through the submit path, with the strip on screen

    fm_tmux_submit_core <pane> "Run this shell command and report its exact stdout: …/bin/fm-harness.sh …" 3 0.4 0.3
    -> empty

`empty` is the delivered verdict fm-send maps to success; agy then answered the
steer (section 2 above).
Evidence: fm_busy_classify polled at 1 Hz across two real agy turns

Source: fm_busy_classify polled at 1 Hz across two real agy turns

05:10:53  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:10:54  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:10:55  busy=idle agy-conversation    identity=agy/idle     composer=pending
05:10:57  busy=idle agy-conversation    identity=agy/working  composer=empty
05:10:58  busy=busy agy-conversation    identity=agy/working  composer=empty
05:10:59  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:01  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:02  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:03  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:04  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:06  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:07  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:08  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:09  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:10  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:12  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:13  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:14  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:15  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:17  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:18  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:19  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:20  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:22  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:23  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:24  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:26  busy=idle agy-conversation    identity=agy/idle     composer=pending
05:11:27  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:28  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:29  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:30  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:32  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:33  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:34  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:35  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:37  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:38  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:39  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:40  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:41  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:43  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:11:44  busy=idle agy-conversation    identity=agy/idle     composer=pending
05:11:45  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:46  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:48  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:49  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:50  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:51  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:52  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:54  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:55  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:56  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:57  busy=busy agy-conversation    identity=agy/working  composer=empty
05:11:59  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:00  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:01  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:02  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:04  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:05  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:06  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:07  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:08  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:10  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:11  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:12  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:13  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:15  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:16  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:17  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:18  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:19  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:21  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:22  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:23  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:24  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:26  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:27  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:28  busy=idle agy-conversation    identity=agy/idle     composer=empty
05:12:29  busy=idle agy-conversation    identity=agy/idle     composer=pending
05:12:30  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:32  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:33  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:34  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:36  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:37  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:38  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:40  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:41  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:42  busy=busy agy-conversation    identity=agy/working  composer=empty
05:12:44  busy=idle agy-conversation    identity=agy/idle     composer=empty
Evidence: Interrupt timing: busy -> idle within 1s of a single Escape

Source: Interrupt timing: busy -> idle within 1s of a single Escape

05:12:27  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:28  busy=idle agy-conversation    identity=agy/idle     footer=
05:12:29  busy=idle agy-conversation    identity=agy/idle     footer=
05:12:30  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:32  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:33  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:34  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:35  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:36  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:37  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:38  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:39  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:40  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:42  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:43  busy=busy agy-conversation    identity=agy/working  footer=esc to cancel
05:12:44  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:45  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:46  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:47  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:48  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:49  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:50  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:51  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:52  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:53  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:54  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:55  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:56  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:58  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:12:59  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:00  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:01  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:02  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:03  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:04  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:05  busy=idle agy-conversation    identity=agy/idle     footer=? for shortcuts
05:13:06  busy=idle agy-conversation    identity=agy/working  footer=esc to cancel
05:13:07  busy=idle agy-conversation    identity=agy/idle     footer=
05:13:08  busy=idle agy-conversation    identity=             footer=
05:13:09  busy=idle agy-conversation    identity=             footer=
Evidence: Real crewmate launch command fm-spawn types into an agy pane, plus its busy binding sidecar

Source: Real crewmate launch command fm-spawn types into an agy pane, plus its busy binding sidecar

--- launch command fm-spawn types into the agy crewmate's pane ---
env -u CURSOR_AGENT -u CURSOR_INVOKED_AS env -u CLAUDECODE -u AI_AGENT -u PI_CODING_AGENT -u GROK_AGENT -u FM_PI_HARNESS agy --dangerously-skip-permissions --model 'gemini-3.7-flash' --effort 'high' -i "$('~/.no-mistakes/worktrees/34c874d3722d/01M246G8JH3YJP5XZ6WEHTED9Q/bin/fm-operational-input.sh' encode launch-brief < '/tmp/fm-agy-launch-dump.XwlZn5/c/home/data/agy-demo-x1/brief.md')"

--- state/agy-demo-x1.agy-session (busy-state binding sidecar) ---
conversations_root=/tmp/fm-agy-launch-dump.XwlZn5/c/conversations
workspace_root=/tmp/fm-agy-launch-dump.XwlZn5/c/wt
Evidence: Composer verdict, live agy task-strip screen: target commit vs pre-fix library
empty composer + task strip: TARGET = empty PRE-FIX (69e61e3) = unknown
typed composer + task strip: TARGET = pending PRE-FIX (69e61e3) = unknown
identity probe both cases: agy/idle
fm_tmux_submit_core (strip on screen) -> empty (delivered)
- Outcome: 🔧 2 issues found → auto-fixed (2) ✅ across 3 runs (1h2m30s)

Pipeline

Updates from git push no-mistakes

... (7 earlier update rounds omitted to keep the PR body within GitHub's 65536-char limit; full history is in the run log.)

⚠️ **Review** - 2 warnings

🔧 Fix: fold agy step-type pair, require protobuf tag byte
2 warnings still open:

  • ⚠️ bin/fm-spawn.sh:2868 - The fleet-wide launch sanitization clears CURSOR_AGENT/CURSOR_INVOKED_AS for every non-cursor harness, but nothing anywhere clears ANTIGRAVITY_AGENT / ANTIGRAVITY_AGENTAPI_EXE (grep across bin/, tests/, docs/ finds them only in fm-harness.sh's read and the agy test). bin/fm-harness.sh:62 now tests ANTIGRAVITY_AGENT BEFORE CLAUDECODE, PI_CODING_AGENT and GROK_AGENT, and docs/verification/runtime-backends.md:930 records that these markers propagate down a subprocess chain (an agy tool subprocess carried ANTIGRAVITY_AGENT plus the outer primary's CLAUDECODE simultaneously). Concrete failure: an agy crewmate's tool subprocess launches a claude/codex/pi/grok worker (a nested fm-spawn, or a direct claude invocation); the child inherits ANTIGRAVITY_AGENT=1, bin/fm-harness.sh returns agy instead of claude, and every downstream table keyed on that identity (fm_control_harness_family, interrupt key/repeat, exit command, fm_busy_classify's harness arm) resolves to agy's mechanics for a claude process. Before this change that same child detected correctly, so the new precedence introduces the regression. Cursor's identical hazard is mitigated by exactly this fleet-wide env -u, and bin/fm-harness.sh:60-61 explicitly claims "bin/fm-spawn.sh additionally clears the foreign markers at the launch boundary" for agy - but only the inbound direction is implemented. Remedy is mechanical and one line: add -u ANTIGRAVITY_AGENT -u ANTIGRAVITY_AGENTAPI_EXE to the sanitization list at bin/fm-spawn.sh:2867-2869 (which already excludes the harness that legitimately owns the marker, cursor, and would need agy excluded the same way).
  • ⚠️ bin/fm-busy-lib.sh:945 - fm_busy_agy_matching_conversations does fs.readFileSync(file) on EVERY *.db directly under the conversations root, and fm_busy_agy_conversation (line 993) only short-circuits once a resolution has been cached. Until then - and permanently whenever resolution never succeeds - each fm_busy_classify poll for that task re-reads the entire directory into memory. The root is ~/.gemini/antigravity-cli/conversations, a flat never-pruned directory holding every agy conversation ever created on the machine, and the adapter's own docs describe individual databases as running several MB. Concrete path: an agy task whose binding stays unresolvable (two matching non-prior conversations, i.e. the ambiguity case tests/fm-agy-harness.test.sh:test_busy_fold_ambiguous_resolution_fails pins; or a spawn-time prior snapshot taken while node was unavailable, which silently records zero prior_conversation lines and leaves a reused worktree permanently at 2 candidates) reads unknown forever, and the daemon re-scans hundreds of megabytes on every single poll for the life of that task, with no negative cache and no bound. muse's structurally identical scan (fm_busy_muse_matching_logs, line ~365) caps each candidate at a 65536-byte header read for exactly this reason; agy has no equivalent bound because the path can sit anywhere in the blob. The remedy - a negative/failed-resolution cache, or an mtime floor taken from the binding sidecar so only conversations that could belong to this incarnation are read - adds new durable state beyond what this change does today, so it needs the author's decision rather than a mechanical edit.
🔧 **Test** - 2 issues found → auto-fixed (2) ✅
  • 🚨 bin/fm-busy-lib.sh:965 - agy's conversation binding cannot resolve while the session is live, so the semantic busy source reports unknown for the whole first turn. fm_busy_agy_matching_conversations byte-scans only files ending in .db (bin/fm-busy-lib.sh:965), but SQLite keeps a running agy session's freshly written pages in the sibling &lt;uuid&gt;.db-wal until a checkpoint. Live-measured on a real agy 1.1.28 session: launch 02:15:15, pane genuinely working 02:15:15-02:15:22 (footer esc to cancel, identity agy/working), and fm_busy_classify tmux none agy returned unknown agy-conversation for every one of those polls; the binding only resolved at 02:15:53, ~30s AFTER the turn had already settled, when the WAL was checkpointed (&lt;uuid&gt;.db grew 49152 -> 196608 bytes and went from 0 to 24 occurrences of the workspace path, -wal 589192 -> 0). busy agy-conversation was never once reported for turn 1. Once the resolution is cached the fold is accurate and prompt (turn 2 read busy within 1s, and idle right after Escape), so the defect is confined to the first resolution window - which is exactly the window covering a crewmate's brief-consuming first turn. Deterministic no-token reproduction in the evidence file agy-wal-binding-blindspot.txt: with the workspace-path bytes present only in the WAL the resolver returns nothing and the classifier says unknown, and the same database after wal_checkpoint(TRUNCATE) resolves and reads busy. The steps fold itself is unaffected because it uses plain sqlite3 -readonly, which reads through the WAL - only the binding scan is blind to it. A remedy (also scanning &lt;uuid&gt;.db-wal and mapping a hit back to &lt;uuid&gt;.db) changes the measured collision-anchoring guarantees the author deliberately tuned, so it is the author's call rather than a mechanical test fix.
  • ⚠️ tests/fm-bootstrap.test.sh:1170 - Pre-existing, environment-specific: test_orca_backend_gates_orca_tool_only_when_selected fails on this Linux host because GNOME ships a real /usr/bin/orca screen reader, so bootstrap correctly reports no missing orca tool while the test expects MISSING: orca. Confirmed identical at the base commit b82fc57, so it is not caused by this change. It matters here only because fail() exits the file, which means the two NEW agy crew-dispatch rows (agy capped efforts are accepted, unsupported agy xhigh effort is flagged) never execute on this machine. I ran test_crew_dispatch_validation standalone against the branch's bin/fm-bootstrap.sh and both agy rows pass. No test change made - accommodating a locally installed screen reader is not something to fix in the suite.
  • bash bin/fm-test-run.sh tests/fm-agy-harness.test.sh — all 16 cases pass (sqlite3 present, so no fixture cases were skipped)
  • bash bin/fm-test-run.sh tests/fm-composer-lib.test.sh tests/fm-tmux-agent-liveness.test.sh tests/fm-control.test.sh tests/fm-bootstrap.test.sh tests/fm-busy-adapter-wiring.test.sh — pass except the pre-existing orca environment case
  • FM_HARNESS_LIVENESS_DRIFT=1 bash tests/fm-harness-liveness-drift-live-e2e.test.sh — real agy binary: agy 1.1.28: title=&#39;agy&#39; foreground=[agy ] classifies alive
  • test_crew_dispatch_validation run standalone against the branch's bin/fm-bootstrap.sh (the file aborts earlier on this host) — both new agy effort rows pass
  • Live tmux e2e: launched real agy with env -u CLAUDECODE -u AI_AGENT ... agy --dangerously-skip-permissions --effort low -i &#34;&lt;brief&gt;&#34; and polled fm_busy_classify tmux none agy &lt;id&gt; &lt;state&gt;, fm_pane_busy_state, fm_tmux_composer_state, fm_tmux_composer_identity at 1s resolution across two turns
  • Live composer check on the running pane: nothing typed -> empty (identity agy/idle); unsent typed text -> pending; after clearing -> empty
  • Live interrupt check: single Escape mid-turn -> pane prints Interrupted · What should Antigravity CLI do instead?, composer reads empty with no clear key, fold settles to idle agy-conversation
  • Live exit check: /exit + Enter closed the agy session
  • agy --help and agy plugin --help captured to confirm -i/--prompt-interactive, --effort low|medium|high (no xhigh/max), and the absence of any hook/notify/app-server surface
  • Deterministic WAL reproduction with sqlite3 only (no agy, no tokens): workspace bytes in &lt;id&gt;.db-wal -> resolver returns nothing / classifier unknown; after wal_checkpoint(TRUNCATE) -> resolves and reads busy
  • Byte-level measurement of the live conversation database before and after checkpoint (grep -acF on .db vs .db-wal, file sizes)

🔧 Fix: scan agy .db-wal siblings for conversation binding
2 issues (1 error, 1 info) still open:

  • 🚨 bin/fm-composer-lib.sh:1438 - agy's background-task strip makes firstmate report a delivered steer as NOT submitted. When agy runs an async shell task it draws a third horizontal rule and a ● [HH:MM:SS] &lt;cmd&gt; running row BELOW the composer (footer gains N task(s) · /tasks). With that strip on screen every composer verdict degrades to unknown — including a genuinely empty composer. Live repro (twice, agy 1.2.0, real tmux pane): with no strip, fm_tmux_composer_state=empty and fm_tmux_submit_core returns empty; with the strip, fm_tmux_composer_state=unknown and fm_tmux_submit_core returns unknown — yet the steer landed and agy answered it (CHERRY). bin/fm-send.sh:644 maps any non-empty/non-pending verdict to error: text not submitted to &lt;T&gt; (delivery unconfirmed...), exit 1, and discards the pending-reply expectation, so the captain sees a hard delivery failure for a message that was delivered and is invited to resend it. Deterministic offline repro with the project's own classifier and the existing test fixture style (identity agy&lt;TAB&gt;idle, CAPS_TMUX): empty composer + strip -> unknown (expected empty); typed composer + strip -> unknown (expected pending); same screens without the strip -> empty / pending. A long build or test run backgrounded by a crewmate is exactly when this state occurs. Flagged for the author rather than auto-fixed: the remedy touches the identity-gated agy branch of the composer verdict (bin/fm-composer-lib.sh:1438), which is the same logic whose first naive fix previously reintroduced the Pi empty-composer regression, so the region-selection rule needs the author's judgement and a live re-measurement.
  • ℹ️ bin/fm-busy-lib.sh:882 - Measured, not actionable on its own: agy does not always embed the workspace path in its conversation database, so the binding can stay unresolved for a whole turn. A first turn whose only tool call was a shell command (sleep 8; echo ...) produced a conversation database containing zero occurrences of the workspace root — agy recorded the shell tool's Cwd as ~ even though the CLI process cwd and the banner were the workspace — and the fold therefore read unknown agy-conversation for that entire turn on the target commit too. The path appeared, and the binding resolved within ~3s, as soon as a turn referenced a workspace-absolute path (a file read). The verdict in the unresolved window is unknown, never a false idle, so this is safe by design and consistent with the already-accepted unresolved-binding behaviour; noting it only because the adapter comment in bin/fm-busy-lib.sh states each database embeds the workspace path, and the host now runs agy 1.2.0 while the docs record 1.1.28.
  • bash tests/fm-agy-harness.test.sh — all 19 cases pass, including the three new -wal binding cases
  • bash tests/fm-composer-lib.test.sh — full composer suite passes, including the agy identity-gated cases
  • bash tests/fm-tmux-agent-liveness.test.sh — passes
  • bash tests/fm-control.test.sh — 35 cases pass
  • bash tests/fm-bootstrap.test.sh — still stops at the pre-existing, host-specific test_orca_backend_gates_orca_tool_only_when_selected failure (GNOME ships /usr/bin/orca); already accepted as no-op in round 1, and it prevents the two agy crew-dispatch rows from executing on this host
  • Live agy 1.2.0 session in a real tmux pane (agy --dangerously-skip-permissions -i &#34;...&#34;), spawn-equivalent &lt;id&gt;.agy-session sidecar built with fm_busy_agy_matching_conversations: polled fm_busy_classify tmux agye2e agy &lt;id&gt; &lt;state&gt; at 0.5s from the target commit and from the pre-fix commit f6f4b79 simultaneously, alongside ls of the live &lt;uuid&gt;.db-wal and the agy footer as ground truth
  • Live composer probes at 80 columns via fm_tmux_composer_identity / fm_tmux_composer_state: idle (empty), one typed row (pending), a typed line wrapped across two composer rows (pending), cleared (empty)
  • Live interrupt: single tmux send-keys Escape mid-turn — pane shows Interrupted, composer left empty with no clear key, busy fold flips to idle ~1.2s later
  • Live delivery through the real submit path fm_tmux_submit_core (re-exported verbatim by bin/backends/tmux.sh as fm_backend_tmux_send_text_submit) with and without agy's background-task strip on screen
  • Offline deterministic repro of the strip defect using fm_composer_classify_screen with the test suite's own CAPS_TMUX and agy&lt;TAB&gt;idle identity fixture

🔧 Fix: keep agy composer pair when task strip follows
✅ Re-checked - no issues remain.

  • bash tests/fm-agy-harness.test.sh (22 cases, incl. 3 newly added spawn cases)
  • bash tests/fm-composer-lib.test.sh
  • bash tests/fm-tmux-agent-liveness.test.sh
  • bash tests/fm-control.test.sh
  • bash tests/fm-busy-adapter-wiring.test.sh
  • bash tests/fm-tmux-submit-busy.test.sh
  • Live: launched real agy 1.2.0 in tmux with fm-spawn's emitted command env -u CLAUDECODE ... agy --dangerously-skip-permissions -i &#34;&lt;brief&gt;&#34;
  • Live: agy ran bin/fm-harness.sh via its own shell tool -> printed agy
  • Live: fm_busy_classify tmux &lt;pane&gt; agy &lt;id&gt; &lt;state&gt; polled at 1 Hz across two real turns -> busy/idle transitions matching pane identity
  • Live: fm_tmux_composer_state on the real background-task-strip screen, target commit vs. pre-fix lib from commit 69e61e3 (empty vs unknown, pending vs unknown)
  • Live: fm_tmux_submit_core &lt;pane&gt; &#34;&lt;steer&gt;&#34; 3 0.4 0.3 with the task strip on screen -> empty (delivered)
  • Live: fm_control_interrupt_key/repeat/clear_key (Escape/1/none) replayed against a running generation turn -> ⎿ Interrupted, busy->idle in 1s, composer empty
  • Live: fm_control_exit_command agy (/exit) -> agy process and tmux pane gone
  • Dumped the real crewmate launch command and state/&lt;id&gt;.agy-session binding sidecar from a driven bin/fm-spawn.sh run
  • Mutation checks: reverted -i to a bare positional, allowed xhigh through the effort map, and disabled the agy secondmate refusal — each new test failed, then source was restored clean
⚠️ **Document** - 1 info
  • ℹ️ tests/fm-agy-harness.test.sh:276 - Not a documentation issue and not touched by this phase, but worth flagging because the user intent states lint is clean: bin/fm-lint.sh exits 1 in this worktree with 15 ShellCheck info findings (12x SC2031 'modified in a subshell', 3x SC2059 'variables in the printf format string'), all in tests/fm-agy-harness.test.sh. They are not caused by the uncommitted working-tree additions: running shellcheck -x on the file exactly as committed at the target commit 3df6d0b reproduces the same 12 SC2031 + 3 SC2059, and fm-lint.sh runs at ShellCheck's default severity, where info findings fail. The lint phase owns this; I made no test or code edit.
🔧 **Lint** - 1 issue found → auto-fixed ✅
  • ⚠️ linter found issues (exit code 1)

🔧 Fix: clear shellcheck subshell and printf findings in agy test
✅ Re-checked - no issues remain.

✅ **Push** - passed

✅ No issues found.

Alan Domio and others added 8 commits September 10, 2026 01:02
…ness adapter

Verified live against Antigravity CLI 1.1.28: env markers and the
detection-ordering hazard shared with cursor (bin/fm-harness.sh), the
launch shape and model/effort mapping (bin/fm-spawn.sh), a genuine
semantic busy-state source folded from agy's own per-conversation
SQLite database rather than a rendered fallback (bin/fm-busy-lib.sh),
interrupt/exit mechanics (bin/fm-control-lib.sh), ordinary crewmate
liveness (bin/backends/tmux.sh), and the composer shape - which
required extending the shared Pi-pair mechanism's identity probe
(bin/fm-tmux-lib.sh, bin/fm-composer-lib.sh) rather than trusting
structure alone, since a live regression test already guards against
exactly that failure mode for an unrelated shell pane.

agy has no hook, plugin lifecycle, or app-server surface at all, so it
is scoped crewmate/scout only, refused for --secondmate like muse.
Two rows are documented but not fully closed: agy does not discover
~/.claude/skills/, so /no-mistakes is not yet reachable on an ordinary
project crewmate; and the busy fold depends on the sqlite3 CLI, a real
external dependency with no bootstrap check added.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011DU1c6mYnpmyTSi3Fgm5zB
@alandomio
alandomio merged commit f63dd63 into main Sep 10, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant