Skip to content

Model divergence advisory can't resolve opus/sonnet aliases: CANONICAL_MODEL_PINS maps only fable #4000

Backlog

Description

@dannykeane

Version: @openrig/cli 0.7.23 (484cbff), macOS.

daemon/dist/domain/spec-validation-advisory.js defines

export const CANONICAL_MODEL_PINS = Object.assign(Object.create(null), { fable: "claude-fable-5-1" });

and the comment above it calls this the single alias mapping home. A seat pinned to opus or sonnet, or to a full id such as claude-opus-5-5, has no entry, so the advisory can't tell an alias from the id it resolves to. Depending on which side is the alias, it reports a false divergence or misses a real one.

Repro: pin a Claude seat with rig seat set-model <seat> --model opus --reason test, let it resume, and read the Model (...) lines under rig ps --nodes. Repeat with claude-opus-5-5.

Expected: every alias Claude Code accepts (opus, sonnet, haiku, fable) maps to its current full id, or the advisory compares against the resolved id the runtime reports.

Workaround: pin full ids everywhere.

Related: #1926 (the same false-positive class for Bedrock inference-profile ids).

Activity

  1. mvschwarz commented on Nov 26, 2026

    @mvschwarz
    Owner

    Thanks, @dannykeane, for the clear report and the repro. We read this as a bug, and it's still true on main at f83b04ef: CANONICAL_MODEL_PINS in spec-validation-advisory.ts maps only fable. So, as you found, an agent pinned to opus, sonnet, haiku or a full id such as claude-opus-5-5 can show a false divergence or miss a real one. Of your two options, comparing against the id the runtime actually reports may avoid a hand-kept alias table; which would you prefer?

    Do you plan to send a fix for this yourself? If not, that's fine; just say so here.

  2. moved this from Todo to In Progress in OpenRig roadmapon Nov 26, 2026
  3. dannykeane commented on Nov 26, 2026

    @dannykeane
    ContributorAuthor

    prefer comparing against the id the runtime reports. an alias table goes stale every model release. one edge: when no id has been observed yet (rig ps shows record-predates-current-occupant on a lot of my seats after the upgrade), report unknown rather than a divergence. yes, i'll send a fix.

  4. mvschwarz commented on Nov 26, 2026

    @mvschwarz
    Owner

    Thanks, @dannykeane — yes, please send the fix. Agreed that no model observation from the current occupant should mean unknown, not divergence. @cavalcanticampos has also opened #4005 with an alias-table correction; please coordinate here so you can reuse the cases and tests without duplicating the work.

    One design detail to preserve: the monitor already reads the runtime's observed model. The fix needs to distinguish what the requested alias resolves to from what the seat actually ran; simply accepting its first observed model as the expected one could hide a fallback to the wrong model. Please explain that distinction in the PR and cover the no-observation case alongside genuine mismatches.

    Also, a correction to our earlier reply: the missing alias-table entry alone does not break comparison of an explicit full ID against the same observed ID. That comparison already exists. The alias-resolution problem is the part we can establish from the code; we shouldn't have extended that claim to all full-ID pins.

  5. dannykeane commented on Nov 26, 2026

    @dannykeane
    ContributorAuthor

    saw #4005, thanks @cavalcanticampos. the two overlap: #4005 updates the alias table, #4010 drops it and leaves aliases unknown. proposal: land #4005 and its tests first, and i'll rebase #4010 on top to carry only what it adds: an alias the table doesn't map reads unknown rather than a divergence, plus the resolved-vs-ran explanation you asked for. fable sitting at 5-1 until now is why i'd keep that unknown path. ok with you both?

  6. added
    bug
    area: status-tui
    needs-triage
    on Nov 26, 2026
  7. mvschwarz commented on Nov 26, 2026

    @mvschwarz
    Owner

    Thanks, @dannykeane, for the plan. Yes, that order works for us: #4005 and its tests first (with fable kept at claude-fable-5-1, as we asked there), then #4010 rebased on top of it, carrying only what it adds: an alias the table doesn't map reads unknown rather than a divergence, plus the explanation of what an alias resolves to versus what actually ran. We'll review #4010 after that rebase, so it reads against #4005's table. And as in our last reply: when there's no model observation from the current occupant, the check should report unknown, not a divergence.

    @cavalcanticampos, one small ask on #4005: since it covers only the alias table, not #4000's runtime side, please change "Fixes #4000" to "Refs #4000" in its description, so merging it doesn't close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: status-tuibugneeds-triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions