Pulse/docs/release-control
rcourtman 5dcdbfabf0 Document chat-side cost recording in ai-runtime contract
Follow-up to a0b3bc7ed which closed the chat.Service cost-ledger
gap. ai-runtime.md gains a Current State paragraph documenting:
- The pre-fix bug (chat accumulated tokens via SSE done envelope
  but never recorded a cost.UsageEvent server-side; chat is the
  bulk of AI token spend so the dashboard was dramatically
  understating cost).
- The fix shape (recordChatTurnCost runs after every loop return,
  success or error since the operator was billed regardless).
- The threading path (chat.Config.CostStore wired by the router
  from AISettingsHandler.GetAIService.CostStore()).
- The double-recording invariant (ExecutePatrolStream is
  deliberately not changed; its caller patrol_ai.go records via
  its own helper).
- UseCase="chat" matches the canonical taxonomy noted on
  cost.UsageEvent.UseCase ("chat" or "patrol").
2026-05-10 23:16:47 +01:00
..
internal Clear v6 prerelease-to-GA promotion gate 2026-04-20 16:33:03 +01:00
v6 Document chat-side cost recording in ai-runtime contract 2026-05-10 23:16:47 +01:00
control_plane.json Capture Pulse Intelligence product direction 2026-05-06 15:56:45 +01:00
control_plane.schema.json Map legacy stable releases in control plane 2026-04-11 13:23:07 +01:00