Separate metrics measurement dimensions

This commit is contained in:
Meta Vens 2026-07-13 16:52:26 +01:00
commit b3dc8a15c0
7 changed files with 33 additions and 9 deletions

View file

@ -1433,3 +1433,12 @@ the mutable ref Idunn watches and the immutable commit it deploys. The Idunn
receipt contract already records both `watched_ref` and `source_commit`.
Deployment requests now require both fields: trigger topology and artifact
identity are conjunctive evidence.
## Measurement availability is not measurement equivalence
The metrics packet accepted token-or-cost and review-minutes-or-count summaries.
Those quantities answer different questions. It now requires token usage, an
explicit cost availability status, review duration, and review-event count.
Unknown vendor pricing may be reported as unavailable rather than fabricated;
it may not erase token accounting. A review count may not erase elapsed load,
and duration may not erase how many review events occurred.

View file

@ -534,3 +534,10 @@ Deployment git identity is also split. Requests now require both watched ref
and source commit SHA, matching Idunn's receipt. A branch/ref identifies the
mutable trigger path; the commit SHA identifies deployed bytes. Do not collapse
them back into one convenient string.
Metrics packet completeness is now explicit: token summary, cost availability
status, review duration, and review-event count are separate requirements.
This permits honest unavailable pricing without treating cost and tokens—or
duration and event count—as interchangeable. Next inspect projected accounting
status to ensure receipt presence cannot close a row whose required dimensions
are absent.