headroom/tests/test_cache
Focused Instability b51cda10d7
docs(evals): add session probes section to evals README (#888)
## Description

Follow-up to #862. That PR's body described a **Session Probes** section
in `headroom/evals/README.md`, but the file edit missed the commit
(edited in the wrong checkout). This adds the missing 22-line docs-only
section: the record-then-score workflow for `HEADROOM_PROBE_RECORD_DIR`
+ `headroom evals probes`, including the plaintext-recording privacy
note.

Refs #861 (session-probe eval harness — this README section was part of
that feature's spec).

## Type of Change

- [x] Documentation update

## Changes Made

- Add a **Session Probes (real recorded sessions)** section to
`headroom/evals/README.md` (+22 lines, no code change): the two-step
record (`HEADROOM_PROBE_RECORD_DIR=… headroom proxy start`) then score
(`headroom evals probes --recordings …`) workflow, the three probe
dimensions (exact numerics, artifact trail, error evidence), the
retained/recoverable/lost classification, retention bucketing by ratio +
per-transform grouping, and the `--json-output` flag.
- Includes the opt-in privacy note: recordings contain full conversation
content in plaintext and stay on the local machine.

## Testing

- [x] Documentation builds/renders correctly
- [x] Linting passes (`ruff check .`)
- [x] New and existing unit tests pass locally with my changes

### Test Output

```text
$ git diff --stat upstream/main..HEAD
 headroom/evals/README.md | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Docs-only change — no code paths touched. The commands and flags documented
(HEADROOM_PROBE_RECORD_DIR, `headroom evals probes`, --recordings,
--json-output) are the surface shipped and tested in #862.
```

## Real Behavior Proof

- Environment: local macOS, repo .venv, Python 3.11.9
- Exact command / steps: rendered the edited `headroom/evals/README.md`
and cross-checked every documented flag/command against the implemented
CLI from #862 (`headroom evals probes`, `HEADROOM_PROBE_RECORD_DIR`,
`--recordings`, `--json-output`)
- Observed result: the new section renders correctly and every
command/flag it names exists in the shipped probe harness; no code paths
are changed by this PR, so behavior is unchanged
- Not tested: nothing additional — docs-only change with no executable
surface of its own

## Review Readiness

- [x] I have performed a self-review
- [x] This PR is ready for human review

## Additional Notes

Pure documentation backfill for #862; the feature itself (recorder +
retention probes) already merged. PR body updated to satisfy the
PR-governance template gate.
2026-06-13 18:07:31 -05:00
..
__init__.py Add cache optimization module with scalable dynamic content detection 2026-01-07 14:07:49 -08:00
test_anthropic.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_backends.py Add pluggable storage backend abstraction for CompressionStore 2026-01-20 23:25:28 -08:00
test_base.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_client_integration.py Fix ruff formatting 2026-01-17 17:14:12 -08:00
test_dynamic_detector.py docs(evals): add session probes section to evals README (#888) 2026-06-13 18:07:31 -05:00
test_google.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_openai.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_prefix_tracker.py fix: eliminate prefix cache busts from frozen count underestimation 2026-04-07 17:10:20 -07:00
test_registry.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00
test_semantic.py Fix all ruff lint and format errors for CI 2026-01-10 15:33:44 -08:00