Skip to content

Output polish: nine paper cuts across formatters and CLI - #163

Merged
vertti merged 1 commit into
mainfrom
fix/output-polish-batch
Jul 15, 2026
Merged

Output polish: nine paper cuts across formatters and CLI#163
vertti merged 1 commit into
mainfrom
fix/output-polish-batch

Conversation

@vertti

@vertti vertti commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Fixes ROADMAP U7 — the output-polish batch, each pinned by a test written red-first (except the comment fix and completion, which are glue):

Fix Red evidence
fmtDur hours 150m for a 2.5h duration
markdown/LLM pipe escaping build|test broke the table row
"diagnostics": null jq '.diagnostics[]' errors; now [] (fixed at the formatter boundary — the engine-init approach missed directly-constructed results, which the test caught)
Diagnostic.String() dropped the cause failed to cache 5 runs with no why; now appends : disk full
percentile display p99.8 → "p100 — slower than 100% of runs" (includes the run itself); floors to p99
--since 0d/future burned a workflow-listing round trip then "no runs found"; now rejected instantly
-q/--quiet zero bytes on stderr (verified live — first cut leaked one newline)
--format completion cobra.FixedCompletions
compactResult comment claimed it drops outliers; it filters only changepoints

Live-verified: quiet JSON run produces 0 stderr bytes and .diagnostics is an array; --since 0d errors instantly with must be in the past.

- fmtDur renders hours as hours ('2h30m', was '150m')
- pipes escaped in markdown/LLM table names (a job named 'a|b' broke
  the table)
- JSON emits "diagnostics": [] and "findings": [] instead of null
  (fixed at the formatter boundary so directly-built results are
  covered too) — null broke jq '.diagnostics[]'
- Diagnostic.String() shows the wrapped cause ('failed to cache: disk
  full', was 'failed to cache')
- percentile displays floor: p99.8 rendered as 'p100 — slower than
  100% of runs', which includes the run itself
- -q/--quiet silences all stderr (progress, diagnostics, timing)
- --format gets shell completion values
- --since 0d and future dates rejected before any API call
- compactResult comment matches what the code filters

(ROADMAP U7)
@vertti
vertti enabled auto-merge July 15, 2026 13:48
@vertti
vertti merged commit 8ba5927 into main Jul 15, 2026
1 check passed
@vertti
vertti deleted the fix/output-polish-batch branch July 15, 2026 13:49
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