Skip to content

parallel: branch transcript inspection + branch-id discovery in the Parallel result #30

Closed

Description

@JAORMX

Context

Subagent children persist and are inspectable/resumable by the agentId trailer (29e4f08, 60815c5). Parallel branches now have wire-visible ids (Parallel.child_id, bg-arc I2) and per-branch cancel — but the model can't inspect a branch transcript: the Parallel ToolResult carries fork PATHS, not branch session ids, and InspectSubagent's prefix gate (correctly) rejects non-subagent ids. Deferred during the InspectSubagent iteration ("Parallel branches: Subagent-only first" — see docs/design/IMPLEMENTATION-NOTES.md).

Shape

  • Persist branch sessions via the same store seam (WithSubagentStore discipline).
  • Add a branch-id line per branch to the Parallel result text (the runtime-discoverability axis: the id must be where the MODEL reads it).
  • Widen the inspect surface: either teach InspectSubagent the parallel- prefix or a small family-aware gate; the bounded renderer is already shared (renderInspectTranscript).
  • While in there: decide whether the judge's own run should register in the child-run registry (documented v1 limitation in docs/design/BACKGROUND-SUBAGENTS.md — whole-run cancel covers it today).

Acceptance sketch

After a Parallel call, the model reads a branch id off the result and pulls that branch's bounded transcript; gauntlet #7 holds (PULL-only).

Activity

  1. added
    enhancement
    on Jun 10, 2026
  2. JAORMX commented on Jun 14, 2026

    @JAORMX
    ContributorAuthor

    Shipped in fe9ffe5 (on main, CI green): parallel branch transcript inspection + branch-id discovery. Auto-close was missed because the commit used a bare (#30) reference instead of Closes #30.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions