Block mode should ask on input too large or opaque to classify
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #349 của @blitzcrieg1 — đã merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Start by locating CLASSIFY_MAX_LEN and the block-mode decision path in the hook and policy code. Read how the current partial-classification cases fall through to allow, then trace where the event is recorded so the partial flag can be attached. Done means oversized or undecodable input yields ask in block mode with partial classification recorded, while log mode stays unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Since 0.10.3 the hook classifies a command in full up to 64 KiB (CLASSIFY_MAX_LEN), and past that its first and last 32 KiB. That is a detection bound. In block mode it means a command built to hide something in the middle of more than 64 KiB is allowed without being fully read.
Expected: with tool policy in block mode, input the hook could not fully classify (over the bound, and later anything it recognises as encoded and cannot decode) gets ask, not allow, and the event records that classification was partial. Log mode is unchanged. A security check should fail closed on what it cannot read.
Raised by a reader on r/ClaudeCode on 2026-10-30. This is hook and policy code, outside the frozen detection files.
- Ngôn ngữ chính
- Python
- Star
- 10
- Fork
- 5
- Merge trung bình
- 9 giờ 44 phút
- Pull request đã merge (30 ngày)
- 116
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của blitzcrieg1/agentmetry
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
blitzcrieg1/agentmetry#360 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug detection-rule
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
blitzcrieg1/agentmetry#345 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
detection-rule good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
blitzcrieg1/agentmetry#25 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
dlp-rule good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
blitzcrieg1/agentmetry#3 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của blitzcrieg1/agentmetry
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
[Bug]: Responses API 500s on assistant message with empty content listCó thể đã có người làm @shadowmodder đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
vllm-project/vllm#64940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
limits
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-ready area: docs documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Soneso/stellar-agent-wallet#524 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Keybind quest outdatedĐang mởStatus: Triage Type: Quest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
Maintainer thường phản hồi trong vòng 1 ngày