Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat(anthropic): Claude 5.x safety defaults (prefix error, temporary fallback block, Mythos 5 on Converse)

已关闭
#4,652 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@aheritier 已经在做这个了。

开始于 2026年10月19日。

  • #4656 来自 @aheritier —— 已关闭,未合并
  • #4658 来自 @aheritier —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

area/config area/providers area/providers/anthropic area/providers/bedrock

Goal

Refuse Claude 5.x configurations that docker-agent cannot serve correctly yet, instead of sending them:

  1. Non-empty fallbacks is rejected when any model in the chain is a 5.x model, until #4584 lands.
  2. Mythos 5 on Bedrock Converse is refused before any inference call.

Scope change (2026-10-20): making thinking_prefix_mismatch: error the 5.x default moved to #4653. The runtime routinely edits the conversation prefix (num_history_items trimming, hooks, compaction), so error would make those sessions fail until #4653 can replay signed history exactly or refuse cleanly. Today's drop_block default stays, and dropped blocks are already logged.

Why

  • fallbacks.go forwards any list with the June beta header and no checks (fallbacks.go). Server fallback changes model mid-response and sticks to the fallback for about an hour, which docker-agent doesn't handle yet (#4584).
  • Mythos 5 is only available on Bedrock Mantle, not runtime or Converse (model card). Today the request fails at AWS with an unclear error.

Scope

  • Fallback block: reject when the primary or any explicit target is one of the nine 5.x models, including a legacy primary with a 5.x target. Absent or empty fallbacks works as usual. Fallback chains with no 5.x model are unchanged. The error message points to #4584.
  • Refuse Mythos 5 on Converse at client construction when the model ID makes it clear.

Acceptance criteria

  • Fallback tests: 5.x primary, legacy primary → 5.x target, absent/empty list, a chain with no 5.x model (unchanged, control test).
  • Mythos 5 on Converse fails before any network call; Mythos 5.1 on Converse is allowed.
  • Docs and latest schema descriptions updated.
  • task build, task test, task lint pass.

Parent: #4583

主要语言
Go
星标
4.6k
派生
522
平均合并
8 小时 43 分钟
30 天内合并 PR
239

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/docker-agent 的其他 Issue

查看 docker/docker-agent 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。