Files
workinf_Blender_Wasm/docs/corrective/C2-001-command-registry-and-validation.md
mes123456 a081c68c87
Some checks are pending
M6 deployable RC / quick (push) Waiting to run
M6 deployable RC / chromium (push) Blocked by required conditions
M6 deployable RC / release (push) Blocked by required conditions
Reorganize Blender Web execution around capabilities
2026-08-24 18:37:46 -04:00

1.6 KiB
Raw Blame History

C2-001 command_registry_and_validation

状态done 计划:BLENDER_WASM_CORRECTIVE_TASK_PLAN 阶段P2 GateG2 依赖:C1-003 lifecycleStatusdone blockedBynone writeScopeproduction_pilot queueMutationAllowedfalse

目标

在 C1-003 shared case runner 之上建立 typed command registry、统一 validation 和 authorization 边界。命令必须先完成 schema、context、revision 和授权校验, 才能调用 adapter拒绝路径必须保持 Main revision 和状态不变。

输入

  • tests/golden/corrective/C1-002/command-schema.json
  • tests/golden/corrective/C1-002/context-schema.json
  • tests/golden/corrective/C1-002/result-schema.json
  • tests/golden/corrective/C1-002/error-status-table.json
  • web/protocol/corrective-case-runner.ts
  • tests/golden/corrective/C1-003/manifest.json

交付

  • typed command registry、context validator 和 authorization policy。
  • 正向 dispatch、未知命令、无权限、只读 context、revision conflict 和 malformed negative cases 的 focused tests。
  • 证据写入 tests/golden/corrective/C2-001/,并生成可复现 receipt、hash manifest 和对应 status。
  • 不修改旧 M16 queue、manifest、registry、catalog、index 或历史 evidence。

验收

  • focused registry/validation test exits 0。
  • positive dispatch and all negative cases are normalized by the shared runner。
  • deterministic receipt and protected legacy hashes match before/after。
  • npm --prefix web run typecheck、corrective-plan/context governance 和 git diff --check exit 0。