docs(observability): document token-usage schema + main-context v1 scope
This commit is contained in:
parent
46d51f8088
commit
7e78d076f9
2 changed files with 46 additions and 1 deletions
5
tests/fixtures/jsonl-schemas.md
vendored
5
tests/fixtures/jsonl-schemas.md
vendored
|
|
@ -27,6 +27,7 @@
|
|||
| trekexecute-stats (PostToolUse Bash) | ts, session_id, command_excerpt, duration_ms, success | hooks/scripts/post-bash-stats.mjs (Bash PostToolUse) | post-bash-stats.mjs:42-54 | none (hook is plugin-level, not profile-aware) | command_excerpt (CWE-212) |
|
||||
| trekreview-stats | ts, slug, verdict, counts (BLOCKER/MAJOR/MINOR/SUGGESTION), reviewed_files_count, mode, duration_ms | commands/trekreview.md (orchestrator-emit Phase 8) | trekreview.md:255 | profile, phase_models, profile_source | none |
|
||||
| trekcontinue-stats | ts, project, next_session_label, status | commands/trekcontinue.md (orchestrator-emit Phase 5) | trekcontinue.md:289 | profile, profile_source | none |
|
||||
| token-usage | ts, session_id, scope, model, tokens_input, tokens_output, tokens_cache_creation, tokens_cache_read, cost_usd, is_estimate, price_table_version | lib/stats/token-usage.mjs `captureTokenUsage` (via hooks/scripts/otel-export.mjs Stop hook, opt-in `VOYAGE_TOKEN_METER`) | token-usage.mjs:buildRecord | n/a (SKAL-2 schema) | session_id (stripped at export) |
|
||||
|
||||
## Field-allowlist input for Step 11
|
||||
|
||||
|
|
@ -46,7 +47,9 @@ critic_verdict, guardian_verdict, outcome, plan_type, result,
|
|||
steps_total, steps_passed, steps_failed, steps_skipped, failed_at_step,
|
||||
verdict, reviewed_files_count, duration_ms, status, next_session_label,
|
||||
event, known_event, success, scope,
|
||||
profile, profile_source, parallel_agents, external_research_enabled
|
||||
profile, profile_source, parallel_agents, external_research_enabled,
|
||||
model, tokens_input, tokens_output, tokens_cache_creation, tokens_cache_read,
|
||||
cost_usd, is_estimate, price_table_version
|
||||
```
|
||||
|
||||
**EXPORT_DENYLIST** (PII or high-cardinality, never export):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue