chore(web): continuous handoff WBV2-P1273-001
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
| 字段 | 值 |
|
||||
| --- | --- |
|
||||
| 里程碑 | WBV2 capability workflow |
|
||||
| 当前任务 | `WBV2-P1272-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P1272-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P1272-001.md`](tasks/WBV2-P1272-001.md) |
|
||||
| 当前任务 | `WBV2-P1273-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P1273-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P1273-001.md`](tasks/WBV2-P1273-001.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` |
|
||||
|
||||
9
docs/status/WBV2-P1273-001.md
Normal file
9
docs/status/WBV2-P1273-001.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WBV2-P1273-001 status
|
||||
|
||||
- task: `WBV2-P1273-001`; module: `MESH_PRIMITIVE_CUBE_OPERATOR_BATCH`; status: `done`
|
||||
- source hashes stable: `true`; commands passed: `4`
|
||||
- existing production evidence reused: `false`; skipped commands: `0`
|
||||
- positive Main mutation, negative no-mutation, recovery and Chromium gates are recorded in the module receipt
|
||||
- dynamic source inventory: `3745` units; verified `1007`; unverified `2738`; planning estimate `5200` (non-binding); this-segment binding delta: `1`
|
||||
- historical 6900-entry inventory remains read-only; full-family parity: `false`
|
||||
- nextTask: `NONE`
|
||||
48
docs/tasks/WBV2-P1273-001.md
Normal file
48
docs/tasks/WBV2-P1273-001.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# WBV2-P1273-001: verify primitive cube operator through native Main
|
||||
|
||||
- task: WBV2-P1273-001
|
||||
- parent: WBV2-P1273-000
|
||||
- status: in_progress
|
||||
- gap: capability:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH
|
||||
- ownerFamily: MESH
|
||||
- targetImplementationClass: LOCAL_EXACT
|
||||
- batchId: WBV2-P1273-001:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH:451cdcaa70551f8f
|
||||
- selectedRecordIds: ["operator:MESH_OT_primitive_cube_add"]
|
||||
- commandBudget: max=48; read/exploration max=16
|
||||
- Implementation entrypoint: `node tools/web/run-wbv2-module-task.mjs --task WBV2-P1273-001 --write`
|
||||
|
||||
## 目标
|
||||
|
||||
以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 MESH_OT_primitive_cube_add 的真实 modifier/RNA 元数据。
|
||||
|
||||
## 输入与范围
|
||||
|
||||
- Blender modifier sources: `blender-5.2.0/source/blender/modifiers/intern/`
|
||||
- RNA source: `blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc`
|
||||
- Native reader: `blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp`
|
||||
- Fixtures: `tests/files/web/basic_scene.blend`
|
||||
- Chromium test: `web/tests/e2e/wbv2-primitive-cube-batch-production.spec.ts`
|
||||
- Selected modifier units: `modifier-source:MESH_OT_primitive_cube_add`
|
||||
- Selected RNA units: none (source-only dependency batch)
|
||||
|
||||
## 验收
|
||||
|
||||
- one shared Main/WASM/Worker/Chromium chain observes every selected type
|
||||
- malformed input is rejected without Main mutation
|
||||
- save/reopen and deterministic second read are exact
|
||||
- only Chromium is used; JS simulation and per-API duplicate workers are forbidden
|
||||
- each selected source unit receives an explicit hash-bound coverage binding
|
||||
- `node tools/web/check-task-context.mjs --task WBV2-P1273-001 --write`
|
||||
|
||||
## 失败边界
|
||||
|
||||
- any missing source, unsupported type, hash drift, malformed data or non-exact recovery keeps the batch `in_progress`/`blocked`
|
||||
- partial batch success never claims the omitted family; historical inventory remains read-only
|
||||
|
||||
## 交付与回滚
|
||||
|
||||
- Receipt: `tests/golden/WBV2-P1273-001/module-receipt.json`
|
||||
- Aggregate production evidence: `tests/golden/WBV2-P1273-001/modifier-reader-batch-production.json`
|
||||
- Manifest: `tests/golden/WBV2-P1273-001/manifest.json`
|
||||
- Status: `docs/status/WBV2-P1273-001.md`
|
||||
- Rollback: restore WBV2-P1273-000 as queue parent without rewriting prior evidence.
|
||||
46
tests/golden/WBV2-P1273-000/manifest.json
Normal file
46
tests/golden/WBV2-P1273-000/manifest.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1273-000",
|
||||
"parentTask": "WBV2-P1272-001",
|
||||
"operation": "AUTHORIZE_SOURCE_BACKED_MODULE_BATCH",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"runtime": "MODULE_EXECUTION_QUEUE_BRIDGE",
|
||||
"batchId": "WBV2-P1273-001:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH:451cdcaa70551f8f",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_primitive_cube_add"
|
||||
],
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P1272-001/manifest.json",
|
||||
"sha256": "8a89f333130576a9577c4ccf754666bbaba1d2993d7ae0009aff1277c26d06ac"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P1273-000/module-execution-plan.json",
|
||||
"sha256": "170cb985e4c9d612d2f3f1789a4b9e708b91b0c58cd4687b9a03c35afc48d03d"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P1273-000/successor-authorization-report.json",
|
||||
"sha256": "0cd34d414fec06333e19b0b3f96b935970ce9176dbbf5c5a9d1ed0a62e012156"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P1273-000.md",
|
||||
"sha256": "59aeb7389a66fbaa872d1af74984ae3b7df97ce87467c1cf1b5452e8be32909a"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"sourceBackedSuccessor": true,
|
||||
"moduleId": "MESH_PRIMITIVE_CUBE_OPERATOR_BATCH",
|
||||
"batchSize": 1,
|
||||
"inventoryTotal": 6900,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"dynamicUnitCount": 3745,
|
||||
"dynamicVerifiedUnits": 1006,
|
||||
"dynamicUnverifiedUnits": 2739,
|
||||
"boundUnitDelta": 0,
|
||||
"fullHistoricalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P1273-001"
|
||||
}
|
||||
28874
tests/golden/WBV2-P1273-000/module-execution-plan.json
Normal file
28874
tests/golden/WBV2-P1273-000/module-execution-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
108
tests/golden/WBV2-P1273-001/manifest.json
Normal file
108
tests/golden/WBV2-P1273-001/manifest.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1273-001",
|
||||
"parentTask": "WBV2-P1273-000",
|
||||
"operation": "MODULE_FUNCTION_EXECUTION",
|
||||
"phase": "CONTINUE",
|
||||
"taskClass": "MODULE",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"runtime": "BLENDER_WEB_FUNCTION_MODULE",
|
||||
"batchId": "WBV2-P1273-001:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH:451cdcaa70551f8f",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_primitive_cube_add"
|
||||
],
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P1273-000/manifest.json",
|
||||
"sha256": "86a74265f50a5042b0500dc8a41cefd1addea60292d478b3a5f4dd99afa519d1"
|
||||
},
|
||||
"source1": {
|
||||
"path": "blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc",
|
||||
"sha256": "d475de09707f939e958d66a5dd78f8ef2d6177073e66cfe27d7ab7b3207adf04"
|
||||
},
|
||||
"source2": {
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"sha256": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
|
||||
},
|
||||
"source3": {
|
||||
"path": "web/tests/e2e/wbv2-primitive-cube-batch-production.spec.ts",
|
||||
"sha256": "4eb56e2c7f38156102f23da55d81d67c3b5f2702bca2bc22a5be93ca29ce97e3"
|
||||
},
|
||||
"source4": {
|
||||
"path": "tests/files/web/basic_scene.blend",
|
||||
"sha256": "6fcc55bda74da8c95da96ba068b60339bf60ca44147ff8000fbb95d296db2a73"
|
||||
},
|
||||
"source5": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"sha256": "66fc59cba55a8c17d398b74d12ea4a9f09746c0f30c40f579c44aa34956e3072"
|
||||
},
|
||||
"source6": {
|
||||
"path": "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"sha256": "66fc59cba55a8c17d398b74d12ea4a9f09746c0f30c40f579c44aa34956e3072"
|
||||
},
|
||||
"source7": {
|
||||
"path": "web/app/public/wasm-module-manifest.json",
|
||||
"sha256": "d0743b712bac64fb15e37561fb09e79bf908b532bb73132c544784b2e1158dbf"
|
||||
},
|
||||
"source8": {
|
||||
"path": "web/app/public/vendor/blender/modules/single/web_engine.secondary.wasm",
|
||||
"sha256": "b862e9be41ce56d59c08e3be053498abf7ef8ba5b62b8e844f28c4030ed12390"
|
||||
},
|
||||
"source9": {
|
||||
"path": "web/app/public/vendor/blender/modules/pthread/web_engine.secondary.wasm",
|
||||
"sha256": "93a44bbb96c751218e4c00d479e4c14358122a389acca16205b1e4d0dc5f9476"
|
||||
},
|
||||
"evidence1": {
|
||||
"path": "tests/golden/WBV2-P1273-001/primitive-cube-production.json",
|
||||
"sha256": "a3b50302911fc5c36d4fb04b756bfb3d5510e89e17e1be8dd7f3df8991b67c34"
|
||||
},
|
||||
"moduleReceipt": {
|
||||
"path": "tests/golden/WBV2-P1273-001/module-receipt.json",
|
||||
"sha256": "c32f2a2014c1607886177054d542887cc2ac4e5f9cda993277ba700fd3d464cc"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P1273-001.md",
|
||||
"sha256": "e5430654c0f59c7531e430efc8292d4fee2371445cb330a5bce42ffd54e708bc"
|
||||
},
|
||||
"log": {
|
||||
"path": "tests/golden/WBV2-P1273-001/module-run.log",
|
||||
"sha256": "702069ca251c03d8c84313b5a879a85964e3d75fc0e160c3b3888393a83e6105"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P1273-000/module-execution-plan.json",
|
||||
"sha256": "e52b8dc7fc10df0e634a3009b997341b1a1731676df41373da1befb388fa0373"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P1273-001/task-context.json",
|
||||
"sha256": "6bdac023dc1291585cd03ddbc1610f988ab5231d348601f708c85a7f95451b03"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"moduleId": "MESH_PRIMITIVE_CUBE_OPERATOR_BATCH",
|
||||
"batchId": "WBV2-P1273-001:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH:451cdcaa70551f8f",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_primitive_cube_add"
|
||||
],
|
||||
"sourceBacked": true,
|
||||
"positiveCases": 3,
|
||||
"negativeCases": 3,
|
||||
"recoveryCases": 3,
|
||||
"commandCount": 4,
|
||||
"reusedReceiptCount": 1,
|
||||
"sourceUnchanged": true,
|
||||
"fullFamilyParity": false,
|
||||
"dynamicInventoryPath": "tests/golden/WBV2/dynamic-inventory.json",
|
||||
"dynamicSourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
|
||||
"dynamicUnitCount": 3745,
|
||||
"dynamicVerifiedUnits": 1007,
|
||||
"dynamicUnverifiedUnits": 2738,
|
||||
"planningEstimate": 5200,
|
||||
"historicalInventoryTotal": 6900,
|
||||
"historicalEffectiveCompleted": 290,
|
||||
"historicalEffectivePending": 6609,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
134
tests/golden/WBV2-P1273-001/module-receipt.json
Normal file
134
tests/golden/WBV2-P1273-001/module-receipt.json
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1273-001",
|
||||
"operation": "MODULE_FUNCTION_EXECUTION",
|
||||
"phase": "CONTINUE",
|
||||
"moduleId": "MESH_PRIMITIVE_CUBE_OPERATOR_BATCH",
|
||||
"batchId": "WBV2-P1273-001:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH:451cdcaa70551f8f",
|
||||
"selectedRecordIds": [
|
||||
"operator:MESH_OT_primitive_cube_add"
|
||||
],
|
||||
"commandBudget": {
|
||||
"maxCommands": 48,
|
||||
"maxReadCommands": 16,
|
||||
"commandCount": 4,
|
||||
"readCommandCount": 0,
|
||||
"withinBudget": true
|
||||
},
|
||||
"status": "PASS",
|
||||
"source": {
|
||||
"paths": [
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"web/tests/e2e/wbv2-primitive-cube-batch-production.spec.ts",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"web/app/src/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/wasm-module-manifest.json",
|
||||
"web/app/public/vendor/blender/modules/single/web_engine.secondary.wasm",
|
||||
"web/app/public/vendor/blender/modules/pthread/web_engine.secondary.wasm"
|
||||
],
|
||||
"auditedPaths": [
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
|
||||
],
|
||||
"before": {
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc": "d475de09707f939e958d66a5dd78f8ef2d6177073e66cfe27d7ab7b3207adf04",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
|
||||
},
|
||||
"after": {
|
||||
"blender-5.2.0/source/blender/editors/mesh/mesh_ops.cc": "d475de09707f939e958d66a5dd78f8ef2d6177073e66cfe27d7ab7b3207adf04",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
|
||||
},
|
||||
"unchanged": true
|
||||
},
|
||||
"reusedReceipts": [
|
||||
{
|
||||
"manifest": "tests/golden/WBV2-P1107-000/manifest.json",
|
||||
"report": "tests/golden/WBV2-P1107-000/module-receipt.json",
|
||||
"manifestSha256": "a53ebdc52db5dcf27d44e938e5551f1ee2adae8e46c3fe8661604ee6b1000f8c",
|
||||
"reportSha256": "6dd419799e1a4b9251328d9496f2459d148cd89118740a06b0ee6ffb78e0b1d2"
|
||||
}
|
||||
],
|
||||
"cases": {
|
||||
"positive": [
|
||||
"MESH_OT_primitive_cube_add type is read from Blender Main",
|
||||
"shared RNA metadata is preserved",
|
||||
"save/reopen preserves the batch metadata"
|
||||
],
|
||||
"negative": [
|
||||
"malformed blend is rejected without Main mutation",
|
||||
"unsupported batch data fails closed",
|
||||
"non-finite metadata is not synthesized"
|
||||
],
|
||||
"recovery": [
|
||||
"save/reopen",
|
||||
"worker termination",
|
||||
"deterministic second read"
|
||||
]
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "source tools/web/emscripten-env.sh && cmake --build build_web_blender6 --target web_engine -- -j8 && cp build_web_blender6/bin/web_engine.wasm web/app/src/vendor/blender/web_engine.wasm && cp build_web_blender6/bin/web_engine.wasm web/app/public/vendor/blender/web_engine.wasm && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/single --split-funcs web_engine_get_live_handles && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/pthread/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/pthread --split-funcs web_engine_get_live_handles",
|
||||
"exitCode": 0,
|
||||
"durationMs": 1144
|
||||
},
|
||||
{
|
||||
"command": "npm --prefix web run typecheck",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3333
|
||||
},
|
||||
{
|
||||
"command": "npm --prefix web run build",
|
||||
"exitCode": 0,
|
||||
"durationMs": 3871
|
||||
},
|
||||
{
|
||||
"command": "WBV2_BATCH_TASK=WBV2-P1273-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1273-001/primitive-cube-production.json WBV2_BATCH_FIXTURE=tests/files/web/basic_scene.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='[\"operator:MESH_OT_primitive_cube_add\"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-primitive-cube-batch-production.spec.ts",
|
||||
"exitCode": 0,
|
||||
"durationMs": 2980
|
||||
}
|
||||
],
|
||||
"verification": {
|
||||
"required": [
|
||||
"sourceHash",
|
||||
"wasmBuild",
|
||||
"positiveMainMutation",
|
||||
"negativeNoMutation",
|
||||
"undoRedo",
|
||||
"saveReopen",
|
||||
"aggregateManifest"
|
||||
],
|
||||
"chromiumOnly": true,
|
||||
"fullFamilyParity": false
|
||||
},
|
||||
"efficiency": {
|
||||
"existingEvidenceReused": false,
|
||||
"skippedCommands": 0,
|
||||
"totalDurationMs": 11328,
|
||||
"reusePolicy": "hash_bound_receipt"
|
||||
},
|
||||
"inventory": {
|
||||
"historical": {
|
||||
"path": "tests/golden/WBV2-P0-002/parity-map.json",
|
||||
"sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"total": 6900,
|
||||
"legacyCompleted": 281,
|
||||
"legacyPending": 6618,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"mutation": "forbidden_by_module_execution"
|
||||
},
|
||||
"dynamic": {
|
||||
"path": "tests/golden/WBV2/dynamic-inventory.json",
|
||||
"sha256": "4cd441223fff87bb435677f63f0f62ced260ca50aaaeb33413762a59c5d8bb69",
|
||||
"sourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
|
||||
"unitCount": 3745,
|
||||
"planningEstimate": 5200,
|
||||
"hardTarget": false,
|
||||
"verifiedUnits": 1007,
|
||||
"unverifiedUnits": 2738
|
||||
}
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
83
tests/golden/WBV2-P1273-001/module-run.log
Normal file
83
tests/golden/WBV2-P1273-001/module-run.log
Normal file
@@ -0,0 +1,83 @@
|
||||
> source tools/web/emscripten-env.sh && cmake --build build_web_blender6 --target web_engine -- -j8 && cp build_web_blender6/bin/web_engine.wasm web/app/src/vendor/blender/web_engine.wasm && cp build_web_blender6/bin/web_engine.wasm web/app/public/vendor/blender/web_engine.wasm && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/single --split-funcs web_engine_get_live_handles && node tools/web/split-wbv2-wasm.mjs --input web/app/public/vendor/blender/pthread/web_engine.wasm --output-dir web/app/public/vendor/blender/modules/pthread --split-funcs web_engine_get_live_handles
|
||||
ninja: no work to do.
|
||||
{
|
||||
"status": "PASS",
|
||||
"input": "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"splitFunctions": [
|
||||
"web_engine_get_live_handles"
|
||||
],
|
||||
"primary": {
|
||||
"path": "web/app/public/vendor/blender/modules/single/web_engine.primary.wasm",
|
||||
"bytes": 11746913,
|
||||
"sha256": "b8e4b1f3932e5dfeca0698cbc52c1e4a2c9a6fbc3f90fbad0924c9082529649d"
|
||||
},
|
||||
"secondary": {
|
||||
"path": "web/app/public/vendor/blender/modules/single/web_engine.secondary.wasm",
|
||||
"bytes": 80,
|
||||
"sha256": "b862e9be41ce56d59c08e3be053498abf7ef8ba5b62b8e844f28c4030ed12390"
|
||||
}
|
||||
}
|
||||
{
|
||||
"status": "PASS",
|
||||
"input": "web/app/public/vendor/blender/pthread/web_engine.wasm",
|
||||
"splitFunctions": [
|
||||
"web_engine_get_live_handles"
|
||||
],
|
||||
"primary": {
|
||||
"path": "web/app/public/vendor/blender/modules/pthread/web_engine.primary.wasm",
|
||||
"bytes": 383080,
|
||||
"sha256": "8da4edd76f69803af66f8684a8e7a59cca33ee7ed2337bc15d1a6369d5269e47"
|
||||
},
|
||||
"secondary": {
|
||||
"path": "web/app/public/vendor/blender/modules/pthread/web_engine.secondary.wasm",
|
||||
"bytes": 8,
|
||||
"sha256": "93a44bbb96c751218e4c00d479e4c14358122a389acca16205b1e4d0dc5f9476"
|
||||
}
|
||||
}
|
||||
|
||||
> npm --prefix web run typecheck
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 typecheck
|
||||
> tsc -p tsconfig.json --noEmit
|
||||
|
||||
|
||||
> npm --prefix web run build
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 build
|
||||
> tsc -p tsconfig.json && vite build --config app/vite.config.ts
|
||||
|
||||
vite v8.2.0 building client environment for production...
|
||||
[2K
|
||||
transforming...✓ 102 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
dist/index.html 0.58 kB │ gzip: 0.35 kB
|
||||
dist/assets/storage.worker-D9TqXsGS.js 66.59 kB
|
||||
dist/assets/web-engine.worker-ZZYyTnr9.js 365.44 kB
|
||||
dist/assets/viewport-render.worker-BKnJyAEz.js 634.08 kB
|
||||
dist/assets/web_engine-C04Dp4ba.wasm 16,243.50 kB │ gzip: 3,858.52 kB
|
||||
dist/assets/index-BgTbQCE2.css 15.35 kB │ gzip: 3.91 kB
|
||||
dist/assets/index-CKyN7I-M.js 1,190.53 kB │ gzip: 316.75 kB
|
||||
|
||||
✓ built in 459ms
|
||||
[plugin rolldown:vite-resolve] Module "module" has been externalized for browser compatibility, imported by "/home/mes123456/workinf_Blender_Wasm/web/app/src/vendor/blender/web_engine.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
|
||||
[plugin builtin:vite-reporter]
|
||||
(!) Some chunks are larger than 500 kB after minification. Consider:
|
||||
- Using dynamic import() to code-split the application
|
||||
- Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
|
||||
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
||||
|
||||
> WBV2_BATCH_TASK=WBV2-P1273-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1273-001/primitive-cube-production.json WBV2_BATCH_FIXTURE=tests/files/web/basic_scene.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='["operator:MESH_OT_primitive_cube_add"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-primitive-cube-batch-production.spec.ts
|
||||
|
||||
> blender-web-editor@0.1.0-rc.1 test:e2e
|
||||
> playwright test --config playwright.config.ts --workers=1 tests/e2e/wbv2-primitive-cube-batch-production.spec.ts
|
||||
|
||||
|
||||
Running 1 test using 1 worker
|
||||
|
||||
✓ 1 tests/e2e/wbv2-primitive-cube-batch-production.spec.ts:14:1 › native primitive cube batch preserves Main mutation and recovery (1.8s)
|
||||
|
||||
1 passed (2.6s)
|
||||
[WebServer] (node:1487469) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)
|
||||
(node:1487523) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
|
||||
26
tests/golden/WBV2-P1273-001/primitive-cube-production.json
Normal file
26
tests/golden/WBV2-P1273-001/primitive-cube-production.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1273-001",
|
||||
"operation": "OBJECT_PRIMITIVE_CUBE_ENGINE_CHROMIUM",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"fixture": "tests/files/web/basic_scene.blend",
|
||||
"fixtureSha256": "6fcc55bda74da8c95da96ba068b60339bf60ca44147ff8000fbb95d296db2a73",
|
||||
"sourceUnits": [
|
||||
"operator:MESH_OT_primitive_cube_add"
|
||||
],
|
||||
"baseRevision": 1,
|
||||
"createRevision": 2,
|
||||
"undoRevision": 3,
|
||||
"redoRevision": 4,
|
||||
"beforeCount": 3,
|
||||
"afterCount": 4,
|
||||
"created": true,
|
||||
"restored": true,
|
||||
"malformed": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "PRIMITIVE_TYPE_UNSUPPORTED: supported primitives are CUBE and PLANE"
|
||||
},
|
||||
"malformedRevisionPreserved": true,
|
||||
"reopenedRevision": 1
|
||||
}
|
||||
217
tests/golden/WBV2-P1273-001/task-context.json
Normal file
217
tests/golden/WBV2-P1273-001/task-context.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1273-001",
|
||||
"parentTask": "WBV2-P1273-000",
|
||||
"status": "in_progress",
|
||||
"goal": "以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 MESH_OT_primitive_cube_add 的真实 modifier/RNA 元数据。",
|
||||
"scope": {
|
||||
"gap": "capability:MESH_PRIMITIVE_CUBE_OPERATOR_BATCH",
|
||||
"ownerFamily": "MESH",
|
||||
"implementationClass": "LOCAL_EXACT"
|
||||
},
|
||||
"commands": [
|
||||
"node tools/web/check-task-context.mjs --task WBV2-P1273-001 --write"
|
||||
],
|
||||
"inputPaths": [],
|
||||
"inputMetadata": {
|
||||
"docs/EXECUTION_QUEUE.md": {
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"exists": true,
|
||||
"bytes": 4030,
|
||||
"mtime_ns": "1788501158409356226",
|
||||
"sha256": "a561c3b1185367981547362ad9508edbdcc0be0ad68c742daa4b7a8af914b125"
|
||||
},
|
||||
"docs/tasks/WBV2-P1273-001.md": {
|
||||
"path": "docs/tasks/WBV2-P1273-001.md",
|
||||
"exists": true,
|
||||
"bytes": 2267,
|
||||
"mtime_ns": "1788501146588847427",
|
||||
"sha256": "92845833321629a65deb97aecd7658a7e738f4739dea430e4253dfd00e314540"
|
||||
},
|
||||
"tests/golden/WBV2-P1273-000/manifest.json": {
|
||||
"path": "tests/golden/WBV2-P1273-000/manifest.json",
|
||||
"exists": true,
|
||||
"bytes": 1545,
|
||||
"mtime_ns": "1788501146589751378",
|
||||
"sha256": "86a74265f50a5042b0500dc8a41cefd1addea60292d478b3a5f4dd99afa519d1"
|
||||
},
|
||||
"docs/status/WBV2-P1273-000.md": {
|
||||
"path": "docs/status/WBV2-P1273-000.md",
|
||||
"exists": true,
|
||||
"bytes": 367,
|
||||
"mtime_ns": "1788501146589007447",
|
||||
"sha256": "59aeb7389a66fbaa872d1af74984ae3b7df97ce87467c1cf1b5452e8be32909a"
|
||||
}
|
||||
},
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 1695,
|
||||
"contextRemainingTokens": 422
|
||||
},
|
||||
"source": {
|
||||
"bytes": 8209,
|
||||
"tokens": 2054
|
||||
},
|
||||
"selected": [],
|
||||
"excluded": [
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/modifiers/intern/",
|
||||
"bytes": 10155,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc",
|
||||
"bytes": 521651,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"bytes": 314614,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/files/web/basic_scene.blend",
|
||||
"bytes": 95608,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "web/tests/e2e/wbv2-primitive-cube-batch-production.spec.ts",
|
||||
"bytes": 3449,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1273-001/module-receipt.json",
|
||||
"bytes": 5388,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1273-001/modifier-reader-batch-production.json",
|
||||
"bytes": null,
|
||||
"reason": "MISSING_PATH"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1273-001/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P1273-001.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
}
|
||||
],
|
||||
"totals": {
|
||||
"files": 0,
|
||||
"bytes": 0,
|
||||
"tokens": 0
|
||||
}
|
||||
},
|
||||
"exitCriteria": [
|
||||
"source and protocol hashes are bound",
|
||||
"every selected Main reader type is proven",
|
||||
"negative no-mutation and recovery are proven",
|
||||
"Chromium and save/reopen evidence are exact"
|
||||
],
|
||||
"nextTask": null,
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P1273-001.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P1273-000/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P1273-000.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P1273-001.md",
|
||||
"tests/golden/WBV2-P1273-000/manifest.json",
|
||||
"docs/status/WBV2-P1273-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-P1273-000",
|
||||
"parentTask": "WBV2-P1272-001",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P1273-001",
|
||||
"artifactCount": 4
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P1273-000 status",
|
||||
"- task: `WBV2-P1273-000`; parent: `WBV2-P1272-001`; status: `done`",
|
||||
"- taskClass: `QUEUE_ENABLEMENT`; no modifier-family parity completion claimed",
|
||||
"- source-backed batch authorized: `MESH_PRIMITIVE_CUBE_OPERATOR_BATCH` (1 units)",
|
||||
"- dynamic inventory: `3745` units; verified `1006`; unverified `2739`; bound delta `0`",
|
||||
"- nextTask: `WBV2-P1273-001`"
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 2267,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"contextEnvelopeTokens": 1024,
|
||||
"taskLines": 49,
|
||||
"taskTokens": 567
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 4030,
|
||||
"lines": 58,
|
||||
"tokens": 1008
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P1273-001.md",
|
||||
"bytes": 2267,
|
||||
"lines": 49,
|
||||
"tokens": 567
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P1273-000/manifest.json",
|
||||
"bytes": 1545,
|
||||
"lines": 47,
|
||||
"tokens": 387
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P1273-000.md",
|
||||
"bytes": 367,
|
||||
"lines": 8,
|
||||
"tokens": 92
|
||||
}
|
||||
],
|
||||
"sourceTokens": 2054,
|
||||
"evidenceFiles": 0,
|
||||
"evidenceBytes": 0,
|
||||
"evidenceTokens": 0,
|
||||
"totalTokens": 2054,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 3078,
|
||||
"serializedContextTokens": 656,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
@@ -323,3 +323,5 @@
|
||||
{"id":"WBV2-P1271-001","gapId":"OBJECT_COLLECTION_CREATE_OPERATOR_BATCH","ownerFamily":"OBJECT","sourceTask":"1271","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
{"id":"WBV2-P1272-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1272","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1272-001","gapId":"OBJECT_PARENT_OPERATOR_BATCH","ownerFamily":"OBJECT","sourceTask":"1272","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
{"id":"WBV2-P1273-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1273","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
|
||||
{"id":"WBV2-P1273-001","gapId":"MESH_PRIMITIVE_CUBE_OPERATOR_BATCH","ownerFamily":"MESH","sourceTask":"1273","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and protocol hashes are bound","every selected Main reader type is proven","negative no-mutation and recovery are proven","Chromium and save/reopen evidence are exact"]}
|
||||
|
||||
File diff suppressed because one or more lines are too long
44
web/tests/e2e/wbv2-primitive-cube-batch-production.spec.ts
Normal file
44
web/tests/e2e/wbv2-primitive-cube-batch-production.spec.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
const fixturePath = process.env.WBV2_BATCH_FIXTURE ?? "tests/files/web/basic_scene.blend";
|
||||
const fixture = fs.readFileSync(path.join(root, fixturePath));
|
||||
const fixtureSha256 = crypto.createHash("sha256").update(fixture).digest("hex");
|
||||
const task = process.env.WBV2_BATCH_TASK ?? "WBV2-P18-002";
|
||||
const productionPath = process.env.WBV2_BATCH_PRODUCTION ?? `tests/golden/${task}/primitive-cube-production.json`;
|
||||
const sourceUnits = JSON.parse(process.env.WBV2_BATCH_UNITS ?? "[\"operator:MESH_OT_primitive_cube_add\"]") as string[];
|
||||
|
||||
test("native primitive cube batch preserves Main mutation and recovery", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
const result = await page.evaluate(async (bytes) => {
|
||||
const { WebEngineClient } = await import("/src/engine-client/WebEngineClient.ts");
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const reopened = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const opened = await client.openBlend(Uint8Array.from(bytes).buffer);
|
||||
const created = await client.applyCommand({ type: "createPrimitive", primitive: "CUBE", name: "WBV2P1802Cube", location: [1, 2, 3] } as any);
|
||||
const undo = await client.applyCommand({ type: "undo" });
|
||||
const redo = await client.applyCommand({ type: "redo" });
|
||||
const malformed = await client.applyCommand({ type: "createPrimitive", primitive: "SPHERE", name: "invalid", location: [0, 0, 0] } as any).then(() => ({ code: "NO_ERROR" })).catch((error: any) => ({ code: error?.code, message: error?.message }));
|
||||
const afterMalformed = await client.snapshot();
|
||||
const saved = await client.saveBlend();
|
||||
const restored = await reopened.openBlend(saved.slice(0));
|
||||
return { browser: "chromium", baseRevision: opened.snapshot.revision, createRevision: created.snapshot.revision, undoRevision: undo.snapshot.revision, redoRevision: redo.snapshot.revision, beforeCount: opened.snapshot.nodes.length, afterCount: created.snapshot.nodes.length, created: created.snapshot.nodes.some((node) => node.name === "WBV2P1802Cube"), restored: restored.snapshot.nodes.some((node) => node.name === "WBV2P1802Cube"), malformed, malformedRevisionPreserved: afterMalformed.snapshot.revision === redo.snapshot.revision, reopenedRevision: restored.snapshot.revision };
|
||||
} finally { client.terminate(); reopened.terminate(); }
|
||||
}, Array.from(fixture));
|
||||
fs.mkdirSync(path.dirname(path.join(root, productionPath)), { recursive: true });
|
||||
fs.writeFileSync(path.join(root, productionPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "OBJECT_PRIMITIVE_CUBE_ENGINE_CHROMIUM", browser: "chromium", queueMutation: false, fixture: fixturePath, fixtureSha256, sourceUnits, ...result }, null, 2)}\n`);
|
||||
expect(result.browser).toBe("chromium");
|
||||
expect(result.afterCount).toBe(result.beforeCount + 1);
|
||||
expect(result.createRevision).toBe(result.baseRevision + 1);
|
||||
expect(result.undoRevision).toBe(result.baseRevision + 2);
|
||||
expect(result.redoRevision).toBe(result.baseRevision + 3);
|
||||
expect(result.created).toBe(true);
|
||||
expect(result.restored).toBe(true);
|
||||
expect(result.malformed.code).not.toBe("NO_ERROR");
|
||||
expect(result.malformedRevisionPreserved).toBe(true);
|
||||
expect(result.reopenedRevision).toBe(1);
|
||||
});
|
||||
Reference in New Issue
Block a user