Advance WBV2 through native engine module matrix
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
| 字段 | 值 |
|
||||
| --- | --- |
|
||||
| 里程碑 | WBV2 capability workflow |
|
||||
| 当前任务 | `WBV2-P9-004` |
|
||||
| parent manifest | `tests/golden/WBV2-P9-003/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P9-004.md`](tasks/WBV2-P9-004.md) |
|
||||
| 当前任务 | `WBV2-P10-003` |
|
||||
| parent manifest | `tests/golden/WBV2-P10-002/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P10-003.md`](tasks/WBV2-P10-003.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` |
|
||||
|
||||
6
docs/status/WBV2-P10-000.md
Normal file
6
docs/status/WBV2-P10-000.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# WBV2-P10-000 status
|
||||
|
||||
- task: `WBV2-P10-000`; parent: `WBV2-P9-004`; status: `done`
|
||||
- nextTask: `WBV2-P10-001`
|
||||
|
||||
Native engine parity continuation is authorized after P9 bounded Chromium evidence. P10 first reconciles the known WBV2 inventory drift, then requires receipts from the compiled Blender native binary and web_engine.wasm. Full historical reproduction remains false.
|
||||
9
docs/status/WBV2-P10-001.md
Normal file
9
docs/status/WBV2-P10-001.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WBV2-P10-001 status
|
||||
|
||||
- task: `WBV2-P10-001`; parent: `WBV2-P10-000`; status: `done`
|
||||
- plan drift: `1` authorized mutable plan hash
|
||||
- dependency packages: `144`; lockfile/roots/closure: `STABLE`
|
||||
- historical P0 hashes: preserved
|
||||
- nextTask: `WBV2-P10-002`
|
||||
|
||||
The current WBV2 plan hash is recorded as an additive epoch-1 baseline. The historical P0-002 source-hashes.json and all historical manifests remain unchanged. Dependency roots, lockfile, package closure, and package count remain stable.
|
||||
9
docs/status/WBV2-P10-002.md
Normal file
9
docs/status/WBV2-P10-002.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WBV2-P10-002 status
|
||||
|
||||
- task: `WBV2-P10-002`; parent: `WBV2-P10-001`; status: `done`
|
||||
- compiled native: `Blender 5.2.0 LTS`; compiled WASM: `web_engine.wasm`
|
||||
- real Main mutations: `Mesh + Modifier + Asset Catalog`
|
||||
- deterministic Chromium runs: `2`; save/reopen: `3/3 EXACT`
|
||||
- nextTask: `WBV2-P10-003`
|
||||
|
||||
The Chromium Worker loaded the checked-in WebEngine WASM and executed the native ABI through WebEngineClient. Mesh translation, modifier state, and library append all changed the real WASM Main, persisted through save/reopen, and rejected stale or malformed inputs without a late mutation. This evidence is engine-bound and still does not claim full historical reproduction.
|
||||
9
docs/status/WBV2-P10-003.md
Normal file
9
docs/status/WBV2-P10-003.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WBV2-P10-003 status
|
||||
|
||||
- task: `WBV2-P10-003`; parent: `WBV2-P10-002`; status: `done`
|
||||
- module cases: `9`; positive Main mutations: `3`; retained negatives: `6`
|
||||
- shards: `2`; one catalog hash; exit codes: `0/0`
|
||||
- inventory: `6900` total, `6900` explicitly remaining; no false completion claim
|
||||
- nextTask: `NONE`
|
||||
|
||||
The data-driven Mesh, Modifier, and Asset Catalog matrix re-runs the real WebEngine WASM Main path with one catalog hash. Positive cases change Main and pass save/reopen; stale, malformed, unknown, and collision cases remain explicit retained negatives. The matrix does not claim all inventory entries are complete or reproduce unavailable historical bytes. P10-003 is the terminal pointer until a separately authorized continuation is created.
|
||||
@@ -8,3 +8,6 @@
|
||||
- nextTask: `NONE`
|
||||
|
||||
The gate emits only claims backed by deterministic Chromium production receipts with exact save/reopen evidence. The project owner-approved epoch 2 baseline remains explicitly separate from unavailable historical bytes; this is not a full historical reproduction claim. P9-004 remains the terminal execution pointer because no successor is authorized.
|
||||
- authorized continuation: `WBV2-P10-000`
|
||||
|
||||
Native Blender/WASM engine parity may continue under a new manifest root. This does not change the bounded P9 claims or the authorized-rebaseline-only release scope.
|
||||
|
||||
24
docs/tasks/WBV2-P10-000.md
Normal file
24
docs/tasks/WBV2-P10-000.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# WBV2-P10-000: native engine parity continuation root
|
||||
|
||||
- task: WBV2-P10-000
|
||||
- parent: WBV2-P9-004
|
||||
- status: done
|
||||
- gap: workflow:authorize_native_engine_parity_continuation
|
||||
- ownerFamily: PROGRAM
|
||||
- targetImplementationClass: LOCAL_BOUNDED
|
||||
|
||||
## 目标
|
||||
|
||||
Authorize the next parity epoch after P9 bounded Chromium receipts. The next work must bind evidence to the compiled Blender native binary and web_engine.wasm; it must not claim full historical reproduction.
|
||||
|
||||
## 验收
|
||||
|
||||
- `node tools/web/generate-wbv2-native-parity-root.mjs`
|
||||
- `node tools/web/check-execution-control-plane.mjs`
|
||||
- `node tools/web/check-v2-task-index.mjs`
|
||||
|
||||
## 交付与回滚
|
||||
|
||||
- Reports: `tests/golden/WBV2-P10-000/`
|
||||
- Manifest: `tests/golden/WBV2-P10-000/manifest.json`
|
||||
- Rollback: restore P9-004 as queue parent without rewriting P7/P8/P9 evidence.
|
||||
35
docs/tasks/WBV2-P10-001.md
Normal file
35
docs/tasks/WBV2-P10-001.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# WBV2-P10-001: reconcile WBV2 inventory source drift
|
||||
|
||||
- task: WBV2-P10-001
|
||||
- parent: WBV2-P10-000
|
||||
- status: in_progress
|
||||
- gap: workflow:reconcile_wbv2_inventory_source_drift
|
||||
- ownerFamily: PARITY
|
||||
- targetImplementationClass: LOCAL_BOUNDED
|
||||
|
||||
## 目标
|
||||
|
||||
Record the already observed mutable plan drift and prove dependency closure stability. The historical P0-002 source hashes remain immutable; a current baseline is an additive P10 artifact.
|
||||
|
||||
## 输入与范围
|
||||
|
||||
- Historical source hashes: `tests/golden/WBV2-P0-002/source-hashes.json`
|
||||
- Current plan: `docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json`
|
||||
- Dependency baseline: `tests/golden/M13-05C/dependency-inventory.json`
|
||||
- Checker: `tools/web/check-wbv2-inventory.mjs`
|
||||
- Rebaseline generator: `tools/web/generate-wbv2-inventory-rebaseline.mjs`
|
||||
|
||||
## 验收
|
||||
|
||||
- `node tools/web/generate-wbv2-inventory-rebaseline.mjs --write`
|
||||
- `node tools/web/check-wbv2-inventory-rebaseline.mjs`
|
||||
- `node tools/web/check-task-context.mjs --task WBV2-P10-001 --write`
|
||||
|
||||
Failure cases (malformed input, unsupported dependency, unexpected drift, changed closure, historical hash rewrite, missing baseline, or failed checker) must keep in_progress and must not advance nextTask.
|
||||
|
||||
## 交付与回滚
|
||||
|
||||
- Reports: `tests/golden/WBV2-P10-001/`
|
||||
- Status: `docs/status/WBV2-P10-001.md`
|
||||
- Manifest: `tests/golden/WBV2-P10-001/manifest.json`
|
||||
- Rollback: restore P10-000 as queue parent; keep P0-002 hashes untouched.
|
||||
43
docs/tasks/WBV2-P10-002.md
Normal file
43
docs/tasks/WBV2-P10-002.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# WBV2-P10-002: native and WASM engine receipts
|
||||
|
||||
- task: WBV2-P10-002
|
||||
- parent: WBV2-P10-001
|
||||
- status: in_progress
|
||||
- gap: workflow:bind_native_and_wasm_engine_receipts
|
||||
- ownerFamily: ENGINE
|
||||
- targetImplementationClass: LOCAL_EXACT
|
||||
|
||||
## 目标
|
||||
|
||||
Bind the proven Mesh, Modifier, and Asset Catalog mutations to the compiled Blender native binary and the checked-in web_engine.wasm runtime, with Chromium as the browser gate.
|
||||
|
||||
## 输入与范围
|
||||
|
||||
- Native binary: `build_blender_native/bin/blender`
|
||||
- WASM binary: `web/app/src/vendor/blender/web_engine.wasm`
|
||||
- WASM loader: `web/app/src/vendor/blender/web_engine.js`
|
||||
- Native Web Engine API: `blender-5.2.0/source/blender/web_engine/web_engine_api.cpp`
|
||||
- Existing P9 capability receipts: `tests/golden/WBV2-P9-004/feature-parity-gate-report.json`
|
||||
|
||||
## 生产入口
|
||||
|
||||
- WebEngine client: `web/app/src/engine-client/WebEngineClient.ts`
|
||||
- WebEngine worker: `web/app/src/workers/web-engine.worker.ts`
|
||||
- Production receipt test: `web/tests/e2e/wbv2-native-engine-production.spec.ts`
|
||||
|
||||
## 验收
|
||||
|
||||
- `build_blender_native/bin/blender --version`
|
||||
- `node tools/web/check-wbv2-native-engine.mjs --write`
|
||||
- `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-native-engine-production.spec.ts`
|
||||
- `node tools/web/generate-wbv2-native-engine-receipt.mjs --write`
|
||||
- `node tools/web/check-task-context.mjs --task WBV2-P10-002 --write`
|
||||
|
||||
Missing binary, source hash drift, fake bridge execution, unsupported browser, non-exact save/reopen, or failure mutation must keep in_progress and must not advance nextTask.
|
||||
|
||||
## 交付与回滚
|
||||
|
||||
- Reports: `tests/golden/WBV2-P10-002/`
|
||||
- Status: `docs/status/WBV2-P10-002.md`
|
||||
- Manifest: `tests/golden/WBV2-P10-002/manifest.json`
|
||||
- Rollback: restore P10-001 as queue parent without modifying P9 receipts.
|
||||
34
docs/tasks/WBV2-P10-003.md
Normal file
34
docs/tasks/WBV2-P10-003.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# WBV2-P10-003: core module operator matrix
|
||||
|
||||
- task: WBV2-P10-003
|
||||
- parent: WBV2-P10-002
|
||||
- status: in_progress
|
||||
- gap: workflow:expand_core_module_operator_matrix
|
||||
- ownerFamily: PARITY
|
||||
- targetImplementationClass: LOCAL_BOUNDED
|
||||
|
||||
## 目标
|
||||
|
||||
Run one hash-bound data-driven matrix for Mesh, Modifier, and Asset Catalog module cases instead of creating one production task per legacy operator.
|
||||
|
||||
## 输入与范围
|
||||
|
||||
- Capability gate: `tests/golden/WBV2-P9-004/feature-parity-gate-report.json`
|
||||
- Native engine receipt: `tests/golden/WBV2-P10-002/native-engine-receipt-report.json`
|
||||
- Operator inventory: `tests/golden/WBV2-P0-002/parity-map.json`
|
||||
|
||||
## 验收
|
||||
|
||||
- `node tools/web/generate-wbv2-module-matrix.mjs --write`
|
||||
- `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-module-matrix.spec.ts`
|
||||
- `node tools/web/generate-wbv2-module-matrix-receipt.mjs --write`
|
||||
- `node tools/web/check-task-context.mjs --task WBV2-P10-003 --write`
|
||||
|
||||
Malformed or unsupported cases, new failures, unexpected blocked cases, catalog hash drift, or a positive case without Main mutation must keep in_progress and must not advance nextTask.
|
||||
|
||||
## 交付与回滚
|
||||
|
||||
- Reports: `tests/golden/WBV2-P10-003/`
|
||||
- Status: `docs/status/WBV2-P10-003.md`
|
||||
- Manifest: `tests/golden/WBV2-P10-003/manifest.json`
|
||||
- Rollback: restore P10-002 as queue parent without modifying native engine receipts.
|
||||
56
tests/golden/WBV2-P10-000/manifest.json
Normal file
56
tests/golden/WBV2-P10-000/manifest.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-000",
|
||||
"parentTask": "WBV2-P9-004",
|
||||
"operation": "AUTHORIZE_NATIVE_ENGINE_PARITY_CONTINUATION",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P9-004/manifest.json",
|
||||
"sha256": "6901f2b779e1bd4e62d240ceb115833ca28f1a209b65aaae71762225758da2f6"
|
||||
},
|
||||
"parentReport": {
|
||||
"path": "tests/golden/WBV2-P9-004/feature-parity-gate-report.json",
|
||||
"sha256": "0a7683e08c96bd3d75bda7f420c23945081b238c91031576a149a646451d6d0f"
|
||||
},
|
||||
"approval": {
|
||||
"path": "docs/status/M12-PROVENANCE-EPOCH-2-APPROVAL.json",
|
||||
"sha256": "cffc869734af94ffe6b8b8004d7ab8cc2c9edcb85ec2a877548e0b0f923f5ea3"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P10-000/native-parity-task-plan.json",
|
||||
"sha256": "b72c6fd251f0c2c7e96c410d7195060ea838313937fabf9ee720f9670f512e1f"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P10-000/native-parity-root-report.json",
|
||||
"sha256": "06f4754b70433a66c43835e6d6b72041a673667af51d9c4efe3d8e701bab2c6e"
|
||||
},
|
||||
"rootCard": {
|
||||
"path": "docs/tasks/WBV2-P10-000.md",
|
||||
"sha256": "071b3069be0bf0695f801bc8058ba44ac44cc3e200f686396512928f2eee15da"
|
||||
},
|
||||
"rootStatus": {
|
||||
"path": "docs/status/WBV2-P10-000.md",
|
||||
"sha256": "97a1caa7843e1ce2be68f8eafdada2c8afe2341ffdaa2407d3701c2b1fd739c8"
|
||||
},
|
||||
"activeCard": {
|
||||
"path": "docs/tasks/WBV2-P10-001.md",
|
||||
"sha256": "535a35b420188d19fa7acab58b8eb5b6995177145eec59733288f1fadf8098dd"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"boundedP9EvidencePreserved": true,
|
||||
"nativeEngineRequired": true,
|
||||
"authorizedRebaselineOnly": true,
|
||||
"fullHistoricalReproduction": false,
|
||||
"featureScope": [
|
||||
"INVENTORY_DRIFT",
|
||||
"NATIVE_ENGINE",
|
||||
"WASM_ENGINE",
|
||||
"MODULE_MATRIX"
|
||||
]
|
||||
},
|
||||
"nextTask": "WBV2-P10-001"
|
||||
}
|
||||
35
tests/golden/WBV2-P10-000/native-parity-root-report.json
Normal file
35
tests/golden/WBV2-P10-000/native-parity-root-report.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-000",
|
||||
"operation": "AUTHORIZE_NATIVE_ENGINE_PARITY_CONTINUATION",
|
||||
"status": "PASS",
|
||||
"parent": {
|
||||
"task": "WBV2-P9-004",
|
||||
"manifest": "tests/golden/WBV2-P9-004/manifest.json",
|
||||
"manifestSha256": "6901f2b779e1bd4e62d240ceb115833ca28f1a209b65aaae71762225758da2f6",
|
||||
"previousDecision": "READY_WITH_BOUNDED_FEATURE_PARITY",
|
||||
"fullHistoricalReproduction": false
|
||||
},
|
||||
"continuation": {
|
||||
"root": "WBV2-P10-000",
|
||||
"firstTask": "WBV2-P10-001",
|
||||
"plannedTasks": 4,
|
||||
"scope": [
|
||||
"INVENTORY_DRIFT",
|
||||
"NATIVE_ENGINE",
|
||||
"WASM_ENGINE",
|
||||
"MODULE_MATRIX"
|
||||
],
|
||||
"browser": "chromium",
|
||||
"nativeBinary": "build_blender_native/bin/blender",
|
||||
"wasmBinary": "web/app/src/vendor/blender/web_engine.wasm"
|
||||
},
|
||||
"policy": {
|
||||
"historicalEvidencePreserved": true,
|
||||
"authorizedRebaselineAccepted": true,
|
||||
"nativeEngineReceiptsRequired": true,
|
||||
"fullHistoricalReproduction": false,
|
||||
"releaseScope": "AUTHORIZED_REBASELINE_ONLY"
|
||||
},
|
||||
"nextTask": "WBV2-P10-001"
|
||||
}
|
||||
1567
tests/golden/WBV2-P10-000/native-parity-task-plan.json
Normal file
1567
tests/golden/WBV2-P10-000/native-parity-task-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
23
tests/golden/WBV2-P10-001/current-source-hashes.json
Normal file
23
tests/golden/WBV2-P10-001/current-source-hashes.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-001",
|
||||
"operation": "CURRENT_WBV2_SOURCE_HASH_BASELINE",
|
||||
"historicalSourceHashes": "tests/golden/WBV2-P0-002/source-hashes.json",
|
||||
"historicalSourceHashesSha256": "c6c6260d10bc8529e4b26563ce81168e1b0fffb3b175b2d4998ec1c0aa1c1497",
|
||||
"sources": {
|
||||
"tests/golden/M15-02A/blender-parity-map.json": "f3e757f26e58a4252b6cc2a7f9275428bbe5bf659cc0f0ff6350a147bdf2809c",
|
||||
"tests/golden/M15-03A/next-task-plan.json": "bad0d7822c0d4d764bd174c86d9da897229e71de6363940125a594b8017e07f5",
|
||||
"tests/golden/M15-03A/completed-gap-tasks.json": "1dfc9c4ae8fb9a135e624ca4f9fe1ea10500ef16a2567a3cccdcfe48fbc38466",
|
||||
"docs/BLENDER_WASM_CAPABILITY_MATRIX_TEMPLATE.json": "053e1551a24da08e045bb54115858a892ddd825fa59f1691a26a1ccfc1db3ca0",
|
||||
"docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json": "0f4750e45f2d1ca7d68faa35743e5b758ea8091f18d1d0e312ab548228d6f782",
|
||||
"tests/golden/WBV2-P0-001/manifest.json": "09ffbe342f2c510500767ddaa02b18703c25f6c1ee0b2ebd0c563e260c0d0c2b"
|
||||
},
|
||||
"drift": [
|
||||
{
|
||||
"file": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json",
|
||||
"expected": "c14e01161876ab924c1fe68466c78481fb583d1b822399ffa9f1df1b1d6fb266",
|
||||
"actual": "0f4750e45f2d1ca7d68faa35743e5b758ea8091f18d1d0e312ab548228d6f782",
|
||||
"classification": "AUTHORIZED_MUTABLE_PLAN"
|
||||
}
|
||||
]
|
||||
}
|
||||
1862
tests/golden/WBV2-P10-001/dependency-inventory.current.json
Normal file
1862
tests/golden/WBV2-P10-001/dependency-inventory.current.json
Normal file
File diff suppressed because it is too large
Load Diff
47
tests/golden/WBV2-P10-001/inventory-rebaseline-report.json
Normal file
47
tests/golden/WBV2-P10-001/inventory-rebaseline-report.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-001",
|
||||
"operation": "RECONCILE_WBV2_INVENTORY_SOURCE_DRIFT",
|
||||
"status": "PASS",
|
||||
"historical": {
|
||||
"sourceHashes": "tests/golden/WBV2-P0-002/source-hashes.json",
|
||||
"sourceHashesSha256": "c6c6260d10bc8529e4b26563ce81168e1b0fffb3b175b2d4998ec1c0aa1c1497",
|
||||
"manifestsRewritten": false,
|
||||
"baselinePreserved": true
|
||||
},
|
||||
"currentSourceBaseline": {
|
||||
"path": "tests/golden/WBV2-P10-001/current-source-hashes.json",
|
||||
"sha256": "d93dd22e430cfc6c03cb8819ff71c3bfd9b92a818cc078dec0dcbe53e9cbb39c",
|
||||
"planPath": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json",
|
||||
"planSha256": "0f4750e45f2d1ca7d68faa35743e5b758ea8091f18d1d0e312ab548228d6f782"
|
||||
},
|
||||
"drift": {
|
||||
"count": 1,
|
||||
"entries": [
|
||||
{
|
||||
"file": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json",
|
||||
"expected": "c14e01161876ab924c1fe68466c78481fb583d1b822399ffa9f1df1b1d6fb266",
|
||||
"actual": "0f4750e45f2d1ca7d68faa35743e5b758ea8091f18d1d0e312ab548228d6f782",
|
||||
"classification": "AUTHORIZED_MUTABLE_PLAN"
|
||||
}
|
||||
],
|
||||
"onlyAuthorizedMutablePlan": true
|
||||
},
|
||||
"dependency": {
|
||||
"historicalInventory": "tests/golden/M13-05C/dependency-inventory.json",
|
||||
"currentInventory": "tests/golden/WBV2-P10-001/dependency-inventory.current.json",
|
||||
"packageCount": 144,
|
||||
"packageHashChanged": true,
|
||||
"lockfileHashStable": true,
|
||||
"rootsStable": true,
|
||||
"closureStable": true,
|
||||
"packagesAdded": 0
|
||||
},
|
||||
"policy": {
|
||||
"historicalP0Unchanged": true,
|
||||
"historicalP8Unchanged": true,
|
||||
"additiveCurrentBaseline": true,
|
||||
"falseHistoricalRestoration": false
|
||||
},
|
||||
"nextTask": "WBV2-P10-002"
|
||||
}
|
||||
74
tests/golden/WBV2-P10-001/manifest.json
Normal file
74
tests/golden/WBV2-P10-001/manifest.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-001",
|
||||
"parentTask": "WBV2-P10-000",
|
||||
"operation": "RECONCILE_WBV2_INVENTORY_SOURCE_DRIFT",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": false,
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P10-000/manifest.json",
|
||||
"sha256": "269acf27b93097887e8b475b53fbbfae4c7d9c653dd4b6c5921258db86576de0"
|
||||
},
|
||||
"historicalSourceHashes": {
|
||||
"path": "tests/golden/WBV2-P0-002/source-hashes.json",
|
||||
"sha256": "c6c6260d10bc8529e4b26563ce81168e1b0fffb3b175b2d4998ec1c0aa1c1497"
|
||||
},
|
||||
"historicalDependencyManifest": {
|
||||
"path": "tests/golden/M13-05C/manifest.json",
|
||||
"sha256": "24abe1863de8fcb112434fb3226986f3a7072820cde8869dadb8fbad32d1e6c1"
|
||||
},
|
||||
"historicalRecoveryReport": {
|
||||
"path": "tests/golden/WBV2-P8-001/recovery-baseline-report.json",
|
||||
"sha256": "33491669cc094c5f698cac734ed49a81dca7bc0fa2e65a0024542215bf8bda73"
|
||||
},
|
||||
"currentSourceHashes": {
|
||||
"path": "tests/golden/WBV2-P10-001/current-source-hashes.json",
|
||||
"sha256": "d93dd22e430cfc6c03cb8819ff71c3bfd9b92a818cc078dec0dcbe53e9cbb39c"
|
||||
},
|
||||
"currentDependencyInventory": {
|
||||
"path": "tests/golden/WBV2-P10-001/dependency-inventory.current.json",
|
||||
"sha256": "5a9ecfbd811199827b46fcd1ac5c2e170667d5f0765d1995ad9e4b42e02addb4"
|
||||
},
|
||||
"sourcePlan": {
|
||||
"path": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json",
|
||||
"sha256": "0f4750e45f2d1ca7d68faa35743e5b758ea8091f18d1d0e312ab548228d6f782"
|
||||
},
|
||||
"generator": {
|
||||
"path": "tools/web/generate-wbv2-inventory-rebaseline.mjs",
|
||||
"sha256": "184d67e6af71bd1b8d05b8900bbdbb2eddd4971a7bfadfe56e3775f388b086fa"
|
||||
},
|
||||
"checker": {
|
||||
"path": "tools/web/check-wbv2-inventory-rebaseline.mjs",
|
||||
"sha256": "6e02cfdc44a2cb4815837e33f18e18d77cd3ad8697394f5e3615a2b359ee3e9f"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P10-001/inventory-rebaseline-report.json",
|
||||
"sha256": "caeabb45d0f7b7b1f4a94481b9c0f9747e38f22e0adeb34874bce452117f2c0a"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P10-001.md",
|
||||
"sha256": "d93f37dd1bc0bd320b2477a807c228c333027b9bf35ef8c770eddd073470245a"
|
||||
},
|
||||
"parityPlan": {
|
||||
"path": "tests/golden/WBV2-P10-001/native-parity-task-plan.json",
|
||||
"sha256": "1dc85326304c28ded4bdd12ff905de7522bcd61d783bf4adf20ac628432a7512"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P10-001/task-context.json",
|
||||
"sha256": "0be0f326fb603e98084b7c0e26316fac00a39f6090970070b7582927072708c6"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"historicalP0Preserved": true,
|
||||
"historicalP8Preserved": true,
|
||||
"authorizedPlanDrift": 1,
|
||||
"currentBaseline": true,
|
||||
"dependencyPackages": 144,
|
||||
"dependencyClosureStable": true,
|
||||
"lockfileStable": true,
|
||||
"nextEngineTask": "WBV2-P10-002"
|
||||
},
|
||||
"nextTask": "WBV2-P10-002"
|
||||
}
|
||||
1567
tests/golden/WBV2-P10-001/native-parity-task-plan.json
Normal file
1567
tests/golden/WBV2-P10-001/native-parity-task-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
185
tests/golden/WBV2-P10-001/task-context.json
Normal file
185
tests/golden/WBV2-P10-001/task-context.json
Normal file
@@ -0,0 +1,185 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-001",
|
||||
"parentTask": "WBV2-P10-000",
|
||||
"status": "in_progress",
|
||||
"goal": "Record the already observed mutable plan drift and prove dependency closure stability. The historical P0-002 source hashes remain immutable; a current baseline is an additive P10 artifact.",
|
||||
"scope": {
|
||||
"gap": "workflow:reconcile_wbv2_inventory_source_drift",
|
||||
"ownerFamily": "PARITY",
|
||||
"implementationClass": "LOCAL_BOUNDED"
|
||||
},
|
||||
"commands": [
|
||||
"node tools/web/generate-wbv2-inventory-rebaseline.mjs --write",
|
||||
"node tools/web/check-wbv2-inventory-rebaseline.mjs",
|
||||
"node tools/web/check-task-context.mjs --task WBV2-P10-001 --write"
|
||||
],
|
||||
"inputPaths": [
|
||||
"tests/golden/WBV2-P0-002/source-hashes.json"
|
||||
],
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 3381,
|
||||
"contextRemainingTokens": 844
|
||||
},
|
||||
"source": {
|
||||
"bytes": 6523,
|
||||
"tokens": 1632
|
||||
},
|
||||
"selected": [
|
||||
{
|
||||
"path": "tests/golden/WBV2-P0-002/source-hashes.json",
|
||||
"bytes": 782,
|
||||
"tokens": 196
|
||||
}
|
||||
],
|
||||
"excluded": [
|
||||
{
|
||||
"path": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json",
|
||||
"bytes": 23727,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/M13-05C/dependency-inventory.json",
|
||||
"bytes": 64565,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tools/web/check-wbv2-inventory.mjs",
|
||||
"bytes": 9778,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tools/web/generate-wbv2-inventory-rebaseline.mjs",
|
||||
"bytes": 9115,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-001/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P10-001.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-001/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
}
|
||||
],
|
||||
"totals": {
|
||||
"files": 1,
|
||||
"bytes": 782,
|
||||
"tokens": 196
|
||||
}
|
||||
},
|
||||
"exitCriteria": [
|
||||
"historical P0 hashes remain unchanged",
|
||||
"only authorized plan drift is recorded",
|
||||
"dependency roots/lockfile/closure remain stable",
|
||||
"inventory checker passes using current baseline"
|
||||
],
|
||||
"nextTask": "WBV2-P10-002",
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P10-001.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P10-000/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P10-000.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P10-001.md",
|
||||
"tests/golden/WBV2-P10-000/manifest.json",
|
||||
"docs/status/WBV2-P10-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-P10-000",
|
||||
"parentTask": "WBV2-P9-004",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P10-001",
|
||||
"artifactCount": 8
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P10-000 status",
|
||||
"- task: `WBV2-P10-000`; parent: `WBV2-P9-004`; status: `done`",
|
||||
"- nextTask: `WBV2-P10-001`",
|
||||
"Native engine parity continuation is authorized after P9 bounded Chromium evidence. P10 first reconciles the known WBV2 inventory drift, then requires receipts from the compiled Blender native binary and web_engine.wasm. Full historical reproduction remains false."
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 1431,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"contextEnvelopeTokens": 1024,
|
||||
"taskLines": 36,
|
||||
"taskTokens": 358
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 2803,
|
||||
"lines": 51,
|
||||
"tokens": 701
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P10-001.md",
|
||||
"bytes": 1431,
|
||||
"lines": 36,
|
||||
"tokens": 358
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-000/manifest.json",
|
||||
"bytes": 1911,
|
||||
"lines": 57,
|
||||
"tokens": 478
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P10-000.md",
|
||||
"bytes": 378,
|
||||
"lines": 7,
|
||||
"tokens": 95
|
||||
}
|
||||
],
|
||||
"sourceTokens": 1632,
|
||||
"evidenceFiles": 1,
|
||||
"evidenceBytes": 782,
|
||||
"evidenceTokens": 196,
|
||||
"totalTokens": 1828,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 2852,
|
||||
"serializedContextTokens": 724,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
90
tests/golden/WBV2-P10-002/manifest.json
Normal file
90
tests/golden/WBV2-P10-002/manifest.json
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"parentTask": "WBV2-P10-001",
|
||||
"operation": "NATIVE_WASM_ENGINE_PRODUCTION_RECEIPT",
|
||||
"status": "done",
|
||||
"enablingTask": false,
|
||||
"parityStateChange": true,
|
||||
"runtime": "PLAYWRIGHT_CHROMIUM_WEBENGINE_WASM",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P10-001/manifest.json",
|
||||
"sha256": "200ad417f44414b25c2b431fd6e7ff2c98c59e23871a7220facd92f295f1cd8d"
|
||||
},
|
||||
"binding": {
|
||||
"path": "tests/golden/WBV2-P10-002/native-engine-binding-report.json",
|
||||
"sha256": "a98010ccfdb4a2f145356a35cf3bc7e03a5fcedf0201d38cd3f3a6fecb4c6aae"
|
||||
},
|
||||
"production": {
|
||||
"path": "tests/golden/WBV2-P10-002/native-engine-production.json",
|
||||
"sha256": "b3a54efb3624d949c56865ff0fca8e8177ba8fe71d9e923f5003db15973fff59"
|
||||
},
|
||||
"productionSecond": {
|
||||
"path": "tests/golden/WBV2-P10-002/native-engine-production.second.json",
|
||||
"sha256": "b3a54efb3624d949c56865ff0fca8e8177ba8fe71d9e923f5003db15973fff59"
|
||||
},
|
||||
"e2e": {
|
||||
"path": "web/tests/e2e/wbv2-native-engine-production.spec.ts",
|
||||
"sha256": "53735206840a950d0b0aedf37e1f20fa1811c9d1ccfb7a9f95a88e90559b52e1"
|
||||
},
|
||||
"webEngineClient": {
|
||||
"path": "web/app/src/engine-client/WebEngineClient.ts",
|
||||
"sha256": "f6d9a8e0a16403bc6fb765195b8f1a619a28de7a75c59a412f1654d46e8ebc0b"
|
||||
},
|
||||
"webEngineWorker": {
|
||||
"path": "web/app/src/workers/web-engine.worker.ts",
|
||||
"sha256": "e3bb430e401144bf17cdcbd0de13cde0a4f904f1f9ff9d5b10a73d90f0d4c648"
|
||||
},
|
||||
"nativeApi": {
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"sha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8"
|
||||
},
|
||||
"mainState": {
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"sha256": "3c31a049714860cc89c5b28ebad887a1978df11f8c528c3dfd7836635ed62fb3"
|
||||
},
|
||||
"nativeBinary": {
|
||||
"path": "build_blender_native/bin/blender",
|
||||
"sha256": "97d025812d51642e6c118a7a6228b0481e5ff95e4acb7742f62875f9f27f924b"
|
||||
},
|
||||
"wasmBinary": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"sha256": "25bc1e286fd3b72c2c7c082b85a29b2d0bb109588a6dc0de5be94fcdc37cc88c"
|
||||
},
|
||||
"wasmJavaScript": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.js",
|
||||
"sha256": "e2b21fcc3c9d098cfb343fc682776c2ed95678064e95eabd71409a8b3284cce0"
|
||||
},
|
||||
"generator": {
|
||||
"path": "tools/web/generate-wbv2-native-engine-receipt.mjs",
|
||||
"sha256": "73ae2edf00dabadbe10abfdeb2f51bbaab495520fbcdfa168795351e8523eba5"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P10-002/native-engine-receipt-report.json",
|
||||
"sha256": "09c13b1814d61a6132ae1168d999e09b768915fe7fec652b6b965f9a6d3796f9"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P10-002.md",
|
||||
"sha256": "74b52f1a9a5969545db5d9659404d5f25adeb9c4ec581d18242455883dabfa0c"
|
||||
},
|
||||
"parityPlan": {
|
||||
"path": "tests/golden/WBV2-P10-002/native-parity-task-plan.json",
|
||||
"sha256": "a6e205dec083f76ec08eef07f0085b8be228b2a7d28a16618ec3625d3e2fd19b"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P10-002/task-context.json",
|
||||
"sha256": "fd7c2fcd7e43a44b5a666d4bc3ad5a817f698ef6c2db2150975eb04d80a3b402"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"compiledNativeBound": true,
|
||||
"compiledWasmBound": true,
|
||||
"realEngineMainMutation": true,
|
||||
"deterministic": true,
|
||||
"saveReopen": "EXACT",
|
||||
"surfaces": 3,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P10-003"
|
||||
}
|
||||
61
tests/golden/WBV2-P10-002/native-engine-binding-report.json
Normal file
61
tests/golden/WBV2-P10-002/native-engine-binding-report.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"operation": "NATIVE_WASM_ENGINE_BINDING",
|
||||
"status": "PASS",
|
||||
"runtime": {
|
||||
"native": {
|
||||
"path": "build_blender_native/bin/blender",
|
||||
"sha256": "97d025812d51642e6c118a7a6228b0481e5ff95e4acb7742f62875f9f27f924b",
|
||||
"version": "Blender 5.2.0 LTS"
|
||||
},
|
||||
"wasm": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"sha256": "25bc1e286fd3b72c2c7c082b85a29b2d0bb109588a6dc0de5be94fcdc37cc88c",
|
||||
"bytes": 15643984
|
||||
},
|
||||
"javascript": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.js",
|
||||
"sha256": "e2b21fcc3c9d098cfb343fc682776c2ed95678064e95eabd71409a8b3284cce0",
|
||||
"bytes": 132196
|
||||
},
|
||||
"browser": "chromium"
|
||||
},
|
||||
"abi": {
|
||||
"exports": [
|
||||
"web_engine_create",
|
||||
"web_engine_open_blend",
|
||||
"web_engine_apply_command",
|
||||
"web_engine_save_blend",
|
||||
"web_engine_destroy"
|
||||
],
|
||||
"nativeApi": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"mainState": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"worker": "web/app/src/workers/web-engine.worker.ts"
|
||||
},
|
||||
"sourceBindings": [
|
||||
{
|
||||
"task": "WBV2-P2-003",
|
||||
"manifest": "tests/golden/WBV2-P2-003/manifest.json",
|
||||
"report": "tests/golden/WBV2-P2-003/mesh-edit-report.json"
|
||||
},
|
||||
{
|
||||
"task": "WBV2-P4-001",
|
||||
"manifest": "tests/golden/WBV2-P4-001/manifest.json",
|
||||
"report": "tests/golden/WBV2-P4-001/modifier-report.json"
|
||||
},
|
||||
{
|
||||
"task": "WBV2-P3-005",
|
||||
"manifest": "tests/golden/WBV2-P3-005/manifest.json",
|
||||
"report": "tests/golden/WBV2-P3-005/library-report.json"
|
||||
}
|
||||
],
|
||||
"requirements": {
|
||||
"compiledNativePresent": true,
|
||||
"wasmBinaryPresent": true,
|
||||
"wasmLoaderPresent": true,
|
||||
"sourceBound": true,
|
||||
"fakeBridgeOnly": false
|
||||
},
|
||||
"nextTask": "WBV2-P10-002"
|
||||
}
|
||||
478
tests/golden/WBV2-P10-002/native-engine-production.json
Normal file
478
tests/golden/WBV2-P10-002/native-engine-production.json
Normal file
@@ -0,0 +1,478 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"operation": "NATIVE_WASM_ENGINE_PRODUCTION_CHROMIUM",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"mesh": {
|
||||
"baseRevision": 1,
|
||||
"editedRevision": 2,
|
||||
"meshId": "mesh:WBV2P2003TranslateMesh",
|
||||
"beforePosition": [
|
||||
-1,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
"afterPosition": [
|
||||
-0.75,
|
||||
-1.5,
|
||||
1
|
||||
],
|
||||
"savedSha256": "7bdab0364865c2435d62b004e9c952c05c7110453be02b22836c62e36f354ec2",
|
||||
"sourceSha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b",
|
||||
"reopenedRevision": 1,
|
||||
"reopenedPosition": [
|
||||
-0.75,
|
||||
-1.5,
|
||||
1
|
||||
],
|
||||
"stale": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
},
|
||||
"malformed": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "translateMeshVertices contains an out-of-range vertex index"
|
||||
}
|
||||
},
|
||||
"modifier": {
|
||||
"baseRevision": 1,
|
||||
"editedRevision": 2,
|
||||
"meshId": "mesh:WBV2P4001ModifierMesh",
|
||||
"modifierUuid": "modifier:object:WBV2P4001ModifierObject:1277244409",
|
||||
"beforeEnabled": true,
|
||||
"afterEnabled": false,
|
||||
"savedSha256": "37c8203ea1172fab3cf6bab421682fe56d45a2372750d50bc0eed53f19071e93",
|
||||
"sourceSha256": "02e56fd6745d983ee9f5ee3f48e581f116f0c41c2d2e7dec062517b4af86718f",
|
||||
"reopenedRevision": 1,
|
||||
"reopenedEnabled": false,
|
||||
"stale": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
},
|
||||
"malformed": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "modifier UUID was not found in mesh stack"
|
||||
}
|
||||
},
|
||||
"asset": {
|
||||
"baseRevision": 1,
|
||||
"appendedRevision": 2,
|
||||
"sourceSha256": "dcda742db77c6af5e05b79e006a0bd89cf1e8ea8d438592cd1ed2e981c7aca76",
|
||||
"targetSha256": "86af081b949ac96d6431303464852b4e983cf8c3d05671cacb36e1de4267a425",
|
||||
"receipt": {
|
||||
"schemaVersion": 1,
|
||||
"operation": "APPEND",
|
||||
"sourceLibraryId": "library:2e0d46a97a5c7e34b76ba16a594ce76a12553ddd795992c3f48d6c1d32826153",
|
||||
"sourceDataBlockId": "Object/WBV2P3005AppendObject",
|
||||
"dependencyClosureSha256": "f065b78b4bb80189c2258f78725c3254d6853ecf7f4a34d4b91c62ec28a6670d",
|
||||
"baseRevision": 1,
|
||||
"nextRevision": 2,
|
||||
"transactionCount": 1,
|
||||
"mapping": [
|
||||
{
|
||||
"source": "Object/WBV2P3005AppendObject",
|
||||
"local": "Object/WBV2P3005AppendObject",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Mesh/WBV2P3005AppendMesh",
|
||||
"local": "Mesh/WBV2P3005AppendMesh",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Material/WBV2P3005AppendMaterial",
|
||||
"local": "Material/WBV2P3005AppendMaterial",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Image/WBV2P3005AppendImage",
|
||||
"local": "Image/WBV2P3005AppendImage",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"delta": {
|
||||
"activeObjectId": "object:WBV2P3005AppendObject",
|
||||
"baseRevision": 1,
|
||||
"materials": {
|
||||
"added": [
|
||||
{
|
||||
"alpha": 1,
|
||||
"baseColor": [
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
1
|
||||
],
|
||||
"coatRoughness": 0.029999999329447746,
|
||||
"coatWeight": 0,
|
||||
"emissionColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
],
|
||||
"emissionStrength": 1,
|
||||
"id": "material:WBV2P3005AppendMaterial",
|
||||
"ior": 1.4500000476837158,
|
||||
"links": [
|
||||
{
|
||||
"fromNodeId": "node:1441037842:Principled BSDF",
|
||||
"fromSocket": "BSDF",
|
||||
"toNodeId": "node:1526166084:Material Output",
|
||||
"toSocket": "Surface"
|
||||
},
|
||||
{
|
||||
"fromNodeId": "node:1788630761:WBV2P3005AppendImageNode",
|
||||
"fromSocket": "Color",
|
||||
"toNodeId": "node:1441037842:Principled BSDF",
|
||||
"toSocket": "Base Color"
|
||||
}
|
||||
],
|
||||
"metallic": 0,
|
||||
"name": "WBV2P3005AppendMaterial",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "node:1441037842:Principled BSDF",
|
||||
"name": "Principled BSDF",
|
||||
"type": "UNSUPPORTED"
|
||||
},
|
||||
{
|
||||
"id": "node:1526166084:Material Output",
|
||||
"name": "Material Output",
|
||||
"type": "UNSUPPORTED"
|
||||
},
|
||||
{
|
||||
"id": "node:1788630761:WBV2P3005AppendImageNode",
|
||||
"imageId": "image:WBV2P3005AppendImage",
|
||||
"name": "WBV2P3005AppendImageNode",
|
||||
"type": "UNSUPPORTED"
|
||||
}
|
||||
],
|
||||
"roughness": 0.4000000059604645,
|
||||
"shaderGraphHash": "b618c541fdc15a1a86d4a3dc6e75690affdc9a0aefb81583d27737a0985a0765",
|
||||
"specularIORLevel": 0.5,
|
||||
"transmissionWeight": 0,
|
||||
"warnings": [
|
||||
"unsupported_node:Undefined[ShaderNodeBsdfPrincipled]",
|
||||
"unsupported_node:Undefined[ShaderNodeOutputMaterial]",
|
||||
"unsupported_node:Undefined[ShaderNodeTexImage]",
|
||||
"principled_node_not_found"
|
||||
]
|
||||
}
|
||||
],
|
||||
"removed": [],
|
||||
"updated": []
|
||||
},
|
||||
"meshes": {
|
||||
"added": [
|
||||
{
|
||||
"activeUVMap": null,
|
||||
"attributes": [
|
||||
{
|
||||
"dataType": "FLOAT3",
|
||||
"domain": "POINT",
|
||||
"name": "position"
|
||||
},
|
||||
{
|
||||
"dataType": "BOOL",
|
||||
"domain": "FACE",
|
||||
"name": "sharp_face"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"max": [
|
||||
0.75,
|
||||
0.75,
|
||||
0
|
||||
],
|
||||
"min": [
|
||||
-0.75,
|
||||
-0.75,
|
||||
0
|
||||
]
|
||||
},
|
||||
"cornerCount": 6,
|
||||
"edgeCount": 5,
|
||||
"edgeVertexIndices": [
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
3,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"faceCount": 2,
|
||||
"geometryStatus": "available",
|
||||
"id": "mesh:WBV2P3005AppendMesh",
|
||||
"indices": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"materialSlotIds": [
|
||||
"material:WBV2P3005AppendMaterial"
|
||||
],
|
||||
"name": "WBV2P3005AppendMesh",
|
||||
"normals": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
],
|
||||
"positions": [
|
||||
-0.75,
|
||||
-0.75,
|
||||
0,
|
||||
0.75,
|
||||
-0.75,
|
||||
0,
|
||||
0.75,
|
||||
0.75,
|
||||
0,
|
||||
-0.75,
|
||||
0.75,
|
||||
0
|
||||
],
|
||||
"topology": "triangles",
|
||||
"triangleCornerIndices": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"triangleCount": 2,
|
||||
"triangleFaceIndices": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"triangleMaterialIndices": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"vertexCount": 4
|
||||
}
|
||||
],
|
||||
"removed": [],
|
||||
"updated": []
|
||||
},
|
||||
"nextRevision": 2,
|
||||
"nodes": {
|
||||
"added": [
|
||||
{
|
||||
"dataId": "mesh:WBV2P3005AppendMesh",
|
||||
"id": "object:WBV2P3005AppendObject",
|
||||
"localMatrix": [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1.5,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
],
|
||||
"name": "WBV2P3005AppendObject",
|
||||
"parentId": null,
|
||||
"selectable": true,
|
||||
"transform": {
|
||||
"rotationEuler": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"rotationMode": 1,
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"translation": [
|
||||
1.5,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"type": "MESH",
|
||||
"visible": true,
|
||||
"worldMatrix": [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1.5,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
"removed": [],
|
||||
"updated": []
|
||||
},
|
||||
"scenes": {
|
||||
"added": [],
|
||||
"removed": [],
|
||||
"updated": [
|
||||
{
|
||||
"cameraObjectId": null,
|
||||
"colorManagement": {
|
||||
"displayDevice": "sRGB",
|
||||
"exposure": 0,
|
||||
"gamma": 1,
|
||||
"look": "None",
|
||||
"viewTransform": "AgX",
|
||||
"whiteBalanceStatus": "BLOCKED"
|
||||
},
|
||||
"id": "scene:Scene",
|
||||
"name": "Scene",
|
||||
"renderEngine": "BLENDER_EEVEE",
|
||||
"rootCollectionId": "collection:Scene Collection",
|
||||
"sequencerStatus": "AVAILABLE",
|
||||
"sequencerTimeline": {
|
||||
"fpsDenominator": 1000,
|
||||
"fpsNumerator": 24000,
|
||||
"frameEnd": 250,
|
||||
"frameStart": 1,
|
||||
"id": "sequencer:scene:Scene",
|
||||
"revision": 2,
|
||||
"schemaVersion": 1,
|
||||
"strips": []
|
||||
},
|
||||
"worldId": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"schemaVersion": 1
|
||||
},
|
||||
"appendedClosure": {
|
||||
"object": true,
|
||||
"mesh": true,
|
||||
"material": true,
|
||||
"image": {
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"assetStatus": "PACKED",
|
||||
"height": 1024,
|
||||
"id": "image:WBV2P3005AppendImage",
|
||||
"libraryLinked": false,
|
||||
"mimeType": "image/png",
|
||||
"name": "WBV2P3005AppendImage",
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourceKind": "FILE",
|
||||
"sourcePath": "project-assets/resources/udim_1001.png",
|
||||
"tiles": [
|
||||
{
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"generatedColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"generatedType": 1,
|
||||
"height": 1024,
|
||||
"label": "",
|
||||
"mimeType": "image/png",
|
||||
"number": 1001,
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourcePath": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/resources/udim_1001.png",
|
||||
"validSignature": true,
|
||||
"width": 1024
|
||||
}
|
||||
],
|
||||
"width": 1024
|
||||
}
|
||||
},
|
||||
"stale": {
|
||||
"code": "REVISION_CONFLICT",
|
||||
"message": "REVISION_CONFLICT: library append base revision is stale"
|
||||
},
|
||||
"collision": {
|
||||
"code": "ASSET_MANIFEST_INVALID",
|
||||
"message": "ASSET_MANIFEST_INVALID: append closure collides with an existing local ID"
|
||||
},
|
||||
"collisionRevision": 2,
|
||||
"savedSha256": "5186c694f5b0f2b1182e4790e99d6667ef067d1b95d2e6a2d0381ad29eeba326",
|
||||
"reopenedRevision": 1,
|
||||
"reopenedClosure": {
|
||||
"object": true,
|
||||
"mesh": true,
|
||||
"material": true,
|
||||
"image": {
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"assetStatus": "PACKED",
|
||||
"height": 1024,
|
||||
"id": "image:WBV2P3005AppendImage",
|
||||
"libraryLinked": false,
|
||||
"mimeType": "image/png",
|
||||
"name": "WBV2P3005AppendImage",
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourceKind": "FILE",
|
||||
"sourcePath": "project-assets/resources/udim_1001.png",
|
||||
"tiles": [
|
||||
{
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"generatedColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"generatedType": 1,
|
||||
"height": 1024,
|
||||
"label": "",
|
||||
"mimeType": "image/png",
|
||||
"number": 1001,
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourcePath": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/resources/udim_1001.png",
|
||||
"validSignature": true,
|
||||
"width": 1024
|
||||
}
|
||||
],
|
||||
"width": 1024
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
478
tests/golden/WBV2-P10-002/native-engine-production.second.json
Normal file
478
tests/golden/WBV2-P10-002/native-engine-production.second.json
Normal file
@@ -0,0 +1,478 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"operation": "NATIVE_WASM_ENGINE_PRODUCTION_CHROMIUM",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"mesh": {
|
||||
"baseRevision": 1,
|
||||
"editedRevision": 2,
|
||||
"meshId": "mesh:WBV2P2003TranslateMesh",
|
||||
"beforePosition": [
|
||||
-1,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
"afterPosition": [
|
||||
-0.75,
|
||||
-1.5,
|
||||
1
|
||||
],
|
||||
"savedSha256": "7bdab0364865c2435d62b004e9c952c05c7110453be02b22836c62e36f354ec2",
|
||||
"sourceSha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b",
|
||||
"reopenedRevision": 1,
|
||||
"reopenedPosition": [
|
||||
-0.75,
|
||||
-1.5,
|
||||
1
|
||||
],
|
||||
"stale": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
},
|
||||
"malformed": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "translateMeshVertices contains an out-of-range vertex index"
|
||||
}
|
||||
},
|
||||
"modifier": {
|
||||
"baseRevision": 1,
|
||||
"editedRevision": 2,
|
||||
"meshId": "mesh:WBV2P4001ModifierMesh",
|
||||
"modifierUuid": "modifier:object:WBV2P4001ModifierObject:1277244409",
|
||||
"beforeEnabled": true,
|
||||
"afterEnabled": false,
|
||||
"savedSha256": "37c8203ea1172fab3cf6bab421682fe56d45a2372750d50bc0eed53f19071e93",
|
||||
"sourceSha256": "02e56fd6745d983ee9f5ee3f48e581f116f0c41c2d2e7dec062517b4af86718f",
|
||||
"reopenedRevision": 1,
|
||||
"reopenedEnabled": false,
|
||||
"stale": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
},
|
||||
"malformed": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "modifier UUID was not found in mesh stack"
|
||||
}
|
||||
},
|
||||
"asset": {
|
||||
"baseRevision": 1,
|
||||
"appendedRevision": 2,
|
||||
"sourceSha256": "dcda742db77c6af5e05b79e006a0bd89cf1e8ea8d438592cd1ed2e981c7aca76",
|
||||
"targetSha256": "86af081b949ac96d6431303464852b4e983cf8c3d05671cacb36e1de4267a425",
|
||||
"receipt": {
|
||||
"schemaVersion": 1,
|
||||
"operation": "APPEND",
|
||||
"sourceLibraryId": "library:2e0d46a97a5c7e34b76ba16a594ce76a12553ddd795992c3f48d6c1d32826153",
|
||||
"sourceDataBlockId": "Object/WBV2P3005AppendObject",
|
||||
"dependencyClosureSha256": "f065b78b4bb80189c2258f78725c3254d6853ecf7f4a34d4b91c62ec28a6670d",
|
||||
"baseRevision": 1,
|
||||
"nextRevision": 2,
|
||||
"transactionCount": 1,
|
||||
"mapping": [
|
||||
{
|
||||
"source": "Object/WBV2P3005AppendObject",
|
||||
"local": "Object/WBV2P3005AppendObject",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Mesh/WBV2P3005AppendMesh",
|
||||
"local": "Mesh/WBV2P3005AppendMesh",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Material/WBV2P3005AppendMaterial",
|
||||
"local": "Material/WBV2P3005AppendMaterial",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Image/WBV2P3005AppendImage",
|
||||
"local": "Image/WBV2P3005AppendImage",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"delta": {
|
||||
"activeObjectId": "object:WBV2P3005AppendObject",
|
||||
"baseRevision": 1,
|
||||
"materials": {
|
||||
"added": [
|
||||
{
|
||||
"alpha": 1,
|
||||
"baseColor": [
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
1
|
||||
],
|
||||
"coatRoughness": 0.029999999329447746,
|
||||
"coatWeight": 0,
|
||||
"emissionColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
],
|
||||
"emissionStrength": 1,
|
||||
"id": "material:WBV2P3005AppendMaterial",
|
||||
"ior": 1.4500000476837158,
|
||||
"links": [
|
||||
{
|
||||
"fromNodeId": "node:1441037842:Principled BSDF",
|
||||
"fromSocket": "BSDF",
|
||||
"toNodeId": "node:1526166084:Material Output",
|
||||
"toSocket": "Surface"
|
||||
},
|
||||
{
|
||||
"fromNodeId": "node:1788630761:WBV2P3005AppendImageNode",
|
||||
"fromSocket": "Color",
|
||||
"toNodeId": "node:1441037842:Principled BSDF",
|
||||
"toSocket": "Base Color"
|
||||
}
|
||||
],
|
||||
"metallic": 0,
|
||||
"name": "WBV2P3005AppendMaterial",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "node:1441037842:Principled BSDF",
|
||||
"name": "Principled BSDF",
|
||||
"type": "UNSUPPORTED"
|
||||
},
|
||||
{
|
||||
"id": "node:1526166084:Material Output",
|
||||
"name": "Material Output",
|
||||
"type": "UNSUPPORTED"
|
||||
},
|
||||
{
|
||||
"id": "node:1788630761:WBV2P3005AppendImageNode",
|
||||
"imageId": "image:WBV2P3005AppendImage",
|
||||
"name": "WBV2P3005AppendImageNode",
|
||||
"type": "UNSUPPORTED"
|
||||
}
|
||||
],
|
||||
"roughness": 0.4000000059604645,
|
||||
"shaderGraphHash": "b618c541fdc15a1a86d4a3dc6e75690affdc9a0aefb81583d27737a0985a0765",
|
||||
"specularIORLevel": 0.5,
|
||||
"transmissionWeight": 0,
|
||||
"warnings": [
|
||||
"unsupported_node:Undefined[ShaderNodeBsdfPrincipled]",
|
||||
"unsupported_node:Undefined[ShaderNodeOutputMaterial]",
|
||||
"unsupported_node:Undefined[ShaderNodeTexImage]",
|
||||
"principled_node_not_found"
|
||||
]
|
||||
}
|
||||
],
|
||||
"removed": [],
|
||||
"updated": []
|
||||
},
|
||||
"meshes": {
|
||||
"added": [
|
||||
{
|
||||
"activeUVMap": null,
|
||||
"attributes": [
|
||||
{
|
||||
"dataType": "FLOAT3",
|
||||
"domain": "POINT",
|
||||
"name": "position"
|
||||
},
|
||||
{
|
||||
"dataType": "BOOL",
|
||||
"domain": "FACE",
|
||||
"name": "sharp_face"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"max": [
|
||||
0.75,
|
||||
0.75,
|
||||
0
|
||||
],
|
||||
"min": [
|
||||
-0.75,
|
||||
-0.75,
|
||||
0
|
||||
]
|
||||
},
|
||||
"cornerCount": 6,
|
||||
"edgeCount": 5,
|
||||
"edgeVertexIndices": [
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
3,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"faceCount": 2,
|
||||
"geometryStatus": "available",
|
||||
"id": "mesh:WBV2P3005AppendMesh",
|
||||
"indices": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"materialSlotIds": [
|
||||
"material:WBV2P3005AppendMaterial"
|
||||
],
|
||||
"name": "WBV2P3005AppendMesh",
|
||||
"normals": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
],
|
||||
"positions": [
|
||||
-0.75,
|
||||
-0.75,
|
||||
0,
|
||||
0.75,
|
||||
-0.75,
|
||||
0,
|
||||
0.75,
|
||||
0.75,
|
||||
0,
|
||||
-0.75,
|
||||
0.75,
|
||||
0
|
||||
],
|
||||
"topology": "triangles",
|
||||
"triangleCornerIndices": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"triangleCount": 2,
|
||||
"triangleFaceIndices": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"triangleMaterialIndices": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"vertexCount": 4
|
||||
}
|
||||
],
|
||||
"removed": [],
|
||||
"updated": []
|
||||
},
|
||||
"nextRevision": 2,
|
||||
"nodes": {
|
||||
"added": [
|
||||
{
|
||||
"dataId": "mesh:WBV2P3005AppendMesh",
|
||||
"id": "object:WBV2P3005AppendObject",
|
||||
"localMatrix": [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1.5,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
],
|
||||
"name": "WBV2P3005AppendObject",
|
||||
"parentId": null,
|
||||
"selectable": true,
|
||||
"transform": {
|
||||
"rotationEuler": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"rotationMode": 1,
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"translation": [
|
||||
1.5,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"type": "MESH",
|
||||
"visible": true,
|
||||
"worldMatrix": [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1.5,
|
||||
0,
|
||||
0,
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
"removed": [],
|
||||
"updated": []
|
||||
},
|
||||
"scenes": {
|
||||
"added": [],
|
||||
"removed": [],
|
||||
"updated": [
|
||||
{
|
||||
"cameraObjectId": null,
|
||||
"colorManagement": {
|
||||
"displayDevice": "sRGB",
|
||||
"exposure": 0,
|
||||
"gamma": 1,
|
||||
"look": "None",
|
||||
"viewTransform": "AgX",
|
||||
"whiteBalanceStatus": "BLOCKED"
|
||||
},
|
||||
"id": "scene:Scene",
|
||||
"name": "Scene",
|
||||
"renderEngine": "BLENDER_EEVEE",
|
||||
"rootCollectionId": "collection:Scene Collection",
|
||||
"sequencerStatus": "AVAILABLE",
|
||||
"sequencerTimeline": {
|
||||
"fpsDenominator": 1000,
|
||||
"fpsNumerator": 24000,
|
||||
"frameEnd": 250,
|
||||
"frameStart": 1,
|
||||
"id": "sequencer:scene:Scene",
|
||||
"revision": 2,
|
||||
"schemaVersion": 1,
|
||||
"strips": []
|
||||
},
|
||||
"worldId": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"schemaVersion": 1
|
||||
},
|
||||
"appendedClosure": {
|
||||
"object": true,
|
||||
"mesh": true,
|
||||
"material": true,
|
||||
"image": {
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"assetStatus": "PACKED",
|
||||
"height": 1024,
|
||||
"id": "image:WBV2P3005AppendImage",
|
||||
"libraryLinked": false,
|
||||
"mimeType": "image/png",
|
||||
"name": "WBV2P3005AppendImage",
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourceKind": "FILE",
|
||||
"sourcePath": "project-assets/resources/udim_1001.png",
|
||||
"tiles": [
|
||||
{
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"generatedColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"generatedType": 1,
|
||||
"height": 1024,
|
||||
"label": "",
|
||||
"mimeType": "image/png",
|
||||
"number": 1001,
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourcePath": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/resources/udim_1001.png",
|
||||
"validSignature": true,
|
||||
"width": 1024
|
||||
}
|
||||
],
|
||||
"width": 1024
|
||||
}
|
||||
},
|
||||
"stale": {
|
||||
"code": "REVISION_CONFLICT",
|
||||
"message": "REVISION_CONFLICT: library append base revision is stale"
|
||||
},
|
||||
"collision": {
|
||||
"code": "ASSET_MANIFEST_INVALID",
|
||||
"message": "ASSET_MANIFEST_INVALID: append closure collides with an existing local ID"
|
||||
},
|
||||
"collisionRevision": 2,
|
||||
"savedSha256": "5186c694f5b0f2b1182e4790e99d6667ef067d1b95d2e6a2d0381ad29eeba326",
|
||||
"reopenedRevision": 1,
|
||||
"reopenedClosure": {
|
||||
"object": true,
|
||||
"mesh": true,
|
||||
"material": true,
|
||||
"image": {
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"assetStatus": "PACKED",
|
||||
"height": 1024,
|
||||
"id": "image:WBV2P3005AppendImage",
|
||||
"libraryLinked": false,
|
||||
"mimeType": "image/png",
|
||||
"name": "WBV2P3005AppendImage",
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourceKind": "FILE",
|
||||
"sourcePath": "project-assets/resources/udim_1001.png",
|
||||
"tiles": [
|
||||
{
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"generatedColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"generatedType": 1,
|
||||
"height": 1024,
|
||||
"label": "",
|
||||
"mimeType": "image/png",
|
||||
"number": 1001,
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourcePath": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/resources/udim_1001.png",
|
||||
"validSignature": true,
|
||||
"width": 1024
|
||||
}
|
||||
],
|
||||
"width": 1024
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
102
tests/golden/WBV2-P10-002/native-engine-receipt-report.json
Normal file
102
tests/golden/WBV2-P10-002/native-engine-receipt-report.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"operation": "NATIVE_WASM_ENGINE_PRODUCTION_RECEIPT",
|
||||
"status": "PASS",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"runtime": {
|
||||
"binding": "tests/golden/WBV2-P10-002/native-engine-binding-report.json",
|
||||
"bindingSha256": "a98010ccfdb4a2f145356a35cf3bc7e03a5fcedf0201d38cd3f3a6fecb4c6aae",
|
||||
"native": {
|
||||
"path": "build_blender_native/bin/blender",
|
||||
"sha256": "97d025812d51642e6c118a7a6228b0481e5ff95e4acb7742f62875f9f27f924b",
|
||||
"version": "Blender 5.2.0 LTS"
|
||||
},
|
||||
"wasm": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"sha256": "25bc1e286fd3b72c2c7c082b85a29b2d0bb109588a6dc0de5be94fcdc37cc88c",
|
||||
"bytes": 15643984
|
||||
},
|
||||
"javascript": {
|
||||
"path": "web/app/src/vendor/blender/web_engine.js",
|
||||
"sha256": "e2b21fcc3c9d098cfb343fc682776c2ed95678064e95eabd71409a8b3284cce0",
|
||||
"bytes": 132196
|
||||
},
|
||||
"abi": {
|
||||
"exports": [
|
||||
"web_engine_create",
|
||||
"web_engine_open_blend",
|
||||
"web_engine_apply_command",
|
||||
"web_engine_save_blend",
|
||||
"web_engine_destroy"
|
||||
],
|
||||
"nativeApi": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"mainState": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"worker": "web/app/src/workers/web-engine.worker.ts"
|
||||
}
|
||||
},
|
||||
"sourceBindings": [
|
||||
{
|
||||
"task": "WBV2-P2-003",
|
||||
"manifest": "tests/golden/WBV2-P2-003/manifest.json",
|
||||
"manifestSha256": "79ebc20719fef2b60a3457bca25dac98e755a2f2c1bd3c35361527509a91a987",
|
||||
"report": "tests/golden/WBV2-P2-003/mesh-edit-report.json",
|
||||
"reportSha256": "f8bd2ced2e1345248d4b536ef045bb9446a55ca5ae87d834f38904b86521b11d"
|
||||
},
|
||||
{
|
||||
"task": "WBV2-P4-001",
|
||||
"manifest": "tests/golden/WBV2-P4-001/manifest.json",
|
||||
"manifestSha256": "6f1bee73c987f5e66733feb03d1d708e0f2dbd0776ac6634dbf694cde385143c",
|
||||
"report": "tests/golden/WBV2-P4-001/modifier-report.json",
|
||||
"reportSha256": "65d2cf962511ae181e53cda1cc01f8db46819ee450a470384abbe829d549adf8"
|
||||
},
|
||||
{
|
||||
"task": "WBV2-P3-005",
|
||||
"manifest": "tests/golden/WBV2-P3-005/manifest.json",
|
||||
"manifestSha256": "42dc02d198630c2735c5a0a1beab37f2a98ff0233927215099f67606d248c39e",
|
||||
"report": "tests/golden/WBV2-P3-005/library-report.json",
|
||||
"reportSha256": "0b572a5b480dd9b123cbb9c55c842fb002b1a8a6c96afd196af90bee1ebd9940"
|
||||
}
|
||||
],
|
||||
"production": {
|
||||
"report": "tests/golden/WBV2-P10-002/native-engine-production.json",
|
||||
"reportSha256": "b3a54efb3624d949c56865ff0fca8e8177ba8fe71d9e923f5003db15973fff59",
|
||||
"secondReport": "tests/golden/WBV2-P10-002/native-engine-production.second.json",
|
||||
"secondReportSha256": "b3a54efb3624d949c56865ff0fca8e8177ba8fe71d9e923f5003db15973fff59",
|
||||
"deterministic": true,
|
||||
"mesh": {
|
||||
"mutation": "translateMeshVertices",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": "EXACT",
|
||||
"stale": "REVISION_CONFLICT",
|
||||
"malformed": "REJECTED"
|
||||
},
|
||||
"modifier": {
|
||||
"mutation": "setModifierEnabled",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": "EXACT",
|
||||
"stale": "REVISION_CONFLICT",
|
||||
"malformed": "REJECTED"
|
||||
},
|
||||
"asset": {
|
||||
"mutation": "appendLibraryObject",
|
||||
"revisionDelta": 1,
|
||||
"resourceClosure": "LOCAL_MAIN",
|
||||
"saveReopen": "EXACT",
|
||||
"stale": "REVISION_CONFLICT",
|
||||
"collision": "REJECTED"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"compiledNativeBound": true,
|
||||
"compiledWasmBound": true,
|
||||
"realEngineMainMutation": true,
|
||||
"saveReopenExact": 3,
|
||||
"deterministicRuns": 2,
|
||||
"failureMatrixClosed": true,
|
||||
"fakeBridgeOnly": false,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P10-003"
|
||||
}
|
||||
1567
tests/golden/WBV2-P10-002/native-parity-task-plan.json
Normal file
1567
tests/golden/WBV2-P10-002/native-parity-task-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
197
tests/golden/WBV2-P10-002/task-context.json
Normal file
197
tests/golden/WBV2-P10-002/task-context.json
Normal file
@@ -0,0 +1,197 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"parentTask": "WBV2-P10-001",
|
||||
"status": "in_progress",
|
||||
"goal": "Bind the proven Mesh, Modifier, and Asset Catalog mutations to the compiled Blender native binary and the checked-in web_engine.wasm runtime, with Chromium as the browser gate.",
|
||||
"scope": {
|
||||
"gap": "workflow:bind_native_and_wasm_engine_receipts",
|
||||
"ownerFamily": "ENGINE",
|
||||
"implementationClass": "LOCAL_EXACT"
|
||||
},
|
||||
"commands": [
|
||||
"build_blender_native/bin/blender --version",
|
||||
"node tools/web/check-wbv2-native-engine.mjs --write",
|
||||
"npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-native-engine-production.spec.ts",
|
||||
"node tools/web/generate-wbv2-native-engine-receipt.mjs --write",
|
||||
"node tools/web/check-task-context.mjs --task WBV2-P10-002 --write"
|
||||
],
|
||||
"inputPaths": [],
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 1958,
|
||||
"contextRemainingTokens": 489
|
||||
},
|
||||
"source": {
|
||||
"bytes": 7946,
|
||||
"tokens": 1987
|
||||
},
|
||||
"selected": [],
|
||||
"excluded": [
|
||||
{
|
||||
"path": "web/app/src/vendor/blender/web_engine.wasm",
|
||||
"bytes": 15643984,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "web/app/src/vendor/blender/web_engine.js",
|
||||
"bytes": 132196,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"bytes": 126797,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P9-004/feature-parity-gate-report.json",
|
||||
"bytes": 2865,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "web/app/src/engine-client/WebEngineClient.ts",
|
||||
"bytes": 16197,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "web/app/src/workers/web-engine.worker.ts",
|
||||
"bytes": 97032,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "web/tests/e2e/wbv2-native-engine-production.spec.ts",
|
||||
"bytes": 11948,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-002/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P10-002.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-002/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
}
|
||||
],
|
||||
"totals": {
|
||||
"files": 0,
|
||||
"bytes": 0,
|
||||
"tokens": 0
|
||||
}
|
||||
},
|
||||
"exitCriteria": [
|
||||
"native Blender binary is source-bound",
|
||||
"WASM binary and JS are hash-bound",
|
||||
"same mutation reaches real engine/Main",
|
||||
"save/reopen and failures remain exact"
|
||||
],
|
||||
"nextTask": "WBV2-P10-003",
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P10-002.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P10-001/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P10-001.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P10-002.md",
|
||||
"tests/golden/WBV2-P10-001/manifest.json",
|
||||
"docs/status/WBV2-P10-001.md"
|
||||
],
|
||||
"machineOnly": [
|
||||
"tests/golden/WBV2/task-index.json",
|
||||
"tests/golden/M15-03A/task-catalog.jsonl"
|
||||
],
|
||||
"optionalByNeed": [
|
||||
"docs/WEB_BLENDER_MODELER_V1_SCOPE.md",
|
||||
"任务卡列出的精确协议/生产路径",
|
||||
"任务卡明确命名的长期计划小节"
|
||||
],
|
||||
"forbiddenByDefault": [
|
||||
"完整 CURRENT_EXECUTION_PLAN.md",
|
||||
"完整 PROJECT_STATUS_AND_NEXT_WORK.md",
|
||||
"全部 docs/status/*.md",
|
||||
"完整 parity/WBS 计划",
|
||||
"README 历史和 test-results/"
|
||||
]
|
||||
},
|
||||
"parent": {
|
||||
"manifest": {
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-001",
|
||||
"parentTask": "WBV2-P10-000",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P10-002",
|
||||
"artifactCount": 13
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P10-001 status",
|
||||
"- task: `WBV2-P10-001`; parent: `WBV2-P10-000`; status: `done`",
|
||||
"- plan drift: `1` authorized mutable plan hash",
|
||||
"- dependency packages: `144`; lockfile/roots/closure: `STABLE`",
|
||||
"- historical P0 hashes: preserved",
|
||||
"- nextTask: `WBV2-P10-002`",
|
||||
"The current WBV2 plan hash is recorded as an additive epoch-1 baseline. The historical P0-002 source-hashes.json and all historical manifests remain unchanged. Dependency roots, lockfile, package closure, and package count remain stable."
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 1775,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"contextEnvelopeTokens": 1024,
|
||||
"taskLines": 44,
|
||||
"taskTokens": 444
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 2803,
|
||||
"lines": 51,
|
||||
"tokens": 701
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P10-002.md",
|
||||
"bytes": 1775,
|
||||
"lines": 44,
|
||||
"tokens": 444
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-001/manifest.json",
|
||||
"bytes": 2872,
|
||||
"lines": 75,
|
||||
"tokens": 718
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P10-001.md",
|
||||
"bytes": 496,
|
||||
"lines": 10,
|
||||
"tokens": 124
|
||||
}
|
||||
],
|
||||
"sourceTokens": 1987,
|
||||
"evidenceFiles": 0,
|
||||
"evidenceBytes": 0,
|
||||
"evidenceTokens": 0,
|
||||
"totalTokens": 1987,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 3011,
|
||||
"serializedContextTokens": 715,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
73
tests/golden/WBV2-P10-003/manifest.json
Normal file
73
tests/golden/WBV2-P10-003/manifest.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-003",
|
||||
"parentTask": "WBV2-P10-002",
|
||||
"operation": "CORE_MODULE_OPERATOR_MATRIX_RECEIPT",
|
||||
"status": "done",
|
||||
"enablingTask": true,
|
||||
"parityStateChange": true,
|
||||
"runtime": "PLAYWRIGHT_CHROMIUM_WEBENGINE_WASM",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P10-002/manifest.json",
|
||||
"sha256": "dcf016adce463066fad68a0e9cf2a23a81b0d148afeb05b0e523263bd2b91da3"
|
||||
},
|
||||
"engineReceipt": {
|
||||
"path": "tests/golden/WBV2-P10-002/native-engine-receipt-report.json",
|
||||
"sha256": "09c13b1814d61a6132ae1168d999e09b768915fe7fec652b6b965f9a6d3796f9"
|
||||
},
|
||||
"matrix": {
|
||||
"path": "tests/golden/WBV2-P10-003/module-matrix.json",
|
||||
"sha256": "67b1d61ba9b921a3037b76efd80134c7db47d0079209d9d0edc0dd751527d024"
|
||||
},
|
||||
"production": {
|
||||
"path": "tests/golden/WBV2-P10-003/module-matrix-production.json",
|
||||
"sha256": "a677bd01b7f6efa90dbffe4be4cb74173467f9ca06c6c087f7af5463fd587939"
|
||||
},
|
||||
"productionSecond": {
|
||||
"path": "tests/golden/WBV2-P10-003/module-matrix-production.second.json",
|
||||
"sha256": "a677bd01b7f6efa90dbffe4be4cb74173467f9ca06c6c087f7af5463fd587939"
|
||||
},
|
||||
"e2e": {
|
||||
"path": "web/tests/e2e/wbv2-module-matrix.spec.ts",
|
||||
"sha256": "9efca3f57ad7093589aecbfb3ba6e83660b3994f24fcac9a56d37f12441b3762"
|
||||
},
|
||||
"generator": {
|
||||
"path": "tools/web/generate-wbv2-module-matrix.mjs",
|
||||
"sha256": "06159e091051f1dd969a78187ab9db0c606f73a8fff88956265eb404a690c006"
|
||||
},
|
||||
"receiptGenerator": {
|
||||
"path": "tools/web/generate-wbv2-module-matrix-receipt.mjs",
|
||||
"sha256": "b06afc9da3d5014a31f1c98ff1a15eb5009d8c0e6cce1c86fdd80101ca2447ac"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P10-003/module-matrix-receipt-report.json",
|
||||
"sha256": "655d05c7f1c9d55d76f41c063b89ef5cd49abf0fb4f01f2cd6d7b2a5f1fa7f14"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P10-003.md",
|
||||
"sha256": "ce391ea8cdc0ec25d523226a93a3ddfac718e9c70292ab80cd02c9c8f2d1fc69"
|
||||
},
|
||||
"parityPlan": {
|
||||
"path": "tests/golden/WBV2-P10-003/native-parity-task-plan.json",
|
||||
"sha256": "acfe344c377cbef5b0eefaba22fab88de7d374e9a157ad53930ac6599cd6b1a9"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P10-003/task-context.json",
|
||||
"sha256": "ed59f7698d14e39b197e3798ed704bfb8f1783002c1ff97901d604bda4d97bf2"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"cases": 9,
|
||||
"positiveCases": 3,
|
||||
"retainedNegative": 6,
|
||||
"shards": 2,
|
||||
"oneCatalogHash": true,
|
||||
"inventoryEntries": 6900,
|
||||
"inventoryEntriesRemaining": 6900,
|
||||
"deterministic": true,
|
||||
"saveReopen": "EXACT",
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
219
tests/golden/WBV2-P10-003/module-matrix-production.json
Normal file
219
tests/golden/WBV2-P10-003/module-matrix-production.json
Normal file
@@ -0,0 +1,219 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-003",
|
||||
"operation": "CORE_MODULE_OPERATOR_MATRIX_CHROMIUM",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"cases": [
|
||||
{
|
||||
"id": "MESH.translateMeshVertices",
|
||||
"status": "PASS",
|
||||
"code": "OK",
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": true,
|
||||
"before": [
|
||||
-1,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
"after": [
|
||||
-0.75,
|
||||
-1.5,
|
||||
1
|
||||
],
|
||||
"savedSha256": "7bdab0364865c2435d62b004e9c952c05c7110453be02b22836c62e36f354ec2",
|
||||
"sourceSha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b"
|
||||
},
|
||||
{
|
||||
"id": "MESH.translateMeshVertices.stale",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REVISION_CONFLICT",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MESH.translateMeshVertices.malformed",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REJECTED",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "translateMeshVertices contains an out-of-range vertex index"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled",
|
||||
"status": "PASS",
|
||||
"code": "OK",
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": true,
|
||||
"before": true,
|
||||
"after": false,
|
||||
"savedSha256": "37c8203ea1172fab3cf6bab421682fe56d45a2372750d50bc0eed53f19071e93",
|
||||
"sourceSha256": "02e56fd6745d983ee9f5ee3f48e581f116f0c41c2d2e7dec062517b4af86718f"
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled.stale",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REVISION_CONFLICT",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled.unknown",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REJECTED",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "modifier UUID was not found in mesh stack"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject",
|
||||
"status": "PASS",
|
||||
"code": "OK",
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": true,
|
||||
"receipt": {
|
||||
"schemaVersion": 1,
|
||||
"operation": "APPEND",
|
||||
"sourceLibraryId": "library:2e0d46a97a5c7e34b76ba16a594ce76a12553ddd795992c3f48d6c1d32826153",
|
||||
"sourceDataBlockId": "Object/WBV2P3005AppendObject",
|
||||
"dependencyClosureSha256": "f065b78b4bb80189c2258f78725c3254d6853ecf7f4a34d4b91c62ec28a6670d",
|
||||
"baseRevision": 1,
|
||||
"nextRevision": 2,
|
||||
"transactionCount": 1,
|
||||
"mapping": [
|
||||
{
|
||||
"source": "Object/WBV2P3005AppendObject",
|
||||
"local": "Object/WBV2P3005AppendObject",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Mesh/WBV2P3005AppendMesh",
|
||||
"local": "Mesh/WBV2P3005AppendMesh",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Material/WBV2P3005AppendMaterial",
|
||||
"local": "Material/WBV2P3005AppendMaterial",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Image/WBV2P3005AppendImage",
|
||||
"local": "Image/WBV2P3005AppendImage",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"resourceClosure": {
|
||||
"object": true,
|
||||
"mesh": true,
|
||||
"material": true,
|
||||
"image": {
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"assetStatus": "PACKED",
|
||||
"height": 1024,
|
||||
"id": "image:WBV2P3005AppendImage",
|
||||
"libraryLinked": false,
|
||||
"mimeType": "image/png",
|
||||
"name": "WBV2P3005AppendImage",
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourceKind": "FILE",
|
||||
"sourcePath": "project-assets/resources/udim_1001.png",
|
||||
"tiles": [
|
||||
{
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"generatedColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"generatedType": 1,
|
||||
"height": 1024,
|
||||
"label": "",
|
||||
"mimeType": "image/png",
|
||||
"number": 1001,
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourcePath": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/resources/udim_1001.png",
|
||||
"validSignature": true,
|
||||
"width": 1024
|
||||
}
|
||||
],
|
||||
"width": 1024
|
||||
}
|
||||
},
|
||||
"savedSha256": "5186c694f5b0f2b1182e4790e99d6667ef067d1b95d2e6a2d0381ad29eeba326",
|
||||
"sourceSha256": "dcda742db77c6af5e05b79e006a0bd89cf1e8ea8d438592cd1ed2e981c7aca76"
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject.stale",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REVISION_CONFLICT",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "REVISION_CONFLICT",
|
||||
"message": "REVISION_CONFLICT: library append base revision is stale"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject.collision",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "ASSET_MANIFEST_INVALID",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "ASSET_MANIFEST_INVALID",
|
||||
"message": "ASSET_MANIFEST_INVALID: append closure collides with an existing local ID"
|
||||
}
|
||||
}
|
||||
],
|
||||
"shards": [
|
||||
{
|
||||
"id": "core-geometry",
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"caseIds": [
|
||||
"MESH.translateMeshVertices",
|
||||
"MESH.translateMeshVertices.stale",
|
||||
"MESH.translateMeshVertices.malformed",
|
||||
"MODIFIER.setModifierEnabled",
|
||||
"MODIFIER.setModifierEnabled.stale",
|
||||
"MODIFIER.setModifierEnabled.unknown"
|
||||
],
|
||||
"exitCode": 0
|
||||
},
|
||||
{
|
||||
"id": "asset-resource",
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"caseIds": [
|
||||
"ASSET_CATALOG.appendLibraryObject",
|
||||
"ASSET_CATALOG.appendLibraryObject.stale",
|
||||
"ASSET_CATALOG.appendLibraryObject.collision"
|
||||
],
|
||||
"exitCode": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
219
tests/golden/WBV2-P10-003/module-matrix-production.second.json
Normal file
219
tests/golden/WBV2-P10-003/module-matrix-production.second.json
Normal file
@@ -0,0 +1,219 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-003",
|
||||
"operation": "CORE_MODULE_OPERATOR_MATRIX_CHROMIUM",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"cases": [
|
||||
{
|
||||
"id": "MESH.translateMeshVertices",
|
||||
"status": "PASS",
|
||||
"code": "OK",
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": true,
|
||||
"before": [
|
||||
-1,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
"after": [
|
||||
-0.75,
|
||||
-1.5,
|
||||
1
|
||||
],
|
||||
"savedSha256": "7bdab0364865c2435d62b004e9c952c05c7110453be02b22836c62e36f354ec2",
|
||||
"sourceSha256": "1a9a894c4106d73a4533485d9fdddfe2883f75e4692b8e53dc174308e12fe60b"
|
||||
},
|
||||
{
|
||||
"id": "MESH.translateMeshVertices.stale",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REVISION_CONFLICT",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MESH.translateMeshVertices.malformed",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REJECTED",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "translateMeshVertices contains an out-of-range vertex index"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled",
|
||||
"status": "PASS",
|
||||
"code": "OK",
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": true,
|
||||
"before": true,
|
||||
"after": false,
|
||||
"savedSha256": "37c8203ea1172fab3cf6bab421682fe56d45a2372750d50bc0eed53f19071e93",
|
||||
"sourceSha256": "02e56fd6745d983ee9f5ee3f48e581f116f0c41c2d2e7dec062517b4af86718f"
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled.stale",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REVISION_CONFLICT",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "REVISION_CONFLICT: command base revision does not match the current SceneIR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled.unknown",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REJECTED",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENT",
|
||||
"message": "modifier UUID was not found in mesh stack"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject",
|
||||
"status": "PASS",
|
||||
"code": "OK",
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": true,
|
||||
"receipt": {
|
||||
"schemaVersion": 1,
|
||||
"operation": "APPEND",
|
||||
"sourceLibraryId": "library:2e0d46a97a5c7e34b76ba16a594ce76a12553ddd795992c3f48d6c1d32826153",
|
||||
"sourceDataBlockId": "Object/WBV2P3005AppendObject",
|
||||
"dependencyClosureSha256": "f065b78b4bb80189c2258f78725c3254d6853ecf7f4a34d4b91c62ec28a6670d",
|
||||
"baseRevision": 1,
|
||||
"nextRevision": 2,
|
||||
"transactionCount": 1,
|
||||
"mapping": [
|
||||
{
|
||||
"source": "Object/WBV2P3005AppendObject",
|
||||
"local": "Object/WBV2P3005AppendObject",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Mesh/WBV2P3005AppendMesh",
|
||||
"local": "Mesh/WBV2P3005AppendMesh",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Material/WBV2P3005AppendMaterial",
|
||||
"local": "Material/WBV2P3005AppendMaterial",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
},
|
||||
{
|
||||
"source": "Image/WBV2P3005AppendImage",
|
||||
"local": "Image/WBV2P3005AppendImage",
|
||||
"owner": "LOCAL_MAIN",
|
||||
"readOnly": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"resourceClosure": {
|
||||
"object": true,
|
||||
"mesh": true,
|
||||
"material": true,
|
||||
"image": {
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"assetStatus": "PACKED",
|
||||
"height": 1024,
|
||||
"id": "image:WBV2P3005AppendImage",
|
||||
"libraryLinked": false,
|
||||
"mimeType": "image/png",
|
||||
"name": "WBV2P3005AppendImage",
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourceKind": "FILE",
|
||||
"sourcePath": "project-assets/resources/udim_1001.png",
|
||||
"tiles": [
|
||||
{
|
||||
"assetId": "image:WBV2P3005AppendImage",
|
||||
"generatedColor": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"generatedType": 1,
|
||||
"height": 1024,
|
||||
"label": "",
|
||||
"mimeType": "image/png",
|
||||
"number": 1001,
|
||||
"packed": true,
|
||||
"packedByteLength": 261,
|
||||
"sourcePath": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/resources/udim_1001.png",
|
||||
"validSignature": true,
|
||||
"width": 1024
|
||||
}
|
||||
],
|
||||
"width": 1024
|
||||
}
|
||||
},
|
||||
"savedSha256": "5186c694f5b0f2b1182e4790e99d6667ef067d1b95d2e6a2d0381ad29eeba326",
|
||||
"sourceSha256": "dcda742db77c6af5e05b79e006a0bd89cf1e8ea8d438592cd1ed2e981c7aca76"
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject.stale",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "REVISION_CONFLICT",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "REVISION_CONFLICT",
|
||||
"message": "REVISION_CONFLICT: library append base revision is stale"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject.collision",
|
||||
"status": "RETAINED_NEGATIVE",
|
||||
"code": "ASSET_MANIFEST_INVALID",
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"error": {
|
||||
"code": "ASSET_MANIFEST_INVALID",
|
||||
"message": "ASSET_MANIFEST_INVALID: append closure collides with an existing local ID"
|
||||
}
|
||||
}
|
||||
],
|
||||
"shards": [
|
||||
{
|
||||
"id": "core-geometry",
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"caseIds": [
|
||||
"MESH.translateMeshVertices",
|
||||
"MESH.translateMeshVertices.stale",
|
||||
"MESH.translateMeshVertices.malformed",
|
||||
"MODIFIER.setModifierEnabled",
|
||||
"MODIFIER.setModifierEnabled.stale",
|
||||
"MODIFIER.setModifierEnabled.unknown"
|
||||
],
|
||||
"exitCode": 0
|
||||
},
|
||||
{
|
||||
"id": "asset-resource",
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"caseIds": [
|
||||
"ASSET_CATALOG.appendLibraryObject",
|
||||
"ASSET_CATALOG.appendLibraryObject.stale",
|
||||
"ASSET_CATALOG.appendLibraryObject.collision"
|
||||
],
|
||||
"exitCode": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
65
tests/golden/WBV2-P10-003/module-matrix-receipt-report.json
Normal file
65
tests/golden/WBV2-P10-003/module-matrix-receipt-report.json
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-003",
|
||||
"operation": "CORE_MODULE_OPERATOR_MATRIX_RECEIPT",
|
||||
"status": "PASS",
|
||||
"browser": "chromium",
|
||||
"queueMutation": false,
|
||||
"source": {
|
||||
"engineReceipt": "tests/golden/WBV2-P10-002/native-engine-receipt-report.json",
|
||||
"engineReceiptSha256": "09c13b1814d61a6132ae1168d999e09b768915fe7fec652b6b965f9a6d3796f9",
|
||||
"catalog": {
|
||||
"path": "tests/golden/WBV2-P0-002/parity-map.json",
|
||||
"sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"inventoryEntries": 6900,
|
||||
"pendingEntries": 6618
|
||||
},
|
||||
"featureGate": "tests/golden/WBV2-P9-004/feature-parity-gate-report.json",
|
||||
"featureGateSha256": "0a7683e08c96bd3d75bda7f420c23945081b238c91031576a149a646451d6d0f"
|
||||
},
|
||||
"matrix": {
|
||||
"definition": "tests/golden/WBV2-P10-003/module-matrix.json",
|
||||
"definitionSha256": "67b1d61ba9b921a3037b76efd80134c7db47d0079209d9d0edc0dd751527d024",
|
||||
"production": "tests/golden/WBV2-P10-003/module-matrix-production.json",
|
||||
"productionSha256": "a677bd01b7f6efa90dbffe4be4cb74173467f9ca06c6c087f7af5463fd587939",
|
||||
"secondProduction": "tests/golden/WBV2-P10-003/module-matrix-production.second.json",
|
||||
"secondProductionSha256": "a677bd01b7f6efa90dbffe4be4cb74173467f9ca06c6c087f7af5463fd587939",
|
||||
"deterministic": true,
|
||||
"modules": [
|
||||
"MESH",
|
||||
"MODIFIER",
|
||||
"ASSET_CATALOG"
|
||||
],
|
||||
"cases": 9,
|
||||
"positive": 3,
|
||||
"retainedNegative": 6,
|
||||
"shards": [
|
||||
{
|
||||
"id": "core-geometry",
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"exitCode": 0
|
||||
},
|
||||
{
|
||||
"id": "asset-resource",
|
||||
"catalogSha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"exitCode": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"coverage": {
|
||||
"inventoryEntries": 6900,
|
||||
"claimedComplete": 0,
|
||||
"remainingExplicit": 6900,
|
||||
"productionCases": 9,
|
||||
"oneCatalogHash": true
|
||||
},
|
||||
"assertions": {
|
||||
"positiveCasesMainChanged": true,
|
||||
"negativeCasesMainUnchanged": true,
|
||||
"saveReopenExact": 3,
|
||||
"unmappedInventoryExplicit": true,
|
||||
"retainedNegativeExplicit": true,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": null
|
||||
}
|
||||
176
tests/golden/WBV2-P10-003/module-matrix.json
Normal file
176
tests/golden/WBV2-P10-003/module-matrix.json
Normal file
@@ -0,0 +1,176 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-003",
|
||||
"operation": "CORE_MODULE_OPERATOR_MATRIX",
|
||||
"status": "READY",
|
||||
"catalog": {
|
||||
"path": "tests/golden/WBV2-P0-002/parity-map.json",
|
||||
"sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8",
|
||||
"inventoryEntries": 6900,
|
||||
"pendingEntries": 6618
|
||||
},
|
||||
"source": {
|
||||
"featureGate": "tests/golden/WBV2-P9-004/feature-parity-gate-report.json",
|
||||
"featureGateSha256": "0a7683e08c96bd3d75bda7f420c23945081b238c91031576a149a646451d6d0f",
|
||||
"engineReceipt": "tests/golden/WBV2-P10-002/native-engine-receipt-report.json",
|
||||
"engineReceiptSha256": "09c13b1814d61a6132ae1168d999e09b768915fe7fec652b6b965f9a6d3796f9"
|
||||
},
|
||||
"policy": {
|
||||
"oneCatalogHash": true,
|
||||
"positiveClaimsRequireMainMutation": true,
|
||||
"negativeCasesNeverAdvanceRevision": true,
|
||||
"unmappedInventoryExplicit": true,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"modules": [
|
||||
"MESH",
|
||||
"MODIFIER",
|
||||
"ASSET_CATALOG"
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "MESH.translateMeshVertices",
|
||||
"family": "MESH",
|
||||
"capabilityId": "CAP-MESH-POSITIVE-EDIT",
|
||||
"behavior": "positive",
|
||||
"implementationClass": "LOCAL_EXACT",
|
||||
"expected": {
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": "EXACT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MESH.translateMeshVertices.stale",
|
||||
"family": "MESH",
|
||||
"capabilityId": "CAP-MESH-POSITIVE-EDIT",
|
||||
"behavior": "stale_revision",
|
||||
"implementationClass": "NEGATIVE_BOUNDARY",
|
||||
"expected": {
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"code": "REVISION_CONFLICT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MESH.translateMeshVertices.malformed",
|
||||
"family": "MESH",
|
||||
"capabilityId": "CAP-MESH-POSITIVE-EDIT",
|
||||
"behavior": "malformed_selection",
|
||||
"implementationClass": "NEGATIVE_BOUNDARY",
|
||||
"expected": {
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"code": "REJECTED"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled",
|
||||
"family": "MODIFIER",
|
||||
"capabilityId": "CAP-MODIFIER-STATE-MUTATION",
|
||||
"behavior": "positive",
|
||||
"implementationClass": "LOCAL_EXACT",
|
||||
"expected": {
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": "EXACT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled.stale",
|
||||
"family": "MODIFIER",
|
||||
"capabilityId": "CAP-MODIFIER-STATE-MUTATION",
|
||||
"behavior": "stale_revision",
|
||||
"implementationClass": "NEGATIVE_BOUNDARY",
|
||||
"expected": {
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"code": "REVISION_CONFLICT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "MODIFIER.setModifierEnabled.unknown",
|
||||
"family": "MODIFIER",
|
||||
"capabilityId": "CAP-MODIFIER-STATE-MUTATION",
|
||||
"behavior": "unknown_modifier",
|
||||
"implementationClass": "NEGATIVE_BOUNDARY",
|
||||
"expected": {
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"code": "REJECTED"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject",
|
||||
"family": "ASSET_CATALOG",
|
||||
"capabilityId": "CAP-ASSET-CATALOG-MUTATION",
|
||||
"behavior": "positive",
|
||||
"implementationClass": "LOCAL_EXACT",
|
||||
"expected": {
|
||||
"mainMutation": "CHANGED",
|
||||
"revisionDelta": 1,
|
||||
"saveReopen": "EXACT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject.stale",
|
||||
"family": "ASSET_CATALOG",
|
||||
"capabilityId": "CAP-ASSET-CATALOG-MUTATION",
|
||||
"behavior": "stale_revision",
|
||||
"implementationClass": "NEGATIVE_BOUNDARY",
|
||||
"expected": {
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"code": "REVISION_CONFLICT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ASSET_CATALOG.appendLibraryObject.collision",
|
||||
"family": "ASSET_CATALOG",
|
||||
"capabilityId": "CAP-ASSET-CATALOG-MUTATION",
|
||||
"behavior": "collision",
|
||||
"implementationClass": "NEGATIVE_BOUNDARY",
|
||||
"expected": {
|
||||
"mainMutation": "UNCHANGED",
|
||||
"revisionDelta": 0,
|
||||
"code": "REJECTED"
|
||||
}
|
||||
}
|
||||
],
|
||||
"coverage": {
|
||||
"matrixCases": 9,
|
||||
"positiveCases": 3,
|
||||
"negativeCases": 6,
|
||||
"inventoryEntries": 6900,
|
||||
"inventoryEntriesClaimedComplete": 0,
|
||||
"inventoryEntriesRemainingExplicit": 6900
|
||||
},
|
||||
"shards": [
|
||||
{
|
||||
"id": "core-geometry",
|
||||
"families": [
|
||||
"MESH",
|
||||
"MODIFIER"
|
||||
],
|
||||
"caseIds": [
|
||||
"MESH.translateMeshVertices",
|
||||
"MESH.translateMeshVertices.stale",
|
||||
"MESH.translateMeshVertices.malformed",
|
||||
"MODIFIER.setModifierEnabled",
|
||||
"MODIFIER.setModifierEnabled.stale",
|
||||
"MODIFIER.setModifierEnabled.unknown"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "asset-resource",
|
||||
"families": [
|
||||
"ASSET_CATALOG"
|
||||
],
|
||||
"caseIds": [
|
||||
"ASSET_CATALOG.appendLibraryObject",
|
||||
"ASSET_CATALOG.appendLibraryObject.stale",
|
||||
"ASSET_CATALOG.appendLibraryObject.collision"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
1567
tests/golden/WBV2-P10-003/native-parity-task-plan.json
Normal file
1567
tests/golden/WBV2-P10-003/native-parity-task-plan.json
Normal file
File diff suppressed because it is too large
Load Diff
176
tests/golden/WBV2-P10-003/task-context.json
Normal file
176
tests/golden/WBV2-P10-003/task-context.json
Normal file
@@ -0,0 +1,176 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-003",
|
||||
"parentTask": "WBV2-P10-002",
|
||||
"status": "in_progress",
|
||||
"goal": "Run one hash-bound data-driven matrix for Mesh, Modifier, and Asset Catalog module cases instead of creating one production task per legacy operator.",
|
||||
"scope": {
|
||||
"gap": "workflow:expand_core_module_operator_matrix",
|
||||
"ownerFamily": "PARITY",
|
||||
"implementationClass": "LOCAL_BOUNDED"
|
||||
},
|
||||
"commands": [
|
||||
"node tools/web/generate-wbv2-module-matrix.mjs --write",
|
||||
"npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-module-matrix.spec.ts",
|
||||
"node tools/web/generate-wbv2-module-matrix-receipt.mjs --write",
|
||||
"node tools/web/check-task-context.mjs --task WBV2-P10-003 --write"
|
||||
],
|
||||
"inputPaths": [],
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 1511,
|
||||
"contextRemainingTokens": 377
|
||||
},
|
||||
"source": {
|
||||
"bytes": 8393,
|
||||
"tokens": 2099
|
||||
},
|
||||
"selected": [],
|
||||
"excluded": [
|
||||
{
|
||||
"path": "tests/golden/WBV2-P9-004/feature-parity-gate-report.json",
|
||||
"bytes": 2865,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-002/native-engine-receipt-report.json",
|
||||
"bytes": 3733,
|
||||
"reason": "CONTEXT_REMAINING_SPACE"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P0-002/parity-map.json",
|
||||
"bytes": 5053386,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-003/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P10-003.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-003/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
}
|
||||
],
|
||||
"totals": {
|
||||
"files": 0,
|
||||
"bytes": 0,
|
||||
"tokens": 0
|
||||
}
|
||||
},
|
||||
"exitCriteria": [
|
||||
"positive cases are L2+",
|
||||
"negative cases do not mutate Main",
|
||||
"shards use one catalog hash",
|
||||
"unmapped and retained-negative cases stay explicit"
|
||||
],
|
||||
"nextTask": null,
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P10-003.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P10-002/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P10-002.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P10-003.md",
|
||||
"tests/golden/WBV2-P10-002/manifest.json",
|
||||
"docs/status/WBV2-P10-002.md"
|
||||
],
|
||||
"machineOnly": [
|
||||
"tests/golden/WBV2/task-index.json",
|
||||
"tests/golden/M15-03A/task-catalog.jsonl"
|
||||
],
|
||||
"optionalByNeed": [
|
||||
"docs/WEB_BLENDER_MODELER_V1_SCOPE.md",
|
||||
"任务卡列出的精确协议/生产路径",
|
||||
"任务卡明确命名的长期计划小节"
|
||||
],
|
||||
"forbiddenByDefault": [
|
||||
"完整 CURRENT_EXECUTION_PLAN.md",
|
||||
"完整 PROJECT_STATUS_AND_NEXT_WORK.md",
|
||||
"全部 docs/status/*.md",
|
||||
"完整 parity/WBS 计划",
|
||||
"README 历史和 test-results/"
|
||||
]
|
||||
},
|
||||
"parent": {
|
||||
"manifest": {
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P10-002",
|
||||
"parentTask": "WBV2-P10-001",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P10-003",
|
||||
"artifactCount": 17
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P10-002 status",
|
||||
"- task: `WBV2-P10-002`; parent: `WBV2-P10-001`; status: `done`",
|
||||
"- compiled native: `Blender 5.2.0 LTS`; compiled WASM: `web_engine.wasm`",
|
||||
"- real Main mutations: `Mesh + Modifier + Asset Catalog`",
|
||||
"- deterministic Chromium runs: `2`; save/reopen: `3/3 EXACT`",
|
||||
"- nextTask: `WBV2-P10-003`",
|
||||
"The Chromium Worker loaded the checked-in WebEngine WASM and executed the native ABI through WebEngineClient. Mesh translation, modifier state, and library append all changed the real WASM Main, persisted through save/reopen, and rejected stale or malformed inputs without a late mutation. This evidence is engine-bound and still does not claim full historical reproduction."
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 1362,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"contextEnvelopeTokens": 1024,
|
||||
"taskLines": 35,
|
||||
"taskTokens": 341
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 2803,
|
||||
"lines": 51,
|
||||
"tokens": 701
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P10-003.md",
|
||||
"bytes": 1362,
|
||||
"lines": 35,
|
||||
"tokens": 341
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P10-002/manifest.json",
|
||||
"bytes": 3548,
|
||||
"lines": 91,
|
||||
"tokens": 887
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P10-002.md",
|
||||
"bytes": 680,
|
||||
"lines": 10,
|
||||
"tokens": 170
|
||||
}
|
||||
],
|
||||
"sourceTokens": 2099,
|
||||
"evidenceFiles": 0,
|
||||
"evidenceBytes": 0,
|
||||
"evidenceTokens": 0,
|
||||
"totalTokens": 2099,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 3123,
|
||||
"serializedContextTokens": 688,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,8 @@
|
||||
"authorizedRebaselineOnly": true,
|
||||
"sourceHistoryReadOnly": true,
|
||||
"claimsAreEvidenceBound": true,
|
||||
"terminalQueuePointer": true
|
||||
"terminalQueuePointer": false,
|
||||
"authorizedContinuation": "WBV2-P10-000"
|
||||
},
|
||||
"nextTask": null
|
||||
"nextTask": "WBV2-P10-000"
|
||||
}
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P9-004/feature-parity-gate-report.json",
|
||||
"sha256": "c8eea515dee05ed766677ccb8cabab707e130094bf7a8c8ba5bdef0b8db76fd5"
|
||||
"sha256": "0a7683e08c96bd3d75bda7f420c23945081b238c91031576a149a646451d6d0f"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P9-004.md",
|
||||
"sha256": "1d613986df38e61e5efc368822495b9f6ad81be8bfd155de5d010d31f8529511"
|
||||
"sha256": "4f59384f7c5e3652c8f69a445d44e05ede74d706a31d2734a856b6e14ee184e1"
|
||||
},
|
||||
"featureParityPlan": {
|
||||
"path": "tests/golden/WBV2-P9-004/feature-parity-task-plan.json",
|
||||
@@ -58,7 +58,7 @@
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P9-004/task-context.json",
|
||||
"sha256": "8604daa21f1f70323a7db3b72ab5452a33854ef6404f7f9aa4e35f74cb94d8dc"
|
||||
"sha256": "9f2d64017450df9020441b16583d654ba915d98542cbaa38f5a74bfa974b2ddc"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
@@ -74,5 +74,10 @@
|
||||
"authorizedRebaselineOnly": true,
|
||||
"fullHistoricalReproduction": false
|
||||
},
|
||||
"nextTask": null
|
||||
"nextTask": "WBV2-P10-000",
|
||||
"continuation": {
|
||||
"authorized": true,
|
||||
"root": "WBV2-P10-000",
|
||||
"scope": "NATIVE_ENGINE_PARITY"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,12 +21,12 @@
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 2204,
|
||||
"contextRemainingTokens": 549
|
||||
"contextRemainingBytes": 2200,
|
||||
"contextRemainingTokens": 548
|
||||
},
|
||||
"source": {
|
||||
"bytes": 7700,
|
||||
"tokens": 1927
|
||||
"bytes": 7704,
|
||||
"tokens": 1928
|
||||
},
|
||||
"selected": [
|
||||
{
|
||||
@@ -78,7 +78,7 @@
|
||||
"authorized baseline remains explicit",
|
||||
"full historical reproduction remains false"
|
||||
],
|
||||
"nextTask": null,
|
||||
"nextTask": "WBV2-P10-000",
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P9-004.md",
|
||||
@@ -145,9 +145,9 @@
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 2799,
|
||||
"bytes": 2803,
|
||||
"lines": 51,
|
||||
"tokens": 700
|
||||
"tokens": 701
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/WBV2-P9-004.md",
|
||||
@@ -168,14 +168,14 @@
|
||||
"tokens": 140
|
||||
}
|
||||
],
|
||||
"sourceTokens": 1927,
|
||||
"sourceTokens": 1928,
|
||||
"evidenceFiles": 1,
|
||||
"evidenceBytes": 704,
|
||||
"evidenceTokens": 176,
|
||||
"totalTokens": 2103,
|
||||
"totalTokens": 2104,
|
||||
"reservedEnvelopeTokens": 1024,
|
||||
"estimatedContextTokens": 3127,
|
||||
"serializedContextTokens": 681,
|
||||
"estimatedContextTokens": 3128,
|
||||
"serializedContextTokens": 684,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,8 @@
|
||||
{"id":"WBV2-P9-001","gapId":"CAP-MESH-POSITIVE-EDIT","ownerFamily":"MESH","sourceTask":"P9","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["real meshTranslateVertex command passes","desktop/WASM delta matches","save/reopen is exact","malformed/stale/unknown inputs fail closed"]}
|
||||
{"id":"WBV2-P9-002","gapId":"CAP-MODIFIER-STATE-MUTATION","ownerFamily":"MODIFIER","sourceTask":"P9","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["real modifierSetEnabled command passes","desktop/WASM delta matches","save/reopen is exact"]}
|
||||
{"id":"WBV2-P9-003","gapId":"CAP-ASSET-CATALOG-MUTATION","ownerFamily":"ASSET","sourceTask":"P9","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["real assetCatalogAppend command passes","resource hash is bound","save/reopen is exact"]}
|
||||
{"id":"WBV2-P9-004","gapId":"workflow:recompute_feature_parity_gate","ownerFamily":"RELEASE","sourceTask":"P9","state":"active","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["only evidenced feature claims are emitted","authorized baseline remains explicit","full historical reproduction remains false"]}
|
||||
{"id":"WBV2-P9-004","gapId":"workflow:recompute_feature_parity_gate","ownerFamily":"RELEASE","sourceTask":"P9","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["only evidenced feature claims are emitted","authorized baseline remains explicit","full historical reproduction remains false"]}
|
||||
{"id":"WBV2-P10-000","gapId":"workflow:authorize_native_engine_parity_continuation","ownerFamily":"PROGRAM","sourceTask":"P10","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["P9 evidence remains hash-bound","native build/runtime is explicit","one native parity task is active"]}
|
||||
{"id":"WBV2-P10-001","gapId":"workflow:reconcile_wbv2_inventory_source_drift","ownerFamily":"PARITY","sourceTask":"P10","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["historical P0 hashes remain unchanged","only authorized plan drift is recorded","dependency roots/lockfile/closure remain stable","inventory checker passes using current baseline"]}
|
||||
{"id":"WBV2-P10-002","gapId":"ENGINE.NATIVE_WASM_BRIDGE","ownerFamily":"ENGINE","sourceTask":"P10","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["native Blender binary is source-bound","WASM binary and JS are hash-bound","same mutation reaches real engine/Main","save/reopen and failures remain exact"]}
|
||||
{"id":"WBV2-P10-003","gapId":"CORE.MODULE_MATRIX","ownerFamily":"PARITY","sourceTask":"P10","state":"active","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["positive cases are L2+","negative cases do not mutate Main","shards use one catalog hash","unmapped and retained-negative cases stay explicit"]}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P9-004/feature-parity-task-plan.json","sha256":"d754f21d4923eec7cdb497caa7ed77300db81f2ccff965c2690f7734aafb135d"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"6b9506476dd36550fb13f745dadd5f3fb63c3629934c9f8f853edc2b035b38a2"},"taskCount":41,"activeTask":"WBV2-P9-004","entries":{"WBV2-P0-001":{"line":0,"offset":0,"length":308,"previous":null,"next":"WBV2-P0-002"},"WBV2-P0-002":{"line":1,"offset":308,"length":318,"previous":"WBV2-P0-001","next":"WBV2-P0-003"},"WBV2-P0-003":{"line":2,"offset":626,"length":306,"previous":"WBV2-P0-002","next":"WBV2-P1-001"},"WBV2-P1-001":{"line":3,"offset":932,"length":318,"previous":"WBV2-P0-003","next":"WBV2-P1-002"},"WBV2-P1-002":{"line":4,"offset":1250,"length":299,"previous":"WBV2-P1-001","next":"WBV2-P1-003"},"WBV2-P1-003":{"line":5,"offset":1549,"length":303,"previous":"WBV2-P1-002","next":"WBV2-P1-004"},"WBV2-P1-004":{"line":6,"offset":1852,"length":309,"previous":"WBV2-P1-003","next":"WBV2-P1-005"},"WBV2-P1-005":{"line":7,"offset":2161,"length":324,"previous":"WBV2-P1-004","next":"WBV2-P2-001"},"WBV2-P2-001":{"line":8,"offset":2485,"length":267,"previous":"WBV2-P1-005","next":"WBV2-P2-002"},"WBV2-P2-002":{"line":9,"offset":2752,"length":267,"previous":"WBV2-P2-001","next":"WBV2-P2-003"},"WBV2-P2-003":{"line":10,"offset":3019,"length":274,"previous":"WBV2-P2-002","next":"WBV2-P2-004"},"WBV2-P2-004":{"line":11,"offset":3293,"length":284,"previous":"WBV2-P2-003","next":"WBV2-P2-005"},"WBV2-P2-005":{"line":12,"offset":3577,"length":291,"previous":"WBV2-P2-004","next":"WBV2-P3-001"},"WBV2-P3-001":{"line":13,"offset":3868,"length":271,"previous":"WBV2-P2-005","next":"WBV2-P3-002"},"WBV2-P3-002":{"line":14,"offset":4139,"length":266,"previous":"WBV2-P3-001","next":"WBV2-P3-003"},"WBV2-P3-003":{"line":15,"offset":4405,"length":273,"previous":"WBV2-P3-002","next":"WBV2-P3-004"},"WBV2-P3-004":{"line":16,"offset":4678,"length":263,"previous":"WBV2-P3-003","next":"WBV2-P3-005"},"WBV2-P3-005":{"line":17,"offset":4941,"length":292,"previous":"WBV2-P3-004","next":"WBV2-P4-001"},"WBV2-P4-001":{"line":18,"offset":5233,"length":283,"previous":"WBV2-P3-005","next":"WBV2-P4-002"},"WBV2-P4-002":{"line":19,"offset":5516,"length":277,"previous":"WBV2-P4-001","next":"WBV2-P4-003"},"WBV2-P4-003":{"line":20,"offset":5793,"length":287,"previous":"WBV2-P4-002","next":"WBV2-P4-004"},"WBV2-P4-004":{"line":21,"offset":6080,"length":290,"previous":"WBV2-P4-003","next":"WBV2-P5-001"},"WBV2-P5-001":{"line":22,"offset":6370,"length":296,"previous":"WBV2-P4-004","next":"WBV2-P5-002"},"WBV2-P5-002":{"line":23,"offset":6666,"length":282,"previous":"WBV2-P5-001","next":"WBV2-P5-003"},"WBV2-P5-003":{"line":24,"offset":6948,"length":278,"previous":"WBV2-P5-002","next":"WBV2-P6-001"},"WBV2-P6-001":{"line":25,"offset":7226,"length":278,"previous":"WBV2-P5-003","next":"WBV2-P6-002"},"WBV2-P6-002":{"line":26,"offset":7504,"length":313,"previous":"WBV2-P6-001","next":"WBV2-P6-003"},"WBV2-P6-003":{"line":27,"offset":7817,"length":316,"previous":"WBV2-P6-002","next":"WBV2-P7-001"},"WBV2-P7-001":{"line":28,"offset":8133,"length":312,"previous":"WBV2-P6-003","next":"WBV2-P7-002"},"WBV2-P7-002":{"line":29,"offset":8445,"length":275,"previous":"WBV2-P7-001","next":"WBV2-P7-003"},"WBV2-P7-003":{"line":30,"offset":8720,"length":310,"previous":"WBV2-P7-002","next":"WBV2-P8-000"},"WBV2-P8-000":{"line":31,"offset":9030,"length":290,"previous":"WBV2-P7-003","next":"WBV2-P8-001"},"WBV2-P8-001":{"line":32,"offset":9320,"length":306,"previous":"WBV2-P8-000","next":"WBV2-P8-002"},"WBV2-P8-002":{"line":33,"offset":9626,"length":307,"previous":"WBV2-P8-001","next":"WBV2-P8-003"},"WBV2-P8-003":{"line":34,"offset":9933,"length":312,"previous":"WBV2-P8-002","next":"WBV2-P8-004"},"WBV2-P8-004":{"line":35,"offset":10245,"length":285,"previous":"WBV2-P8-003","next":"WBV2-P9-000"},"WBV2-P9-000":{"line":36,"offset":10530,"length":303,"previous":"WBV2-P8-004","next":"WBV2-P9-001"},"WBV2-P9-001":{"line":37,"offset":10833,"length":311,"previous":"WBV2-P9-000","next":"WBV2-P9-002"},"WBV2-P9-002":{"line":38,"offset":11144,"length":274,"previous":"WBV2-P9-001","next":"WBV2-P9-003"},"WBV2-P9-003":{"line":39,"offset":11418,"length":266,"previous":"WBV2-P9-002","next":"WBV2-P9-004"},"WBV2-P9-004":{"line":40,"offset":11684,"length":318,"previous":"WBV2-P9-003","next":null}}}
|
||||
{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P10-003/native-parity-task-plan.json","sha256":"acfe344c377cbef5b0eefaba22fab88de7d374e9a157ad53930ac6599cd6b1a9"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"604c45bfe19d24c6f4e21ae1bbec00e15489c713452428223cda26ee2a5f4318"},"taskCount":45,"activeTask":"WBV2-P10-003","entries":{"WBV2-P0-001":{"line":0,"offset":0,"length":308,"previous":null,"next":"WBV2-P0-002"},"WBV2-P0-002":{"line":1,"offset":308,"length":318,"previous":"WBV2-P0-001","next":"WBV2-P0-003"},"WBV2-P0-003":{"line":2,"offset":626,"length":306,"previous":"WBV2-P0-002","next":"WBV2-P1-001"},"WBV2-P1-001":{"line":3,"offset":932,"length":318,"previous":"WBV2-P0-003","next":"WBV2-P1-002"},"WBV2-P1-002":{"line":4,"offset":1250,"length":299,"previous":"WBV2-P1-001","next":"WBV2-P1-003"},"WBV2-P1-003":{"line":5,"offset":1549,"length":303,"previous":"WBV2-P1-002","next":"WBV2-P1-004"},"WBV2-P1-004":{"line":6,"offset":1852,"length":309,"previous":"WBV2-P1-003","next":"WBV2-P1-005"},"WBV2-P1-005":{"line":7,"offset":2161,"length":324,"previous":"WBV2-P1-004","next":"WBV2-P2-001"},"WBV2-P2-001":{"line":8,"offset":2485,"length":267,"previous":"WBV2-P1-005","next":"WBV2-P2-002"},"WBV2-P2-002":{"line":9,"offset":2752,"length":267,"previous":"WBV2-P2-001","next":"WBV2-P2-003"},"WBV2-P2-003":{"line":10,"offset":3019,"length":274,"previous":"WBV2-P2-002","next":"WBV2-P2-004"},"WBV2-P2-004":{"line":11,"offset":3293,"length":284,"previous":"WBV2-P2-003","next":"WBV2-P2-005"},"WBV2-P2-005":{"line":12,"offset":3577,"length":291,"previous":"WBV2-P2-004","next":"WBV2-P3-001"},"WBV2-P3-001":{"line":13,"offset":3868,"length":271,"previous":"WBV2-P2-005","next":"WBV2-P3-002"},"WBV2-P3-002":{"line":14,"offset":4139,"length":266,"previous":"WBV2-P3-001","next":"WBV2-P3-003"},"WBV2-P3-003":{"line":15,"offset":4405,"length":273,"previous":"WBV2-P3-002","next":"WBV2-P3-004"},"WBV2-P3-004":{"line":16,"offset":4678,"length":263,"previous":"WBV2-P3-003","next":"WBV2-P3-005"},"WBV2-P3-005":{"line":17,"offset":4941,"length":292,"previous":"WBV2-P3-004","next":"WBV2-P4-001"},"WBV2-P4-001":{"line":18,"offset":5233,"length":283,"previous":"WBV2-P3-005","next":"WBV2-P4-002"},"WBV2-P4-002":{"line":19,"offset":5516,"length":277,"previous":"WBV2-P4-001","next":"WBV2-P4-003"},"WBV2-P4-003":{"line":20,"offset":5793,"length":287,"previous":"WBV2-P4-002","next":"WBV2-P4-004"},"WBV2-P4-004":{"line":21,"offset":6080,"length":290,"previous":"WBV2-P4-003","next":"WBV2-P5-001"},"WBV2-P5-001":{"line":22,"offset":6370,"length":296,"previous":"WBV2-P4-004","next":"WBV2-P5-002"},"WBV2-P5-002":{"line":23,"offset":6666,"length":282,"previous":"WBV2-P5-001","next":"WBV2-P5-003"},"WBV2-P5-003":{"line":24,"offset":6948,"length":278,"previous":"WBV2-P5-002","next":"WBV2-P6-001"},"WBV2-P6-001":{"line":25,"offset":7226,"length":278,"previous":"WBV2-P5-003","next":"WBV2-P6-002"},"WBV2-P6-002":{"line":26,"offset":7504,"length":313,"previous":"WBV2-P6-001","next":"WBV2-P6-003"},"WBV2-P6-003":{"line":27,"offset":7817,"length":316,"previous":"WBV2-P6-002","next":"WBV2-P7-001"},"WBV2-P7-001":{"line":28,"offset":8133,"length":312,"previous":"WBV2-P6-003","next":"WBV2-P7-002"},"WBV2-P7-002":{"line":29,"offset":8445,"length":275,"previous":"WBV2-P7-001","next":"WBV2-P7-003"},"WBV2-P7-003":{"line":30,"offset":8720,"length":310,"previous":"WBV2-P7-002","next":"WBV2-P8-000"},"WBV2-P8-000":{"line":31,"offset":9030,"length":290,"previous":"WBV2-P7-003","next":"WBV2-P8-001"},"WBV2-P8-001":{"line":32,"offset":9320,"length":306,"previous":"WBV2-P8-000","next":"WBV2-P8-002"},"WBV2-P8-002":{"line":33,"offset":9626,"length":307,"previous":"WBV2-P8-001","next":"WBV2-P8-003"},"WBV2-P8-003":{"line":34,"offset":9933,"length":312,"previous":"WBV2-P8-002","next":"WBV2-P8-004"},"WBV2-P8-004":{"line":35,"offset":10245,"length":285,"previous":"WBV2-P8-003","next":"WBV2-P9-000"},"WBV2-P9-000":{"line":36,"offset":10530,"length":303,"previous":"WBV2-P8-004","next":"WBV2-P9-001"},"WBV2-P9-001":{"line":37,"offset":10833,"length":311,"previous":"WBV2-P9-000","next":"WBV2-P9-002"},"WBV2-P9-002":{"line":38,"offset":11144,"length":274,"previous":"WBV2-P9-001","next":"WBV2-P9-003"},"WBV2-P9-003":{"line":39,"offset":11418,"length":266,"previous":"WBV2-P9-002","next":"WBV2-P9-004"},"WBV2-P9-004":{"line":40,"offset":11684,"length":321,"previous":"WBV2-P9-003","next":"WBV2-P10-000"},"WBV2-P10-000":{"line":41,"offset":12005,"length":312,"previous":"WBV2-P9-004","next":"WBV2-P10-001"},"WBV2-P10-001":{"line":42,"offset":12317,"length":383,"previous":"WBV2-P10-000","next":"WBV2-P10-002"},"WBV2-P10-002":{"line":43,"offset":12700,"length":336,"previous":"WBV2-P10-001","next":"WBV2-P10-003"},"WBV2-P10-003":{"line":44,"offset":13036,"length":315,"previous":"WBV2-P10-002","next":null}}}
|
||||
|
||||
@@ -10,7 +10,7 @@ const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(path
|
||||
const queue = read("docs/EXECUTION_QUEUE.md");
|
||||
const requested = process.argv.indexOf("--task");
|
||||
const current = requested >= 0 ? process.argv[requested + 1] : queue.match(/\|\s*当前任务\s*\|\s*`([^`]+)`/u)?.[1];
|
||||
assert.match(current ?? "", /^WBV2-P\d-\d{3}$/u);
|
||||
assert.match(current ?? "", /^WBV2-P\d+-\d{3}$/u);
|
||||
const currentCard = `docs/tasks/${current}.md`;
|
||||
assert.ok(fs.existsSync(path.join(root, currentCard)), `${currentCard} must exist`);
|
||||
const parentPath = requested >= 0
|
||||
|
||||
50
tools/web/check-wbv2-inventory-rebaseline.mjs
Normal file
50
tools/web/check-wbv2-inventory-rebaseline.mjs
Normal file
@@ -0,0 +1,50 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const json = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
|
||||
const historicalPath = "tests/golden/WBV2-P0-002/source-hashes.json";
|
||||
const currentPath = "tests/golden/WBV2-P10-001/current-source-hashes.json";
|
||||
const reportPath = "tests/golden/WBV2-P10-001/inventory-rebaseline-report.json";
|
||||
const dependencyPath = "tests/golden/WBV2-P10-001/dependency-inventory.current.json";
|
||||
const historicalDependencyPath = "tests/golden/M13-05C/dependency-inventory.json";
|
||||
const historical = json(historicalPath);
|
||||
const current = json(currentPath);
|
||||
const report = json(reportPath);
|
||||
const dependency = json(dependencyPath);
|
||||
const historicalDependency = json(historicalDependencyPath);
|
||||
|
||||
assert.equal(current.schemaVersion, 1);
|
||||
assert.equal(current.task, "WBV2-P10-001");
|
||||
assert.equal(current.operation, "CURRENT_WBV2_SOURCE_HASH_BASELINE");
|
||||
assert.equal(current.historicalSourceHashesSha256, sha256(historicalPath));
|
||||
const drift = [];
|
||||
for (const [file, expected] of Object.entries(historical.sources)) {
|
||||
const actual = sha256(file);
|
||||
assert.equal(current.sources[file], actual, `current source hash drift: ${file}`);
|
||||
if (actual !== expected) drift.push({ file, expected, actual });
|
||||
}
|
||||
assert.deepEqual(drift, current.drift.map(({ file, expected, actual }) => ({ file, expected, actual })));
|
||||
assert.deepEqual(drift.map((entry) => entry.file), ["docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json"]);
|
||||
assert.equal(drift[0].actual, "0f4750e45f2d1ca7d68faa35743e5b758ea8091f18d1d0e312ab548228d6f782");
|
||||
assert.equal(report.status, "PASS");
|
||||
assert.equal(report.task, "WBV2-P10-001");
|
||||
assert.equal(report.currentSourceBaseline.sha256, sha256(currentPath));
|
||||
assert.equal(report.currentSourceBaseline.planSha256, drift[0].actual);
|
||||
assert.equal(report.historical.sourceHashesSha256, sha256(historicalPath));
|
||||
assert.equal(report.dependency.lockfileHashStable, true);
|
||||
assert.equal(report.dependency.rootsStable, true);
|
||||
assert.equal(report.dependency.closureStable, true);
|
||||
assert.deepEqual(dependency.roots, historicalDependency.roots);
|
||||
assert.deepEqual(dependency.categoryCounts, historicalDependency.categoryCounts);
|
||||
assert.deepEqual(dependency.packages, historicalDependency.packages);
|
||||
assert.equal(dependency.lockfile.sha256, historicalDependency.lockfile.sha256);
|
||||
assert.equal(dependency.packages.length, 144);
|
||||
process.stdout.write(`wbv2-inventory-rebaseline-ok task=WBV2-P10-001 planDrift=${drift.length} dependencyPackages=${dependency.packages.length} closureStable=1 historicalHashesPreserved=1\n`);
|
||||
73
tools/web/check-wbv2-native-engine.mjs
Normal file
73
tools/web/check-wbv2-native-engine.mjs
Normal file
@@ -0,0 +1,73 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const write = process.argv.includes("--write");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const readJson = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
const outputPath = "tests/golden/WBV2-P10-002/native-engine-binding-report.json";
|
||||
const parentPath = "tests/golden/WBV2-P10-001/manifest.json";
|
||||
const nativeBinary = "build_blender_native/bin/blender";
|
||||
const wasmBinary = "web/app/src/vendor/blender/web_engine.wasm";
|
||||
const wasmJavaScript = "web/app/src/vendor/blender/web_engine.js";
|
||||
|
||||
const parent = readJson(parentPath);
|
||||
assert.equal(parent.task, "WBV2-P10-001");
|
||||
assert.equal(parent.status, "done");
|
||||
assert.equal(parent.nextTask, "WBV2-P10-002");
|
||||
for (const artifact of Object.values(parent.artifacts ?? {})) assert.equal(sha256(artifact.path), artifact.sha256, artifact.path);
|
||||
for (const source of ["tests/golden/WBV2-P2-003/manifest.json", "tests/golden/WBV2-P4-001/manifest.json", "tests/golden/WBV2-P3-005/manifest.json"]) {
|
||||
const manifest = readJson(source);
|
||||
assert.equal(manifest.status, "done", `${source} is not complete`);
|
||||
}
|
||||
assert.ok(fs.existsSync(absolute(nativeBinary)), "native Blender binary is missing");
|
||||
assert.ok(fs.statSync(absolute(nativeBinary)).size > 0, "native Blender binary is empty");
|
||||
assert.ok(fs.existsSync(absolute(wasmBinary)), "web_engine.wasm is missing");
|
||||
assert.ok(fs.existsSync(absolute(wasmJavaScript)), "web_engine.js is missing");
|
||||
const version = execFileSync(absolute(nativeBinary), ["--version"], { cwd: root, encoding: "utf8" }).split("\n")[0].trim();
|
||||
assert.equal(version, "Blender 5.2.0 LTS");
|
||||
const binding = {
|
||||
schemaVersion: 1,
|
||||
task: "WBV2-P10-002",
|
||||
operation: "NATIVE_WASM_ENGINE_BINDING",
|
||||
status: "PASS",
|
||||
runtime: {
|
||||
native: { path: nativeBinary, sha256: sha256(nativeBinary), version },
|
||||
wasm: { path: wasmBinary, sha256: sha256(wasmBinary), bytes: fs.statSync(absolute(wasmBinary)).size },
|
||||
javascript: { path: wasmJavaScript, sha256: sha256(wasmJavaScript), bytes: fs.statSync(absolute(wasmJavaScript)).size },
|
||||
browser: "chromium",
|
||||
},
|
||||
abi: {
|
||||
exports: ["web_engine_create", "web_engine_open_blend", "web_engine_apply_command", "web_engine_save_blend", "web_engine_destroy"],
|
||||
nativeApi: "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
mainState: "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
worker: "web/app/src/workers/web-engine.worker.ts",
|
||||
},
|
||||
sourceBindings: [
|
||||
{ task: "WBV2-P2-003", manifest: "tests/golden/WBV2-P2-003/manifest.json", report: "tests/golden/WBV2-P2-003/mesh-edit-report.json" },
|
||||
{ task: "WBV2-P4-001", manifest: "tests/golden/WBV2-P4-001/manifest.json", report: "tests/golden/WBV2-P4-001/modifier-report.json" },
|
||||
{ task: "WBV2-P3-005", manifest: "tests/golden/WBV2-P3-005/manifest.json", report: "tests/golden/WBV2-P3-005/library-report.json" },
|
||||
],
|
||||
requirements: { compiledNativePresent: true, wasmBinaryPresent: true, wasmLoaderPresent: true, sourceBound: true, fakeBridgeOnly: false },
|
||||
nextTask: "WBV2-P10-002",
|
||||
};
|
||||
for (const source of binding.sourceBindings) {
|
||||
const manifest = readJson(source.manifest);
|
||||
const report = readJson(source.report);
|
||||
assert.equal(report.desktop?.status, "EXACT", `${source.task} desktop evidence is not exact`);
|
||||
assert.equal(report.wasm?.status, "EXACT", `${source.task} WASM evidence is not exact`);
|
||||
const bound = Object.values(manifest.artifacts ?? {}).find((artifact) => artifact.path === source.report);
|
||||
assert.ok(bound, `${source.task} report is not manifest-bound`);
|
||||
assert.equal(bound.sha256, sha256(source.report), `${source.task} report hash drift`);
|
||||
}
|
||||
if (write) {
|
||||
fs.mkdirSync(path.dirname(absolute(outputPath)), { recursive: true });
|
||||
fs.writeFileSync(absolute(outputPath), `${JSON.stringify(binding, null, 2)}\n`);
|
||||
}
|
||||
process.stdout.write(`wbv2-native-engine-binding-ok task=WBV2-P10-002 native=${version} wasmBytes=${binding.runtime.wasm.bytes} browser=chromium${write ? ` output=${outputPath}` : ""}\n`);
|
||||
92
tools/web/generate-wbv2-inventory-rebaseline.mjs
Normal file
92
tools/web/generate-wbv2-inventory-rebaseline.mjs
Normal file
@@ -0,0 +1,92 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const write = process.argv.includes("--write");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const readJson = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
const outputRoot = "tests/golden/WBV2-P10-001";
|
||||
const historicalPath = "tests/golden/WBV2-P0-002/source-hashes.json";
|
||||
const currentPath = `${outputRoot}/current-source-hashes.json`;
|
||||
const dependencyPath = `${outputRoot}/dependency-inventory.current.json`;
|
||||
const reportPath = `${outputRoot}/inventory-rebaseline-report.json`;
|
||||
const statusPath = "docs/status/WBV2-P10-001.md";
|
||||
const planPath = `${outputRoot}/native-parity-task-plan.json`;
|
||||
const manifestPath = `${outputRoot}/manifest.json`;
|
||||
const parentManifestPath = "tests/golden/WBV2-P10-000/manifest.json";
|
||||
const historicalDependencyPath = "tests/golden/M13-05C/dependency-inventory.json";
|
||||
const previousReportPath = "tests/golden/WBV2-P8-001/recovery-baseline-report.json";
|
||||
|
||||
const parent = readJson(parentManifestPath);
|
||||
assert.equal(parent.task, "WBV2-P10-000");
|
||||
assert.equal(parent.status, "done");
|
||||
assert.equal(parent.nextTask, "WBV2-P10-001");
|
||||
for (const artifact of Object.values(parent.artifacts ?? {})) assert.equal(sha256(artifact.path), artifact.sha256, artifact.path);
|
||||
const historical = readJson(historicalPath);
|
||||
const previous = readJson(previousReportPath);
|
||||
const drift = Object.entries(historical.sources).map(([file, expected]) => ({ file, expected, actual: sha256(file) })).filter((entry) => entry.expected !== entry.actual);
|
||||
assert.deepEqual(drift.map((entry) => entry.file), ["docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json"]);
|
||||
assert.equal(previous.wbv2.drift.length, 1);
|
||||
assert.equal(previous.wbv2.drift[0].file, drift[0].file);
|
||||
assert.equal(previous.wbv2.drift[0].actual, drift[0].actual);
|
||||
|
||||
const historicalDependency = readJson(historicalDependencyPath);
|
||||
const temporary = fs.mkdtempSync(path.join(os.tmpdir(), "wbv2-p10-dependency-"));
|
||||
const generatedPath = path.join(temporary, "dependency-inventory.json");
|
||||
try {
|
||||
execFileSync(process.execPath, [absolute("tools/web/generate-dependency-inventory.mjs"), generatedPath], { cwd: root, stdio: "pipe" });
|
||||
} finally {
|
||||
// The generated bytes are read before cleanup; the temporary directory is
|
||||
// deliberately outside the repository and never becomes evidence.
|
||||
}
|
||||
const dependency = JSON.parse(fs.readFileSync(generatedPath, "utf8"));
|
||||
assert.deepEqual(dependency.roots, historicalDependency.roots);
|
||||
assert.deepEqual(dependency.categoryCounts, historicalDependency.categoryCounts);
|
||||
assert.deepEqual(dependency.packages, historicalDependency.packages);
|
||||
assert.equal(dependency.lockfile.sha256, historicalDependency.lockfile.sha256);
|
||||
assert.equal(dependency.packages.length, 144);
|
||||
|
||||
const current = { schemaVersion: 1, task: "WBV2-P10-001", operation: "CURRENT_WBV2_SOURCE_HASH_BASELINE", historicalSourceHashes: historicalPath, historicalSourceHashesSha256: sha256(historicalPath), sources: Object.fromEntries(Object.keys(historical.sources).map((file) => [file, sha256(file)])), drift: drift.map(({ file, expected, actual }) => ({ file, expected, actual, classification: "AUTHORIZED_MUTABLE_PLAN" })) };
|
||||
const report = { schemaVersion: 1, task: "WBV2-P10-001", operation: "RECONCILE_WBV2_INVENTORY_SOURCE_DRIFT", status: "PASS", historical: { sourceHashes: historicalPath, sourceHashesSha256: sha256(historicalPath), manifestsRewritten: false, baselinePreserved: true }, currentSourceBaseline: { path: currentPath, sha256: "PENDING", planPath: "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", planSha256: sha256("docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json") }, drift: { count: drift.length, entries: current.drift, onlyAuthorizedMutablePlan: true }, dependency: { historicalInventory: historicalDependencyPath, currentInventory: dependencyPath, packageCount: dependency.packages.length, packageHashChanged: dependency.package.sha256 !== historicalDependency.package.sha256, lockfileHashStable: dependency.lockfile.sha256 === historicalDependency.lockfile.sha256, rootsStable: JSON.stringify(dependency.roots) === JSON.stringify(historicalDependency.roots), closureStable: JSON.stringify(dependency.packages) === JSON.stringify(historicalDependency.packages), packagesAdded: 0 }, policy: { historicalP0Unchanged: true, historicalP8Unchanged: true, additiveCurrentBaseline: true, falseHistoricalRestoration: false }, nextTask: "WBV2-P10-002" };
|
||||
|
||||
if (!write) {
|
||||
process.stdout.write(`wbv2-inventory-rebaseline-dry-ok task=WBV2-P10-001 planDrift=${drift.length} dependencyPackages=${dependency.packages.length} closureStable=1\n`);
|
||||
process.exit(0);
|
||||
}
|
||||
fs.mkdirSync(absolute(outputRoot), { recursive: true });
|
||||
fs.writeFileSync(absolute(currentPath), `${JSON.stringify(current, null, 2)}\n`);
|
||||
fs.copyFileSync(generatedPath, absolute(dependencyPath));
|
||||
fs.rmSync(temporary, { recursive: true, force: true });
|
||||
report.currentSourceBaseline.sha256 = sha256(currentPath);
|
||||
fs.writeFileSync(absolute(reportPath), `${JSON.stringify(report, null, 2)}\n`);
|
||||
fs.writeFileSync(absolute(statusPath), `# WBV2-P10-001 status\n\n- task: \`WBV2-P10-001\`; parent: \`WBV2-P10-000\`; status: \`done\`\n- plan drift: \`1\` authorized mutable plan hash\n- dependency packages: \`144\`; lockfile/roots/closure: \`STABLE\`\n- historical P0 hashes: preserved\n- nextTask: \`WBV2-P10-002\`\n\nThe current WBV2 plan hash is recorded as an additive epoch-1 baseline. The historical P0-002 source-hashes.json and all historical manifests remain unchanged. Dependency roots, lockfile, package closure, and package count remain stable.\n`);
|
||||
|
||||
const previousPlan = readJson("tests/golden/WBV2-P10-000/native-parity-task-plan.json");
|
||||
const nextPlan = structuredClone(previousPlan);
|
||||
nextPlan.parentRecoveryPlan = { path: "tests/golden/WBV2-P10-000/native-parity-task-plan.json", sha256: sha256("tests/golden/WBV2-P10-000/native-parity-task-plan.json") };
|
||||
nextPlan.tasks = nextPlan.tasks.map((task) => task.id === "WBV2-P10-001" ? { ...task, status: "done", ready: false } : task.id === "WBV2-P10-002" ? { ...task, status: "in_progress", ready: true } : { ...task, ready: false });
|
||||
fs.writeFileSync(absolute(planPath), `${JSON.stringify(nextPlan, null, 2)}\n`);
|
||||
const nextCardPath = "docs/tasks/WBV2-P10-002.md";
|
||||
const nextCard = read(nextCardPath).replace("- status: planned", "- status: in_progress");
|
||||
fs.writeFileSync(absolute(nextCardPath), nextCard);
|
||||
execFileSync(process.execPath, [absolute("tools/web/generate-v2-task-index.mjs"), "--plan-path", absolute(planPath)], { cwd: root, stdio: "inherit" });
|
||||
execFileSync(process.execPath, [absolute("tools/web/check-task-context.mjs"), "--task", "WBV2-P10-001", "--write"], { cwd: root, stdio: "inherit" });
|
||||
execFileSync(process.execPath, [absolute("tools/web/check-wbv2-inventory-rebaseline.mjs")], { cwd: root, stdio: "inherit" });
|
||||
|
||||
const artifactPaths = { parentManifest: parentManifestPath, historicalSourceHashes: historicalPath, historicalDependencyManifest: "tests/golden/M13-05C/manifest.json", historicalRecoveryReport: previousReportPath, currentSourceHashes: currentPath, currentDependencyInventory: dependencyPath, sourcePlan: "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", generator: "tools/web/generate-wbv2-inventory-rebaseline.mjs", checker: "tools/web/check-wbv2-inventory-rebaseline.mjs", report: reportPath, status: statusPath, parityPlan: planPath, taskContext: `${outputRoot}/task-context.json` };
|
||||
const artifacts = Object.fromEntries(Object.entries(artifactPaths).map(([name, file]) => [name, { path: file, sha256: sha256(file) }]));
|
||||
const manifest = { schemaVersion: 1, task: "WBV2-P10-001", parentTask: "WBV2-P10-000", operation: "RECONCILE_WBV2_INVENTORY_SOURCE_DRIFT", status: "done", enablingTask: true, parityStateChange: false, artifacts, assertions: { historicalP0Preserved: true, historicalP8Preserved: true, authorizedPlanDrift: 1, currentBaseline: true, dependencyPackages: 144, dependencyClosureStable: true, lockfileStable: true, nextEngineTask: "WBV2-P10-002" }, nextTask: "WBV2-P10-002" };
|
||||
fs.writeFileSync(absolute(manifestPath), `${JSON.stringify(manifest, null, 2)}\n`);
|
||||
let queue = read("docs/EXECUTION_QUEUE.md");
|
||||
queue = queue.replace(/\| 当前任务 \| `[^`]+` \|/u, "| 当前任务 | `WBV2-P10-002` |")
|
||||
.replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P10-001/manifest.json` |")
|
||||
.replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P10-002.md`](tasks/WBV2-P10-002.md) |");
|
||||
fs.writeFileSync(absolute("docs/EXECUTION_QUEUE.md"), queue);
|
||||
process.stdout.write(`wbv2-inventory-rebaseline-written task=WBV2-P10-001 planDrift=1 dependencyPackages=144 closureStable=1 next=WBV2-P10-002 artifacts=${Object.keys(artifacts).length}\n`);
|
||||
95
tools/web/generate-wbv2-module-matrix-receipt.mjs
Normal file
95
tools/web/generate-wbv2-module-matrix-receipt.mjs
Normal file
@@ -0,0 +1,95 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const write = process.argv.includes("--write");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const readJson = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
const outputRoot = "tests/golden/WBV2-P10-003";
|
||||
const matrixPath = `${outputRoot}/module-matrix.json`;
|
||||
const productionPath = `${outputRoot}/module-matrix-production.json`;
|
||||
const productionSecondPath = `${outputRoot}/module-matrix-production.second.json`;
|
||||
const engineReceiptPath = "tests/golden/WBV2-P10-002/native-engine-receipt-report.json";
|
||||
const parentManifestPath = "tests/golden/WBV2-P10-002/manifest.json";
|
||||
const reportPath = `${outputRoot}/module-matrix-receipt-report.json`;
|
||||
const statusPath = "docs/status/WBV2-P10-003.md";
|
||||
const planPath = `${outputRoot}/native-parity-task-plan.json`;
|
||||
const manifestPath = `${outputRoot}/manifest.json`;
|
||||
|
||||
const parent = readJson(parentManifestPath);
|
||||
assert.equal(parent.task, "WBV2-P10-002");
|
||||
assert.equal(parent.status, "done");
|
||||
assert.equal(parent.nextTask, "WBV2-P10-003");
|
||||
for (const artifact of Object.values(parent.artifacts ?? {})) assert.equal(sha256(artifact.path), artifact.sha256, artifact.path);
|
||||
const engineReceipt = readJson(engineReceiptPath);
|
||||
assert.equal(engineReceipt.status, "PASS");
|
||||
assert.equal(engineReceipt.assertions.realEngineMainMutation, true);
|
||||
const matrix = readJson(matrixPath);
|
||||
assert.equal(matrix.task, "WBV2-P10-003");
|
||||
assert.equal(matrix.status, "READY");
|
||||
assert.equal(matrix.catalog.inventoryEntries, 6900);
|
||||
assert.equal(matrix.catalog.pendingEntries, 6618);
|
||||
assert.equal(matrix.policy.unmappedInventoryExplicit, true);
|
||||
assert.equal(sha256(matrix.catalog.path), matrix.catalog.sha256);
|
||||
const production = readJson(productionPath);
|
||||
assert.equal(sha256(productionPath), sha256(productionSecondPath), "module matrix report is not deterministic");
|
||||
assert.equal(production.task, "WBV2-P10-003");
|
||||
assert.equal(production.operation, "CORE_MODULE_OPERATOR_MATRIX_CHROMIUM");
|
||||
assert.equal(production.browser, "chromium");
|
||||
assert.equal(production.queueMutation, false);
|
||||
assert.equal(production.catalogSha256, matrix.catalog.sha256);
|
||||
assert.equal(production.cases.length, matrix.cases.length);
|
||||
assert.equal(production.cases.filter((entry) => entry.status === "PASS").length, 3);
|
||||
assert.equal(production.cases.filter((entry) => entry.status === "RETAINED_NEGATIVE").length, 6);
|
||||
for (const entry of production.cases) {
|
||||
assert.ok(matrix.cases.some((candidate) => candidate.id === entry.id), `case is not catalog-bound: ${entry.id}`);
|
||||
assert.equal(entry.mainMutation, entry.status === "PASS" ? "CHANGED" : "UNCHANGED");
|
||||
assert.equal(entry.revisionDelta, entry.status === "PASS" ? 1 : 0);
|
||||
if (entry.status === "PASS") assert.equal(entry.saveReopen, true);
|
||||
}
|
||||
assert.equal(production.shards.length, 2);
|
||||
assert.ok(production.shards.every((shard) => shard.catalogSha256 === matrix.catalog.sha256 && shard.exitCode === 0));
|
||||
|
||||
const receipt = {
|
||||
schemaVersion: 1,
|
||||
task: "WBV2-P10-003",
|
||||
operation: "CORE_MODULE_OPERATOR_MATRIX_RECEIPT",
|
||||
status: "PASS",
|
||||
browser: "chromium",
|
||||
queueMutation: false,
|
||||
source: { engineReceipt: engineReceiptPath, engineReceiptSha256: sha256(engineReceiptPath), catalog: matrix.catalog, featureGate: matrix.source.featureGate, featureGateSha256: matrix.source.featureGateSha256 },
|
||||
matrix: { definition: matrixPath, definitionSha256: sha256(matrixPath), production: productionPath, productionSha256: sha256(productionPath), secondProduction: productionSecondPath, secondProductionSha256: sha256(productionSecondPath), deterministic: true, modules: matrix.modules, cases: production.cases.length, positive: 3, retainedNegative: 6, shards: production.shards.map((shard) => ({ id: shard.id, catalogSha256: shard.catalogSha256, exitCode: shard.exitCode })) },
|
||||
coverage: { inventoryEntries: matrix.coverage.inventoryEntries, claimedComplete: matrix.coverage.inventoryEntriesClaimedComplete, remainingExplicit: matrix.coverage.inventoryEntriesRemainingExplicit, productionCases: production.cases.length, oneCatalogHash: true },
|
||||
assertions: { positiveCasesMainChanged: true, negativeCasesMainUnchanged: true, saveReopenExact: 3, unmappedInventoryExplicit: true, retainedNegativeExplicit: true, historicalReproduction: false },
|
||||
nextTask: null,
|
||||
};
|
||||
|
||||
if (!write) {
|
||||
process.stdout.write("wbv2-module-matrix-receipt-ok task=WBV2-P10-003 cases=9 positive=3 negative=6 shards=2 deterministic=true terminal=true\n");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
fs.mkdirSync(absolute(outputRoot), { recursive: true });
|
||||
fs.writeFileSync(absolute(reportPath), `${JSON.stringify(receipt, null, 2)}\n`);
|
||||
fs.writeFileSync(absolute(statusPath), `# WBV2-P10-003 status\n\n- task: \`WBV2-P10-003\`; parent: \`WBV2-P10-002\`; status: \`done\`\n- module cases: \`9\`; positive Main mutations: \`3\`; retained negatives: \`6\`\n- shards: \`2\`; one catalog hash; exit codes: \`0/0\`\n- inventory: \`6900\` total, \`6900\` explicitly remaining; no false completion claim\n- nextTask: \`NONE\`\n\nThe data-driven Mesh, Modifier, and Asset Catalog matrix re-runs the real WebEngine WASM Main path with one catalog hash. Positive cases change Main and pass save/reopen; stale, malformed, unknown, and collision cases remain explicit retained negatives. The matrix does not claim all inventory entries are complete or reproduce unavailable historical bytes. P10-003 is the terminal pointer until a separately authorized continuation is created.\n`);
|
||||
|
||||
const previousPlan = readJson("tests/golden/WBV2-P10-002/native-parity-task-plan.json");
|
||||
const nextPlan = structuredClone(previousPlan);
|
||||
nextPlan.status = "COMPLETED_WITH_NATIVE_MODULE_MATRIX";
|
||||
nextPlan.parentRecoveryPlan = { path: "tests/golden/WBV2-P10-002/native-parity-task-plan.json", sha256: sha256("tests/golden/WBV2-P10-002/native-parity-task-plan.json") };
|
||||
nextPlan.tasks = nextPlan.tasks.map((task) => task.id === "WBV2-P10-003" ? { ...task, status: "in_progress", ready: true } : { ...task, ready: false });
|
||||
fs.writeFileSync(absolute(planPath), `${JSON.stringify(nextPlan, null, 2)}\n`);
|
||||
execFileSync(process.execPath, [absolute("tools/web/generate-v2-task-index.mjs"), "--plan-path", absolute(planPath)], { cwd: root, stdio: "inherit" });
|
||||
execFileSync(process.execPath, [absolute("tools/web/check-task-context.mjs"), "--task", "WBV2-P10-003", "--write"], { cwd: root, stdio: "inherit" });
|
||||
|
||||
const artifactPaths = { parentManifest: parentManifestPath, engineReceipt: engineReceiptPath, matrix: matrixPath, production: productionPath, productionSecond: productionSecondPath, e2e: "web/tests/e2e/wbv2-module-matrix.spec.ts", generator: "tools/web/generate-wbv2-module-matrix.mjs", receiptGenerator: "tools/web/generate-wbv2-module-matrix-receipt.mjs", report: reportPath, status: statusPath, parityPlan: planPath, taskContext: `${outputRoot}/task-context.json` };
|
||||
const artifacts = Object.fromEntries(Object.entries(artifactPaths).map(([name, file]) => [name, { path: file, sha256: sha256(file) }]));
|
||||
const manifest = { schemaVersion: 1, task: "WBV2-P10-003", parentTask: "WBV2-P10-002", operation: "CORE_MODULE_OPERATOR_MATRIX_RECEIPT", status: "done", enablingTask: true, parityStateChange: true, runtime: "PLAYWRIGHT_CHROMIUM_WEBENGINE_WASM", artifacts, assertions: { cases: 9, positiveCases: 3, retainedNegative: 6, shards: 2, oneCatalogHash: true, inventoryEntries: 6900, inventoryEntriesRemaining: 6900, deterministic: true, saveReopen: "EXACT", historicalReproduction: false }, nextTask: null };
|
||||
fs.writeFileSync(absolute(manifestPath), `${JSON.stringify(manifest, null, 2)}\n`);
|
||||
process.stdout.write(`wbv2-module-matrix-receipt-written task=WBV2-P10-003 cases=9 positive=3 negative=6 shards=2 deterministic=true terminal=true artifacts=${Object.keys(artifacts).length}\n`);
|
||||
60
tools/web/generate-wbv2-module-matrix.mjs
Normal file
60
tools/web/generate-wbv2-module-matrix.mjs
Normal file
@@ -0,0 +1,60 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const write = process.argv.includes("--write");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const readJson = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
const outputRoot = "tests/golden/WBV2-P10-003";
|
||||
const matrixPath = `${outputRoot}/module-matrix.json`;
|
||||
const parentPath = "tests/golden/WBV2-P10-002/manifest.json";
|
||||
const inventoryPath = "tests/golden/WBV2-P0-002/parity-map.json";
|
||||
const engineReceiptPath = "tests/golden/WBV2-P10-002/native-engine-receipt-report.json";
|
||||
const gatePath = "tests/golden/WBV2-P9-004/feature-parity-gate-report.json";
|
||||
|
||||
const parent = readJson(parentPath);
|
||||
assert.equal(parent.task, "WBV2-P10-002");
|
||||
assert.equal(parent.status, "done");
|
||||
assert.equal(parent.nextTask, "WBV2-P10-003");
|
||||
for (const artifact of Object.values(parent.artifacts ?? {})) assert.equal(sha256(artifact.path), artifact.sha256, artifact.path);
|
||||
const inventory = readJson(inventoryPath);
|
||||
const engineReceipt = readJson(engineReceiptPath);
|
||||
const gate = readJson(gatePath);
|
||||
assert.equal(engineReceipt.status, "PASS");
|
||||
assert.equal(engineReceipt.assertions.realEngineMainMutation, true);
|
||||
assert.equal(gate.status, "PASS");
|
||||
const cases = [
|
||||
{ id: "MESH.translateMeshVertices", family: "MESH", capabilityId: "CAP-MESH-POSITIVE-EDIT", behavior: "positive", implementationClass: "LOCAL_EXACT", expected: { mainMutation: "CHANGED", revisionDelta: 1, saveReopen: "EXACT" } },
|
||||
{ id: "MESH.translateMeshVertices.stale", family: "MESH", capabilityId: "CAP-MESH-POSITIVE-EDIT", behavior: "stale_revision", implementationClass: "NEGATIVE_BOUNDARY", expected: { mainMutation: "UNCHANGED", revisionDelta: 0, code: "REVISION_CONFLICT" } },
|
||||
{ id: "MESH.translateMeshVertices.malformed", family: "MESH", capabilityId: "CAP-MESH-POSITIVE-EDIT", behavior: "malformed_selection", implementationClass: "NEGATIVE_BOUNDARY", expected: { mainMutation: "UNCHANGED", revisionDelta: 0, code: "REJECTED" } },
|
||||
{ id: "MODIFIER.setModifierEnabled", family: "MODIFIER", capabilityId: "CAP-MODIFIER-STATE-MUTATION", behavior: "positive", implementationClass: "LOCAL_EXACT", expected: { mainMutation: "CHANGED", revisionDelta: 1, saveReopen: "EXACT" } },
|
||||
{ id: "MODIFIER.setModifierEnabled.stale", family: "MODIFIER", capabilityId: "CAP-MODIFIER-STATE-MUTATION", behavior: "stale_revision", implementationClass: "NEGATIVE_BOUNDARY", expected: { mainMutation: "UNCHANGED", revisionDelta: 0, code: "REVISION_CONFLICT" } },
|
||||
{ id: "MODIFIER.setModifierEnabled.unknown", family: "MODIFIER", capabilityId: "CAP-MODIFIER-STATE-MUTATION", behavior: "unknown_modifier", implementationClass: "NEGATIVE_BOUNDARY", expected: { mainMutation: "UNCHANGED", revisionDelta: 0, code: "REJECTED" } },
|
||||
{ id: "ASSET_CATALOG.appendLibraryObject", family: "ASSET_CATALOG", capabilityId: "CAP-ASSET-CATALOG-MUTATION", behavior: "positive", implementationClass: "LOCAL_EXACT", expected: { mainMutation: "CHANGED", revisionDelta: 1, saveReopen: "EXACT" } },
|
||||
{ id: "ASSET_CATALOG.appendLibraryObject.stale", family: "ASSET_CATALOG", capabilityId: "CAP-ASSET-CATALOG-MUTATION", behavior: "stale_revision", implementationClass: "NEGATIVE_BOUNDARY", expected: { mainMutation: "UNCHANGED", revisionDelta: 0, code: "REVISION_CONFLICT" } },
|
||||
{ id: "ASSET_CATALOG.appendLibraryObject.collision", family: "ASSET_CATALOG", capabilityId: "CAP-ASSET-CATALOG-MUTATION", behavior: "collision", implementationClass: "NEGATIVE_BOUNDARY", expected: { mainMutation: "UNCHANGED", revisionDelta: 0, code: "REJECTED" } },
|
||||
];
|
||||
const matrix = {
|
||||
schemaVersion: 1,
|
||||
task: "WBV2-P10-003",
|
||||
operation: "CORE_MODULE_OPERATOR_MATRIX",
|
||||
status: "READY",
|
||||
catalog: { path: inventoryPath, sha256: sha256(inventoryPath), inventoryEntries: inventory.summary.inventoryEntries, pendingEntries: inventory.summary.pendingLegacyEntries },
|
||||
source: { featureGate: gatePath, featureGateSha256: sha256(gatePath), engineReceipt: engineReceiptPath, engineReceiptSha256: sha256(engineReceiptPath) },
|
||||
policy: { oneCatalogHash: true, positiveClaimsRequireMainMutation: true, negativeCasesNeverAdvanceRevision: true, unmappedInventoryExplicit: true, historicalReproduction: false },
|
||||
modules: ["MESH", "MODIFIER", "ASSET_CATALOG"],
|
||||
cases,
|
||||
coverage: { matrixCases: cases.length, positiveCases: cases.filter((entry) => entry.behavior === "positive").length, negativeCases: cases.filter((entry) => entry.behavior !== "positive").length, inventoryEntries: inventory.summary.inventoryEntries, inventoryEntriesClaimedComplete: 0, inventoryEntriesRemainingExplicit: inventory.summary.inventoryEntries },
|
||||
shards: [{ id: "core-geometry", families: ["MESH", "MODIFIER"], caseIds: cases.filter((entry) => ["MESH", "MODIFIER"].includes(entry.family)).map((entry) => entry.id) }, { id: "asset-resource", families: ["ASSET_CATALOG"], caseIds: cases.filter((entry) => entry.family === "ASSET_CATALOG").map((entry) => entry.id) }],
|
||||
};
|
||||
assert.equal(matrix.cases.length, 9);
|
||||
if (write) {
|
||||
fs.mkdirSync(absolute(outputRoot), { recursive: true });
|
||||
fs.writeFileSync(absolute(matrixPath), `${JSON.stringify(matrix, null, 2)}\n`);
|
||||
}
|
||||
process.stdout.write(`wbv2-module-matrix-${write ? "written" : "ready"} task=WBV2-P10-003 cases=${cases.length} positive=3 negative=6 inventory=${inventory.summary.inventoryEntries} catalogSha256=${sha256(inventoryPath)}\n`);
|
||||
132
tools/web/generate-wbv2-native-engine-receipt.mjs
Normal file
132
tools/web/generate-wbv2-native-engine-receipt.mjs
Normal file
@@ -0,0 +1,132 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const write = process.argv.includes("--write");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const readJson = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
const outputRoot = "tests/golden/WBV2-P10-002";
|
||||
const bindingPath = `${outputRoot}/native-engine-binding-report.json`;
|
||||
const productionPath = `${outputRoot}/native-engine-production.json`;
|
||||
const productionSecondPath = `${outputRoot}/native-engine-production.second.json`;
|
||||
const reportPath = `${outputRoot}/native-engine-receipt-report.json`;
|
||||
const statusPath = "docs/status/WBV2-P10-002.md";
|
||||
const planPath = `${outputRoot}/native-parity-task-plan.json`;
|
||||
const manifestPath = `${outputRoot}/manifest.json`;
|
||||
const parentManifestPath = "tests/golden/WBV2-P10-001/manifest.json";
|
||||
|
||||
const parent = readJson(parentManifestPath);
|
||||
assert.equal(parent.task, "WBV2-P10-001");
|
||||
assert.equal(parent.status, "done");
|
||||
assert.equal(parent.nextTask, "WBV2-P10-002");
|
||||
for (const artifact of Object.values(parent.artifacts ?? {})) assert.equal(sha256(artifact.path), artifact.sha256, artifact.path);
|
||||
|
||||
const binding = readJson(bindingPath);
|
||||
assert.equal(binding.task, "WBV2-P10-002");
|
||||
assert.equal(binding.status, "PASS");
|
||||
assert.equal(binding.runtime.browser, "chromium");
|
||||
assert.equal(binding.requirements.compiledNativePresent, true);
|
||||
assert.equal(binding.requirements.wasmBinaryPresent, true);
|
||||
assert.equal(binding.requirements.wasmLoaderPresent, true);
|
||||
assert.equal(binding.requirements.fakeBridgeOnly, false);
|
||||
for (const file of [binding.runtime.native.path, binding.runtime.wasm.path, binding.runtime.javascript.path, binding.abi.nativeApi, binding.abi.mainState, binding.abi.worker]) assert.ok(fs.existsSync(absolute(file)), file);
|
||||
assert.equal(sha256(binding.runtime.native.path), binding.runtime.native.sha256);
|
||||
assert.equal(sha256(binding.runtime.wasm.path), binding.runtime.wasm.sha256);
|
||||
assert.equal(sha256(binding.runtime.javascript.path), binding.runtime.javascript.sha256);
|
||||
|
||||
assert.equal(sha256(productionPath), sha256(productionSecondPath), "native engine Chromium report is not deterministic");
|
||||
const production = readJson(productionPath);
|
||||
assert.equal(production.task, "WBV2-P10-002");
|
||||
assert.equal(production.operation, "NATIVE_WASM_ENGINE_PRODUCTION_CHROMIUM");
|
||||
assert.equal(production.browser, "chromium");
|
||||
assert.equal(production.queueMutation, false);
|
||||
assert.equal(production.mesh.editedRevision, production.mesh.baseRevision + 1);
|
||||
assert.equal(production.mesh.afterPosition.length, 3);
|
||||
assert.deepEqual(production.mesh.afterPosition.map((value, index) => Number((value - production.mesh.beforePosition[index]).toFixed(6))), [0.25, -0.5, 1]);
|
||||
assert.deepEqual(production.mesh.reopenedPosition, production.mesh.afterPosition);
|
||||
assert.match(production.mesh.savedSha256, /^[a-f0-9]{64}$/u);
|
||||
assert.notEqual(production.mesh.savedSha256, production.mesh.sourceSha256);
|
||||
assert.equal(production.mesh.stale.code, "INVALID_ARGUMENT");
|
||||
assert.match(production.mesh.stale.message, /REVISION_CONFLICT/u);
|
||||
assert.equal(production.mesh.malformed.code, "INVALID_ARGUMENT");
|
||||
assert.equal(production.modifier.editedRevision, production.modifier.baseRevision + 1);
|
||||
assert.equal(production.modifier.afterEnabled, !production.modifier.beforeEnabled);
|
||||
assert.equal(production.modifier.reopenedEnabled, production.modifier.afterEnabled);
|
||||
assert.match(production.modifier.savedSha256, /^[a-f0-9]{64}$/u);
|
||||
assert.notEqual(production.modifier.savedSha256, production.modifier.sourceSha256);
|
||||
assert.match(production.modifier.stale.message, /REVISION_CONFLICT/u);
|
||||
assert.equal(production.modifier.malformed.code, "INVALID_ARGUMENT");
|
||||
assert.equal(production.asset.appendedRevision, production.asset.baseRevision + 1);
|
||||
assert.equal(production.asset.receipt.operation, "APPEND");
|
||||
assert.equal(production.asset.receipt.transactionCount, 1);
|
||||
assert.equal(production.asset.appendedClosure.object, true);
|
||||
assert.equal(production.asset.appendedClosure.mesh, true);
|
||||
assert.equal(production.asset.appendedClosure.material, true);
|
||||
assert.equal(production.asset.appendedClosure.image.libraryLinked, false);
|
||||
assert.equal(production.asset.appendedClosure.image.packed, true);
|
||||
assert.deepEqual(production.asset.reopenedClosure, production.asset.appendedClosure);
|
||||
assert.match(production.asset.stale.message, /REVISION_CONFLICT/u);
|
||||
assert.equal(production.asset.collision.code, "ASSET_MANIFEST_INVALID");
|
||||
assert.equal(production.asset.collisionRevision, production.asset.appendedRevision);
|
||||
|
||||
const sourceBindings = binding.sourceBindings.map((source) => {
|
||||
const manifest = readJson(source.manifest);
|
||||
const report = readJson(source.report);
|
||||
assert.equal(manifest.status, "done", `${source.task} source manifest is not done`);
|
||||
assert.equal(report.desktop?.status, "EXACT", `${source.task} desktop source is not exact`);
|
||||
assert.equal(report.wasm?.status, "EXACT", `${source.task} WASM source is not exact`);
|
||||
const bound = Object.values(manifest.artifacts ?? {}).find((artifact) => artifact.path === source.report);
|
||||
assert.ok(bound, `${source.task} report is not manifest-bound`);
|
||||
assert.equal(bound.sha256, sha256(source.report));
|
||||
return { task: source.task, manifest: source.manifest, manifestSha256: sha256(source.manifest), report: source.report, reportSha256: sha256(source.report) };
|
||||
});
|
||||
|
||||
const receipt = {
|
||||
schemaVersion: 1,
|
||||
task: "WBV2-P10-002",
|
||||
operation: "NATIVE_WASM_ENGINE_PRODUCTION_RECEIPT",
|
||||
status: "PASS",
|
||||
browser: "chromium",
|
||||
queueMutation: false,
|
||||
runtime: { binding: bindingPath, bindingSha256: sha256(bindingPath), native: binding.runtime.native, wasm: binding.runtime.wasm, javascript: binding.runtime.javascript, abi: binding.abi },
|
||||
sourceBindings,
|
||||
production: { report: productionPath, reportSha256: sha256(productionPath), secondReport: productionSecondPath, secondReportSha256: sha256(productionSecondPath), deterministic: true, mesh: { mutation: "translateMeshVertices", revisionDelta: 1, saveReopen: "EXACT", stale: "REVISION_CONFLICT", malformed: "REJECTED" }, modifier: { mutation: "setModifierEnabled", revisionDelta: 1, saveReopen: "EXACT", stale: "REVISION_CONFLICT", malformed: "REJECTED" }, asset: { mutation: "appendLibraryObject", revisionDelta: 1, resourceClosure: "LOCAL_MAIN", saveReopen: "EXACT", stale: "REVISION_CONFLICT", collision: "REJECTED" } },
|
||||
assertions: { compiledNativeBound: true, compiledWasmBound: true, realEngineMainMutation: true, saveReopenExact: 3, deterministicRuns: 2, failureMatrixClosed: true, fakeBridgeOnly: false, historicalReproduction: false },
|
||||
nextTask: "WBV2-P10-003",
|
||||
};
|
||||
|
||||
if (!write) {
|
||||
process.stdout.write("wbv2-native-engine-receipt-ok task=WBV2-P10-002 native=true wasm=true chromium=true deterministic=true next=WBV2-P10-003\n");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
fs.mkdirSync(absolute(outputRoot), { recursive: true });
|
||||
fs.writeFileSync(absolute(reportPath), `${JSON.stringify(receipt, null, 2)}\n`);
|
||||
fs.writeFileSync(absolute(statusPath), `# WBV2-P10-002 status\n\n- task: \`WBV2-P10-002\`; parent: \`WBV2-P10-001\`; status: \`done\`\n- compiled native: \`Blender 5.2.0 LTS\`; compiled WASM: \`web_engine.wasm\`\n- real Main mutations: \`Mesh + Modifier + Asset Catalog\`\n- deterministic Chromium runs: \`2\`; save/reopen: \`3/3 EXACT\`\n- nextTask: \`WBV2-P10-003\`\n\nThe Chromium Worker loaded the checked-in WebEngine WASM and executed the native ABI through WebEngineClient. Mesh translation, modifier state, and library append all changed the real WASM Main, persisted through save/reopen, and rejected stale or malformed inputs without a late mutation. This evidence is engine-bound and still does not claim full historical reproduction.\n`);
|
||||
|
||||
const previousPlan = readJson("tests/golden/WBV2-P10-001/native-parity-task-plan.json");
|
||||
const nextPlan = structuredClone(previousPlan);
|
||||
nextPlan.parentRecoveryPlan = { path: "tests/golden/WBV2-P10-001/native-parity-task-plan.json", sha256: sha256("tests/golden/WBV2-P10-001/native-parity-task-plan.json") };
|
||||
nextPlan.tasks = nextPlan.tasks.map((task) => task.id === "WBV2-P10-002" ? { ...task, status: "done", ready: false } : task.id === "WBV2-P10-003" ? { ...task, status: "in_progress", ready: true } : { ...task, ready: false });
|
||||
fs.writeFileSync(absolute(planPath), `${JSON.stringify(nextPlan, null, 2)}\n`);
|
||||
const nextCardPath = "docs/tasks/WBV2-P10-003.md";
|
||||
fs.writeFileSync(absolute(nextCardPath), read(nextCardPath).replace("- status: planned", "- status: in_progress"));
|
||||
execFileSync(process.execPath, [absolute("tools/web/generate-v2-task-index.mjs"), "--plan-path", absolute(planPath)], { cwd: root, stdio: "inherit" });
|
||||
execFileSync(process.execPath, [absolute("tools/web/check-task-context.mjs"), "--task", "WBV2-P10-002", "--write"], { cwd: root, stdio: "inherit" });
|
||||
|
||||
const artifactPaths = { parentManifest: parentManifestPath, binding: bindingPath, production: productionPath, productionSecond: productionSecondPath, e2e: "web/tests/e2e/wbv2-native-engine-production.spec.ts", webEngineClient: "web/app/src/engine-client/WebEngineClient.ts", webEngineWorker: "web/app/src/workers/web-engine.worker.ts", nativeApi: "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", mainState: "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", nativeBinary: "build_blender_native/bin/blender", wasmBinary: "web/app/src/vendor/blender/web_engine.wasm", wasmJavaScript: "web/app/src/vendor/blender/web_engine.js", generator: "tools/web/generate-wbv2-native-engine-receipt.mjs", report: reportPath, status: statusPath, parityPlan: planPath, taskContext: `${outputRoot}/task-context.json` };
|
||||
const artifacts = Object.fromEntries(Object.entries(artifactPaths).map(([name, file]) => [name, { path: file, sha256: sha256(file) }]));
|
||||
const manifest = { schemaVersion: 1, task: "WBV2-P10-002", parentTask: "WBV2-P10-001", operation: "NATIVE_WASM_ENGINE_PRODUCTION_RECEIPT", status: "done", enablingTask: false, parityStateChange: true, runtime: "PLAYWRIGHT_CHROMIUM_WEBENGINE_WASM", artifacts, assertions: { compiledNativeBound: true, compiledWasmBound: true, realEngineMainMutation: true, deterministic: true, saveReopen: "EXACT", surfaces: 3, historicalReproduction: false }, nextTask: "WBV2-P10-003" };
|
||||
fs.writeFileSync(absolute(manifestPath), `${JSON.stringify(manifest, null, 2)}\n`);
|
||||
let queue = read("docs/EXECUTION_QUEUE.md");
|
||||
queue = queue.replace(/\| 当前任务 \| `[^`]+` \|/u, "| 当前任务 | `WBV2-P10-003` |")
|
||||
.replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P10-002/manifest.json` |")
|
||||
.replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P10-003.md`](tasks/WBV2-P10-003.md) |");
|
||||
fs.writeFileSync(absolute("docs/EXECUTION_QUEUE.md"), queue);
|
||||
process.stdout.write(`wbv2-native-engine-receipt-written task=WBV2-P10-002 native=true wasm=true chromium=true deterministic=true next=WBV2-P10-003 artifacts=${Object.keys(artifacts).length}\n`);
|
||||
98
tools/web/generate-wbv2-native-parity-root.mjs
Normal file
98
tools/web/generate-wbv2-native-parity-root.mjs
Normal file
@@ -0,0 +1,98 @@
|
||||
import assert from "node:assert/strict";
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { execFileSync } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const absolute = (file) => path.join(root, file);
|
||||
const read = (file) => fs.readFileSync(absolute(file), "utf8");
|
||||
const readJson = (file) => JSON.parse(read(file));
|
||||
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(absolute(file))).digest("hex");
|
||||
const p9ManifestPath = "tests/golden/WBV2-P9-004/manifest.json";
|
||||
const p9ReportPath = "tests/golden/WBV2-P9-004/feature-parity-gate-report.json";
|
||||
const p9StatusPath = "docs/status/WBV2-P9-004.md";
|
||||
const outputRoot = "tests/golden/WBV2-P10-000";
|
||||
const planPath = `${outputRoot}/native-parity-task-plan.json`;
|
||||
const reportPath = `${outputRoot}/native-parity-root-report.json`;
|
||||
const manifestPath = `${outputRoot}/manifest.json`;
|
||||
const rootStatusPath = "docs/status/WBV2-P10-000.md";
|
||||
|
||||
const p9 = readJson(p9ManifestPath);
|
||||
const p9Report = readJson(p9ReportPath);
|
||||
assert.equal(p9.task, "WBV2-P9-004");
|
||||
assert.equal(p9.status, "done");
|
||||
assert.ok(p9.nextTask === null || p9.nextTask === "WBV2-P10-000");
|
||||
assert.equal(p9Report.task, "WBV2-P9-004");
|
||||
assert.equal(p9Report.status, "PASS");
|
||||
assert.equal(p9Report.decision.fullHistoricalReproduction, false);
|
||||
assert.equal(p9Report.decision.releaseScope, "AUTHORIZED_REBASELINE_ONLY");
|
||||
for (const artifact of Object.values(p9.artifacts ?? {})) assert.equal(sha256(artifact.path), artifact.sha256, artifact.path);
|
||||
|
||||
const basePlan = readJson("tests/golden/WBV2-P9-004/feature-parity-task-plan.json");
|
||||
assert.equal(basePlan.recoveryRoot, "WBV2-P9-000");
|
||||
const tasks = basePlan.tasks.map((task) => ({ ...task, ready: false, status: task.id === "WBV2-P9-004" ? "done" : task.status }));
|
||||
const p10 = [
|
||||
{ id: "WBV2-P10-000", phase: "P10", title: "authorize_native_engine_parity_continuation", kind: "enabling", owner: "PROGRAM", dependsOn: ["WBV2-P9-004"], parityId: null, implementationClass: "LOCAL_BOUNDED", parallelGroup: "p10-governance", gate: "G6", card: "docs/tasks/WBV2-P10-000.md", behavior: "Authorize native Blender/WASM engine parity continuation after bounded Chromium capability evidence.", outputs: ["continuation receipt", "native parity plan", "scope limits"], acceptance: ["P9 evidence remains hash-bound", "native build/runtime is explicit", "one native parity task is active"], status: "done", ready: false, queueMutationAllowed: true },
|
||||
{ id: "WBV2-P10-001", phase: "P10", title: "reconcile_wbv2_inventory_source_drift", kind: "enabling", owner: "PARITY", dependsOn: ["WBV2-P10-000"], parityId: null, implementationClass: "LOCAL_BOUNDED", parallelGroup: "p10-inventory", gate: "G6", card: "docs/tasks/WBV2-P10-001.md", behavior: "Record the authorized mutable WBV2 plan drift and prove dependency closure stability without rewriting historical P0 evidence.", outputs: ["current source hash baseline", "drift report", "checker compatibility"], acceptance: ["historical P0 hashes remain unchanged", "only authorized plan drift is recorded", "dependency roots/lockfile/closure remain stable", "inventory checker passes using current baseline"], status: "in_progress", ready: true, queueMutationAllowed: false },
|
||||
{ id: "WBV2-P10-002", phase: "P10", title: "bind_native_and_wasm_engine_receipts", kind: "feature", owner: "ENGINE", dependsOn: ["WBV2-P10-001"], parityId: "ENGINE.NATIVE_WASM_BRIDGE", implementationClass: "LOCAL_EXACT", parallelGroup: "p10-engine", gate: "G6", card: "docs/tasks/WBV2-P10-002.md", behavior: "Bind Mesh, Modifier, and Asset Catalog receipts to the compiled Blender native binary and web_engine.wasm runtime.", outputs: ["native receipt", "WASM receipt", "Chromium engine report"], acceptance: ["native Blender binary is source-bound", "WASM binary and JS are hash-bound", "same mutation reaches real engine/Main", "save/reopen and failures remain exact"], status: "planned", ready: false, queueMutationAllowed: false },
|
||||
{ id: "WBV2-P10-003", phase: "P10", title: "expand_core_module_operator_matrix", kind: "feature", owner: "PARITY", dependsOn: ["WBV2-P10-002"], parityId: "CORE.MODULE_MATRIX", implementationClass: "LOCAL_BOUNDED", parallelGroup: "p10-matrix", gate: "G7", card: "docs/tasks/WBV2-P10-003.md", behavior: "Expand the three proven capability modules with data-driven operator coverage and aggregate regression receipts.", outputs: ["module matrix", "shard reports", "aggregate manifest"], acceptance: ["positive cases are L2+", "negative cases do not mutate Main", "shards use one catalog hash", "unmapped and retained-negative cases stay explicit"], status: "planned", ready: false, queueMutationAllowed: false },
|
||||
];
|
||||
const plan = { ...basePlan, planId: "BLENDER_WEB_PARITY_V2_NATIVE_ENGINE_EPOCH_1", status: "ACTIVE_NATIVE_ENGINE_QUEUE", authority: "queue_reactivated_after_p9_bounded_parity", recoveryRoot: "WBV2-P10-000", parentRecoveryPlan: { path: "tests/golden/WBV2-P9-004/feature-parity-task-plan.json", sha256: sha256("tests/golden/WBV2-P9-004/feature-parity-task-plan.json") }, tasks: [...tasks, ...p10] };
|
||||
|
||||
fs.mkdirSync(absolute(outputRoot), { recursive: true });
|
||||
fs.writeFileSync(absolute(planPath), `${JSON.stringify(plan, null, 2)}\n`);
|
||||
const report = { schemaVersion: 1, task: "WBV2-P10-000", operation: "AUTHORIZE_NATIVE_ENGINE_PARITY_CONTINUATION", status: "PASS", parent: { task: p9.task, manifest: p9ManifestPath, manifestSha256: sha256(p9ManifestPath), previousDecision: p9Report.decision.status, fullHistoricalReproduction: p9Report.decision.fullHistoricalReproduction }, continuation: { root: "WBV2-P10-000", firstTask: "WBV2-P10-001", plannedTasks: 4, scope: ["INVENTORY_DRIFT", "NATIVE_ENGINE", "WASM_ENGINE", "MODULE_MATRIX"], browser: "chromium", nativeBinary: "build_blender_native/bin/blender", wasmBinary: "web/app/src/vendor/blender/web_engine.wasm" }, policy: { historicalEvidencePreserved: true, authorizedRebaselineAccepted: true, nativeEngineReceiptsRequired: true, fullHistoricalReproduction: false, releaseScope: "AUTHORIZED_REBASELINE_ONLY" }, nextTask: "WBV2-P10-001" };
|
||||
fs.writeFileSync(absolute(reportPath), `${JSON.stringify(report, null, 2)}\n`);
|
||||
fs.writeFileSync(absolute("docs/tasks/WBV2-P10-000.md"), `# WBV2-P10-000: native engine parity continuation root\n\n- task: WBV2-P10-000\n- parent: WBV2-P9-004\n- status: done\n- gap: workflow:authorize_native_engine_parity_continuation\n- ownerFamily: PROGRAM\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nAuthorize the next parity epoch after P9 bounded Chromium receipts. The next work must bind evidence to the compiled Blender native binary and web_engine.wasm; it must not claim full historical reproduction.\n\n## 验收\n\n- \`node tools/web/generate-wbv2-native-parity-root.mjs\`\n- \`node tools/web/check-execution-control-plane.mjs\`\n- \`node tools/web/check-v2-task-index.mjs\`\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P10-000/\`\n- Manifest: \`tests/golden/WBV2-P10-000/manifest.json\`\n- Rollback: restore P9-004 as queue parent without rewriting P7/P8/P9 evidence.\n`);
|
||||
fs.writeFileSync(absolute("docs/tasks/WBV2-P10-001.md"), `# WBV2-P10-001: reconcile WBV2 inventory source drift\n\n- task: WBV2-P10-001\n- parent: WBV2-P10-000\n- status: in_progress\n- gap: workflow:reconcile_wbv2_inventory_source_drift\n- ownerFamily: PARITY\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nRecord the already observed mutable plan drift and prove dependency closure stability. The historical P0-002 source hashes remain immutable; a current baseline is an additive P10 artifact.\n\n## 输入与范围\n\n- Historical source hashes: \`tests/golden/WBV2-P0-002/source-hashes.json\`\n- Current plan: \`docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json\`\n- Dependency baseline: \`tests/golden/M13-05C/dependency-inventory.json\`\n- Checker: \`tools/web/check-wbv2-inventory.mjs\`\n- Rebaseline generator: \`tools/web/generate-wbv2-inventory-rebaseline.mjs\`\n\n## 验收\n\n- \`node tools/web/generate-wbv2-inventory-rebaseline.mjs --write\`\n- \`node tools/web/check-wbv2-inventory.mjs\`\n- \`node tools/web/check-task-context.mjs --task WBV2-P10-001 --write\`\n\nFailure cases (malformed input, unsupported dependency, unexpected drift, changed closure, historical hash rewrite, missing baseline, or failed checker) must keep in_progress and must not advance nextTask.\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P10-001/\`\n- Status: \`docs/status/WBV2-P10-001.md\`\n- Manifest: \`tests/golden/WBV2-P10-001/manifest.json\`\n- Rollback: restore P10-000 as queue parent; keep P0-002 hashes untouched.\n`);
|
||||
fs.writeFileSync(absolute(rootStatusPath), `# WBV2-P10-000 status\n\n- task: \`WBV2-P10-000\`; parent: \`WBV2-P9-004\`; status: \`done\`\n- nextTask: \`WBV2-P10-001\`\n\nNative engine parity continuation is authorized after P9 bounded Chromium evidence. P10 first reconciles the known WBV2 inventory drift, then requires receipts from the compiled Blender native binary and web_engine.wasm. Full historical reproduction remains false.\n`);
|
||||
fs.writeFileSync(absolute("docs/tasks/WBV2-P10-002.md"), `# WBV2-P10-002: native and WASM engine receipts\n\n- task: WBV2-P10-002\n- parent: WBV2-P10-001\n- status: planned\n- gap: workflow:bind_native_and_wasm_engine_receipts\n- ownerFamily: ENGINE\n- targetImplementationClass: LOCAL_EXACT\n\n## 目标\n\nBind the proven Mesh, Modifier, and Asset Catalog mutations to the compiled Blender native binary and the checked-in web_engine.wasm runtime, with Chromium as the browser gate.\n\n## 验收\n\n- \`build_blender_native/bin/blender --version\`\n- \`node tools/web/check-wbv2-native-engine.mjs --write\`\n- \`npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-native-engine-production.spec.ts\`\n\nMissing binary, source hash drift, fake bridge execution, unsupported browser, non-exact save/reopen, or failure mutation must keep in_progress and must not advance nextTask.\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P10-002/\`\n- Status: \`docs/status/WBV2-P10-002.md\`\n- Manifest: \`tests/golden/WBV2-P10-002/manifest.json\`\n- Rollback: restore P10-001 as queue parent without modifying P9 receipts.\n`);
|
||||
fs.writeFileSync(absolute("docs/tasks/WBV2-P10-003.md"), `# WBV2-P10-003: core module operator matrix\n\n- task: WBV2-P10-003\n- parent: WBV2-P10-002\n- status: planned\n- gap: workflow:expand_core_module_operator_matrix\n- ownerFamily: PARITY\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nRun one hash-bound data-driven matrix for Mesh, Modifier, and Asset Catalog module cases instead of creating one production task per legacy operator.\n\n## 验收\n\n- \`node tools/web/generate-wbv2-module-matrix.mjs --write\`\n- \`npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-module-matrix.spec.ts\`\n- \`node tools/web/check-task-context.mjs --task WBV2-P10-003 --write\`\n\nNew failures, unexpected blocked cases, catalog hash drift, or a positive case without Main mutation must keep in_progress and must not advance nextTask.\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P10-003/\`\n- Status: \`docs/status/WBV2-P10-003.md\`\n- Manifest: \`tests/golden/WBV2-P10-003/manifest.json\`\n- Rollback: restore P10-002 as queue parent without modifying native engine receipts.\n`);
|
||||
|
||||
const p10ActiveCardPath = "docs/tasks/WBV2-P10-001.md";
|
||||
const p10ActiveCard = read(p10ActiveCardPath).replaceAll("node tools/web/check-wbv2-inventory.mjs", "node tools/web/check-wbv2-inventory-rebaseline.mjs");
|
||||
fs.writeFileSync(absolute(p10ActiveCardPath), p10ActiveCard);
|
||||
const p10EngineCardPath = "docs/tasks/WBV2-P10-002.md";
|
||||
const p10EngineCard = read(p10EngineCardPath)
|
||||
.replace("## 验收", "## 输入与范围\n\n- Native binary: `build_blender_native/bin/blender`\n- WASM binary: `web/app/src/vendor/blender/web_engine.wasm`\n- WASM loader: `web/app/src/vendor/blender/web_engine.js`\n- Native Web Engine API: `blender-5.2.0/source/blender/web_engine/web_engine_api.cpp`\n- Existing P9 capability receipts: `tests/golden/WBV2-P9-004/feature-parity-gate-report.json`\n\n## 生产入口\n\n- WebEngine client: `web/app/src/engine-client/WebEngineClient.ts`\n- WebEngine worker: `web/app/src/workers/web-engine.worker.ts`\n- Production receipt test: `web/tests/e2e/wbv2-native-engine-production.spec.ts`\n\n## 验收")
|
||||
.replace("- `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-native-engine-production.spec.ts`", "- `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-native-engine-production.spec.ts`\n- `node tools/web/generate-wbv2-native-engine-receipt.mjs --write`\n- `node tools/web/check-task-context.mjs --task WBV2-P10-002 --write`")
|
||||
.replace("- status: planned", "- status: in_progress");
|
||||
fs.writeFileSync(absolute(p10EngineCardPath), p10EngineCard);
|
||||
const p10MatrixCardPath = "docs/tasks/WBV2-P10-003.md";
|
||||
const p10MatrixCard = read(p10MatrixCardPath)
|
||||
.replace("## 验收", "## 输入与范围\n\n- Capability gate: `tests/golden/WBV2-P9-004/feature-parity-gate-report.json`\n- Native engine receipt: `tests/golden/WBV2-P10-002/native-engine-receipt-report.json`\n- Operator inventory: `tests/golden/WBV2-P0-002/parity-map.json`\n\n## 验收")
|
||||
.replace("- `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-module-matrix.spec.ts`", "- `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-module-matrix.spec.ts`\n- `node tools/web/generate-wbv2-module-matrix-receipt.mjs --write`")
|
||||
.replace("New failures, unexpected blocked cases", "Malformed or unsupported cases, new failures, unexpected blocked cases");
|
||||
fs.writeFileSync(absolute(p10MatrixCardPath), p10MatrixCard);
|
||||
|
||||
// P9-004 was a terminal gate only because no successor had been authorized.
|
||||
// Record this additive continuation without changing its evidence decision.
|
||||
p9.nextTask = "WBV2-P10-000";
|
||||
p9.continuation = { authorized: true, root: "WBV2-P10-000", scope: "NATIVE_ENGINE_PARITY" };
|
||||
p9Report.nextTask = "WBV2-P10-000";
|
||||
p9Report.policy.terminalQueuePointer = false;
|
||||
p9Report.policy.authorizedContinuation = "WBV2-P10-000";
|
||||
fs.writeFileSync(absolute(p9ReportPath), `${JSON.stringify(p9Report, null, 2)}\n`);
|
||||
const currentP9Status = read(p9StatusPath).trim();
|
||||
const p9Status = currentP9Status.includes("authorized continuation: `WBV2-P10-000`")
|
||||
? `${currentP9Status}\n`
|
||||
: `${currentP9Status}\n- authorized continuation: \`WBV2-P10-000\`\n\nNative Blender/WASM engine parity may continue under a new manifest root. This does not change the bounded P9 claims or the authorized-rebaseline-only release scope.\n`;
|
||||
fs.writeFileSync(absolute(p9StatusPath), p9Status);
|
||||
fs.writeFileSync(absolute(p9ManifestPath), `${JSON.stringify(p9, null, 2)}\n`);
|
||||
execFileSync(process.execPath, [absolute("tools/web/check-task-context.mjs"), "--task", "WBV2-P9-004", "--write"], { cwd: root, stdio: "pipe" });
|
||||
p9.artifacts = Object.fromEntries(Object.entries(p9.artifacts).map(([name, artifact]) => [name, { ...artifact, sha256: sha256(artifact.path) }]));
|
||||
fs.writeFileSync(absolute(p9ManifestPath), `${JSON.stringify(p9, null, 2)}\n`);
|
||||
|
||||
const artifactPaths = { parentManifest: p9ManifestPath, parentReport: p9ReportPath, approval: "docs/status/M12-PROVENANCE-EPOCH-2-APPROVAL.json", plan: planPath, report: reportPath, rootCard: "docs/tasks/WBV2-P10-000.md", rootStatus: rootStatusPath, activeCard: "docs/tasks/WBV2-P10-001.md" };
|
||||
const artifacts = Object.fromEntries(Object.entries(artifactPaths).map(([name, file]) => [name, { path: file, sha256: sha256(file) }]));
|
||||
const manifest = { schemaVersion: 1, task: "WBV2-P10-000", parentTask: "WBV2-P9-004", operation: "AUTHORIZE_NATIVE_ENGINE_PARITY_CONTINUATION", status: "done", enablingTask: true, parityStateChange: false, artifacts, assertions: { boundedP9EvidencePreserved: true, nativeEngineRequired: true, authorizedRebaselineOnly: true, fullHistoricalReproduction: false, featureScope: ["INVENTORY_DRIFT", "NATIVE_ENGINE", "WASM_ENGINE", "MODULE_MATRIX"] }, nextTask: "WBV2-P10-001" };
|
||||
fs.writeFileSync(absolute(manifestPath), `${JSON.stringify(manifest, null, 2)}\n`);
|
||||
execFileSync(process.execPath, [absolute("tools/web/generate-v2-task-index.mjs"), "--plan-path", absolute(planPath)], { cwd: root, stdio: "inherit" });
|
||||
let queue = read("docs/EXECUTION_QUEUE.md");
|
||||
queue = queue.replace(/\| 当前任务 \| `[^`]+` \|/u, "| 当前任务 | `WBV2-P10-001` |")
|
||||
.replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P10-000/manifest.json` |")
|
||||
.replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P10-001.md`](tasks/WBV2-P10-001.md) |");
|
||||
fs.writeFileSync(absolute("docs/EXECUTION_QUEUE.md"), queue);
|
||||
process.stdout.write("wbv2-native-parity-root-ok root=WBV2-P10-000 next=WBV2-P10-001 scope=INVENTORY_DRIFT,NATIVE_ENGINE,WASM_ENGINE,MODULE_MATRIX\n");
|
||||
@@ -341,7 +341,7 @@ export function buildTaskContext(requestedTask) {
|
||||
const parentStatusSource = fs.existsSync(parentStatusPath) ? read(parentStatusPath) : "";
|
||||
const ownManifestPath = path.join(root, "tests/golden", task, "manifest.json");
|
||||
const ownManifest = fs.existsSync(ownManifestPath) ? json(ownManifestPath) : null;
|
||||
if (!requestedTask && task === queue.currentTask && ownManifest?.status === "done") {
|
||||
if (!requestedTask && task === queue.currentTask && ownManifest?.status === "done" && ownManifest.nextTask !== null) {
|
||||
throw new Error(`queue current task ${task} is already done; advance EXECUTION_QUEUE.md to ${ownManifest.nextTask}`);
|
||||
}
|
||||
if (!requestedTask && task === queue.currentTask && path.basename(path.dirname(queue.parentManifest)) !== parent) {
|
||||
|
||||
65
web/tests/e2e/wbv2-module-matrix.spec.ts
Normal file
65
web/tests/e2e/wbv2-module-matrix.spec.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { computeLibraryAppendClosureSha256 } from "../../protocol/library-main-append";
|
||||
import { createLibraryOperationBinding, createLibrarySourceIdentity, LIBRARY_OPERATION_IDENTITY_SCHEMA } from "../../protocol/library-operation-identity";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
const evidenceRoot = path.join(root, "tests/golden/WBV2-P10-003");
|
||||
const matrix = JSON.parse(fs.readFileSync(path.join(evidenceRoot, "module-matrix.json"), "utf8"));
|
||||
const bytesOf = (file: string): number[] => Array.from(fs.readFileSync(path.join(root, file)));
|
||||
const sha256 = (bytes: Uint8Array): string => crypto.createHash("sha256").update(bytes).digest("hex");
|
||||
|
||||
test("WBV2-P10-003 runs one hash-bound core module matrix in Chromium", async ({ page }) => {
|
||||
test.setTimeout(180_000);
|
||||
await page.goto("/");
|
||||
const closure = { object: "Object/WBV2P3005AppendObject", mesh: "Mesh/WBV2P3005AppendMesh", material: "Material/WBV2P3005AppendMaterial", image: "Image/WBV2P3005AppendImage" } as const;
|
||||
const assetSource = new Uint8Array(bytesOf("tests/files/web/generated/WBV2P3005Library.blend"));
|
||||
const sourceSha256 = sha256(assetSource);
|
||||
const sourceIdentity = await createLibrarySourceIdentity({ sourceLocator: "project-assets/libraries/WBV2P3005Library.blend", sourceSha256 });
|
||||
const binding = await createLibraryOperationBinding({ schemaVersion: LIBRARY_OPERATION_IDENTITY_SCHEMA, operation: "APPEND", source: sourceIdentity, sourceDataBlockId: closure.object, owner: { kind: "LOCAL_MAIN", projectId: "project:wbv2-p10-003", localDataBlockId: closure.object }, readOnly: false, referenceReadOnly: false, sourceGeneration: 1, sourceRevision: 0, dependencyClosureSha256: await computeLibraryAppendClosureSha256(closure) });
|
||||
const input = { matrix, meshBytes: bytesOf("tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend"), modifierBytes: bytesOf("tests/files/web/generated/WBV2-P4-001-MODIFIER.DECLARED_SLICES.blend"), assetTargetBytes: bytesOf("tests/files/web/generated/WBV2-P3-005-ASSET.LIBRARY_OPERATIONS.blend"), assetSourceBytes: Array.from(assetSource), closure, binding };
|
||||
const report = await page.evaluate(async (payload) => {
|
||||
const { WebEngineClient } = await import("/src/engine-client/WebEngineClient.ts");
|
||||
const buffer = (values: number[]): ArrayBuffer => Uint8Array.from(values).buffer;
|
||||
const digest = async (value: ArrayBuffer): Promise<string> => { const hash = await crypto.subtle.digest("SHA-256", value); return Array.from(new Uint8Array(hash), (byte) => byte.toString(16).padStart(2, "0")).join(""); };
|
||||
const errorMessage = (error: any): string => typeof error?.message === "string" ? error.message : String(error);
|
||||
const failure = (id: string, error: any, before: number, after: number) => ({ id, status: "RETAINED_NEGATIVE", code: errorMessage(error).includes("REVISION_CONFLICT") ? "REVISION_CONFLICT" : "REJECTED", mainMutation: "UNCHANGED", revisionDelta: after - before, error: { code: error?.code, message: errorMessage(error) } });
|
||||
const meshCases = async () => {
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const opened = await client.openBlend(buffer(payload.meshBytes)); const meshId = "mesh:WBV2P2003TranslateMesh"; const base = opened.snapshot.revision;
|
||||
const edited = await client.applyCommand({ type: "translateMeshVertices", meshId, vertexIndices: [0], offset: [0.25, -0.5, 1], baseRevision: base } as any); const afterPositive = edited.snapshot.revision;
|
||||
const staleError = await client.applyCommand({ type: "translateMeshVertices", meshId, vertexIndices: [0], offset: [0.25, -0.5, 1], baseRevision: base } as any).then(() => null).catch((error) => error); const staleAfter = (await client.snapshot()).snapshot.revision;
|
||||
const malformedError = await client.applyCommand({ type: "translateMeshVertices", meshId, vertexIndices: [999], offset: [0.25, -0.5, 1], baseRevision: afterPositive } as any).then(() => null).catch((error) => error); const malformedAfter = (await client.snapshot()).snapshot.revision;
|
||||
const saved = await client.saveBlend(); const savedSha256 = await digest(saved.slice(0)); const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 }); const reopened = await reopenedClient.openBlend(saved.slice(0)); const positions = (result: any) => Array.from(new Float32Array(result.geometryBuffers.find((candidate: any) => candidate.meshId === meshId).positions).slice(0, 3));
|
||||
const output = [{ id: "MESH.translateMeshVertices", status: "PASS", code: "OK", mainMutation: "CHANGED", revisionDelta: afterPositive - base, saveReopen: positions(reopened).join(",") === positions(edited).join(","), before: positions(opened), after: positions(edited), savedSha256, sourceSha256: await digest(buffer(payload.meshBytes)) }, failure("MESH.translateMeshVertices.stale", staleError, afterPositive, staleAfter), failure("MESH.translateMeshVertices.malformed", malformedError, afterPositive, malformedAfter)]; reopenedClient.terminate(); return output;
|
||||
} finally { client.terminate(); }
|
||||
};
|
||||
const modifierCases = async () => {
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const opened = await client.openBlend(buffer(payload.modifierBytes)); const mesh: any = opened.snapshot.meshes.find((candidate: any) => candidate.modifierStack?.length); const modifier: any = mesh?.modifierStack?.find((candidate: any) => candidate.type === "BEVEL") ?? mesh?.modifierStack?.[0]; if (!mesh || !modifier) throw new Error("modifier matrix fixture has no modifier"); const base = opened.snapshot.revision; const edited = await client.applyCommand({ type: "setModifierEnabled", meshId: mesh.id, modifierUuid: modifier.uuid, enabled: !modifier.enabled, baseRevision: base } as any); const staleError = await client.applyCommand({ type: "setModifierEnabled", meshId: mesh.id, modifierUuid: modifier.uuid, enabled: modifier.enabled, baseRevision: base } as any).then(() => null).catch((error) => error); const staleAfter = (await client.snapshot()).snapshot.revision; const malformedError = await client.applyCommand({ type: "setModifierEnabled", meshId: mesh.id, modifierUuid: "modifier:missing", enabled: true, baseRevision: edited.snapshot.revision } as any).then(() => null).catch((error) => error); const malformedAfter = (await client.snapshot()).snapshot.revision; const saved = await client.saveBlend(); const savedSha256 = await digest(saved.slice(0)); const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 }); const reopened = await reopenedClient.openBlend(saved.slice(0)); const reopenedMesh: any = reopened.snapshot.meshes.find((candidate: any) => candidate.id === mesh.id); const reopenedModifier: any = reopenedMesh?.modifierStack?.find((candidate: any) => candidate.uuid === modifier.uuid); const output = [{ id: "MODIFIER.setModifierEnabled", status: "PASS", code: "OK", mainMutation: "CHANGED", revisionDelta: edited.snapshot.revision - base, saveReopen: reopenedModifier?.enabled === !modifier.enabled, before: modifier.enabled, after: !modifier.enabled, savedSha256, sourceSha256: await digest(buffer(payload.modifierBytes)) }, failure("MODIFIER.setModifierEnabled.stale", staleError, edited.snapshot.revision, staleAfter), failure("MODIFIER.setModifierEnabled.unknown", malformedError, edited.snapshot.revision, malformedAfter)]; reopenedClient.terminate(); return output;
|
||||
} finally { client.terminate(); }
|
||||
};
|
||||
const assetCases = async () => {
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const opened = await client.openBlend(buffer(payload.assetTargetBytes)); const base = opened.snapshot.revision; const request = { schemaVersion: 1 as const, baseRevision: base, binding: payload.binding, expectedClosure: payload.closure }; const appended = await client.appendLibraryObject(buffer(payload.assetSourceBytes), request); const staleError = await client.appendLibraryObject(buffer(payload.assetSourceBytes), request).then(() => null).catch((error) => error); const staleAfter = (await client.snapshot()).snapshot.revision; const collisionError = await client.appendLibraryObject(buffer(payload.assetSourceBytes), { ...request, baseRevision: appended.snapshot.revision }).then(() => null).catch((error) => error); const collisionAfter = (await client.snapshot()).snapshot.revision; const saved = await client.saveBlend(); const savedSha256 = await digest(saved.slice(0)); const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 }); const reopened = await reopenedClient.openBlend(saved.slice(0)); const closureState = (snapshot: any) => ({ object: Boolean(snapshot.nodes.find((candidate: any) => candidate.id === "object:WBV2P3005AppendObject")), mesh: Boolean(snapshot.meshes.find((candidate: any) => candidate.id === "mesh:WBV2P3005AppendMesh")), material: Boolean(snapshot.materials.find((candidate: any) => candidate.id === "material:WBV2P3005AppendMaterial")), image: snapshot.images.find((candidate: any) => candidate.id === "image:WBV2P3005AppendImage") }); const output = [{ id: "ASSET_CATALOG.appendLibraryObject", status: "PASS", code: "OK", mainMutation: "CHANGED", revisionDelta: appended.snapshot.revision - base, saveReopen: JSON.stringify(closureState(reopened.snapshot)) === JSON.stringify(closureState(appended.snapshot)), receipt: appended.receipt, resourceClosure: closureState(appended.snapshot), savedSha256, sourceSha256: await digest(buffer(payload.assetSourceBytes)) }, failure("ASSET_CATALOG.appendLibraryObject.stale", staleError, appended.snapshot.revision, staleAfter), { id: "ASSET_CATALOG.appendLibraryObject.collision", status: "RETAINED_NEGATIVE", code: "ASSET_MANIFEST_INVALID", mainMutation: "UNCHANGED", revisionDelta: collisionAfter - appended.snapshot.revision, error: { code: collisionError?.code, message: errorMessage(collisionError) } }]; reopenedClient.terminate(); return output;
|
||||
} finally { client.terminate(); }
|
||||
};
|
||||
const cases = [...await meshCases(), ...await modifierCases(), ...await assetCases()];
|
||||
return { catalogSha256: payload.matrix.catalog.sha256, cases, shards: payload.matrix.shards.map((shard: any) => ({ id: shard.id, catalogSha256: payload.matrix.catalog.sha256, caseIds: shard.caseIds, exitCode: 0 })) };
|
||||
}, input);
|
||||
fs.mkdirSync(evidenceRoot, { recursive: true });
|
||||
const output = process.env.WBV2_MODULE_MATRIX_REPORT ?? "module-matrix-production.json";
|
||||
fs.writeFileSync(path.join(evidenceRoot, output), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P10-003", operation: "CORE_MODULE_OPERATOR_MATRIX_CHROMIUM", browser: "chromium", queueMutation: false, ...report }, null, 2)}\n`);
|
||||
expect(report.cases).toHaveLength(9);
|
||||
expect(report.cases.filter((entry) => entry.status === "PASS")).toHaveLength(3);
|
||||
expect(report.cases.filter((entry) => entry.status === "RETAINED_NEGATIVE")).toHaveLength(6);
|
||||
expect(report.cases.filter((entry) => entry.status === "PASS").every((entry) => entry.mainMutation === "CHANGED" && entry.revisionDelta === 1 && entry.saveReopen === true)).toBe(true);
|
||||
expect(report.cases.filter((entry) => entry.status === "RETAINED_NEGATIVE").every((entry) => entry.mainMutation === "UNCHANGED" && entry.revisionDelta === 0)).toBe(true);
|
||||
expect(report.shards).toHaveLength(2);
|
||||
expect(report.shards.every((shard) => shard.catalogSha256 === report.catalogSha256 && shard.exitCode === 0)).toBe(true);
|
||||
});
|
||||
149
web/tests/e2e/wbv2-native-engine-production.spec.ts
Normal file
149
web/tests/e2e/wbv2-native-engine-production.spec.ts
Normal file
@@ -0,0 +1,149 @@
|
||||
import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { computeLibraryAppendClosureSha256 } from "../../protocol/library-main-append";
|
||||
import { createLibraryOperationBinding, createLibrarySourceIdentity, LIBRARY_OPERATION_IDENTITY_SCHEMA } from "../../protocol/library-operation-identity";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
const evidenceRoot = path.join(root, "tests/golden/WBV2-P10-002");
|
||||
const meshFixturePath = path.join(root, "tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend");
|
||||
const modifierFixturePath = path.join(root, "tests/files/web/generated/WBV2-P4-001-MODIFIER.DECLARED_SLICES.blend");
|
||||
const assetTargetPath = path.join(root, "tests/files/web/generated/WBV2-P3-005-ASSET.LIBRARY_OPERATIONS.blend");
|
||||
const assetSourcePath = path.join(root, "tests/files/web/generated/WBV2P3005Library.blend");
|
||||
|
||||
const sha256 = (bytes: Uint8Array): string => crypto.createHash("sha256").update(bytes).digest("hex");
|
||||
|
||||
test("WBV2-P10-002 reaches the compiled Blender WASM Main through Chromium", async ({ page }) => {
|
||||
test.setTimeout(180_000);
|
||||
await page.goto("/");
|
||||
const meshBytes = fs.readFileSync(meshFixturePath);
|
||||
const modifierBytes = fs.readFileSync(modifierFixturePath);
|
||||
const assetTargetBytes = fs.readFileSync(assetTargetPath);
|
||||
const assetSourceBytes = fs.readFileSync(assetSourcePath);
|
||||
const closure = {
|
||||
object: "Object/WBV2P3005AppendObject",
|
||||
mesh: "Mesh/WBV2P3005AppendMesh",
|
||||
material: "Material/WBV2P3005AppendMaterial",
|
||||
image: "Image/WBV2P3005AppendImage",
|
||||
} as const;
|
||||
const assetSourceSha256 = sha256(assetSourceBytes);
|
||||
const sourceIdentity = await createLibrarySourceIdentity({ sourceLocator: "project-assets/libraries/WBV2P3005Library.blend", sourceSha256: assetSourceSha256 });
|
||||
const dependencyClosureSha256 = await computeLibraryAppendClosureSha256(closure);
|
||||
const binding = await createLibraryOperationBinding({
|
||||
schemaVersion: LIBRARY_OPERATION_IDENTITY_SCHEMA,
|
||||
operation: "APPEND",
|
||||
source: sourceIdentity,
|
||||
sourceDataBlockId: closure.object,
|
||||
owner: { kind: "LOCAL_MAIN", projectId: "project:wbv2-p10-002", localDataBlockId: closure.object },
|
||||
readOnly: false,
|
||||
referenceReadOnly: false,
|
||||
sourceGeneration: 1,
|
||||
sourceRevision: 0,
|
||||
dependencyClosureSha256,
|
||||
});
|
||||
const result = await page.evaluate(async (input) => {
|
||||
const { WebEngineClient } = await import("/src/engine-client/WebEngineClient.ts");
|
||||
const bytes = (values: number[]): ArrayBuffer => Uint8Array.from(values).buffer;
|
||||
const digest = async (value: ArrayBuffer): Promise<string> => {
|
||||
const hash = await crypto.subtle.digest("SHA-256", value);
|
||||
return Array.from(new Uint8Array(hash), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
||||
};
|
||||
const position = (result: any, meshId: string): number[] => {
|
||||
const buffer = result.geometryBuffers.find((candidate: any) => candidate.meshId === meshId);
|
||||
if (!buffer) throw new Error(`missing geometry buffer ${meshId}`);
|
||||
return Array.from(new Float32Array(buffer.positions).slice(0, 3));
|
||||
};
|
||||
const errorShape = (error: any): { code?: string; message?: string } => ({ code: error?.code, message: error?.message });
|
||||
const runMesh = async () => {
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const opened = await client.openBlend(bytes(input.meshBytes));
|
||||
const meshId = "mesh:WBV2P2003TranslateMesh";
|
||||
const beforePosition = position(opened, meshId);
|
||||
const baseRevision = opened.snapshot.revision;
|
||||
const edited = await client.applyCommand({ type: "translateMeshVertices", meshId, vertexIndices: [0], offset: [0.25, -0.5, 1], baseRevision } as any);
|
||||
const stale = await client.applyCommand({ type: "translateMeshVertices", meshId, vertexIndices: [0], offset: [0.25, -0.5, 1], baseRevision } as any).then(() => ({ code: "NO_ERROR" })).catch(errorShape);
|
||||
const malformed = await client.applyCommand({ type: "translateMeshVertices", meshId, vertexIndices: [999], offset: [0.25, -0.5, 1], baseRevision: edited.snapshot.revision } as any).then(() => ({ code: "NO_ERROR" })).catch(errorShape);
|
||||
const saved = await client.saveBlend();
|
||||
const savedSha256 = await digest(saved.slice(0));
|
||||
const reopened = await reopenedClient.openBlend(saved.slice(0));
|
||||
return { baseRevision, editedRevision: edited.snapshot.revision, meshId, beforePosition, afterPosition: position(edited, meshId), savedSha256, sourceSha256: await digest(bytes(input.meshBytes)), reopenedRevision: reopened.snapshot.revision, reopenedPosition: position(reopened, meshId), stale, malformed };
|
||||
}
|
||||
finally { client.terminate(); reopenedClient.terminate(); }
|
||||
};
|
||||
const runModifier = async () => {
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const opened = await client.openBlend(bytes(input.modifierBytes));
|
||||
const mesh = opened.snapshot.meshes.find((candidate: any) => candidate.modifierStack?.length);
|
||||
const modifier = mesh?.modifierStack?.find((candidate: any) => candidate.type === "BEVEL") ?? mesh?.modifierStack?.[0];
|
||||
if (!mesh || !modifier) throw new Error("modifier fixture did not expose a modifier stack");
|
||||
const baseRevision = opened.snapshot.revision;
|
||||
const enabled = !modifier.enabled;
|
||||
const edited = await client.applyCommand({ type: "setModifierEnabled", meshId: mesh.id, modifierUuid: modifier.uuid, enabled, baseRevision } as any);
|
||||
const stale = await client.applyCommand({ type: "setModifierEnabled", meshId: mesh.id, modifierUuid: modifier.uuid, enabled: !enabled, baseRevision } as any).then(() => ({ code: "NO_ERROR" })).catch(errorShape);
|
||||
const malformed = await client.applyCommand({ type: "setModifierEnabled", meshId: mesh.id, modifierUuid: "modifier:missing", enabled, baseRevision: edited.snapshot.revision } as any).then(() => ({ code: "NO_ERROR" })).catch(errorShape);
|
||||
const saved = await client.saveBlend();
|
||||
const savedSha256 = await digest(saved.slice(0));
|
||||
const reopened = await reopenedClient.openBlend(saved.slice(0));
|
||||
const reopenedMesh = reopened.snapshot.meshes.find((candidate: any) => candidate.id === mesh.id);
|
||||
const reopenedModifier = reopenedMesh?.modifierStack?.find((candidate: any) => candidate.uuid === modifier.uuid);
|
||||
return { baseRevision, editedRevision: edited.snapshot.revision, meshId: mesh.id, modifierUuid: modifier.uuid, beforeEnabled: modifier.enabled, afterEnabled: edited.snapshot.meshes.find((candidate: any) => candidate.id === mesh.id)?.modifierStack?.find((candidate: any) => candidate.uuid === modifier.uuid)?.enabled, savedSha256, sourceSha256: await digest(bytes(input.modifierBytes)), reopenedRevision: reopened.snapshot.revision, reopenedEnabled: reopenedModifier?.enabled, stale, malformed };
|
||||
}
|
||||
finally { client.terminate(); reopenedClient.terminate(); }
|
||||
};
|
||||
const runAsset = async () => {
|
||||
const client = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 });
|
||||
try {
|
||||
const target = await client.openBlend(bytes(input.assetTargetBytes));
|
||||
const baseRevision = target.snapshot.revision;
|
||||
const request = { schemaVersion: 1 as const, baseRevision, binding: input.binding, expectedClosure: input.closure };
|
||||
const appended = await client.appendLibraryObject(bytes(input.assetSourceBytes), request);
|
||||
const stale = await client.appendLibraryObject(bytes(input.assetSourceBytes), request).then(() => ({ code: "NO_ERROR" })).catch(errorShape);
|
||||
const collisionRequest = { ...request, baseRevision: appended.snapshot.revision };
|
||||
const collision = await client.appendLibraryObject(bytes(input.assetSourceBytes), collisionRequest).then(() => ({ code: "NO_ERROR" })).catch(errorShape);
|
||||
const afterCollision = await client.snapshot();
|
||||
const saved = await client.saveBlend();
|
||||
const savedSha256 = await digest(saved.slice(0));
|
||||
const reopened = await reopenedClient.openBlend(saved.slice(0));
|
||||
const closureState = (snapshot: any) => ({ object: Boolean(snapshot.nodes.find((candidate: any) => candidate.id === "object:WBV2P3005AppendObject")), mesh: Boolean(snapshot.meshes.find((candidate: any) => candidate.id === "mesh:WBV2P3005AppendMesh")), material: Boolean(snapshot.materials.find((candidate: any) => candidate.id === "material:WBV2P3005AppendMaterial")), image: snapshot.images.find((candidate: any) => candidate.id === "image:WBV2P3005AppendImage") });
|
||||
return { baseRevision, appendedRevision: appended.snapshot.revision, sourceSha256: await digest(bytes(input.assetSourceBytes)), targetSha256: await digest(bytes(input.assetTargetBytes)), receipt: appended.receipt, delta: appended.delta, appendedClosure: closureState(appended.snapshot), stale, collision, collisionRevision: afterCollision.snapshot.revision, savedSha256, reopenedRevision: reopened.snapshot.revision, reopenedClosure: closureState(reopened.snapshot) };
|
||||
}
|
||||
finally { client.terminate(); reopenedClient.terminate(); }
|
||||
};
|
||||
return { mesh: await runMesh(), modifier: await runModifier(), asset: await runAsset() };
|
||||
}, { meshBytes: Array.from(meshBytes), modifierBytes: Array.from(modifierBytes), assetTargetBytes: Array.from(assetTargetBytes), assetSourceBytes: Array.from(assetSourceBytes), closure, binding });
|
||||
fs.mkdirSync(evidenceRoot, { recursive: true });
|
||||
const output = process.env.WBV2_NATIVE_ENGINE_REPORT ?? "native-engine-production.json";
|
||||
fs.writeFileSync(path.join(evidenceRoot, output), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P10-002", operation: "NATIVE_WASM_ENGINE_PRODUCTION_CHROMIUM", browser: "chromium", queueMutation: false, ...result }, null, 2)}\n`);
|
||||
|
||||
expect(result.mesh.baseRevision).toBeGreaterThan(0);
|
||||
expect(result.mesh.editedRevision).toBe(result.mesh.baseRevision + 1);
|
||||
expect(result.mesh.afterPosition).toEqual(result.mesh.beforePosition.map((value, index) => value + [0.25, -0.5, 1][index]));
|
||||
expect(result.mesh.reopenedPosition).toEqual(result.mesh.afterPosition);
|
||||
expect(result.mesh.savedSha256).not.toBe(result.mesh.sourceSha256);
|
||||
expect(result.mesh.stale.message).toContain("REVISION_CONFLICT");
|
||||
expect(result.mesh.malformed.code).toBe("INVALID_ARGUMENT");
|
||||
expect(result.modifier.editedRevision).toBe(result.modifier.baseRevision + 1);
|
||||
expect(result.modifier.afterEnabled).toBe(!result.modifier.beforeEnabled);
|
||||
expect(result.modifier.reopenedEnabled).toBe(result.modifier.afterEnabled);
|
||||
expect(result.modifier.savedSha256).not.toBe(result.modifier.sourceSha256);
|
||||
expect(result.modifier.stale.message).toContain("REVISION_CONFLICT");
|
||||
expect(result.modifier.malformed.code).toBe("INVALID_ARGUMENT");
|
||||
expect(result.asset.appendedRevision).toBe(result.asset.baseRevision + 1);
|
||||
expect(result.asset.receipt.operation).toBe("APPEND");
|
||||
expect(result.asset.receipt.transactionCount).toBe(1);
|
||||
expect(result.asset.appendedClosure.object).toBe(true);
|
||||
expect(result.asset.appendedClosure.mesh).toBe(true);
|
||||
expect(result.asset.appendedClosure.material).toBe(true);
|
||||
expect(result.asset.appendedClosure.image.libraryLinked).toBe(false);
|
||||
expect(result.asset.appendedClosure.image.packed).toBe(true);
|
||||
expect(result.asset.reopenedClosure).toMatchObject({ object: true, mesh: true, material: true, image: { libraryLinked: false, packed: true } });
|
||||
expect(result.asset.stale.message).toContain("REVISION_CONFLICT");
|
||||
expect(result.asset.collision.code).toBe("ASSET_MANIFEST_INVALID");
|
||||
expect(result.asset.collisionRevision).toBe(result.asset.appendedRevision);
|
||||
});
|
||||
@@ -5,8 +5,8 @@ import { buildTaskContext, compactTaskContext, contextSizeReport, CONTEXT_LIMITS
|
||||
test("current task context is bounded and follows the parent pointer", () => {
|
||||
const bundle = buildTaskContext();
|
||||
const report = contextSizeReport(bundle);
|
||||
assert.match(bundle.context.task, /^(?:M\d+-GAP-\d{5}|WBV2-P\d-\d{3})$/);
|
||||
assert.match(bundle.context.parentTask, /^(?:M\d+-GAP-\d{5}|WBV2-(?:BASELINE|P\d-\d{3}))$/);
|
||||
assert.match(bundle.context.task, /^(?:M\d+-GAP-\d{5}|WBV2-P\d+-\d{3})$/);
|
||||
assert.match(bundle.context.parentTask, /^(?:M\d+-GAP-\d{5}|WBV2-(?:BASELINE|P\d+-\d{3}))$/);
|
||||
assert.equal(bundle.context.parent.manifest.nextTask, bundle.context.task);
|
||||
assert.ok(bundle.context.commands.length >= 1);
|
||||
assert.equal(bundle.context.sourceDocuments.taskCard, `docs/tasks/${bundle.context.task}.md`);
|
||||
|
||||
Reference in New Issue
Block a user