Skip to content

fix(registry): let reviewed retirements lower the shrink high-water - #71

Merged
avivsinai merged 2 commits into
mainfrom
fix/registry-reviewed-retirements
Oct 9, 2026
Merged

avivsinai merged 2 commits into
mainfrom
fix/registry-reviewed-retirements

Conversation

@avivsinai

Copy link
Copy Markdown
Owner

Fixes #70

The daily refresh can merge upstream data again. BerriAI/litellm#42435 removed models whose deprecation dates had passed, so xai went from 78 to 58 entries. That is below the 75% high-water floor, so every run failed.

Change (scripts/update-model-registry.sh): an entry counts as a reviewed retirement when our trusted committed file gives it a deprecation_date (YYYY-MM-DD) earlier than today (UTC) and upstream removes it. We subtract reviewed retirements from the high-water baseline (total and per core provider) before the floor check. The new baseline is max(new, baseline - retired). Other removed entries, with no date, a future date or a malformed date, still count as unexplained loss. Gradual-shrink protection does not change.

Data: includes the refresh from current upstream (4,503 entries). The new high-water is xai 58, openai 209, anthropic 22, gemini 84. Non-deprecated removals (azure o1-preview, palm, about 12 openrouter) stay inside the existing tolerance.

Remaining risk: upstream can add a past deprecation_date to some entries, wait for that data to merge, and then remove those entries. This design accepts that risk. A retirement counts as reviewed when its deprecation is in data that we already trust.

Testing: tests/registry_refresh.rs runs the script on synthetic data with xai going 78 to 58. The run passes when the removed entries have past deprecation dates and fails with xai 58 vs high-water 78 when they have no dates. The test fails on main. cargo fmt --check, cargo clippy --all-targets -D warnings, cargo test and cargo doc with -D warnings pass locally.

🤖 Generated with Claude Code

avivsinai and others added 2 commits October 8, 2026 14:58
Upstream BerriAI/litellm#42435 removed models past their deprecation dates,
taking xai from 78 to 58 entries, and the per-provider high-water guard
rejected every daily refresh since. Entries that our trusted committed data
already marks with a past deprecation_date and that upstream drops are now
subtracted from the high-water baseline before the 75% floor check, and the
written baseline uses that lowered value. Any other disappearance still
counts as unexplained loss.

Fixes #70

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@avivsinai
avivsinai merged commit 61009cf into main Oct 9, 2026
9 checks passed
@avivsinai
avivsinai deleted the fix/registry-reviewed-retirements branch October 9, 2026 07:11
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.

Scheduled model registry refresh is failing

1 participant