Repository navigation
fix(models): Claude Sonnet 5.5, Haiku 5.5 and Fable 5.2 are selectable; base image Claude Code 2.1.281 → 2.1.322 (#4528) - #4637
Conversation
…e, and the base image's Claude Code moves to 2.1.322 (#4528) The catalog had not moved since #2987, so the three current models were absent from the operator picker, the admin default and the Workspace composer, and 422'd by the public-channel override. This time the CLI pin was behind as well: Claude Code 2.1.281 refuses all three ids and resolves the `sonnet` / `haiku` / `fable` aliases to the previous models. Catalog: three ModelEntry rows with `min_claude_code` (2.1.284, 2.1.293, 2.1.321) and one codegen run. Each new id takes its tier's `(latest)` marker. Sonnet 5.5 takes the Workspace "Balanced" slot and Haiku 5.5 the "Fastest" slot, because a tier is one option; the entries they replace keep both policy flags. Haiku 5.5 stays out of the admin default like every Haiku (#1080) and Fable 5.2 out of the Workspace like every Fable (ent#403). No default changed. The ops cost view gets exact labels for the three ids, and the agent server's alias note names the new models. Pin: CLAUDE_CODE_VERSION 2.1.281 -> 2.1.322, the smallest step that covers all three with one release of slack. Moving it fails three tests that record the release the hook and telemetry facts were checked on (ent#752, ent#787, ent#1093). Each checklist was re-run on 2.1.322 in a network-less container against a stub API, with 2.1.281 beside it as the control, and every item behaves the same. The markers move with a note saying the re-check was behavioural, not a re-read of the binary. One thing is new on 2.1.322: a Monitor tool is offered when telemetry is off, and it runs a shell command of its own. The Bash guardrail blocks a denied command sent through it, and the platform deny list keeps it out of headless and chat turns. That dependency is added to CLI_FACTS_TO_REAUDIT and to the ent#787 re-check message. After agents are recreated on the new image, an agent configured with a bare alias runs the new model of that family. Fixes #4528 Co-Authored-By: Claude Fable 5.2 <[email protected]>
obasilakis
left a comment
There was a problem hiding this comment.
Review + validation: approve
Lane C (docker/base-image/**). No critical findings.
Scope
Matches #4528: three catalog entries with min_claude_code, regenerated modelCatalog.js, pin 2.1.281 → 2.1.322, the three CLI-verified markers moved with a documented re-check, ops cost labels, docs. No drift. No default moved (recommended and PLATFORM_DEFAULT_MODEL_VALUE unchanged).
Execution coverage
| changed symbol | executed by | live consumer | verdict |
|---|---|---|---|
MODEL_CATALOG new entries |
test_2086_* (4 new tests), test_3012_* |
settings_service.is_valid_public_channel_model, WORKSPACE_MODELS, unrunnable_reason, frontend modelCatalog.js |
✅ executed |
_format_model_name labels |
test_2726_ops_model_label |
ops_costs_service |
✅ executed |
CLAUDE_CODE_VERSION + _CLI_VERIFIED / SKILL_GATE_CLI_VERIFIED |
ent752 / ent787 / ent1093 ratchets | Dockerfile build | 🛡 guard |
Monitor tool claim |
— | _runtime_config.PLATFORM_DENIED_TOOLS includes "Monitor" (verified) |
✅ |
Mutation: reverting model_catalog.py, modelCatalog.js, Dockerfile and ops_costs_service.py turns 16 tests red (all new catalog/label/minimum tests plus the three pin ratchets). With the PR applied, 366 tests across the 11 related files pass locally.
Merge gate
Tier 1 green: pytest (head, seed 12345), regression diff, the required contexts. Lane C: journey-smoke and frontend-e2e are green on the PR. The red report comes from a superseded, cancelled frontend-e2e run; the newer run passed. dev-ci is success.
Security
No keys, emails, IPs, host paths or mode changes. enterprise-docs-guard passed. The Dockerfile change is a version bump with a justified comment.
Informational (non-blocking)
- Alias auto-upgrade on recreate. Agents on bare
sonnet/haiku/fablemove to the new models after recreate. For Haiku this changes price and context window. The PR body says so, but the release notes should call it out for operators. - The base image build is not verified on the PR. No PR check builds
docker/base-image, and the author's local build failed ondeb.nodesource.comDNS. Rebuild after merge and confirmclaude --versionreports 2.1.322 before agents are recreated. - The ent#787 test still quotes the 2.1.281 minified symbol names. The comment states this, so it is acceptable, but the next binary-level re-read should refresh them.
- Out of scope, noted only:
claude-haiku-4-5-20251001stays hard-coded as the portal title model,model_gateway.MODEL_ON_SUBSCRIPTION, the headroom probe and the compatibility checks. Moving these is a separate decision.
Process
Closing keyword Fixes #4528 is present, so the issue auto-promotes. One conventional-commit commit. Feature flows, requirements, architecture area file and user docs are updated.
Summary
PUT /api/agents/{name}/public-channel-model(200 instead of 422).unrecognized_model) and thesonnet/haiku/fablealiases resolve to Sonnet 5, Haiku 4.5 and Fable 5.1. On 2.1.322 the ids are accepted and the aliases resolve to the new models.No default changed:
PLATFORM_DEFAULT_MODEL_VALUEandrecommendedstay onclaude-sonnet-4-6.Catalog changes
claude-sonnet-5-5(new)claude-haiku-5-5(new)claude-fable-5-2(new)claude-sonnet-5claude-haiku-4-5-20251001claude-fable-5-1Each new id takes its tier's
(latest)marker. The minimums are the releases whose changelog adds each id; I confirmed on the binaries that 2.1.281 refuses all three and 2.1.322 accepts them.Also in this PR: the ops cost view gets exact labels for the three ids (otherwise "Claude Sonnet 5 5"), the agent server's
GET /api/modelalias note names the new models, and the model docs are updated.Behaviour change to expect after agents are recreated on the new image: an agent configured with the bare alias
sonnet,haikuorfablestarts running Sonnet 5.5, Haiku 5.5 or Fable 5.2. That is what #4528 asks for, but it changes the model (and for Haiku, the price and context window) without anyone editing the agent.CLI re-verification (2.1.281 → 2.1.322)
Method: a container from the agent image with no network; every DNS name resolves to a local sink that terminates TLS, logs each request, and answers
/v1/messageswith scripted tool calls. Hooks under test record how the CLI started them. Every case ran on both versions. No real API call was made and no credential was used. The 2.1.322 binary under test is byte-identical (SHA-256) to what the Dockerfile'snpm installstep produces.argsis spawned with no shell; shell metacharacters in args stay literalCLAUDE_CODE_SHELL_PREFIXwraps only a hook withoutargs, only when non-empty; the managed""pin beats the process envReaandbashdo not match);Taskmatches anAgentcallmanaged-settings.jsonvoids that file and its guardrails, not the drop-insenvbeats user, project and local settings (LD_*, shell prefix, routing pins, telemetry names) and, for the shell prefix, a conflicting process-env valueCLAUDE_CODE_MANAGED_SETTINGS_PATHandCLAUDE_CODE_DISABLE_ADMIN_ENV_UNIONare dropped from settingsenv; set in the process env, the path override still does nothingclaudeitself; its/procenviron and cwd are readableSkillinput is{skill, args}, trimmed and one leading/stripped; a/<skill>prompt expands with noSkillcallskills:preloads with noSkillcall; definitions are found recursively; nosubagent_typefalls back togeneral-purpose, which a user definition overridesCLAUDE_CONFIG_DIRrelocates user skillsCLAUDE_CODE_OAUTH_TOKEN;ANTHROPIC_API_KEYreaches it-p/--printbefore--turnsclaude mcp …/claude plugin …into a model session; every spelling on the ent#1002 pass-list still starts none (24 spellings run)claude --versionand--helpmake no requestHEAD /api/hellowarm-up is gonetengu_file_operationis sent withcontentHashequal to the file's SHA-256crud.pyconfigures it, still receivesclaude_code.cost.usageandclaude_code.token.usageunder the opt-out--dangerously-skip-permissionsstarts in bypass mode; plainclaudestarts in manual modeCLAUDE_CODE_DISABLE_AUTO_MEMORY=1removes the memory section from the turnbypassPermissionsWhat is new on 2.1.322
Monitortool is offered when telemetry is off (2.1.281 reports it disabled). It runs a shell command of its own. Checked: the managed Bash guardrail blocks a denied command sent throughMonitor, and with the platform's--disallowedToolslist the tool is not offered and a call to it is refused, so headless and chat turns see the same 14 tools as before. It is reachable only from the operator terminal, which passes no deny list. I added this toCLI_FACTS_TO_REAUDITand to the ent#787 re-check message, since the guardrails now depend on it.CLAUDE_CODE_CLIENT_DATA_URLaccepts only ahttps://downloads.claude.ai/address and otherwise refuses to start;CLAUDE_CODE_NOTIFICATIONS_HOSTandCLAUDE_CODE_REMOTE_SDK_URLcaused no request when set. The set ofANTHROPIC_*_BASE_URLnames that ent#1001 pins is unchanged.Not verified
docker buildcould not resolvedeb.nodesource.com(several attempts). The cases ran on an image derived from the currenttrinity-agent-basewith this branch's hooks and managed settings and the 2.1.322 binary. The Dockerfile's own CLI install step was replayed separately and produced the same binary.AUDIT_CLI_VERSION = 2.1.235) was already behind the previous pin and is not moved here. Without the deny list, 2.1.322 offers one tool 2.1.281 did not (Monitor, already on the deny list).Test plan
tests/unit/test_2086_model_catalog_parity.py,test_3012_claude_code_pin.py,test_2726_ops_model_label.py,test_ent403_workspace_model.py,test_2796_dispatch_model_validation.pytest_ent752_cli_pin.py,test_ent787_guardrail_exec_form.py,test_ent1093_claude_vendor_telemetry.pycontainer-securityruns ondocker/**)Fixes #4528
🤖 Generated with Claude Code