Skip to content

The broker relays a posted subgraph's narration to the app as it is written and returns its result when the run ends #1155

Open

Description

@David-Noble-at-work

Problem

Ruled 2026-10-23: "It is the job of the broker to stream narrations back to the app and return results to the app at the end of the execution. We do that now in writ." In writ the executor narrates through env.Status while it runs and the command emits its result once, through cli.Emit, when Run returns. The broker must reproduce that across a process boundary.

Solution

For a posted logon subgraph, the broker relays the subgraph-runner's stderr bytes to the app's console stream as they arrive, and holds the runner's stdout, returning it with the exit status when the run ends. The app writes the narration into its narration sink and decodes the result into the logon unit's output; the app's own -o shapes the final product.

Evidence of completion

  • A logon subgraph posted through the broker narrates on the app's tty as it runs, and its result reaches the app's graph once, at the end

Plan and design documents

Kind Document
Plan Not yet opened
Design docs/architecture/2.7-control-plane.md § The remote leg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions