Repository navigation
fix(daemon): map opus, sonnet and haiku model aliases to their current ids - #4005
cavalcanticampos wants to merge 1 commit into
Conversation
…t ids Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks, @cavalcanticampos, for the focused patch and for spelling out the alias-table limitation. While we were reviewing it, @dannykeane replied on #4000: they'd prefer runtime-resolved IDs and have offered to send a fix. Could you coordinate there so the two changes don't duplicate each other's work? Your alias cases and tests are useful input to that discussion. One concrete point on this patch: please leave We can review this as a narrow alias-table correction while discussing the runtime-resolved approach; that doesn't settle the longer-term design or promise a merge. Thanks for bringing the fix and the trade-off together. |
|
Hi @cavalcanticampos, a friendly check-in on our last comment. Its one change is still open: please leave Since then, the order is set on #4000 (our comment there): #4005 and its tests first, with Are you still planning to update #4005? |
What a user gets
Before:
CANONICAL_MODEL_PINSmapped onlyfable, and toclaude-fable-5-1. A seat pinned toopus,sonnetorhaikucould never match the full id the runtime reports, so the divergence monitor raised a false divergence for a seat running exactly the model its alias names.rig spec validatealso gave no canonical-id nudge for those aliases.After: every alias in Claude Code's
/modelpicker resolves to the model it currently selects, measured from the existing fixturepackages/daemon/test/fixtures/claude-model-2.1.322.txt:opus→claude-opus-5-5fable→claude-fable-5-2(wasclaude-fable-5-1; the 2.1.322 picker lists Fable 5.2)sonnet→claude-sonnet-5-5haiku→claude-haiku-5-5The map is still the single, null-prototype mapping home. No comparison logic changed.
Fixes #4000
How you verified it
model-divergence-monitor.test.ts:opus-pinnedclaude-codeseat runningclaude-opus-5-5makes no proclamation;opus[1m]matches;opusplanstays unmapped.spec-validation-advisory.test.tsnow covers the opus, sonnet and haiku advisories.spec-validation-advisory.ts, these tests fail. The monitor test proclaimspinned=opus effective=claude-opus-5-5. With the change they pass.fableexpectations moved toclaude-fable-5-2. Therigspec-schema.test.tsfixture now pinsclaude-sonnet-5-5instead ofsonnet, so its exact-advisory assertions stay about what they test.rigspec-schema,model-divergence-monitor,spec-validation-advisoryandstartup-orchestrator(510 passed, 1 skipped), pluscurrent-generation-record,plan-model-alias-notice,permission-account,effort-lifecycle-e2eandeffective-model-occupant-identity.npm run lintpasses.rig-teardown.test.ts, which is unrelated to model pins.npm testor the macOS suites.Anything you were unsure about
fablestill selects 5.1 now reports a divergence. That is the same trade-off fix(daemon): avoid false divergence for Claude model pins #1482 made.opus,sonnetorhaikunow get the existing fail-open advisory at validate time. No shipped spec pins these aliases.If this is security-related
Not security-related.
CHANGELOG.mdedit🤖 Generated with Claude Code
Summary by CodeRabbit
fablemodel update.