Skip to content

fix(op): the narrator wired — dead Discard defaults die, one instance on both seams - #324

Merged
David-Noble-at-work merged 1 commit into
developfrom
fix/narrator-wiring
Aug 6, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
fix/narrator-wiring

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Item 6, plus the Result ruling. NewRuntimeEnvironmentSpec pre-filled Status and Result with sink.Discard, making the constructor's documented nil defaults unreachable — every tool's starlark ui.* narration was discarded everywhere (the reason the CI lint gate said "1 lint issues" without naming it). The pre-fills are deleted so the documented defaults become real; suppression is an explicit WithStatus/WithResult choice. star's bootstrap now honors --silent and installs one narrator instance on both seams; the other ten spec constructions flow the bootstrap narrator via WithStatus(cli.UI()). Stale wiring comments and the earlier fallout addendum's non-TTY misattribution corrected. Verified: suite green, dual-GOOS recount clean, star lint go narrates, --silent mute, planted finding named in the failing verdict. Plan: docs/plans/fix-narrator-wiring.md.

… on both seams

NewRuntimeEnvironmentSpec pre-filled Status and Result with Discard,
making NewRuntimeEnvironment's documented nil defaults (stderr
narrator, stdout JSON pipeline) unreachable — every tool's starlark
ui.* narration was silently discarded, which is why the CI lint gate
reported counts without naming findings. The pre-fills are deleted;
suppression is now an explicit WithStatus/WithResult choice. star's
bootstrap honors its parsed --silent flag and installs the single
narrator on both seams (cli.SetUI and the runtime environment, via a
new star.Application.Environment accessor); the other ten spec sites
flow the bootstrap narrator via WithStatus(cli.UI()). Stale comments
in internal/cli/output.go and star main corrected, along with the
lint-gate-verdict fallout addendum's wrong non-TTY attribution.
Verified: suite green, dual-GOOS lint clean, star lint narrates,
--silent is mute, and a planted finding is named in failing output.
Plan: docs/plans/fix-narrator-wiring.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant