Repository navigation
Description
--silent is documented as "Suppress all status messages (stderr)". Two survive it:
$ star gh issues report --epic Ops:Process --state all --markdown -o value --silent 2>&1 >/dev/null
[star] [+] scripting runtime (ambient): 28 of 28 modules contribute 141 of 141 methods
[star] [+] full appnet(1) archive(2) commands(7) config(3) ...
Rewritten 2026-09-05 after reading the wiring. The first draft guessed the banner bypassed the
narrator. It does not.
The design, as ruled and as built
--silent takes effect immediately, and the app and the runtime narrate through one instance.
That is docs/plans/fix-narrator-wiring.md and commit 14a483a (#324): dead Discard defaults
removed, one narrator on both seams. cmd/star/main.go:172 states it for star: the shared root
"points the runtime environment's status at the one narrator, so --silent gates cli.Note".
The banner honours that. starlarkbridge.Runtime.reportSelection calls
rt.environment.Status.Note(...) (pkg/op/starlarkbridge/runtime.go:489) — the one instance, no
direct stderr anywhere in the package.
Why it escapes anyway: it narrates before argv is parsed
star must discover and load its extensions to register their commands before cobra can parse the
command line — loadStarlarkCommands(rootCmd, runtime) runs during root construction
(main.go:225), and rootCmd.Execute() (main.go:163) parses afterwards. Assembling the runtime is
what emits the banner. So this one narration fires while --silent is still an unparsed string in
os.Args, through a narrator that has not yet been told to be silent. Every narration after parse
is gated correctly; this is the single pre-parse one.
It is also the wrong stream
docs/architecture/2.8-eventing-infrastructure.md §Narration vs. diagnostics names this exact
report: "It is diagnostics by this section's own test — a framework decision an author consults
when a method is missing, not user-facing progress — but it narrates today because the DEBUG / TRACE
diagnostics API does not exist yet." The call site carries TODO(#507) (runtime.go:455) and is
the named first consumer for that API.
Two fixes, one now and one when #507 lands
- Now — honour the ruling that
--silentis immediate. Either pre-scanos.Argsfor
--silentbefore the runtime is assembled and set the narrator first, or defer the banner
(buffer it, emit it inPersistentPreRunonce flags are known). The pre-scan is three lines and
makes the documented contract true; the deferral is cleaner if the banner is going to move
anyway. - Then — A diagnostics API for provider developers #507. The banner becomes a DEBUG diagnostic, and
--silentstops being the mechanism
that hides it; severity is. Narrations and diagnostics as Logs, split by severity #506 draws that line.
Why it matters
The end-of-PR report (noblefactor-ops process rule 9) is
star gh issues report ... --markdown -o value --silent. Its output is pasted into pull requests.
Two lines of module inventory above every table is what the flag exists to remove, and
2>/dev/null is the wrong substitute because it hides real errors too.
Observed 2026-09-05 under noblefactor-ops#140. Related: #507, #506, #502; docs/plans/fix-narrator-wiring.md.
Plan and design documents
| Kind | Document |
|---|---|
| Plan | docs/plans/fix/795-shared-root-conformance.md |
| Design | docs/architecture/10-command-line-interface.md |
Activity
David-Noble-at-work commentedon Sep 5, 2026
Direction, 2026-09-05: extension-loading narration becomes log messages; the console — through the narrator — hears from loading only on error.
That is consistent with 2.8's audience split (narrations are user-facing progress; the module inventory is a framework decision an author consults, i.e. diagnostics) and it retires the ordering gap by construction: a load that says nothing on success has nothing to say before argv is parsed, so
--silent's immediacy is never tested by it. The error path already behaves this way —Warning: failed to load Starlark commands: ...reaches the console today — so the change is to the success path alone.Interim, available now, no new API: gate the inventory on
--verbose.-vexists on the root; a two-line change makes the banner an opt-in, which is the same user-visible contract as "log at DEBUG, console only on error" until #507 gives it a real destination. The pre-parse ordering is then moot for the default case (and-vhas the same pre-parse problem in the other direction — the banner would fire before-vis known — which argues for deferring the emit toPersistentPreRunregardless of destination).End state: #507's diagnostics API, the inventory at DEBUG through the slog tee (#501, #502), severity as the mechanism (#506).
David-Noble-at-work commentedon Sep 5, 2026
Tracked as #829 — the work; this issue is the symptom and closes when that lands.
Lanes 1 to 4: the shared root conforms
Lanes 1 to 4: the shared root conforms (#890)