Preserve SDK usage reporting and interrupted Codex usage
Merged
MI
2mo ago+663+663+012345678901234567890123456789-23-23-01234567890123456789
Distinguishes unreported usage from observed zero across SDK boundaries and recovers interrupted Codex usage without replacing authoritative completed-turn counts. Eval accounting consumes this metadata in the later adoption PR.
Validation: 167 SDK tests, 38 Python tests, 12 build tasks, and SDK/core/eval typechecks passed. Authoritative completed Codex usage takes precedence over interrupted-rollout recovery.
Stack position: 8/11. Base: evals/consolidation-09-event-retention. Each PR contains the change relative to its immediate predecessor.
Reviewer entry points:
packages/integrations/codex-sdk/src/session.tspackages/integrations/deepagents/runner/run_eval.pypackages/integrations/mastra-sdk/src/session.ts
Reordered stack: #2891 → #2892 → #2895 → #2896 → #2897 → #2898 → #2899 → #2900 → #2901 → #2893 → #2894.
Readiness: CI passed on b60164d6a5. Review threads are triaged and resolved.