chore(web): continuous handoff WBV2-P1161-001
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-09-03 19:07:00 +08:00
parent 55a83f1878
commit ced5961ca2
15 changed files with 9165 additions and 4 deletions

View File

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

View File

@@ -0,0 +1,9 @@
# WBV2-P1161-001 status
- task: `WBV2-P1161-001`; module: `FCURVE_MODIFIER_SUBTYPE_READER_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 `523`; unverified `3222`; planning estimate `5200` (non-binding); this-segment binding delta: `6`
- historical 6900-entry inventory remains read-only; full-family parity: `false`
- nextTask: `NONE`

View File

@@ -0,0 +1,45 @@
# WBV2-P1161-001: verify FCurve modifier subtype reader batch
- task: WBV2-P1161-001
- parent: WBV2-P1161-000
- status: in_progress
- gap: capability:FCURVE_MODIFIER_SUBTYPE_READER_BATCH
- ownerFamily: ANIMATION
- targetImplementationClass: LOCAL_EXACT
- Implementation entrypoint: `node tools/web/run-wbv2-module-task.mjs --task WBV2-P1161-001 --write`
## 目标
以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 RNA-only reader units 的真实 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/fcurve_modifier_subtype_batch_scene.blend`
- Chromium test: `web/tests/e2e/wbv2-fcurve-modifier-production.spec.ts`
- Selected modifier units: none
- Selected RNA units: `rna-struct:FModifierEnvelope`, `rna-struct:FModifierGenerator`, `rna-struct:FModifierLimits`, `rna-struct:FModifierNoise`, `rna-struct:FModifierSmooth`, `rna-struct:FModifierStepped`
## 验收
- 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-P1161-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-P1161-001/module-receipt.json`
- Aggregate production evidence: `tests/golden/WBV2-P1161-001/modifier-reader-batch-production.json`
- Manifest: `tests/golden/WBV2-P1161-001/manifest.json`
- Status: `docs/status/WBV2-P1161-001.md`
- Rollback: restore WBV2-P1161-000 as queue parent without rewriting prior evidence.

View File

@@ -0,0 +1,42 @@
{
"schemaVersion": 1,
"task": "WBV2-P1161-000",
"parentTask": "WBV2-P1160-001",
"operation": "AUTHORIZE_SOURCE_BACKED_MODULE_BATCH",
"status": "done",
"enablingTask": true,
"parityStateChange": false,
"runtime": "MODULE_EXECUTION_QUEUE_BRIDGE",
"artifacts": {
"parentManifest": {
"path": "tests/golden/WBV2-P1160-001/manifest.json",
"sha256": "f2c6216a3354043541a08d310e33aec15d3fc3e9fd1cc9ac958ec917e724ccf6"
},
"plan": {
"path": "tests/golden/WBV2-P1161-000/module-execution-plan.json",
"sha256": "ce3bcc89eb8cc5e003bb59578ffc7f932fc74553e3b1893b3dd30086e303d61d"
},
"report": {
"path": "tests/golden/WBV2-P1161-000/successor-authorization-report.json",
"sha256": "ab83e396df9f8584885d257f970338867aa067ea531a47cb68c32c99ff4507b4"
},
"status": {
"path": "docs/status/WBV2-P1161-000.md",
"sha256": "85055f55c507388f8fba17b814bc7d23698bd6b901601699c663b63d867ed5f0"
}
},
"assertions": {
"sourceBackedSuccessor": true,
"moduleId": "FCURVE_MODIFIER_SUBTYPE_READER_BATCH",
"batchSize": 6,
"inventoryTotal": 6900,
"effectiveCompleted": 290,
"effectivePending": 6609,
"dynamicUnitCount": 3745,
"dynamicVerifiedUnits": 517,
"dynamicUnverifiedUnits": 3228,
"boundUnitDelta": 0,
"fullHistoricalReproduction": false
},
"nextTask": "WBV2-P1161-001"
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,202 @@
{
"schemaVersion": 1,
"task": "WBV2-P1161-001",
"operation": "FCURVE_MODIFIER_READER_MAIN_CHROMIUM",
"browser": "chromium",
"queueMutation": false,
"fixture": "tests/files/web/fcurve_modifier_subtype_batch_scene.blend",
"fixtureSha256": "7b9de8e1e9e47c3ae7daa6d6bbcde49fdccf975f746bcdf763ecfeabeb1c4c13",
"sourceUnits": [
"rna-struct:FModifierEnvelope",
"rna-struct:FModifierGenerator",
"rna-struct:FModifierLimits",
"rna-struct:FModifierNoise",
"rna-struct:FModifierSmooth",
"rna-struct:FModifierStepped"
],
"before": {
"animationId": "action:WebGapAnimChannelsGroupObjectAction:object:WebGapAnimChannelsGroupObject",
"keyframeSource": "SAMPLED",
"modifiers": [
{
"blendIn": 0,
"blendOut": 0,
"expanded": true,
"flags": 4,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "WebCycles",
"type": "CYCLES",
"typeCode": 4
},
{
"blendIn": 0,
"blendOut": 0,
"expanded": false,
"flags": 0,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "",
"type": "UNKNOWN",
"typeCode": 0
}
],
"frames": [
1,
2,
3,
4
],
"values": [
0,
0.625,
2,
3.375
],
"channelCount": 3
},
"edited": {
"animationId": "action:WebGapAnimChannelsGroupObjectAction:object:WebGapAnimChannelsGroupObject",
"keyframeSource": "SAMPLED",
"modifiers": [
{
"blendIn": 0,
"blendOut": 0,
"expanded": true,
"flags": 4,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "WebCycles",
"type": "CYCLES",
"typeCode": 4
},
{
"blendIn": 0,
"blendOut": 0,
"expanded": false,
"flags": 0,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "",
"type": "UNKNOWN",
"typeCode": 0
}
],
"frames": [
1,
2,
3,
4
],
"values": [
0,
0.625,
2,
3.375
],
"channelCount": 3
},
"undo": {
"status": "undo"
},
"redo": {
"status": "redo"
},
"afterRedo": {
"animationId": "action:WebGapAnimChannelsGroupObjectAction:object:WebGapAnimChannelsGroupObject",
"keyframeSource": "SAMPLED",
"modifiers": [
{
"blendIn": 0,
"blendOut": 0,
"expanded": true,
"flags": 4,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "WebCycles",
"type": "CYCLES",
"typeCode": 4
},
{
"blendIn": 0,
"blendOut": 0,
"expanded": false,
"flags": 0,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "",
"type": "UNKNOWN",
"typeCode": 0
}
],
"frames": [
1,
2,
3,
4
],
"values": [
0,
0.625,
2,
3.375
],
"channelCount": 3
},
"malformed": {
"code": "BLEND_READ_FAILED",
"message": "Input is not an uncompressed, gzip, or zstd Blender file"
},
"reopened": {
"animationId": "action:WebGapAnimChannelsGroupObjectAction:object:WebGapAnimChannelsGroupObject",
"keyframeSource": "SAMPLED",
"modifiers": [
{
"blendIn": 0,
"blendOut": 0,
"expanded": true,
"flags": 4,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "WebCycles",
"type": "CYCLES",
"typeCode": 4
},
{
"blendIn": 0,
"blendOut": 0,
"expanded": false,
"flags": 0,
"frameEnd": 0,
"frameStart": 0,
"influence": 1,
"name": "",
"type": "UNKNOWN",
"typeCode": 0
}
],
"frames": [
1,
2,
3,
4
],
"values": [
0,
0.625,
2,
3.375
],
"channelCount": 3
},
"openedRevision": 1,
"editedRevision": 2,
"savedSha256": "25daa4239dd2f50f47bcc4a15ecab6b4f91ed7fcec79a9ad1798fa702d6c4ac6"
}

View File

@@ -0,0 +1,103 @@
{
"schemaVersion": 1,
"task": "WBV2-P1161-001",
"parentTask": "WBV2-P1161-000",
"operation": "MODULE_FUNCTION_EXECUTION",
"taskClass": "MODULE",
"status": "done",
"enablingTask": true,
"parityStateChange": false,
"runtime": "BLENDER_WEB_FUNCTION_MODULE",
"artifacts": {
"parentManifest": {
"path": "tests/golden/WBV2-P1161-000/manifest.json",
"sha256": "cf1b5e152c183463773621096cf34fafd30c9a6f556b1daa7a7258c40d3e0392"
},
"source1": {
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"sha256": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80"
},
"source2": {
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"sha256": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80"
},
"source3": {
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"sha256": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80"
},
"source4": {
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"sha256": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80"
},
"source5": {
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"sha256": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80"
},
"source6": {
"path": "blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"sha256": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80"
},
"source7": {
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
"sha256": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
},
"source8": {
"path": "web/tests/e2e/wbv2-fcurve-modifier-production.spec.ts",
"sha256": "0255bd5f62de3133c24950d67d8d84f97d4f1c976cddd9eb4d5bd435063bd8e5"
},
"source9": {
"path": "tests/files/web/fcurve_modifier_subtype_batch_scene.blend",
"sha256": "7b9de8e1e9e47c3ae7daa6d6bbcde49fdccf975f746bcdf763ecfeabeb1c4c13"
},
"source10": {
"path": "web/app/src/vendor/blender/web_engine.wasm",
"sha256": "66fc59cba55a8c17d398b74d12ea4a9f09746c0f30c40f579c44aa34956e3072"
},
"evidence1": {
"path": "tests/golden/WBV2-P1161-001/fcurve-modifier-production.json",
"sha256": "2f0955ea63f11a1c28969d31e277a3007bd1625074b64bbf2284ef2c0264e77f"
},
"moduleReceipt": {
"path": "tests/golden/WBV2-P1161-001/module-receipt.json",
"sha256": "48d1c06e1f03206fa68bec9db86ecd67fbfd858776b48a82b9505dc6ccd03459"
},
"status": {
"path": "docs/status/WBV2-P1161-001.md",
"sha256": "959408d951baa4f26d3b054c2616bcc1ce5bb047c5c2880e836434511bcec03a"
},
"log": {
"path": "tests/golden/WBV2-P1161-001/module-run.log",
"sha256": "198ece244505cd4dc452e4fd0c83f786cd77d1cfa10709f3b766d47b4bee2ce1"
},
"plan": {
"path": "tests/golden/WBV2-P1161-000/module-execution-plan.json",
"sha256": "143fa58b17a05391c15b836de6180b54278427fa126b4308a38e340d94c2dd11"
},
"taskContext": {
"path": "tests/golden/WBV2-P1161-001/task-context.json",
"sha256": "cb7a0b446bfc6c27a2040f42107162c99290927f3115eab029c2a456442b8ad3"
}
},
"assertions": {
"moduleId": "FCURVE_MODIFIER_SUBTYPE_READER_BATCH",
"sourceBacked": true,
"positiveCases": 2,
"negativeCases": 3,
"recoveryCases": 3,
"commandCount": 4,
"reusedReceiptCount": 1,
"sourceUnchanged": true,
"fullFamilyParity": false,
"dynamicInventoryPath": "tests/golden/WBV2/dynamic-inventory.json",
"dynamicSourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
"dynamicUnitCount": 3745,
"dynamicVerifiedUnits": 523,
"dynamicUnverifiedUnits": 3222,
"planningEstimate": 5200,
"historicalInventoryTotal": 6900,
"historicalEffectiveCompleted": 290,
"historicalEffectivePending": 6609,
"historicalReproduction": false
},
"nextTask": null
}

View File

@@ -0,0 +1,127 @@
{
"schemaVersion": 1,
"task": "WBV2-P1161-001",
"operation": "MODULE_FUNCTION_EXECUTION",
"moduleId": "FCURVE_MODIFIER_SUBTYPE_READER_BATCH",
"status": "PASS",
"source": {
"paths": [
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
"web/tests/e2e/wbv2-fcurve-modifier-production.spec.ts",
"tests/files/web/fcurve_modifier_subtype_batch_scene.blend",
"web/app/src/vendor/blender/web_engine.wasm"
],
"auditedPaths": [
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc",
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
],
"before": {
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80",
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
},
"after": {
"blender-5.2.0/source/blender/makesrna/intern/rna_fcurve.cc": "a58fda3af52b93264459da0d462b2094e3c6603ebc8f6e9d8840abbf87532a80",
"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": [
"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",
"exitCode": 0,
"durationMs": 159
},
{
"command": "npm --prefix web run typecheck",
"exitCode": 0,
"durationMs": 3552
},
{
"command": "npm --prefix web run build",
"exitCode": 0,
"durationMs": 4187
},
{
"command": "WBV2_BATCH_TASK=WBV2-P1161-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1161-001/fcurve-modifier-production.json WBV2_BATCH_FIXTURE=tests/files/web/fcurve_modifier_subtype_batch_scene.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='[\"rna-struct:FModifierEnvelope\",\"rna-struct:FModifierGenerator\",\"rna-struct:FModifierLimits\",\"rna-struct:FModifierNoise\",\"rna-struct:FModifierSmooth\",\"rna-struct:FModifierStepped\"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-fcurve-modifier-production.spec.ts",
"exitCode": 0,
"durationMs": 3107
}
],
"verification": {
"required": [
"sourceHash",
"wasmBuild",
"positiveMainMutation",
"negativeNoMutation",
"undoRedo",
"saveReopen",
"aggregateManifest"
],
"chromiumOnly": true,
"fullFamilyParity": false
},
"efficiency": {
"existingEvidenceReused": false,
"skippedCommands": 0,
"totalDurationMs": 11005,
"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": "5b5615ab8d77bad551f499c823ce9d9e7a072fd9eb870721fbf92bc578d7d2e4",
"sourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
"unitCount": 3745,
"planningEstimate": 5200,
"hardTarget": false,
"verifiedUnits": 523,
"unverifiedUnits": 3222
}
},
"nextTask": null
}

View File

@@ -0,0 +1,49 @@
> 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
ninja: no work to do.
> 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...

transforming...✓ 102 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html 0.46 kB │ gzip: 0.29 kB
dist/assets/storage.worker-D9TqXsGS.js 66.59 kB
dist/assets/web-engine.worker-ynL11m10.js 362.11 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-B1m0FaKy.js 1,190.30 kB │ gzip: 316.69 kB
✓ built in 496ms
[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-P1161-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1161-001/fcurve-modifier-production.json WBV2_BATCH_FIXTURE=tests/files/web/fcurve_modifier_subtype_batch_scene.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='["rna-struct:FModifierEnvelope","rna-struct:FModifierGenerator","rna-struct:FModifierLimits","rna-struct:FModifierNoise","rna-struct:FModifierSmooth","rna-struct:FModifierStepped"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-fcurve-modifier-production.spec.ts
> blender-web-editor@0.1.0-rc.1 test:e2e
> playwright test --config playwright.config.ts --workers=1 tests/e2e/wbv2-fcurve-modifier-production.spec.ts
Running 1 test using 1 worker
✓ 1 tests/e2e/wbv2-fcurve-modifier-production.spec.ts:12:1 › WBV2 FCurve modifiers are read from Blender Main and survive recovery/reopen (1.9s)
1 passed (2.7s)
[WebServer] (node:180813) 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:180914) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.

View File

@@ -0,0 +1,187 @@
{
"schemaVersion": 1,
"task": "WBV2-P1161-001",
"parentTask": "WBV2-P1161-000",
"status": "in_progress",
"goal": "以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 RNA-only reader units 的真实 modifier/RNA 元数据。",
"scope": {
"gap": "capability:FCURVE_MODIFIER_SUBTYPE_READER_BATCH",
"ownerFamily": "ANIMATION",
"implementationClass": "LOCAL_EXACT"
},
"commands": [
"node tools/web/check-task-context.mjs --task WBV2-P1161-001 --write"
],
"inputPaths": [],
"inputSelection": {
"schemaVersion": 1,
"limits": {
"maxFiles": 12,
"evidenceBytes": 8192,
"contextRemainingBytes": 1914,
"contextRemainingTokens": 477
},
"source": {
"bytes": 7990,
"tokens": 1999
},
"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/fcurve_modifier_subtype_batch_scene.blend",
"bytes": 87430,
"reason": "EVIDENCE_BYTE_BUDGET"
},
{
"path": "web/tests/e2e/wbv2-fcurve-modifier-production.spec.ts",
"bytes": 4511,
"reason": "CONTEXT_REMAINING_SPACE"
},
{
"path": "tests/golden/WBV2-P1161-001/module-receipt.json",
"bytes": null,
"reason": "MISSING_PATH"
},
{
"path": "tests/golden/WBV2-P1161-001/modifier-reader-batch-production.json",
"bytes": null,
"reason": "MISSING_PATH"
},
{
"path": "tests/golden/WBV2-P1161-001/manifest.json",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "docs/status/WBV2-P1161-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-P1161-001.md",
"taskIndex": "tests/golden/WBV2/task-index.json",
"parentManifest": "tests/golden/WBV2-P1161-000/manifest.json",
"parentStatus": "docs/status/WBV2-P1161-000.md"
},
"readPolicy": {
"required": [
"docs/EXECUTION_QUEUE.md",
"docs/tasks/WBV2-P1161-001.md",
"tests/golden/WBV2-P1161-000/manifest.json",
"docs/status/WBV2-P1161-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-P1161-000",
"parentTask": "WBV2-P1160-001",
"status": "done",
"nextTask": "WBV2-P1161-001",
"artifactCount": 4
},
"statusSummary": [
"# WBV2-P1161-000 status",
"- task: `WBV2-P1161-000`; parent: `WBV2-P1160-001`; status: `done`",
"- taskClass: `QUEUE_ENABLEMENT`; no modifier-family parity completion claimed",
"- source-backed batch authorized: `FCURVE_MODIFIER_SUBTYPE_READER_BATCH` (6 units)",
"- dynamic inventory: `3745` units; verified `517`; unverified `3228`; bound delta `0`",
"- nextTask: `WBV2-P1161-001`"
]
},
"budgets": {
"queueBytes": 4096,
"taskBytes": 2201,
"parentManifestBytes": 24576,
"parentStatusBytes": 6144,
"evidenceFiles": 12,
"evidenceBytes": 8192,
"contextTokens": 3500,
"contextEnvelopeTokens": 1024,
"taskLines": 46,
"taskTokens": 551
},
"size": {
"documents": [
{
"path": "docs/EXECUTION_QUEUE.md",
"bytes": 4030,
"lines": 58,
"tokens": 1008
},
{
"path": "docs/tasks/WBV2-P1161-001.md",
"bytes": 2201,
"lines": 46,
"tokens": 551
},
{
"path": "tests/golden/WBV2-P1161-000/manifest.json",
"bytes": 1391,
"lines": 43,
"tokens": 348
},
{
"path": "docs/status/WBV2-P1161-000.md",
"bytes": 368,
"lines": 8,
"tokens": 92
}
],
"sourceTokens": 1999,
"evidenceFiles": 0,
"evidenceBytes": 0,
"evidenceTokens": 0,
"totalTokens": 1999,
"reservedEnvelopeTokens": 1024,
"estimatedContextTokens": 3023,
"serializedContextTokens": 656,
"withinBudget": true
}
}

View File

@@ -97,3 +97,7 @@
{"id":"WBV2-P1158-001","gapId":"LINE_STYLE_READER_BATCH","ownerFamily":"DRAWING","sourceTask":"1158","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-P1159-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1159","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
{"id":"WBV2-P1159-001","gapId":"LINE_STYLE_COLLECTION_READER_BATCH","ownerFamily":"DRAWING","sourceTask":"1159","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-P1160-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1160","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
{"id":"WBV2-P1160-001","gapId":"LINE_STYLE_SUBTYPE_READER_BATCH","ownerFamily":"DRAWING","sourceTask":"1160","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-P1161-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1161","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
{"id":"WBV2-P1161-001","gapId":"FCURVE_MODIFIER_SUBTYPE_READER_BATCH","ownerFamily":"ANIMATION","sourceTask":"1161","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

Binary file not shown.

View File

@@ -0,0 +1,57 @@
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 task = process.env.WBV2_BATCH_TASK ?? "WBV2-P1143-001";
const fixtureName = process.env.WBV2_BATCH_FIXTURE ?? "tests/files/web/generated/M16-GAP-00161-action-fcurve-modifier.blend";
const fixture = fs.readFileSync(path.join(root, fixtureName));
const fixtureSha256 = crypto.createHash("sha256").update(fixture).digest("hex");
test("WBV2 FCurve modifiers are read from Blender Main and survive recovery/reopen", async ({ page }) => {
test.setTimeout(180_000);
await page.goto("/");
const result = await page.evaluate(async (input) => {
const { WebEngineClient } = await import("/src/engine-client/WebEngineClient.ts");
const client = new WebEngineClient({ timeoutMs: 60_000 });
const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 });
const summarize = (snapshot: any) => {
const animation = snapshot.animations?.find((entry: any) => entry.targetId === "object:WebGapAnimChannelsGroupObject");
const channel = animation?.channels?.find((entry: any) => entry.path === "location[0]");
return { animationId: animation?.id, keyframeSource: channel?.keyframeSource, modifiers: channel?.modifiers ?? [], frames: channel?.keyframes?.map((keyframe: any) => keyframe.frame), values: channel?.keyframes?.map((keyframe: any) => keyframe.value?.[0]), channelCount: animation?.channels?.length ?? 0 };
};
try {
const opened = await client.openBlend(Uint8Array.from(input.bytes).buffer);
const before = summarize(opened.snapshot);
if (before.keyframeSource !== "SAMPLED" || before.frames?.length !== 4 || before.modifiers.length < 1) throw new Error("FCurve modifier source reader data missing");
const edited = await client.applyCommand({ type: "setFrame", frame: 3 } as any);
const undo = await client.callJson<any>("undo");
const redo = await client.callJson<any>("redo");
const afterRedo = summarize((await client.snapshot()).snapshot);
const malformed = await client.openBlend(Uint8Array.from([0x42, 0x4c, 0x45, 0x4e, 0x44]).buffer).then(() => ({ code: "NO_ERROR" })).catch((error: any) => ({ code: error?.code, message: error?.message }));
const saved = await client.saveBlend();
const reopened = await reopenedClient.openBlend(saved.slice(0));
return { fixtureSha256: input.fixtureSha256, before, edited: summarize(edited.snapshot), undo: undo.result, redo: redo.result, afterRedo, malformed, reopened: summarize(reopened.snapshot), openedRevision: opened.snapshot.revision, editedRevision: edited.snapshot.revision, savedSha256: Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", saved.slice(0))), (byte) => byte.toString(16).padStart(2, "0")).join("") };
}
catch (error: any) { return { error: { code: error?.code, message: error?.message, detail: String(error) } } as any; }
finally { client.terminate(); reopenedClient.terminate(); }
}, { bytes: Array.from(fixture), fixtureSha256 });
const outputPath = path.join(root, `tests/golden/${task}/fcurve-modifier-production.json`);
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
fs.writeFileSync(outputPath, `${JSON.stringify({ schemaVersion: 1, task, operation: "FCURVE_MODIFIER_READER_MAIN_CHROMIUM", browser: "chromium", queueMutation: false, fixture: fixtureName, fixtureSha256, sourceUnits: JSON.parse(process.env.WBV2_BATCH_UNITS ?? '["rna-struct:FCurveModifiers","rna-struct:FModifier","rna-struct:FModifierCycles"]'), ...result }, null, 2)}\n`);
expect(result.error).toBeUndefined();
expect(result.fixtureSha256).toBe(fixtureSha256);
expect(result.before.keyframeSource).toBe("SAMPLED");
if (task === "WBV2-P1143-001") expect(result.before.modifiers).toEqual([{ name: "WebCycles", type: "CYCLES", typeCode: 4, flags: 4, expanded: true, influence: 1, frameStart: 0, frameEnd: 0, blendIn: 0, blendOut: 0 }]);
expect(result.before.frames).toEqual([1, 2, 3, 4]);
expect(result.before.values).toEqual([0, 0.625, 2, 3.375]);
expect(result.editedRevision).toBe(result.openedRevision + 1);
expect(result.undo).toBeDefined();
expect(result.redo).toBeDefined();
expect(result.afterRedo).toEqual(result.before);
expect(result.malformed.code).not.toBe("NO_ERROR");
expect(result.reopened).toEqual(result.before);
expect(result.savedSha256).not.toBe(fixtureSha256);
});