Skip to content

# Antigravity task runs show only the final summary: no execution events, no live activity #3830

Done

Description

@propr-dev

Antigravity task runs show only the final summary: no execution events, no live activity

Problem

For Antigravity task runs (agy 1.5.15, agent alias antigravity), the task page shows only the final summary:

  • get_task_logs returns [] for finished Antigravity tasks (e.g. integry/digvin pr-comments-batch-integry-digvin-386-1795780956438). Claude and Codex tasks persist every tool_use/tool_result.
  • The live view shows nothing structured during the run.
  • Token usage falls back to a prompt-only estimate. On hosted digvin, 8 Antigravity executions of about 10 minutes each total only ~23k input / 2.4k output tokens.
  • Those cost rows have agent=null and execution_type=null.

Root causes (verified locally on a main-built image)

  1. The transcript export has been failing silently since Give implementation runs and direct goals a read-only GitHub token #2658 (2026-10-01).
    • Tasks run agy with default text output, because AntigravityAgent.ts adds --output-format stream-json only for goals. So stdout holds just the final answer.
    • The only source of steps is brain/**/.system_generated/logs/transcript.jsonl. scripts/antigravity-entrypoint.sh (~lines 151-156) copies it to PROPR_ANTIGRAVITY_TRANSCRIPT_PATH, which defaults to /tmp/git-processor/propr-cache/transcripts/antigravity/… (AntigravityAgent.ts ~line 37).
    • No mount is added for that path. The only mount covering it is buildAgentGitMountArgs (agentGitAccess.ts ~line 50, used from antigravityDockerArgsBuilder.ts ~line 55), which mounts /tmp/git-processor read-only when the worker owns git.
    • Reproduced with the real args builder and repo-setup wrapper:
      cp: cannot create regular file '/tmp/git-processor/propr-cache/transcripts/antigravity/probe-1.jsonl': Read-only file system
      Warning: could not export transient Antigravity transcript
      
    • Result: conversationLog is [], no llm_execution_details rows are written, and get_task_logs is empty.
  2. Even with a transcript, tool steps are dropped.
    • resolveSessionOutput (AntigravityAgent.ts ~line 221) applies filterAntigravityAnalysisEvents (antigravityOutputParser.ts ~lines 298-315). This is an analysis filter that keeps only events with response text.
    • On a real 44-step transcript (7 USER_INPUT, 23 PLANNER_RESPONSE, 11 RUN_COMMAND, 1 LIST_DIRECTORY, 2 GENERIC), only the 8 PLANNER_RESPONSE steps survive.
    • convertEventToClaudeFormat (~lines 416-420) also maps every step to plain text, never tool_use/tool_result.
  3. The live view can't show anything.
    • Task runs print plain text, so parseRedisOutput gives [].
    • processAntigravityEvent (packages/api/services/redisOutputParser.ts ~line 365) handles only legacy message/tool_use/result events and transcript-style source:"MODEL" lines. It doesn't handle the agy 1.1.12+ stream-json envelope (event: init|step_update|result).
    • So goals likely miss live narration from this path too. Check antigravityGoalStream.ts.

Required changes

  1. Export the transcript to a location that is writable and reaches the worker.
    • Bind-mount a per-run transcript directory read-write into the container, e.g. the createTransientTranscriptPath directory mapped with resolveHostBindPath for containerized workers. Alternatively, copy the transcript out before --rm removes the container.
    • Do not make /tmp/git-processor writable again.
    • Log a worker-side warning when a transcript is expected but missing, instead of failing silently.
  2. Run task (non-goal) executions with --output-format stream-json, as goals already do.
    • This gives live narration, step types and states, and real token usage.
    • Keep the stdin prompt and --print-timeout.
    • Take the final summary from the result event's response.
  3. Persist the full trace for implementation runs.
    • Stop applying filterAntigravityAnalysisEvents to the task conversationLog; keep it only for analysis and summary output.
    • Map transcript steps to Claude-shaped events:
      • PLANNER_RESPONSE → assistant text, plus thinking.
      • RUN_COMMAND / VIEW_FILE / GREP_SEARCH / LIST_DIRECTORY / CODE_ACTION / GENERIC and other tool step types → tool_use (name = step type, input = the command or target parsed from the content) plus tool_result (content = output, is_error when status is ERROR).
      • ERROR_MESSAGE → error.
      • USER_INPUT → user.
    • Transcript shape: {source, type, status, step_index, created_at, content}, plus thinking on PLANNER_RESPONSE and error on ERROR_MESSAGE. Tool step content is text starting Created At: / Completed At:, followed by the command and its output, or by Encountered error in step execution: ….
  4. Live Redis parser: handle the stream-json event: envelope.
    • AGENT_RESPONSE text_delta → buffered thought.
    • Other step_update types → tool activity at step granularity.
    • result → final message and token usage.
    • Keep the existing legacy handling.
  5. Cost attribution: Antigravity execution cost rows must carry the agent alias and execution type.

Tests

  • Docker args for task mode include a read-write mount for the transcript path, and that path is not under a read-only mount.
  • Entrypoint smoke test run as root, as ProPR launches it (--user 0:0, PROPR_EPHEMERAL_STATE=1), with a stub agy that writes brain/x/.system_generated/logs/transcript.jsonl. Assert the host transcript file exists afterwards. This fails on main today.
  • AntigravityAgent result processing on the fixture below yields a conversationLog with tool_use/tool_result pairs, with is_error set for the ERROR step. The persisted LLM log details contain them.
  • parseRedisOutput on stream-json lines yields thought, tool and result events plus token usage.
  • Existing analysis and summary tests stay unchanged.

Notes

  • ProPR runs on SQLite only: do not add code or tests for other databases.
  • A live agy run needs an agy login on the host, which wasn't available during the investigation. Rely on fixtures and the stubbed entrypoint test; a maintainer will run a live check.

Fixture

Sanitized excerpt of a real agy 1.5 transcript, including a failed step. Save it as test/fixtures/antigravity/agy-1.5-transcript-tools.jsonl:

{"source": "USER_EXPLICIT", "type": "USER_INPUT", "status": "DONE", "step_index": 0, "created_at": "2026-01-01T00:00:00Z", "content": "<USER_REQUEST>\nAdd subtract(a, b) to math.js and a test.\n</USER_REQUEST>"}
{"source": "MODEL", "type": "PLANNER_RESPONSE", "status": "DONE", "step_index": 3, "created_at": "2026-01-01T00:00:01Z", "content": "I will inspect the repository and run the tests.", "thinking": "(redacted thinking)"}
{"source": "MODEL", "type": "RUN_COMMAND", "status": "DONE", "step_index": 14, "created_at": "2026-01-01T00:00:08Z", "content": "Created At: 2026-01-01T00:00:00Z\nCompleted At: 2026-01-01T00:00:01Z\n\nnode --test\n# pass 2\n# fail 0"}
{"source": "MODEL", "type": "RUN_COMMAND", "status": "RUNNING", "step_index": 23, "created_at": "2026-01-01T00:00:14Z", "content": "Created At: 2026-01-01T00:00:00Z\nCompleted At: 2026-01-01T00:00:01Z\n\nnode --test\n# pass 2\n# fail 0"}
{"source": "MODEL", "type": "GENERIC", "status": "DONE", "step_index": 29, "created_at": "2026-01-01T00:00:18Z", "content": "Created At: 2026-01-01T00:00:00Z\nCompleted At: 2026-01-01T00:00:01Z\ngeneric step output"}
{"source": "SYSTEM", "type": "ERROR_MESSAGE", "status": "DONE", "step_index": 32, "created_at": "2026-01-01T00:00:20Z", "content": "Created At: 2026-01-01T00:00:00Z\nmodel request failed, retrying", "error": "redacted error"}
{"source": "MODEL", "type": "PLANNER_RESPONSE", "status": "DONE", "step_index": 47, "created_at": "2026-01-01T00:00:28Z", "content": "I will inspect the repository and run the tests.", "thinking": "(redacted thinking)"}
{"source": "MODEL", "type": "LIST_DIRECTORY", "status": "ERROR", "step_index": 48, "created_at": "2026-01-01T00:00:29Z", "content": "Created At: 2026-01-01T00:00:00Z\nCompleted At: 2026-01-01T00:00:01Z\nEncountered error in step execution: directory not found: /home/node/workspace/missing"}
{"source": "MODEL", "type": "RUN_COMMAND", "status": "DONE", "step_index": 51, "created_at": "2026-01-01T00:00:31Z", "content": "Created At: 2026-01-01T00:00:00Z\nCompleted At: 2026-01-01T00:00:01Z\n\nnode --test\n# pass 2\n# fail 0"}
{"source": "USER_EXPLICIT", "type": "USER_INPUT", "status": "DONE", "step_index": 71, "created_at": "2026-01-01T00:00:43Z", "content": "<USER_REQUEST>\nAdd subtract(a, b) to math.js and a test.\n</USER_REQUEST>"}
{"source": "MODEL", "type": "PLANNER_RESPONSE", "status": "DONE", "step_index": 73, "created_at": "2026-01-01T00:00:44Z", "content": "Done. Added subtract and a test; node --test passes.", "thinking": "(redacted thinking)"}

Submitted by @integry through ProPR.

Activity

  1. propr-dev commented on Nov 27, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3830/claude-opus-5-5-antigravity-task-runs-sho-20261127-1440-1so
    • Base Branch: main
    • Worktree: issue-3830-20261127-1440-claude-opus-5-5-1so

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions