Prove Notarius cache reuse end to end

This commit is contained in:
2026-09-16 18:07:37 +00:00
parent 1b480d4ed5
commit 8ff74e1251
4 changed files with 413 additions and 2 deletions

View File

@@ -213,7 +213,19 @@ changes. This stage proves Narratio orchestration, not upstream cache hits.
## Stage 5 — Prove Reuse with Real Notarius and a Local Test Provider
Status: Not started
Status: Complete (2026-09-16)
Completion: Added an opt-in production-boundary integration test using a local
OpenAI-compatible provider and an absolute `NARRATIO_TEST_NOTARIUS_BINARY`.
It proves checkpoint reuse across distinct Narratio runs, cold execution after
reference changes, partial-failure recovery, forced checkpoint bypass, chunk
plan refresh, and preservation of an unrelated cached plan. It also aligned
receipt validation with Notarius's valid zero-attempt summaries for reused
producers. Tested against locally built `notarius v0.7.0` with
`NARRATIO_TEST_NOTARIUS_BINARY=/tmp/narratio-notarius-v070.g6gID8/notarius
GOWORK=off go test ./internal/stage -run
'^TestNotariusCacheReuseIntegration$' -count=1 -v`; the focused race test,
default `GOWORK=off go test -count=1 ./...`, and adapter/stage race tests pass.
Read Notarius v0.7.0 `docs/cli.md`, `docs/config.md`, `docs/operations.md`,
`examples/dnd-minimal.config.yml`, `examples/seriatim-minimal-transcript.json`,