Skip to content

LLM format: deterministic ordering, caveats, glossary, scoped hints - #164

Merged
vertti merged 1 commit into
mainfrom
fix/llm-format-quality
Jul 15, 2026
Merged

LLM format: deterministic ordering, caveats, glossary, scoped hints#164
vertti merged 1 commit into
mainfrom
fix/llm-format-quality

Conversation

@vertti

@vertti vertti commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Fixes ROADMAP U5.

  • Determinism: categoryBreakdown ties and the ByConclusion max-pick both depended on map iteration order — output flapped between runs on identical data (would flake any golden test, and diff-based consumers see phantom changes). Lexicographic tie-breaks, pinned by run-50-times tests (red first).
  • ## Data Caveats: result diagnostics narrated in the briefing — an LLM acting on the numbers must see "3 runs exceed 50 jobs; extra entries were not fetched" (completes the D3 chain into the LLM format).
  • ## Glossary: volatility thresholds, persistence semantics, q-value meaning, billable-minute rules — previously only in the table legend, which --format llm never rendered, so the LLM had to guess what "spiky" means.
  • Scoped hints: buildVolatileStepIndex keyed by (workflow, job) — same-named jobs across workflows misattributed volatile steps (red test with two "build" jobs).
  • [COST] gate: priorities now require PriorityScore ≥ 50, same bar as the suggestions section — top-3-regardless included 2-min/day workflows as "priority findings".

Live: cli/cli --format llm renders Priority → Summaries → Pipelines → Steps → Suggestions → Data CaveatsGlossary → Raw Data.

- categoryBreakdown ties broke on map iteration order and the
  ByConclusion max-pick flapped between runs on identical data — both
  now tie-break lexicographically (pinned by run-50-times tests)
- new '## Data Caveats' section narrates result diagnostics: an LLM
  acting on the numbers must know when the dataset was truncated
- new '## Glossary' defines volatility thresholds, persistence,
  q-value, and billable-minute semantics (previously only in the table
  legend, which the LLM format never showed)
- volatile-step hints keyed by (workflow, job) — workflow A's docker
  step was attributable to workflow B's same-named job
- [COST] priorities use the same PriorityScore >= 50 bar as the
  suggestions section instead of unconditional top-3

(ROADMAP U5)
@vertti
vertti enabled auto-merge July 15, 2026 13:54
@vertti
vertti merged commit 318fc8a into main Jul 15, 2026
1 check passed
@vertti
vertti deleted the fix/llm-format-quality branch July 15, 2026 13:55
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