From 362afc79b6b53c7e02992fe96cd7786641890ae9 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 22 Nov 2026 22:19:57 +0000 Subject: [PATCH] Update the smoke report reference --- docs/cli.md | 10 ++++++++-- docs/roadmap/remediation.md | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index e95430e..2808b55 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -1027,7 +1027,7 @@ conflicting namespace flags use status `2`. | `--llm-api-key-env` | string | omitted | Name the environment variable containing the API key. | | `--llm-transient-retries` | integer | omitted | Set the retry count for transient inference failures. | | `--llm-extra-params` | JSON object | omitted | Supply provider parameters as a whole map. | -| `--format` | `text`, `yaml`, `json` | automatic | Select the report format; automatic and text use YAML for these structured reports. | +| `--format` | `text`, `yaml`, `json` | automatic | Select the report format; automatic/text use the smoke text template (YAML evidence with percentage comments). YAML/JSON select structured output. | These execution flags override settings for the selected operation. The `--llm-api-key-env` value is a variable name, not a credential value. The @@ -1049,7 +1049,11 @@ The report includes `kind`, `supported`, `applicable`, `completed`, `reason`, contains selected IDs, selection source, endpoint, effective settings, and settings-presence flags. Attempt entries retain their own facts, timing, failure, and token-usage evidence. Durations use Go duration strings; token -counts preserve `value`, `known`, and `complete`. +counts preserve `value`, `known`, and `complete`. Both attempt and aggregate +usage include `reasoning_tokens` with that count state and `cache_hit_ratio`. +The structured ratio is a nullable numeric fraction: `0.2` means 20%, `0` is a +known zero ratio, and null means unavailable. Text adds available ratios as +percentages with one decimal place. PromptKit owns the ratio and token meanings. For example, this report says the configured HTTP diagnostic is unavailable: @@ -1106,6 +1110,8 @@ attempts: [] usage: prompt_tokens: {value: 0, known: true, complete: true} completion_tokens: {value: 0, known: true, complete: true} + reasoning_tokens: {value: 0, known: true, complete: true} + cache_hit_ratio: null total_tokens: {value: 0, known: true, complete: true} cached_tokens: {value: 0, known: true, complete: true} cache_write_tokens: {value: 0, known: true, complete: true} diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md index b8c3aa3..e0bf5d8 100644 --- a/docs/roadmap/remediation.md +++ b/docs/roadmap/remediation.md @@ -40,7 +40,10 @@ Validation used Go 1.27.4: ## R1: Complete the canonical smoke-report documentation -**Priority:** P3. **Status:** open. **Plan coverage:** Stages 5 and 8. +**Priority:** P3. **Status:** complete. **Plan coverage:** Stages 5 and 8. + +Verified against the smoke DTO, text templates, and existing smoke projection +checks. Updated the format row, field definitions, and emitted-shape example. **Relevant material:** the smoke `--format` row in [the CLI reference](../cli.md#smoke-test-flags), the