Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove deprecated model state; retain full multiplier history#34079

Merged
pelikhan merged 3 commits into
mainfrom
copilot/update-models-json-schema
May 22, 2026
Merged

Remove deprecated model state; retain full multiplier history#34079
pelikhan merged 3 commits into
mainfrom
copilot/update-models-json-schema

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

This change removes deprecated-model state from multiplier payloads and shifts the model inventory policy to full history retention. The daily updater and docs now treat unseen models as historical records that remain until explicitly deleted.

  • Registry payload cleanup

    • Removed deprecated_models from:
      • pkg/cli/data/model_multipliers.json
      • actions/setup/js/model_multipliers.json
    • Updated registry description text to reflect manual-deletion-only lifecycle.
  • Policy and schema-aligned guidance

    • Updated R-REG-009 in docs/src/content/docs/reference/effective-tokens-specification.md:
      • from deprecated-marker lifecycle
      • to explicit historical retention + manual deletion.
    • Updated .github/workflows/daily-model-inventory.md to stop proposing automatic stale-model removal and instead report historical entries not currently returned by providers.
  • Test alignment

    • Removed deprecated-metadata assertions from pkg/cli/effective_tokens_test.go so tests validate the new payload shape and behavior model.
  • Release note

    • Added .changeset/patch-model-inventory-2026-05-22.md documenting the policy transition.
{
  "version": "1",
  "description": "... complete model history ... removed only by explicit manual deletion.",
  "reference_model": "claude-sonnet-4.5",
  "token_class_weights": { "input": 1.0, "cached_input": 0.1, "output": 4.0, "reasoning": 4.0, "cache_write": 1.0 },
  "multipliers": { "gpt-5.5": 7.5 }
}

Copilot AI changed the title Remove deprecated model state and retain full model history Remove deprecated model state; retain full multiplier history May 22, 2026
Copilot AI requested a review from pelikhan May 22, 2026 17:42
@pelikhan pelikhan marked this pull request as ready for review May 22, 2026 17:44
Copilot AI review requested due to automatic review settings May 22, 2026 17:44
@pelikhan pelikhan merged commit 12c1308 into main May 22, 2026
30 of 31 checks passed
@pelikhan pelikhan deleted the copilot/update-models-json-schema branch May 22, 2026 17:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request removes the deprecated-model metadata field from Effective Tokens model multiplier payloads and updates policy/docs/tests to treat multiplier registries as full historical inventories that only change via explicit manual deletion.

Changes:

  • Removed the deprecated_models top-level field from the Go-embedded and JS action copies of model_multipliers.json.
  • Updated the Effective Tokens specification (R-REG-009) and daily inventory guidance to retain historical model entries instead of proposing automatic removals.
  • Updated Go tests to align with the new payload shape, and added a patch changeset documenting the policy transition.
Show a summary per file
File Description
pkg/cli/effective_tokens_test.go Removes assertions that depended on deprecated_models metadata.
pkg/cli/data/model_multipliers.json Drops deprecated_models and updates registry description to reflect historical retention policy.
actions/setup/js/model_multipliers.json Drops deprecated_models and updates registry description for the JS action payload.
docs/src/content/docs/reference/effective-tokens-specification.md Updates R-REG-009 and sync guidance to require full history retention + manual deletion.
.github/workflows/daily-model-inventory.md Adjusts daily inventory guidance to report “historical” entries rather than propose removals.
.changeset/patch-model-inventory-2026-05-22.md Adds release note for the policy/payload change.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comments suppressed due to low confidence (1)

actions/setup/js/model_multipliers.json:5

  • This JS action’s model_multipliers.json appears to be drifting from the authoritative registry at pkg/cli/data/model_multipliers.json (for example, the CLI registry contains gemini-3-pro / gemini-3.1-pro, but they are absent here). Since setup.sh exports this file as GH_AW_MODEL_MULTIPLIERS, missing entries will cause the JS ET calculator to fall back to 1.0 for those models, producing inconsistent ET results vs the CLI/spec. Consider generating this file from the CLI registry (or otherwise enforcing parity) so both runtimes compute ET from the same multiplier table.
  "description": "Effective Tokens (ET) computation data per the gh-aw Effective Tokens Specification v0.2.0. Token class weights are applied first to normalize across token classes, then the per-model multiplier scales the result relative to the reference model. The registry keeps complete model history; entries are removed only by explicit manual deletion.",
  "reference_model": "claude-sonnet-4.5",
  "token_class_weights": {
  • Files reviewed: 6/6 changed files
  • Comments generated: 2

"version": "1",
"description": "Effective Tokens (ET) computation data per the gh-aw Effective Tokens Specification v0.2.0. Token class weights are applied first to normalize across token classes, then the per-model multiplier scales the result relative to the reference model. Model lifecycle: deprecated models must carry a deprecated marker for one minor version before removal (R-REG-009).",
"description": "Effective Tokens (ET) computation data per the gh-aw Effective Tokens Specification v0.2.0. Token class weights are applied first to normalize across token classes, then the per-model multiplier scales the result relative to the reference model. The registry keeps complete model history; entries are removed only by explicit manual deletion.",
"reference_model": "claude-sonnet-4.5",
"version": "1",
"description": "Effective Tokens (ET) computation data per the gh-aw Effective Tokens Specification v0.2.0. Token class weights are applied first to normalize across token classes, then the per-model multiplier scales the result relative to the reference model. Model lifecycle: deprecated models must carry a deprecated marker for one minor version before removal (R-REG-009).",
"description": "Effective Tokens (ET) computation data per the gh-aw Effective Tokens Specification v0.2.0. Token class weights are applied first to normalize across token classes, then the per-model multiplier scales the result relative to the reference model. The registry keeps complete model history; entries are removed only by explicit manual deletion.",
"reference_model": "claude-sonnet-4.5",
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.

3 participants