summaryrefslogtreecommitdiff
path: root/docs/findings.md
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-03 16:43:51 -0700
committert <t@tjp.lol>2026-12-04 13:53:47 -0700
commit8c167c49f18c76f1f867778341ac821591d9d990 (patch)
treec86df0cf3af948fcff8979ec7c543b8e137cbfdc /docs/findings.md
parentf1f1c5bc66ea1d6019f84050aa21e4476330a719 (diff)
Carry oversized history reseeds in the system prompt append
agy keeps only the first ~191 KB of a user message, so a large cold reseed dropped the newest history and the current request. When transcript plus request exceed 160 KB, move the older part of the transcript into the new session's system prompt append, framed as a verbatim record, and keep the newest part with the request in one user message. Refuse a single request too large to fit. Record the probes in docs/findings.md and the separate ~9.9 KB MCP tool result cap in BUGS.md.
Diffstat (limited to 'docs/findings.md')
-rw-r--r--docs/findings.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/findings.md b/docs/findings.md
index a519a4b..467e395 100644
--- a/docs/findings.md
+++ b/docs/findings.md
@@ -36,3 +36,16 @@ An unauthenticated ACP probe in a temporary profile sent `_meta.disableBuiltInTo
- A command cannot dispatch tools directly on the borrowed primary agent. Copying tool declarations to an owned child retained the original handler closure but changed its session identity. Waiting in `run_foreground` blocked the primary loop. A local-only Panto protocol instead emitted native tool events on the primary thread; the MCP relay could restart without moving the handler. Interrupting the host removed its private endpoint.
- Additional MCP tools do not imply exclusive dispatch. Neither suppression of native tools nor isolation from other configured servers was established. Do not expose delegation tools on the personal route.
- Reference: [Google ACP editor guide](https://antigravity.google/docs/ide/extensions/acp), [Terms §6](https://antigravity.google/terms), [T3/Zed clarification](https://discuss.ai.google.dev/t/197131/3), [disputed narrower interpretation](https://discuss.ai.google.dev/t/202970/5), [delegation guidance](https://discuss.ai.google.dev/t/203835/7), [pinned T3 adapter](https://github.com/pingdotgg/t3code/blob/6f2e02c1e10a4e4b1d9eb41d55e49ac4b606344b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts#L165-L169). T3’s precedent is an additive instruction and a per-session MCP descriptor, not a replacement system prompt.
+
+## User-message cap (agy 1.5.22, December 2026)
+
+A cold `/tree` reseed of a 756 KB transcript answered the session's first prompt: agy's stored model request kept the first ~191 KB and replaced the rest with `<truncated 564622 bytes>`, dropping the current request. Live Hydrogen probes with marker tokens (standalone ACP client, private profile):
+
+- 492 KB as four `text` blocks in one `session/prompt`: joined, then cut at the same point (`<truncated 300389 bytes>`); question lost. Four `resource` blocks (`embeddedContext` is advertised): same result.
+- The same bytes in `_meta.antigravity.systemPrompt.append`: complete at 492 KB (149k input tokens) and 1.48 MB (433k).
+- Four `session/prompt` requests sent without waiting: each became its own user message, uncut, but stored out of order (part 2, question, part 1, part 3). Staggered 300 ms they arrived in order, yet ACP gives no per-prompt acknowledgement, so the order is a timing race. With 2 KB parts: no delay gave one model call in a different shuffled order every run; 20–100 ms between every send kept order but the first part ran its own model call; a short opener, one 20 ms wait, then a burst was shuffled in 4 of 4 runs and the opener's reply leaked as visible text in 2.
+- Awaiting each part's reply is ordered but costs a model call and an agy-only assistant turn per part. Rejected.
+- `resource_link` blocks: the model receives the path only. MCP tool results are cut to ~9.9 KB and `resources/read` bodies are spilled to a file (see `BUGS.md`), so no tool route can carry a transcript.
+- Overflow split, 246 KB in the append plus a 103 KB user message: one model call (107k input tokens), every marker present and in order in the stored model request, nothing truncated. After `session/resume` in a fresh process with no append re-sent, the model quoted a line from the append it had never output, with 106,982 cached-read tokens. A resume that does send an append takes effect too; whether it replaces or adds to the stored one is untested and the adapter never does it.
+
+The adapter therefore keeps one user message and moves only the older history that does not fit into the system prompt append of the new session. Costs: that history sits at system level, framed as a record; agy's own context management cannot reclaim it; and agy appears to store the append with every user step, so a seeded conversation's database grows by about the record's size per turn. In the probe a one-line prompt after resume was stored as a 250 KB step; in ordinary sessions every user step is ~12 KB regardless of prompt length, consistent with it carrying the rig instructions. This is disk only: the resumed call read the record from cache.