Document consumer-owned execution observation and its architecture decision

This commit is contained in:
2026-11-23 02:48:37 +00:00
parent 00fc11360e
commit 9825ee75fd
8 changed files with 110 additions and 20 deletions

View File

@@ -153,9 +153,15 @@ results, raw response text, and full readable exchanges. Events are written
incrementally. Scope includes operation/step/lane/chunk/validator identity to
avoid concurrent evidence collisions.
One invocation `ExecutionGroup` enrolls actual initial, continuation, and nested
validator executions once. Native identity, terminal coverage, and unknown usage
remain native facts, not a copied profile/attempt accounting model.
When capture is enabled, the CLI attaches its own native execution group to
the inherited invocation context after allocation. Its finish path writes one
snapshot immediately before `Finalize`, after runner work has joined and any
successful domain publication. Snapshot errors remain sticky capture failures.
The runner owns no group or summary write. ckprompt's optional reporting group
is independent; overlapping totals are never added. See
[consumer-owned observation](../adr/0025-use-consumer-owned-execution-observation.md)
and the [native contract](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.25.0/docs/consumers/pkg-promptkit.md#observe-an-ordinary-run).
Native identity, terminal coverage, and unknown usage remain native facts.
Hits can retain prepared evidence without execution or usage. Result-less failures
retain availability/cause evidence; undelivered responses are explicitly unassessed.