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

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

未关闭 适合新手
#6,547 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
shell, yaml
领域
testing, tooling

调研方向

从 calibrate-judge.py 开始,检查 yaml_quoted() 和 build 的输出路径;然后阅读 validate-cases.py,了解它接受的 YAML 子集。添加一个包含 Markdown 表格规则的 fixture 示例,并测试构建后的输出可以加载且往返转换后与原始示例一致。当输出行中不再残留 --- 连串且回归测试通过时,即为完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Shell
星标
22
派生
2
平均合并
8 小时 34 分钟
30 天内合并 PR
946

环境准备

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

从这里开始

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

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

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