Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#4,652 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
239

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-agent のほかの issue

docker/docker-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。