From a6978ede35b852b12fe74aa35a7ac46332415dbd Mon Sep 17 00:00:00 2001 From: GeneAI Date: Tue, 2 Jun 2026 22:43:04 -0400 Subject: [PATCH] chore(models): migrate dated snapshots to stable aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace `claude-haiku-4-5-20251001` → `claude-haiku-4-5` across scripts/{polish_summaries, generate_fixtures, repolish_low_p1}.py and two help-template docs that name the model ID instructionally. Per the CLAUDE.md "Dated-snapshot model aliases retire; stable aliases don't" lesson. Same model behavior; lower drift cost. Phase 0.2 of the family plan (~/.attune/attune_family_plan.md). Companion to attune-ai PR #580 (same migration in attune-ai). Co-Authored-By: Claude Sonnet 4.6 --- scripts/generate_fixtures.py | 2 +- scripts/polish_summaries.py | 2 +- scripts/repolish_low_p1.py | 4 ++-- .../errors/sdk-agent-model-config-uses-stale-model-names.md | 2 +- .../faqs/sdk-agent-model-config-uses-stale-model-names.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/generate_fixtures.py b/scripts/generate_fixtures.py index 6f622ba..dbba146 100644 --- a/scripts/generate_fixtures.py +++ b/scripts/generate_fixtures.py @@ -56,7 +56,7 @@ _FIXTURES_DIR = _TEMPLATES_DIR / "fixtures" _SUMMARIES_FILE = _TEMPLATES_DIR / "summaries.json" -_DEFAULT_MODEL = "claude-haiku-4-5-20251001" +_DEFAULT_MODEL = "claude-haiku-4-5" _MAX_TOKENS = 2000 _SYSTEM_PROMPT = """\ diff --git a/scripts/polish_summaries.py b/scripts/polish_summaries.py index 9316a2e..613abc6 100644 --- a/scripts/polish_summaries.py +++ b/scripts/polish_summaries.py @@ -57,7 +57,7 @@ _SUMMARIES_PATH_FILE = _TEMPLATES_DIR / "summaries_by_path.json" _DIFF_HINTS_FILE = _REPO_ROOT / "scripts" / "differentiation_hints.yaml" -_DEFAULT_MODEL = "claude-haiku-4-5-20251001" +_DEFAULT_MODEL = "claude-haiku-4-5" _MAX_TOKENS = 400 _BODY_CHAR_LIMIT = 2500 diff --git a/scripts/repolish_low_p1.py b/scripts/repolish_low_p1.py index cd25588..92507e7 100644 --- a/scripts/repolish_low_p1.py +++ b/scripts/repolish_low_p1.py @@ -33,7 +33,7 @@ uv run python scripts/repolish_low_p1.py --dry-run # Pass a cheaper model through to polish - uv run python scripts/repolish_low_p1.py --model claude-haiku-4-5-20251001 + uv run python scripts/repolish_low_p1.py --model claude-haiku-4-5 Requires ``attune_rag``, ``pyyaml``, and the ``anthropic`` SDK (only for the polish phase). ``ANTHROPIC_API_KEY`` @@ -235,7 +235,7 @@ def main(argv: list[str] | None = None) -> int: ) parser.add_argument( "--model", - default="claude-haiku-4-5-20251001", + default="claude-haiku-4-5", help="Passed through to polish_summaries.py.", ) parser.add_argument( diff --git a/src/attune_help/templates/errors/sdk-agent-model-config-uses-stale-model-names.md b/src/attune_help/templates/errors/sdk-agent-model-config-uses-stale-model-names.md index 729ae46..1eada9e 100644 --- a/src/attune_help/templates/errors/sdk-agent-model-config-uses-stale-model-names.md +++ b/src/attune_help/templates/errors/sdk-agent-model-config-uses-stale-model-names.md @@ -14,7 +14,7 @@ SDK agent MODEL_CONFIG uses stale model names ## Root Cause -The `MODEL_CONFIG` dict in `agents/release/release_models.py` references `claude-3-5-haiku-latest` which returns 404. The current Haiku model ID is `claude-haiku-4-5-20251001`. Check model IDs against the Anthropic API when tier escalation fails at CHEAP. +The `MODEL_CONFIG` dict in `agents/release/release_models.py` references `claude-3-5-haiku-latest` which returns 404. The current Haiku model ID is `claude-haiku-4-5`. Check model IDs against the Anthropic API when tier escalation fails at CHEAP. ## Resolution diff --git a/src/attune_help/templates/faqs/sdk-agent-model-config-uses-stale-model-names.md b/src/attune_help/templates/faqs/sdk-agent-model-config-uses-stale-model-names.md index 8b8b9c5..6ba86f4 100644 --- a/src/attune_help/templates/faqs/sdk-agent-model-config-uses-stale-model-names.md +++ b/src/attune_help/templates/faqs/sdk-agent-model-config-uses-stale-model-names.md @@ -9,7 +9,7 @@ source: .claude/CLAUDE.md ## Answer -The `MODEL_CONFIG` dict in `agents/release/release_models.py` references `claude-3-5-haiku-latest` which returns 404. The current Haiku model ID is `claude-haiku-4-5-20251001`. +The `MODEL_CONFIG` dict in `agents/release/release_models.py` references `claude-3-5-haiku-latest` which returns 404. The current Haiku model ID is `claude-haiku-4-5`. **How to fix:** - Check model IDs against the Anthropic API when tier escalation fails at CHEAP