feat(web): wire Blender light contribution factors
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-08-30 18:36:55 +08:00
parent 2f00b3e322
commit 8bc5d61b75
41 changed files with 1967 additions and 24 deletions

View File

@@ -5163,6 +5163,10 @@ json scene_ir_from_blend(const ParsedBlend &blend,
{"spotAngle", read_float(*blend.sdna, element, "spotsize").value_or(0.785398f)},
{"spotBlend", read_float(*blend.sdna, element, "spotblend").value_or(0.15f)},
{"areaShape", read_integer(*blend.sdna, element, "area_shape").value_or(0)},
{"diffuseFactor", read_float(*blend.sdna, element, "diff_fac").value_or(1.0f)},
{"specularFactor", read_float(*blend.sdna, element, "spec_fac").value_or(1.0f)},
{"transmissionFactor", read_float(*blend.sdna, element, "transmission_fac").value_or(1.0f)},
{"volumeFactor", read_float(*blend.sdna, element, "volume_fac").value_or(1.0f)},
{"areaSize", read_float(*blend.sdna, element, "area_size").value_or(0.25f)},
{"areaSizeY", read_float(*blend.sdna, element, "area_sizey").value_or(0.25f)},
{"areaSpread", read_float(*blend.sdna, element, "area_spread").value_or(3.14159265f)},

View File

@@ -5451,6 +5451,38 @@ bool web_engine_blend_main_set_light_area_shape(WebBlendMainState *state,
return true;
}
bool web_engine_blend_main_set_light_contribution_factors(WebBlendMainState *state,
const char *target_id,
const float diffuse_factor,
const float specular_factor,
const float transmission_factor,
const float volume_factor,
std::string &error)
{
if (state == nullptr || state->main == nullptr || target_id == nullptr) {
error = "RENDER_PROPERTY_INVALID: light contribution 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;
}
const float values[] = {diffuse_factor, specular_factor, transmission_factor, volume_factor};
for (const float value : values) {
if (!std::isfinite(value) || value < 0.0f || value > 1.0f) {
error = "RENDER_PROPERTY_INVALID: light contribution factor is outside the bounded range";
return false;
}
}
light->diff_fac = diffuse_factor;
light->spec_fac = specular_factor;
light->transmission_fac = transmission_factor;
light->volume_fac = volume_factor;
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,
@@ -5647,7 +5679,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", "color", "energy", "exposure", "temperature", "useTemperature",
if (!reject_unknown({"type", "areaShape", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor", "color", "energy", "exposure", "temperature", "useTemperature",
"castsShadow", "radius", "spotAngle", "spotBlend", "areaSize",
"areaSizeY", "areaSpread", "sunAngle"}))
{
@@ -5668,6 +5700,22 @@ bool web_engine_blend_main_set_render_properties(WebBlendMainState *state,
}
if (!web_engine_blend_main_set_light_area_shape(state, target_id, properties["areaShape"].get<int>(), error)) return false;
}
if (properties.contains("diffuseFactor") || properties.contains("specularFactor") || properties.contains("transmissionFactor") || properties.contains("volumeFactor")) {
const auto factor = [&](const char *key, const float current) {
if (!properties.contains(key)) return current;
if (!properties[key].is_number()) {
error = std::string("RENDER_PROPERTY_INVALID: ") + key + " must be numeric";
return -1.0f;
}
return properties[key].get<float>();
};
const float diffuse = factor("diffuseFactor", light->diff_fac);
const float specular = factor("specularFactor", light->spec_fac);
const float transmission = factor("transmissionFactor", light->transmission_fac);
const float volume = factor("volumeFactor", light->volume_fac);
if (diffuse < 0.0f || specular < 0.0f || transmission < 0.0f || volume < 0.0f ||
!web_engine_blend_main_set_light_contribution_factors(state, target_id, diffuse, specular, transmission, volume, 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) ||

View File

@@ -524,6 +524,13 @@ bool web_engine_blend_main_set_light_area_shape(WebBlendMainState *state,
const char *target_id,
int area_shape,
std::string &error);
bool web_engine_blend_main_set_light_contribution_factors(WebBlendMainState *state,
const char *target_id,
float diffuse_factor,
float specular_factor,
float transmission_factor,
float volume_factor,
std::string &error);
bool web_engine_blend_main_set_scene_properties(WebBlendMainState *state,
const char *target_id,
const char *properties_json,

View File

@@ -13,9 +13,9 @@
| 字段 | 值 |
| --- | --- |
| 里程碑 | WBV2 capability workflow |
| 当前任务 | `WBV2-P597-000` |
| parent manifest | `tests/golden/WBV2-P596-003/manifest.json` |
| 任务卡 | [`tasks/WBV2-P597-000.md`](tasks/WBV2-P597-000.md) |
| 当前任务 | `WBV2-P598-000` |
| parent manifest | `tests/golden/WBV2-P597-003/manifest.json` |
| 任务卡 | [`tasks/WBV2-P598-000.md`](tasks/WBV2-P598-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` |

View File

@@ -0,0 +1,8 @@
# WBV2-P597-000 status
- task: `WBV2-P597-000`; parent: `WBV2-P596-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-P597-001`

View File

@@ -0,0 +1,8 @@
# WBV2-P597-001 status
- task: `WBV2-P597-001`; parent: `WBV2-P597-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-P597-002`

View File

@@ -0,0 +1,8 @@
# WBV2-P597-002 status
- task: `WBV2-P597-002`; parent: `WBV2-P597-001`; status: `done`
- taskClass: `SOURCE_IMPLEMENTATION`; capability: `CAP-RENDER-LIGHT-CONTRIBUTION-FACTORS`; behaviorMarker: `web_engine_blend_main_set_light_contribution_factors`
- 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-P597-003`

View File

@@ -0,0 +1,8 @@
# WBV2-P597-003 status
- task: `WBV2-P597-003`; parent: `WBV2-P597-002`; status: `done`
- taskClass: `INTEGRATION_BUILD`; capability: `CAPABILITY-IMPLEMENTATION-CAPABILITY_FAMILY_SMOKE`; behaviorMarker: `WEB_ENGINE_COMMAND_CAPABILITIES`
- 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-P598-000`

View File

@@ -0,0 +1,38 @@
# WBV2-P597-001: index_capability_family_batches
- task: WBV2-P597-001
- parent: WBV2-P597-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-P597-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-P597-001 --write`
## 失败边界
- missing source or unsupported capability remains in_progress/blocked
- representative implementation is never declared as full-family parity
## 交付与回滚
- Reports: `tests/golden/WBV2-P597-001/`
- Status: `docs/status/WBV2-P597-001.md`
- Manifest: `tests/golden/WBV2-P597-001/manifest.json`
- Rollback: restore WBV2-P597-000 as queue parent and leave the task in_progress.

View File

@@ -0,0 +1,38 @@
# WBV2-P597-002: implement_capability_family_slice
- task: WBV2-P597-002
- parent: WBV2-P597-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-P597-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-P597-002 --write`
## 失败边界
- missing source or unsupported capability remains in_progress/blocked
- representative implementation is never declared as full-family parity
## 交付与回滚
- Reports: `tests/golden/WBV2-P597-002/`
- Status: `docs/status/WBV2-P597-002.md`
- Manifest: `tests/golden/WBV2-P597-002/manifest.json`
- Rollback: restore WBV2-P597-001 as queue parent and leave the task in_progress.

View File

@@ -0,0 +1,38 @@
# WBV2-P597-003: run_capability_family_smoke
- task: WBV2-P597-003
- parent: WBV2-P597-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-P597-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-P597-003 --write`
## 失败边界
- missing source or unsupported capability remains in_progress/blocked
- representative implementation is never declared as full-family parity
## 交付与回滚
- Reports: `tests/golden/WBV2-P597-003/`
- Status: `docs/status/WBV2-P597-003.md`
- Manifest: `tests/golden/WBV2-P597-003/manifest.json`
- Rollback: restore WBV2-P597-002 as queue parent and leave the task in_progress.

View File

@@ -0,0 +1,35 @@
# WBV2-P598-000: authorize_capability_family_wave
- task: WBV2-P598-000
- parent: WBV2-P597-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-P598-000 --write`
## 失败边界
- missing source, unsupported capability or hash drift remains in_progress/blocked
## 交付与回滚
- Reports: `tests/golden/WBV2-P598-000/`
- Status: `docs/status/WBV2-P598-000.md`
- Manifest: `tests/golden/WBV2-P598-000/manifest.json`
- Rollback: restore WBV2-P597-003 as queue parent and leave the wave in_progress.

View File

@@ -412,10 +412,10 @@ Recorded: 2026-08-29 Asia/Shanghai
| Field | Value |
| --- | --- |
| Current task when this file was written | `WBV2-P597-000` |
| Current task when this file was written | `WBV2-P598-000` |
| Current task state | `in_progress` |
| Parent manifest | `tests/golden/WBV2-P596-003/manifest.json` |
| Current task card | `docs/tasks/WBV2-P597-000.md` |
| Parent manifest | `tests/golden/WBV2-P597-003/manifest.json` |
| Current task card | `docs/tasks/WBV2-P598-000.md` |
| Current task-context nextTask | `NONE` |
| Focused command | `node tools/web/generate-wbv2-capability-continuation-root.mjs` |

View File

@@ -19,11 +19,11 @@
},
"source2": {
"path": "web/app/src/workers/web-engine.worker.ts",
"sha256": "fada4a8e329fc1d75ef2f9362bafb800d80fd58649a5deea63b3cb216522f496"
"sha256": "f45061a65a1e89c6dec8c0ac06f878797eaf0ad4ab24f7f6c55a2f8cb3256ff9"
},
"source3": {
"path": "web/app/src/vendor/blender/web_engine.wasm",
"sha256": "2948780b8130f88e69140c02cf4c6f2604ac59d55209b9541b6c80bb503b377c"
"sha256": "bffd99c0dbbe637ee3758832ee66e4e4452d7e7d0ab706778c6927f33c263533"
},
"report": {
"path": "tests/golden/WBV2-P596-003/implementation-report.json",

View File

@@ -0,0 +1,151 @@
{
"schemaVersion": 1,
"planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P597",
"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-P597-000",
"phase": "P597",
"title": "authorize_capability_family_wave",
"kind": "enabling",
"owner": "PROGRAM",
"dependsOn": [
"WBV2-P596-003"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-000",
"gate": "G1",
"card": "docs/tasks/WBV2-P597-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-P597-001",
"phase": "P597",
"title": "index_capability_family_batches",
"kind": "feature",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-000"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-001",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-002",
"phase": "P597",
"title": "implement_capability_family_slice",
"kind": "feature",
"owner": "IMPLEMENTATION",
"dependsOn": [
"WBV2-P597-001"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-002",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-003",
"phase": "P597",
"title": "run_capability_family_smoke",
"kind": "enabling",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-002"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-003",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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
}
]
}

View File

@@ -0,0 +1,33 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-000",
"operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION",
"taskClass": "QUEUE_ENABLEMENT",
"capabilityId": null,
"behaviorMarker": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION",
"status": "PASS",
"parent": {
"task": "WBV2-P596-003",
"manifest": "tests/golden/WBV2-P596-003/manifest.json",
"manifestSha256": "37c6ec30b47b8053509cc13bac37e769f29c685a4f97c005e3c7c44f96da90b9"
},
"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-P597-001"
}

View File

@@ -0,0 +1,42 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-000",
"parentTask": "WBV2-P596-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-P596-003/manifest.json",
"sha256": "c5b72dd525014e0ba4bfb2d5361d1761a88dbb45e924ee17f50e351bc46f238f"
},
"plan": {
"path": "tests/golden/WBV2-P597-000/capability-continuation-plan.json",
"sha256": "88c8cdc81f6ebdb1d709120361aa90ca5896c7255cb956325071e7cc73e3600a"
},
"report": {
"path": "tests/golden/WBV2-P597-000/capability-continuation-root-report.json",
"sha256": "9c1b6791ff7db2cb88610eec116c93207b28afac329cca5b27e9a0eaa34c61eb"
},
"status": {
"path": "docs/status/WBV2-P597-000.md",
"sha256": "9b2d6e2c2bd30e7b59cbaa4913237a747b56760d075564fdc15e0ecd74667806"
}
},
"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-P597-001"
}

View File

@@ -0,0 +1,163 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-000",
"parentTask": "WBV2-P596-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-P597-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-P597-000/",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "docs/status/WBV2-P597-000.md",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "tests/golden/WBV2-P597-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-P597-001",
"sourceDocuments": {
"queue": "docs/EXECUTION_QUEUE.md",
"taskCard": "docs/tasks/WBV2-P597-000.md",
"taskIndex": "tests/golden/WBV2/task-index.json",
"parentManifest": "tests/golden/WBV2-P596-003/manifest.json",
"parentStatus": "docs/status/WBV2-P596-003.md"
},
"readPolicy": {
"required": [
"docs/EXECUTION_QUEUE.md",
"docs/tasks/WBV2-P597-000.md",
"tests/golden/WBV2-P596-003/manifest.json",
"docs/status/WBV2-P596-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-P596-003",
"parentTask": "WBV2-P596-002",
"status": "done",
"nextTask": "WBV2-P597-000",
"artifactCount": 8
},
"statusSummary": [
"# WBV2-P596-003 status",
"- task: `WBV2-P596-003`; parent: `WBV2-P596-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-P597-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-P597-000.md",
"bytes": 1060,
"lines": 36,
"tokens": 265
},
{
"path": "tests/golden/WBV2-P596-003/manifest.json",
"bytes": 2133,
"lines": 61,
"tokens": 534
},
{
"path": "docs/status/WBV2-P596-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
}
}

View File

@@ -0,0 +1,151 @@
{
"schemaVersion": 1,
"planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P597",
"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-P597-000",
"phase": "P597",
"title": "authorize_capability_family_wave",
"kind": "enabling",
"owner": "PROGRAM",
"dependsOn": [
"WBV2-P596-003"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-000",
"gate": "G1",
"card": "docs/tasks/WBV2-P597-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-P597-001",
"phase": "P597",
"title": "index_capability_family_batches",
"kind": "feature",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-000"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-001",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-002",
"phase": "P597",
"title": "implement_capability_family_slice",
"kind": "feature",
"owner": "IMPLEMENTATION",
"dependsOn": [
"WBV2-P597-001"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-002",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-003",
"phase": "P597",
"title": "run_capability_family_smoke",
"kind": "enabling",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-002"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-003",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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
}
]
}

View File

@@ -0,0 +1,35 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-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-P597-002"
}

View File

@@ -0,0 +1,56 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-001",
"parentTask": "WBV2-P597-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-P597-000/manifest.json",
"sha256": "43e3a2e0a68606679c30ae13a8239ff158ae5eb7d41d14f669d5bd66cdbed484"
},
"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-P597-001/implementation-report.json",
"sha256": "1ed1bcf53989361de99e2088a33208318fd2aad647e1cf8102cedc3d9ea9be4a"
},
"status": {
"path": "docs/status/WBV2-P597-001.md",
"sha256": "8a4cc33f9756aa4117f5a4a1f5d49a768f56d6f2e0fd800d7830a04415eb8fc4"
},
"plan": {
"path": "tests/golden/WBV2-P597-001/capability-continuation-plan.json",
"sha256": "d2a43c92500fc5c2dbcf50fba2694e45bd9c6440a012f797960b1527ef5f8681"
},
"taskContext": {
"path": "tests/golden/WBV2-P597-001/task-context.json",
"sha256": "116d60d8929355bb40586cdcfa5daf57ddd8259fd10d092d835fce77676814e8"
}
},
"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-P597-002"
}

View File

@@ -0,0 +1,168 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-001",
"parentTask": "WBV2-P597-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-P597-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-P597-001/",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "docs/status/WBV2-P597-001.md",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "tests/golden/WBV2-P597-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-P597-002",
"sourceDocuments": {
"queue": "docs/EXECUTION_QUEUE.md",
"taskCard": "docs/tasks/WBV2-P597-001.md",
"taskIndex": "tests/golden/WBV2/task-index.json",
"parentManifest": "tests/golden/WBV2-P597-000/manifest.json",
"parentStatus": "docs/status/WBV2-P597-000.md"
},
"readPolicy": {
"required": [
"docs/EXECUTION_QUEUE.md",
"docs/tasks/WBV2-P597-001.md",
"tests/golden/WBV2-P597-000/manifest.json",
"docs/status/WBV2-P597-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-P597-000",
"parentTask": "WBV2-P596-003",
"status": "done",
"nextTask": "WBV2-P597-001",
"artifactCount": 4
},
"statusSummary": [
"# WBV2-P597-000 status",
"- task: `WBV2-P597-000`; parent: `WBV2-P596-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-P597-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-P597-001.md",
"bytes": 1308,
"lines": 39,
"tokens": 327
},
{
"path": "tests/golden/WBV2-P597-000/manifest.json",
"bytes": 1416,
"lines": 43,
"tokens": 354
},
{
"path": "docs/status/WBV2-P597-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
}
}

View File

@@ -0,0 +1,151 @@
{
"schemaVersion": 1,
"planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P597",
"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-P597-000",
"phase": "P597",
"title": "authorize_capability_family_wave",
"kind": "enabling",
"owner": "PROGRAM",
"dependsOn": [
"WBV2-P596-003"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-000",
"gate": "G1",
"card": "docs/tasks/WBV2-P597-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-P597-001",
"phase": "P597",
"title": "index_capability_family_batches",
"kind": "feature",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-000"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-001",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-002",
"phase": "P597",
"title": "implement_capability_family_slice",
"kind": "feature",
"owner": "IMPLEMENTATION",
"dependsOn": [
"WBV2-P597-001"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-002",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-003",
"phase": "P597",
"title": "run_capability_family_smoke",
"kind": "enabling",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-002"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-003",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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
}
]
}

View File

@@ -0,0 +1,43 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-002",
"operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION",
"taskClass": "SOURCE_IMPLEMENTATION",
"status": "PASS",
"capabilityId": "CAP-RENDER-LIGHT-CONTRIBUTION-FACTORS",
"behaviorMarker": "web_engine_blend_main_set_light_contribution_factors",
"family": "RENDER.LIGHT_CONTRIBUTION_FACTORS",
"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",
"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": "existing source-backed workbench wiring",
"batching": {
"sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json",
"batchCount": 27,
"pendingRows": 6609,
"deduplication": true
},
"verification": {
"status": "DEFERRED",
"chromium": false,
"e2eReceipts": false,
"completionOverlay": false
},
"inventory": {
"total": 6900,
"legacyCompleted": 281,
"legacyPending": 6618,
"effectiveCompleted": 290,
"effectivePending": 6609
},
"nextTask": "WBV2-P597-003"
}

View File

@@ -0,0 +1,88 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-002",
"parentTask": "WBV2-P597-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-P597-001/manifest.json",
"sha256": "4d7d8460bca112761c4ddc6df03abe7e261d947ae081834d42e2627280ba3ba1"
},
"source1": {
"path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
"sha256": "bec542248f1bed254000bf02d92ef16a495224c3620b8258917caf20c2867338"
},
"source2": {
"path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
"sha256": "44de22b605c2a8f7dfcc7c1aa18c931c092e31fa6a01c38e450b888692690171"
},
"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": "a6cc6bf1bbd925ba13a8f7e51f32a55be156fdf05b5a107c7862d63529811397"
},
"source5": {
"path": "web/protocol/scene-ir.ts",
"sha256": "3c073c897f825dc2624a97c468273554fb88577e70602a30fb75f900b99cf59b"
},
"source6": {
"path": "web/protocol/web-engine.ts",
"sha256": "47035b41b2b46ea1eaa4d4f43a56c12b3b3c89ed3fc7346c130f3c716bb01825"
},
"source7": {
"path": "web/app/src/workers/web-engine.worker.ts",
"sha256": "f45061a65a1e89c6dec8c0ac06f878797eaf0ad4ab24f7f6c55a2f8cb3256ff9"
},
"source8": {
"path": "web/app/src/app/App.tsx",
"sha256": "d16adf3f56273f936085cc1d16ba39b1e6497eed56c38225eeca3778b45dc83a"
},
"source9": {
"path": "web/app/src/vendor/blender/web_engine.wasm",
"sha256": "bffd99c0dbbe637ee3758832ee66e4e4452d7e7d0ab706778c6927f33c263533"
},
"source10": {
"path": "web/app/public/vendor/blender/web_engine.wasm",
"sha256": "bffd99c0dbbe637ee3758832ee66e4e4452d7e7d0ab706778c6927f33c263533"
},
"report": {
"path": "tests/golden/WBV2-P597-002/implementation-report.json",
"sha256": "6d6b93424b899fce683f2628ebbae2cc5df307b686b64bc7b7014c1940957f50"
},
"status": {
"path": "docs/status/WBV2-P597-002.md",
"sha256": "28ad01245bc656086f504cc56646fd54b81c2c4fb157c756f2a3d1df261c4bec"
},
"plan": {
"path": "tests/golden/WBV2-P597-002/capability-continuation-plan.json",
"sha256": "0e68fc2f5f3c78be5b502218c516fac14ca248ce07eee5e2b7ebc3cff874d060"
},
"taskContext": {
"path": "tests/golden/WBV2-P597-002/task-context.json",
"sha256": "89e319cc7027b84ef7dff69a324e7badee6fbdf2f2ccc80ebd2df035a0bbcad6"
}
},
"assertions": {
"capabilityFamily": "RENDER.LIGHT_CONTRIBUTION_FACTORS",
"capabilityId": "CAP-RENDER-LIGHT-CONTRIBUTION-FACTORS",
"behaviorMarker": "web_engine_blend_main_set_light_contribution_factors",
"sourceBacked": true,
"batchCount": 27,
"pendingRows": 6609,
"verificationDeferred": true,
"completionOverlayWritten": false,
"inventoryTotal": 6900,
"effectiveCompleted": 290,
"effectivePending": 6609,
"historicalReproduction": false
},
"nextTask": "WBV2-P597-003"
}

View File

@@ -0,0 +1,168 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-002",
"parentTask": "WBV2-P597-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-P597-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-P597-002/",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "docs/status/WBV2-P597-002.md",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "tests/golden/WBV2-P597-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-P597-003",
"sourceDocuments": {
"queue": "docs/EXECUTION_QUEUE.md",
"taskCard": "docs/tasks/WBV2-P597-002.md",
"taskIndex": "tests/golden/WBV2/task-index.json",
"parentManifest": "tests/golden/WBV2-P597-001/manifest.json",
"parentStatus": "docs/status/WBV2-P597-001.md"
},
"readPolicy": {
"required": [
"docs/EXECUTION_QUEUE.md",
"docs/tasks/WBV2-P597-002.md",
"tests/golden/WBV2-P597-001/manifest.json",
"docs/status/WBV2-P597-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-P597-001",
"parentTask": "WBV2-P597-000",
"status": "done",
"nextTask": "WBV2-P597-002",
"artifactCount": 7
},
"statusSummary": [
"# WBV2-P597-001 status",
"- task: `WBV2-P597-001`; parent: `WBV2-P597-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-P597-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-P597-002.md",
"bytes": 1329,
"lines": 39,
"tokens": 333
},
{
"path": "tests/golden/WBV2-P597-001/manifest.json",
"bytes": 2026,
"lines": 57,
"tokens": 507
},
{
"path": "docs/status/WBV2-P597-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
}
}

View File

@@ -0,0 +1,181 @@
{
"schemaVersion": 1,
"planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P597",
"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-P597-000",
"phase": "P597",
"title": "authorize_capability_family_wave",
"kind": "enabling",
"owner": "PROGRAM",
"dependsOn": [
"WBV2-P596-003"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-000",
"gate": "G1",
"card": "docs/tasks/WBV2-P597-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-P597-001",
"phase": "P597",
"title": "index_capability_family_batches",
"kind": "feature",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-000"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-001",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-002",
"phase": "P597",
"title": "implement_capability_family_slice",
"kind": "feature",
"owner": "IMPLEMENTATION",
"dependsOn": [
"WBV2-P597-001"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-002",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P597-003",
"phase": "P597",
"title": "run_capability_family_smoke",
"kind": "enabling",
"owner": "RELEASE",
"dependsOn": [
"WBV2-P597-002"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p597-003",
"gate": "IMPLEMENTATION",
"card": "docs/tasks/WBV2-P597-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-P598-000",
"phase": "P598",
"title": "authorize_capability_family_wave",
"kind": "enabling",
"owner": "PROGRAM",
"dependsOn": [
"WBV2-P597-003"
],
"parityId": null,
"implementationClass": "SOURCE_BACKED",
"parallelGroup": "p598-000",
"gate": "G1",
"card": "docs/tasks/WBV2-P598-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
}
]
}

View File

@@ -0,0 +1,36 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-003",
"operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION",
"taskClass": "INTEGRATION_BUILD",
"status": "PASS",
"capabilityId": "CAPABILITY-IMPLEMENTATION-CAPABILITY_FAMILY_SMOKE",
"behaviorMarker": "WEB_ENGINE_COMMAND_CAPABILITIES",
"family": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE",
"sourcePaths": [
"web/protocol/web-engine-capabilities.ts",
"web/app/src/workers/web-engine.worker.ts",
"web/app/src/vendor/blender/web_engine.wasm"
],
"command": "npm --prefix web run build",
"batching": {
"sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json",
"batchCount": 27,
"pendingRows": 6609,
"deduplication": true
},
"verification": {
"status": "DEFERRED",
"chromium": false,
"e2eReceipts": false,
"completionOverlay": false
},
"inventory": {
"total": 6900,
"legacyCompleted": 281,
"legacyPending": 6618,
"effectiveCompleted": 290,
"effectivePending": 6609
},
"nextTask": "WBV2-P598-000"
}

View File

@@ -0,0 +1,60 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-003",
"parentTask": "WBV2-P597-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-P597-002/manifest.json",
"sha256": "e972140a7f267657304586ebd593754fafdc32cda0897cb7b08f269dc51b2417"
},
"source1": {
"path": "web/protocol/web-engine-capabilities.ts",
"sha256": "d6739e27f9617c641bbbe29d49f520e342441d8708f0fa8087b8eae80ea6ffcb"
},
"source2": {
"path": "web/app/src/workers/web-engine.worker.ts",
"sha256": "f45061a65a1e89c6dec8c0ac06f878797eaf0ad4ab24f7f6c55a2f8cb3256ff9"
},
"source3": {
"path": "web/app/src/vendor/blender/web_engine.wasm",
"sha256": "bffd99c0dbbe637ee3758832ee66e4e4452d7e7d0ab706778c6927f33c263533"
},
"report": {
"path": "tests/golden/WBV2-P597-003/implementation-report.json",
"sha256": "a94a33354fd4375ebdb3a8fd4f966874d17780d5f4533ddc0b46d2b578ff14f2"
},
"status": {
"path": "docs/status/WBV2-P597-003.md",
"sha256": "26c15a7ba81bb240644729e221cfa7714b8958e5f833a5c29d2b2e9b5abbfa89"
},
"plan": {
"path": "tests/golden/WBV2-P597-003/capability-continuation-plan.json",
"sha256": "5b42bcaf6cb139f4e673d6ce05beec3837c9a6a94f921788e5464d3609e559d6"
},
"taskContext": {
"path": "tests/golden/WBV2-P597-003/task-context.json",
"sha256": "deea875e8c7bb3232d80b546810f0f3d814faebae9457c77711bdb0be0e6f2a9"
}
},
"assertions": {
"capabilityFamily": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE",
"capabilityId": "CAPABILITY-IMPLEMENTATION-CAPABILITY_FAMILY_SMOKE",
"behaviorMarker": "WEB_ENGINE_COMMAND_CAPABILITIES",
"sourceBacked": false,
"batchCount": 27,
"pendingRows": 6609,
"verificationDeferred": true,
"completionOverlayWritten": false,
"inventoryTotal": 6900,
"effectiveCompleted": 290,
"effectivePending": 6609,
"historicalReproduction": false
},
"nextTask": "WBV2-P598-000"
}

View File

@@ -0,0 +1,168 @@
{
"schemaVersion": 1,
"task": "WBV2-P597-003",
"parentTask": "WBV2-P597-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-P597-003 --write"
],
"inputPaths": [],
"inputSelection": {
"schemaVersion": 1,
"limits": {
"maxFiles": 12,
"evidenceBytes": 8192,
"contextRemainingBytes": 1902,
"contextRemainingTokens": 474
},
"source": {
"bytes": 8002,
"tokens": 2002
},
"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-P597-003/",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "docs/status/WBV2-P597-003.md",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "tests/golden/WBV2-P597-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-P598-000",
"sourceDocuments": {
"queue": "docs/EXECUTION_QUEUE.md",
"taskCard": "docs/tasks/WBV2-P597-003.md",
"taskIndex": "tests/golden/WBV2/task-index.json",
"parentManifest": "tests/golden/WBV2-P597-002/manifest.json",
"parentStatus": "docs/status/WBV2-P597-002.md"
},
"readPolicy": {
"required": [
"docs/EXECUTION_QUEUE.md",
"docs/tasks/WBV2-P597-003.md",
"tests/golden/WBV2-P597-002/manifest.json",
"docs/status/WBV2-P597-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-P597-002",
"parentTask": "WBV2-P597-001",
"status": "done",
"nextTask": "WBV2-P597-003",
"artifactCount": 15
},
"statusSummary": [
"# WBV2-P597-002 status",
"- task: `WBV2-P597-002`; parent: `WBV2-P597-001`; status: `done`",
"- taskClass: `SOURCE_IMPLEMENTATION`; capability: `CAP-RENDER-LIGHT-CONTRIBUTION-FACTORS`; behaviorMarker: `web_engine_blend_main_set_light_contribution_factors`",
"- 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-P597-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-P597-003.md",
"bytes": 1293,
"lines": 39,
"tokens": 324
},
{
"path": "tests/golden/WBV2-P597-002/manifest.json",
"bytes": 3419,
"lines": 89,
"tokens": 855
},
{
"path": "docs/status/WBV2-P597-002.md",
"bytes": 483,
"lines": 9,
"tokens": 121
}
],
"sourceTokens": 2002,
"evidenceFiles": 0,
"evidenceBytes": 0,
"evidenceTokens": 0,
"totalTokens": 2002,
"reservedEnvelopeTokens": 1024,
"estimatedContextTokens": 3026,
"serializedContextTokens": 622,
"withinBudget": true
}
}

View File

@@ -1,5 +1,5 @@
{"id":"WBV2-P596-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P596","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-P596-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P596","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-P596-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P596","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-P596-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P596","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-P597-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P597","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-P597-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P597","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-P597-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P597","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-P597-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P597","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-P597-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P597","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-P598-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P598","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"]}

View File

@@ -1 +1 @@
{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P596-003/capability-continuation-plan.json","sha256":"02e40a65d88b2578496ecf4aa48d43b643d78a7106049116d2a811e64419e0ca"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"05b60cc29feeba09a232a25496d16744e902751421655057e60480a68e81d52c"},"taskCount":5,"activeTask":"WBV2-P597-000","entries":{"WBV2-P596-000":{"line":0,"offset":0,"length":404,"previous":"WBV2-P595-003","next":"WBV2-P596-001"},"WBV2-P596-001":{"line":1,"offset":404,"length":403,"previous":"WBV2-P596-000","next":"WBV2-P596-002"},"WBV2-P596-002":{"line":2,"offset":807,"length":412,"previous":"WBV2-P596-001","next":"WBV2-P596-003"},"WBV2-P596-003":{"line":3,"offset":1219,"length":399,"previous":"WBV2-P596-002","next":"WBV2-P597-000"},"WBV2-P597-000":{"line":4,"offset":1618,"length":401,"previous":"WBV2-P596-003","next":null}}}
{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P597-003/capability-continuation-plan.json","sha256":"5b42bcaf6cb139f4e673d6ce05beec3837c9a6a94f921788e5464d3609e559d6"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"7365c4b20ade674694d88779b8bf9f2c8722bd2cac8cb619e11a415609574576"},"taskCount":5,"activeTask":"WBV2-P598-000","entries":{"WBV2-P597-000":{"line":0,"offset":0,"length":404,"previous":"WBV2-P596-003","next":"WBV2-P597-001"},"WBV2-P597-001":{"line":1,"offset":404,"length":403,"previous":"WBV2-P597-000","next":"WBV2-P597-002"},"WBV2-P597-002":{"line":2,"offset":807,"length":412,"previous":"WBV2-P597-001","next":"WBV2-P597-003"},"WBV2-P597-003":{"line":3,"offset":1219,"length":399,"previous":"WBV2-P597-002","next":"WBV2-P598-000"},"WBV2-P598-000":{"line":4,"offset":1618,"length":401,"previous":"WBV2-P597-003","next":null}}}

View File

@@ -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 === 596) {
if (phase === 597) {
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", "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_contribution_factors";
}
else if (phase === 596) {
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", "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_shape";
}
@@ -61,9 +65,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 === 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 reportedFamily = 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 === 596 && index === 2 ? "CAP-RENDER-LIGHT-AREA-SHAPE" : phase === 595 && index === 2 ? "CAP-RENDER-LIGHT-TYPE" : `CAPABILITY-${reportedFamily.replaceAll(".", "-")}`;
const capabilityId = index === 1 ? null : 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`;

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -937,7 +937,7 @@ function Properties({ snapshot, selectedFaceIndices, selectedVertexIndices, grea
{activeTexture ? <div className="property-section" data-testid="texture-properties-workbench"><h3>Texture</h3><output>{activeTexture.name} · Type {activeTexture.type}</output><output>Noise {activeTexture.noiseScale.toFixed(3)} · Depth {activeTexture.noiseDepth}</output><div className="property-actions"><button type="button" onClick={() => onCommand(ioMediaCommands.setTextureProperties(activeTexture.id, { noiseScale: Math.min(1000000, activeTexture.noiseScale + 0.05) }))}>Increase Noise</button><button type="button" onClick={() => onCommand(ioMediaCommands.setTextureProperties(activeTexture.id, { noiseDepth: Math.min(30, activeTexture.noiseDepth + 1) }))}>Increase Depth</button></div></div> : null}
{(snapshot?.libraries?.length ?? 0) > 0 ? <div className="property-section" data-testid="library-append-workbench"><h3>Library Append</h3>{snapshot?.libraries?.slice(0, 16).map((library) => <output key={library.id} data-resource-id={library.id}>{library.name} · {library.status} · {library.sourcePath}</output>)}<label>Source .blend <input aria-label="Library source blend" type="file" accept=".blend,application/octet-stream" onChange={(event) => { setLibrarySourceFile(event.target.files?.[0] ?? null); setLibraryAppendError(""); }} /></label><label>Binding JSON <input aria-label="Library append binding" type="file" accept="application/json,.json" onChange={(event) => { setLibraryRequestFile(event.target.files?.[0] ?? null); setLibraryAppendError(""); }} /></label><button type="button" disabled={!librarySourceFile || !libraryRequestFile} onClick={() => void appendLibrary()}>Append to Main</button>{libraryAppendError ? <output role="alert">{libraryAppendError}</output> : null}</div> : null}
{activeCamera ? <div className="property-section" data-testid="camera-workbench"><h3>Camera</h3><output>{activeCamera.projection} · {activeCamera.lensMm.toFixed(1)}mm</output><button type="button" onClick={() => onCommand(animationRenderCommands.setCameraProperties(activeCamera.id, { projection: activeCamera.projection === "ORTHOGRAPHIC" ? "PERSPECTIVE" : "ORTHOGRAPHIC" }))}>切换投影</button><button type="button" onClick={() => onCommand(animationRenderCommands.setCameraProperties(activeCamera.id, { lensMm: Math.min(10000, activeCamera.lensMm + 5) }))}>增加焦距</button></div> : null}
{activeLight ? <div className="property-section" data-testid="light-workbench"><h3>Light</h3><output>{activeLight.energy.toFixed(1)} energy</output><label>类型 <select aria-label="灯光类型" value={({ 0: "POINT", 1: "SUN", 2: "SPOT", 4: "AREA" } as Record<number, string>)[activeLight.lightType] ?? "POINT"} onChange={(event) => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { type: event.target.value as "POINT" | "SUN" | "SPOT" | "AREA" }))}><option value="POINT">Point</option><option value="SUN">Sun</option><option value="SPOT">Spot</option><option value="AREA">Area</option></select></label><label>Area Shape <select aria-label="灯光区域形状" value={activeLight.areaShape} onChange={(event) => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { areaShape: Number(event.target.value) as 0 | 1 | 4 | 5 }))}><option value="0">Square</option><option value="1">Rectangle</option><option value="4">Disk</option><option value="5">Ellipse</option></select></label><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { energy: Math.min(1e9, activeLight.energy + 10) }))}>增加能量</button><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { castsShadow: !(activeLight.castsShadow ?? true) }))}>切换阴影</button></div> : null}
{activeLight ? <div className="property-section" data-testid="light-workbench"><h3>Light</h3><output>{activeLight.energy.toFixed(1)} energy</output><label>类型 <select aria-label="灯光类型" value={({ 0: "POINT", 1: "SUN", 2: "SPOT", 4: "AREA" } as Record<number, string>)[activeLight.lightType] ?? "POINT"} onChange={(event) => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { type: event.target.value as "POINT" | "SUN" | "SPOT" | "AREA" }))}><option value="POINT">Point</option><option value="SUN">Sun</option><option value="SPOT">Spot</option><option value="AREA">Area</option></select></label><label>Area Shape <select aria-label="灯光区域形状" value={activeLight.areaShape} onChange={(event) => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { areaShape: Number(event.target.value) as 0 | 1 | 4 | 5 }))}><option value="0">Square</option><option value="1">Rectangle</option><option value="4">Disk</option><option value="5">Ellipse</option></select></label><output>贡献因子 D {(activeLight.diffuseFactor ?? 1).toFixed(2)} · S {(activeLight.specularFactor ?? 1).toFixed(2)} · T {(activeLight.transmissionFactor ?? 1).toFixed(2)} · V {(activeLight.volumeFactor ?? 1).toFixed(2)}</output><div className="property-actions"><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { diffuseFactor: Math.min(1, (activeLight.diffuseFactor ?? 1) + 0.1) }))}>提高漫反射</button><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { specularFactor: Math.min(1, (activeLight.specularFactor ?? 1) + 0.1) }))}>提高镜面</button><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { transmissionFactor: Math.min(1, (activeLight.transmissionFactor ?? 1) + 0.1) }))}>提高透射</button><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { volumeFactor: Math.min(1, (activeLight.volumeFactor ?? 1) + 0.1) }))}>提高体积</button></div><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { energy: Math.min(1e9, activeLight.energy + 10) }))}>增加能量</button><button type="button" onClick={() => onCommand(animationRenderCommands.setLightProperties(activeLight.id, { castsShadow: !(activeLight.castsShadow ?? true) }))}>切换阴影</button></div> : null}
{activeWorld ? <div className="property-section" data-testid="world-workbench"><h3>World</h3><output>Exposure {activeWorld.exposure.toFixed(2)} · Lightgroup {activeWorld.lightgroup ?? "None"}</output><div className="property-actions"><button type="button" onClick={() => onCommand(animationRenderCommands.setWorldProperties(activeWorld.id, { exposure: Math.max(-20, Math.min(20, activeWorld.exposure + 0.5)) }))}>增加曝光</button><button type="button" onClick={() => onCommand(animationRenderCommands.setWorldLightgroup(activeWorld.id, activeWorld.lightgroup ? null : "Lightgroup_1"))}>{activeWorld.lightgroup ? "清除分组" : "绑定分组"}</button></div></div> : null}
{activeScene ? <div className="property-section" data-testid="scene-properties-workbench"><h3>Scene Render</h3><output>{activeScene.name} · {activeScene.renderEngine ?? "UNKNOWN"}</output><output>{activeScene.colorManagement ? `${activeScene.colorManagement.viewTransform} · ${activeScene.colorManagement.look} · Exposure ${activeScene.colorManagement.exposure.toFixed(2)} · Gamma ${activeScene.colorManagement.gamma.toFixed(2)}` : "Color management unavailable"}</output><div className="property-actions"><button type="button" onClick={() => onCommand(animationRenderCommands.setSceneProperties(activeScene.id, { exposure: Math.max(-1000, Math.min(1000, (activeScene.colorManagement?.exposure ?? 0) + 0.5)) }))}>增加曝光</button><button type="button" onClick={() => onCommand(animationRenderCommands.setSceneProperties(activeScene.id, { gamma: Math.max(0, Math.min(1000, (activeScene.colorManagement?.gamma ?? 1) + 0.1)) }))}>增加 Gamma</button><button type="button" onClick={() => onCommand(animationRenderCommands.setSceneProperties(activeScene.id, { viewTransform: activeScene.colorManagement?.viewTransform === "AgX" ? "Standard" : "AgX" }))}>切换 View Transform</button></div></div> : null}
{activeScene?.colorManagement ? <div className="property-section" data-testid="scene-color-management-workbench"><h3>Color Management</h3><output>{activeScene.colorManagement.displayDevice} · {activeScene.colorManagement.temperature?.toFixed(0) ?? "-"} K · Tint {activeScene.colorManagement.tint?.toFixed(2) ?? "-"}</output><div className="property-actions"><button type="button" onClick={() => onCommand(animationRenderCommands.setSceneColorManagement(activeScene.id, { temperature: Math.min(20000, (activeScene.colorManagement!.temperature ?? 6500) + 250) }))}>升高色温</button><button type="button" onClick={() => onCommand(animationRenderCommands.setSceneColorManagement(activeScene.id, { tint: Math.max(-100, Math.min(100, (activeScene.colorManagement!.tint ?? 0) + 1)) }))}>调整 Tint</button></div></div> : null}

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -541,9 +541,10 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
case "setLightProperties": {
const light = currentSnapshot?.lights.find((candidate) => candidate.id === payload.dataId);
const properties = payload.properties;
if (!light || !validPropertyKeys(properties, ["type", "areaShape", "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", "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`);
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], ["areaSpread", 0.0001, Math.PI], ["sunAngle", 0, Math.PI]] as const) {
const value = properties[field];

View File

@@ -252,6 +252,10 @@ export interface LightIR {
areaSize: number;
areaSizeY: number;
sunAngle: number;
diffuseFactor?: number;
specularFactor?: number;
transmissionFactor?: number;
volumeFactor?: number;
exposure?: number;
temperature?: number;
useTemperature?: boolean;
@@ -1544,7 +1548,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"] as const) if (light[field] !== undefined) requireNumber(light[field], `lights[${index}].${field}`);
for (const field of ["exposure", "temperature", "areaSpread", "diffuseFactor", "specularFactor", "transmissionFactor", "volumeFactor"] 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()) {

View File

@@ -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; 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: "setLightProperties"; dataId: string; properties: { type?: "POINT" | "SUN" | "SPOT" | "AREA"; areaShape?: 0 | 1 | 4 | 5; diffuseFactor?: number; specularFactor?: number; transmissionFactor?: number; volumeFactor?: 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 } }