Skip to content

Preserve per-model token attribution across history derivation and reports - #58

Merged
sg4tech merged 1 commit into
mainfrom
codex/fix-openai-model-attribution
Aug 20, 2026
Merged

sg4tech merged 1 commit into
mainfrom
codex/fix-openai-model-attribution

Conversation

@sg4tech

@sg4tech sg4tech commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Attribute usage events to explicit models or the nearest preceding Codex turn_context model.
  • Add derived_model_usage for session/model-level token and cost aggregation.
  • Update HTML reporting and schema freshness checks to use model-level usage.
  • Document warehouse relationships and aggregation invariants.

Testing

  • Added normalization and derivation coverage for Codex model switches and mixed-model totals.
  • Added reporting and schema validation coverage for model-level usage.

@sg4tech
sg4tech merged commit dc03a0d into main Aug 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant