Canonical token and estimated-cost accounting payload.
Payload schema for TokenUsageRecorded events.
Generated from src/spec_kitty_events/schemas/token_usage_recorded_payload.schema.json by scripts/schema_pages.py; never hand-edit (C-001).
Family
Part of the Semantics and Analytics Events event family.
Diagram
Structure of the JSON Schema TokenUsageRecordedPayload.
Properties
actor (RuntimeActorIdentity | null): Runtime actor identity when available
estimated_cost_usd (number, required): Estimated USD cost for the usage record
input_tokens (integer, required): Prompt/input token count
mission_id (string, required): Canonical mission identifier
model (string | null): LLM model when available
output_tokens (integer, required): Completion/output token count
phase_name (string | null): Mission phase name when known
provider (string | null): LLM provider when available
run_id (string | null): Mission run identifier when available
source (string, required): Usage data source identifier
step_id (string | null): Mission step identifier when available
total_tokens (integer, required): Total token count
wp_id (string | null): Work-package identifier when available
RuntimeActorIdentity
Identity of a runtime actor (human, LLM, or service).
actor_id (string, required): Unique actor identifier
actor_type (string, required): Actor category
display_name (string): Human-readable display name
model (string | null): Model identifier (e.g., 'claude-opus-4-6')
provider (string | null): Provider (e.g., 'anthropic', 'openai')
tool (string | null): Tool identifier
Source
Schema file: schemas/token_usage_recorded_payload.schema.json