calibrate-judge build: a sample holding `---` makes its case fail to load and go untested
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 calibrate-judge.py 开始,检查 yaml_quoted() 和 build 的输出路径;然后阅读 validate-cases.py,了解它接受的 YAML 子集。添加一个包含 Markdown 表格规则的 fixture 示例,并测试构建后的输出可以加载且往返转换后与原始示例一致。当输出行中不再残留 --- 连串且回归测试通过时,即为完成。
由索引模型根据 Issue 内容生成。
描述
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 subsetvalidate-cases.pyreads.- A fixture sample holding a table rule, with a test that
build's output loads invalidate-cases.pyand 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
needs-human needs-triage
难度 2/5 1-3 小时 新手友好度 82/100
melodic-software/claude-code-plugins#7636 · 1 条评论 ·
维护者通常 1 天内回复
-
agent-ready needs-human
难度 2/5 1-3 小时 新手友好度 77/100
melodic-software/claude-code-plugins#7598 · 4 条评论 ·
维护者通常 1 天内回复
-
good first issue priority: low
难度 2/5 1-3 小时 新手友好度 62/100
melodic-software/claude-code-plugins#7530 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human priority: medium
难度 2/5 1-3 小时 新手友好度 65/100
melodic-software/claude-code-plugins#7455 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: medium
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#7351 · 2 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
documentation needs-triage priority:medium
难度 2/5 1-3 小时 新手友好度 85/100
yeongseon/azure-functions-validation-python#546 ·
维护者通常 1 天内回复
-
help wanted new command
难度 2/5 1-3 小时 新手友好度 72/100
tldr-pages/tldr#24755 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
elliotchance/vsql#244 ·
-
typos可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 1/5 1-3 小时 新手友好度 90/100
维护者通常 2 天内回复
-
afk-ok area:agents size:S
难度 2/5 1-3 小时 新手友好度 82/100
enorm-labs/event-junkie#3523 ·
维护者通常 1 天内回复