chore(web): continuous handoff WBV2-P1275-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-04 14:52:30 +08:00
parent 5e1019ee3b
commit 9cbd319a64
13 changed files with 29925 additions and 4 deletions

View File

@@ -15,9 +15,9 @@
| 字段 | 值 |
| --- | --- |
| 里程碑 | WBV2 capability workflow |
| 当前任务 | `WBV2-P1274-001` |
| parent manifest | `tests/golden/WBV2-P1274-000/manifest.json` |
| 任务卡 | [`tasks/WBV2-P1274-001.md`](tasks/WBV2-P1274-001.md) |
| 当前任务 | `WBV2-P1275-001` |
| parent manifest | `tests/golden/WBV2-P1275-000/manifest.json` |
| 任务卡 | [`tasks/WBV2-P1275-001.md`](tasks/WBV2-P1275-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-P1275-001 status
- task: `WBV2-P1275-001`; module: `OBJECT_VISIBILITY_CLEAR_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 `1009`; unverified `2736`; planning estimate `5200` (non-binding); this-segment binding delta: `1`
- historical 6900-entry inventory remains read-only; full-family parity: `false`
- nextTask: `NONE`

View File

@@ -0,0 +1,48 @@
# WBV2-P1275-001: verify object visibility clear operator through native Main
- task: WBV2-P1275-001
- parent: WBV2-P1275-000
- status: in_progress
- gap: capability:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH
- ownerFamily: OBJECT
- targetImplementationClass: LOCAL_EXACT
- batchId: WBV2-P1275-001:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH:e4871b703871cd02
- selectedRecordIds: ["operator:OBJECT_OT_hide_view_clear"]
- commandBudget: max=48; read/exploration max=16
- Implementation entrypoint: `node tools/web/run-wbv2-module-task.mjs --task WBV2-P1275-001 --write`
## 目标
以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 OBJECT_OT_hide_view_clear 的真实 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/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.blend`
- Chromium test: `web/tests/e2e/wbv2-object-visibility-clear-batch-production.spec.ts`
- Selected modifier units: `modifier-source:OBJECT_OT_hide_view_clear`
- 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-P1275-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-P1275-001/module-receipt.json`
- Aggregate production evidence: `tests/golden/WBV2-P1275-001/modifier-reader-batch-production.json`
- Manifest: `tests/golden/WBV2-P1275-001/manifest.json`
- Status: `docs/status/WBV2-P1275-001.md`
- Rollback: restore WBV2-P1275-000 as queue parent without rewriting prior evidence.

View File

@@ -0,0 +1,46 @@
{
"schemaVersion": 1,
"task": "WBV2-P1275-000",
"parentTask": "WBV2-P1274-001",
"operation": "AUTHORIZE_SOURCE_BACKED_MODULE_BATCH",
"status": "done",
"enablingTask": true,
"parityStateChange": false,
"runtime": "MODULE_EXECUTION_QUEUE_BRIDGE",
"batchId": "WBV2-P1275-001:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH:e4871b703871cd02",
"selectedRecordIds": [
"operator:OBJECT_OT_hide_view_clear"
],
"artifacts": {
"parentManifest": {
"path": "tests/golden/WBV2-P1274-001/manifest.json",
"sha256": "80944f3360d223cb47efa8d0ba8bd5e678e69538d9dc27e03d021c2b13df4628"
},
"plan": {
"path": "tests/golden/WBV2-P1275-000/module-execution-plan.json",
"sha256": "08ebb67e58d3fa24460ebc1d066837f875e694e25079edcd21c5f92080fb62b9"
},
"report": {
"path": "tests/golden/WBV2-P1275-000/successor-authorization-report.json",
"sha256": "271100b749be5c6c6a088f004849cec272ad41adea60d5500cc2da45a82c3543"
},
"status": {
"path": "docs/status/WBV2-P1275-000.md",
"sha256": "77625a478932295d49eac858ffd59abe796e51042369f4d42b13a7d8bdb3065b"
}
},
"assertions": {
"sourceBackedSuccessor": true,
"moduleId": "OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH",
"batchSize": 1,
"inventoryTotal": 6900,
"effectiveCompleted": 290,
"effectivePending": 6609,
"dynamicUnitCount": 3745,
"dynamicVerifiedUnits": 1008,
"dynamicUnverifiedUnits": 2737,
"boundUnitDelta": 0,
"fullHistoricalReproduction": false
},
"nextTask": "WBV2-P1275-001"
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,108 @@
{
"schemaVersion": 1,
"task": "WBV2-P1275-001",
"parentTask": "WBV2-P1275-000",
"operation": "MODULE_FUNCTION_EXECUTION",
"phase": "CONTINUE",
"taskClass": "MODULE",
"status": "done",
"enablingTask": true,
"parityStateChange": false,
"runtime": "BLENDER_WEB_FUNCTION_MODULE",
"batchId": "WBV2-P1275-001:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH:e4871b703871cd02",
"selectedRecordIds": [
"operator:OBJECT_OT_hide_view_clear"
],
"artifacts": {
"parentManifest": {
"path": "tests/golden/WBV2-P1275-000/manifest.json",
"sha256": "556890876d4f17e76cf4bc048f832781df750906c098deb2e3547baa86954729"
},
"source1": {
"path": "blender-5.2.0/source/blender/editors/object/object_ops.cc",
"sha256": "c5dd9e9bcd036389abe648f9e43ce1130f2c9762d681ee711ccc9b354e7d7a8c"
},
"source2": {
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
"sha256": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
},
"source3": {
"path": "web/tests/e2e/wbv2-object-visibility-clear-batch-production.spec.ts",
"sha256": "45b3c50bfd4c05c1535979d4ae05e3b367375593586e4037687940ebc84b0c19"
},
"source4": {
"path": "tests/files/web/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.blend",
"sha256": "62c70feb65822a58c38024d604d4cf93809372c3b7e79493f7829c4039ae01e6"
},
"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-P1275-001/object-visibility-clear-production.json",
"sha256": "5921c708a0498a5732c1c51efa333a5afffdbac5d557fbc061e78116a22d7f3c"
},
"moduleReceipt": {
"path": "tests/golden/WBV2-P1275-001/module-receipt.json",
"sha256": "50fa90ffd45cb137bd6f201cfd6799382ea6e6c9110ae04a7ad7fccdeade3922"
},
"status": {
"path": "docs/status/WBV2-P1275-001.md",
"sha256": "a7a5ce13482569e41431ec7f674403064291179aefc67ff9cc433e9721d7a32b"
},
"log": {
"path": "tests/golden/WBV2-P1275-001/module-run.log",
"sha256": "8869126538e3dbbd5e37aebb7df72c7821e4453f675d06c7c11419ecb8782d3e"
},
"plan": {
"path": "tests/golden/WBV2-P1275-000/module-execution-plan.json",
"sha256": "9548d30ddf04075dbd8003e668d20feb8a1a65798e9366d12559685f134b8031"
},
"taskContext": {
"path": "tests/golden/WBV2-P1275-001/task-context.json",
"sha256": "22e4157568b43b0b87c1c02d970dd8f022127ff7bb52e916000f17ec5d4a2001"
}
},
"assertions": {
"moduleId": "OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH",
"batchId": "WBV2-P1275-001:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH:e4871b703871cd02",
"selectedRecordIds": [
"operator:OBJECT_OT_hide_view_clear"
],
"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": 1009,
"dynamicUnverifiedUnits": 2736,
"planningEstimate": 5200,
"historicalInventoryTotal": 6900,
"historicalEffectiveCompleted": 290,
"historicalEffectivePending": 6609,
"historicalReproduction": false
},
"nextTask": null
}

View File

@@ -0,0 +1,134 @@
{
"schemaVersion": 1,
"task": "WBV2-P1275-001",
"operation": "MODULE_FUNCTION_EXECUTION",
"phase": "CONTINUE",
"moduleId": "OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH",
"batchId": "WBV2-P1275-001:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH:e4871b703871cd02",
"selectedRecordIds": [
"operator:OBJECT_OT_hide_view_clear"
],
"commandBudget": {
"maxCommands": 48,
"maxReadCommands": 16,
"commandCount": 4,
"readCommandCount": 0,
"withinBudget": true
},
"status": "PASS",
"source": {
"paths": [
"blender-5.2.0/source/blender/editors/object/object_ops.cc",
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
"web/tests/e2e/wbv2-object-visibility-clear-batch-production.spec.ts",
"tests/files/web/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.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/object/object_ops.cc",
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
],
"before": {
"blender-5.2.0/source/blender/editors/object/object_ops.cc": "c5dd9e9bcd036389abe648f9e43ce1130f2c9762d681ee711ccc9b354e7d7a8c",
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp": "8a9b46e8f5f9c4b30ad7818fac6fbd64b20dc2d0a962630f50c8f352bdf230d3"
},
"after": {
"blender-5.2.0/source/blender/editors/object/object_ops.cc": "c5dd9e9bcd036389abe648f9e43ce1130f2c9762d681ee711ccc9b354e7d7a8c",
"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": [
"OBJECT_OT_hide_view_clear 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": 1125
},
{
"command": "npm --prefix web run typecheck",
"exitCode": 0,
"durationMs": 3328
},
{
"command": "npm --prefix web run build",
"exitCode": 0,
"durationMs": 3901
},
{
"command": "WBV2_BATCH_TASK=WBV2-P1275-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1275-001/object-visibility-clear-production.json WBV2_BATCH_FIXTURE=tests/files/web/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='[\"operator:OBJECT_OT_hide_view_clear\"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-visibility-clear-batch-production.spec.ts",
"exitCode": 0,
"durationMs": 2905
}
],
"verification": {
"required": [
"sourceHash",
"wasmBuild",
"positiveMainMutation",
"negativeNoMutation",
"undoRedo",
"saveReopen",
"aggregateManifest"
],
"chromiumOnly": true,
"fullFamilyParity": false
},
"efficiency": {
"existingEvidenceReused": false,
"skippedCommands": 0,
"totalDurationMs": 11259,
"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": "cc8960e8c4ffc94712639ba5b41238e744a5af2889012e405a92fbc487211403",
"sourceTreeSha256": "600cb3dd441f09d9655b740735fbf8fa49ad6c14d308c68d59a29f9c338e4202",
"unitCount": 3745,
"planningEstimate": 5200,
"hardTarget": false,
"verifiedUnits": 1009,
"unverifiedUnits": 2736
}
},
"nextTask": null
}

View 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...

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 488ms
[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-P1275-001 WBV2_BATCH_PRODUCTION=tests/golden/WBV2-P1275-001/object-visibility-clear-production.json WBV2_BATCH_FIXTURE=tests/files/web/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.blend WBV2_BATCH_TYPES='[]' WBV2_BATCH_UNITS='["operator:OBJECT_OT_hide_view_clear"]' WEB_TEST_PORT=5371 npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-visibility-clear-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-object-visibility-clear-batch-production.spec.ts
Running 1 test using 1 worker
✓ 1 tests/e2e/wbv2-object-visibility-clear-batch-production.spec.ts:14:1 › native object visibility clear batch preserves Main recovery semantics (1.7s)
1 passed (2.6s)
[WebServer] (node:1530905) 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:1530959) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.

View File

@@ -0,0 +1,25 @@
{
"schemaVersion": 1,
"task": "WBV2-P1275-001",
"operation": "OBJECT_VISIBILITY_CLEAR_ENGINE_CHROMIUM",
"browser": "chromium",
"queueMutation": false,
"fixture": "tests/files/web/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.blend",
"fixtureSha256": "62c70feb65822a58c38024d604d4cf93809372c3b7e79493f7829c4039ae01e6",
"sourceUnits": [
"operator:OBJECT_OT_hide_view_clear"
],
"baseRevision": 1,
"clearRevision": 3,
"undoRevision": 4,
"redoRevision": 5,
"beforeVisible": true,
"clearedVisible": true,
"restoredVisible": true,
"malformed": {
"code": "INVALID_ARGUMENT",
"message": "objectId was not found"
},
"malformedRevisionPreserved": true,
"reopenedRevision": 1
}

View File

@@ -0,0 +1,217 @@
{
"schemaVersion": 1,
"task": "WBV2-P1275-001",
"parentTask": "WBV2-P1275-000",
"status": "in_progress",
"goal": "以一个共享 Blender Main reader、WASM build、Worker 路由和 Chromium receipt 批量验证 OBJECT_OT_hide_view_clear 的真实 modifier/RNA 元数据。",
"scope": {
"gap": "capability:OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH",
"ownerFamily": "OBJECT",
"implementationClass": "LOCAL_EXACT"
},
"commands": [
"node tools/web/check-task-context.mjs --task WBV2-P1275-001 --write"
],
"inputPaths": [],
"inputMetadata": {
"docs/EXECUTION_QUEUE.md": {
"path": "docs/EXECUTION_QUEUE.md",
"exists": true,
"bytes": 4030,
"mtime_ns": "1788504749543255327",
"sha256": "8f0430348777f6d58a7b29d8abd919b856006b1bce24da5ae4b926e8a30f5739"
},
"docs/tasks/WBV2-P1275-001.md": {
"path": "docs/tasks/WBV2-P1275-001.md",
"exists": true,
"bytes": 2329,
"mtime_ns": "1788504737777163228",
"sha256": "baf6f41a9d0e89a566793386f0378c84596be6c8bf3a899fcbfae750b9f8cb15"
},
"tests/golden/WBV2-P1275-000/manifest.json": {
"path": "tests/golden/WBV2-P1275-000/manifest.json",
"exists": true,
"bytes": 1552,
"mtime_ns": "1788504737778124303",
"sha256": "556890876d4f17e76cf4bc048f832781df750906c098deb2e3547baa86954729"
},
"docs/status/WBV2-P1275-000.md": {
"path": "docs/status/WBV2-P1275-000.md",
"exists": true,
"bytes": 371,
"mtime_ns": "1788504737777366505",
"sha256": "77625a478932295d49eac858ffd59abe796e51042369f4d42b13a7d8bdb3065b"
}
},
"inputSelection": {
"schemaVersion": 1,
"limits": {
"maxFiles": 12,
"evidenceBytes": 8192,
"contextRemainingBytes": 1622,
"contextRemainingTokens": 404
},
"source": {
"bytes": 8282,
"tokens": 2072
},
"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/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.blend",
"bytes": 86822,
"reason": "EVIDENCE_BYTE_BUDGET"
},
{
"path": "web/tests/e2e/wbv2-object-visibility-clear-batch-production.spec.ts",
"bytes": 3832,
"reason": "CONTEXT_REMAINING_SPACE"
},
{
"path": "tests/golden/WBV2-P1275-001/module-receipt.json",
"bytes": 5510,
"reason": "CONTEXT_REMAINING_SPACE"
},
{
"path": "tests/golden/WBV2-P1275-001/modifier-reader-batch-production.json",
"bytes": null,
"reason": "MISSING_PATH"
},
{
"path": "tests/golden/WBV2-P1275-001/manifest.json",
"bytes": null,
"reason": "GENERATED_EVIDENCE_OUTPUT"
},
{
"path": "docs/status/WBV2-P1275-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-P1275-001.md",
"taskIndex": "tests/golden/WBV2/task-index.json",
"parentManifest": "tests/golden/WBV2-P1275-000/manifest.json",
"parentStatus": "docs/status/WBV2-P1275-000.md"
},
"readPolicy": {
"required": [
"docs/EXECUTION_QUEUE.md",
"docs/tasks/WBV2-P1275-001.md",
"tests/golden/WBV2-P1275-000/manifest.json",
"docs/status/WBV2-P1275-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-P1275-000",
"parentTask": "WBV2-P1274-001",
"status": "done",
"nextTask": "WBV2-P1275-001",
"artifactCount": 4
},
"statusSummary": [
"# WBV2-P1275-000 status",
"- task: `WBV2-P1275-000`; parent: `WBV2-P1274-001`; status: `done`",
"- taskClass: `QUEUE_ENABLEMENT`; no modifier-family parity completion claimed",
"- source-backed batch authorized: `OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH` (1 units)",
"- dynamic inventory: `3745` units; verified `1008`; unverified `2737`; bound delta `0`",
"- nextTask: `WBV2-P1275-001`"
]
},
"budgets": {
"queueBytes": 4096,
"taskBytes": 2329,
"parentManifestBytes": 24576,
"parentStatusBytes": 6144,
"evidenceFiles": 12,
"evidenceBytes": 8192,
"contextTokens": 3500,
"contextEnvelopeTokens": 1024,
"taskLines": 49,
"taskTokens": 583
},
"size": {
"documents": [
{
"path": "docs/EXECUTION_QUEUE.md",
"bytes": 4030,
"lines": 58,
"tokens": 1008
},
{
"path": "docs/tasks/WBV2-P1275-001.md",
"bytes": 2329,
"lines": 49,
"tokens": 583
},
{
"path": "tests/golden/WBV2-P1275-000/manifest.json",
"bytes": 1552,
"lines": 47,
"tokens": 388
},
{
"path": "docs/status/WBV2-P1275-000.md",
"bytes": 371,
"lines": 8,
"tokens": 93
}
],
"sourceTokens": 2072,
"evidenceFiles": 0,
"evidenceBytes": 0,
"evidenceTokens": 0,
"totalTokens": 2072,
"reservedEnvelopeTokens": 1024,
"estimatedContextTokens": 3096,
"serializedContextTokens": 657,
"withinBudget": true
}
}

View File

@@ -327,3 +327,5 @@
{"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"]}
{"id":"WBV2-P1274-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1274","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
{"id":"WBV2-P1274-001","gapId":"OBJECT_MOVE_COLLECTION_OPERATOR_BATCH","ownerFamily":"OBJECT","sourceTask":"1274","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-P1275-000","gapId":"workflow:authorize_modifier_reader_batch","ownerFamily":"PROGRAM","sourceTask":"1275","state":"completed","targetImplementationClass":"QUEUE_ONLY","exitCriteria":["prior evidence remains hash-bound","batch source mapping is explicit","inventory remains source-derived"]}
{"id":"WBV2-P1275-001","gapId":"OBJECT_VISIBILITY_CLEAR_OPERATOR_BATCH","ownerFamily":"OBJECT","sourceTask":"1275","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

View File

@@ -0,0 +1,47 @@
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/generated/WBV2-P2-002-OBJECT.TRANSFORM_HIERARCHY.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-P12-003";
const productionPath = process.env.WBV2_BATCH_PRODUCTION ?? `tests/golden/${task}/object-visibility-clear-production.json`;
const sourceUnits = JSON.parse(process.env.WBV2_BATCH_UNITS ?? "[\"operator:OBJECT_OT_hide_view_clear\"]") as string[];
test("native object visibility clear batch preserves Main recovery semantics", 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 });
const parentId = "object:WBV2P2002Parent";
try {
const opened = await client.openBlend(Uint8Array.from(bytes).buffer);
const before = opened.snapshot.nodes.find((node) => node.id === parentId);
if (!before) throw new Error("visibility fixture parent object is missing");
const hidden = await client.applyCommand({ type: "setObjectVisibility", objectId: parentId, visible: false, baseRevision: opened.snapshot.revision } as any);
const cleared = await client.applyCommand({ type: "setObjectVisibility", objectId: parentId, visible: true, baseRevision: hidden.snapshot.revision } as any);
const undo = await client.applyCommand({ type: "undo" });
const redo = await client.applyCommand({ type: "redo" });
const malformed = await client.applyCommand({ type: "setObjectVisibility", objectId: "object:missing", visible: true, baseRevision: redo.snapshot.revision } 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, clearRevision: cleared.snapshot.revision, undoRevision: undo.snapshot.revision, redoRevision: redo.snapshot.revision, beforeVisible: before.visible, clearedVisible: cleared.snapshot.nodes.find((node) => node.id === parentId)?.visible, restoredVisible: restored.snapshot.nodes.find((node) => node.id === parentId)?.visible, 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_VISIBILITY_CLEAR_ENGINE_CHROMIUM", browser: "chromium", queueMutation: false, fixture: fixturePath, fixtureSha256, sourceUnits, ...result }, null, 2)}\n`);
expect(result.browser).toBe("chromium");
expect(result.clearRevision).toBe(result.baseRevision + 2);
expect(result.undoRevision).toBe(result.baseRevision + 3);
expect(result.redoRevision).toBe(result.baseRevision + 4);
expect(result.clearedVisible).toBe(true);
expect(result.restoredVisible).toBe(true);
expect(result.malformed.code).not.toBe("NO_ERROR");
expect(result.malformedRevisionPreserved).toBe(true);
expect(result.reopenedRevision).toBe(1);
});