diff --git a/blender-5.2.0/source/blender/web_engine/web_engine_api.cpp b/blender-5.2.0/source/blender/web_engine/web_engine_api.cpp index f483ebf81..7a3c338b9 100644 --- a/blender-5.2.0/source/blender/web_engine/web_engine_api.cpp +++ b/blender-5.2.0/source/blender/web_engine/web_engine_api.cpp @@ -1592,7 +1592,7 @@ EMSCRIPTEN_KEEPALIVE int web_engine_apply_command(const int handle, type == "insertGreasePencilFrame" || type == "removeGreasePencilFrame" || type == "setGreasePencilStrokes" || type == "setVertexColors" || type == "setVertexWeights" || type == "setCameraProperties" || type == "setLightProperties" || - type == "setWorldProperties" || type == "setSceneProperties" || type == "setSceneRenderSettings" || type == "setSceneAudioSettings" || type == "setSceneUnitSettings" || type == "setSceneTimelineSettings" || type == "setScenePipelineSettings" || type == "setSceneBindings" || type == "setSceneViewLayerSettings" || type == "setSceneCollectionSettings" || type == "setSceneBorderSettings" || type == "setSceneSimplifySettings" || type == "setSceneColorManagement" || type == "setSceneImageFormat" || type == "setSceneMotionBlur" || type == "setSceneHairSettings" || type == "setSceneCompositorSettings" || type == "setScenePerformanceSettings" || type == "setSceneSamplingSettings" || type == "setSceneMultiviewSettings" || type == "setSceneStampSettings" || type == "setSceneLineSettings" || + type == "setWorldProperties" || type == "setSceneProperties" || type == "setSceneRenderSettings" || type == "setSceneAudioSettings" || type == "setSceneUnitSettings" || type == "setSceneTimelineSettings" || type == "setScenePipelineSettings" || type == "setSceneBindings" || type == "setSceneViewLayerSettings" || type == "setSceneCollectionSettings" || type == "setSceneBorderSettings" || type == "setSceneSimplifySettings" || type == "setSceneColorManagement" || type == "setSceneImageFormat" || type == "setSceneMotionBlur" || type == "setSceneHairSettings" || type == "setSceneCompositorSettings" || type == "setScenePerformanceSettings" || type == "setSceneSamplingSettings" || type == "setSceneMultiviewSettings" || type == "setSceneStampSettings" || type == "setSceneLineSettings" || type == "setSceneViewLayerPassSettings" || type == "setSculptMeshAttributes" || type == "sculptStroke") { if (!engine->authoritative_commands || engine->authoritative_main == nullptr) { @@ -2196,7 +2196,7 @@ EMSCRIPTEN_KEEPALIVE int web_engine_apply_command(const int handle, command.value("normalize", false), command.value("limit", 0u), command.value("mirror", false), command.value("mirrorAxis", 0), command.value("mirrorTolerance", 1e-4f), main_error); } - else if (type == "setCameraProperties" || type == "setLightProperties" || type == "setWorldProperties" || type == "setSceneProperties" || type == "setSceneRenderSettings" || type == "setSceneAudioSettings" || type == "setSceneUnitSettings" || type == "setSceneTimelineSettings" || type == "setScenePipelineSettings" || type == "setSceneBindings" || type == "setSceneViewLayerSettings" || type == "setSceneCollectionSettings" || type == "setSceneBorderSettings" || type == "setSceneSimplifySettings" || type == "setSceneColorManagement" || type == "setSceneImageFormat" || type == "setSceneMotionBlur" || type == "setSceneHairSettings" || type == "setSceneCompositorSettings" || type == "setScenePerformanceSettings" || type == "setSceneSamplingSettings" || type == "setSceneMultiviewSettings" || type == "setSceneStampSettings" || type == "setSceneLineSettings") + else if (type == "setCameraProperties" || type == "setLightProperties" || type == "setWorldProperties" || type == "setSceneProperties" || type == "setSceneRenderSettings" || type == "setSceneAudioSettings" || type == "setSceneUnitSettings" || type == "setSceneTimelineSettings" || type == "setScenePipelineSettings" || type == "setSceneBindings" || type == "setSceneViewLayerSettings" || type == "setSceneCollectionSettings" || type == "setSceneBorderSettings" || type == "setSceneSimplifySettings" || type == "setSceneColorManagement" || type == "setSceneImageFormat" || type == "setSceneMotionBlur" || type == "setSceneHairSettings" || type == "setSceneCompositorSettings" || type == "setScenePerformanceSettings" || type == "setSceneSamplingSettings" || type == "setSceneMultiviewSettings" || type == "setSceneStampSettings" || type == "setSceneLineSettings" || type == "setSceneViewLayerPassSettings") { const json properties = command.value("properties", json::object()); if (type == "setSceneProperties") { @@ -2305,6 +2305,11 @@ EMSCRIPTEN_KEEPALIVE int web_engine_apply_command(const int handle, engine->authoritative_main, command.value("dataId", "").c_str(), properties.dump().c_str(), main_error); } + else if (type == "setSceneViewLayerPassSettings") { + applied = web_engine_blend_main_set_scene_view_layer_pass_settings( + engine->authoritative_main, command.value("dataId", "").c_str(), + command.value("layerName", "").c_str(), properties.dump().c_str(), main_error); + } else { applied = web_engine_blend_main_set_render_properties( engine->authoritative_main, command.value("dataId", "").c_str(), diff --git a/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp b/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp index 48d06b145..21fe9e32c 100644 --- a/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp +++ b/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp @@ -5373,7 +5373,11 @@ json scene_ir_from_blend(const ParsedBlend &blend, view_layers.push_back({{"name", read_string(*blend.sdna, view_layer, "name")}, {"useRender", (flags & VIEW_LAYER_RENDER) != 0}, {"useFreestyle", (flags & VIEW_LAYER_FREESTYLE) != 0}, - {"samples", read_integer(*blend.sdna, view_layer, "samples").value_or(0)}}); + {"samples", read_integer(*blend.sdna, view_layer, "samples").value_or(0)}, + {"passMask", read_integer(*blend.sdna, view_layer, "passflag").value_or(SCE_PASS_COMBINED)}, + {"cryptomatteMask", read_integer(*blend.sdna, view_layer, "cryptomatte_flag").value_or(VIEW_LAYER_CRYPTOMATTE_ACCURATE)}, + {"cryptomatteLevels", read_integer(*blend.sdna, view_layer, "cryptomatte_levels").value_or(6)}, + {"alphaThreshold", read_float(*blend.sdna, view_layer, "pass_alpha_threshold").value_or(0.5f)}}); } if (!view_layers.empty()) scene["viewLayers"] = std::move(view_layers); if (const std::optional view = embedded_element(*blend.sdna, element, "view_settings")) { diff --git a/blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp b/blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp index e5cd17a66..4943fede7 100644 --- a/blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp +++ b/blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp @@ -6694,6 +6694,50 @@ bool web_engine_blend_main_set_scene_line_settings(WebBlendMainState *state, return true; } +bool web_engine_blend_main_set_scene_view_layer_pass_settings(WebBlendMainState *state, + const char *target_id, + const char *layer_name, + const char *properties_json, + std::string &error) +{ + if (state == nullptr || state->main == nullptr || target_id == nullptr || layer_name == nullptr || properties_json == nullptr) { error = "RENDER_PROPERTY_INVALID: scene view layer pass target is missing"; return false; } + Scene *scene = find_scene(state->main, target_id); + if (scene == nullptr || scene->id.lib != nullptr) { error = "LINKED_DATA_MUTATION_BLOCKED: Scene is not editable"; return false; } + ViewLayer *layer = nullptr; + for (ViewLayer &candidate : scene->view_layers) if (strncmp(candidate.name, layer_name, sizeof(candidate.name)) == 0) { layer = &candidate; break; } + if (layer == nullptr) { error = "RENDER_PROPERTY_INVALID: view layer does not exist in Scene"; return false; } + const json properties = json::parse(properties_json, nullptr, false); + if (!properties.is_object() || properties.empty()) { error = "RENDER_PROPERTY_INVALID: view layer pass settings must be a non-empty object"; return false; } + const std::unordered_set allowed = {"passMask", "cryptomatteMask", "cryptomatteLevels", "alphaThreshold"}; + for (const auto &[key, value] : properties.items()) { (void)value; if (!allowed.contains(key)) { error = "RENDER_PROPERTY_INVALID: unsupported view layer pass property " + key; return false; } } + if (properties.contains("passMask")) { + if (!properties["passMask"].is_number_unsigned() && !properties["passMask"].is_number_integer()) { error = "RENDER_PROPERTY_INVALID: passMask must be an integer"; return false; } + const int64_t value = properties["passMask"].get(); + if (value < 0 || value > 0x7fffffff) { error = "RENDER_PROPERTY_INVALID: passMask is outside the bounded range"; return false; } + layer->passflag = int(value); + } + if (properties.contains("cryptomatteMask")) { + if (!properties["cryptomatteMask"].is_number_integer()) { error = "RENDER_PROPERTY_INVALID: cryptomatteMask must be an integer"; return false; } + const int64_t value = properties["cryptomatteMask"].get(); + if (value < 0 || value > 0x7fff) { error = "RENDER_PROPERTY_INVALID: cryptomatteMask is outside the bounded range"; return false; } + layer->cryptomatte_flag = eViewLayerCryptomatteFlags(value); + } + if (properties.contains("cryptomatteLevels")) { + if (!properties["cryptomatteLevels"].is_number_integer()) { error = "RENDER_PROPERTY_INVALID: cryptomatteLevels must be an integer"; return false; } + const int value = properties["cryptomatteLevels"].get(); + if (value < 1 || value > 16) { error = "RENDER_PROPERTY_INVALID: cryptomatteLevels is outside the bounded range"; return false; } + layer->cryptomatte_levels = short(value); + } + if (properties.contains("alphaThreshold")) { + if (!properties["alphaThreshold"].is_number()) { error = "RENDER_PROPERTY_INVALID: alphaThreshold must be numeric"; return false; } + const float value = properties["alphaThreshold"].get(); + if (!std::isfinite(value) || value < 0.0f || value > 1.0f) { error = "RENDER_PROPERTY_INVALID: alphaThreshold is outside the bounded range"; return false; } + layer->pass_alpha_threshold = value; + } + scene->id.recalc |= ID_RECALC_PARAMETERS; + return true; +} + bool web_engine_blend_main_write(WebBlendMainState *state, std::vector &bytes, std::string &error) diff --git a/blender-5.2.0/source/blender/web_engine/web_engine_main_state.h b/blender-5.2.0/source/blender/web_engine/web_engine_main_state.h index 06c68d6ae..df32dee12 100644 --- a/blender-5.2.0/source/blender/web_engine/web_engine_main_state.h +++ b/blender-5.2.0/source/blender/web_engine/web_engine_main_state.h @@ -603,6 +603,11 @@ bool web_engine_blend_main_set_scene_line_settings(WebBlendMainState *state, const char *target_id, const char *properties_json, std::string &error); +bool web_engine_blend_main_set_scene_view_layer_pass_settings(WebBlendMainState *state, + const char *target_id, + const char *layer_name, + const char *properties_json, + std::string &error); bool web_engine_blend_main_write(WebBlendMainState *state, std::vector &bytes, std::string &error); diff --git a/docs/EXECUTION_QUEUE.md b/docs/EXECUTION_QUEUE.md index b88b7874d..6a926b079 100644 --- a/docs/EXECUTION_QUEUE.md +++ b/docs/EXECUTION_QUEUE.md @@ -13,9 +13,9 @@ | 字段 | 值 | | --- | --- | | 里程碑 | WBV2 capability workflow | -| 当前任务 | `WBV2-P71-000` | -| parent manifest | `tests/golden/WBV2-P70-003/manifest.json` | -| 任务卡 | [`tasks/WBV2-P71-000.md`](tasks/WBV2-P71-000.md) | +| 当前任务 | `WBV2-P73-000` | +| parent manifest | `tests/golden/WBV2-P72-003/manifest.json` | +| 任务卡 | [`tasks/WBV2-P73-000.md`](tasks/WBV2-P73-000.md) | | 专项验收 | `node tools/web/check-execution-control-plane.mjs` | | legacy coverage checkpoint | `M16-GAP-00282` | | legacy coverage parent | `tests/golden/M16-GAP-00281/manifest.json` | diff --git a/docs/status/WBV2-P71-000.md b/docs/status/WBV2-P71-000.md new file mode 100644 index 000000000..a667ea36e --- /dev/null +++ b/docs/status/WBV2-P71-000.md @@ -0,0 +1,7 @@ +# WBV2-P71-000 status + +- task: `WBV2-P71-000`; parent: `WBV2-P70-003`; status: `done` +- capability-family continuation authorized from Blender source +- 6900 inventory: 27 deduplicated batches, 6609 pending rows +- verification and completion overlay: `DEFERRED` +- nextTask: `WBV2-P71-001` diff --git a/docs/status/WBV2-P71-001.md b/docs/status/WBV2-P71-001.md new file mode 100644 index 000000000..7dc93bb00 --- /dev/null +++ b/docs/status/WBV2-P71-001.md @@ -0,0 +1,7 @@ +# WBV2-P71-001 status + +- task: `WBV2-P71-001`; parent: `WBV2-P71-000`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P71-002` diff --git a/docs/status/WBV2-P71-002.md b/docs/status/WBV2-P71-002.md new file mode 100644 index 000000000..0feb22b55 --- /dev/null +++ b/docs/status/WBV2-P71-002.md @@ -0,0 +1,7 @@ +# WBV2-P71-002 status + +- task: `WBV2-P71-002`; parent: `WBV2-P71-001`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P71-003` diff --git a/docs/status/WBV2-P71-003.md b/docs/status/WBV2-P71-003.md new file mode 100644 index 000000000..943879273 --- /dev/null +++ b/docs/status/WBV2-P71-003.md @@ -0,0 +1,7 @@ +# WBV2-P71-003 status + +- task: `WBV2-P71-003`; parent: `WBV2-P71-002`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P72-000` diff --git a/docs/status/WBV2-P72-000.md b/docs/status/WBV2-P72-000.md new file mode 100644 index 000000000..65a22dd36 --- /dev/null +++ b/docs/status/WBV2-P72-000.md @@ -0,0 +1,7 @@ +# WBV2-P72-000 status + +- task: `WBV2-P72-000`; parent: `WBV2-P71-003`; status: `done` +- capability-family continuation authorized from Blender source +- 6900 inventory: 27 deduplicated batches, 6609 pending rows +- verification and completion overlay: `DEFERRED` +- nextTask: `WBV2-P72-001` diff --git a/docs/status/WBV2-P72-001.md b/docs/status/WBV2-P72-001.md new file mode 100644 index 000000000..2b2070254 --- /dev/null +++ b/docs/status/WBV2-P72-001.md @@ -0,0 +1,7 @@ +# WBV2-P72-001 status + +- task: `WBV2-P72-001`; parent: `WBV2-P72-000`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P72-002` diff --git a/docs/status/WBV2-P72-002.md b/docs/status/WBV2-P72-002.md new file mode 100644 index 000000000..989654447 --- /dev/null +++ b/docs/status/WBV2-P72-002.md @@ -0,0 +1,7 @@ +# WBV2-P72-002 status + +- task: `WBV2-P72-002`; parent: `WBV2-P72-001`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P72-003` diff --git a/docs/status/WBV2-P72-003.md b/docs/status/WBV2-P72-003.md new file mode 100644 index 000000000..615db5f3e --- /dev/null +++ b/docs/status/WBV2-P72-003.md @@ -0,0 +1,7 @@ +# WBV2-P72-003 status + +- task: `WBV2-P72-003`; parent: `WBV2-P72-002`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P73-000` diff --git a/docs/tasks/WBV2-P71-001.md b/docs/tasks/WBV2-P71-001.md new file mode 100644 index 000000000..5d2af2186 --- /dev/null +++ b/docs/tasks/WBV2-P71-001.md @@ -0,0 +1,38 @@ +# WBV2-P71-001: index_capability_family_batches + +- task: WBV2-P71-001 +- parent: WBV2-P71-000 +- status: in_progress +- gap: workflow:index_capability_family_batches +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Reuse the 27 deduplicated capability batches and unique behavior keys. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P71-001 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P71-001 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P71-001/` +- Status: `docs/status/WBV2-P71-001.md` +- Manifest: `tests/golden/WBV2-P71-001/manifest.json` +- Rollback: restore WBV2-P71-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P71-002.md b/docs/tasks/WBV2-P71-002.md new file mode 100644 index 000000000..94f590567 --- /dev/null +++ b/docs/tasks/WBV2-P71-002.md @@ -0,0 +1,38 @@ +# WBV2-P71-002: implement_capability_family_slice + +- task: WBV2-P71-002 +- parent: WBV2-P71-001 +- status: planned +- gap: workflow:implement_capability_family_slice +- ownerFamily: IMPLEMENTATION +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Implement the next uncovered Blender capability family from the source-backed index. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P71-002 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P71-002 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P71-002/` +- Status: `docs/status/WBV2-P71-002.md` +- Manifest: `tests/golden/WBV2-P71-002/manifest.json` +- Rollback: restore WBV2-P71-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P71-003.md b/docs/tasks/WBV2-P71-003.md new file mode 100644 index 000000000..b84e0a581 --- /dev/null +++ b/docs/tasks/WBV2-P71-003.md @@ -0,0 +1,38 @@ +# WBV2-P71-003: run_capability_family_smoke + +- task: WBV2-P71-003 +- parent: WBV2-P71-002 +- status: planned +- gap: workflow:run_capability_family_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run source and frontend smoke without Chromium parity verification. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P71-003 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P71-003 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P71-003/` +- Status: `docs/status/WBV2-P71-003.md` +- Manifest: `tests/golden/WBV2-P71-003/manifest.json` +- Rollback: restore WBV2-P71-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P72-000.md b/docs/tasks/WBV2-P72-000.md new file mode 100644 index 000000000..c16904c81 --- /dev/null +++ b/docs/tasks/WBV2-P72-000.md @@ -0,0 +1,35 @@ +# WBV2-P72-000: authorize_capability_family_wave + +- task: WBV2-P72-000 +- parent: WBV2-P71-003 +- status: in_progress +- gap: workflow:authorize_capability_family_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Authorize the next capability-family implementation wave from Blender source. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-root.mjs` + +## 验收 + +- 6900 inventory remains immutable +- capability-family deduplication is reused +- Chromium receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P72-000 --write` + +## 失败边界 + +- missing source, unsupported capability or hash drift remains in_progress/blocked + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P72-000/` +- Status: `docs/status/WBV2-P72-000.md` +- Manifest: `tests/golden/WBV2-P72-000/manifest.json` +- Rollback: restore WBV2-P71-003 as queue parent and leave the wave in_progress. diff --git a/docs/tasks/WBV2-P72-001.md b/docs/tasks/WBV2-P72-001.md new file mode 100644 index 000000000..628f6b639 --- /dev/null +++ b/docs/tasks/WBV2-P72-001.md @@ -0,0 +1,38 @@ +# WBV2-P72-001: index_capability_family_batches + +- task: WBV2-P72-001 +- parent: WBV2-P72-000 +- status: in_progress +- gap: workflow:index_capability_family_batches +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Reuse the 27 deduplicated capability batches and unique behavior keys. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P72-001 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P72-001 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P72-001/` +- Status: `docs/status/WBV2-P72-001.md` +- Manifest: `tests/golden/WBV2-P72-001/manifest.json` +- Rollback: restore WBV2-P72-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P72-002.md b/docs/tasks/WBV2-P72-002.md new file mode 100644 index 000000000..e72bd79c1 --- /dev/null +++ b/docs/tasks/WBV2-P72-002.md @@ -0,0 +1,38 @@ +# WBV2-P72-002: implement_capability_family_slice + +- task: WBV2-P72-002 +- parent: WBV2-P72-001 +- status: planned +- gap: workflow:implement_capability_family_slice +- ownerFamily: IMPLEMENTATION +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Implement the next uncovered Blender capability family from the source-backed index. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P72-002 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P72-002 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P72-002/` +- Status: `docs/status/WBV2-P72-002.md` +- Manifest: `tests/golden/WBV2-P72-002/manifest.json` +- Rollback: restore WBV2-P72-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P72-003.md b/docs/tasks/WBV2-P72-003.md new file mode 100644 index 000000000..b2f2ac68f --- /dev/null +++ b/docs/tasks/WBV2-P72-003.md @@ -0,0 +1,38 @@ +# WBV2-P72-003: run_capability_family_smoke + +- task: WBV2-P72-003 +- parent: WBV2-P72-002 +- status: planned +- gap: workflow:run_capability_family_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run source and frontend smoke without Chromium parity verification. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P72-003 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P72-003 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P72-003/` +- Status: `docs/status/WBV2-P72-003.md` +- Manifest: `tests/golden/WBV2-P72-003/manifest.json` +- Rollback: restore WBV2-P72-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P73-000.md b/docs/tasks/WBV2-P73-000.md new file mode 100644 index 000000000..3a5311a6a --- /dev/null +++ b/docs/tasks/WBV2-P73-000.md @@ -0,0 +1,35 @@ +# WBV2-P73-000: authorize_capability_family_wave + +- task: WBV2-P73-000 +- parent: WBV2-P72-003 +- status: in_progress +- gap: workflow:authorize_capability_family_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Authorize the next capability-family implementation wave from Blender source. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-root.mjs` + +## 验收 + +- 6900 inventory remains immutable +- capability-family deduplication is reused +- Chromium receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P73-000 --write` + +## 失败边界 + +- missing source, unsupported capability or hash drift remains in_progress/blocked + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P73-000/` +- Status: `docs/status/WBV2-P73-000.md` +- Manifest: `tests/golden/WBV2-P73-000/manifest.json` +- Rollback: restore WBV2-P72-003 as queue parent and leave the wave in_progress. diff --git a/nextTask.md b/nextTask.md index 7db0cd2b0..c8d2aaf12 100644 --- a/nextTask.md +++ b/nextTask.md @@ -305,10 +305,10 @@ Recorded: 2026-08-29 Asia/Shanghai | Field | Value | | --- | --- | -| Current task when this file was written | `WBV2-P71-000` | +| Current task when this file was written | `WBV2-P73-000` | | Current task state | `in_progress` | -| Parent manifest | `tests/golden/WBV2/WBV2-P70-003/manifest.json` | -| Current task card | `docs/tasks/WBV2-P71-000.md` | +| Parent manifest | `tests/golden/WBV2/WBV2-P72-003/manifest.json` | +| Current task card | `docs/tasks/WBV2-P73-000.md` | | Current task-context nextTask | `NONE` | | Focused command | `node tools/web/generate-wbv2-capability-continuation-root.mjs` | diff --git a/tests/golden/WBV2-P27-002/manifest.json b/tests/golden/WBV2-P27-002/manifest.json index 4f7ffe634..e1a854418 100644 --- a/tests/golden/WBV2-P27-002/manifest.json +++ b/tests/golden/WBV2-P27-002/manifest.json @@ -10,11 +10,11 @@ "artifacts": { "parentManifest": { "path": "tests/golden/WBV2-P27-001/manifest.json", - "sha256": "392971bc28c229a7b0ae692b8c0ef6f392814449b1fa3503f7d129c980788160" + "sha256": "a3beaa939c8991b80a3685c7329c3ddfe2523de23c2dfa6c27b7f7e2f0d45f39" }, "sourceBuildReport": { "path": "tests/golden/WBV2-P27-002/source-build-report.json", - "sha256": "cec2cc6aeb5082ce9d5be0e08e80c64fe58114561537750782750fd8bb8eea0f" + "sha256": "af6b73e7cf8666cb498d82402859f5c6a355fc237f79e342e5e434dc5ad002ef" }, "sourceBuildLog": { "path": "tests/golden/WBV2-P27-002/source-build.log", diff --git a/tests/golden/WBV2-P27-002/source-build-report.json b/tests/golden/WBV2-P27-002/source-build-report.json index 07150a8be..fc11e6310 100644 --- a/tests/golden/WBV2-P27-002/source-build-report.json +++ b/tests/golden/WBV2-P27-002/source-build-report.json @@ -21,15 +21,15 @@ "artifacts": { "sourceApi": { "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", - "sha256": "4252937bd48a404d04861f4acccc328d9ad4f1d4204392223beb0e5ea9deb8b9" + "sha256": "316b4f907da68c772a59f048fa3809ed83bf4b8a7a66c396d1a634af30f6bf35" }, "sourceMainState": { "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", - "sha256": "ceef9e28a22de9ab97bd2d563644fc53056fabc0dcf21d356be2ff900dab5ea3" + "sha256": "af4e775d597fd5e86bc1ee7deaa0df2c8442ebb789285fb5beda02d7f10f1e2a" }, "sourceMainHeader": { "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", - "sha256": "4acac1c74c24104b0b9c9ad576e972ec022553142199a07e0848933427ce5991" + "sha256": "77046e8a1ed12980cbc744aa294aa44b03bcd3f5dcf0d5ba74dae8d4d7800aec" }, "loader": { "path": "web/app/src/vendor/blender/web_engine.js", @@ -37,7 +37,7 @@ }, "wasm": { "path": "web/app/src/vendor/blender/web_engine.wasm", - "sha256": "b0d3697d5421286dbfdabd98b08f674aed8aacbe9a0f3e76939c7dcaad7d2112" + "sha256": "7d0c54788e431c19f6cdbddbeff87e9f7a90d09dcc58d19f7652cd8e66b4b5ff" }, "publicLoader": { "path": "web/app/public/vendor/blender/web_engine.js", @@ -45,19 +45,19 @@ }, "publicWasm": { "path": "web/app/public/vendor/blender/web_engine.wasm", - "sha256": "b0d3697d5421286dbfdabd98b08f674aed8aacbe9a0f3e76939c7dcaad7d2112" + "sha256": "7d0c54788e431c19f6cdbddbeff87e9f7a90d09dcc58d19f7652cd8e66b4b5ff" }, "webDistIndex": { "path": "web/dist/index.html", - "sha256": "e48452ccc2813d8b90a63695d191fb2fac86652678d7c5181d49c1539719f3fd" + "sha256": "1d41c1c9e5a54a818ad6b33d3f875764d8980463a8740fe2e1a9b38805a6c697" }, "webDistWorker": { - "path": "web/dist/assets/web-engine.worker-DD0mHZqt.js", - "sha256": "518cce534d23372e598a52353154c690fef268608746c49bbb4ed0202a4e9f11" + "path": "web/dist/assets/web-engine.worker-OM-WSHmO.js", + "sha256": "eb2ce34515e565f0823455571f550a2a5842b9eb3d563f0c47359d2013346039" }, "webDistWasm": { - "path": "web/dist/assets/web_engine-B7IJCbMq.wasm", - "sha256": "b0d3697d5421286dbfdabd98b08f674aed8aacbe9a0f3e76939c7dcaad7d2112" + "path": "web/dist/assets/web_engine-VXFtYQDf.wasm", + "sha256": "7d0c54788e431c19f6cdbddbeff87e9f7a90d09dcc58d19f7652cd8e66b4b5ff" } }, "verification": { diff --git a/tests/golden/WBV2-P43-001/capability-implementation-index.json b/tests/golden/WBV2-P43-001/capability-implementation-index.json index 36eb38439..46ea3be19 100644 --- a/tests/golden/WBV2-P43-001/capability-implementation-index.json +++ b/tests/golden/WBV2-P43-001/capability-implementation-index.json @@ -5,11 +5,11 @@ "blenderRoot": "blender-5.2.0", "mainAuthority": "blender_main", "sourceFiles": { - "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp": "85688e807b133f2e319c1db6270fcccf4627c15c33ed8687c1ba23e686a31c93", - "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp": "2a6c41b8a28e69d9d9e50d87cf9b3401fd1af5fc2baca1d09127fe9d2691ee00", - "web/protocol/web-engine.ts": "0be325a6ca4eb0512cd95346794f15ce5224dbf53c337ee41ff6ff8332d2510d", - "web/protocol/web-engine-capabilities.ts": "214db40b2d651cf932b4a1b801f29ee5fb9fca8d205fa04292be796a7916faea", - "web/app/src/workers/web-engine.worker.ts": "fd202088131257d50aecb6b936659e3a85eec417f7608661a1e804e9742b5ed1" + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp": "af4e775d597fd5e86bc1ee7deaa0df2c8442ebb789285fb5beda02d7f10f1e2a", + "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp": "316b4f907da68c772a59f048fa3809ed83bf4b8a7a66c396d1a634af30f6bf35", + "web/protocol/web-engine.ts": "c0fe1e839c44fd64a47dfc35950abb63a5265925b4721e0a8bdbc700d1a87e9e", + "web/protocol/web-engine-capabilities.ts": "626f9554979c938a20da41dd49c2570c5e200c8963deb2556f1afc5994e07073", + "web/app/src/workers/web-engine.worker.ts": "a0d912c9fce544f56f4bd78a604f3591943129cc7bb9a4b689c1eaedfa7b5e6f" } }, "inventory": { diff --git a/tests/golden/WBV2-P71-000/capability-continuation-plan.json b/tests/golden/WBV2-P71-000/capability-continuation-plan.json new file mode 100644 index 000000000..080208f3d --- /dev/null +++ b/tests/golden/WBV2-P71-000/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P71", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P71-000", + "phase": "P71", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P70-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P71-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P71-001", + "phase": "P71", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-002", + "phase": "P71", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P71-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-003", + "phase": "P71", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P71-000/capability-continuation-root-report.json b/tests/golden/WBV2-P71-000/capability-continuation-root-report.json new file mode 100644 index 000000000..4f0b552ef --- /dev/null +++ b/tests/golden/WBV2-P71-000/capability-continuation-root-report.json @@ -0,0 +1,30 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-000", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "parent": { + "task": "WBV2-P70-003", + "manifest": "tests/golden/WBV2-P70-003/manifest.json", + "manifestSha256": "e597a54c0c08fe5a0c8dade6213d7d33c4ff63140adbce0388069a97c9c6f184" + }, + "sourceAuthority": "blender-5.2.0", + "batching": { + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P71-001" +} diff --git a/tests/golden/WBV2-P71-000/manifest.json b/tests/golden/WBV2-P71-000/manifest.json new file mode 100644 index 000000000..924f19fd2 --- /dev/null +++ b/tests/golden/WBV2-P71-000/manifest.json @@ -0,0 +1,39 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-000", + "parentTask": "WBV2-P70-003", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P70-003/manifest.json", + "sha256": "e597a54c0c08fe5a0c8dade6213d7d33c4ff63140adbce0388069a97c9c6f184" + }, + "plan": { + "path": "tests/golden/WBV2-P71-000/capability-continuation-plan.json", + "sha256": "79ddc680fe471fe2d89332d7f70608ba6c40c6ef1585ce87e571bd93c8917bfd" + }, + "report": { + "path": "tests/golden/WBV2-P71-000/capability-continuation-root-report.json", + "sha256": "fb8947ed46a2640efb7f8677efa1dfe9fbbfb2cadacb33007c6869821e879c5c" + }, + "status": { + "path": "docs/status/WBV2-P71-000.md", + "sha256": "10ba884bdf60e23f6636fab473799b06484979eb531ff7c72e759a8b345e506c" + } + }, + "assertions": { + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P71-001" +} diff --git a/tests/golden/WBV2-P71-000/task-context.json b/tests/golden/WBV2-P71-000/task-context.json index 652c50348..b4bdfe860 100644 --- a/tests/golden/WBV2-P71-000/task-context.json +++ b/tests/golden/WBV2-P71-000/task-context.json @@ -60,7 +60,7 @@ "real Blender source or WebEngine Main path is wired", "verification and completion overlay remain deferred" ], - "nextTask": null, + "nextTask": "WBV2-P71-001", "sourceDocuments": { "queue": "docs/EXECUTION_QUEUE.md", "taskCard": "docs/tasks/WBV2-P71-000.md", @@ -156,7 +156,7 @@ "totalTokens": 1552, "reservedEnvelopeTokens": 1024, "estimatedContextTokens": 2576, - "serializedContextTokens": 619, + "serializedContextTokens": 622, "withinBudget": true } } diff --git a/tests/golden/WBV2-P71-001/capability-continuation-plan.json b/tests/golden/WBV2-P71-001/capability-continuation-plan.json new file mode 100644 index 000000000..4b815e823 --- /dev/null +++ b/tests/golden/WBV2-P71-001/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P71", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P71-000", + "phase": "P71", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P70-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P71-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P71-001", + "phase": "P71", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-002", + "phase": "P71", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P71-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-003", + "phase": "P71", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P71-001/implementation-report.json b/tests/golden/WBV2-P71-001/implementation-report.json new file mode 100644 index 000000000..d06de22ff --- /dev/null +++ b/tests/golden/WBV2-P71-001/implementation-report.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourcePaths": [ + "tools/web/build-wbv2-capability-implementation-index.mjs", + "tests/golden/WBV2-P27-001/verification-batch-plan.json" + ], + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/build-wbv2-capability-implementation-index.mjs", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P71-002" +} diff --git a/tests/golden/WBV2-P71-001/manifest.json b/tests/golden/WBV2-P71-001/manifest.json new file mode 100644 index 000000000..97a9d9cad --- /dev/null +++ b/tests/golden/WBV2-P71-001/manifest.json @@ -0,0 +1,53 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-001", + "parentTask": "WBV2-P71-000", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P71-000/manifest.json", + "sha256": "66bc19e64f408773c129da7002ed24b8280aae7f6cd88cffa536a3525cb3578b" + }, + "source1": { + "path": "tools/web/build-wbv2-capability-implementation-index.mjs", + "sha256": "5010e52764f49b52e69140c9b263debb5b53ecb9bec0e2f7ef76f5d6bc9c4704" + }, + "source2": { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "sha256": "56dddc2e4c380f364d1760dfd9bc7a6be04c1bd8979e0c2aeaa69ae80e80a14e" + }, + "report": { + "path": "tests/golden/WBV2-P71-001/implementation-report.json", + "sha256": "0cd73ec48902c26102df4df4d5ccc5f7321464b84e73b3ede87db5d6220a373b" + }, + "status": { + "path": "docs/status/WBV2-P71-001.md", + "sha256": "95e24140c74b8919cd03ce5333e3375b0d2ede428b5be504defe25ac798909c5" + }, + "plan": { + "path": "tests/golden/WBV2-P71-001/capability-continuation-plan.json", + "sha256": "9aba6373e7653b1b5107d2414ed87dc8dd3b79d92a173162e9ee84a82a67e3b2" + }, + "taskContext": { + "path": "tests/golden/WBV2-P71-001/task-context.json", + "sha256": "d12db259579feb38737ed2e4ca561bf957c6a54e656251f16198252b9a8e1dda" + } + }, + "assertions": { + "capabilityFamily": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P71-002" +} diff --git a/tests/golden/WBV2-P71-001/task-context.json b/tests/golden/WBV2-P71-001/task-context.json new file mode 100644 index 000000000..9cf1d5ed6 --- /dev/null +++ b/tests/golden/WBV2-P71-001/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-001", + "parentTask": "WBV2-P71-000", + "status": "in_progress", + "goal": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "scope": { + "gap": "workflow:index_capability_family_batches", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P71-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4232, + "contextRemainingTokens": 1057 + }, + "source": { + "bytes": 5672, + "tokens": 1419 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P71-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P71-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P71-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P71-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P71-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P71-000/manifest.json", + "parentStatus": "docs/status/WBV2-P71-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P71-001.md", + "tests/golden/WBV2-P71-000/manifest.json", + "docs/status/WBV2-P71-000.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P71-000", + "parentTask": "WBV2-P70-003", + "status": "done", + "nextTask": "WBV2-P71-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P71-000 status", + "- task: `WBV2-P71-000`; parent: `WBV2-P70-003`; status: `done`", + "- capability-family continuation authorized from Blender source", + "- 6900 inventory: 27 deduplicated batches, 6609 pending rows", + "- verification and completion overlay: `DEFERRED`", + "- nextTask: `WBV2-P71-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1299, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 325 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P71-001.md", + "bytes": 1299, + "lines": 39, + "tokens": 325 + }, + { + "path": "tests/golden/WBV2-P71-000/manifest.json", + "bytes": 1282, + "lines": 40, + "tokens": 321 + }, + { + "path": "docs/status/WBV2-P71-000.md", + "bytes": 288, + "lines": 8, + "tokens": 72 + } + ], + "sourceTokens": 1419, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1419, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2443, + "serializedContextTokens": 620, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P71-002/capability-continuation-plan.json b/tests/golden/WBV2-P71-002/capability-continuation-plan.json new file mode 100644 index 000000000..8cb99581a --- /dev/null +++ b/tests/golden/WBV2-P71-002/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P71", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P71-000", + "phase": "P71", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P70-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P71-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P71-001", + "phase": "P71", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-002", + "phase": "P71", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P71-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-003", + "phase": "P71", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P71-002/implementation-report.json b/tests/golden/WBV2-P71-002/implementation-report.json new file mode 100644 index 000000000..6e96f2fb5 --- /dev/null +++ b/tests/golden/WBV2-P71-002/implementation-report.json @@ -0,0 +1,34 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "RENDER.LINE_SETTINGS", + "sourcePaths": [ + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp" + ], + "command": "existing source-backed workbench wiring", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P71-003" +} diff --git a/tests/golden/WBV2-P71-002/manifest.json b/tests/golden/WBV2-P71-002/manifest.json new file mode 100644 index 000000000..fbde1feae --- /dev/null +++ b/tests/golden/WBV2-P71-002/manifest.json @@ -0,0 +1,61 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-002", + "parentTask": "WBV2-P71-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P71-001/manifest.json", + "sha256": "a342f94484ddbe7edf9f66befccc2fcaa4004fe0cb4b1803af9a5bfd13147ed1" + }, + "source1": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "sha256": "ceef9e28a22de9ab97bd2d563644fc53056fabc0dcf21d356be2ff900dab5ea3" + }, + "source2": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "sha256": "4acac1c74c24104b0b9c9ad576e972ec022553142199a07e0848933427ce5991" + }, + "source3": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "4252937bd48a404d04861f4acccc328d9ad4f1d4204392223beb0e5ea9deb8b9" + }, + "source4": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", + "sha256": "d716dd33edeb4a4bc6ca8ba7dc19f4e46a4027547dacbcee5fc645e98b4ce85d" + }, + "report": { + "path": "tests/golden/WBV2-P71-002/implementation-report.json", + "sha256": "94e64ca773d48bf7b15e712472eca2d374c1af2eb8e4cf8d6fb343daa09be828" + }, + "status": { + "path": "docs/status/WBV2-P71-002.md", + "sha256": "bc1b223c9469c57a3e17529c28f7c3e796c5862cb246e6235a7f8627a427229c" + }, + "plan": { + "path": "tests/golden/WBV2-P71-002/capability-continuation-plan.json", + "sha256": "f0f7c5b2a25104bfeeaf0e9dc1884df6ea61a88dd536a8523af77373f60bb84b" + }, + "taskContext": { + "path": "tests/golden/WBV2-P71-002/task-context.json", + "sha256": "c2d8516fd0d5a46b4979204cbf19f1762712f013d7860dd1572528e894c5094e" + } + }, + "assertions": { + "capabilityFamily": "RENDER.LINE_SETTINGS", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P71-003" +} diff --git a/tests/golden/WBV2-P71-002/task-context.json b/tests/golden/WBV2-P71-002/task-context.json new file mode 100644 index 000000000..7e371ee47 --- /dev/null +++ b/tests/golden/WBV2-P71-002/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-002", + "parentTask": "WBV2-P71-001", + "status": "planned", + "goal": "Implement the next uncovered Blender capability family from the source-backed index.", + "scope": { + "gap": "workflow:implement_capability_family_slice", + "ownerFamily": "IMPLEMENTATION", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P71-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3577, + "contextRemainingTokens": 893 + }, + "source": { + "bytes": 6327, + "tokens": 1583 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P71-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P71-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P71-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P71-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P71-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P71-001/manifest.json", + "parentStatus": "docs/status/WBV2-P71-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P71-002.md", + "tests/golden/WBV2-P71-001/manifest.json", + "docs/status/WBV2-P71-001.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P71-001", + "parentTask": "WBV2-P71-000", + "status": "done", + "nextTask": "WBV2-P71-002", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P71-001 status", + "- task: `WBV2-P71-001`; parent: `WBV2-P71-000`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P71-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1320, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 330 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P71-002.md", + "bytes": 1320, + "lines": 39, + "tokens": 330 + }, + { + "path": "tests/golden/WBV2-P71-001/manifest.json", + "bytes": 1887, + "lines": 54, + "tokens": 472 + }, + { + "path": "docs/status/WBV2-P71-001.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1583, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1583, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2607, + "serializedContextTokens": 625, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P71-003/capability-continuation-plan.json b/tests/golden/WBV2-P71-003/capability-continuation-plan.json new file mode 100644 index 000000000..35ad7eaa0 --- /dev/null +++ b/tests/golden/WBV2-P71-003/capability-continuation-plan.json @@ -0,0 +1,181 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P71", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P71-000", + "phase": "P71", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P70-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P71-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P71-001", + "phase": "P71", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-002", + "phase": "P71", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P71-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P71-003", + "phase": "P71", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P71-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p71-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P71-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-000", + "phase": "P72", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P71-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P72-000.md", + "behavior": "Authorize the next capability-family implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P71-003/implementation-report.json b/tests/golden/WBV2-P71-003/implementation-report.json new file mode 100644 index 000000000..77feb5b82 --- /dev/null +++ b/tests/golden/WBV2-P71-003/implementation-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-003", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", + "sourcePaths": [ + "web/protocol/web-engine-capabilities.ts", + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "command": "npm --prefix web run build", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P72-000" +} diff --git a/tests/golden/WBV2-P71-003/manifest.json b/tests/golden/WBV2-P71-003/manifest.json new file mode 100644 index 000000000..537b87282 --- /dev/null +++ b/tests/golden/WBV2-P71-003/manifest.json @@ -0,0 +1,57 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-003", + "parentTask": "WBV2-P71-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P71-002/manifest.json", + "sha256": "90d1d33fa8cd4bd761c8c1e66aa5409680a6e4f73e1f312d26bf180603a76b5f" + }, + "source1": { + "path": "web/protocol/web-engine-capabilities.ts", + "sha256": "a4ecaad81e91ffa9b605e032dc236ae491c0de38ac724b732c556c90a0b66199" + }, + "source2": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "0b3d9b73628817707f1f3d159ad2a6d40dc20452b69963f51f9aaf6a7203ab23" + }, + "source3": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "b0d3697d5421286dbfdabd98b08f674aed8aacbe9a0f3e76939c7dcaad7d2112" + }, + "report": { + "path": "tests/golden/WBV2-P71-003/implementation-report.json", + "sha256": "f91ee2307868e22402d494893490fc8fc8433eac74e2de53a8dbc6708939d2c0" + }, + "status": { + "path": "docs/status/WBV2-P71-003.md", + "sha256": "54fab14910552d6485b81559719d4ae04fef0a02b6097ef1628093c4fdf07371" + }, + "plan": { + "path": "tests/golden/WBV2-P71-003/capability-continuation-plan.json", + "sha256": "4fc5544ec354b48f36b006c5b7bf770b13355fe2f96c5330420227ed08e46683" + }, + "taskContext": { + "path": "tests/golden/WBV2-P71-003/task-context.json", + "sha256": "79a40871ea85a83d3c60a57123976595cf3bd3246751c9b8aca99b99bf30844a" + } + }, + "assertions": { + "capabilityFamily": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P72-000" +} diff --git a/tests/golden/WBV2-P71-003/task-context.json b/tests/golden/WBV2-P71-003/task-context.json new file mode 100644 index 000000000..bf8c2c6cc --- /dev/null +++ b/tests/golden/WBV2-P71-003/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P71-003", + "parentTask": "WBV2-P71-002", + "status": "planned", + "goal": "Run source and frontend smoke without Chromium parity verification.", + "scope": { + "gap": "workflow:run_capability_family_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P71-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3232, + "contextRemainingTokens": 807 + }, + "source": { + "bytes": 6672, + "tokens": 1669 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P71-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P71-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P71-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P72-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P71-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P71-002/manifest.json", + "parentStatus": "docs/status/WBV2-P71-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P71-003.md", + "tests/golden/WBV2-P71-002/manifest.json", + "docs/status/WBV2-P71-002.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P71-002", + "parentTask": "WBV2-P71-001", + "status": "done", + "nextTask": "WBV2-P71-003", + "artifactCount": 9 + }, + "statusSummary": [ + "# WBV2-P71-002 status", + "- task: `WBV2-P71-002`; parent: `WBV2-P71-001`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P71-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1284, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 321 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P71-003.md", + "bytes": 1284, + "lines": 39, + "tokens": 321 + }, + { + "path": "tests/golden/WBV2-P71-002/manifest.json", + "bytes": 2268, + "lines": 62, + "tokens": 567 + }, + { + "path": "docs/status/WBV2-P71-002.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1669, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1669, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2693, + "serializedContextTokens": 617, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P72-000/capability-continuation-plan.json b/tests/golden/WBV2-P72-000/capability-continuation-plan.json new file mode 100644 index 000000000..83e2787cd --- /dev/null +++ b/tests/golden/WBV2-P72-000/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P72", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P72-000", + "phase": "P72", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P71-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P72-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P72-001", + "phase": "P72", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-002", + "phase": "P72", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P72-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-003", + "phase": "P72", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P72-000/capability-continuation-root-report.json b/tests/golden/WBV2-P72-000/capability-continuation-root-report.json new file mode 100644 index 000000000..aea9534a4 --- /dev/null +++ b/tests/golden/WBV2-P72-000/capability-continuation-root-report.json @@ -0,0 +1,30 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-000", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "parent": { + "task": "WBV2-P71-003", + "manifest": "tests/golden/WBV2-P71-003/manifest.json", + "manifestSha256": "1371f0013808de50eda4d8dccc9c6e527fbf99f1ef0a84308bbd9b4628d06f0b" + }, + "sourceAuthority": "blender-5.2.0", + "batching": { + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P72-001" +} diff --git a/tests/golden/WBV2-P72-000/manifest.json b/tests/golden/WBV2-P72-000/manifest.json new file mode 100644 index 000000000..8b5b5ed4f --- /dev/null +++ b/tests/golden/WBV2-P72-000/manifest.json @@ -0,0 +1,39 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-000", + "parentTask": "WBV2-P71-003", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P71-003/manifest.json", + "sha256": "1371f0013808de50eda4d8dccc9c6e527fbf99f1ef0a84308bbd9b4628d06f0b" + }, + "plan": { + "path": "tests/golden/WBV2-P72-000/capability-continuation-plan.json", + "sha256": "c288dee2c70446255af538133c7caee13ea89fac99ece466bcb23b690b475faa" + }, + "report": { + "path": "tests/golden/WBV2-P72-000/capability-continuation-root-report.json", + "sha256": "b62c3a61eede973fb2f6edad8cd1d24ba33d806661655f8edd8fad486593e052" + }, + "status": { + "path": "docs/status/WBV2-P72-000.md", + "sha256": "371c9741f73f63ad3fba404f33deace4597a67f8c001a61db16683b90b578cb3" + } + }, + "assertions": { + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P72-001" +} diff --git a/tests/golden/WBV2-P72-000/task-context.json b/tests/golden/WBV2-P72-000/task-context.json new file mode 100644 index 000000000..e7582289b --- /dev/null +++ b/tests/golden/WBV2-P72-000/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-000", + "parentTask": "WBV2-P71-003", + "status": "in_progress", + "goal": "Authorize the next capability-family implementation wave from Blender source.", + "scope": { + "gap": "workflow:authorize_capability_family_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P72-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3703, + "contextRemainingTokens": 924 + }, + "source": { + "bytes": 6201, + "tokens": 1552 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P72-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P72-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P72-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P72-001", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P72-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P71-003/manifest.json", + "parentStatus": "docs/status/WBV2-P71-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P72-000.md", + "tests/golden/WBV2-P71-003/manifest.json", + "docs/status/WBV2-P71-003.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P71-003", + "parentTask": "WBV2-P71-002", + "status": "done", + "nextTask": "WBV2-P72-000", + "artifactCount": 8 + }, + "statusSummary": [ + "# WBV2-P71-003 status", + "- task: `WBV2-P71-003`; parent: `WBV2-P71-002`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P72-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1052, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 36, + "taskTokens": 263 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P72-000.md", + "bytes": 1052, + "lines": 36, + "tokens": 263 + }, + { + "path": "tests/golden/WBV2-P71-003/manifest.json", + "bytes": 2029, + "lines": 58, + "tokens": 508 + }, + { + "path": "docs/status/WBV2-P71-003.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1552, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1552, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2576, + "serializedContextTokens": 622, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P72-001/capability-continuation-plan.json b/tests/golden/WBV2-P72-001/capability-continuation-plan.json new file mode 100644 index 000000000..9cf400def --- /dev/null +++ b/tests/golden/WBV2-P72-001/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P72", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P72-000", + "phase": "P72", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P71-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P72-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P72-001", + "phase": "P72", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-002", + "phase": "P72", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P72-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-003", + "phase": "P72", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P72-001/implementation-report.json b/tests/golden/WBV2-P72-001/implementation-report.json new file mode 100644 index 000000000..14022a28e --- /dev/null +++ b/tests/golden/WBV2-P72-001/implementation-report.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourcePaths": [ + "tools/web/build-wbv2-capability-implementation-index.mjs", + "tests/golden/WBV2-P27-001/verification-batch-plan.json" + ], + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/build-wbv2-capability-implementation-index.mjs", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P72-002" +} diff --git a/tests/golden/WBV2-P72-001/manifest.json b/tests/golden/WBV2-P72-001/manifest.json new file mode 100644 index 000000000..3a50f9f16 --- /dev/null +++ b/tests/golden/WBV2-P72-001/manifest.json @@ -0,0 +1,53 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-001", + "parentTask": "WBV2-P72-000", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P72-000/manifest.json", + "sha256": "9dcb014f0e371bc7e408c60d81790a6a3bc728df3498261763215f727f821ca1" + }, + "source1": { + "path": "tools/web/build-wbv2-capability-implementation-index.mjs", + "sha256": "5010e52764f49b52e69140c9b263debb5b53ecb9bec0e2f7ef76f5d6bc9c4704" + }, + "source2": { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "sha256": "56dddc2e4c380f364d1760dfd9bc7a6be04c1bd8979e0c2aeaa69ae80e80a14e" + }, + "report": { + "path": "tests/golden/WBV2-P72-001/implementation-report.json", + "sha256": "8061c35c9fd4f22891f822a1360d77d671f8b6525f9d4ef0f845bd0260caa6e6" + }, + "status": { + "path": "docs/status/WBV2-P72-001.md", + "sha256": "520d08a55593b9a2daabf0435d0b82c06dbd659979f293ff6e617c7e3c6f8dca" + }, + "plan": { + "path": "tests/golden/WBV2-P72-001/capability-continuation-plan.json", + "sha256": "4f30e1bf91bda202a081e9cf435c041204fd0dc2e3190b3081a8f08356a951fd" + }, + "taskContext": { + "path": "tests/golden/WBV2-P72-001/task-context.json", + "sha256": "f921b85cd6f5b41bbc0ad6394076c2054193ed6e9effe2ebe690e6aa142538f7" + } + }, + "assertions": { + "capabilityFamily": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P72-002" +} diff --git a/tests/golden/WBV2-P72-001/task-context.json b/tests/golden/WBV2-P72-001/task-context.json new file mode 100644 index 000000000..019698a78 --- /dev/null +++ b/tests/golden/WBV2-P72-001/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-001", + "parentTask": "WBV2-P72-000", + "status": "in_progress", + "goal": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "scope": { + "gap": "workflow:index_capability_family_batches", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P72-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4232, + "contextRemainingTokens": 1057 + }, + "source": { + "bytes": 5672, + "tokens": 1419 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P72-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P72-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P72-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P72-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P72-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P72-000/manifest.json", + "parentStatus": "docs/status/WBV2-P72-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P72-001.md", + "tests/golden/WBV2-P72-000/manifest.json", + "docs/status/WBV2-P72-000.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P72-000", + "parentTask": "WBV2-P71-003", + "status": "done", + "nextTask": "WBV2-P72-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P72-000 status", + "- task: `WBV2-P72-000`; parent: `WBV2-P71-003`; status: `done`", + "- capability-family continuation authorized from Blender source", + "- 6900 inventory: 27 deduplicated batches, 6609 pending rows", + "- verification and completion overlay: `DEFERRED`", + "- nextTask: `WBV2-P72-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1299, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 325 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P72-001.md", + "bytes": 1299, + "lines": 39, + "tokens": 325 + }, + { + "path": "tests/golden/WBV2-P72-000/manifest.json", + "bytes": 1282, + "lines": 40, + "tokens": 321 + }, + { + "path": "docs/status/WBV2-P72-000.md", + "bytes": 288, + "lines": 8, + "tokens": 72 + } + ], + "sourceTokens": 1419, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1419, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2443, + "serializedContextTokens": 620, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P72-002/capability-continuation-plan.json b/tests/golden/WBV2-P72-002/capability-continuation-plan.json new file mode 100644 index 000000000..5cb80998f --- /dev/null +++ b/tests/golden/WBV2-P72-002/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P72", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P72-000", + "phase": "P72", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P71-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P72-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P72-001", + "phase": "P72", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-002", + "phase": "P72", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P72-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-003", + "phase": "P72", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P72-002/implementation-report.json b/tests/golden/WBV2-P72-002/implementation-report.json new file mode 100644 index 000000000..fc4ece953 --- /dev/null +++ b/tests/golden/WBV2-P72-002/implementation-report.json @@ -0,0 +1,34 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "RENDER.VIEW_LAYER_PASSES", + "sourcePaths": [ + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp" + ], + "command": "existing source-backed workbench wiring", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P72-003" +} diff --git a/tests/golden/WBV2-P72-002/manifest.json b/tests/golden/WBV2-P72-002/manifest.json new file mode 100644 index 000000000..4c17e4850 --- /dev/null +++ b/tests/golden/WBV2-P72-002/manifest.json @@ -0,0 +1,61 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-002", + "parentTask": "WBV2-P72-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P72-001/manifest.json", + "sha256": "caee5efaeb7ce03dc0243d155d830d02d593c22c8ce22a312813bdf38e7e94e2" + }, + "source1": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "sha256": "af4e775d597fd5e86bc1ee7deaa0df2c8442ebb789285fb5beda02d7f10f1e2a" + }, + "source2": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "sha256": "77046e8a1ed12980cbc744aa294aa44b03bcd3f5dcf0d5ba74dae8d4d7800aec" + }, + "source3": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "316b4f907da68c772a59f048fa3809ed83bf4b8a7a66c396d1a634af30f6bf35" + }, + "source4": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", + "sha256": "004d5a6d5474de8b67a336110479b81903a03e7614e5fd35432b08bd7dc5ee1c" + }, + "report": { + "path": "tests/golden/WBV2-P72-002/implementation-report.json", + "sha256": "09cded9c5035d885cd98c8d67db83627ad913a9d939a13ff0c22375f06c9e3d9" + }, + "status": { + "path": "docs/status/WBV2-P72-002.md", + "sha256": "a4f39de19fdde1bb225ba262fe46f6f15d56cdedd1ca9e9be9b82c367e425636" + }, + "plan": { + "path": "tests/golden/WBV2-P72-002/capability-continuation-plan.json", + "sha256": "a5281bf6c33464f9084feb88bf87f8a41dc88b1b5624afbb8a5e0a2fcb45d2eb" + }, + "taskContext": { + "path": "tests/golden/WBV2-P72-002/task-context.json", + "sha256": "99d3c1eaf0281546f83bc61f604db8780e1bcd0bc36070f74fe860e2cff14fbb" + } + }, + "assertions": { + "capabilityFamily": "RENDER.VIEW_LAYER_PASSES", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P72-003" +} diff --git a/tests/golden/WBV2-P72-002/task-context.json b/tests/golden/WBV2-P72-002/task-context.json new file mode 100644 index 000000000..4678f8c62 --- /dev/null +++ b/tests/golden/WBV2-P72-002/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-002", + "parentTask": "WBV2-P72-001", + "status": "planned", + "goal": "Implement the next uncovered Blender capability family from the source-backed index.", + "scope": { + "gap": "workflow:implement_capability_family_slice", + "ownerFamily": "IMPLEMENTATION", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P72-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3577, + "contextRemainingTokens": 893 + }, + "source": { + "bytes": 6327, + "tokens": 1583 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P72-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P72-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P72-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P72-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P72-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P72-001/manifest.json", + "parentStatus": "docs/status/WBV2-P72-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P72-002.md", + "tests/golden/WBV2-P72-001/manifest.json", + "docs/status/WBV2-P72-001.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P72-001", + "parentTask": "WBV2-P72-000", + "status": "done", + "nextTask": "WBV2-P72-002", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P72-001 status", + "- task: `WBV2-P72-001`; parent: `WBV2-P72-000`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P72-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1320, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 330 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P72-002.md", + "bytes": 1320, + "lines": 39, + "tokens": 330 + }, + { + "path": "tests/golden/WBV2-P72-001/manifest.json", + "bytes": 1887, + "lines": 54, + "tokens": 472 + }, + { + "path": "docs/status/WBV2-P72-001.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1583, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1583, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2607, + "serializedContextTokens": 625, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P72-003/capability-continuation-plan.json b/tests/golden/WBV2-P72-003/capability-continuation-plan.json new file mode 100644 index 000000000..e2ea3aced --- /dev/null +++ b/tests/golden/WBV2-P72-003/capability-continuation-plan.json @@ -0,0 +1,181 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P72", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P72-000", + "phase": "P72", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P71-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P72-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P72-001", + "phase": "P72", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-002", + "phase": "P72", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P72-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P72-003", + "phase": "P72", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P72-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p72-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P72-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P73-000", + "phase": "P73", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P72-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p73-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P73-000.md", + "behavior": "Authorize the next capability-family implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P72-003/implementation-report.json b/tests/golden/WBV2-P72-003/implementation-report.json new file mode 100644 index 000000000..c1f00e41b --- /dev/null +++ b/tests/golden/WBV2-P72-003/implementation-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-003", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", + "sourcePaths": [ + "web/protocol/web-engine-capabilities.ts", + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "command": "npm --prefix web run build", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P73-000" +} diff --git a/tests/golden/WBV2-P72-003/manifest.json b/tests/golden/WBV2-P72-003/manifest.json new file mode 100644 index 000000000..aa62e8643 --- /dev/null +++ b/tests/golden/WBV2-P72-003/manifest.json @@ -0,0 +1,57 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-003", + "parentTask": "WBV2-P72-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P72-002/manifest.json", + "sha256": "86628e6b0731ffeee0e2ee5bcaf58f9953cdbc931a42a8ab64463a90399486a2" + }, + "source1": { + "path": "web/protocol/web-engine-capabilities.ts", + "sha256": "626f9554979c938a20da41dd49c2570c5e200c8963deb2556f1afc5994e07073" + }, + "source2": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "a0d912c9fce544f56f4bd78a604f3591943129cc7bb9a4b689c1eaedfa7b5e6f" + }, + "source3": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "7d0c54788e431c19f6cdbddbeff87e9f7a90d09dcc58d19f7652cd8e66b4b5ff" + }, + "report": { + "path": "tests/golden/WBV2-P72-003/implementation-report.json", + "sha256": "633f8854bc4e53a3fc8aa6e82b38133092875b5e38fd60e846e784347c070ce9" + }, + "status": { + "path": "docs/status/WBV2-P72-003.md", + "sha256": "e8b89e54ea1a33c83d5f0cc9a4085a92a712c1e4eef41dc3b400ee9928cdc16d" + }, + "plan": { + "path": "tests/golden/WBV2-P72-003/capability-continuation-plan.json", + "sha256": "3ae7fb220b6ad3173f58024766ccc11f762dfd6393a905aacaeb0fc655b4c776" + }, + "taskContext": { + "path": "tests/golden/WBV2-P72-003/task-context.json", + "sha256": "924daa030407f3e086b7076c56ea5733b28905c03a3eaeec7531876ecd145d99" + } + }, + "assertions": { + "capabilityFamily": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P73-000" +} diff --git a/tests/golden/WBV2-P72-003/task-context.json b/tests/golden/WBV2-P72-003/task-context.json new file mode 100644 index 000000000..b9f4101c1 --- /dev/null +++ b/tests/golden/WBV2-P72-003/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P72-003", + "parentTask": "WBV2-P72-002", + "status": "planned", + "goal": "Run source and frontend smoke without Chromium parity verification.", + "scope": { + "gap": "workflow:run_capability_family_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P72-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3228, + "contextRemainingTokens": 806 + }, + "source": { + "bytes": 6676, + "tokens": 1670 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P72-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P72-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P72-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P73-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P72-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P72-002/manifest.json", + "parentStatus": "docs/status/WBV2-P72-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P72-003.md", + "tests/golden/WBV2-P72-002/manifest.json", + "docs/status/WBV2-P72-002.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P72-002", + "parentTask": "WBV2-P72-001", + "status": "done", + "nextTask": "WBV2-P72-003", + "artifactCount": 9 + }, + "statusSummary": [ + "# WBV2-P72-002 status", + "- task: `WBV2-P72-002`; parent: `WBV2-P72-001`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P72-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1284, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 321 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P72-003.md", + "bytes": 1284, + "lines": 39, + "tokens": 321 + }, + { + "path": "tests/golden/WBV2-P72-002/manifest.json", + "bytes": 2272, + "lines": 62, + "tokens": 568 + }, + { + "path": "docs/status/WBV2-P72-002.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1670, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1670, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2694, + "serializedContextTokens": 617, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P73-000/task-context.json b/tests/golden/WBV2-P73-000/task-context.json new file mode 100644 index 000000000..6649aa7c0 --- /dev/null +++ b/tests/golden/WBV2-P73-000/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P73-000", + "parentTask": "WBV2-P72-003", + "status": "in_progress", + "goal": "Authorize the next capability-family implementation wave from Blender source.", + "scope": { + "gap": "workflow:authorize_capability_family_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P73-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3703, + "contextRemainingTokens": 924 + }, + "source": { + "bytes": 6201, + "tokens": 1552 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P73-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P73-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P73-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": null, + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P73-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P72-003/manifest.json", + "parentStatus": "docs/status/WBV2-P72-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P73-000.md", + "tests/golden/WBV2-P72-003/manifest.json", + "docs/status/WBV2-P72-003.md" + ], + "machineOnly": [ + "tests/golden/WBV2/task-index.json", + "tests/golden/M15-03A/task-catalog.jsonl" + ], + "optionalByNeed": [ + "docs/WEB_BLENDER_MODELER_V1_SCOPE.md", + "任务卡列出的精确协议/生产路径", + "任务卡明确命名的长期计划小节" + ], + "forbiddenByDefault": [ + "完整 CURRENT_EXECUTION_PLAN.md", + "完整 PROJECT_STATUS_AND_NEXT_WORK.md", + "全部 docs/status/*.md", + "完整 parity/WBS 计划", + "README 历史和 test-results/" + ] + }, + "parent": { + "manifest": { + "schemaVersion": 1, + "task": "WBV2-P72-003", + "parentTask": "WBV2-P72-002", + "status": "done", + "nextTask": "WBV2-P73-000", + "artifactCount": 8 + }, + "statusSummary": [ + "# WBV2-P72-003 status", + "- task: `WBV2-P72-003`; parent: `WBV2-P72-002`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P73-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1052, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 36, + "taskTokens": 263 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P73-000.md", + "bytes": 1052, + "lines": 36, + "tokens": 263 + }, + { + "path": "tests/golden/WBV2-P72-003/manifest.json", + "bytes": 2029, + "lines": 58, + "tokens": 508 + }, + { + "path": "docs/status/WBV2-P72-003.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1552, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1552, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2576, + "serializedContextTokens": 619, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index 1bc4f5a8e..5d66e5b3d 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,5 +1,5 @@ -{"id":"WBV2-P70-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P70","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P70-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P70","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P70-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P70","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P70-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P70","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P71-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P71","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P72-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P72","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P72-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P72","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P72-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P72","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P72-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P72","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P73-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P73","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} diff --git a/tests/golden/WBV2/task-index.json b/tests/golden/WBV2/task-index.json index 7bdabde22..3ebbb75de 100644 --- a/tests/golden/WBV2/task-index.json +++ b/tests/golden/WBV2/task-index.json @@ -1 +1 @@ -{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P70-003/capability-continuation-plan.json","sha256":"273da94f4ea27e34ed2ccb5d1fca6abce5025ad331652ce90df470fef846b0fb"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"aba6add8377892d04740d8f2cead52c45ca1bdf5996a2373a006bc1e8aed01d4"},"taskCount":5,"activeTask":"WBV2-P71-000","entries":{"WBV2-P70-000":{"line":0,"offset":0,"length":402,"previous":"WBV2-P69-003","next":"WBV2-P70-001"},"WBV2-P70-001":{"line":1,"offset":402,"length":401,"previous":"WBV2-P70-000","next":"WBV2-P70-002"},"WBV2-P70-002":{"line":2,"offset":803,"length":410,"previous":"WBV2-P70-001","next":"WBV2-P70-003"},"WBV2-P70-003":{"line":3,"offset":1213,"length":397,"previous":"WBV2-P70-002","next":"WBV2-P71-000"},"WBV2-P71-000":{"line":4,"offset":1610,"length":399,"previous":"WBV2-P70-003","next":null}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P72-003/capability-continuation-plan.json","sha256":"3ae7fb220b6ad3173f58024766ccc11f762dfd6393a905aacaeb0fc655b4c776"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"0312d6c4b765db3aad1bd06953e834a518e1692a8f27c7f22dae14a69abce2b8"},"taskCount":5,"activeTask":"WBV2-P73-000","entries":{"WBV2-P72-000":{"line":0,"offset":0,"length":402,"previous":"WBV2-P71-003","next":"WBV2-P72-001"},"WBV2-P72-001":{"line":1,"offset":402,"length":401,"previous":"WBV2-P72-000","next":"WBV2-P72-002"},"WBV2-P72-002":{"line":2,"offset":803,"length":410,"previous":"WBV2-P72-001","next":"WBV2-P72-003"},"WBV2-P72-003":{"line":3,"offset":1213,"length":397,"previous":"WBV2-P72-002","next":"WBV2-P73-000"},"WBV2-P73-000":{"line":4,"offset":1610,"length":399,"previous":"WBV2-P72-003","next":null}}} diff --git a/tools/web/generate-wbv2-capability-continuation-slice.mjs b/tools/web/generate-wbv2-capability-continuation-slice.mjs index f5fcf76c7..7816adc27 100644 --- a/tools/web/generate-wbv2-capability-continuation-slice.mjs +++ b/tools/web/generate-wbv2-capability-continuation-slice.mjs @@ -26,13 +26,13 @@ assert.equal(parent.status, "done"); assert.equal(parent.nextTask, task); const commands = { 1: [process.execPath, "tools/web/build-wbv2-capability-implementation-index.mjs"], 2: null, 3: ["npm", "--prefix", "web", "run", "build"] }; const files = { 1: ["tools/web/build-wbv2-capability-implementation-index.mjs", "tests/golden/WBV2-P27-001/verification-batch-plan.json"], 2: phase >= 59 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 57 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 56 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 55 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 54 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 53 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 52 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 51 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 50 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 49 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 47 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "web/protocol/web-engine.ts"] : ["web/app/src/app/App.tsx", "web/protocol/web-engine-capabilities.ts"], 3: ["web/protocol/web-engine-capabilities.ts", "web/app/src/workers/web-engine.worker.ts", "web/app/src/vendor/blender/web_engine.wasm"] }; -const markers = { 1: "BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX", 2: phase >= 70 ? "web_engine_blend_main_set_scene_line_settings" : phase >= 69 ? "web_engine_blend_main_set_scene_stamp_settings" : phase >= 68 ? "web_engine_blend_main_set_scene_multiview_settings" : phase >= 67 ? "web_engine_blend_main_set_scene_sampling_settings" : phase >= 66 ? "web_engine_blend_main_set_scene_performance_settings" : phase >= 65 ? "web_engine_blend_main_set_scene_compositor_settings" : phase >= 64 ? "web_engine_blend_main_set_scene_hair_settings" : phase >= 63 ? "web_engine_blend_main_set_scene_motion_blur" : phase >= 62 ? "web_engine_blend_main_set_scene_image_format" : phase >= 61 ? "web_engine_blend_main_set_scene_color_management" : phase >= 60 ? "web_engine_blend_main_set_scene_simplify_settings" : phase >= 59 ? "web_engine_blend_main_set_scene_border_settings" : phase >= 58 ? "web_engine_blend_main_set_scene_collection_settings" : phase >= 57 ? "web_engine_blend_main_set_scene_view_layer_settings" : phase >= 56 ? "web_engine_blend_main_set_scene_bindings" : phase >= 55 ? "web_engine_blend_main_set_scene_pipeline_settings" : phase >= 54 ? "web_engine_blend_main_set_scene_timeline_settings" : phase >= 53 ? "web_engine_blend_main_set_scene_unit_settings" : phase >= 52 ? "web_engine_blend_main_set_scene_audio_settings" : phase >= 51 ? "web_engine_blend_main_set_scene_render_settings" : phase >= 50 ? "web_engine_blend_main_set_scene_properties" : phase >= 49 ? "web_engine_blend_main_set_physics_simulation" : phase >= 47 ? "web_engine_blend_main_set_geometry_node_graph" : "capability-family-workbench", 3: "WEB_ENGINE_COMMAND_CAPABILITIES" }; +const markers = { 1: "BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX", 2: phase >= 71 ? "web_engine_blend_main_set_scene_view_layer_pass_settings" : phase >= 70 ? "web_engine_blend_main_set_scene_line_settings" : phase >= 69 ? "web_engine_blend_main_set_scene_stamp_settings" : phase >= 68 ? "web_engine_blend_main_set_scene_multiview_settings" : phase >= 67 ? "web_engine_blend_main_set_scene_sampling_settings" : phase >= 66 ? "web_engine_blend_main_set_scene_performance_settings" : phase >= 65 ? "web_engine_blend_main_set_scene_compositor_settings" : phase >= 64 ? "web_engine_blend_main_set_scene_hair_settings" : phase >= 63 ? "web_engine_blend_main_set_scene_motion_blur" : phase >= 62 ? "web_engine_blend_main_set_scene_image_format" : phase >= 61 ? "web_engine_blend_main_set_scene_color_management" : phase >= 60 ? "web_engine_blend_main_set_scene_simplify_settings" : phase >= 59 ? "web_engine_blend_main_set_scene_border_settings" : phase >= 58 ? "web_engine_blend_main_set_scene_collection_settings" : phase >= 57 ? "web_engine_blend_main_set_scene_view_layer_settings" : phase >= 56 ? "web_engine_blend_main_set_scene_bindings" : phase >= 55 ? "web_engine_blend_main_set_scene_pipeline_settings" : phase >= 54 ? "web_engine_blend_main_set_scene_timeline_settings" : phase >= 53 ? "web_engine_blend_main_set_scene_unit_settings" : phase >= 52 ? "web_engine_blend_main_set_scene_audio_settings" : phase >= 51 ? "web_engine_blend_main_set_scene_render_settings" : phase >= 50 ? "web_engine_blend_main_set_scene_properties" : phase >= 49 ? "web_engine_blend_main_set_physics_simulation" : phase >= 47 ? "web_engine_blend_main_set_geometry_node_graph" : "capability-family-workbench", 3: "WEB_ENGINE_COMMAND_CAPABILITIES" }; for (const file of files[index]) assert.ok(fs.existsSync(abs(file)), file); assert.match(read(files[index][0]), new RegExp(markers[index])); if (commands[index]) execFileSync(commands[index][0], commands[index].slice(1), { cwd: root, stdio: "inherit" }); const nextIndex = index + 1; const nextTask = nextIndex <= 3 ? `WBV2-P${phase}-${String(nextIndex).padStart(3, "0")}` : `WBV2-P${phase + 1}-000`; -const family = index === 1 ? "INVENTORY.CAPABILITY_BATCH_INDEX" : index === 2 && phase >= 70 ? "RENDER.LINE_SETTINGS" : index === 2 && phase >= 69 ? "RENDER.STAMP_SETTINGS" : index === 2 && phase >= 68 ? "RENDER.MULTIVIEW_SETTINGS" : index === 2 && phase >= 67 ? "RENDER.SAMPLING_SETTINGS" : index === 2 && phase >= 66 ? "PERFORMANCE.RENDER_SETTINGS" : index === 2 && phase >= 65 ? "COMPOSITOR.EXECUTION_SETTINGS" : index === 2 && phase >= 64 ? "CORE_SCENE_GRAPH.HAIR_SETTINGS" : index === 2 && phase >= 63 ? "CORE_SCENE_GRAPH.MOTION_BLUR" : index === 2 && phase >= 62 ? "CORE_SCENE_GRAPH.IMAGE_FORMAT" : index === 2 && phase >= 61 ? "CORE_SCENE_GRAPH.COLOR_MANAGEMENT" : index === 2 && phase >= 60 ? "CORE_SCENE_GRAPH.SIMPLIFY_SETTINGS" : index === 2 && phase >= 59 ? "CORE_SCENE_GRAPH.BORDER_SETTINGS" : index === 2 && phase >= 58 ? "CORE_SCENE_GRAPH.COLLECTION_SETTINGS" : index === 2 && phase >= 57 ? "CORE_SCENE_GRAPH.VIEW_LAYER_SETTINGS" : index === 2 && phase >= 56 ? "CORE_SCENE_GRAPH.BINDINGS" : index === 2 && phase >= 55 ? "CORE_SCENE_GRAPH.PIPELINE_SETTINGS" : index === 2 && phase >= 54 ? "CORE_SCENE_GRAPH.TIMELINE_SETTINGS" : index === 2 && phase >= 53 ? "CORE_SCENE_GRAPH.UNIT_SETTINGS" : index === 2 && phase >= 52 ? "CORE_SCENE_GRAPH.AUDIO_SETTINGS" : index === 2 && phase >= 51 ? "CORE_SCENE_GRAPH.RENDER_SETTINGS" : index === 2 && phase >= 50 ? "CORE_SCENE_GRAPH.SCENE_PROPERTIES" : index === 2 && phase >= 49 ? "SIMULATION.NATIVE_MANIFEST_BINDING" : index === 2 && phase >= 47 ? "GEOMETRY_NODES.NATIVE_MATERIALIZATION" : index === 2 ? "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH" : "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE"; +const family = index === 1 ? "INVENTORY.CAPABILITY_BATCH_INDEX" : index === 2 && phase >= 71 ? "RENDER.VIEW_LAYER_PASSES" : index === 2 && phase >= 70 ? "RENDER.LINE_SETTINGS" : index === 2 && phase >= 69 ? "RENDER.STAMP_SETTINGS" : index === 2 && phase >= 68 ? "RENDER.MULTIVIEW_SETTINGS" : index === 2 && phase >= 67 ? "RENDER.SAMPLING_SETTINGS" : index === 2 && phase >= 66 ? "PERFORMANCE.RENDER_SETTINGS" : index === 2 && phase >= 65 ? "COMPOSITOR.EXECUTION_SETTINGS" : index === 2 && phase >= 64 ? "CORE_SCENE_GRAPH.HAIR_SETTINGS" : index === 2 && phase >= 63 ? "CORE_SCENE_GRAPH.MOTION_BLUR" : index === 2 && phase >= 62 ? "CORE_SCENE_GRAPH.IMAGE_FORMAT" : index === 2 && phase >= 61 ? "CORE_SCENE_GRAPH.COLOR_MANAGEMENT" : index === 2 && phase >= 60 ? "CORE_SCENE_GRAPH.SIMPLIFY_SETTINGS" : index === 2 && phase >= 59 ? "CORE_SCENE_GRAPH.BORDER_SETTINGS" : index === 2 && phase >= 58 ? "CORE_SCENE_GRAPH.COLLECTION_SETTINGS" : index === 2 && phase >= 57 ? "CORE_SCENE_GRAPH.VIEW_LAYER_SETTINGS" : index === 2 && phase >= 56 ? "CORE_SCENE_GRAPH.BINDINGS" : index === 2 && phase >= 55 ? "CORE_SCENE_GRAPH.PIPELINE_SETTINGS" : index === 2 && phase >= 54 ? "CORE_SCENE_GRAPH.TIMELINE_SETTINGS" : index === 2 && phase >= 53 ? "CORE_SCENE_GRAPH.UNIT_SETTINGS" : index === 2 && phase >= 52 ? "CORE_SCENE_GRAPH.AUDIO_SETTINGS" : index === 2 && phase >= 51 ? "CORE_SCENE_GRAPH.RENDER_SETTINGS" : index === 2 && phase >= 50 ? "CORE_SCENE_GRAPH.SCENE_PROPERTIES" : index === 2 && phase >= 49 ? "SIMULATION.NATIVE_MANIFEST_BINDING" : index === 2 && phase >= 47 ? "GEOMETRY_NODES.NATIVE_MATERIALIZATION" : index === 2 ? "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH" : "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE"; const out = `tests/golden/${task}`; const reportPath = `${out}/implementation-report.json`; const statusPath = `docs/status/${task}.md`; diff --git a/web/app/public/vendor/blender/web_engine.wasm b/web/app/public/vendor/blender/web_engine.wasm index 6c8b9eb9c..19d39d536 100644 Binary files a/web/app/public/vendor/blender/web_engine.wasm and b/web/app/public/vendor/blender/web_engine.wasm differ diff --git a/web/app/src/vendor/blender/web_engine.wasm b/web/app/src/vendor/blender/web_engine.wasm index 6c8b9eb9c..19d39d536 100644 Binary files a/web/app/src/vendor/blender/web_engine.wasm and b/web/app/src/vendor/blender/web_engine.wasm differ diff --git a/web/app/src/workers/web-engine.worker.ts b/web/app/src/workers/web-engine.worker.ts index bd1fd0f2f..e176c5bf3 100644 --- a/web/app/src/workers/web-engine.worker.ts +++ b/web/app/src/workers/web-engine.worker.ts @@ -805,6 +805,16 @@ function assertFutureCapability(payload: Extract candidate.id === payload.dataId); + if (!scene || typeof payload.layerName !== "string" || payload.layerName.length === 0) throw report("RENDER_PROPERTY_INVALID", "Scene view layer pass target is invalid"); + const properties = payload.properties; + if (!validPropertyKeys(properties, ["passMask", "cryptomatteMask", "cryptomatteLevels", "alphaThreshold"])) throw report("RENDER_PROPERTY_INVALID", "Scene view layer pass properties are invalid"); + for (const field of ["passMask", "cryptomatteMask"] as const) if (properties[field] !== undefined && (!Number.isSafeInteger(properties[field]) || properties[field] < 0 || properties[field] > 0xffffffff)) throw report("RENDER_PROPERTY_INVALID", `Scene ${field} is outside the bounded mask range`); + if (properties.cryptomatteLevels !== undefined && (!Number.isSafeInteger(properties.cryptomatteLevels) || properties.cryptomatteLevels < 1 || properties.cryptomatteLevels > 16)) throw report("RENDER_PROPERTY_INVALID", "Scene cryptomatteLevels is outside the bounded range"); + if (properties.alphaThreshold !== undefined && !boundedNumber(properties.alphaThreshold, 0, 1)) throw report("RENDER_PROPERTY_INVALID", "Scene alphaThreshold must be between zero and one"); + return; + } case "setGeometryNodeGraph": { const snapshot = currentSnapshot; const availableResourceIds = new Set([ diff --git a/web/protocol/animation-render-commands.ts b/web/protocol/animation-render-commands.ts index 4a548d9e3..d4b63bc12 100644 --- a/web/protocol/animation-render-commands.ts +++ b/web/protocol/animation-render-commands.ts @@ -92,4 +92,7 @@ export const animationRenderCommands = Object.freeze({ setSceneLineSettings(dataId: string, properties: AnimationCommand<"setSceneLineSettings">["properties"]): AnimationCommand<"setSceneLineSettings"> { return { type: "setSceneLineSettings", dataId, properties: { ...properties } }; }, + setSceneViewLayerPassSettings(dataId: string, layerName: string, properties: AnimationCommand<"setSceneViewLayerPassSettings">["properties"]): AnimationCommand<"setSceneViewLayerPassSettings"> { + return { type: "setSceneViewLayerPassSettings", dataId, layerName, properties: { ...properties } }; + }, } satisfies Record WebEngineEditCommand>); diff --git a/web/protocol/scene-ir.ts b/web/protocol/scene-ir.ts index b9d111fe7..b9272e721 100644 --- a/web/protocol/scene-ir.ts +++ b/web/protocol/scene-ir.ts @@ -571,7 +571,7 @@ export interface SceneIR { saveOutput: boolean; alphaPremultiplied: boolean; }; - viewLayers?: Array<{ name: string; useRender: boolean; useFreestyle: boolean; samples: number }>; + viewLayers?: Array<{ name: string; useRender: boolean; useFreestyle: boolean; samples: number; passMask?: number; cryptomatteMask?: number; cryptomatteLevels?: number; alphaThreshold?: number }>; borderSettings?: { enabled: boolean; minX: number; maxX: number; minY: number; maxY: number }; simplifySettings?: { subsurfViewport: number; subsurfRender: number; particlesViewport: number; particlesRender: number; volumes: number }; imageFormatSettings?: { fileType: string; colorMode: number; depth: number; quality: number; compression: number; exrCodec: number }; @@ -1607,6 +1607,7 @@ export function parseSceneSnapshotIR(value: unknown): SceneSnapshotIR { requireBoolean(layer.useRender, `scenes[${index}].viewLayers[${layerIndex}].useRender`); requireBoolean(layer.useFreestyle, `scenes[${index}].viewLayers[${layerIndex}].useFreestyle`); requireNumber(layer.samples, `scenes[${index}].viewLayers[${layerIndex}].samples`); + for (const field of ["passMask", "cryptomatteMask", "cryptomatteLevels", "alphaThreshold"] as const) if (layer[field] !== undefined) requireNumber(layer[field], `scenes[${index}].viewLayers[${layerIndex}].${field}`); } } if (scene.borderSettings !== undefined) { diff --git a/web/protocol/web-engine-capabilities.ts b/web/protocol/web-engine-capabilities.ts index 2c270ab8f..3a1ce1e56 100644 --- a/web/protocol/web-engine-capabilities.ts +++ b/web/protocol/web-engine-capabilities.ts @@ -100,6 +100,7 @@ export const WEB_ENGINE_COMMAND_CAPABILITIES = { setSceneMultiviewSettings: { family: "RENDER", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setSceneStampSettings: { family: "RENDER", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setSceneLineSettings: { family: "RENDER", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, + setSceneViewLayerPassSettings: { family: "RENDER", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setMetaballElements: { family: "GEOMETRY", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, sculptStroke: { family: "SCULPT", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setSculptMeshAttributes: { family: "SCULPT", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, diff --git a/web/protocol/web-engine.ts b/web/protocol/web-engine.ts index 3a10a1303..1c7d639f2 100644 --- a/web/protocol/web-engine.ts +++ b/web/protocol/web-engine.ts @@ -164,6 +164,7 @@ export type WebEngineEditCommand = | { type: "setSceneMultiviewSettings"; dataId: string; properties: { enabled?: boolean; viewsFormat?: 0 | 1; imageViewsFormat?: 0 | 1 | 2; stereoDisplayMode?: 0 | 1 | 2 | 3 | 4; interlaceSwap?: boolean; sideBySideCrossed?: boolean; squeezedFrame?: boolean } } | { type: "setSceneStampSettings"; dataId: string; properties: { stampMask?: number; fontId?: number; userText?: string; foreground?: [number, number, number, number]; background?: [number, number, number, number] } } | { type: "setSceneLineSettings"; dataId: string; properties: { mode?: 1 | 2; thickness?: number } } + | { type: "setSceneViewLayerPassSettings"; dataId: string; layerName: string; properties: { passMask?: number; cryptomatteMask?: number; cryptomatteLevels?: number; alphaThreshold?: number } } | { type: "setMetaballElements"; dataId: string; elements: Array<{ type: number; position: [number, number, number]; radius: number; scale: [number, number, number] }> } | { type: "sculptStroke"; stroke: SculptStrokeIR } | { type: "setSculptMeshAttributes"; attributes: SculptMeshAttributesIR } diff --git a/web/protocol/workbench-command-groups.ts b/web/protocol/workbench-command-groups.ts index 73d8fe299..a93fbd240 100644 --- a/web/protocol/workbench-command-groups.ts +++ b/web/protocol/workbench-command-groups.ts @@ -4,7 +4,7 @@ export const WORKBENCH_COMMAND_GROUPS = Object.freeze({ OBJECT: ["createPrimitive", "duplicateObject", "deleteObject", "setObjectTransform", "setParent", "createCollection", "moveObjectToCollection", "renameId", "applyObjectTransform", "setObjectOrigin"], MESH: ["meshEdit", "translateMeshVertices", "createUVMap", "setActiveUVMap", "unwrapUV", "setVertexColors", "setVertexWeights"], ANIMATION: ["setFrame", "insertObjectKeyframe", "deleteObjectKeyframe", "setFCurveInterpolation", "setConstraint", "setNLAStack"], - RENDER: ["setCameraProperties", "setLightProperties", "setWorldProperties", "setSceneProperties", "setSceneRenderSettings", "setSceneAudioSettings", "setSceneUnitSettings", "setSceneTimelineSettings", "setScenePipelineSettings", "setSceneBindings", "setSceneViewLayerSettings", "setSceneCollectionSettings", "setSceneBorderSettings", "setSceneSimplifySettings", "setSceneColorManagement", "setSceneImageFormat", "setSceneMotionBlur", "setSceneHairSettings", "setSceneCompositorSettings", "setScenePerformanceSettings", "setSceneSamplingSettings", "setSceneMultiviewSettings", "setSceneStampSettings", "setSceneLineSettings"], + RENDER: ["setCameraProperties", "setLightProperties", "setWorldProperties", "setSceneProperties", "setSceneRenderSettings", "setSceneAudioSettings", "setSceneUnitSettings", "setSceneTimelineSettings", "setScenePipelineSettings", "setSceneBindings", "setSceneViewLayerSettings", "setSceneCollectionSettings", "setSceneBorderSettings", "setSceneSimplifySettings", "setSceneColorManagement", "setSceneImageFormat", "setSceneMotionBlur", "setSceneHairSettings", "setSceneCompositorSettings", "setScenePerformanceSettings", "setSceneSamplingSettings", "setSceneMultiviewSettings", "setSceneStampSettings", "setSceneLineSettings", "setSceneViewLayerPassSettings"], IO: ["importImage", "importVFont", "setMaterialImageNode"], } as const satisfies Record);