Skip to content

A narration frame is the child's stderr bytes, written into the caller's narration sink unaltered: no level, no line splitting #1151

Closed

Description

@David-Noble-at-work

Problem

Ruled 2026-10-23: "Anything written to stderr is assumed to be a narration and all narrations go through our narration stream: stderr." And: "Narrations target users. Narration filtering is handled at the program level. You typically set it with an option on the command line, though it can be set in config." The in-process broker (#1143) filters a child's stderr instead of passing it through: it stamps every line "warn" (pkg/op/broker_stub.go), process.Runner's line splitter strips a trailing \r and holds a partial line until exit, the narration frame (#1140) carries a Level and a Text, and op.Run collects narration and shows none of it.

Solution

A narration frame carries the child's stderr bytes, chunked as they arrive, exactly as an output frame carries stdout: no level, no line splitting, no UTF-8 replacement, no length limit. The caller writes them into its narration sink, the Narrator's, so its own --silent governs them as it governs its own narration; status.Narrator gains the raw write that makes this go through the narration API. process.Runner.Stream hands stderr through as bytes. 2.7 § Open 10 closes: a frame carries what was written.

Done when

  • A child's stderr, \r progress lines included, appears on the caller's stderr as it is written, byte for byte, and not at all under the caller's --silent
  • grep -n '"warn"' pkg/op/broker_stub.go finds nothing; Narration has no Level

Plan and design documents

Kind Document
Plan docs/plans/task/1151-narration-bytes.md
Design docs/architecture/2.7-control-plane.md
Design docs/architecture/2.8-eventing-infrastructure.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