Skip to content

The console stream never drops a frame: a slow subscriber receives every one, late, and the child is never blocked on it #1131

Closed

Description

@David-Noble-at-work

The stub pumps a child's stdout and stderr into output and narration frames and its exit into control, seq-numbered per run, delivered to the caller's console subscription, where writ's Narrator renders narration and the unit's result takes output. event frames go to a sink that logs or drops them until iteration 4 plugs the bus in (2.8 § The fork). The child is never blocked on the consumer.

Rescoped 2026-10-23. On the three streams the owner laid out that day, narration and events leave this task: a narration frame is the child's stderr bytes, written into the caller's narration sink unaltered (#1151), and an exec's start and end are the command provider's events for observers (#1154). What stays is the console stream's delivery: a subscriber that reads slowly receives every frame, late, and the child is never blocked on it. Today brokerStream.publish drops a frame for a subscriber more than 256 behind, and a dropped control frame leaves op.Run waiting until its context ends.

Done when

  • A subscriber that reads slowly receives every frame of a chatty exec, in order, seq contiguous; the child's writes never block on it

Plan and design documents

Kind Document
Plan docs/plans/task/1131-console-spool.md

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