Owned callback and bounded public-output budgets, in bytes/counts.
A collector fed with notifications by the app-server session, whose snapshot is used directly by the production adapter.
Notifications for other threads (for example sub-agents) are ignored. Private reasoning,
raw commands and tool output are discarded. Latest public snapshots replace drafts,
including under budget pressure. Truncation is explicit; the adapter returns
BUFFER_LIMIT rather than claiming a complete answer. Turn usage is the sum of
tokenUsage.last over the turn's thread/tokenUsage/updated notifications, which the
server emits once per model request.
Collects validated answers, tool activity, usage and terminal state from
codex app-servernotifications (protocol of Codex CLI 0.160).