3.8 KiB
3.8 KiB
C0-001 freeze_and_snapshot
状态:done
计划:BLENDER_WASM_CORRECTIVE_TASK_PLAN
阶段:P0
Gate:G0
依赖:无
lifecycleStatus:done
writeScope:evidence_only
queueMutationAllowed:false
目标
建立旧队列和 00274 checkpoint 的只读、可复现基线。该任务不修改旧 queue、manifest、 completion registry、catalog、index 或 parent evidence。任何发现的矛盾都记录为证据, 不能在本任务内修复。
输入
docs/EXECUTION_QUEUE.mdnode tools/web/print-task-context.mjs输出列出的四个 required documentstests/golden/M15-03A/completed-gap-tasks.jsontests/golden/M15-03A/task-catalog.jsonltests/golden/M15-03A/task-index.jsontests/golden/M15-03A/next-task-plan.json的脚本摘要,不复制全文
命令
mkdir -p tests/golden/corrective/C0-001
node tools/web/print-task-context.mjs > tests/golden/corrective/C0-001/print-task-context.log
node tools/web/check-task-context.mjs > tests/golden/corrective/C0-001/check-task-context.log
node tools/web/check-context-governance.mjs --task M16-GAP-00274 > tests/golden/corrective/C0-001/context-governance.log
git status --short > tests/golden/corrective/C0-001/git-status.log
sha256sum docs/EXECUTION_QUEUE.md tests/golden/M16-GAP-00273/manifest.json docs/status/M16-GAP-00273.md tests/golden/M15-03A/completed-gap-tasks.json tests/golden/M15-03A/task-catalog.jsonl tests/golden/M15-03A/task-index.json tests/golden/M15-03A/next-task-plan.json > tests/golden/corrective/C0-001/source-hashes.txt
node tools/web/capture-corrective-baseline.mjs --task M16-GAP-00274 --output tests/golden/corrective/C0-001/baseline.json
node tools/web/capture-corrective-baseline.mjs --task M16-GAP-00274 --output tests/golden/corrective/C0-001/baseline-second.json
cmp tests/golden/corrective/C0-001/baseline.json tests/golden/corrective/C0-001/baseline-second.json
node tools/web/check-corrective-baseline.mjs --baseline tests/golden/corrective/C0-001/baseline.json --source-hashes tests/golden/corrective/C0-001/source-hashes.txt > tests/golden/corrective/C0-001/baseline-check.log
node tools/web/check-corrective-plan.mjs > tests/golden/corrective/C0-001/corrective-plan.log
git diff --check > tests/golden/corrective/C0-001/diff-check.log
输出
tests/golden/corrective/C0-001/print-task-context.logtests/golden/corrective/C0-001/check-task-context.logtests/golden/corrective/C0-001/context-governance.logtests/golden/corrective/C0-001/git-status.logtests/golden/corrective/C0-001/source-hashes.txttests/golden/corrective/C0-001/baseline.jsontests/golden/corrective/C0-001/baseline-second.json(只用于 byte determinism 比较)tests/golden/corrective/C0-001/corrective-plan.logtests/golden/corrective/C0-001/diff-check.logtests/golden/corrective/C0-001/baseline-check.log
baseline.json 必须记录:当前 task、parent nextTask、catalog active、plan firstTask、
completion count、所有 active IDs、旧证据目录数量和源文件 hashes。
baseline.json 的固定契约:queue.currentTask 必须是 M16-GAP-00274,
queue.parentNextTask 必须是 M16-GAP-00274,invariants.queueMutationAllowed 必须为
false,且 invariants.catalogActiveMatchesPlan 必须为 true。
通过条件
- 所有命令退出码为 0;
- current task 仍为
M16-GAP-00274; - parent manifest 的
nextTask仍为M16-GAP-00274; - baseline 两次生成内容完全相同;
node tools/web/check-corrective-plan.mjs、git diff --check和所有记录命令退出码为 0;- 没有任何旧 queue/manifest/catalog/index 文件被修改。
失败边界
任一 hash、active task、parent pointer 或 context gate 不一致时,状态改为
in_progress,停止 C0-002/C0-003,不得修复或猜测 task number。只允许提交该失败证据;
旧队列和历史 evidence 保持原样。