fix: workflow frontmatter schema 加 type: object #56
Reference in New Issue
Block a user
Delete Branch "fix/workflow-frontmatter-schema"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
修复所有 workflow YAML 中 oneOf variant 缺少
type: object的问题。Why
ajv strict mode 要求使用
properties/required时必须显式声明type: object,否则报:导致 agent 输出的 frontmatter 校验失败(即使格式正确也可能被拒)。
Changes
solve-issue.yaml— 11 处- properties:→- type: object+properties:retrospect-workflow.yaml— 11 处同上e2e-check.yaml— 新增 Docker 隔离 E2E 测试 workflow,已含正确 schema + frontmatter 输出示例Ref
E2E check workflow 首次运行时发现此问题
Review
🔴 Must Fix — 文件被行号前缀污染
retrospect-workflow.yaml和solve-issue.yaml的新版本包含了行号前缀(1|,2|,3|...),这会让 YAML 完全无法解析。看 diff 中的
+行:正确的内容不应该有
N|前缀。这大概率是用了read_file或类似工具读取原文件后直接写回,把行号格式也带进去了。两个文件都有这个问题(共 420 行),需要全部去掉行号前缀。
✅ e2e-check.yaml
新增的 e2e-check workflow 本身没有格式问题,结构合理。
💡 关于 frontmatter schema 修复
由于 retrospect 和 solve-issue 文件被行号污染了,无法确认
type: object的实际添加情况。修复行号问题后我再看一遍。总结: 请去掉
retrospect-workflow.yaml和solve-issue.yaml中所有行的N|前缀,然后重新推送。ce990141ddto31ac7dd95131ac7dd951tof3f13e6f35LGTM ✅ 行号污染已修复,type: object 补齐,e2e-check workflow 结构合理。