docs: 更新 PaC YAML 空白验收

同步标量 round-trip、脱敏与最新定向测试证据,并统一报告 EOF。\n\nCo-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Codex
2026-07-11 08:11:26 +02:00
parent 7adcb9f09c
commit 7e212e938a
4 changed files with 6 additions and 9 deletions
@@ -3,4 +3,3 @@
- 复现输入包含空 `metadata`、空数组和嵌套空数组。
- Bun YAML 输出 `metadata: ``spec: ``items: ` 等尾随空格。
- `git diff --no-index --check` 稳定以非零状态报告 trailing whitespace。
@@ -1,6 +1,5 @@
# R1.2 报告
- 在通用 `pacSourceArtifactYaml()`逐行移除水平尾随空白。
- 在通用 `pacSourceArtifactYaml()`仅规范 block scalar 外的 mapping 容器头空白。
- 未修改 AgentRun 或 HWLAB consumer 文件及渲染职责。
- 序列化后重新解析与原对象完全相等
- 输出前重新解析并逐字段对比原对象;任何漂移均以脱敏摘要失败闭合
@@ -1,7 +1,7 @@
# R1.3 报告
- 定向测试:24 项通过,0 项失败,共 287 个断言。
- 定向测试:26 项通过,0 项失败,共 297 个断言。
- AgentRun 与 HWLAB 首次生成均成功,第二次写入均为 `mutation=false`
- 三个真实生成文件均可解析、无行尾空格、EOF 恰好一个换行。
- 两个 consumer 的 `source-artifact check` 均返回 aligned。
- 多行 script 的行尾双空格、tab 与伪结构文本保持字节一致。
@@ -1,6 +1,5 @@
# R1 总报告
- 通用 PaC source artifact YAML serializer 已消除 Bun 空 mapping/sequence 产生的行尾空格。
- YAML 结构、一个 EOF 换行和重复生成幂等均已验证。
- 通用 PaC source artifact YAML serializer 已仅在结构表示层消除 Bun 容器头行尾空格。
- 多行 scalar 内容、YAML 结构、一个 EOF 换行和重复生成幂等均已验证。
- AgentRun 与 HWLAB consumer 无需手工修补。