fix: align compaction metric schema

This commit is contained in:
2026-09-16 06:24:45 +09:00
parent fef3b6f4a0
commit b6960878a6
5 changed files with 74 additions and 54 deletions
+2 -2
View File
@@ -48,9 +48,9 @@ Compaction measurements stay out of the ordinary transcript. They are appended a
3. Compare `compact.retained_tokens`, `compact.overview_tokens`,
`compact.summary_tokens`, `compact.auto_read_tokens`, and
`compact.result_context_tokens` to explain the context-size change.
4. Compare the Compactor's input/output/cache-read/cache-write tokens, request,
4. Compare the Compactor's input/output/cache-read/cache-creation tokens, request,
turn, tool-call, and duration metrics. The current provider `UsageEvent` has no
pricing authority, so `compact.compactor.cost_usd` is valueless with
pricing authority, so `compact.cost_usd` is valueless with
`status=unavailable` and `reason=provider_usage_unpriced`; do not fabricate a
zero cost. Record a numeric value only after a price authority exists.
5. Aggregate failure and cancellation using the fixed `failure_category` values.