Skip to content

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

Merged
dolho merged 1 commit into
devfrom
feature/4528-model-catalog-sync
Nov 18, 2026
Merged

dolho merged 1 commit into
devfrom
feature/4528-model-catalog-sync

Conversation

@dolho

@dolho dolho commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Claude Sonnet 5.5, Haiku 5.5 and Fable 5.2 are selectable everywhere the catalog feeds: the operator picker, the admin default dropdown, the Workspace composer, and PUT /api/agents/{name}/public-channel-model (200 instead of 422).
  • The agent base image moves from Claude Code 2.1.281 to 2.1.322. On 2.1.281 the three ids are refused (unrecognized_model) and the sonnet / haiku / fable aliases 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.
  • The CLI bump was re-verified, not just re-stamped. Three tests record the CLI release the security hooks and the telemetry opt-out were checked on (ent#752, ent#787, ent#1093) and fail when the pin moves. Each checklist was re-run on 2.1.322 with 2.1.281 beside it as the control; results below.

No default changed: PLATFORM_DEFAULT_MODEL_VALUE and recommended stay on claude-sonnet-4-6.

Catalog changes

id flags Workspace tier min Claude Code
claude-sonnet-5-5 (new) public-channel, admin-default Balanced — fast and smart 2.1.284
claude-haiku-5-5 (new) public-channel only (#1080 holds for every Haiku) Fastest 2.1.293
claude-fable-5-2 (new) public-channel, admin-default none (ent#403 keeps Fable out) 2.1.321
claude-sonnet-5 unchanged gives up "Balanced"
claude-haiku-4-5-20251001 unchanged gives up "Fastest"
claude-fable-5-1 unchanged

Each 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/model alias 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, haiku or fable starts 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/messages with 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's npm install step produces.

Checked 2.1.322 vs 2.1.281
Hook with args is spawned with no shell; shell metacharacters in args stay literal holds same
CLAUDE_CODE_SHELL_PREFIX wraps only a hook without args, only when non-empty; the managed "" pin beats the process env holds same
Plain-name matcher is an exact comparison (Rea and bash do not match); Task matches an Agent call holds same
Exit 2 blocks and its stderr reaches the model; exit 1, a crash, a spawn failure and a timeout let the tool run holds same
A drop-in that fails validation voids only itself; a bad entry in managed-settings.json voids that file and its guardrails, not the drop-ins holds same
Managed env beats user, project and local settings (LD_*, shell prefix, routing pins, telemetry names) and, for the shell prefix, a conflicting process-env value holds same
CLAUDE_CODE_MANAGED_SETTINGS_PATH and CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION are dropped from settings env; set in the process env, the path override still does nothing holds same
The hook's parent is claude itself; its /proc environ and cwd are readable holds same
Skill input is {skill, args}, trimmed and one leading / stripped; a /<skill> prompt expands with no Skill call holds same
A subagent's skills: preloads with no Skill call; definitions are found recursively; no subagent_type falls back to general-purpose, which a user definition overrides holds same
CLAUDE_CONFIG_DIR relocates user skills holds same
A Bash child does not inherit CLAUDE_CODE_OAUTH_TOKEN; ANTHROPIC_API_KEY reaches it holds same
-p / --print before -- turns claude mcp … / claude plugin … into a model session; every spelling on the ent#1002 pass-list still starts none (24 spellings run) holds same
claude --version and --help make no request holds same
With the telemetry drop-in: no event-logging POST, no bootstrap / feature-flag / MCP-registry fetch; the reply arrives holds same, and the HEAD /api/hello warm-up is gone
Without the drop-in (control): tengu_file_operation is sent with contentHash equal to the file's SHA-256 observed same
The agent blanking the three opt-out names in its settings files changes nothing; with only a process-env value they do cancel it holds same
OTLP over gRPC, configured as crud.py configures it, still receives claude_code.cost.usage and claude_code.token.usage under the opt-out holds same
Interactive terminal: --dangerously-skip-permissions starts in bypass mode; plain claude starts in manual mode holds same
CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 removes the memory section from the turn holds same
Headless turns start in bypassPermissions holds same

What is new on 2.1.322

  • A Monitor tool 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 through Monitor, and with the platform's --disallowedTools list 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 to CLI_FACTS_TO_REAUDIT and to the ent#787 re-check message, since the guardrails now depend on it.
  • New settings names in the binary, none of which this PR protects or needs to: CLAUDE_CODE_CLIENT_DATA_URL accepts only a https://downloads.claude.ai/ address and otherwise refuses to start; CLAUDE_CODE_NOTIFICATIONS_HOST and CLAUDE_CODE_REMOTE_SDK_URL caused no request when set. The set of ANTHROPIC_*_BASE_URL names that ent#1001 pins is unchanged.

Not verified

  • A full base-image build did not complete on my machine: docker build could not resolve deb.nodesource.com (several attempts). The cases ran on an image derived from the current trinity-agent-base with 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.
  • No turn against the real API. The stub proves what the CLI does with a tool call, not that a live provider serves the three models.
  • The ent#1093 capture originally saw a third-party log intake without the opt-out; neither version contacted one in my control runs, so "no third-party intake" under the opt-out rests on its absence in both.
  • An MCP tool call under the opt-out, and an error report, were not provoked.
  • The ScheduleWakeup is offered in one-shot headless runs — it schedules a wakeup that never fires and tells the model it WILL be re-invoked #2468 headless tool audit (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).
  • The re-check was behavioural. The minified symbol names quoted in the ent#787 test are still 2.1.281's, and the comment says so.

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.py
  • The three pin ratchets: test_ent752_cli_pin.py, test_ent787_guardrail_exec_form.py, test_ent1093_claude_vendor_telemetry.py
  • Local run of the 317 unit files that touch the catalog, the pin, the hooks or the agent server: 10591 passed, 34 skipped
  • Full unit suite and frontend e2e: left to CI
  • Base-image build in CI (container-security runs on docker/**)
  • After merge: rebuild the base image and recreate agents; an agent keeps its old CLI until it is recreated

Fixes #4528

🤖 Generated with Claude Code

…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]>
@dolho dolho added the ui PR touches the frontend UI — triggers Playwright e2e tests label Nov 18, 2026

@obasilakis obasilakis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

  1. Alias auto-upgrade on recreate. Agents on bare sonnet / haiku / fable move 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.
  2. The base image build is not verified on the PR. No PR check builds docker/base-image, and the author's local build failed on deb.nodesource.com DNS. Rebuild after merge and confirm claude --version reports 2.1.322 before agents are recreated.
  3. 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.
  4. Out of scope, noted only: claude-haiku-4-5-20251001 stays 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.

@dolho
dolho merged commit 048ebfa into dev Nov 18, 2026
29 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants