Repository navigation
fix(op): the narrator wired — dead Discard defaults die, one instance on both seams - #324
Merged
Merged
Conversation
… 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.
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item 6, plus the Result ruling.
NewRuntimeEnvironmentSpecpre-filled Status and Result withsink.Discard, making the constructor's documented nil defaults unreachable — every tool's starlarkui.*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 explicitWithStatus/WithResultchoice. star's bootstrap now honors--silentand installs one narrator instance on both seams; the other ten spec constructions flow the bootstrap narrator viaWithStatus(cli.UI()). Stale wiring comments and the earlier fallout addendum's non-TTY misattribution corrected. Verified: suite green, dual-GOOS recount clean,star lint gonarrates,--silentmute, planted finding named in the failing verdict. Plan:docs/plans/fix-narrator-wiring.md.