Skip to content

fix(agentic): Antigravity adapter argv drops the prompt — --print swallows --print-timeout as its value #1089

Description

@rickylabs

Summary

.llm/tools/agentic/runtime/adapters/antigravity-adapter.ts emitted:

agy --print --print-timeout <ms> ...

but agy's --print takes the prompt as its value. So --print swallowed the literal string
--print-timeout, and the real prompt was never passed. The agent received --print-timeout as its
instruction.

Owner-specified corrected form keeps all flags before the final --print and prompt value:

agy --model gemini-3.6-flash-high --output-format stream-json --dangerously-skip-permissions --new-project --print "<prompt>"

--print-timeout is deliberately omitted until its ordering is separately proven.

Observed

Reproduced during 0.0.4 release orchestration, 2026-08-03: the launched agent went off investigating
--print-timeout as though it were the task; a second attempt returned a bare greeting. No error —
the invocation was well-formed, it just meant something else.

Why this is p1 now

The documentation authoring lane was just repointed to Antigravity (#1082, PR #1086) because
agy runs on the owner's Google subscription rather than billing OpenRouter credit. Every future
docs slice therefore goes through this adapter.

It also silently degraded any Antigravity probe elsewhere — including the research_extraction
lane and agentic:antigravity-evidence — and the failure presented as "the model gave a useless
answer" rather than as a malformed command.

Acceptance

  • The adapter emits --print last, with the prompt as its value, and never places another flag immediately after --print
  • A test asserts the emitted argv passes the prompt as --print's value and that no flag follows --print
  • An Antigravity probe returns a response that demonstrably answers the prompt, not the flag
  • agentic:antigravity-evidence is re-verified against the corrected argv

Evidence

  • PR fix(agentic): route Gemini docs through Antigravity #1086, slice commit 8621d4ce0
  • Focused adapter/CLI/compat/volatile guards: 25 passed, 0 failed
  • Full .llm/tools/agentic/ suite: 323 passed, 0 failed
  • Live probe returned exactly the requested unique marker ANTIGRAVITY_PROMPT_VALUE_1089_OK
  • agentic:antigravity-evidence: passed, exit 0, no diagnostics, headless and structured output supported, raw output not retained
  • Separate Claude/Opus slice review: PASS, all eight criteria verified, no blocking findings

Provenance

Found by the PR-C docs supervisor while running the documentation lane, 2026-08-03. Reproduced twice.
Folded into PR #1086 by written owner direction.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions