Fix lifecycle CI: replace defunct Anthropic model IDs and honor CODEFRAME_LIFECYCLE_MODEL#708
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job 'Lifecycle (cli / haiku)'
Fix lifecycle CI: replace defunct Anthropic model IDs and honor CODEFRAME_LIFECYCLE_MODEL
Jun 21, 2026
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.
The "Lifecycle (cli / haiku)" CI job was failing with
anthropic.NotFoundError: model: claude-sonnet-4-20250514— the early Claude 4.0 snapshot IDs are gone, andCODEFRAME_LIFECYCLE_MODEL=haikuset by the workflow was never actually wired into the agent's model selection.Changes
Invalid model IDs (
codeframe/adapters/llm/base.py,codeframe/core/adapters/streaming_chat.py)claude-sonnet-4-20250514→claude-sonnet-4-5for planning/execution/correction/supervision defaultsclaude-3-5-haiku-20241022→claude-haiku-4-5for generation default_DEFAULT_MODELand pricing map instreaming_chat.pyto matchCODEFRAME_LIFECYCLE_MODELwas silently ignored (tests/lifecycle/conftest.py)ModelSelectorreadsCODEFRAME_PLANNING_MODEL,CODEFRAME_EXECUTION_MODEL, etc. — notCODEFRAME_LIFECYCLE_MODEL. Thecfsubprocess inherited the alias (haiku/sonnet) but it had no effect, so the agent always fell through to the broken sonnet default._lifecycle_model_env()that translates the alias to all five per-purpose env vars and merged them into everycfsubprocess call: