Skip to content

Commit c6a6efb

Browse files
committed
docs: expand filter confidence levels explanation in TUI guide
1 parent d270fee commit c6a6efb

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/src/guide/tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Each filter reports a confidence level:
145145
| `Partial` | Heuristic match; some content may have been over-filtered |
146146
| `Fallback` | Pattern matched but output structure was unexpected |
147147

148-
When multiple filters compose in a pipeline, the worst confidence across stages is propagated. Confidence distribution is tracked in [TUI filter metrics](tui.md#filter-metrics).
148+
When multiple filters compose in a pipeline, the worst confidence across stages is propagated. Confidence distribution is tracked in the [TUI Resources panel](tui.md#confidence-levels-explained) as `F/P/B` counters.
149149

150150
### Inline Filter Stats (CLI)
151151

docs/src/guide/tui.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,24 @@ Confidence: F/6 P/2 B/0
204204
| `hit rate` | Percentage of commands where output was actually reduced |
205205
| `saved tokens` | Cumulative estimated tokens saved (`chars_saved / 4`) |
206206
| `%` | Token savings as a fraction of raw token volume |
207-
| `F/P/B` | Confidence distribution: Full / Partial / Fallback counts |
207+
| `F/P/B` | Confidence distribution: Full / Partial / Fallback counts (see below) |
208208

209209
The filter section only appears when `filter_applications > 0` — it is hidden when no commands have been filtered.
210210

211+
#### Confidence Levels Explained
212+
213+
Each filter reports how confident it is in the result. The `Confidence: F/1 P/0 B/3` line shows cumulative counts across all filtered commands:
214+
215+
| Level | Abbreviation | When assigned | What it means for the output |
216+
|-------|-------------|---------------|------------------------------|
217+
| **Full** | `F` | Filter recognized the output structure completely (e.g. `cargo test` with standard `test result:` summary) | Output is reliably compressed — no useful information lost |
218+
| **Partial** | `P` | Filter matched the command but output had unexpected sections mixed in (e.g. warnings interleaved with test results) | Most noise removed, but some relevant content may have been stripped — inspect if results look incomplete |
219+
| **Fallback** | `B` | Command pattern matched but output structure was unrecognized (e.g. `cargo audit` matched a cargo-prefix filter but has no dedicated handler) | Output returned unchanged or with minimal sanitization only (ANSI stripping, blank line collapse) |
220+
221+
**Example:** `Confidence: F/1 P/0 B/3` means 1 command was filtered with Full confidence (e.g. `cargo test` — 99% savings) and 3 commands fell through to Fallback (e.g. `cargo audit`, `cargo doc`, `cargo tree` — matched the filter pattern but output was passed through as-is).
222+
223+
When multiple filters compose in a [pipeline](tools.md#output-filter-pipeline), the worst confidence across stages is propagated. A `Full` + `Partial` composition yields `Partial`.
224+
211225
## Deferred Model Warmup
212226

213227
When running with Ollama (or an orchestrator with Ollama sub-providers), model warmup is deferred until after the TUI interface renders. This means:

0 commit comments

Comments
 (0)