diff --git a/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp b/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp index a9312fa97..9bea5a72d 100644 --- a/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp +++ b/blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp @@ -5178,6 +5178,7 @@ json scene_ir_from_blend(const ParsedBlend &blend, {"areaSize", read_float(*blend.sdna, element, "area_size").value_or(0.25f)}, {"areaSizeY", read_float(*blend.sdna, element, "area_sizey").value_or(0.25f)}, {"areaSizeZ", read_float(*blend.sdna, element, "area_sizez").value_or(0.25f)}, + {"clipStart", read_float(*blend.sdna, element, "clipsta").value_or(0.05f)}, {"areaSpread", read_float(*blend.sdna, element, "area_spread").value_or(3.14159265f)}, {"sunAngle", read_float(*blend.sdna, element, "sun_angle").value_or(0.00918f)}}); } 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 3bc7a45fe..4eb7b1a46 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 @@ -5569,6 +5569,29 @@ bool web_engine_blend_main_set_light_area_size_z(WebBlendMainState *state, return true; } +bool web_engine_blend_main_set_light_clip_start(WebBlendMainState *state, + const char *target_id, + const float clip_start, + std::string &error) +{ + if (state == nullptr || state->main == nullptr || target_id == nullptr) { + error = "RENDER_PROPERTY_INVALID: light clip start target is missing"; + return false; + } + Light *light = find_light(state->main, target_id); + if (light == nullptr || !ensure_single_user_data(state->main, &light->id, error)) { + if (error.empty()) error = "RENDER_PROPERTY_INVALID: light was not found"; + return false; + } + if (!std::isfinite(clip_start) || clip_start < 0.0001f || clip_start > 1.0e9f) { + error = "RENDER_PROPERTY_INVALID: light clip start is outside the bounded range"; + return false; + } + light->clipsta = clip_start; + light->id.recalc |= ID_RECALC_PARAMETERS; + return true; +} + bool web_engine_blend_main_set_render_properties(WebBlendMainState *state, const char *target_id, const char *properties_json, @@ -5765,7 +5788,7 @@ bool web_engine_blend_main_set_render_properties(WebBlendMainState *state, if (strncmp(target_id, "light:", 6) == 0) { Light *light = find_light(state->main, target_id); if (light == nullptr || !ensure_single_user_data(state->main, &light->id, error)) return false; - if (!reject_unknown({"type", "areaShape", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "attenuationDistance", "shadowFilterRadius", "shadowMaximumResolution", "shadowJitterOverblur", "cascadeMaxDistance", "cascadeExponent", "cascadeFade", "cascadeCount", "areaSizeZ", "color", "energy", "exposure", "temperature", "useTemperature", + if (!reject_unknown({"type", "areaShape", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "attenuationDistance", "shadowFilterRadius", "shadowMaximumResolution", "shadowJitterOverblur", "cascadeMaxDistance", "cascadeExponent", "cascadeFade", "cascadeCount", "areaSizeZ", "clipStart", "color", "energy", "exposure", "temperature", "useTemperature", "castsShadow", "radius", "spotAngle", "spotBlend", "areaSize", "areaSizeY", "areaSpread", "sunAngle"})) { @@ -5848,6 +5871,13 @@ bool web_engine_blend_main_set_render_properties(WebBlendMainState *state, } if (!web_engine_blend_main_set_light_area_size_z(state, target_id, properties["areaSizeZ"].get(), error)) return false; } + if (properties.contains("clipStart")) { + if (!properties["clipStart"].is_number()) { + error = "RENDER_PROPERTY_INVALID: clipStart must be numeric"; + return false; + } + if (!web_engine_blend_main_set_light_clip_start(state, target_id, properties["clipStart"].get(), error)) return false; + } if (!read_color("color", &light->r) || !read_float("energy", 0.0f, 1.0e9f, light->energy) || !read_float("exposure", -20.0f, 20.0f, light->exposure) || 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 8c3e54546..33e5ae4e1 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 @@ -549,6 +549,10 @@ bool web_engine_blend_main_set_light_area_size_z(WebBlendMainState *state, const char *target_id, float area_size_z, std::string &error); +bool web_engine_blend_main_set_light_clip_start(WebBlendMainState *state, + const char *target_id, + float clip_start, + std::string &error); bool web_engine_blend_main_set_scene_properties(WebBlendMainState *state, const char *target_id, const char *properties_json, diff --git a/docs/EXECUTION_QUEUE.md b/docs/EXECUTION_QUEUE.md index ea25d181e..7f4851f25 100644 --- a/docs/EXECUTION_QUEUE.md +++ b/docs/EXECUTION_QUEUE.md @@ -13,9 +13,9 @@ | 字段 | 值 | | --- | --- | | 里程碑 | WBV2 capability workflow | -| 当前任务 | `WBV2-P601-000` | -| parent manifest | `tests/golden/WBV2-P600-003/manifest.json` | -| 任务卡 | [`tasks/WBV2-P601-000.md`](tasks/WBV2-P601-000.md) | +| 当前任务 | `WBV2-P602-000` | +| parent manifest | `tests/golden/WBV2-P601-003/manifest.json` | +| 任务卡 | [`tasks/WBV2-P602-000.md`](tasks/WBV2-P602-000.md) | | 专项验收 | `node tools/web/check-execution-control-plane.mjs` | | legacy coverage checkpoint | `M16-GAP-00282` | | legacy coverage parent | `tests/golden/M16-GAP-00281/manifest.json` | diff --git a/docs/status/WBV2-P601-000.md b/docs/status/WBV2-P601-000.md new file mode 100644 index 000000000..822eeaace --- /dev/null +++ b/docs/status/WBV2-P601-000.md @@ -0,0 +1,8 @@ +# WBV2-P601-000 status + +- task: `WBV2-P601-000`; parent: `WBV2-P600-003`; status: `done` +- taskClass: `QUEUE_ENABLEMENT`; no Blender capability completion claimed +- capability-family continuation authorized from Blender source +- 6900 inventory: 27 deduplicated batches, 6609 pending rows +- verification and completion overlay: `DEFERRED` +- nextTask: `WBV2-P601-001` diff --git a/docs/status/WBV2-P601-001.md b/docs/status/WBV2-P601-001.md new file mode 100644 index 000000000..459cbe676 --- /dev/null +++ b/docs/status/WBV2-P601-001.md @@ -0,0 +1,8 @@ +# WBV2-P601-001 status + +- task: `WBV2-P601-001`; parent: `WBV2-P601-000`; status: `done` +- taskClass: `QUEUE_ENABLEMENT`; capability: `null`; behaviorMarker: `BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P601-002` diff --git a/docs/status/WBV2-P601-002.md b/docs/status/WBV2-P601-002.md new file mode 100644 index 000000000..330b4d4a5 --- /dev/null +++ b/docs/status/WBV2-P601-002.md @@ -0,0 +1,8 @@ +# WBV2-P601-002 status + +- task: `WBV2-P601-002`; parent: `WBV2-P601-001`; status: `done` +- taskClass: `SOURCE_IMPLEMENTATION`; capability: `CAP-RENDER-LIGHT-CLIP-START`; behaviorMarker: `web_engine_blend_main_set_light_clip_start` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P601-003` diff --git a/docs/status/WBV2-P601-003.md b/docs/status/WBV2-P601-003.md new file mode 100644 index 000000000..4f716e703 --- /dev/null +++ b/docs/status/WBV2-P601-003.md @@ -0,0 +1,8 @@ +# WBV2-P601-003 status + +- task: `WBV2-P601-003`; parent: `WBV2-P601-002`; status: `done` +- taskClass: `INTEGRATION_BUILD`; capabilityId: `null`; behaviorMarker: `INTEGRATION_BUILD_WEB_BUNDLE`; no new capability counted +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P602-000` diff --git a/docs/tasks/WBV2-P601-001.md b/docs/tasks/WBV2-P601-001.md new file mode 100644 index 000000000..cc7c7f282 --- /dev/null +++ b/docs/tasks/WBV2-P601-001.md @@ -0,0 +1,38 @@ +# WBV2-P601-001: index_capability_family_batches + +- task: WBV2-P601-001 +- parent: WBV2-P601-000 +- status: in_progress +- gap: workflow:index_capability_family_batches +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Reuse the 27 deduplicated capability batches and unique behavior keys. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P601-001 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P601-001 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P601-001/` +- Status: `docs/status/WBV2-P601-001.md` +- Manifest: `tests/golden/WBV2-P601-001/manifest.json` +- Rollback: restore WBV2-P601-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P601-002.md b/docs/tasks/WBV2-P601-002.md new file mode 100644 index 000000000..0ec97e754 --- /dev/null +++ b/docs/tasks/WBV2-P601-002.md @@ -0,0 +1,38 @@ +# WBV2-P601-002: implement_capability_family_slice + +- task: WBV2-P601-002 +- parent: WBV2-P601-001 +- status: planned +- gap: workflow:implement_capability_family_slice +- ownerFamily: IMPLEMENTATION +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Implement the next uncovered Blender capability family from the source-backed index. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P601-002 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P601-002 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P601-002/` +- Status: `docs/status/WBV2-P601-002.md` +- Manifest: `tests/golden/WBV2-P601-002/manifest.json` +- Rollback: restore WBV2-P601-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P601-003.md b/docs/tasks/WBV2-P601-003.md new file mode 100644 index 000000000..601cfbf3e --- /dev/null +++ b/docs/tasks/WBV2-P601-003.md @@ -0,0 +1,38 @@ +# WBV2-P601-003: run_capability_family_smoke + +- task: WBV2-P601-003 +- parent: WBV2-P601-002 +- status: planned +- gap: workflow:run_capability_family_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run source and frontend smoke without Chromium parity verification. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P601-003 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P601-003 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P601-003/` +- Status: `docs/status/WBV2-P601-003.md` +- Manifest: `tests/golden/WBV2-P601-003/manifest.json` +- Rollback: restore WBV2-P601-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P602-000.md b/docs/tasks/WBV2-P602-000.md new file mode 100644 index 000000000..3ad93e082 --- /dev/null +++ b/docs/tasks/WBV2-P602-000.md @@ -0,0 +1,35 @@ +# WBV2-P602-000: authorize_capability_family_wave + +- task: WBV2-P602-000 +- parent: WBV2-P601-003 +- status: in_progress +- gap: workflow:authorize_capability_family_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Authorize the next capability-family implementation wave from Blender source. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-root.mjs` + +## 验收 + +- 6900 inventory remains immutable +- capability-family deduplication is reused +- Chromium receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P602-000 --write` + +## 失败边界 + +- missing source, unsupported capability or hash drift remains in_progress/blocked + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P602-000/` +- Status: `docs/status/WBV2-P602-000.md` +- Manifest: `tests/golden/WBV2-P602-000/manifest.json` +- Rollback: restore WBV2-P601-003 as queue parent and leave the wave in_progress. diff --git a/nextTask.md b/nextTask.md index c0407e341..a4a33f39f 100644 --- a/nextTask.md +++ b/nextTask.md @@ -412,10 +412,10 @@ Recorded: 2026-08-29 Asia/Shanghai | Field | Value | | --- | --- | -| Current task when this file was written | `WBV2-P601-000` | +| Current task when this file was written | `WBV2-P602-000` | | Current task state | `in_progress` | -| Parent manifest | `tests/golden/WBV2-P600-003/manifest.json` | -| Current task card | `docs/tasks/WBV2-P601-000.md` | +| Parent manifest | `tests/golden/WBV2-P601-003/manifest.json` | +| Current task card | `docs/tasks/WBV2-P602-000.md` | | Current task-context nextTask | `NONE` | | Focused command | `node tools/web/generate-wbv2-capability-continuation-root.mjs` | diff --git a/tests/golden/WBV2-P601-000/capability-continuation-plan.json b/tests/golden/WBV2-P601-000/capability-continuation-plan.json new file mode 100644 index 000000000..4c08bb72f --- /dev/null +++ b/tests/golden/WBV2-P601-000/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P601", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P601-000", + "phase": "P601", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P600-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P601-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P601-001", + "phase": "P601", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-002", + "phase": "P601", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P601-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-003", + "phase": "P601", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P601-000/capability-continuation-root-report.json b/tests/golden/WBV2-P601-000/capability-continuation-root-report.json new file mode 100644 index 000000000..6c16b0fb9 --- /dev/null +++ b/tests/golden/WBV2-P601-000/capability-continuation-root-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-000", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "QUEUE_ENABLEMENT", + "capabilityId": null, + "behaviorMarker": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "parent": { + "task": "WBV2-P600-003", + "manifest": "tests/golden/WBV2-P600-003/manifest.json", + "manifestSha256": "b7b1b78d95a0dc4d70e36da1df1b8690b6cfb34889e76c09aa5cba32293e88ab" + }, + "sourceAuthority": "blender-5.2.0", + "batching": { + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P601-001" +} diff --git a/tests/golden/WBV2-P601-000/manifest.json b/tests/golden/WBV2-P601-000/manifest.json new file mode 100644 index 000000000..420a1c160 --- /dev/null +++ b/tests/golden/WBV2-P601-000/manifest.json @@ -0,0 +1,42 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-000", + "parentTask": "WBV2-P600-003", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "QUEUE_ENABLEMENT", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P600-003/manifest.json", + "sha256": "b852267c49de28a57e8d107d65083ae2791cf4a915ecd51c528454af41e98997" + }, + "plan": { + "path": "tests/golden/WBV2-P601-000/capability-continuation-plan.json", + "sha256": "c88694d649ac6f909f1007b07aaf04fca492ea1eec15a250da404bfb924cfa99" + }, + "report": { + "path": "tests/golden/WBV2-P601-000/capability-continuation-root-report.json", + "sha256": "35a70599fbe414301b1010a039e02e48a85385445e0196d42b7ab0890fe5f125" + }, + "status": { + "path": "docs/status/WBV2-P601-000.md", + "sha256": "c3fe0f46681808ca95ac7a45e65441a8aa443738821a569a3e9c853e61b9a9e2" + } + }, + "assertions": { + "capabilityId": null, + "behaviorMarker": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P601-001" +} diff --git a/tests/golden/WBV2-P601-000/task-context.json b/tests/golden/WBV2-P601-000/task-context.json new file mode 100644 index 000000000..6e8f7cbfa --- /dev/null +++ b/tests/golden/WBV2-P601-000/task-context.json @@ -0,0 +1,163 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-000", + "parentTask": "WBV2-P600-003", + "status": "in_progress", + "goal": "Authorize the next capability-family implementation wave from Blender source.", + "scope": { + "gap": "workflow:authorize_capability_family_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P601-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3453, + "contextRemainingTokens": 862 + }, + "source": { + "bytes": 6451, + "tokens": 1614 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P601-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P601-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P601-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P601-001", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P601-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P600-003/manifest.json", + "parentStatus": "docs/status/WBV2-P600-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P601-000.md", + "tests/golden/WBV2-P600-003/manifest.json", + "docs/status/WBV2-P600-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-P600-003", + "parentTask": "WBV2-P600-002", + "status": "done", + "nextTask": "WBV2-P601-000", + "artifactCount": 8 + }, + "statusSummary": [ + "# WBV2-P600-003 status", + "- task: `WBV2-P600-003`; parent: `WBV2-P600-002`; status: `done`", + "- taskClass: `INTEGRATION_BUILD`; capabilityId: `null`; behaviorMarker: `INTEGRATION_BUILD_WEB_BUNDLE`; no new capability counted", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P601-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1060, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 36, + "taskTokens": 265 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2807, + "lines": 51, + "tokens": 702 + }, + { + "path": "docs/tasks/WBV2-P601-000.md", + "bytes": 1060, + "lines": 36, + "tokens": 265 + }, + { + "path": "tests/golden/WBV2-P600-003/manifest.json", + "bytes": 2133, + "lines": 61, + "tokens": 534 + }, + { + "path": "docs/status/WBV2-P600-003.md", + "bytes": 451, + "lines": 9, + "tokens": 113 + } + ], + "sourceTokens": 1614, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1614, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2638, + "serializedContextTokens": 626, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P601-001/capability-continuation-plan.json b/tests/golden/WBV2-P601-001/capability-continuation-plan.json new file mode 100644 index 000000000..b6ed42224 --- /dev/null +++ b/tests/golden/WBV2-P601-001/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P601", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P601-000", + "phase": "P601", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P600-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P601-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P601-001", + "phase": "P601", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-002", + "phase": "P601", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P601-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-003", + "phase": "P601", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P601-001/implementation-report.json b/tests/golden/WBV2-P601-001/implementation-report.json new file mode 100644 index 000000000..f856eebfb --- /dev/null +++ b/tests/golden/WBV2-P601-001/implementation-report.json @@ -0,0 +1,35 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "QUEUE_ENABLEMENT", + "status": "PASS", + "capabilityId": null, + "behaviorMarker": "BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX", + "family": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourcePaths": [ + "tools/web/build-wbv2-capability-implementation-index.mjs", + "tests/golden/WBV2-P27-001/verification-batch-plan.json" + ], + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/build-wbv2-capability-implementation-index.mjs", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P601-002" +} diff --git a/tests/golden/WBV2-P601-001/manifest.json b/tests/golden/WBV2-P601-001/manifest.json new file mode 100644 index 000000000..f59b8807e --- /dev/null +++ b/tests/golden/WBV2-P601-001/manifest.json @@ -0,0 +1,56 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-001", + "parentTask": "WBV2-P601-000", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "QUEUE_ENABLEMENT", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P601-000/manifest.json", + "sha256": "c644eba6198bf2cf998258beb159c61c2b16be391970c22081e21f39c939dc91" + }, + "source1": { + "path": "tools/web/build-wbv2-capability-implementation-index.mjs", + "sha256": "5010e52764f49b52e69140c9b263debb5b53ecb9bec0e2f7ef76f5d6bc9c4704" + }, + "source2": { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "sha256": "56dddc2e4c380f364d1760dfd9bc7a6be04c1bd8979e0c2aeaa69ae80e80a14e" + }, + "report": { + "path": "tests/golden/WBV2-P601-001/implementation-report.json", + "sha256": "a07600a0922f1fb917dc1f44a1e7bbe5ace38a454488f0a53f544ea9bf65d571" + }, + "status": { + "path": "docs/status/WBV2-P601-001.md", + "sha256": "56389e7a30360c52a198e407257a8796cbdf1296cd93fc14a2d9d25bde4eed04" + }, + "plan": { + "path": "tests/golden/WBV2-P601-001/capability-continuation-plan.json", + "sha256": "be4b2cb3dff632cea57f08d3ce1745e766c36663583631bd9ea1b4d6295e9231" + }, + "taskContext": { + "path": "tests/golden/WBV2-P601-001/task-context.json", + "sha256": "f69e541496fd41aeb990ae9fe65b25dfb4e01150edc87918b9616ad7a4d72c64" + } + }, + "assertions": { + "capabilityFamily": "INVENTORY.CAPABILITY_BATCH_INDEX", + "capabilityId": null, + "behaviorMarker": "BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX", + "sourceBacked": false, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P601-002" +} diff --git a/tests/golden/WBV2-P601-001/task-context.json b/tests/golden/WBV2-P601-001/task-context.json new file mode 100644 index 000000000..f18132b87 --- /dev/null +++ b/tests/golden/WBV2-P601-001/task-context.json @@ -0,0 +1,168 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-001", + "parentTask": "WBV2-P601-000", + "status": "in_progress", + "goal": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "scope": { + "gap": "workflow:index_capability_family_batches", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P601-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4007, + "contextRemainingTokens": 1001 + }, + "source": { + "bytes": 5897, + "tokens": 1475 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P601-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P601-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P601-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P601-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P601-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P601-000/manifest.json", + "parentStatus": "docs/status/WBV2-P601-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P601-001.md", + "tests/golden/WBV2-P601-000/manifest.json", + "docs/status/WBV2-P601-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-P601-000", + "parentTask": "WBV2-P600-003", + "status": "done", + "nextTask": "WBV2-P601-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P601-000 status", + "- task: `WBV2-P601-000`; parent: `WBV2-P600-003`; status: `done`", + "- taskClass: `QUEUE_ENABLEMENT`; no Blender capability completion claimed", + "- capability-family continuation authorized from Blender source", + "- 6900 inventory: 27 deduplicated batches, 6609 pending rows", + "- verification and completion overlay: `DEFERRED`", + "- nextTask: `WBV2-P601-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1308, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 327 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2807, + "lines": 51, + "tokens": 702 + }, + { + "path": "docs/tasks/WBV2-P601-001.md", + "bytes": 1308, + "lines": 39, + "tokens": 327 + }, + { + "path": "tests/golden/WBV2-P601-000/manifest.json", + "bytes": 1416, + "lines": 43, + "tokens": 354 + }, + { + "path": "docs/status/WBV2-P601-000.md", + "bytes": 366, + "lines": 9, + "tokens": 92 + } + ], + "sourceTokens": 1475, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1475, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2499, + "serializedContextTokens": 624, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P601-002/capability-continuation-plan.json b/tests/golden/WBV2-P601-002/capability-continuation-plan.json new file mode 100644 index 000000000..e630a3c6e --- /dev/null +++ b/tests/golden/WBV2-P601-002/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P601", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P601-000", + "phase": "P601", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P600-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P601-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P601-001", + "phase": "P601", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-002", + "phase": "P601", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P601-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-003", + "phase": "P601", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P601-002/implementation-report.json b/tests/golden/WBV2-P601-002/implementation-report.json new file mode 100644 index 000000000..1945476ad --- /dev/null +++ b/tests/golden/WBV2-P601-002/implementation-report.json @@ -0,0 +1,54 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "SOURCE_IMPLEMENTATION", + "status": "PASS", + "capabilityId": "CAP-RENDER-LIGHT-CLIP-START", + "behaviorMarker": "web_engine_blend_main_set_light_clip_start", + "family": "RENDER.LIGHT_CLIP_START", + "sourcePaths": [ + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", + "blender-5.2.0/source/blender/makesdna/DNA_light_types.h", + "web/protocol/scene-ir.ts", + "web/protocol/web-engine.ts", + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/app/App.tsx", + "web/app/src/vendor/blender/web_engine.wasm", + "web/app/public/vendor/blender/web_engine.wasm" + ], + "command": "Blender Main Light clipsta through setLightProperties", + "hashes": { + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp": { "before": "e54495afee70cbc112937128e95fa3d1f52fa748b5754b4b53afa86993f8e4c0", "after": "5d4a00f5e84a48d0d4be02a0673e79b2c6f267d3efa6523190aa79be7f9fdc0d" }, + "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h": { "before": "84363a5369b073b2271e5a0cc5e351b66f32594581cd6e0e0e26768797397e14", "after": "e2d4d5ee8ae964ba83260a2beaf36361ae1c51081e03b9ac8b0983b5320c0429" }, + "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": { "before": "d552b8bcf808ba5acb97d7c5c787ccf7d6ba3417fa0ec6195e7b78d840a7c711", "after": "758f763617689d17920a21211daba8a7dd48fa48e86d0d2426b4bc6058cae513" }, + "web/protocol/scene-ir.ts": { "before": "7778d22cb04863da0da9e55938cfe597d891bf8526bbe02795f863f6f35badc1", "after": "e1ad50e88fcd75597d6c81b16e29cfa9d0f34b390cead67a9d787dfcf00f1924" }, + "web/protocol/web-engine.ts": { "before": "499dcb423a7b7ed4fc0656c0ba943b5ce86dbdd5bd5c5d3576dbdcdb8e66e7cb", "after": "dbade7aa849d9fc07f73a2081816a6b83fbea162679c31843ea8273dbc7cab18" }, + "web/app/src/workers/web-engine.worker.ts": { "before": "0aa64942707d612ce39d156868bcade12ecacc1c452769fdab6b28be0b587e16", "after": "4c213f100ec9cb089e3a3d3f57f40ecaf165751b3a973b53388313e2b493e081" }, + "web/app/src/app/App.tsx": { "before": "843d7e54d682c71e92436796f7e94cc4d6b69163689f64404b7b0a101f78cb54", "after": "27005c27552913c292a0389a1657423af22e14f08698800ee85fd012e5cf3d4a" }, + "web/app/src/vendor/blender/web_engine.wasm": { "before": "c86825d62d86319fe062f0f3d146f27892b9a3961e05f328723b52533e68dd1b", "after": "97b3c5b6307cd5ecd6a66b0ae9f84fd096d816c32b15e4b8b9731e8c1a533b36" } + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P601-003" +} diff --git a/tests/golden/WBV2-P601-002/manifest.json b/tests/golden/WBV2-P601-002/manifest.json new file mode 100644 index 000000000..0579c1546 --- /dev/null +++ b/tests/golden/WBV2-P601-002/manifest.json @@ -0,0 +1,92 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-002", + "parentTask": "WBV2-P601-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "SOURCE_IMPLEMENTATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P601-001/manifest.json", + "sha256": "ef73f0c25d455c552861c69a6409eeed6b47f7492f85eeb67f0861c853d15474" + }, + "source1": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", + "sha256": "5d4a00f5e84a48d0d4be02a0673e79b2c6f267d3efa6523190aa79be7f9fdc0d" + }, + "source2": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", + "sha256": "e2d4d5ee8ae964ba83260a2beaf36361ae1c51081e03b9ac8b0983b5320c0429" + }, + "source3": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "e58055f9ce5319e0e6305e3cc885e5084e2fc2b85ddd114966af7099502d34de" + }, + "source4": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", + "sha256": "758f763617689d17920a21211daba8a7dd48fa48e86d0d2426b4bc6058cae513" + }, + "source5": { + "path": "blender-5.2.0/source/blender/makesdna/DNA_light_types.h", + "sha256": "cce7ac9b663b521fdc5119e0febcc570c759c5341de5f8d842b8c9ec23cd85b0" + }, + "source6": { + "path": "web/protocol/scene-ir.ts", + "sha256": "e1ad50e88fcd75597d6c81b16e29cfa9d0f34b390cead67a9d787dfcf00f1924" + }, + "source7": { + "path": "web/protocol/web-engine.ts", + "sha256": "dbade7aa849d9fc07f73a2081816a6b83fbea162679c31843ea8273dbc7cab18" + }, + "source8": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "4c213f100ec9cb089e3a3d3f57f40ecaf165751b3a973b53388313e2b493e081" + }, + "source9": { + "path": "web/app/src/app/App.tsx", + "sha256": "27005c27552913c292a0389a1657423af22e14f08698800ee85fd012e5cf3d4a" + }, + "source10": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "97b3c5b6307cd5ecd6a66b0ae9f84fd096d816c32b15e4b8b9731e8c1a533b36" + }, + "source11": { + "path": "web/app/public/vendor/blender/web_engine.wasm", + "sha256": "97b3c5b6307cd5ecd6a66b0ae9f84fd096d816c32b15e4b8b9731e8c1a533b36" + }, + "report": { + "path": "tests/golden/WBV2-P601-002/implementation-report.json", + "sha256": "c4908ab36fd136dc66277f00f8af5eee32da4b67b54be917053a78a526b09cea" + }, + "status": { + "path": "docs/status/WBV2-P601-002.md", + "sha256": "06a29bf66c4dad35dc1b54a8798834a5f6d8fcc7c4228ab08f52f472b2fd1b6b" + }, + "plan": { + "path": "tests/golden/WBV2-P601-002/capability-continuation-plan.json", + "sha256": "c2467294097116ce227cd43915f7718e59f3517603d852110b2e32ba243898aa" + }, + "taskContext": { + "path": "tests/golden/WBV2-P601-002/task-context.json", + "sha256": "83e893468c3db1ae44c9df94fdb518bb081ed10333fe9cdb6d9890df4c2795b5" + } + }, + "assertions": { + "capabilityFamily": "RENDER.LIGHT_CLIP_START", + "capabilityId": "CAP-RENDER-LIGHT-CLIP-START", + "behaviorMarker": "web_engine_blend_main_set_light_clip_start", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P601-003" +} diff --git a/tests/golden/WBV2-P601-002/task-context.json b/tests/golden/WBV2-P601-002/task-context.json new file mode 100644 index 000000000..b377c9608 --- /dev/null +++ b/tests/golden/WBV2-P601-002/task-context.json @@ -0,0 +1,168 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-002", + "parentTask": "WBV2-P601-001", + "status": "planned", + "goal": "Implement the next uncovered Blender capability family from the source-backed index.", + "scope": { + "gap": "workflow:implement_capability_family_slice", + "ownerFamily": "IMPLEMENTATION", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P601-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3305, + "contextRemainingTokens": 824 + }, + "source": { + "bytes": 6599, + "tokens": 1652 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P601-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P601-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P601-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P601-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P601-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P601-001/manifest.json", + "parentStatus": "docs/status/WBV2-P601-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P601-002.md", + "tests/golden/WBV2-P601-001/manifest.json", + "docs/status/WBV2-P601-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-P601-001", + "parentTask": "WBV2-P601-000", + "status": "done", + "nextTask": "WBV2-P601-002", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P601-001 status", + "- task: `WBV2-P601-001`; parent: `WBV2-P601-000`; status: `done`", + "- taskClass: `QUEUE_ENABLEMENT`; capability: `null`; behaviorMarker: `BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P601-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1329, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 333 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2807, + "lines": 51, + "tokens": 702 + }, + { + "path": "docs/tasks/WBV2-P601-002.md", + "bytes": 1329, + "lines": 39, + "tokens": 333 + }, + { + "path": "tests/golden/WBV2-P601-001/manifest.json", + "bytes": 2026, + "lines": 57, + "tokens": 507 + }, + { + "path": "docs/status/WBV2-P601-001.md", + "bytes": 437, + "lines": 9, + "tokens": 110 + } + ], + "sourceTokens": 1652, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1652, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2676, + "serializedContextTokens": 629, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P601-003/capability-continuation-plan.json b/tests/golden/WBV2-P601-003/capability-continuation-plan.json new file mode 100644 index 000000000..1e0522415 --- /dev/null +++ b/tests/golden/WBV2-P601-003/capability-continuation-plan.json @@ -0,0 +1,181 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P601", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P601-000", + "phase": "P601", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P600-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P601-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P601-001", + "phase": "P601", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-002", + "phase": "P601", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P601-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P601-003", + "phase": "P601", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P601-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p601-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P601-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P602-000", + "phase": "P602", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P601-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p602-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P602-000.md", + "behavior": "Authorize the next capability-family implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P601-003/implementation-report.json b/tests/golden/WBV2-P601-003/implementation-report.json new file mode 100644 index 000000000..20ce78685 --- /dev/null +++ b/tests/golden/WBV2-P601-003/implementation-report.json @@ -0,0 +1,36 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-003", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "INTEGRATION_BUILD", + "status": "PASS", + "capabilityId": null, + "behaviorMarker": "INTEGRATION_BUILD_WEB_BUNDLE", + "family": "INTEGRATION.BUILD", + "sourcePaths": [ + "web/protocol/web-engine-capabilities.ts", + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "command": "npm --prefix web run build", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P602-000" +} diff --git a/tests/golden/WBV2-P601-003/manifest.json b/tests/golden/WBV2-P601-003/manifest.json new file mode 100644 index 000000000..0bfc1565f --- /dev/null +++ b/tests/golden/WBV2-P601-003/manifest.json @@ -0,0 +1,60 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-003", + "parentTask": "WBV2-P601-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "taskClass": "INTEGRATION_BUILD", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P601-002/manifest.json", + "sha256": "51205973acaa92a6c3d2b7f60cdbdebc1812fd23323e40e9622c6844621ce4b7" + }, + "source1": { + "path": "web/protocol/web-engine-capabilities.ts", + "sha256": "d6739e27f9617c641bbbe29d49f520e342441d8708f0fa8087b8eae80ea6ffcb" + }, + "source2": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "4c213f100ec9cb089e3a3d3f57f40ecaf165751b3a973b53388313e2b493e081" + }, + "source3": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "97b3c5b6307cd5ecd6a66b0ae9f84fd096d816c32b15e4b8b9731e8c1a533b36" + }, + "report": { + "path": "tests/golden/WBV2-P601-003/implementation-report.json", + "sha256": "63afd947e8b38b21760d8cd4e87f6f97bbaf4c2ad2c057242a1ff0632aac8195" + }, + "status": { + "path": "docs/status/WBV2-P601-003.md", + "sha256": "f3a04c083d68022b42b36f5f596f717a7314a529f0227589573de154fb7d4855" + }, + "plan": { + "path": "tests/golden/WBV2-P601-003/capability-continuation-plan.json", + "sha256": "ceee067e9c845922eba009cde23dcf2a04e971db11d813093d9fa0e77cc0398e" + }, + "taskContext": { + "path": "tests/golden/WBV2-P601-003/task-context.json", + "sha256": "a45c78515ed95a80d6d6b3b2322d08e754c892f1746d2501150e4fe2fa7b583a" + } + }, + "assertions": { + "capabilityFamily": "INTEGRATION.BUILD", + "capabilityId": null, + "behaviorMarker": "INTEGRATION_BUILD_WEB_BUNDLE", + "sourceBacked": false, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P602-000" +} diff --git a/tests/golden/WBV2-P601-003/task-context.json b/tests/golden/WBV2-P601-003/task-context.json new file mode 100644 index 000000000..6076e4cab --- /dev/null +++ b/tests/golden/WBV2-P601-003/task-context.json @@ -0,0 +1,168 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P601-003", + "parentTask": "WBV2-P601-002", + "status": "planned", + "goal": "Run source and frontend smoke without Chromium parity verification.", + "scope": { + "gap": "workflow:run_capability_family_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P601-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 1771, + "contextRemainingTokens": 441 + }, + "source": { + "bytes": 8133, + "tokens": 2035 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P601-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P601-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P601-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P602-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P601-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P601-002/manifest.json", + "parentStatus": "docs/status/WBV2-P601-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P601-003.md", + "tests/golden/WBV2-P601-002/manifest.json", + "docs/status/WBV2-P601-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-P601-002", + "parentTask": "WBV2-P601-001", + "status": "done", + "nextTask": "WBV2-P601-003", + "artifactCount": 16 + }, + "statusSummary": [ + "# WBV2-P601-002 status", + "- task: `WBV2-P601-002`; parent: `WBV2-P601-001`; status: `done`", + "- taskClass: `SOURCE_IMPLEMENTATION`; capability: `CAP-RENDER-LIGHT-CLIP-START`; behaviorMarker: `web_engine_blend_main_set_light_clip_start`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P601-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1293, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 324 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2807, + "lines": 51, + "tokens": 702 + }, + { + "path": "docs/tasks/WBV2-P601-003.md", + "bytes": 1293, + "lines": 39, + "tokens": 324 + }, + { + "path": "tests/golden/WBV2-P601-002/manifest.json", + "bytes": 3570, + "lines": 93, + "tokens": 893 + }, + { + "path": "docs/status/WBV2-P601-002.md", + "bytes": 463, + "lines": 9, + "tokens": 116 + } + ], + "sourceTokens": 2035, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 2035, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 3059, + "serializedContextTokens": 622, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index 2e838637f..effe6d5ba 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,5 +1,5 @@ -{"id":"WBV2-P600-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P600","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P600-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P600","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P600-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P600","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P600-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P600","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P601-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P601","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P601-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P601","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P601-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P601","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P601-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P601","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P601-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P601","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P602-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P602","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} diff --git a/tests/golden/WBV2/task-index.json b/tests/golden/WBV2/task-index.json index f13570880..a3d895c4f 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-P600-003/capability-continuation-plan.json","sha256":"a83f2cf64a7d77cc682542858856a8587087113575baa443c0ef2a07edb5dabc"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"71b66b2ce948fe3ab15661494eedcaf8327dd3fefc1c76424bf9be33bb80ee83"},"taskCount":5,"activeTask":"WBV2-P601-000","entries":{"WBV2-P600-000":{"line":0,"offset":0,"length":404,"previous":"WBV2-P599-003","next":"WBV2-P600-001"},"WBV2-P600-001":{"line":1,"offset":404,"length":403,"previous":"WBV2-P600-000","next":"WBV2-P600-002"},"WBV2-P600-002":{"line":2,"offset":807,"length":412,"previous":"WBV2-P600-001","next":"WBV2-P600-003"},"WBV2-P600-003":{"line":3,"offset":1219,"length":399,"previous":"WBV2-P600-002","next":"WBV2-P601-000"},"WBV2-P601-000":{"line":4,"offset":1618,"length":401,"previous":"WBV2-P600-003","next":null}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P601-003/capability-continuation-plan.json","sha256":"ceee067e9c845922eba009cde23dcf2a04e971db11d813093d9fa0e77cc0398e"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"4de4babe1b7f5a04d1a8b4d2f6662512a4025e34ae8fc6341423e4f1e9bb4502"},"taskCount":5,"activeTask":"WBV2-P602-000","entries":{"WBV2-P601-000":{"line":0,"offset":0,"length":404,"previous":"WBV2-P600-003","next":"WBV2-P601-001"},"WBV2-P601-001":{"line":1,"offset":404,"length":403,"previous":"WBV2-P601-000","next":"WBV2-P601-002"},"WBV2-P601-002":{"line":2,"offset":807,"length":412,"previous":"WBV2-P601-001","next":"WBV2-P601-003"},"WBV2-P601-003":{"line":3,"offset":1219,"length":399,"previous":"WBV2-P601-002","next":"WBV2-P602-000"},"WBV2-P602-000":{"line":4,"offset":1618,"length":401,"previous":"WBV2-P601-003","next":null}}} diff --git a/tools/web/generate-wbv2-capability-continuation-slice.mjs b/tools/web/generate-wbv2-capability-continuation-slice.mjs index e5a287ae4..a1609c764 100644 --- a/tools/web/generate-wbv2-capability-continuation-slice.mjs +++ b/tools/web/generate-wbv2-capability-continuation-slice.mjs @@ -27,7 +27,11 @@ assert.equal(parent.nextTask, task); const commands = { 1: [process.execPath, "tools/web/build-wbv2-capability-implementation-index.mjs"], 2: null, 3: ["npm", "--prefix", "web", "run", "build"] }; const files = { 1: ["tools/web/build-wbv2-capability-implementation-index.mjs", "tests/golden/WBV2-P27-001/verification-batch-plan.json"], 2: phase >= 59 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 57 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 56 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 55 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 54 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 53 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 52 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"] : phase >= 51 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 50 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 49 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"] : phase >= 47 ? ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "web/protocol/web-engine.ts"] : ["web/app/src/app/App.tsx", "web/protocol/web-engine-capabilities.ts"], 3: ["web/protocol/web-engine-capabilities.ts", "web/app/src/workers/web-engine.worker.ts", "web/app/src/vendor/blender/web_engine.wasm"] }; const markers = { 1: "BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX", 2: phase >= 71 ? "web_engine_blend_main_set_scene_view_layer_pass_settings" : phase >= 70 ? "web_engine_blend_main_set_scene_line_settings" : phase >= 69 ? "web_engine_blend_main_set_scene_stamp_settings" : phase >= 68 ? "web_engine_blend_main_set_scene_multiview_settings" : phase >= 67 ? "web_engine_blend_main_set_scene_sampling_settings" : phase >= 66 ? "web_engine_blend_main_set_scene_performance_settings" : phase >= 65 ? "web_engine_blend_main_set_scene_compositor_settings" : phase >= 64 ? "web_engine_blend_main_set_scene_hair_settings" : phase >= 63 ? "web_engine_blend_main_set_scene_motion_blur" : phase >= 62 ? "web_engine_blend_main_set_scene_image_format" : phase >= 61 ? "web_engine_blend_main_set_scene_color_management" : phase >= 60 ? "web_engine_blend_main_set_scene_simplify_settings" : phase >= 59 ? "web_engine_blend_main_set_scene_border_settings" : phase >= 58 ? "web_engine_blend_main_set_scene_collection_settings" : phase >= 57 ? "web_engine_blend_main_set_scene_view_layer_settings" : phase >= 56 ? "web_engine_blend_main_set_scene_bindings" : phase >= 55 ? "web_engine_blend_main_set_scene_pipeline_settings" : phase >= 54 ? "web_engine_blend_main_set_scene_timeline_settings" : phase >= 53 ? "web_engine_blend_main_set_scene_unit_settings" : phase >= 52 ? "web_engine_blend_main_set_scene_audio_settings" : phase >= 51 ? "web_engine_blend_main_set_scene_render_settings" : phase >= 50 ? "web_engine_blend_main_set_scene_properties" : phase >= 49 ? "web_engine_blend_main_set_physics_simulation" : phase >= 47 ? "web_engine_blend_main_set_geometry_node_graph" : "capability-family-workbench", 3: "WEB_ENGINE_COMMAND_CAPABILITIES" }; -if (phase === 600) { +if (phase === 601) { + files[2] = ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", "blender-5.2.0/source/blender/makesdna/DNA_light_types.h", "web/protocol/scene-ir.ts", "web/protocol/web-engine.ts", "web/app/src/workers/web-engine.worker.ts", "web/app/src/app/App.tsx", "web/app/src/vendor/blender/web_engine.wasm", "web/app/public/vendor/blender/web_engine.wasm"]; + markers[2] = "web_engine_blend_main_set_light_clip_start"; +} +else if (phase === 600) { files[2] = ["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", "blender-5.2.0/source/blender/makesdna/DNA_light_types.h", "web/protocol/scene-ir.ts", "web/protocol/web-engine.ts", "web/app/src/workers/web-engine.worker.ts", "web/app/src/app/App.tsx", "web/app/src/vendor/blender/web_engine.wasm", "web/app/public/vendor/blender/web_engine.wasm"]; markers[2] = "web_engine_blend_main_set_light_area_size_z"; } @@ -77,9 +81,9 @@ if (commands[index]) execFileSync(commands[index][0], commands[index].slice(1), const nextIndex = index + 1; const nextTask = nextIndex <= 3 ? `WBV2-P${phase}-${String(nextIndex).padStart(3, "0")}` : `WBV2-P${phase + 1}-000`; const family = index === 1 ? "INVENTORY.CAPABILITY_BATCH_INDEX" : index === 2 && phase >= 71 ? "RENDER.VIEW_LAYER_PASSES" : index === 2 && phase >= 70 ? "RENDER.LINE_SETTINGS" : index === 2 && phase >= 69 ? "RENDER.STAMP_SETTINGS" : index === 2 && phase >= 68 ? "RENDER.MULTIVIEW_SETTINGS" : index === 2 && phase >= 67 ? "RENDER.SAMPLING_SETTINGS" : index === 2 && phase >= 66 ? "PERFORMANCE.RENDER_SETTINGS" : index === 2 && phase >= 65 ? "COMPOSITOR.EXECUTION_SETTINGS" : index === 2 && phase >= 64 ? "CORE_SCENE_GRAPH.HAIR_SETTINGS" : index === 2 && phase >= 63 ? "CORE_SCENE_GRAPH.MOTION_BLUR" : index === 2 && phase >= 62 ? "CORE_SCENE_GRAPH.IMAGE_FORMAT" : index === 2 && phase >= 61 ? "CORE_SCENE_GRAPH.COLOR_MANAGEMENT" : index === 2 && phase >= 60 ? "CORE_SCENE_GRAPH.SIMPLIFY_SETTINGS" : index === 2 && phase >= 59 ? "CORE_SCENE_GRAPH.BORDER_SETTINGS" : index === 2 && phase >= 58 ? "CORE_SCENE_GRAPH.COLLECTION_SETTINGS" : index === 2 && phase >= 57 ? "CORE_SCENE_GRAPH.VIEW_LAYER_SETTINGS" : index === 2 && phase >= 56 ? "CORE_SCENE_GRAPH.BINDINGS" : index === 2 && phase >= 55 ? "CORE_SCENE_GRAPH.PIPELINE_SETTINGS" : index === 2 && phase >= 54 ? "CORE_SCENE_GRAPH.TIMELINE_SETTINGS" : index === 2 && phase >= 53 ? "CORE_SCENE_GRAPH.UNIT_SETTINGS" : index === 2 && phase >= 52 ? "CORE_SCENE_GRAPH.AUDIO_SETTINGS" : index === 2 && phase >= 51 ? "CORE_SCENE_GRAPH.RENDER_SETTINGS" : index === 2 && phase >= 50 ? "CORE_SCENE_GRAPH.SCENE_PROPERTIES" : index === 2 && phase >= 49 ? "SIMULATION.NATIVE_MANIFEST_BINDING" : index === 2 && phase >= 47 ? "GEOMETRY_NODES.NATIVE_MATERIALIZATION" : index === 2 ? "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH" : "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE"; -const reportedFamily = phase === 600 && index === 2 ? "RENDER.LIGHT_AREA_SIZE_Z" : phase === 599 && index === 2 ? "RENDER.LIGHT_CASCADE_CONTROLS" : phase === 598 && index === 2 ? "RENDER.LIGHT_SHADOW_CONTROLS" : phase === 597 && index === 2 ? "RENDER.LIGHT_CONTRIBUTION_FACTORS" : phase === 596 && index === 2 ? "RENDER.LIGHT_AREA_SHAPE" : phase === 595 && index === 2 ? "RENDER.LIGHT_TYPE" : phase === 77 && index === 2 ? "RENDER.WORLD_LIGHTGROUP_MEMBERSHIP" : phase === 76 && index === 2 ? "RENDER.OBJECT_LIGHTGROUP_MEMBERSHIP" : phase === 75 && index === 2 ? "RENDER.VIEW_LAYER_LIGHTGROUPS" : phase === 74 && index === 2 ? "RENDER.VIEW_LAYER_AOV" : phase === 73 && index === 2 ? "ARCHITECTURE.UNIFIED_WASM_JSON_ABI" : family; const taskClass = index === 1 ? "QUEUE_ENABLEMENT" : index === 2 ? "SOURCE_IMPLEMENTATION" : "INTEGRATION_BUILD"; -const capabilityId = index === 1 ? null : phase === 600 && index === 2 ? "CAP-RENDER-LIGHT-AREA-SIZE-Z" : phase === 599 && index === 2 ? "CAP-RENDER-LIGHT-CASCADE-CONTROLS" : phase === 598 && index === 2 ? "CAP-RENDER-LIGHT-SHADOW-CONTROLS" : phase === 597 && index === 2 ? "CAP-RENDER-LIGHT-CONTRIBUTION-FACTORS" : phase === 596 && index === 2 ? "CAP-RENDER-LIGHT-AREA-SHAPE" : phase === 595 && index === 2 ? "CAP-RENDER-LIGHT-TYPE" : `CAPABILITY-${reportedFamily.replaceAll(".", "-")}`; +const reportedFamily = taskClass === "INTEGRATION_BUILD" ? "INTEGRATION.BUILD" : phase === 601 && index === 2 ? "RENDER.LIGHT_CLIP_START" : phase === 600 && index === 2 ? "RENDER.LIGHT_AREA_SIZE_Z" : phase === 599 && index === 2 ? "RENDER.LIGHT_CASCADE_CONTROLS" : phase === 598 && index === 2 ? "RENDER.LIGHT_SHADOW_CONTROLS" : phase === 597 && index === 2 ? "RENDER.LIGHT_CONTRIBUTION_FACTORS" : phase === 596 && index === 2 ? "RENDER.LIGHT_AREA_SHAPE" : phase === 595 && index === 2 ? "RENDER.LIGHT_TYPE" : phase === 77 && index === 2 ? "RENDER.WORLD_LIGHTGROUP_MEMBERSHIP" : phase === 76 && index === 2 ? "RENDER.OBJECT_LIGHTGROUP_MEMBERSHIP" : phase === 75 && index === 2 ? "RENDER.VIEW_LAYER_LIGHTGROUPS" : phase === 74 && index === 2 ? "RENDER.VIEW_LAYER_AOV" : phase === 73 && index === 2 ? "ARCHITECTURE.UNIFIED_WASM_JSON_ABI" : family; +const capabilityId = taskClass !== "SOURCE_IMPLEMENTATION" ? null : phase === 601 && index === 2 ? "CAP-RENDER-LIGHT-CLIP-START" : phase === 600 && index === 2 ? "CAP-RENDER-LIGHT-AREA-SIZE-Z" : phase === 599 && index === 2 ? "CAP-RENDER-LIGHT-CASCADE-CONTROLS" : phase === 598 && index === 2 ? "CAP-RENDER-LIGHT-SHADOW-CONTROLS" : phase === 597 && index === 2 ? "CAP-RENDER-LIGHT-CONTRIBUTION-FACTORS" : phase === 596 && index === 2 ? "CAP-RENDER-LIGHT-AREA-SHAPE" : phase === 595 && index === 2 ? "CAP-RENDER-LIGHT-TYPE" : `CAPABILITY-${reportedFamily.replaceAll(".", "-")}`; const behaviorMarker = index === 2 ? markers[2] : markers[index]; const out = `tests/golden/${task}`; const reportPath = `${out}/implementation-report.json`; diff --git a/web/app/public/vendor/blender/web_engine.wasm b/web/app/public/vendor/blender/web_engine.wasm index 11eadf96c..f90865c07 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 cb4016e72..476726648 100644 --- a/web/app/src/app/App.tsx +++ b/web/app/src/app/App.tsx @@ -937,7 +937,7 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea {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贡献因子 D {(activeLight.diffuseFactor ?? 1).toFixed(2)} · S {(activeLight.specularFactor ?? 1).toFixed(2)} · T {(activeLight.transmissionFactor ?? 1).toFixed(2)} · V {(activeLight.volumeFactor ?? 1).toFixed(2)}
阴影控制 A {(activeLight.attenuationDistance ?? 40).toFixed(1)} · Filter {(activeLight.shadowFilterRadius ?? 1).toFixed(2)} · MaxRes {(activeLight.shadowMaximumResolution ?? 0.001).toFixed(4)} · Overblur {(activeLight.shadowJitterOverblur ?? 10).toFixed(1)}
级联阴影距离 {(activeLight.cascadeMaxDistance ?? 200).toFixed(1)} · 指数 {(activeLight.cascadeExponent ?? 0.8).toFixed(2)} · 淡出 {(activeLight.cascadeFade ?? 0.1).toFixed(2)} · 层数 {activeLight.cascadeCount ?? 4}
Area 深度 {(activeLight.areaSizeZ ?? 0.25).toFixed(2)}
: null} + {activeLight ?

Light

{activeLight.energy.toFixed(1)} energy贡献因子 D {(activeLight.diffuseFactor ?? 1).toFixed(2)} · S {(activeLight.specularFactor ?? 1).toFixed(2)} · T {(activeLight.transmissionFactor ?? 1).toFixed(2)} · V {(activeLight.volumeFactor ?? 1).toFixed(2)}
阴影控制 A {(activeLight.attenuationDistance ?? 40).toFixed(1)} · Filter {(activeLight.shadowFilterRadius ?? 1).toFixed(2)} · MaxRes {(activeLight.shadowMaximumResolution ?? 0.001).toFixed(4)} · Overblur {(activeLight.shadowJitterOverblur ?? 10).toFixed(1)}
级联阴影距离 {(activeLight.cascadeMaxDistance ?? 200).toFixed(1)} · 指数 {(activeLight.cascadeExponent ?? 0.8).toFixed(2)} · 淡出 {(activeLight.cascadeFade ?? 0.1).toFixed(2)} · 层数 {activeLight.cascadeCount ?? 4}
Area 深度 {(activeLight.areaSizeZ ?? 0.25).toFixed(2)} · Clip start {(activeLight.clipStart ?? 0.05).toFixed(3)}
: null} {activeWorld ?

World

Exposure {activeWorld.exposure.toFixed(2)} · Lightgroup {activeWorld.lightgroup ?? "None"}
: null} {activeScene ?

Scene Render

{activeScene.name} · {activeScene.renderEngine ?? "UNKNOWN"}{activeScene.colorManagement ? `${activeScene.colorManagement.viewTransform} · ${activeScene.colorManagement.look} · Exposure ${activeScene.colorManagement.exposure.toFixed(2)} · Gamma ${activeScene.colorManagement.gamma.toFixed(2)}` : "Color management unavailable"}
: null} {activeScene?.colorManagement ?

Color Management

{activeScene.colorManagement.displayDevice} · {activeScene.colorManagement.temperature?.toFixed(0) ?? "-"} K · Tint {activeScene.colorManagement.tint?.toFixed(2) ?? "-"}
: null} diff --git a/web/app/src/vendor/blender/web_engine.wasm b/web/app/src/vendor/blender/web_engine.wasm index 11eadf96c..f90865c07 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 02a43a0ad..d37ba28c0 100644 --- a/web/app/src/workers/web-engine.worker.ts +++ b/web/app/src/workers/web-engine.worker.ts @@ -541,7 +541,7 @@ function assertFutureCapability(payload: Extract candidate.id === payload.dataId); const properties = payload.properties; - if (!light || !validPropertyKeys(properties, ["type", "areaShape", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "attenuationDistance", "shadowFilterRadius", "shadowMaximumResolution", "shadowJitterOverblur", "cascadeMaxDistance", "cascadeExponent", "cascadeFade", "cascadeCount", "areaSizeZ", "color", "energy", "exposure", "temperature", "useTemperature", "castsShadow", "radius", "spotAngle", "spotBlend", "areaSize", "areaSizeY", "areaSpread", "sunAngle"])) throw report("RENDER_PROPERTY_INVALID", "Light target or properties are invalid"); + if (!light || !validPropertyKeys(properties, ["type", "areaShape", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "attenuationDistance", "shadowFilterRadius", "shadowMaximumResolution", "shadowJitterOverblur", "cascadeMaxDistance", "cascadeExponent", "cascadeFade", "cascadeCount", "areaSizeZ", "clipStart", "color", "energy", "exposure", "temperature", "useTemperature", "castsShadow", "radius", "spotAngle", "spotBlend", "areaSize", "areaSizeY", "areaSpread", "sunAngle"])) throw report("RENDER_PROPERTY_INVALID", "Light target or properties are invalid"); if (properties.type !== undefined && !["POINT", "SUN", "SPOT", "AREA"].includes(properties.type)) throw report("RENDER_PROPERTY_INVALID", "Light type is invalid"); if (properties.areaShape !== undefined && ![0, 1, 4, 5].includes(properties.areaShape)) throw report("RENDER_PROPERTY_INVALID", "Light area shape is invalid"); for (const field of ["diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor"] as const) if (properties[field] !== undefined && !boundedNumber(properties[field], 0, 1)) throw report("RENDER_PROPERTY_INVALID", `Light ${field} is outside the bounded range`); @@ -549,8 +549,9 @@ function assertFutureCapability(payload: Extract 4)) throw report("RENDER_PROPERTY_INVALID", "Light cascade count is outside the bounded range"); if (properties.areaSizeZ !== undefined && !boundedNumber(properties.areaSizeZ, 0.0001, 1e9)) throw report("RENDER_PROPERTY_INVALID", "Light areaSizeZ is outside the bounded range"); + if (properties.clipStart !== undefined && !boundedNumber(properties.clipStart, 0.0001, 1e9)) throw report("RENDER_PROPERTY_INVALID", "Light clipStart is outside the bounded range"); if (properties.color !== undefined && (!Array.isArray(properties.color) || properties.color.length !== 3 || properties.color.some((value) => !boundedNumber(value, 0, 100)))) throw report("RENDER_PROPERTY_INVALID", "Light color is invalid"); - for (const [field, minimum, maximum] of [["energy", 0, 1e9], ["exposure", -20, 20], ["temperature", 800, 20000], ["radius", 0, 1e9], ["spotAngle", 0.0001, Math.PI], ["spotBlend", 0, 1], ["areaSize", 0.0001, 1e9], ["areaSizeY", 0.0001, 1e9], ["areaSizeZ", 0.0001, 1e9], ["areaSpread", 0.0001, Math.PI], ["sunAngle", 0, Math.PI]] as const) { + for (const [field, minimum, maximum] of [["energy", 0, 1e9], ["exposure", -20, 20], ["temperature", 800, 20000], ["radius", 0, 1e9], ["spotAngle", 0.0001, Math.PI], ["spotBlend", 0, 1], ["areaSize", 0.0001, 1e9], ["areaSizeY", 0.0001, 1e9], ["areaSizeZ", 0.0001, 1e9], ["clipStart", 0.0001, 1e9], ["areaSpread", 0.0001, Math.PI], ["sunAngle", 0, Math.PI]] as const) { const value = properties[field]; if (value !== undefined && !boundedNumber(value, minimum, maximum)) throw report("RENDER_PROPERTY_INVALID", `Light ${field} is outside the bounded range`); } diff --git a/web/protocol/scene-ir.ts b/web/protocol/scene-ir.ts index 5e920129c..a4bcbf117 100644 --- a/web/protocol/scene-ir.ts +++ b/web/protocol/scene-ir.ts @@ -252,6 +252,7 @@ export interface LightIR { areaSize: number; areaSizeY: number; areaSizeZ?: number; + clipStart?: number; sunAngle: number; diffuseFactor?: number; specularFactor?: number; @@ -1557,7 +1558,7 @@ export function parseSceneSnapshotIR(value: unknown): SceneSnapshotIR { for (const field of ["energy", "radius", "spotAngle", "spotBlend", "areaShape", "areaSize", "areaSizeY", "sunAngle"]) { requireNumber(light[field], `lights[${index}].${field}`); } - for (const field of ["exposure", "temperature", "areaSpread", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "attenuationDistance", "shadowFilterRadius", "shadowMaximumResolution", "shadowJitterOverblur", "cascadeMaxDistance", "cascadeExponent", "cascadeFade", "cascadeCount"] as const) if (light[field] !== undefined) requireNumber(light[field], `lights[${index}].${field}`); + for (const field of ["exposure", "temperature", "areaSpread", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "attenuationDistance", "shadowFilterRadius", "shadowMaximumResolution", "shadowJitterOverblur", "cascadeMaxDistance", "cascadeExponent", "cascadeFade", "cascadeCount", "clipStart"] as const) if (light[field] !== undefined) requireNumber(light[field], `lights[${index}].${field}`); for (const field of ["useTemperature", "castsShadow"] as const) if (light[field] !== undefined) requireBoolean(light[field], `lights[${index}].${field}`); } for (const [index, world] of (value.worlds as unknown[]).entries()) { diff --git a/web/protocol/web-engine.ts b/web/protocol/web-engine.ts index cbb17bba1..fe6f9fc1d 100644 --- a/web/protocol/web-engine.ts +++ b/web/protocol/web-engine.ts @@ -140,7 +140,7 @@ export type WebEngineEditCommand = | { type: "setGreasePencilStrokes"; dataId: string; layerId: string; frame: number; baseRevision?: number; strokes: Array<{ cyclic?: boolean; materialIndex?: number; points: Array<{ position: [number, number, number]; radius?: number; opacity?: number; vertexColor?: [number, number, number, number] }> }> } | { type: "setVertexColors"; meshId: string; attributeName: string; domain: "POINT" | "CORNER"; indices: number[]; colors: number[] } | { type: "setVertexWeights"; objectId: string; vertexGroup: string; indices: number[]; values: number[]; normalize?: boolean; limit?: number; mirror?: boolean; mirrorAxis?: 0 | 1 | 2; mirrorTolerance?: number } - | { type: "setLightProperties"; dataId: string; properties: { type?: "POINT" | "SUN" | "SPOT" | "AREA"; areaShape?: 0 | 1 | 4 | 5; diffuseFactor?: number; specularFactor?: number; transmissionFactor?: number; volumeFactor?: number; attenuationDistance?: number; shadowFilterRadius?: number; shadowMaximumResolution?: number; shadowJitterOverblur?: number; cascadeMaxDistance?: number; cascadeExponent?: number; cascadeFade?: number; cascadeCount?: number; color?: [number, number, number]; energy?: number; exposure?: number; temperature?: number; useTemperature?: boolean; castsShadow?: boolean; radius?: number; spotAngle?: number; spotBlend?: number; areaSize?: number; areaSizeY?: number; areaSizeZ?: number; areaSpread?: number; sunAngle?: number } } + | { type: "setLightProperties"; dataId: string; properties: { type?: "POINT" | "SUN" | "SPOT" | "AREA"; areaShape?: 0 | 1 | 4 | 5; diffuseFactor?: number; specularFactor?: number; transmissionFactor?: number; volumeFactor?: number; attenuationDistance?: number; shadowFilterRadius?: number; shadowMaximumResolution?: number; shadowJitterOverblur?: number; cascadeMaxDistance?: number; cascadeExponent?: number; cascadeFade?: number; cascadeCount?: number; areaSizeZ?: number; clipStart?: number; color?: [number, number, number]; energy?: number; exposure?: number; temperature?: number; useTemperature?: boolean; castsShadow?: boolean; radius?: number; spotAngle?: number; spotBlend?: number; areaSize?: number; areaSizeY?: number; areaSpread?: number; sunAngle?: number } } | { type: "setCameraProperties"; dataId: string; properties: { projection?: "PERSPECTIVE" | "ORTHOGRAPHIC"; lensMm?: number; sensorWidthMm?: number; sensorHeightMm?: number; sensorFit?: 0 | 1 | 2; shift?: [number, number]; near?: number; far?: number; orthoScale?: number; depthOfField?: { enabled?: boolean; focusDistance?: number; apertureFStop?: number; apertureBlades?: number; apertureRotation?: number; apertureRatio?: number } } } | { type: "setWorldProperties"; dataId: string; properties: { color?: [number, number, number]; exposure?: number; mist?: { enabled?: boolean; type?: "QUADRATIC" | "LINEAR" | "INVERSE_QUADRATIC"; start?: number; depth?: number; intensity?: number; height?: number } } } | { type: "setSceneProperties"; dataId: string; properties: { renderEngine?: string; viewTransform?: string; look?: string; exposure?: number; gamma?: number } }