Epic: make Claude 5.x reliable on existing transports
维护者通常 1 天内回复
@aheritier 已经在做这个了。
开始于 2026年10月13日。
评估
这个 Issue 还没有评估数据。
描述
Goal
Make the Claude 5.x models work reliably on the transports docker-agent already has:
- Anthropic Messages (direct, custom
base_url, Models Gateway) - Google Vertex native prediction (
publisher: anthropic) - AWS Bedrock
ConverseStream
That means: respect what the user configured, send requests each model accepts, replay signed thinking exactly or refuse to continue, and price each turn with the model that actually served it.
Out of scope: new transports (Bedrock Mantle/InvokeModel, Foundry, Claude Platform on AWS), client-side refusal retries, destructive history migrations, native compaction on Vertex, global catalog refreshes.
Models
| Model | ID | Claude API | Vertex | Bedrock Converse |
|---|---|---|---|---|
| Haiku 5.5 | claude-haiku-5-5 |
✅ | ✅ | ✅ |
| Opus 5 | claude-opus-5 |
✅ | ✅ | ✅ |
| Opus 5.5 | claude-opus-5-5 |
✅ | ✅ | ✅ |
| Sonnet 5 | claude-sonnet-5 |
✅ | ✅ | ✅ |
| Sonnet 5.5 | claude-sonnet-5-5 |
✅ | ✅ | ✅ |
| Fable 5 | claude-fable-5 |
✅ | ✅ | ✅ |
| Fable 5.1 | claude-fable-5-1 |
✅ | ✅ | ✅ |
| Mythos 5 | claude-mythos-5 |
limited access | limited access (no Google model card) | ❌ Mantle only |
| Mythos 5.1 | claude-mythos-5-1 |
limited access | limited access (no Google model card) | limited access |
✅ means documented by the vendor (audited 2026-10-13), not tested in docker-agent. Dateless 5.x IDs are pinned snapshots, not aliases. Bedrock IDs add the anthropic. prefix and inference-profile qualifiers.
Decisions
- No new transport. Mythos 5 on Converse is refused before inference.
- For 5.x, a thinking-prefix mismatch defaults to
drop_block: the server drops invalidated thinking instead of failing. Runtime features (compaction, handoffs, trimming) legitimately change the prefix mid-session, so anerrordefault would make that 400 stick for the whole session. Setthinking_prefix_mismatch: errorto opt in. See #4653. - Server fallback works end to end on the Claude API, including 5.x chains (#4584). Claude Haiku 5.5 has no server-side fallback: a list is rejected and
defaulthas no effect. Fallback is rejected on Vertex, Bedrock, gateways and other base URLs.
Work items
| Step | Issue | Status | PR |
|---|---|---|---|
| P1 | #4581 Document Claude backends, protocols and limits | ✅ Done | #4586 |
| P2 | #4582 Preserve transport and surface clone failures | ✅ Done | #4587 |
| P3 | #4576 Price routed turns with the serving model (external) | ✅ Done | #4579 |
| P4 | #4583 Claude 5.x core: request policy and signed history | ✅ Done | see below |
| P4.1 | #4651 Model table and request-policy resolver | ✅ Done | #4657 |
| P4.2 | #4652 Refuse 5.x fallbacks and Mythos 5 on Bedrock | ✅ Done (fallback block lifted by #4700) | #4658 |
| P4.3 | #4653 Signed thinking: capture, persistence, replay | ✅ Done (error default dropped) |
#4666, #4667, #4668 |
| P4.4 | #4654 Lifecycle tests: compaction, reload, switches, shared clients | ✅ Done (results) | #4686, #4688, #4689 |
| P5 | #4584 End-to-end server fallback for 5.x | 🟡 In review: 1 of 3 merged | #4690 ✅, #4691, #4700 |
#4581 ✅ #4582 ✅ ──┐
├──> #4583 ✅ ──> #4584 🟡 (#4690 ✅ #4691 #4700)
#4576 ✅ (#4579) ────┘
Follow-ups outside the epic: #4683 (keep unpriced turns distinguishable after reload), #4684 (rule-based lastSelectedID), #4685 (tool DeferralTracker).
Related:
- #4640 (merged) stopped sending sampling parameters for Haiku 5.x, a small part of #4583.
- #4553 (Haiku 5.5 compatibility PR) was closed without merging. Its scope is covered by #4583.
- #4116 (keep prompt caching when changing effort) is separate work. #4583 must not break it.
Done when
- #4581
- #4582
- #4576
- #4583 and all its sub-issues
- #4584
- Results recorded per model, transport and feature as pass / fail / not established / expected refusal. Limited-access models are not counted as passing.
- Legacy Claude models, other providers and fallback chains without 5.x keep their tested behavior.
- 主要语言
- Go
- 星标
- 4.7k
- 派生
- 565
- 平均合并
- 18 小时 52 分钟
- 30 天内合并 PR
- 221
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker/docker-agent 的其他 Issue
-
edit_file diff rendering panics on invalid UTF-8 text可能已有人在做 @TDnorthgarden 今天认领。 未关闭area/tui
难度 2/5 1-3 小时 新手友好度 85/100
docker/docker-agent#4955 ·
维护者通常 1 天内回复
-
A setting to turn off the models.dev catalog download (offline and strict-network use)可能已有人在做 @3431481073 于 19 天前认领。 未关闭area/config area/models
难度 2/5 1-3 小时 新手友好度 72/100
docker/docker-agent#4714 ·
维护者通常 1 天内回复
-
Error when trying to run sandbox example?可能已有人在做 @dgageot 于 28 天前认领。 未关闭area/cli
难度 2/5 1-3 小时 新手友好度 62/100
docker/docker-agent#4672 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
`edit_file` silently edits the first match when `oldText` occurs more than once可能已有人在做 @dwin-gharibi 于 103 天前认领。 未关闭area/tools
难度 2/5 1-3 小时 新手友好度 78/100
docker/docker-agent#3929 · 2 条评论 ·
维护者通常 1 天内回复
-
area/api area/runtime
难度 4/5 3-5 天 新手友好度 48/100
docker/docker-agent#4951 ·
维护者通常 1 天内回复
查看 docker/docker-agent 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
fluxcd/notification-controller#1441 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
OneBusAway/maglev#2145 ·
维护者通常 2 天内回复
-
priority/medium status/ready type/chore
难度 2/5 1-3 小时 新手友好度 84/100
discobox-ai/discobox#1357 ·
维护者通常 1 天内回复
-
TestPseudoLocaleRemote fails now and then: it types the code before the laptop asks for it可能已有人在做 @fzn0x 今天认领。 未关闭bug priority: low
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
enhancement ui/ux
难度 2/5 1-3 小时 新手友好度 68/100
jbigler/railswitch#243 ·
维护者通常 1 天内回复