Task · CAOT-0012

Codex decoder: sessions, turns and native timing

Description

Codex is event-sourced. task_started and task_complete bracket a turn and carry native duration_ms and time_to_first_token_ms; turn_context carries the model and effort that the usage records do not.

model_provider is not stable within a namespace: both codex-lb and openai appear across sessions. Never infer it.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 1 lane 5: write table-driven tests first, implement Codex sessions/items/dedup within the frozen model, and prove duplicate representations count once; root integrates and runs the final gate.

Final Summary

Codex session and turn metadata, native timing, provider, context lineage, personality, and native trace id decoding are implemented; corpus gate passed.

References

View the source file on GitHub