Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#4,652 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@aheritier đang làm issue này rồi.

Từ ngày 19/10/2026.

  • #4656 của @aheritier — đã đóng, không merge
  • #4658 của @aheritier — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Go
Star
4.6k
Fork
522
Merge trung bình
8 giờ 43 phút
Pull request đã merge (30 ngày)
239

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của docker/docker-agent

Tất cả issue của docker/docker-agent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.