Skip to content

Update GPT-5.6 Codex credit rate intervals - #560

Merged
GraciousGazelles merged 1 commit into
mainfrom
codex/usage-credit-rates-20260731
Jul 31, 2026
Merged

GraciousGazelles merged 1 commit into
mainfrom
codex/usage-credit-rates-20260731

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the existing half-open GPT-5.6 rate history
  • add the current Luna and Terra Standard/Fast credit rows
  • extend rate-boundary coverage and downstream carry documentation

Validation

  • git diff --check
  • hosted ledger validation pending on this exact head

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new SQL migration to update the credit rates for GPT-5.6 Luna and Terra models as of July 31, 2026, alongside corresponding updates to unit tests and documentation. The review feedback suggests making the SQL migration more robust and idempotent by adding an effective_to IS NULL check to the UPDATE statement and an ON CONFLICT DO NOTHING clause to the INSERT statement. Additionally, it is recommended to rename the migration to 0006 to maintain a sequential numbering order without gaps.

Comment thread docs/carry-divergence-ledger.md Resolved
@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Addressed the review points in the current signed head f542c6583226fd46bf39259e3a5d87bc572b1880:

  • The boundary UPDATE now includes AND effective_to IS NULL, so it cannot overwrite a manually adjusted or already-closed interval.
  • This is a one-time versioned migration whose application is recorded by the migration runner; I am keeping duplicate rate_id insertion fail-closed rather than silently accepting an existing row with potentially different values.
  • The apparent numbering gap is not present: 0006_usage_thread_lineage_telemetry.sql exists on the current base, so this rate migration correctly remains 0007.

The current migration records the 2026-07-30 boundary and the tests cover the half-open history.

@GraciousGazelles
GraciousGazelles marked this pull request as ready for review July 31, 2026 12:17
@GraciousGazelles
GraciousGazelles force-pushed the codex/usage-credit-rates-20260731 branch from f542c65 to c4595e1 Compare July 31, 2026 14:32
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Jul 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jul 31, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit 0895588 Jul 31, 2026
80 checks passed
@GraciousGazelles
GraciousGazelles deleted the codex/usage-credit-rates-20260731 branch July 31, 2026 16:54
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