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

calibrate-judge build: a sample holding `---` makes its case fail to load and go untested

Đang mở Phù hợp với người mới
#6,547 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
shell, yaml
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Bắt đầu với calibrate-judge.py và kiểm tra yaml_quoted() cùng đường dẫn đầu ra của build; sau đó đọc validate-cases.py để hiểu tập con YAML mà nó chấp nhận. Thêm một mẫu fixture chứa quy tắc bảng Markdown và kiểm thử rằng đầu ra được tạo có thể tải lên và chuyển đổi khứ hồi thành mẫu ban đầu. Hoàn tất khi không còn chuỗi --- nào trong dòng được xuất ra và kiểm thử hồi quy chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs-triage

Observed

In the code-tidying pilot (#6539), calibrate-judge.py build wrote 5 calibration cases that claude plugin eval refused with invalid YAML frontmatter: Unexpected EOF. Each sample held a markdown table rule (---). prompt_md() puts the sample in one double-quoted append_system_prompt scalar via yaml_quoted(), which escapes backslash, quote, newline, tab and carriage return, but not -. The CLI's frontmatter reader ended the frontmatter at the --- inside the quoted value.

Those 5 cases were silently untested: score lists a sample with no reproduced run as untested, but a case that never loads is easy to miss in a long run. Observed at Claude Code 2.1.289 on 2026-10-07.

Workaround used

Escaping each - in the sample (a YAML double-quoted escape that parses to the same string) let the cases load and calibrate.

Fix wanted

  • yaml_quoted() escapes so that no --- run survives in the emitted line, within the subset validate-cases.py reads.
  • A fixture sample holding a table rule, with a test that build's output loads in validate-cases.py and round-trips to the original sample.

Refs: #6476


Generated by Claude Code

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
5 giờ 11 phút
Pull request đã merge (30 ngày)
838

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

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 melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

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.