fix(models): replace retired Anthropic model ids with pinned live models#2583
Closed
jucor wants to merge 1 commit into
Closed
fix(models): replace retired Anthropic model ids with pinned live models#2583jucor wants to merge 1 commit into
jucor wants to merge 1 commit into
Conversation
Collaborator
Author
|
Edge port: #2584 |
Three Anthropic model ids were hardcoded across the codebase and have since
been retired by Anthropic; each now returns HTTP 404 from the Models API,
silently breaking every LLM code path that falls through to them:
claude-3-7-sonnet-20250219 (retired 2026-02-19)
claude-opus-4-20250514 (retired 2026-06-15)
claude-3-5-sonnet-20241022 (retired 2025-10-28)
Replace them with the current pinned models. The current generation has no
dated-snapshot ids — the versioned name is itself the immutable pin (verified
against the live Models API on 2026-07-04; the API rejects any date suffix for
this generation):
Opus tier -> claude-opus-4-8 (collective statements; report pipeline jobs)
Sonnet tier -> claude-sonnet-5 (narratives; experimental report; batch fallback)
Sites fixed:
server collectiveStatement.ts, reportNarrative.ts, routes/delphi/jobs.ts,
prompts/report_experimental/scripts/sonnet.ts
client-report CommentsReport.jsx (report + narrative generation request payloads
posted to the delphi pipeline)
delphi AnthropicProvider.list_available_models, 802 batch fallback default,
and the JOB_QUEUE_SCHEMA / BATCH_NARRATIVE_README / DATA_FORMAT_STANDARDS
docs that documented the retired ids as defaults/examples
Add guard tests (delphi pytest, server jest, client-report jest) that fail if
any source references a retired model id, so this class of breakage cannot
silently regress.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jucor
force-pushed
the
jc/pin-anthropic-models-stable
branch
from
July 4, 2026 16:35
b1dbb64 to
ceced28
Compare
Delphi Coverage Report
|
Collaborator
Author
Collaborator
Author
|
Closed as discussed with @ballPointPenguin , in favour of a single PR #2584 on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Three Anthropic model IDs were hardcoded across the codebase and have since been retired by Anthropic — each now returns HTTP 404 from the Models API (verified against the live API on 2026-07-04), silently breaking every LLM path that falls through to them as a default:
claude-3-7-sonnet-20250219reportNarrative.ts,routes/delphi/jobs.ts,report_experimental/scripts/sonnet.tsclaude-opus-4-20250514collectiveStatement.ts; client-report:CommentsReport.jsxclaude-3-5-sonnet-20241022The report client (
CommentsReport.jsx) postsclaude-opus-4-20250514to/api/v3/delphi/batchReportsand the FULL_PIPELINE job form, so the report UI's "generate report" / "generate narrative report" actions ship a dead model into the delphi pipeline.Fix
Replace with the current pinned models. This generation has no dated-snapshot IDs — the versioned name is itself the immutable pin (the API rejects any date suffix for this generation; verified 2026-07-04):
claude-opus-4-8— collective statements; report-pipeline job payloadsclaude-sonnet-5— narratives; experimental report; batch fallbackEach site keeps its existing tier; overridable defaults stay overridable (only the string literal changed). The three delphi docs that documented a retired ID as a default/example are updated to match.
Guard tests
Adds a guard test in each affected ecosystem — delphi (pytest), server (jest), client-report (jest) — that fails if any source references a retired model ID, so this class of breakage cannot silently regress.
Verification
uv run pytest..venv— was found and fixed).Paired change: this PR targets
stable; a companion PR ports the identical fix toedge(the retired-ID footprint is identical on both branches).🤖 Generated with Claude Code