Report costs for ordinary runs

This commit is contained in:
2026-11-22 18:28:39 +00:00
parent 81a2a7591d
commit d77e3e2f83
5 changed files with 142 additions and 5 deletions

View File

@@ -56,10 +56,11 @@ attempts above the first in a generation, and repair generations with at least
one dispatch. A terminal event is an aggregate and must not be added to its
attempt events.
Ordinary runs install invocation-local cost accounting even without an observer.
The generation coordinator resolves cost once per dispatched attempt and adds
it to invocation-local accounting independently of event delivery. A recorder
can read that same accumulator at termination; groups merge first terminal
costs independently of terminal coverage.
it to that state independently of event delivery. The result and recorder read
the same accumulator; groups merge first terminal costs independently of
terminal coverage.
Reasoning counts use the same per-field rules and are a subset of completion
tokens. The public cache-hit helper derives a ratio from complete, consistent