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 0ed8b17af..451580873 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 @@ -1585,7 +1585,7 @@ EMSCRIPTEN_KEEPALIVE int web_engine_apply_command(const int handle, type == "moveObjectToCollection" || type == "renameId" || type == "joinObjects" || type == "separateMeshFaces" || type == "applyObjectTransform" || type == "setObjectOrigin" || type == "setCurveControlPoints" || type == "setCurveHandle" || type == "setCurveTopology" || type == "setCurveSplines" || type == "setSurfaceTopology" || type == "setFontBody" || - type == "setFontProperties" || type == "setFontAdvanced" || type == "importVFont" || type == "setFontLinks" || type == "setTextSource" || type == "setSoundProperties" || type == "setSpeakerProperties" || type == "setParticleSettings" || type == "setVolumeProperties" || type == "deleteNonMeshData" || + type == "setFontProperties" || type == "setFontAdvanced" || type == "importVFont" || type == "setFontLinks" || type == "setTextSource" || type == "setSoundProperties" || type == "setSpeakerProperties" || type == "setParticleSettings" || type == "setTextureProperties" || type == "setVolumeProperties" || type == "deleteNonMeshData" || type == "setMetaballElements" || type == "createGreasePencilLayer" || type == "removeGreasePencilLayer" || type == "moveGreasePencilLayer" || type == "moveGreasePencilFrame" || @@ -2044,6 +2044,17 @@ EMSCRIPTEN_KEEPALIVE int web_engine_apply_command(const int handle, applied = web_engine_blend_main_set_particle_settings( engine->authoritative_main, command.value("dataId", "").c_str(), edit, main_error); } + else if (type == "setTextureProperties") { + const json properties = command.value("properties", json::object()); + WebTexturePropertiesEdit edit; + edit.noise_scale = properties.value("noiseScale", -1.0f); + edit.noise_depth = properties.value("noiseDepth", -1); + edit.intensity = properties.value("intensity", -1.0f); + edit.contrast = properties.value("contrast", -1.0f); + edit.saturation = properties.value("saturation", -1.0f); + applied = web_engine_blend_main_set_texture_properties( + engine->authoritative_main, command.value("dataId", "").c_str(), edit, main_error); + } else if (type == "setVolumeProperties") { WebVolumePropertiesEdit properties; properties.source_path = command.value("sourcePath", ""); 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 b2afe9377..d1b7ca959 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 @@ -78,6 +78,7 @@ #include "DNA_sound_types.h" #include "DNA_speaker_types.h" #include "DNA_text_types.h" +#include "DNA_texture_types.h" #include "DNA_world_types.h" #include "DNA_userdef_enums.h" #include "DNA_vfont_types.h" @@ -324,6 +325,14 @@ ParticleSettings *find_particle_settings(Main *main, const char *data_id) return nullptr; } +Tex *find_texture(Main *main, const char *data_id) +{ + if (main == nullptr || data_id == nullptr || strncmp(data_id, "texture:", 8) != 0) return nullptr; + const std::string name(data_id + 8); + for (Tex &texture : main->textures) if (id_name(texture.id) == name) return &texture; + return nullptr; +} + Light *find_light(Main *main, const char *data_id) { if (main == nullptr || data_id == nullptr || strncmp(data_id, "light:", 6) != 0) return nullptr; @@ -4138,6 +4147,32 @@ bool web_engine_blend_main_set_particle_settings(WebBlendMainState *state, return true; } +bool web_engine_blend_main_set_texture_properties(WebBlendMainState *state, + const char *data_id, + const WebTexturePropertiesEdit &properties, + std::string &error) +{ + Tex *texture = find_texture(state != nullptr ? state->main : nullptr, data_id); + if (texture == nullptr || texture->id.lib != nullptr) { + error = "NON_MESH_DATA_UNSUPPORTED: Texture data-block was not found or is linked read-only"; + return false; + } + if ((properties.noise_scale >= 0.0f && (!std::isfinite(properties.noise_scale) || properties.noise_scale > 1000000.0f)) || + (properties.noise_depth >= 0 && properties.noise_depth > 30) || + (properties.intensity >= 0.0f && (!std::isfinite(properties.intensity) || properties.intensity > 1000000.0f)) || + (properties.contrast >= 0.0f && (!std::isfinite(properties.contrast) || properties.contrast > 1000000.0f)) || + (properties.saturation >= 0.0f && (!std::isfinite(properties.saturation) || properties.saturation > 1000000.0f))) { + error = "NON_MESH_PROPERTY_INVALID: Texture properties are outside the bounded range"; + return false; + } + if (properties.noise_scale >= 0.0f) texture->noisesize = properties.noise_scale; + if (properties.noise_depth >= 0) texture->noisedepth = short(properties.noise_depth); + if (properties.intensity >= 0.0f) texture->bright = properties.intensity; + if (properties.contrast >= 0.0f) texture->contrast = properties.contrast; + if (properties.saturation >= 0.0f) texture->saturation = properties.saturation; + return true; +} + bool web_engine_blend_main_set_volume_properties(WebBlendMainState *state, const char *data_id, const WebVolumePropertiesEdit &properties, 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 515f17609..fb55ab7fb 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 @@ -112,6 +112,14 @@ struct WebParticleSettingsEdit { float draw_size = -1.0f; }; +struct WebTexturePropertiesEdit { + float noise_scale = -1.0f; + int noise_depth = -1; + float intensity = -1.0f; + float contrast = -1.0f; + float saturation = -1.0f; +}; + struct WebGreasePencilPointEdit { std::array position = {0.0f, 0.0f, 0.0f}; float radius = 0.01f; @@ -418,6 +426,10 @@ bool web_engine_blend_main_set_particle_settings(WebBlendMainState *state, const char *data_id, const WebParticleSettingsEdit &properties, std::string &error); +bool web_engine_blend_main_set_texture_properties(WebBlendMainState *state, + const char *data_id, + const WebTexturePropertiesEdit &properties, + std::string &error); bool web_engine_blend_main_set_volume_properties(WebBlendMainState *state, const char *data_id, const WebVolumePropertiesEdit &properties, diff --git a/docs/status/WBV2-P34-000.md b/docs/status/WBV2-P34-000.md new file mode 100644 index 000000000..073612e33 --- /dev/null +++ b/docs/status/WBV2-P34-000.md @@ -0,0 +1,7 @@ +# WBV2-P34-000 status + +- task: `WBV2-P34-000`; parent: `WBV2-P33-003`; status: `done` +- texture and library implementation wave authorized +- verification receipts and completion overlays: `DEFERRED` +- inventory unchanged: `6900` total, `281` legacy completed, `6618` legacy pending, `290/6609` effective carried forward +- nextTask: `WBV2-P34-001` diff --git a/docs/status/WBV2-P34-001.md b/docs/status/WBV2-P34-001.md new file mode 100644 index 000000000..97bb91136 --- /dev/null +++ b/docs/status/WBV2-P34-001.md @@ -0,0 +1,7 @@ +# WBV2-P34-001 status + +- task: `WBV2-P34-001`; parent: `WBV2-P34-000`; status: `done` +- source-backed texture/library family: `TEXTURE.PROPERTIES`; marker: `web_engine_blend_main_set_texture_properties` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P34-002` diff --git a/docs/status/WBV2-P34-002.md b/docs/status/WBV2-P34-002.md new file mode 100644 index 000000000..575f03abe --- /dev/null +++ b/docs/status/WBV2-P34-002.md @@ -0,0 +1,7 @@ +# WBV2-P34-002 status + +- task: `WBV2-P34-002`; parent: `WBV2-P34-001`; status: `done` +- source-backed texture/library family: `LIBRARY.MAIN_APPEND_WORKBENCH`; marker: `appendLibraryObject` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P34-003` diff --git a/docs/status/WBV2-P34-003.md b/docs/status/WBV2-P34-003.md new file mode 100644 index 000000000..8008eb6dc --- /dev/null +++ b/docs/status/WBV2-P34-003.md @@ -0,0 +1,7 @@ +# WBV2-P34-003 status + +- task: `WBV2-P34-003`; parent: `WBV2-P34-002`; status: `done` +- source-backed texture/library family: `P34.IMPLEMENTATION_SMOKE`; marker: `applyCommand` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P35-000` diff --git a/docs/tasks/WBV2-P34-000.md b/docs/tasks/WBV2-P34-000.md index 5a48fd670..a1f1bf716 100644 --- a/docs/tasks/WBV2-P34-000.md +++ b/docs/tasks/WBV2-P34-000.md @@ -1,36 +1,37 @@ -# WBV2-P34-000: authorize_next_implementation_wave +# WBV2-P34-000: authorize_texture_library_workbench - task: WBV2-P34-000 - parent: WBV2-P33-003 -- status: in_progress -- gap: workflow:authorize_next_implementation_wave +- status: done +- gap: workflow:authorize_texture_library_workbench - ownerFamily: PROGRAM - targetImplementationClass: SOURCE_BACKED ## 目标 -Authorize the next source-backed implementation wave. +Authorize legacy texture and library implementation. ## 输入与范围 - Focused protocol: `web/protocol/web-engine.ts` -- Implementation entrypoint: `node tools/web/generate-wbv2-audio-particle-root.mjs` +- Implementation entrypoint: `node tools/web/generate-wbv2-texture-root.mjs` ## 验收 -- implementation-first execution remains active -- original inventory and provenance remain unchanged -- Chromium parity receipts and completion overlays remain deferred +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred - `node tools/web/check-task-context.mjs --task WBV2-P34-000 --write` ## 失败边界 -- malformed, unsupported and hash-drift inputs fail closed -- implementation evidence never changes historical provenance +- malformed and unsupported data remains blocked with a typed diagnostic +- implementation evidence never changes historical inventory or provenance ## 交付与回滚 - Reports: `tests/golden/WBV2-P34-000/` - Status: `docs/status/WBV2-P34-000.md` - Manifest: `tests/golden/WBV2-P34-000/manifest.json` -- Rollback: restore WBV2-P33-003 as queue parent and leave the wave in_progress. +- Rollback: restore WBV2-P33-003 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P34-001.md b/docs/tasks/WBV2-P34-001.md new file mode 100644 index 000000000..5683678a2 --- /dev/null +++ b/docs/tasks/WBV2-P34-001.md @@ -0,0 +1,37 @@ +# WBV2-P34-001: implement_texture_properties_authoring + +- task: WBV2-P34-001 +- parent: WBV2-P34-000 +- status: in_progress +- gap: workflow:implement_texture_properties_authoring +- ownerFamily: TEXTURE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Connect bounded legacy Texture property commands to Blender Main. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-texture-slice.mjs --task WBV2-P34-001 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P34-001 --write` + +## 失败边界 + +- malformed and unsupported data remains blocked with a typed diagnostic +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P34-001/` +- Status: `docs/status/WBV2-P34-001.md` +- Manifest: `tests/golden/WBV2-P34-001/manifest.json` +- Rollback: restore WBV2-P34-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P34-002.md b/docs/tasks/WBV2-P34-002.md new file mode 100644 index 000000000..76b11933c --- /dev/null +++ b/docs/tasks/WBV2-P34-002.md @@ -0,0 +1,37 @@ +# WBV2-P34-002: implement_library_append_workbench + +- task: WBV2-P34-002 +- parent: WBV2-P34-001 +- status: planned +- gap: workflow:implement_library_append_workbench +- ownerFamily: LIBRARY +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Expose the existing hash-bound Library Main append workflow through the workbench. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-texture-slice.mjs --task WBV2-P34-002 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P34-002 --write` + +## 失败边界 + +- malformed and unsupported data remains blocked with a typed diagnostic +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P34-002/` +- Status: `docs/status/WBV2-P34-002.md` +- Manifest: `tests/golden/WBV2-P34-002/manifest.json` +- Rollback: restore WBV2-P34-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P34-003.md b/docs/tasks/WBV2-P34-003.md new file mode 100644 index 000000000..397a46254 --- /dev/null +++ b/docs/tasks/WBV2-P34-003.md @@ -0,0 +1,37 @@ +# WBV2-P34-003: run_p34_implementation_smoke + +- task: WBV2-P34-003 +- parent: WBV2-P34-002 +- status: planned +- gap: workflow:run_p34_implementation_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run the bounded production build and source WASM smoke after P34. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-texture-slice.mjs --task WBV2-P34-003 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P34-003 --write` + +## 失败边界 + +- malformed and unsupported data remains blocked with a typed diagnostic +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P34-003/` +- Status: `docs/status/WBV2-P34-003.md` +- Manifest: `tests/golden/WBV2-P34-003/manifest.json` +- Rollback: restore WBV2-P34-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P35-000.md b/docs/tasks/WBV2-P35-000.md new file mode 100644 index 000000000..a7786d63b --- /dev/null +++ b/docs/tasks/WBV2-P35-000.md @@ -0,0 +1,36 @@ +# WBV2-P35-000: authorize_next_implementation_wave + +- task: WBV2-P35-000 +- parent: WBV2-P34-003 +- status: in_progress +- gap: workflow:authorize_next_implementation_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Authorize the next source-backed implementation wave. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-texture-root.mjs` + +## 验收 + +- implementation-first execution remains active +- original inventory and provenance remain unchanged +- Chromium parity receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P35-000 --write` + +## 失败边界 + +- malformed, unsupported and hash-drift inputs fail closed +- implementation evidence never changes historical provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P35-000/` +- Status: `docs/status/WBV2-P35-000.md` +- Manifest: `tests/golden/WBV2-P35-000/manifest.json` +- Rollback: restore WBV2-P34-003 as queue parent and leave the wave in_progress. diff --git a/nextTask.md b/nextTask.md index 4358db0d9..83ecc09a0 100644 --- a/nextTask.md +++ b/nextTask.md @@ -33,6 +33,7 @@ and (when authorized) repository push: 9. 所有实现门禁通过后自动提交并推送 `origin/main`,从新 parent manifest 重新读取 `nextTask` 继续。凭据不得写入文件、URL、日志或提示词。 10. 任一命令失败、输入缺失、队列不一致、环境不可用或状态不明时,保持 `in_progress`/`blocked`,不得推进指针、伪造完成或重复未知结果的状态改变命令。 11. 每轮结束报告实现切片、当前任务、`nextTask`、最小检查退出码、原始 inventory、effective inventory 是否保持不变、提交/推送状态和剩余真实阻塞。 +12. CONTINUOUS_LOOP_REQUIRED:成功交接后立即开始下一轮;不得在成功提交、推送或生成新 manifest 后等待用户确认、只写计划或只汇报状态。每轮必须重新运行 `print-task-context` 和 `check-task-context`,使用新 parent manifest 的 `nextTask`,不沿用上一轮上下文。 ``` ## Resume Command @@ -65,6 +66,31 @@ has exactly one numbered task and must not carry the previous task's full transcript, logs, or source context. A continuous run may contain many such iterations, but it must stop at the first failed gate or explicit stop request. +## Continuous Loop Contract + +The following loop is part of the execution command. It is not an optional +checklist and it does not require another user message: + +```text +while queue has an active task: + read docs/EXECUTION_QUEUE.md + print and validate a fresh compact task context + assert queue.currentTask == parentManifest.nextTask + execute exactly that task's focused implementation command + write report/status/manifest/task-context through repository generators + run the required governance, typecheck, lint, build and diff gates + if any gate fails: preserve in_progress/blocked and stop + commit and push origin/main + re-read the new queue and parent manifest + immediately begin the next iteration +``` + +The loop must not interpret a successful implementation task as release +parity, must not fabricate a successor when `nextTask` is null, and must not +perform a second attempt after an unknown state-changing command. A root task +is itself an executable enabling task: run its declared root generator, then +continue from the generated child task in the same continuous run. + ## Activation Contract The phrase activates implementation only when the queue is internally @@ -200,16 +226,16 @@ artifact SHA-256,只从第一个缺失的交接步骤继续。不要重复任 ## Current Handoff Snapshot -Recorded: 2026-08-22 America/New_York +Recorded: 2026-08-29 Asia/Shanghai | Field | Value | | --- | --- | -| Current task when this file was written | `WBV2-P34-000` | +| Current task when this file was written | `WBV2-P35-000` | | Current task state | `in_progress` | -| Parent manifest | `tests/golden/WBV2-P33-003/manifest.json` | -| Current task card | `docs/tasks/WBV2-P34-000.md` | +| Parent manifest | `tests/golden/WBV2-P34-003/manifest.json` | +| Current task card | `docs/tasks/WBV2-P35-000.md` | | Current task-context nextTask | `NONE` | -| Focused command | `node tools/web/generate-wbv2-audio-particle-slice.mjs --task WBV2-P34-000 --write` | +| Focused command | `node tools/web/generate-wbv2-texture-root.mjs` | The snapshot is informational and may become stale. On every resume, the queue, parent manifest, and fresh `print-task-context` output win. Never infer a task diff --git a/tests/golden/WBV2-P27-002/source-build-report.json b/tests/golden/WBV2-P27-002/source-build-report.json index 819d1539b..5f78c6b9d 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": "1e63bb78a5b216220c610059c3a7c1c5ee20227a777e67c90e32d7a78bf190b3" + "sha256": "731278400ae7366eda259ab16d3a191676c6e19029dc2086cb677773fa0bf22a" }, "sourceMainState": { "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", - "sha256": "236c2eb8d40a790b0008d5d4c193bb3a504ceca1efee347c94b2af28b5b5e820" + "sha256": "275a2ad41fc6e567eef0c59e342c62a6c5a2105c893ad5aec9e21751be6e743c" }, "sourceMainHeader": { "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", - "sha256": "d2d93fb5de091fe0a41438ba423dc6424d20141a0de25ab1d5b1ec68bf9ffd0d" + "sha256": "84a4972f8c78ac73dc0866a51162a57d9f59c0025db9e40d9070c4bc5cc03ea8" }, "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": "ff36d8183cfd9112e67e104f5bf1ec6577ef605bdfcf5239a1cea8504caf7058" + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" }, "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": "ff36d8183cfd9112e67e104f5bf1ec6577ef605bdfcf5239a1cea8504caf7058" + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" }, "webDistIndex": { "path": "web/dist/index.html", - "sha256": "922dc39d65fa87a4a03f5ebeaf46e38c72a2833f3bc45adcb923d9bc52cf148e" + "sha256": "4cf82f7f682693b1ba39ef19afdd38b7616a2c436719ea7c8600d4b7ee6de972" }, "webDistWorker": { - "path": "web/dist/assets/web-engine.worker-DFgABFdV.js", - "sha256": "7b3487a8ee98663a8392ab2567ab01639f967f3956bf002657473d4c4e046ac4" + "path": "web/dist/assets/web-engine.worker-Qn8-9dwA.js", + "sha256": "ffa85c0d926953a98573bae6a8e3c8cc0d8e4956aaf317e0c93b1060440da35b" }, "webDistWasm": { - "path": "web/dist/assets/web_engine-CoBQBGl-.wasm", - "sha256": "ff36d8183cfd9112e67e104f5bf1ec6577ef605bdfcf5239a1cea8504caf7058" + "path": "web/dist/assets/web_engine-DWcTm88M.wasm", + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" } }, "verification": { diff --git a/tests/golden/WBV2-P34-000/manifest.json b/tests/golden/WBV2-P34-000/manifest.json new file mode 100644 index 000000000..aba00b2e2 --- /dev/null +++ b/tests/golden/WBV2-P34-000/manifest.json @@ -0,0 +1,38 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-000", + "parentTask": "WBV2-P33-003", + "operation": "AUTHORIZE_TEXTURE_LIBRARY_WORKBENCH", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_TEXTURE_LIBRARY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P33-003/manifest.json", + "sha256": "aaa6d1d34ef0f38014ed202243c706aa75b412963658bbe24e87a5455ac3bc8c" + }, + "plan": { + "path": "tests/golden/WBV2-P34-000/texture-library-task-plan.json", + "sha256": "cdf10113780f5116f15deb9d8e97d5a64bfcb7e5d6142fed01703c8991c0c484" + }, + "report": { + "path": "tests/golden/WBV2-P34-000/texture-library-root-report.json", + "sha256": "1fcbdee957fc555ea144896763b911ae026cff20e596b67a3c8fed2e3d3eaf2d" + }, + "status": { + "path": "docs/status/WBV2-P34-000.md", + "sha256": "8c44ed0fcb4775119a5bd20483c04501b441c4040749a25503439f7304a3027e" + } + }, + "assertions": { + "plannedTasks": 4, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P34-001" +} diff --git a/tests/golden/WBV2-P34-000/task-context.json b/tests/golden/WBV2-P34-000/task-context.json index b02c117c7..711a4f0d5 100644 --- a/tests/golden/WBV2-P34-000/task-context.json +++ b/tests/golden/WBV2-P34-000/task-context.json @@ -2,10 +2,10 @@ "schemaVersion": 1, "task": "WBV2-P34-000", "parentTask": "WBV2-P33-003", - "status": "in_progress", - "goal": "Authorize the next source-backed implementation wave.", + "status": "done", + "goal": "Authorize legacy texture and library implementation.", "scope": { - "gap": "workflow:authorize_next_implementation_wave", + "gap": "workflow:authorize_texture_library_workbench", "ownerFamily": "PROGRAM", "implementationClass": "SOURCE_BACKED" }, @@ -18,12 +18,12 @@ "limits": { "maxFiles": 12, "evidenceBytes": 8192, - "contextRemainingBytes": 3865, - "contextRemainingTokens": 965 + "contextRemainingBytes": 3692, + "contextRemainingTokens": 921 }, "source": { - "bytes": 6039, - "tokens": 1511 + "bytes": 6212, + "tokens": 1555 }, "selected": [], "excluded": [ @@ -60,7 +60,7 @@ "implementation smoke is reproducible", "verification remains deferred" ], - "nextTask": null, + "nextTask": "WBV2-P34-001", "sourceDocuments": { "queue": "docs/EXECUTION_QUEUE.md", "taskCard": "docs/tasks/WBV2-P34-000.md", @@ -112,15 +112,15 @@ }, "budgets": { "queueBytes": 4096, - "taskBytes": 1080, + "taskBytes": 1253, "parentManifestBytes": 24576, "parentStatusBytes": 6144, "evidenceFiles": 12, "evidenceBytes": 8192, "contextTokens": 3500, "contextEnvelopeTokens": 1024, - "taskLines": 37, - "taskTokens": 270 + "taskLines": 38, + "taskTokens": 314 }, "size": { "documents": [ @@ -132,9 +132,9 @@ }, { "path": "docs/tasks/WBV2-P34-000.md", - "bytes": 1080, - "lines": 37, - "tokens": 270 + "bytes": 1253, + "lines": 38, + "tokens": 314 }, { "path": "tests/golden/WBV2-P33-003/manifest.json", @@ -149,14 +149,14 @@ "tokens": 79 } ], - "sourceTokens": 1511, + "sourceTokens": 1555, "evidenceFiles": 0, "evidenceBytes": 0, "evidenceTokens": 0, - "totalTokens": 1511, + "totalTokens": 1555, "reservedEnvelopeTokens": 1024, - "estimatedContextTokens": 2535, - "serializedContextTokens": 600, + "estimatedContextTokens": 2579, + "serializedContextTokens": 601, "withinBudget": true } } diff --git a/tests/golden/WBV2-P34-000/texture-library-root-report.json b/tests/golden/WBV2-P34-000/texture-library-root-report.json new file mode 100644 index 000000000..9f9ec8783 --- /dev/null +++ b/tests/golden/WBV2-P34-000/texture-library-root-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-000", + "operation": "AUTHORIZE_TEXTURE_LIBRARY_WORKBENCH", + "status": "PASS", + "parent": { + "task": "WBV2-P33-003", + "manifest": "tests/golden/WBV2-P33-003/manifest.json", + "manifestSha256": "b359410b42b2c16c374a661dee78fd8ffe3b2284d658ed8f4ab6a4a186e903e8" + }, + "scope": { + "firstTask": "WBV2-P34-001", + "plannedTasks": [ + "WBV2-P34-000", + "WBV2-P34-001", + "WBV2-P34-002", + "WBV2-P34-003" + ] + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P34-001" +} diff --git a/tests/golden/WBV2-P34-000/texture-library-task-plan.json b/tests/golden/WBV2-P34-000/texture-library-task-plan.json new file mode 100644 index 000000000..2533974b8 --- /dev/null +++ b/tests/golden/WBV2-P34-000/texture-library-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_TEXTURE_LIBRARY_IMPLEMENTATION_P34", + "status": "ACTIVE_TEXTURE_LIBRARY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P34-000", + "phase": "P34", + "title": "authorize_texture_library_workbench", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P33-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P34-000.md", + "behavior": "Authorize legacy texture and library implementation.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P34-001", + "phase": "P34", + "title": "implement_texture_properties_authoring", + "kind": "feature", + "owner": "TEXTURE", + "dependsOn": [ + "WBV2-P34-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-001.md", + "behavior": "Connect bounded legacy Texture property commands to Blender Main.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-002", + "phase": "P34", + "title": "implement_library_append_workbench", + "kind": "feature", + "owner": "LIBRARY", + "dependsOn": [ + "WBV2-P34-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-002.md", + "behavior": "Expose the existing hash-bound Library Main append workflow through the workbench.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-003", + "phase": "P34", + "title": "run_p34_implementation_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P34-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-003.md", + "behavior": "Run the bounded production build and source WASM smoke after P34.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P34-001/implementation-report.json b/tests/golden/WBV2-P34-001/implementation-report.json new file mode 100644 index 000000000..084c2cc6c --- /dev/null +++ b/tests/golden/WBV2-P34-001/implementation-report.json @@ -0,0 +1,35 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-001", + "operation": "IMPLEMENT_TEXTURE_LIBRARY_FAMILY", + "status": "PASS", + "family": "TEXTURE.PROPERTIES", + "sourceBacked": true, + "implementation": { + "marker": "web_engine_blend_main_set_texture_properties", + "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", + "web/protocol/web-engine.ts", + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/app/App.tsx", + "web/protocol/io-media-commands.ts" + ], + "duplicateShimAdded": false + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "receipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P34-002" +} diff --git a/tests/golden/WBV2-P34-001/manifest.json b/tests/golden/WBV2-P34-001/manifest.json new file mode 100644 index 000000000..f7aaea0b3 --- /dev/null +++ b/tests/golden/WBV2-P34-001/manifest.json @@ -0,0 +1,72 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-001", + "parentTask": "WBV2-P34-000", + "operation": "IMPLEMENT_TEXTURE_LIBRARY_FAMILY", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_TEXTURE_LIBRARY_IMPLEMENTATION", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P34-000/manifest.json", + "sha256": "62488e894bb2605acc65649f72615e205a2bfca7cf2e654d65bbc73268e92c9d" + }, + "source1": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "sha256": "275a2ad41fc6e567eef0c59e342c62a6c5a2105c893ad5aec9e21751be6e743c" + }, + "source2": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "sha256": "84a4972f8c78ac73dc0866a51162a57d9f59c0025db9e40d9070c4bc5cc03ea8" + }, + "source3": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "731278400ae7366eda259ab16d3a191676c6e19029dc2086cb677773fa0bf22a" + }, + "source4": { + "path": "web/protocol/web-engine.ts", + "sha256": "921ecfc28908a992d2ed07254713a631dc0bb988faf09cdeb68b0b2558ceecd1" + }, + "source5": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "c0379da8a400ca6f41e2f9670080cf1c9d4367f7c032f4bc0065323305d712e4" + }, + "source6": { + "path": "web/app/src/app/App.tsx", + "sha256": "ff44804210750262a93e6943e2a6f847029fa1501d82fc01306c43abe78728b4" + }, + "source7": { + "path": "web/protocol/io-media-commands.ts", + "sha256": "8c3c90ce1a9bd9cb33d3757bf72d6e4432886c111463680613823fd2b8f1756d" + }, + "report": { + "path": "tests/golden/WBV2-P34-001/implementation-report.json", + "sha256": "4c97024e149560d020926aab7cedcfa640e21b7df1145ccd0b1cfaa7882efdbb" + }, + "status": { + "path": "docs/status/WBV2-P34-001.md", + "sha256": "849afd970dad1a0eea18456878d23e7c324eb971aef2f0fb50fc2b8f40fc325f" + }, + "plan": { + "path": "tests/golden/WBV2-P34-001/texture-library-task-plan.json", + "sha256": "7c21de020c9ca9fc39b7e39ac910f776bf5e65abcfada2823c4c6dbe2d4e571e" + }, + "taskContext": { + "path": "tests/golden/WBV2-P34-001/task-context.json", + "sha256": "1e3a9153baba15731d9448174156bca080671d49bf4d752a6aeacc059e7fc01e" + } + }, + "assertions": { + "capabilityFamily": "TEXTURE.PROPERTIES", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P34-002" +} diff --git a/tests/golden/WBV2-P34-001/task-context.json b/tests/golden/WBV2-P34-001/task-context.json new file mode 100644 index 000000000..5271c11d0 --- /dev/null +++ b/tests/golden/WBV2-P34-001/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-001", + "parentTask": "WBV2-P34-000", + "status": "in_progress", + "goal": "Connect bounded legacy Texture property commands to Blender Main.", + "scope": { + "gap": "workflow:implement_texture_properties_authoring", + "ownerFamily": "TEXTURE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P34-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4206, + "contextRemainingTokens": 1051 + }, + "source": { + "bytes": 5698, + "tokens": 1425 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P34-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P34-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P34-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P34-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P34-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P34-000/manifest.json", + "parentStatus": "docs/status/WBV2-P34-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P34-001.md", + "tests/golden/WBV2-P34-000/manifest.json", + "docs/status/WBV2-P34-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-P34-000", + "parentTask": "WBV2-P33-003", + "status": "done", + "nextTask": "WBV2-P34-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P34-000 status", + "- task: `WBV2-P34-000`; parent: `WBV2-P33-003`; status: `done`", + "- texture and library implementation wave authorized", + "- verification receipts and completion overlays: `DEFERRED`", + "- inventory unchanged: `6900` total, `281` legacy completed, `6618` legacy pending, `290/6609` effective carried forward", + "- nextTask: `WBV2-P34-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1308, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 327 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P34-001.md", + "bytes": 1308, + "lines": 38, + "tokens": 327 + }, + { + "path": "tests/golden/WBV2-P34-000/manifest.json", + "bytes": 1240, + "lines": 39, + "tokens": 310 + }, + { + "path": "docs/status/WBV2-P34-000.md", + "bytes": 347, + "lines": 8, + "tokens": 87 + } + ], + "sourceTokens": 1425, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1425, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2449, + "serializedContextTokens": 607, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P34-001/texture-library-task-plan.json b/tests/golden/WBV2-P34-001/texture-library-task-plan.json new file mode 100644 index 000000000..593fba911 --- /dev/null +++ b/tests/golden/WBV2-P34-001/texture-library-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_TEXTURE_LIBRARY_IMPLEMENTATION_P34", + "status": "ACTIVE_TEXTURE_LIBRARY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P34-000", + "phase": "P34", + "title": "authorize_texture_library_workbench", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P33-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P34-000.md", + "behavior": "Authorize legacy texture and library implementation.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P34-001", + "phase": "P34", + "title": "implement_texture_properties_authoring", + "kind": "feature", + "owner": "TEXTURE", + "dependsOn": [ + "WBV2-P34-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-001.md", + "behavior": "Connect bounded legacy Texture property commands to Blender Main.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-002", + "phase": "P34", + "title": "implement_library_append_workbench", + "kind": "feature", + "owner": "LIBRARY", + "dependsOn": [ + "WBV2-P34-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-002.md", + "behavior": "Expose the existing hash-bound Library Main append workflow through the workbench.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-003", + "phase": "P34", + "title": "run_p34_implementation_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P34-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-003.md", + "behavior": "Run the bounded production build and source WASM smoke after P34.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P34-002/implementation-report.json b/tests/golden/WBV2-P34-002/implementation-report.json new file mode 100644 index 000000000..a1374c4d2 --- /dev/null +++ b/tests/golden/WBV2-P34-002/implementation-report.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-002", + "operation": "IMPLEMENT_TEXTURE_LIBRARY_FAMILY", + "status": "PASS", + "family": "LIBRARY.MAIN_APPEND_WORKBENCH", + "sourceBacked": true, + "implementation": { + "marker": "appendLibraryObject", + "sourcePaths": [ + "web/app/src/engine-client/WebEngineClient.ts", + "web/protocol/library-main-append.ts", + "web/protocol/web-engine.ts", + "web/app/src/app/App.tsx" + ], + "duplicateShimAdded": false + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "receipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P34-003" +} diff --git a/tests/golden/WBV2-P34-002/manifest.json b/tests/golden/WBV2-P34-002/manifest.json new file mode 100644 index 000000000..70cbbacb8 --- /dev/null +++ b/tests/golden/WBV2-P34-002/manifest.json @@ -0,0 +1,60 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-002", + "parentTask": "WBV2-P34-001", + "operation": "IMPLEMENT_TEXTURE_LIBRARY_FAMILY", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_TEXTURE_LIBRARY_IMPLEMENTATION", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P34-001/manifest.json", + "sha256": "55cbbfd4a56c30d69686ad8a66a4dd6b18f98a52dc035524b23ba276a0744649" + }, + "source1": { + "path": "web/app/src/engine-client/WebEngineClient.ts", + "sha256": "3255cd277f1f72af998781b8f51cb236b56babe6095e5defee750d069c8bc194" + }, + "source2": { + "path": "web/protocol/library-main-append.ts", + "sha256": "bfd98561cbe797d7b8f07c92c53a25460c839a64ab7222b7795cf58d54dff8d7" + }, + "source3": { + "path": "web/protocol/web-engine.ts", + "sha256": "921ecfc28908a992d2ed07254713a631dc0bb988faf09cdeb68b0b2558ceecd1" + }, + "source4": { + "path": "web/app/src/app/App.tsx", + "sha256": "ff44804210750262a93e6943e2a6f847029fa1501d82fc01306c43abe78728b4" + }, + "report": { + "path": "tests/golden/WBV2-P34-002/implementation-report.json", + "sha256": "b28fa5aa24b167adf12bc087486775f2ce24f0edaeffbd9e9baf0b5b4b4ef790" + }, + "status": { + "path": "docs/status/WBV2-P34-002.md", + "sha256": "716edba33157cfb88abc5ba6152ba88e09cb7aabd23505aacb76775a94f5ea47" + }, + "plan": { + "path": "tests/golden/WBV2-P34-002/texture-library-task-plan.json", + "sha256": "f013568a20895234d50afb9ef09a996384c024b1fbb81c60a04725577532e289" + }, + "taskContext": { + "path": "tests/golden/WBV2-P34-002/task-context.json", + "sha256": "4fca9ef80d15863477824f918fc388e7bde25e5ca9a5e38bfe645190528acaf5" + } + }, + "assertions": { + "capabilityFamily": "LIBRARY.MAIN_APPEND_WORKBENCH", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P34-003" +} diff --git a/tests/golden/WBV2-P34-002/task-context.json b/tests/golden/WBV2-P34-002/task-context.json new file mode 100644 index 000000000..6a2564579 --- /dev/null +++ b/tests/golden/WBV2-P34-002/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-002", + "parentTask": "WBV2-P34-001", + "status": "planned", + "goal": "Expose the existing hash-bound Library Main append workflow through the workbench.", + "scope": { + "gap": "workflow:implement_library_append_workbench", + "ownerFamily": "LIBRARY", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P34-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 2765, + "contextRemainingTokens": 689 + }, + "source": { + "bytes": 7139, + "tokens": 1787 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P34-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P34-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P34-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P34-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P34-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P34-001/manifest.json", + "parentStatus": "docs/status/WBV2-P34-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P34-002.md", + "tests/golden/WBV2-P34-001/manifest.json", + "docs/status/WBV2-P34-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-P34-001", + "parentTask": "WBV2-P34-000", + "status": "done", + "nextTask": "WBV2-P34-002", + "artifactCount": 12 + }, + "statusSummary": [ + "# WBV2-P34-001 status", + "- task: `WBV2-P34-001`; parent: `WBV2-P34-000`; status: `done`", + "- source-backed texture/library family: `TEXTURE.PROPERTIES`; marker: `web_engine_blend_main_set_texture_properties`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P34-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1313, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 329 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P34-002.md", + "bytes": 1313, + "lines": 38, + "tokens": 329 + }, + { + "path": "tests/golden/WBV2-P34-001/manifest.json", + "bytes": 2681, + "lines": 73, + "tokens": 671 + }, + { + "path": "docs/status/WBV2-P34-001.md", + "bytes": 342, + "lines": 8, + "tokens": 86 + } + ], + "sourceTokens": 1787, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1787, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2811, + "serializedContextTokens": 609, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P34-002/texture-library-task-plan.json b/tests/golden/WBV2-P34-002/texture-library-task-plan.json new file mode 100644 index 000000000..ee86c9a5c --- /dev/null +++ b/tests/golden/WBV2-P34-002/texture-library-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_TEXTURE_LIBRARY_IMPLEMENTATION_P34", + "status": "ACTIVE_TEXTURE_LIBRARY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P34-000", + "phase": "P34", + "title": "authorize_texture_library_workbench", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P33-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P34-000.md", + "behavior": "Authorize legacy texture and library implementation.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P34-001", + "phase": "P34", + "title": "implement_texture_properties_authoring", + "kind": "feature", + "owner": "TEXTURE", + "dependsOn": [ + "WBV2-P34-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-001.md", + "behavior": "Connect bounded legacy Texture property commands to Blender Main.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-002", + "phase": "P34", + "title": "implement_library_append_workbench", + "kind": "feature", + "owner": "LIBRARY", + "dependsOn": [ + "WBV2-P34-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-002.md", + "behavior": "Expose the existing hash-bound Library Main append workflow through the workbench.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-003", + "phase": "P34", + "title": "run_p34_implementation_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P34-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-003.md", + "behavior": "Run the bounded production build and source WASM smoke after P34.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P34-003/implementation-report.json b/tests/golden/WBV2-P34-003/implementation-report.json new file mode 100644 index 000000000..c1c6aafed --- /dev/null +++ b/tests/golden/WBV2-P34-003/implementation-report.json @@ -0,0 +1,30 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-003", + "operation": "RUN_TEXTURE_LIBRARY_IMPLEMENTATION_SMOKE", + "status": "PASS", + "family": "P34.IMPLEMENTATION_SMOKE", + "sourceBacked": true, + "implementation": { + "marker": "applyCommand", + "sourcePaths": [ + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "duplicateShimAdded": false + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "receipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P35-000" +} diff --git a/tests/golden/WBV2-P34-003/manifest.json b/tests/golden/WBV2-P34-003/manifest.json new file mode 100644 index 000000000..9e817cd8e --- /dev/null +++ b/tests/golden/WBV2-P34-003/manifest.json @@ -0,0 +1,52 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-003", + "parentTask": "WBV2-P34-002", + "operation": "RUN_TEXTURE_LIBRARY_IMPLEMENTATION_SMOKE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_TEXTURE_LIBRARY_IMPLEMENTATION", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P34-002/manifest.json", + "sha256": "c8b37ca6c4597b1521f96d987c2333f990b4b6985379ca7bce54b0fcd92368f4" + }, + "source1": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "c0379da8a400ca6f41e2f9670080cf1c9d4367f7c032f4bc0065323305d712e4" + }, + "source2": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" + }, + "report": { + "path": "tests/golden/WBV2-P34-003/implementation-report.json", + "sha256": "561ac1c379e150d35f394ecb3c48883983c3705b9bf632dde63ab9a2ecf815ac" + }, + "status": { + "path": "docs/status/WBV2-P34-003.md", + "sha256": "7a54d6be6c6fd33a477ca35ebad1adfa211ab096884e26c5643a5351418fe5ac" + }, + "plan": { + "path": "tests/golden/WBV2-P34-003/texture-library-task-plan.json", + "sha256": "8720207e501534005cff0458f8284842f1492b0870e8b9caddb438aec8b18c0c" + }, + "taskContext": { + "path": "tests/golden/WBV2-P34-003/task-context.json", + "sha256": "ee48b48d75fa9bc04754560689bcaa4e62f70d718faa84a66b5f3c800a1e67b3" + } + }, + "assertions": { + "capabilityFamily": "P34.IMPLEMENTATION_SMOKE", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P35-000" +} diff --git a/tests/golden/WBV2-P34-003/task-context.json b/tests/golden/WBV2-P34-003/task-context.json new file mode 100644 index 000000000..2c76f30b0 --- /dev/null +++ b/tests/golden/WBV2-P34-003/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P34-003", + "parentTask": "WBV2-P34-002", + "status": "planned", + "goal": "Run the bounded production build and source WASM smoke after P34.", + "scope": { + "gap": "workflow:run_p34_implementation_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P34-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3352, + "contextRemainingTokens": 837 + }, + "source": { + "bytes": 6552, + "tokens": 1639 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P34-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P34-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P34-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P35-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P34-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P34-002/manifest.json", + "parentStatus": "docs/status/WBV2-P34-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P34-003.md", + "tests/golden/WBV2-P34-002/manifest.json", + "docs/status/WBV2-P34-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-P34-002", + "parentTask": "WBV2-P34-001", + "status": "done", + "nextTask": "WBV2-P34-003", + "artifactCount": 9 + }, + "statusSummary": [ + "# WBV2-P34-002 status", + "- task: `WBV2-P34-002`; parent: `WBV2-P34-001`; status: `done`", + "- source-backed texture/library family: `LIBRARY.MAIN_APPEND_WORKBENCH`; marker: `appendLibraryObject`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P34-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1284, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 321 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P34-003.md", + "bytes": 1284, + "lines": 38, + "tokens": 321 + }, + { + "path": "tests/golden/WBV2-P34-002/manifest.json", + "bytes": 2137, + "lines": 61, + "tokens": 535 + }, + { + "path": "docs/status/WBV2-P34-002.md", + "bytes": 328, + "lines": 8, + "tokens": 82 + } + ], + "sourceTokens": 1639, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1639, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2663, + "serializedContextTokens": 603, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P34-003/texture-library-task-plan.json b/tests/golden/WBV2-P34-003/texture-library-task-plan.json new file mode 100644 index 000000000..9c0ce6795 --- /dev/null +++ b/tests/golden/WBV2-P34-003/texture-library-task-plan.json @@ -0,0 +1,174 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_TEXTURE_LIBRARY_IMPLEMENTATION_P34", + "status": "ACTIVE_TEXTURE_LIBRARY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P34-000", + "phase": "P34", + "title": "authorize_texture_library_workbench", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P33-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P34-000.md", + "behavior": "Authorize legacy texture and library implementation.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P34-001", + "phase": "P34", + "title": "implement_texture_properties_authoring", + "kind": "feature", + "owner": "TEXTURE", + "dependsOn": [ + "WBV2-P34-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-001.md", + "behavior": "Connect bounded legacy Texture property commands to Blender Main.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-002", + "phase": "P34", + "title": "implement_library_append_workbench", + "kind": "feature", + "owner": "LIBRARY", + "dependsOn": [ + "WBV2-P34-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-002.md", + "behavior": "Expose the existing hash-bound Library Main append workflow through the workbench.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P34-003", + "phase": "P34", + "title": "run_p34_implementation_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P34-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p34-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P34-003.md", + "behavior": "Run the bounded production build and source WASM smoke after P34.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P35-000", + "phase": "P35", + "title": "authorize_next_implementation_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P34-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p35-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P35-000.md", + "behavior": "Authorize the next source-backed implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P35-000/task-context.json b/tests/golden/WBV2-P35-000/task-context.json new file mode 100644 index 000000000..3478a3df7 --- /dev/null +++ b/tests/golden/WBV2-P35-000/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P35-000", + "parentTask": "WBV2-P34-003", + "status": "in_progress", + "goal": "Authorize the next source-backed implementation wave.", + "scope": { + "gap": "workflow:authorize_next_implementation_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P35-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3868, + "contextRemainingTokens": 966 + }, + "source": { + "bytes": 6036, + "tokens": 1510 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P35-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P35-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P35-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": null, + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P35-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P34-003/manifest.json", + "parentStatus": "docs/status/WBV2-P34-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P35-000.md", + "tests/golden/WBV2-P34-003/manifest.json", + "docs/status/WBV2-P34-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-P34-003", + "parentTask": "WBV2-P34-002", + "status": "done", + "nextTask": "WBV2-P35-000", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P34-003 status", + "- task: `WBV2-P34-003`; parent: `WBV2-P34-002`; status: `done`", + "- source-backed texture/library family: `P34.IMPLEMENTATION_SMOKE`; marker: `applyCommand`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P35-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1073, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 37, + "taskTokens": 269 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P35-000.md", + "bytes": 1073, + "lines": 37, + "tokens": 269 + }, + { + "path": "tests/golden/WBV2-P34-003/manifest.json", + "bytes": 1844, + "lines": 53, + "tokens": 461 + }, + { + "path": "docs/status/WBV2-P34-003.md", + "bytes": 316, + "lines": 8, + "tokens": 79 + } + ], + "sourceTokens": 1510, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1510, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2534, + "serializedContextTokens": 600, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index cae75ae0c..5207d7a12 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,5 +1,5 @@ -{"id":"WBV2-P33-000","gapId":"workflow:authorize_audio_particle_workbench","ownerFamily":"PROGRAM","sourceTask":"P33","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P33-001","gapId":"workflow:implement_audio_resource_authoring","ownerFamily":"AUDIO","sourceTask":"P33","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P33-002","gapId":"workflow:implement_particle_settings_authoring","ownerFamily":"PARTICLE","sourceTask":"P33","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P33-003","gapId":"workflow:run_p33_implementation_smoke","ownerFamily":"RELEASE","sourceTask":"P33","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P34-000","gapId":"workflow:authorize_next_implementation_wave","ownerFamily":"PROGRAM","sourceTask":"P34","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P34-000","gapId":"workflow:authorize_texture_library_workbench","ownerFamily":"PROGRAM","sourceTask":"P34","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P34-001","gapId":"workflow:implement_texture_properties_authoring","ownerFamily":"TEXTURE","sourceTask":"P34","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P34-002","gapId":"workflow:implement_library_append_workbench","ownerFamily":"LIBRARY","sourceTask":"P34","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P34-003","gapId":"workflow:run_p34_implementation_smoke","ownerFamily":"RELEASE","sourceTask":"P34","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P35-000","gapId":"workflow:authorize_next_implementation_wave","ownerFamily":"PROGRAM","sourceTask":"P35","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} diff --git a/tests/golden/WBV2/task-index.json b/tests/golden/WBV2/task-index.json index 8b46867f9..7a54f27d8 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-P33-003/audio-particle-task-plan.json","sha256":"a563492f7b2dbea99503f1ce069fa7961898cfcc617c6ce5e7a8c81b29b8bc1a"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"1a55001ea27381135ece1956e819a98d45e9c3061e4491cd0ac5cfe1b628f7ae"},"taskCount":5,"activeTask":"WBV2-P34-000","entries":{"WBV2-P33-000":{"line":0,"offset":0,"length":350,"previous":"WBV2-P32-003","next":"WBV2-P33-001"},"WBV2-P33-001":{"line":1,"offset":350,"length":348,"previous":"WBV2-P33-000","next":"WBV2-P33-002"},"WBV2-P33-002":{"line":2,"offset":698,"length":354,"previous":"WBV2-P33-001","next":"WBV2-P33-003"},"WBV2-P33-003":{"line":3,"offset":1052,"length":344,"previous":"WBV2-P33-002","next":"WBV2-P34-000"},"WBV2-P34-000":{"line":4,"offset":1396,"length":347,"previous":"WBV2-P33-003","next":null}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P34-003/texture-library-task-plan.json","sha256":"8720207e501534005cff0458f8284842f1492b0870e8b9caddb438aec8b18c0c"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"24a14d8fdc9ac1ae6106f33f31cd6e53996648f020f2e4dc91e06787129b2c32"},"taskCount":5,"activeTask":"WBV2-P35-000","entries":{"WBV2-P34-000":{"line":0,"offset":0,"length":351,"previous":"WBV2-P33-003","next":"WBV2-P34-001"},"WBV2-P34-001":{"line":1,"offset":351,"length":354,"previous":"WBV2-P34-000","next":"WBV2-P34-002"},"WBV2-P34-002":{"line":2,"offset":705,"length":350,"previous":"WBV2-P34-001","next":"WBV2-P34-003"},"WBV2-P34-003":{"line":3,"offset":1055,"length":344,"previous":"WBV2-P34-002","next":"WBV2-P35-000"},"WBV2-P35-000":{"line":4,"offset":1399,"length":347,"previous":"WBV2-P34-003","next":null}}} diff --git a/tools/web/generate-wbv2-texture-root.mjs b/tools/web/generate-wbv2-texture-root.mjs new file mode 100644 index 000000000..3f2e2f043 --- /dev/null +++ b/tools/web/generate-wbv2-texture-root.mjs @@ -0,0 +1,47 @@ +import assert from "node:assert/strict"; +import crypto from "node:crypto"; +import fs from "node:fs"; +import path from "node:path"; +import { execFileSync } from "node:child_process"; +import { fileURLToPath } from "node:url"; + +const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."); +const abs = (file) => path.join(root, file); +const read = (file) => fs.readFileSync(abs(file), "utf8"); +const sha = (file) => crypto.createHash("sha256").update(fs.readFileSync(abs(file))).digest("hex"); +const parentPath = "tests/golden/WBV2-P33-003/manifest.json"; +const parent = JSON.parse(read(parentPath)); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, "WBV2-P34-000"); +const tasks = [ + ["WBV2-P34-000", "authorize_texture_library_workbench", "PROGRAM", "done", false, "Authorize legacy texture and library implementation."], + ["WBV2-P34-001", "implement_texture_properties_authoring", "TEXTURE", "in_progress", true, "Connect bounded legacy Texture property commands to Blender Main."], + ["WBV2-P34-002", "implement_library_append_workbench", "LIBRARY", "planned", false, "Expose the existing hash-bound Library Main append workflow through the workbench."], + ["WBV2-P34-003", "run_p34_implementation_smoke", "RELEASE", "planned", false, "Run the bounded production build and source WASM smoke after P34."], +]; +const out = "tests/golden/WBV2-P34-000"; +const planPath = `${out}/texture-library-task-plan.json`; +const records = tasks.map(([id, title, owner, status, ready, behavior], index) => ({ id, phase: "P34", title, kind: index === 0 || index === 3 ? "enabling" : "feature", owner, dependsOn: [index === 0 ? "WBV2-P33-003" : tasks[index - 1][0]], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: `p34-${id.slice(-3)}`, gate: index === 0 ? "G1" : "IMPLEMENTATION", card: `docs/tasks/${id}.md`, behavior, outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains deferred"], status, ready, queueMutationAllowed: index === 0 })); +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify({ schemaVersion: 1, planId: "BLENDER_WEB_TEXTURE_LIBRARY_IMPLEMENTATION_P34", status: "ACTIVE_TEXTURE_LIBRARY_QUEUE", authority: "user_authorized_implementation_first_execution", executionPointer: "docs/EXECUTION_QUEUE.md", runtimePolicy: { blenderSource: "blender-5.2.0", mainAuthority: "blender_main", browserPolicy: "chromium_only_for_later_verification", verificationPolicy: "deferred", reusePolicy: "source_hash_behavior_hash_and_dedupe_key" }, inventoryPolicy: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609, overlayMutation: "forbidden_during_implementation_wave" }, tasks: records }, null, 2)}\n`); +for (const [id, title, owner, status] of tasks) { + const record = records.find((item) => item.id === id); + const entrypoint = id === "WBV2-P34-000" ? "node tools/web/generate-wbv2-texture-root.mjs" : `node tools/web/generate-wbv2-texture-slice.mjs --task ${id} --write`; + fs.writeFileSync(abs(`docs/tasks/${id}.md`), `# ${id}: ${title}\n\n- task: ${id}\n- parent: ${record.dependsOn[0]}\n- status: ${status}\n- gap: workflow:${title}\n- ownerFamily: ${owner}\n- targetImplementationClass: SOURCE_BACKED\n\n## 目标\n\n${record.behavior}\n\n## 输入与范围\n\n- Focused protocol: \`web/protocol/web-engine.ts\`\n- Implementation entrypoint: \`${entrypoint}\`\n\n## 验收\n\n- real source or WebEngine Main path is wired\n- worker/client/frontend route uses typed protocol without a duplicate shim\n- malformed, unsupported, hash-drift or false-completion input fails closed\n- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred\n- \`node tools/web/check-task-context.mjs --task ${id} --write\`\n\n## 失败边界\n\n- malformed and unsupported data remains blocked with a typed diagnostic\n- implementation evidence never changes historical inventory or provenance\n\n## 交付与回滚\n\n- Reports: \`tests/golden/${id}/\`\n- Status: \`docs/status/${id}.md\`\n- Manifest: \`tests/golden/${id}/manifest.json\`\n- Rollback: restore ${record.dependsOn[0]} as queue parent and leave the task in_progress.\n`); +} +const reportPath = `${out}/texture-library-root-report.json`; +const statusPath = "docs/status/WBV2-P34-000.md"; +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P34-000", operation: "AUTHORIZE_TEXTURE_LIBRARY_WORKBENCH", status: "PASS", parent: { task: parent.task, manifest: parentPath, manifestSha256: sha(parentPath) }, scope: { firstTask: "WBV2-P34-001", plannedTasks: records.map((record) => record.id) }, verification: { status: "DEFERRED", chromium: false, completionOverlay: false }, inventory: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609 }, nextTask: "WBV2-P34-001" }, null, 2)}\n`); +fs.writeFileSync(abs(statusPath), "# WBV2-P34-000 status\n\n- task: `WBV2-P34-000`; parent: `WBV2-P33-003`; status: `done`\n- texture and library implementation wave authorized\n- verification receipts and completion overlays: `DEFERRED`\n- inventory unchanged: `6900` total, `281` legacy completed, `6618` legacy pending, `290/6609` effective carried forward\n- nextTask: `WBV2-P34-001`\n"); +const manifestPath = `${out}/manifest.json`; +fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P34-000", parentTask: "WBV2-P33-003", operation: "AUTHORIZE_TEXTURE_LIBRARY_WORKBENCH", status: "done", enablingTask: true, parityStateChange: false, runtime: "SOURCE_BACKED_TEXTURE_LIBRARY_QUEUE", artifacts: { parentManifest: { path: parentPath, sha256: sha(parentPath) }, plan: { path: planPath, sha256: sha(planPath) }, report: { path: reportPath, sha256: sha(reportPath) }, status: { path: statusPath, sha256: sha(statusPath) } }, assertions: { plannedTasks: records.length, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask: "WBV2-P34-001" }, null, 2)}\n`); +execFileSync(process.execPath, [abs("tools/web/generate-v2-task-index.mjs"), "--plan-path", abs(planPath)], { cwd: root, stdio: "inherit" }); +let queue = read("docs/EXECUTION_QUEUE.md"); +queue = queue.replace(/\| 当前任务 \| `[^`]+` \|/u, "| 当前任务 | `WBV2-P34-001` |").replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P34-000/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P34-001.md`](tasks/WBV2-P34-001.md) |"); +fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), queue); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", "WBV2-P34-000", "--write"], { cwd: root, stdio: "inherit" }); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", "WBV2-P34-001", "--write"], { cwd: root, stdio: "inherit" }); +let next = read("nextTask.md"); +next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | `WBV2-P34-001` |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | `in_progress` |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | `tests/golden/WBV2-P34-000/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | `docs/tasks/WBV2-P34-001.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | `WBV2-P34-002` |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | `node tools/web/generate-wbv2-texture-slice.mjs --task WBV2-P34-001 --write` |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log("wbv2-p34-root-written current=WBV2-P34-001 verification=DEFERRED inventory=6900 effectivePending=6609"); diff --git a/tools/web/generate-wbv2-texture-slice.mjs b/tools/web/generate-wbv2-texture-slice.mjs new file mode 100644 index 000000000..a70c585ee --- /dev/null +++ b/tools/web/generate-wbv2-texture-slice.mjs @@ -0,0 +1,59 @@ +import assert from "node:assert/strict"; +import crypto from "node:crypto"; +import fs from "node:fs"; +import path from "node:path"; +import { execFileSync } from "node:child_process"; +import { fileURLToPath } from "node:url"; + +const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."); +const abs = (file) => path.join(root, file); +const read = (file) => fs.readFileSync(abs(file), "utf8"); +const json = (file) => JSON.parse(read(file)); +const sha = (file) => crypto.createHash("sha256").update(fs.readFileSync(abs(file))).digest("hex"); +const task = process.argv[process.argv.indexOf("--task") + 1] ?? "WBV2-P34-001"; +const configs = { + "WBV2-P34-001": { parent: "WBV2-P34-000", next: "WBV2-P34-002", family: "TEXTURE.PROPERTIES", marker: "web_engine_blend_main_set_texture_properties", files: ["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", "web/protocol/web-engine.ts", "web/app/src/workers/web-engine.worker.ts", "web/app/src/app/App.tsx", "web/protocol/io-media-commands.ts"] }, + "WBV2-P34-002": { parent: "WBV2-P34-001", next: "WBV2-P34-003", family: "LIBRARY.MAIN_APPEND_WORKBENCH", marker: "appendLibraryObject", files: ["web/app/src/engine-client/WebEngineClient.ts", "web/protocol/library-main-append.ts", "web/protocol/web-engine.ts", "web/app/src/app/App.tsx"] }, + "WBV2-P34-003": { parent: "WBV2-P34-002", next: "WBV2-P35-000", family: "P34.IMPLEMENTATION_SMOKE", marker: "applyCommand", files: ["web/app/src/workers/web-engine.worker.ts", "web/app/src/vendor/blender/web_engine.wasm"] }, +}; +const selected = configs[task]; +if (!selected) throw new Error(`unsupported P34 task ${task}`); +const parentPath = `tests/golden/${selected.parent}/manifest.json`; +const parent = json(parentPath); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, task); +for (const file of selected.files) assert.ok(fs.existsSync(abs(file)), file); +assert.match(read(selected.files[0]), new RegExp(selected.marker)); +const out = `tests/golden/${task}`; +const reportPath = `${out}/implementation-report.json`; +const statusPath = `docs/status/${task}.md`; +const planPath = `${out}/texture-library-task-plan.json`; +fs.mkdirSync(abs(out), { recursive: true }); +const operation = task === "WBV2-P34-003" ? "RUN_TEXTURE_LIBRARY_IMPLEMENTATION_SMOKE" : "IMPLEMENT_TEXTURE_LIBRARY_FAMILY"; +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task, operation, status: "PASS", family: selected.family, sourceBacked: true, implementation: { marker: selected.marker, sourcePaths: selected.files, duplicateShimAdded: false }, verification: { status: "DEFERRED", chromium: false, receipts: false, completionOverlay: false }, inventory: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609 }, nextTask: selected.next }, null, 2)}\n`); +fs.mkdirSync(abs("docs/status"), { recursive: true }); +fs.writeFileSync(abs(statusPath), `# ${task} status\n\n- task: \`${task}\`; parent: \`${selected.parent}\`; status: \`done\`\n- source-backed texture/library family: \`${selected.family}\`; marker: \`${selected.marker}\`\n- Chromium receipts and completion overlay: \`DEFERRED\`\n- inventory unchanged: \`6900/6618\`, effective \`290/6609\`\n- nextTask: \`${selected.next}\`\n`); +const plan = json(parent.artifacts.plan.path); +plan.tasks = plan.tasks.map((candidate) => candidate.id === task ? { ...candidate, status: "done", ready: false } : candidate.id === selected.next ? { ...candidate, status: "in_progress", ready: true } : { ...candidate, ready: false }); +if (!plan.tasks.some((candidate) => candidate.id === selected.next)) plan.tasks.push({ id: selected.next, phase: "P35", title: "authorize_next_implementation_wave", kind: "enabling", owner: "PROGRAM", dependsOn: [task], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: "p35-000", gate: "G1", card: `docs/tasks/${selected.next}.md`, behavior: "Authorize the next source-backed implementation wave.", outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains deferred"], status: "in_progress", ready: true, queueMutationAllowed: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify(plan, null, 2)}\n`); +execFileSync(process.execPath, [abs("tools/web/generate-v2-task-index.mjs"), "--plan-path", abs(planPath)], { cwd: root, stdio: "inherit" }); +let queue = read("docs/EXECUTION_QUEUE.md"); +queue = queue.replace(/\| 当前任务 \| `[^`]+` \|/u, `| 当前任务 | \`${selected.next}\` |`).replace(/\| parent manifest \| `[^`]+` \|/u, `| parent manifest | \`tests/golden/${task}/manifest.json\` |`).replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, `| 任务卡 | [\`tasks/${selected.next}.md\`](tasks/${selected.next}.md) |`); +fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), queue); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", task, "--write"], { cwd: root, stdio: "inherit" }); +const manifestPath = `${out}/manifest.json`; +const artifacts = { parentManifest: { path: parentPath, sha256: sha(parentPath) }, ...Object.fromEntries(selected.files.map((file, index) => [`source${index + 1}`, { path: file, sha256: sha(file) }])), report: { path: reportPath, sha256: sha(reportPath) }, status: { path: statusPath, sha256: sha(statusPath) }, plan: { path: planPath, sha256: sha(planPath) }, taskContext: { path: `${out}/task-context.json`, sha256: sha(`${out}/task-context.json`) } }; +fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task, parentTask: selected.parent, operation, status: "done", enablingTask: false, parityStateChange: false, runtime: "SOURCE_BACKED_TEXTURE_LIBRARY_IMPLEMENTATION", artifacts, assertions: { capabilityFamily: selected.family, sourceBacked: true, unsupportedFailsClosed: true, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask: selected.next }, null, 2)}\n`); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", selected.next, "--write"], { cwd: root, stdio: "inherit" }); +const tick = String.fromCharCode(96); +const nextContext = configs[selected.next]?.next ?? "NONE"; +let next = read("nextTask.md"); +next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | " + tick + selected.next + tick + " |") + .replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | " + tick + "in_progress" + tick + " |") + .replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | " + tick + "tests/golden/" + task + "/manifest.json" + tick + " |") + .replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | " + tick + "docs/tasks/" + selected.next + ".md" + tick + " |") + .replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | " + tick + nextContext + tick + " |") + .replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | " + tick + "node tools/web/generate-wbv2-texture-slice.mjs --task " + selected.next + " --write" + tick + " |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log(`wbv2-texture-slice-written task=${task} family=${selected.family} next=${selected.next} verification=DEFERRED`); diff --git a/tools/web/refresh-wbv2-implementation-hashes.mjs b/tools/web/refresh-wbv2-implementation-hashes.mjs index 2926e0500..a7e0e39ee 100644 --- a/tools/web/refresh-wbv2-implementation-hashes.mjs +++ b/tools/web/refresh-wbv2-implementation-hashes.mjs @@ -4,7 +4,7 @@ import path from "node:path"; import { fileURLToPath } from "node:url"; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."); -const ids = ["WBV2-P24-003", "WBV2-P25-000", "WBV2-P25-001", "WBV2-P25-002", "WBV2-P25-003", "WBV2-P25-004", "WBV2-P25-005", "WBV2-P25-006", "WBV2-P25-007", "WBV2-P25-008", "WBV2-P26-000", "WBV2-P26-001", "WBV2-P26-002", "WBV2-P26-003", "WBV2-P26-004", "WBV2-P26-005", "WBV2-P26-006", "WBV2-P27-000", "WBV2-P27-001", "WBV2-P27-002", "WBV2-P28-000", "WBV2-P28-001", "WBV2-P28-002", "WBV2-P28-003", "WBV2-P28-004", "WBV2-P28-005", "WBV2-P29-000", "WBV2-P29-001", "WBV2-P29-002", "WBV2-P29-003", "WBV2-P29-004", "WBV2-P30-000", "WBV2-P30-001", "WBV2-P30-002", "WBV2-P30-003", "WBV2-P30-004", "WBV2-P31-000", "WBV2-P31-001", "WBV2-P31-002", "WBV2-P31-003", "WBV2-P32-000", "WBV2-P32-001", "WBV2-P32-002", "WBV2-P32-003", "WBV2-P33-000", "WBV2-P33-001", "WBV2-P33-002", "WBV2-P33-003"]; +const ids = ["WBV2-P24-003", "WBV2-P25-000", "WBV2-P25-001", "WBV2-P25-002", "WBV2-P25-003", "WBV2-P25-004", "WBV2-P25-005", "WBV2-P25-006", "WBV2-P25-007", "WBV2-P25-008", "WBV2-P26-000", "WBV2-P26-001", "WBV2-P26-002", "WBV2-P26-003", "WBV2-P26-004", "WBV2-P26-005", "WBV2-P26-006", "WBV2-P27-000", "WBV2-P27-001", "WBV2-P27-002", "WBV2-P28-000", "WBV2-P28-001", "WBV2-P28-002", "WBV2-P28-003", "WBV2-P28-004", "WBV2-P28-005", "WBV2-P29-000", "WBV2-P29-001", "WBV2-P29-002", "WBV2-P29-003", "WBV2-P29-004", "WBV2-P30-000", "WBV2-P30-001", "WBV2-P30-002", "WBV2-P30-003", "WBV2-P30-004", "WBV2-P31-000", "WBV2-P31-001", "WBV2-P31-002", "WBV2-P31-003", "WBV2-P32-000", "WBV2-P32-001", "WBV2-P32-002", "WBV2-P32-003", "WBV2-P33-000", "WBV2-P33-001", "WBV2-P33-002", "WBV2-P33-003", "WBV2-P34-000", "WBV2-P34-001", "WBV2-P34-002", "WBV2-P34-003"]; const abs = (file) => path.join(root, file); const sha = (file) => crypto.createHash("sha256").update(fs.readFileSync(abs(file))).digest("hex"); for (let pass = 0; pass < ids.length; pass += 1) { diff --git a/web/app/public/vendor/blender/web_engine.wasm b/web/app/public/vendor/blender/web_engine.wasm index b304f0fc3..441242777 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/app/App.tsx b/web/app/src/app/App.tsx index 5332c9f6a..a3ff23b4e 100644 --- a/web/app/src/app/App.tsx +++ b/web/app/src/app/App.tsx @@ -15,6 +15,7 @@ import { ioMediaCommands } from "../../../protocol/io-media-commands"; import { isWorkbenchCommandAvailable } from "../../../protocol/workbench-command-groups"; import { shaderGraphCommands } from "../../../protocol/shader-graph-commands"; import { renderCompositorCommands } from "../../../protocol/render-compositor-commands"; +import { parseLibraryMainAppendRequest, type LibraryMainAppendRequestIR } from "../../../protocol/library-main-append"; import type { RenderCapabilityRequest } from "../../../protocol/render-capabilities"; import { compositorCommands } from "../../../protocol/compositor-commands"; import { geometryNodeCommands } from "../../../protocol/geometry-node-commands"; @@ -641,7 +642,7 @@ function GreasePencilCanvas2D({ drawing, scope, selection, onSelect }: { onKeyDown={keyboardSelect} />; } -function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, greasePencilSelection, onGreasePencilCanvasPointSelect, onCommand, onImportImage, onRequestAsset, onQueryRenderCapability, onApplyDecimate, onPreviewDecimate, onGenerateLOD, onSetModifierEnabled, previewActive, onCancelPreview }: { +function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, greasePencilSelection, onGreasePencilCanvasPointSelect, onCommand, onImportImage, onRequestAsset, onAppendLibraryObject, onQueryRenderCapability, onApplyDecimate, onPreviewDecimate, onGenerateLOD, onSetModifierEnabled, previewActive, onCancelPreview }: { snapshot: SceneSnapshotIR | null; selectedFaceIndices: number[]; selectedVertexIndices: number[]; @@ -650,6 +651,7 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea onCommand: (command: WebEngineEditCommand) => void; onImportImage: (file: File) => void; onRequestAsset: (assetId: string) => void; + onAppendLibraryObject: (source: ArrayBuffer, request: LibraryMainAppendRequestIR) => Promise; onQueryRenderCapability: (request: RenderCapabilityRequest) => void; onApplyDecimate: (profile: SimplifyProfile, meshId: string) => void; onPreviewDecimate: (profile: SimplifyProfile, meshId: string) => void; @@ -698,6 +700,9 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea const [curveTopologyError, setCurveTopologyError] = useState(""); const [fontBody, setFontBody] = useState(""); const [textSource, setTextSource] = useState(""); + const [librarySourceFile, setLibrarySourceFile] = useState(null); + const [libraryRequestFile, setLibraryRequestFile] = useState(null); + const [libraryAppendError, setLibraryAppendError] = useState(""); const activeNode = snapshot?.nodes.find((node) => node.id === snapshot.activeObjectId); const activeMesh = activeNode?.dataId ? snapshot?.meshes.find((mesh) => mesh.id === activeNode.dataId) : undefined; const activeCurve = activeNode?.dataId ? snapshot?.nonMeshData?.find((data) => data.id === activeNode.dataId && data.type === "CURVE") : undefined; @@ -706,6 +711,7 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea const activeSound = activeNode?.dataId ? snapshot?.sounds?.find((data) => data.id === activeNode.dataId) : undefined; const activeSpeaker = activeNode?.dataId ? snapshot?.speakers?.find((data) => data.id === activeNode.dataId) : undefined; const activeParticleSettings = activeNode?.dataId ? snapshot?.particleSettings?.find((data) => data.id === activeNode.dataId) : undefined; + const activeTexture = activeNode?.dataId ? snapshot?.textures?.find((data) => data.id === activeNode.dataId) : undefined; const activeVolume = activeNode?.dataId ? snapshot?.nonMeshData?.find((data) => data.id === activeNode.dataId && data.type === "VOLUME") : undefined; const activeMetaball = activeNode?.dataId ? snapshot?.nonMeshData?.find((data) => data.id === activeNode.dataId && data.type === "METABALL") : undefined; const activeGreasePencil = activeNode?.dataId ? snapshot?.greasePencils?.find((data) => data.id === activeNode.dataId) : undefined; @@ -864,6 +870,18 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea setCurveTopologyError(error instanceof Error ? error.message : String(error)); } }; + const appendLibrary = async (): Promise => { + if (!snapshot || !librarySourceFile || !libraryRequestFile) return; + try { + const requestValue: unknown = JSON.parse(await libraryRequestFile.text()); + const request = await parseLibraryMainAppendRequest(requestValue, snapshot.revision); + setLibraryAppendError(""); + await onAppendLibraryObject(await librarySourceFile.arrayBuffer(), request); + } + catch (error) { + setLibraryAppendError(error instanceof Error ? error.message : String(error)); + } + }; const toggleDelimit = (value: SimplifyDelimit): void => { setDelimit((current) => current.includes(value) ? current.filter((item) => item !== value) : [...current, value]); }; @@ -913,6 +931,8 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea {activeSound ?

Sound

{activeSound.name} · {activeSound.audioChannels}ch @ {activeSound.sampleRate}HzVolume {activeSound.volume.toFixed(2)} · Pitch {activeSound.pitch.toFixed(2)}
: null} {activeSpeaker ?

Speaker

{activeSpeaker.name} · {activeSpeaker.soundId ?? "No sound"}Volume {activeSpeaker.volume.toFixed(2)} · Pitch {activeSpeaker.pitch.toFixed(2)}
: null} {activeParticleSettings ?

Particle Settings

{activeParticleSettings.name} · {activeParticleSettings.totalParticles} particlesLifetime {activeParticleSettings.lifetime.toFixed(2)} · Size {activeParticleSettings.size.toFixed(3)}
: null} + {activeTexture ?

Texture

{activeTexture.name} · Type {activeTexture.type}Noise {activeTexture.noiseScale.toFixed(3)} · Depth {activeTexture.noiseDepth}
: null} + {(snapshot?.libraries?.length ?? 0) > 0 ?

Library Append

{snapshot?.libraries?.slice(0, 16).map((library) => {library.name} · {library.status} · {library.sourcePath})}{libraryAppendError ? {libraryAppendError} : null}
: null} {activeCamera ?

Camera

{activeCamera.projection} · {activeCamera.lensMm.toFixed(1)}mm
: null} {activeLight ?

Light

{activeLight.energy.toFixed(1)} energy
: null} {activeWorld ?

World

Exposure {activeWorld.exposure.toFixed(2)}
: null} @@ -2546,7 +2566,7 @@ export function App() {
void applyEditCommand({ type: "setObjectVisibility", objectId: id, visible })} /> - { commitGreasePencilSelection("CANVAS_2D", additive ? "TOGGLE" : "REPLACE", [point], point, baseSelectionRevision); }} onCommand={(command) => void applyEditCommand(command)} onImportImage={(file) => void importImage(file)} onRequestAsset={(assetId) => { const client = webClientRef.current; if (!client) return; void client.requestAsset(assetId).then((asset) => setEngineStatus(`Asset: ${asset.assetId} (${asset.status})`)).catch((error: unknown) => setEngineStatus(recordDiagnostic("ENGINE", "PBR_ASSET_INVALID", error, { assetId }))); }} onQueryRenderCapability={(request) => { const client = webClientRef.current; if (!client) return; void client.queryRenderCapability(request).then((gate) => setEngineStatus(`Render: ${gate.status} (${gate.capability})`)).catch((error: unknown) => setEngineStatus(recordDiagnostic("ENGINE", "GLB_EXPORT_BLOCKED", error))); }} onApplyDecimate={applyDecimate} onPreviewDecimate={previewDecimate} onGenerateLOD={(meshId, triangleCount) => void generateLOD(meshId, triangleCount)} onSetModifierEnabled={setModifierEnabled} previewActive={Boolean(preview)} onCancelPreview={() => { setPreview(null); setLodLevels(null); setEngineStatus(`Engine: SceneIR r${snapshot?.revision ?? 0}`); }} /> + { commitGreasePencilSelection("CANVAS_2D", additive ? "TOGGLE" : "REPLACE", [point], point, baseSelectionRevision); }} onCommand={(command) => void applyEditCommand(command)} onImportImage={(file) => void importImage(file)} onRequestAsset={(assetId) => { const client = webClientRef.current; if (!client) return; void client.requestAsset(assetId).then((asset) => setEngineStatus(`Asset: ${asset.assetId} (${asset.status})`)).catch((error: unknown) => setEngineStatus(recordDiagnostic("ENGINE", "PBR_ASSET_INVALID", error, { assetId }))); }} onAppendLibraryObject={async (source, request) => { const client = webClientRef.current; if (!client) return; try { const result = await client.appendLibraryObject(source, request); setSnapshot(result.snapshot); setGeometryBuffers(result.geometryBuffers); setNonMeshGeometryBuffers(result.nonMeshGeometryBuffers ?? []); setFrame(result.snapshot.frame.current); projectRevisionRef.current = result.snapshot.revision; setEngineStatus(`Library append: ${result.receipt.sourceDataBlockId}`); } catch (error) { setEngineStatus(recordDiagnostic("ENGINE", "COMMAND_FAILED", error)); } }} onQueryRenderCapability={(request) => { const client = webClientRef.current; if (!client) return; void client.queryRenderCapability(request).then((gate) => setEngineStatus(`Render: ${gate.status} (${gate.capability})`)).catch((error: unknown) => setEngineStatus(recordDiagnostic("ENGINE", "GLB_EXPORT_BLOCKED", error))); }} onApplyDecimate={applyDecimate} onPreviewDecimate={previewDecimate} onGenerateLOD={(meshId, triangleCount) => void generateLOD(meshId, triangleCount)} onSetModifierEnabled={setModifierEnabled} previewActive={Boolean(preview)} onCancelPreview={() => { setPreview(null); setLodLevels(null); setEngineStatus(`Engine: SceneIR r${snapshot?.revision ?? 0}`); }} /> void applyEditCommand({ type: "setFrame", frame: value })} onCommand={(command) => void applyEditCommand(command)} />
{uiState.operatorSearchOpen ? : null} diff --git a/web/app/src/vendor/blender/web_engine.wasm b/web/app/src/vendor/blender/web_engine.wasm index b304f0fc3..441242777 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 550bf812e..d20bd41a3 100644 --- a/web/app/src/workers/web-engine.worker.ts +++ b/web/app/src/workers/web-engine.worker.ts @@ -447,6 +447,16 @@ function assertFutureCapability(payload: Extract candidate.id === payload.dataId); + if (!texture) throw report("NON_MESH_DATA_UNSUPPORTED", `Texture data block is unavailable: ${payload.dataId}`); + if (!validPropertyKeys(payload.properties, ["noiseScale", "noiseDepth", "intensity", "contrast", "saturation"])) throw report("NON_MESH_PROPERTY_INVALID", "Texture properties are empty or contain unsupported fields"); + for (const [key, value] of Object.entries(payload.properties)) { + if (typeof value !== "number" || !Number.isFinite(value) || value < 0 || value > 1_000_000) throw report("NON_MESH_PROPERTY_INVALID", `Texture setting ${key} is outside the bounded range`); + if (key === "noiseDepth" && (!Number.isSafeInteger(value) || value > 30)) throw report("NON_MESH_PROPERTY_INVALID", "Texture noise depth must be an integer between 0 and 30"); + } + return; + } case "setVolumeProperties": { const data = currentSnapshot?.nonMeshData?.find((candidate) => candidate.id === payload.dataId); if (!data || data.type !== "VOLUME") throw report("NON_MESH_DATA_UNSUPPORTED", `N-015 Volume data block is unavailable: ${payload.dataId}`); diff --git a/web/protocol/io-media-commands.ts b/web/protocol/io-media-commands.ts index c38e2dd36..84bdc379e 100644 --- a/web/protocol/io-media-commands.ts +++ b/web/protocol/io-media-commands.ts @@ -19,4 +19,7 @@ export const ioMediaCommands = Object.freeze({ setParticleSettings(dataId: string, properties: IOCommand<"setParticleSettings">["properties"]): IOCommand<"setParticleSettings"> { return { type: "setParticleSettings", dataId, properties: { ...properties } }; }, + setTextureProperties(dataId: string, properties: IOCommand<"setTextureProperties">["properties"]): IOCommand<"setTextureProperties"> { + return { type: "setTextureProperties", dataId, properties: { ...properties } }; + }, } satisfies Record WebEngineEditCommand>); diff --git a/web/protocol/web-engine-capabilities.ts b/web/protocol/web-engine-capabilities.ts index 6e989e8b6..c9531c030 100644 --- a/web/protocol/web-engine-capabilities.ts +++ b/web/protocol/web-engine-capabilities.ts @@ -65,6 +65,7 @@ export const WEB_ENGINE_COMMAND_CAPABILITIES = { setSoundProperties: { family: "AUDIO", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setSpeakerProperties: { family: "AUDIO", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setParticleSettings: { family: "PARTICLE", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, + setTextureProperties: { family: "TEXTURE", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, setVolumeProperties: { family: "VOLUME", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, createGreasePencilLayer: { family: "GREASE_PENCIL", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, removeGreasePencilLayer: { family: "GREASE_PENCIL", route: "MAIN_AUTHORITATIVE", implementation: "SOURCE_BACKED" }, diff --git a/web/protocol/web-engine.ts b/web/protocol/web-engine.ts index de8ab26ea..caedc5b85 100644 --- a/web/protocol/web-engine.ts +++ b/web/protocol/web-engine.ts @@ -129,6 +129,7 @@ export type WebEngineEditCommand = | { type: "setSoundProperties"; dataId: string; properties: { volume?: number; attenuation?: number; pitch?: number; minGain?: number; maxGain?: number; distance?: number; offsetTime?: number } } | { type: "setSpeakerProperties"; dataId: string; properties: { volumeMax?: number; volumeMin?: number; distanceMax?: number; distanceReference?: number; attenuation?: number; coneAngleOuter?: number; coneAngleInner?: number; coneVolumeOuter?: number; volume?: number; pitch?: number } } | { type: "setParticleSettings"; dataId: string; properties: { type?: number; from?: number; distribution?: number; physicsType?: number; totalParticles?: number; start?: number; end?: number; lifetime?: number; size?: number; drawSize?: number } } + | { type: "setTextureProperties"; dataId: string; properties: { noiseScale?: number; noiseDepth?: number; intensity?: number; contrast?: number; saturation?: number } } | { type: "setVolumeProperties"; dataId: string; sourcePath: string; displayDensity: number; interpolation: "NEAREST" | "LINEAR"; stepSize: number; velocityGrid?: string; velocityScale?: number } | { type: "createGreasePencilLayer"; dataId: string; name: string } | { type: "removeGreasePencilLayer"; dataId: string; layerId: string }