Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
docs(antigravity): why there is no chat view yet, and the capture that unblocks it
review9ed95816e019
diff --git a/CLAUDE.md b/CLAUDE.mdindex ccea29e57..799b9a4d2 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1873,6 +1873,19 @@ else, and its context links must keep classifying across restarts).cost before the backgrounding. Full picture,limits (permission prompt and ESC fire no hook) and the device checklist:**`docs/antigravity-agent.md`**.+ **No conversation view, and that is deliberate** (not in `CHAT_CAPABLE`): ⌘M shows the rendered+ terminal output, and the phone's Chat screen answers `unsupported`. The+ LOCATION is measured: every hook payload names `transcriptPath`, which is+ `~/.gemini/antigravity-cli/brain/<conversationId>/.system_generated/logs/transcript_full.jsonl`,+ keyed by the id `normalizeAntigravity` already records as `sessionId`. The RECORD SHAPES were never+ captured; the 1.2.12 binary only describes them in prose. Four facts a parser needs are unknown:+ the `tool_calls` element keys, how a tool result links back to its call, the serialized enum+ spelling, and whether a line is rewritten when its step's status changes, which decides between+ claude's paged read and grok's single capped read. A parser built from that prose would be a rule-14+ wrong guess, so none ships, not even unwired. The capture recipe is §7.1 and §8.1 of the doc, using+ `scripts/agy-transcript-shape.mjs`, which dumps shapes and never text. When it lands: locate+ strictly by id (`brain/` holds every conversation on the machine), and have a remote node answer+ `remoteOnly` → unreadable like grok.- **Gemini + codex parity** (2026-08-09) — brought both up to grok's level in the lists above. Unlikegrok, **both CLIs are installed** and gemini **ships its own hook reference**(`/usr/lib/node_modules/@google/gemini-cli/bundle/docs/hooks/reference.md`), so almost every fact isdiff --git a/docs/antigravity-agent.md b/docs/antigravity-agent.mdindex a5c1437c0..85286e085 100644--- a/docs/antigravity-agent.md+++ b/docs/antigravity-agent.md@@ -318,7 +318,7 @@ timeout, on every tool call. `antigravity-script.test.ts` pins it with a curl th| In-place restart / Eco | `/exit` and `/quit` are documented (1.2.12), but `ask_question` maps to `waiting`, which the restart's busy gate does not refuse — an `/exit` would be typed into an open question. Map it to `blocked` (or treat `waiting` as busy for agy) and check on a device that the pane returns to a shell (agy runs sidecar processes) before adding `EXIT_SEQUENCES.antigravity` || Permission modes | flags exist (`--mode accept-edits\|plan`, `--dangerously-skip-permissions`) but there is no row in `approval-mode.ts`. Until there is, nodes run under `agy`'s default policy — so its permission prompt (which fires no hook, §3.1) is what a node shows as RUNNING || Context meter | no token count or window in hooks or transcript (the TUI's "1.1k tokens" is per thought block) |-| Chat panel, context link, transfer | no parser/locator yet. When there is one: read **`transcript_full.jsonl`** (what the payload announces), not `transcript.jsonl`, which lacks `thinking` and `tool_calls` |+| Chat panel (⌘M, and the phone's Chat screen), context link, transfer | the transcript's LOCATION is measured, its record shapes are not. See §7.1 || Canvas control | the shim and the discovery file already exist — `agy` reads `~/.gemini/GEMINI.md` (measured), where the Gemini CLI's nodeterm blocks are — but antigravity is not in `CANVAS_CONTROL_CAPABLE`, so the session gets no `NODETERM_CANVAS_CONTROL` and the shim answers "not a nodeterm agent node". Joining is the follow-up; check what else that list gates first || Subagent cards | `invoke_subagent` exists in the step enum; never provoked || Session name, rename | title lives in SQLite (not measured); no rename command |@@ -328,6 +328,72 @@ timeout, on every tool call. `antigravity-script.test.ts` pins it with a curl thAlso worth knowing: `agy` asks "Do you trust the contents of this project?" the first time it opens afolder, before any turn.+### 7.1 The chat view: what is known, and why nothing ships yet++`antigravity` is deliberately NOT in `CHAT_CAPABLE` (pinned in `config.capabilities.test.ts`). On+an agy node, ⌘M therefore opens the rendered terminal OUTPUT (`TerminalMarkdownView`), never the+conversation view, and the phone's Chat screen answers `unsupported` (its relay `page()` is gated on+`canChat`). That is the honest answer until the record shapes below are captured. A parser written from the vendor's prose would map the user's and the+model's text and then have to guess everything else, which is rule 14 of "Adding a new agent" in+`CLAUDE.md`: a guess must degrade to nothing, never to something wrong. An unwired skeleton is not+shipped either, because a module whose only reader is its own test is a plan, not a feature.++**Measured** (1.2.3, Windows; the hook payloads in+`src/shared/agents/__fixtures__/antigravity/hook-payloads.json`):+- **Location.** Every payload names `transcriptPath` =+ `<agy home>/brain/<conversationId>/.system_generated/logs/transcript_full.jsonl`, next to+ `artifactDirectoryPath` = `<agy home>/brain/<conversationId>`, with `<agy home>` =+ `~/.gemini/antigravity-cli`. On Linux, the 1.2.12 binary created `~/.gemini/antigravity-cli/brain/`+ under a fresh HOME (2026-09-28). The directory stayed empty, because no turn runs without a+ sign-in.+- **Session id.** `normalizeAntigravity` already maps `conversationId` to the event's `sessionId`+ (the same id `agy --conversation=<id>` resumes), so a node's own id reaches `agentStatus`. The+ locator must key on that id and nothing else: `brain/` holds every conversation on the machine,+ so a "newest file" fallback would show a stranger's session.++**Vendor-described, never captured.** The 1.2.12 binary embeds instructions that tell its own model+how to read these files. They say:+- JSONL, one "step" (action) per line.+- `step_index` is the step's index in the trajectory.+- `source` is e.g. `USER_EXPLICIT`, `MODEL` or `SYSTEM`.+- `type`: `USER_INPUT` is the user's prompt, and `PLANNER_RESPONSE` is the agent's response and its+ tool calls.+- `status` is e.g. `DONE` or `ERROR`. `created_at` is an ISO 8601 timestamp.+- `content` is the text: the user's request, the model's response, or tool responses.+- `thinking` holds the reasoning (on `PLANNER_RESPONSE`), and `tool_calls` is "an array of tool calls+ … including their arguments".+- `media` is `[{mime_type, uri}]`; the bytes are not in the file.+- `truncated_fields` appears only in the compact `transcript.jsonl`, which truncates large+ `content`/`thinking`/`tool_calls`. It never appears in `transcript_full.jsonl`.++That settles which file to read (`transcript_full.jsonl`) and nothing more.++**Unknown, and each one is a guess that would render wrong:**+1. **The element shape of `tool_calls`**: the keys for the name, the arguments and any id, and+ whether the arguments are an object or a JSON string.+2. **How a tool's RESULT is recorded, and how it links to its call.** `content` "or tool responses"+ suggests a step of its own. The step-type enum in the binary has ~120 values (`RUN_COMMAND`,+ `VIEW_FILE`, `GREP_SEARCH`, `ASK_QUESTION`, `INVOKE_SUBAGENT`, `ERROR_MESSAGE`, `CHECKPOINT`, …),+ and nothing says which field points back at the call (`step_index`? an id?).+3. **The serialized spelling of the enums.** The vendor text writes `USER_INPUT`, the proto name is+ `CORTEX_STEP_TYPE_USER_INPUT`, and a parser matching the wrong one renders an empty thread.+4. **Whether a `USER_INPUT` `content` is exactly what the person typed**, or is wrapped in injected+ tags or metadata. Tooling text must never appear in the shape of something the human said.+5. **Whether the file is append-only.** The status enum also has `RUNNING`, `GENERATING`,+ `WAITING`, `PENDING` and `QUEUED`. If a step's line is rewritten when its status changes, byte+ offsets are not stable keys. The paged read (claude's) would then be wrong, and the single capped+ whole-file read (grok's) is the only safe shape. **This one decides the paging design.**+6. **The model name.** It is not a documented step field. The hook payload's `modelName` exists, but+ the chat reader reads the file.+7. **What an ESC-cancelled turn, an errored tool, a compaction/summary and an `invoke_subagent` child+ write**, and whether a child's steps land in the parent's file.++**Remote nodes.** There is no SSH hook installer for agy (§7, SSH projects). A remote agy node never+reports a `conversationId`, so there is nothing to locate on the host. When this lands, a remote node+must answer `remoteOnly` → unreadable, like grok, and never read this machine's `brain/`.++The capture that unblocks all of it is §8.1 (items 17–24), with `scripts/agy-transcript-shape.mjs`.+---## 8. Device checklist — what is NOT verified@@ -362,3 +428,45 @@ folder, before any turn.16. **Whether agy waits on the hook's process GROUP or only the direct child and its pipes** — thebackgrounded POST is safe only in the second case (a runner that waits on the child returned in12–16 ms while a 6 s walk was still running).++### 8.1 The chat-view capture (§7.1), items 17–24++One session answers all of them. Run it on a machine with the vendor-installed, signed-in `agy` (not+the snap, §4), in a throwaway workspace with a synthetic prompt, so the file holds no one's work.+The raw transcript stays on that machine. What leaves it is the output of+`scripts/agy-transcript-shape.mjs`, which prints keys, nesting, enum values and lengths, never the+text (review it before sharing: a key can itself be data). Commit only SYNTHETIC fixtures built+from that dump, never a slice of a real file.++```sh+mkdir -p /tmp/agy-cap && cd /tmp/agy-cap && git init -q && printf 'hello\n' > a.txt+agy --prompt-interactive 'Read a.txt, then run `echo hi`, then run `sleep 30` in the background, then ask me which of JSON or YAML I prefer, then answer in two paragraphs with a markdown list.'+# Answer the question. Before the background sleep finishes, in a second shell:+ID=$(ls -t ~/.gemini/antigravity-cli/brain | head -1)+L=~/.gemini/antigravity-cli/brain/$ID/.system_generated/logs+node scripts/agy-transcript-shape.mjs "$L/transcript_full.jsonl" --snapshot /tmp/agy-cap/snap.json+# After the final Stop (the sleep's PostToolUse, then Stop fullyIdle:true):+node scripts/agy-transcript-shape.mjs "$L/transcript_full.jsonl" --compare /tmp/agy-cap/snap.json+node scripts/agy-transcript-shape.mjs "$L/transcript_full.jsonl" > /tmp/agy-cap/full.shape+node scripts/agy-transcript-shape.mjs "$L/transcript.jsonl" > /tmp/agy-cap/compact.shape+```++On Windows, run the same from Git Bash, where `~` is `%USERPROFILE%`.++17. **Every record's shape** (`full.shape`): the key set per `type`, and which lines a turn writes.+18. **`tool_calls` elements** (the summary's `toolCallKeys`): the name/arguments/id keys, and+ whether the arguments are an object or a string.+19. **The tool result**: which line follows a `PLANNER_RESPONSE` with `tool_calls`, what its `type`+ and `source` are, and which field names the call it answers.+20. **Enum spelling** (the summary's `enums`): `USER_INPUT` or `CORTEX_STEP_TYPE_USER_INPUT`.+21. **`USER_INPUT` `content`**: compare its `<text:N>` length with the prompt you typed. A longer+ value means injected wrapping; read that one line locally to see the wrapper's shape.+22. **Append-only**: `--compare` must print `append-only` across the background tool's status change.+ `rewritten` means byte offsets are not stable keys, and the reader must be grok's single capped+ read (`olderCursor: null`), not claude's paged window.+23. **The model name**: which key, if any, carries it (`gemini-3.8-flash-high` in the hook payload).+24. **The failure paths**, one short extra session each, dumped the same way: ESC mid-turn, a+ command that fails, a pasted image (`media`), `/compact` or a long session, and an+ `invoke_subagent` child (does its step list land in the parent's file?). Also confirm that+ `compact.shape` carries `truncated_fields` and `full.shape` never does, and whether any+ environment variable relocates `~/.gemini/antigravity-cli` on macOS/Linux.diff --git a/scripts/agy-transcript-shape.mjs b/scripts/agy-transcript-shape.mjsnew file mode 100644index 000000000..b356ff573--- /dev/null+++ b/scripts/agy-transcript-shape.mjs@@ -0,0 +1,144 @@+#!/usr/bin/env node++/**+ * Capture tool for the Antigravity (`agy`) chat-view device checklist+ * (docs/antigravity-agent.md §7.1 and §8, items 17–24).+ *+ * nodeterm has no ⌘M chat view for agy because the record shapes of+ * `<agy home>/brain/<conversationId>/.system_generated/logs/transcript_full.jsonl` were never+ * captured. The agy binary describes them in prose, but a parser built from that prose would be a+ * guess. Run this on a machine with a signed-in `agy` and it prints what a parser needs: the SHAPE of+ * every line (keys, nesting, enum values, lengths), never the conversation.+ *+ * Redaction rule: every key is kept (keys are schema). A string VALUE is kept only when it looks+ * like schema: an UPPER_SNAKE enum (`PLANNER_RESPONSE`), a snake_case identifier with at least one+ * underscore (`run_command`), a UUID or an ISO 8601 timestamp. Everything else, a one-word reply+ * included, becomes `<text:N>` (N in UTF-16 units). A line that is not JSON prints its byte length+ * only. Review the output before sharing it anyway: a key can be data (a map keyed by file names).+ *+ * node scripts/agy-transcript-shape.mjs <transcript_full.jsonl>+ * one line per record: `<line> <byte offset> <shape>`, then a JSON summary+ * node scripts/agy-transcript-shape.mjs <file> --snapshot <out.json>+ * records the file's size and sha256+ * node scripts/agy-transcript-shape.mjs <file> --compare <out.json>+ * prints append-only | rewritten | shrunk: are the snapshot's bytes still an untouched prefix?+ */+import { createHash } from 'node:crypto'+import fs from 'node:fs'+import { fileURLToPath } from 'node:url'++const ENUM = /^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$/+const SNAKE = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)+$/+const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i+const ISO = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})$/++function keepString(s) {+ return ENUM.test(s) || SNAKE.test(s) || UUID.test(s) || ISO.test(s)+}++/** The value with every free-text string replaced by `<text:N>`. */+export function redactShape(v) {+ if (typeof v === 'string') return keepString(v) ? v : `<text:${v.length}>`+ if (Array.isArray(v)) return v.map(redactShape)+ if (v && typeof v === 'object') {+ const out = {}+ for (const [k, x] of Object.entries(v)) out[k] = redactShape(x)+ return out+ }+ return v+}++/** Every non-empty line: its 1-based number, its byte offset and its redacted shape. */+export function shapeLines(buf) {+ const out = []+ let start = 0+ let n = 0+ while (start < buf.length) {+ let end = buf.indexOf(0x0a, start)+ if (end < 0) end = buf.length+ n+++ const raw = buf.subarray(start, end)+ if (raw.length > 0) {+ let shape+ try {+ shape = redactShape(JSON.parse(raw.toString('utf8')))+ } catch {+ shape = `<non-json:${raw.length} bytes>`+ }+ out.push({ line: n, offset: start, shape })+ }+ start = end + 1+ }+ return out+}++/** A field of an already-redacted shape, as a label. */+function field(shape, k) {+ if (!shape || typeof shape !== 'object' || !(k in shape)) return '-'+ return typeof shape[k] === 'string' ? shape[k] : JSON.stringify(shape[k])+}++/** Counts of `type|source|status`, the union of keys per type, and the tool_calls element keys. */+export function summarize(buf) {+ const lines = shapeLines(buf)+ const enums = {}+ const keysByType = {}+ const toolCallKeys = new Set()+ let nonJson = 0+ for (const { shape } of lines) {+ if (typeof shape === 'string') {+ nonJson+++ continue+ }+ const tri = `${field(shape, 'type')}|${field(shape, 'source')}|${field(shape, 'status')}`+ enums[tri] = (enums[tri] ?? 0) + 1+ if (shape && typeof shape === 'object' && !Array.isArray(shape)) {+ const t = field(shape, 'type')+ const set = new Set(keysByType[t] ?? [])+ for (const k of Object.keys(shape)) set.add(k)+ keysByType[t] = [...set].sort()+ if (Array.isArray(shape.tool_calls)) {+ for (const c of shape.tool_calls) {+ if (c && typeof c === 'object' && !Array.isArray(c)) toolCallKeys.add(Object.keys(c).sort().join(','))+ else toolCallKeys.add(`<${Array.isArray(c) ? 'array' : typeof c}>`)+ }+ }+ }+ }+ return { lines: lines.length, nonJson, enums, keysByType, toolCallKeys: [...toolCallKeys].sort() }+}++export function snapshotOf(buf) {+ return { size: buf.length, sha256: createHash('sha256').update(buf).digest('hex') }+}++/** Are the snapshot's bytes still an untouched prefix of `buf`? */+export function compareSnapshot(buf, snap) {+ if (buf.length < snap.size) return 'shrunk'+ const h = createHash('sha256').update(buf.subarray(0, snap.size)).digest('hex')+ return h === snap.sha256 ? 'append-only' : 'rewritten'+}++function main(argv) {+ const [file, flag, arg] = argv+ if (!file) {+ process.stderr.write('usage: agy-transcript-shape.mjs <file> [--snapshot <out> | --compare <snap>]\n')+ return 2+ }+ const buf = fs.readFileSync(file)+ if (flag === '--snapshot' && arg) {+ fs.writeFileSync(arg, JSON.stringify(snapshotOf(buf)) + '\n')+ return 0+ }+ if (flag === '--compare' && arg) {+ process.stdout.write(compareSnapshot(buf, JSON.parse(fs.readFileSync(arg, 'utf8'))) + '\n')+ return 0+ }+ for (const l of shapeLines(buf)) process.stdout.write(`${l.line} ${l.offset} ${JSON.stringify(l.shape)}\n`)+ process.stdout.write(JSON.stringify(summarize(buf), null, 2) + '\n')+ return 0+}++if (process.argv[1] && fileURLToPath(import.meta.url) === fs.realpathSync(process.argv[1])) {+ process.exitCode = main(process.argv.slice(2))+}diff --git a/scripts/agy-transcript-shape.test.ts b/scripts/agy-transcript-shape.test.tsnew file mode 100644index 000000000..3d86540fd--- /dev/null+++ b/scripts/agy-transcript-shape.test.ts@@ -0,0 +1,133 @@+import { describe, it, expect } from 'vitest'+import { createHash } from 'node:crypto'+import {+ redactShape,+ shapeLines,+ summarize,+ snapshotOf,+ compareSnapshot+ // @ts-expect-error — plain .mjs repo tooling, deliberately outside the typechecked projects.+} from './agy-transcript-shape.mjs'++// Synthetic lines in the shape the agy 1.2.12 binary DESCRIBES (docs/antigravity-agent.md §7.1).+// They are inputs to a redaction tool, not a claim about the real format.+const USER =+ '{"step_index":0,"source":"USER_EXPLICIT","type":"USER_INPUT","status":"DONE",' ++ '"created_at":"2026-09-28T10:00:00.123Z","content":"please list my secret files in /home/x"}'+const MODEL =+ '{"step_index":1,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE",' ++ '"content":"Sure. Here","thinking":"the user wants","tool_calls":' ++ '[{"name":"run_command","args":{"CommandLine":"ls -la ~","WaitMsBeforeAsync":500}}]}'++describe('redactShape', () => {+ it('replaces free text with its length and keeps enum-like values', () => {+ expect(redactShape(JSON.parse(USER))).toEqual({+ step_index: 0,+ source: 'USER_EXPLICIT',+ type: 'USER_INPUT',+ status: 'DONE',+ created_at: '2026-09-28T10:00:00.123Z',+ content: '<text:38>'+ })+ })++ it('walks nested objects and arrays, keeping snake_case identifiers and numbers', () => {+ const s = redactShape(JSON.parse(MODEL))+ expect(s.tool_calls).toEqual([+ { name: 'run_command', args: { CommandLine: '<text:8>', WaitMsBeforeAsync: 500 } }+ ])+ expect(s.thinking).toBe('<text:14>')+ })++ it('never keeps a single ordinary word, a sentence or a path', () => {+ // A one-word reply is conversation, not schema; `Sure.` would pass an identifier regex.+ for (const v of ['hi', 'Sure.', 'Hello world', '/home/x/.ssh/id_rsa', 'C:\\Users\\x', 'Ok']) {+ expect(redactShape(v), v).toBe(`<text:${v.length}>`)+ }+ })++ it('keeps UUIDs (conversation ids) and ISO timestamps, which are schema, not content', () => {+ expect(redactShape('00000000-0000-4000-8000-000000000001')).toBe(+ '00000000-0000-4000-8000-000000000001'+ )+ expect(redactShape('2026-09-28T10:00:00Z')).toBe('2026-09-28T10:00:00Z')+ expect(redactShape('2026-09-28T10:00:00+03:00')).toBe('2026-09-28T10:00:00+03:00')+ })++ it('keeps booleans, null and numbers as they are', () => {+ expect(redactShape({ a: true, b: null, c: 1.5 })).toEqual({ a: true, b: null, c: 1.5 })+ })+})++describe('shapeLines', () => {+ it('reports each line with its byte offset and never echoes a non-JSON line', () => {+ const text = `${USER}\nnot json: my password is hunter2\n\n${MODEL}\n`+ const out = shapeLines(Buffer.from(text, 'utf8'))+ expect(out.map((l: { offset: number }) => l.offset)).toEqual([+ 0,+ Buffer.byteLength(USER) + 1,+ Buffer.byteLength(`${USER}\nnot json: my password is hunter2\n\n`)+ ])+ expect(out[1].shape).toBe('<non-json:32 bytes>')+ expect(JSON.stringify(out)).not.toContain('hunter2')+ expect(JSON.stringify(out)).not.toContain('secret')+ })++ it('counts offsets in BYTES, not UTF-16 units', () => {+ const first = '{"content":"çok güzel 🧪"}'+ const out = shapeLines(Buffer.from(`${first}\n{"a":1}\n`, 'utf8'))+ expect(out[1].offset).toBe(Buffer.byteLength(first, 'utf8') + 1)+ })+})++describe('summarize', () => {+ it('tallies type/source/status, the keys per type and the tool_calls element keys', () => {+ const s = summarize(Buffer.from(`${USER}\n${MODEL}\n{"type":"RUN_COMMAND","content":"x y"}\n`))+ expect(s.lines).toBe(3)+ expect(s.nonJson).toBe(0)+ expect(s.enums).toEqual({+ 'USER_INPUT|USER_EXPLICIT|DONE': 1,+ 'PLANNER_RESPONSE|MODEL|DONE': 1,+ 'RUN_COMMAND|-|-': 1+ })+ expect(s.keysByType.PLANNER_RESPONSE).toEqual([+ 'content',+ 'source',+ 'status',+ 'step_index',+ 'thinking',+ 'tool_calls',+ 'type'+ ])+ expect(s.toolCallKeys).toEqual(['args,name'])+ expect(JSON.stringify(s)).not.toContain('Sure')+ })++ it('redacts a non-enum type value rather than printing it as a key', () => {+ const s = summarize(Buffer.from('{"type":"a sentence someone typed","content":"x"}\n'))+ expect(Object.keys(s.enums)).toEqual(['<text:24>|-|-'])+ expect(Object.keys(s.keysByType)).toEqual(['<text:24>'])+ })+})++describe('snapshot / compare (is the file append-only?)', () => {+ const before = Buffer.from(`${USER}\n`)+ const snap = snapshotOf(before)++ it('records the size and the sha256 of the bytes', () => {+ expect(snap).toEqual({ size: before.length, sha256: createHash('sha256').update(before).digest('hex') })+ })++ it('answers append-only when the old bytes are an untouched prefix', () => {+ expect(compareSnapshot(Buffer.concat([before, Buffer.from(`${MODEL}\n`)]), snap)).toBe('append-only')+ })++ it('answers rewritten when an old line changed in place (a status flip)', () => {+ const flipped = Buffer.from(`${USER.replace('"DONE"', '"RUNS"')}\n${MODEL}\n`)+ expect(compareSnapshot(flipped, snap)).toBe('rewritten')+ })++ it('answers shrunk when the file got smaller', () => {+ expect(compareSnapshot(before.subarray(0, 10), snap)).toBe('shrunk')+ })+})diff --git a/src/shared/agents/config.capabilities.test.ts b/src/shared/agents/config.capabilities.test.tsindex aebbf4062..c0153d57f 100644--- a/src/shared/agents/config.capabilities.test.ts+++ b/src/shared/agents/config.capabilities.test.ts@@ -321,7 +321,10 @@ describe('antigravity capabilities', () => {// thought block, not context use) — rule 6: no trustworthy denominator, no meter. Joining would// also switch on context.ensure and the find-bar index.expect(hasUsage('antigravity')).toBe(false)- // No transcript parser or locator yet (transcript_full.jsonl, not transcript.jsonl).+ // No transcript parser or locator yet. The location is measured (the payload's transcriptPath,+ // `brain/<conversationId>/…/transcript_full.jsonl`); the record shapes are only vendor prose,+ // never captured. Joining CHAT_CAPABLE before that capture would render a guess on ⌘M and on+ // the phone's Chat screen: docs/antigravity-agent.md §7.1 and §8.1.expect(canChat('antigravity')).toBe(false)expect(readsClaudeShapedTranscript('antigravity')).toBe(false)expect(canTransferFrom('antigravity')).toBe(false)