diff --git a/docs/EXECUTION_QUEUE.md b/docs/EXECUTION_QUEUE.md index fa023cca9..865fdfc8b 100644 --- a/docs/EXECUTION_QUEUE.md +++ b/docs/EXECUTION_QUEUE.md @@ -13,9 +13,9 @@ | 字段 | 值 | | --- | --- | | 里程碑 | WBV2 capability workflow | -| 当前任务 | `WBV2-P22-003` | -| parent manifest | `tests/golden/WBV2-P22-002/manifest.json` | -| 任务卡 | [`tasks/WBV2-P22-003.md`](tasks/WBV2-P22-003.md) | +| 当前任务 | `WBV2-P23-003` | +| parent manifest | `tests/golden/WBV2-P23-002/manifest.json` | +| 任务卡 | [`tasks/WBV2-P23-003.md`](tasks/WBV2-P23-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` | diff --git a/docs/status/WBV2-P23-000.md b/docs/status/WBV2-P23-000.md new file mode 100644 index 000000000..fb8a08e96 --- /dev/null +++ b/docs/status/WBV2-P23-000.md @@ -0,0 +1,7 @@ +# WBV2-P23-000 status + +- task: `WBV2-P23-000`; parent: `WBV2-P22-003`; status: `done` +- candidate: `OBJECT_OPERATIONS.TRANSFORM_APPLY`; source API is present +- effective inventory carried forward: `289` completed, `6610` pending +- duplicate validation: `forbidden`; representative slice only +- nextTask: `WBV2-P23-001` diff --git a/docs/status/WBV2-P23-001.md b/docs/status/WBV2-P23-001.md new file mode 100644 index 000000000..2862509d2 --- /dev/null +++ b/docs/status/WBV2-P23-001.md @@ -0,0 +1,7 @@ +# WBV2-P23-001 status + +- task: `WBV2-P23-001`; parent: `WBV2-P23-000`; status: `done` +- selected behavior: `applyObjectTransform`; exact candidate: `operator:object.transform_apply` +- base inventory: `6900` total, `6618` pending; effective carried overlay: `6610` pending +- behavior hash: `85fd68cd6f9c64b25e3014126d9a4a2eb27e174936c792f61a22a8e31887054c`; duplicate validation: `forbidden` +- nextTask: `WBV2-P23-002` diff --git a/docs/status/WBV2-P23-002.md b/docs/status/WBV2-P23-002.md new file mode 100644 index 000000000..f59b0363f --- /dev/null +++ b/docs/status/WBV2-P23-002.md @@ -0,0 +1,8 @@ +# WBV2-P23-002 status + +- task: `WBV2-P23-002`; parent: `WBV2-P23-001`; status: `done` +- exact inventory binding: `operator:object.transform_apply` via `applyObjectTransform` +- object transform persisted; revisions: `1 -> 4` sequential +- malformed transform rejected; save/reopen: `EXACT`; deterministic second run: `true` +- effective pending before overlay: `6610`; representative slice: `true` +- nextTask: `WBV2-P23-003` diff --git a/docs/status/WBV2-P23-003.md b/docs/status/WBV2-P23-003.md new file mode 100644 index 000000000..34df4b8ff --- /dev/null +++ b/docs/status/WBV2-P23-003.md @@ -0,0 +1,9 @@ +# WBV2-P23-003 status + +- task: `WBV2-P23-003`; parent: `WBV2-P23-002`; status: `done` +- new feature claim: `OBJECT_OPERATIONS.TRANSFORM_APPLY`; exact binding: `operator:object.transform_apply` +- base inventory: `6900` total, `281` completed, `6618` pending +- cumulative overlay: `290` effective completed, `6609` effective pending, claimed complete overlay: `9` +- repeated Blender/Chromium validation: `0`; unique behavior batches: Lighting, Paint, Duplicate, Create, Parent, Collection, Rename, Delete, Transform Apply +- provenance epoch: `2`; release: `AUTHORIZED_REBASELINE_ONLY`; fullHistoricalReproduction: `false` +- nextTask: `NONE` diff --git a/docs/tasks/WBV2-P23-000.md b/docs/tasks/WBV2-P23-000.md new file mode 100644 index 000000000..26d34db44 --- /dev/null +++ b/docs/tasks/WBV2-P23-000.md @@ -0,0 +1,23 @@ +# WBV2-P23-000: object transform continuation root + +- task: WBV2-P23-000 +- parent: WBV2-P22-003 +- status: done +- gap: workflow:authorize_object_transform_apply_continuation +- ownerFamily: PROGRAM +- targetImplementationClass: LOCAL_BOUNDED + +## 目标 + +Authorize one source-backed Object Transform Apply behavior after the P22 delete overlay. + +## 验收 + +- `node tools/web/generate-wbv2-transform-root.mjs` +- `node tools/web/check-execution-control-plane.mjs` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P23-000/` +- Manifest: `tests/golden/WBV2-P23-000/manifest.json` +- Rollback: restore P22-003 as queue parent. diff --git a/docs/tasks/WBV2-P23-001.md b/docs/tasks/WBV2-P23-001.md new file mode 100644 index 000000000..28ac22f5f --- /dev/null +++ b/docs/tasks/WBV2-P23-001.md @@ -0,0 +1,34 @@ +# WBV2-P23-001: select_object_transform_apply_batch + +- task: WBV2-P23-001 +- parent: WBV2-P23-000 +- status: in_progress +- gap: capability:OBJECT_OPERATIONS.TRANSFORM_APPLY +- ownerFamily: PARITY +- targetImplementationClass: LOCAL_BOUNDED + +## 目标 + +Select applyObjectTransform as one unique Object Operations behavior. + +## 输入与范围 + +- Focused source: `blender-5.2.0/source/blender/web_engine/web_engine_api.cpp` +- Existing client: `web/app/src/engine-client/WebEngineClient.ts` +- Inventory: `tests/golden/WBV2-P0-002/parity-map.json` +- Production entrypoint: `node tools/web/generate-wbv2-transform-selection.mjs --write` + +## 验收 + +- source command is hash-bound +- prior object evidence is not rerun +- one legacy operator binding is selected +- malformed, hash-drift, unsupported, or false-completion input keeps in_progress +- `node tools/web/check-task-context.mjs --task WBV2-P23-001 --write` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P23-001/` +- Status: `docs/status/WBV2-P23-001.md` +- Manifest: `tests/golden/WBV2-P23-001/manifest.json` +- Rollback: restore P23-000 as queue parent. diff --git a/docs/tasks/WBV2-P23-002.md b/docs/tasks/WBV2-P23-002.md new file mode 100644 index 000000000..bd185cc85 --- /dev/null +++ b/docs/tasks/WBV2-P23-002.md @@ -0,0 +1,35 @@ +# WBV2-P23-002: object transform apply engine receipt + +- task: WBV2-P23-002 +- parent: WBV2-P23-001 +- status: in_progress +- gap: capability:OBJECT_OPERATIONS.TRANSFORM_APPLY +- ownerFamily: OBJECT +- targetImplementationClass: LOCAL_EXACT + +## 目标 + +Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium. + +## 输入与范围 + +- Focused source: `tests/golden/WBV2-P23-001/object-transform-selection-report.json` +- Production test: `web/tests/e2e/wbv2-object-transform-production.spec.ts` +- Production entrypoint: `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-transform-production.spec.ts` + +## 验收 + +- transform is applied +- undo/redo revisions are sequential +- malformed transform fails closed without Main mutation +- save/reopen is exact and deterministic +- Chromium is the only browser +- malformed, hash-drift, unsupported, or false-completion input keeps in_progress +- `node tools/web/check-task-context.mjs --task WBV2-P23-002 --write` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P23-002/` +- Status: `docs/status/WBV2-P23-002.md` +- Manifest: `tests/golden/WBV2-P23-002/manifest.json` +- Rollback: restore P23-001 as queue parent. diff --git a/docs/tasks/WBV2-P23-003.md b/docs/tasks/WBV2-P23-003.md new file mode 100644 index 000000000..48c06320d --- /dev/null +++ b/docs/tasks/WBV2-P23-003.md @@ -0,0 +1,34 @@ +# WBV2-P23-003: close object transform apply gate + +- task: WBV2-P23-003 +- parent: WBV2-P23-002 +- status: in_progress +- gap: workflow:close_object_transform_apply_gate +- ownerFamily: RELEASE +- targetImplementationClass: LOCAL_BOUNDED + +## 目标 + +Close the applyObjectTransform gate and graduate only the exact operator binding. + +## 输入与范围 + +- Focused receipt: `tests/golden/WBV2-P23-002/object-transform-receipt-report.json` +- Previous overlay: `tests/golden/WBV2-P22-003/inventory-completion-overlay.json` +- Production entrypoint: `node tools/web/generate-wbv2-transform-gate.mjs --write` + +## 验收 + +- only object transform apply is claimed +- effective inventory remains explicit +- duplicate validation remains zero +- malformed, hash-drift, unsupported, or false-completion input keeps in_progress +- historical reproduction remains false +- `node tools/web/check-task-context.mjs --task WBV2-P23-003 --write` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P23-003/` +- Status: `docs/status/WBV2-P23-003.md` +- Manifest: `tests/golden/WBV2-P23-003/manifest.json` +- Rollback: restore P23-002 as queue parent. diff --git a/nextTask.md b/nextTask.md index 3fab32843..2d419ef8f 100644 --- a/nextTask.md +++ b/nextTask.md @@ -240,12 +240,12 @@ Recorded: 2026-08-22 America/New_York | Field | Value | | --- | --- | -| Current task when this file was written | `WBV2-P22-003` | +| Current task when this file was written | `WBV2-P23-003` | | Current task state | `done` | -| Parent manifest | `tests/golden/WBV2-P22-002/manifest.json` | -| Current task card | `docs/tasks/WBV2-P22-003.md` | +| Parent manifest | `tests/golden/WBV2-P23-002/manifest.json` | +| Current task card | `docs/tasks/WBV2-P23-003.md` | | Current task-context nextTask | `NONE` | -| Focused command | `node tools/web/generate-wbv2-delete-gate.mjs --write` | +| Focused command | `node tools/web/generate-wbv2-transform-gate.mjs --write` | The snapshot is informational and may become stale. On every resume, the queue, parent manifest, and fresh `print-task-context` output win. Never infer a task diff --git a/tests/golden/WBV2-P22-003/manifest.json b/tests/golden/WBV2-P22-003/manifest.json index 1d7d370df..f60db83af 100644 --- a/tests/golden/WBV2-P22-003/manifest.json +++ b/tests/golden/WBV2-P22-003/manifest.json @@ -30,7 +30,7 @@ }, "report": { "path": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", - "sha256": "997d0914ecd19ba2fdad4a87b60cf001c6446e42854ba2d4f072738601719cad" + "sha256": "dfe0846dafc0b50a1539e8048e364f1971bb7aac080f7ebbc724cc2de920e10b" }, "generator": { "path": "tools/web/generate-wbv2-delete-gate.mjs", @@ -46,7 +46,7 @@ }, "taskContext": { "path": "tests/golden/WBV2-P22-003/task-context.json", - "sha256": "1eb8e4fb45e47988e40fd95a834a3572331a0cf20cbfbf2dc101c53ea5943193" + "sha256": "c2d66b05d0da35c41b31d07b24bd82f0c317b5f1ce42ab8a4189d2ab318a5bd0" } }, "assertions": { @@ -68,5 +68,10 @@ "fullHistoricalReproduction": false, "deterministic": true }, - "nextTask": null + "nextTask": "WBV2-P23-000", + "continuation": { + "authorized": true, + "root": "WBV2-P23-000", + "scope": "OBJECT_OPERATIONS_TRANSFORM_APPLY" + } } diff --git a/tests/golden/WBV2-P22-003/object-delete-gate-report.json b/tests/golden/WBV2-P22-003/object-delete-gate-report.json index eda38ab53..0c7fc0577 100644 --- a/tests/golden/WBV2-P22-003/object-delete-gate-report.json +++ b/tests/golden/WBV2-P22-003/object-delete-gate-report.json @@ -179,7 +179,8 @@ "baseInventoryPreserved": true, "inventoryRemainderExplicit": true, "noFalseLocalParity": true, - "terminalQueuePointer": true + "terminalQueuePointer": false, + "authorizedContinuation": "WBV2-P23-000" }, - "nextTask": null + "nextTask": "WBV2-P23-000" } diff --git a/tests/golden/WBV2-P22-003/task-context.json b/tests/golden/WBV2-P22-003/task-context.json index 892044961..5522ecff5 100644 --- a/tests/golden/WBV2-P22-003/task-context.json +++ b/tests/golden/WBV2-P22-003/task-context.json @@ -68,7 +68,7 @@ "save/reopen remains exact", "malformed input fails closed" ], - "nextTask": null, + "nextTask": "WBV2-P23-000", "sourceDocuments": { "queue": "docs/EXECUTION_QUEUE.md", "taskCard": "docs/tasks/WBV2-P22-003.md", @@ -165,7 +165,7 @@ "totalTokens": 2374, "reservedEnvelopeTokens": 1024, "estimatedContextTokens": 3398, - "serializedContextTokens": 656, + "serializedContextTokens": 658, "withinBudget": true } } diff --git a/tests/golden/WBV2-P23-000/manifest.json b/tests/golden/WBV2-P23-000/manifest.json new file mode 100644 index 000000000..54f2e81c8 --- /dev/null +++ b/tests/golden/WBV2-P23-000/manifest.json @@ -0,0 +1,60 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-000", + "parentTask": "WBV2-P22-003", + "operation": "AUTHORIZE_OBJECT_TRANSFORM_APPLY_CONTINUATION", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "READ_ONLY_OBJECT_TRANSFORM_CONTINUATION_ROOT", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P22-003/manifest.json", + "sha256": "931b560e65f6c404c7cc06d89f9373b7e8e6993c7787d75a14056c037634b11f" + }, + "parentReport": { + "path": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", + "sha256": "dfe0846dafc0b50a1539e8048e364f1971bb7aac080f7ebbc724cc2de920e10b" + }, + "inventory": { + "path": "tests/golden/WBV2-P0-002/parity-map.json", + "sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8" + }, + "sourceApi": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8" + }, + "sourceClient": { + "path": "web/app/src/engine-client/WebEngineClient.ts", + "sha256": "f6d9a8e0a16403bc6fb765195b8f1a619a28de7a75c59a412f1654d46e8ebc0b" + }, + "plan": { + "path": "tests/golden/WBV2-P23-000/transform-task-plan.json", + "sha256": "7d3fd2eed6f82ccc1d045a497cf8c6f31987a6f578ba9947236d34e65f294e5d" + }, + "report": { + "path": "tests/golden/WBV2-P23-000/transform-root-report.json", + "sha256": "fd200da10886419ecc2667b2449a971ffa8034179e6a0422eac7aa2bff0000b8" + }, + "rootCard": { + "path": "docs/tasks/WBV2-P23-000.md", + "sha256": "f252c69b44f1257cdd903e1ebc09b3266a892e96c6612e7d5c8b8afdc3bc27c7" + }, + "rootStatus": { + "path": "docs/status/WBV2-P23-000.md", + "sha256": "f40f5f4b6057be326d60eb677d98d0b1e0ce0f310d3c78c2d4d1602978c37ac2" + } + }, + "assertions": { + "p22EvidencePreserved": true, + "sourceApiBound": true, + "inventoryTotal": 6900, + "effectiveCompleted": 289, + "effectivePending": 6610, + "duplicateValidationAvoided": true, + "representativeSliceOnly": true, + "authorizedRebaselineOnly": true, + "fullHistoricalReproduction": false + }, + "nextTask": "WBV2-P23-001" +} diff --git a/tests/golden/WBV2-P23-000/transform-root-report.json b/tests/golden/WBV2-P23-000/transform-root-report.json new file mode 100644 index 000000000..0df637563 --- /dev/null +++ b/tests/golden/WBV2-P23-000/transform-root-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-000", + "operation": "AUTHORIZE_OBJECT_TRANSFORM_APPLY_CONTINUATION", + "status": "PASS", + "parent": { + "task": "WBV2-P22-003", + "manifest": "tests/golden/WBV2-P22-003/manifest.json", + "manifestSha256": "931b560e65f6c404c7cc06d89f9373b7e8e6993c7787d75a14056c037634b11f", + "report": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", + "reportSha256": "dfe0846dafc0b50a1539e8048e364f1971bb7aac080f7ebbc724cc2de920e10b", + "previousDecision": "READY_WITH_OBJECT_DELETE_SLICE_AND_INVENTORY_OVERLAY", + "effectivePending": 6610 + }, + "continuation": { + "root": "WBV2-P23-000", + "firstTask": "WBV2-P23-001", + "plannedTasks": 4, + "candidate": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "sourceApi": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "browser": "chromium", + "noRepeatedExecution": true + }, + "policy": { + "p22EvidencePreserved": true, + "sourceHistoryReadOnly": true, + "representativeSliceOnly": true, + "duplicateValidationAvoided": true, + "authorizedRebaselineOnly": true, + "fullHistoricalReproduction": false + }, + "nextTask": "WBV2-P23-001" +} diff --git a/tests/golden/WBV2-P23-000/transform-task-plan.json b/tests/golden/WBV2-P23-000/transform-task-plan.json new file mode 100644 index 000000000..da624422f --- /dev/null +++ b/tests/golden/WBV2-P23-000/transform-task-plan.json @@ -0,0 +1,148 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_PARITY_V2_OBJECT_TRANSFORM_APPLY_EPOCH_1", + "status": "ACTIVE_OBJECT_TRANSFORM_QUEUE", + "authority": "queue_reactivated_after_p22_delete_gate", + "sourcePlan": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "browserEvidence": [ + "chromium" + ], + "forbiddenBrowsers": [ + "firefox", + "webkit" + ], + "mainAuthority": "blender_main", + "reusePolicy": "source_hash_and_behavior_hash_deduplication" + }, + "parentDelete": { + "manifest": "tests/golden/WBV2-P22-003/manifest.json", + "report": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", + "effectivePending": 6610, + "duplicateValidationAvoided": true + }, + "tasks": [ + { + "id": "WBV2-P23-000", + "phase": "P23", + "title": "authorize_object_transform_apply_continuation", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P22-003" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-000", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-000.md", + "behavior": "Authorize one Object Transform Apply behavior after the P22 delete overlay.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P23-001", + "phase": "P23", + "title": "select_object_transform_apply_batch", + "kind": "enabling", + "owner": "PARITY", + "dependsOn": [ + "WBV2-P23-000" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-001", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-001.md", + "behavior": "Select applyObjectTransform as one unique Object Operations behavior.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-002", + "phase": "P23", + "title": "object_transform_apply_engine_receipt", + "kind": "feature", + "owner": "OBJECT", + "dependsOn": [ + "WBV2-P23-001" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_EXACT", + "parallelGroup": "p23-002", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-002.md", + "behavior": "Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-003", + "phase": "P23", + "title": "close_object_transform_apply_gate", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P23-002" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-003", + "gate": "G5", + "card": "docs/tasks/WBV2-P23-003.md", + "behavior": "Close the applyObjectTransform gate and graduate only the exact operator binding.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P23-001/manifest.json b/tests/golden/WBV2-P23-001/manifest.json new file mode 100644 index 000000000..be7342cb7 --- /dev/null +++ b/tests/golden/WBV2-P23-001/manifest.json @@ -0,0 +1,67 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-001", + "parentTask": "WBV2-P23-000", + "operation": "SELECT_OBJECT_TRANSFORM_APPLY_BATCH", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "READ_ONLY_SOURCE_CANDIDATE_SELECTION", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P23-000/manifest.json", + "sha256": "c99a04a5c425525337fb5682501cb95ae7d6cf3167780cf48d497cd77308b3c9" + }, + "inventory": { + "path": "tests/golden/WBV2-P0-002/parity-map.json", + "sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8" + }, + "api": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8" + }, + "protocol": { + "path": "web/protocol/web-engine.ts", + "sha256": "3bbe172afaaa414d8ede43e6c04aa84443b6e38319d09710afa141c9b5e69fc0" + }, + "candidate": { + "path": "tests/golden/WBV2-P23-001/object-transform-candidate-set.json", + "sha256": "88b3a4084c2a031501ddf8f538b0c056fb9f0fa8cf85680b8d0e16e1d4e0aa4d" + }, + "report": { + "path": "tests/golden/WBV2-P23-001/object-transform-selection-report.json", + "sha256": "f6e398a0e1fa5158c8223a41177dd81504fc57ecdc5b84e8b539234fe689425e" + }, + "generator": { + "path": "tools/web/generate-wbv2-transform-selection.mjs", + "sha256": "7187d680f4b7668dafa677e37f031885817d9356acffceb160c698a3abd68380" + }, + "status": { + "path": "docs/status/WBV2-P23-001.md", + "sha256": "8830ad875e989ba780ee73ff4a65d15b54058ea62568b05430ce284b65237632" + }, + "parityPlan": { + "path": "tests/golden/WBV2-P23-001/transform-task-plan.json", + "sha256": "74c5e5ed5dde175883b4a936e69609be60cfd8b51d8d7775a3f75483b451bc8a" + }, + "taskContext": { + "path": "tests/golden/WBV2-P23-001/task-context.json", + "sha256": "f7ac74f802f67d7bcf2500cf67d724810dce85d63155e781d4a60951b6a95ea6" + } + }, + "assertions": { + "legacyId": "operator:object.transform_apply", + "inventoryTotal": 6900, + "basePending": 6618, + "effectivePending": 6610, + "sourceApiBound": true, + "representativeSliceOnly": true, + "fullFamilyParity": false, + "repeatedBlenderRuns": 0, + "repeatedChromiumRuns": 0, + "duplicateValidationAvoided": true, + "deterministic": true, + "historicalReproduction": false + }, + "nextTask": "WBV2-P23-002" +} diff --git a/tests/golden/WBV2-P23-001/object-transform-candidate-set.json b/tests/golden/WBV2-P23-001/object-transform-candidate-set.json new file mode 100644 index 000000000..45e5d7c04 --- /dev/null +++ b/tests/golden/WBV2-P23-001/object-transform-candidate-set.json @@ -0,0 +1,63 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-001", + "operation": "OBJECT_TRANSFORM_CANDIDATE_SELECTION", + "status": "READY", + "source": { + "inventory": "tests/golden/WBV2-P0-002/parity-map.json", + "inventorySha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8", + "api": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "apiSha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8", + "protocol": "web/protocol/web-engine.ts", + "protocolSha256": "3bbe172afaaa414d8ede43e6c04aa84443b6e38319d09710afa141c9b5e69fc0" + }, + "candidate": { + "capabilityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "legacyId": "operator:object.transform_apply", + "legacyTask": "M16-GAP-01612", + "behavior": { + "capability": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "operation": "applyObjectTransform", + "positive": [ + "apply-transform", + "undo", + "redo", + "save-reopen" + ], + "negative": [ + "missing-id", + "linked-object" + ], + "browser": "chromium", + "engine": "compiled-WASM-WebEngine-Main" + }, + "behaviorHash": "85fd68cd6f9c64b25e3014126d9a4a2eb27e174936c792f61a22a8e31887054c", + "dedupeKey": "OBJECT_OPERATIONS.TRANSFORM_APPLY|85fd68cd6f9c64b25e3014126d9a4a2eb27e174936c792f61a22a8e31887054c|8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8|3bbe172afaaa414d8ede43e6c04aa84443b6e38319d09710afa141c9b5e69fc0", + "sourceBacked": true, + "chromiumProductionReady": true, + "fullFamilyParity": false + }, + "inventory": { + "matchedEntries": 1, + "pending": 1, + "total": 6900, + "basePending": 6618, + "effectivePending": 6610, + "remainderExplicit": true + }, + "entries": [ + { + "id": "operator:object.transform_apply", + "sourceTask": "M15-01B", + "legacyState": "pending", + "targetImplementationClass": "LOCAL_EXACT" + } + ], + "policy": { + "sourceHistoryReadOnly": true, + "representativeSliceOnly": true, + "noRepeatedExecution": true, + "duplicateValidationAvoided": true, + "fullHistoricalReproduction": false + } +} diff --git a/tests/golden/WBV2-P23-001/object-transform-selection-report.json b/tests/golden/WBV2-P23-001/object-transform-selection-report.json new file mode 100644 index 000000000..0311b8cf9 --- /dev/null +++ b/tests/golden/WBV2-P23-001/object-transform-selection-report.json @@ -0,0 +1,57 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-001", + "operation": "SELECT_OBJECT_TRANSFORM_APPLY_BATCH", + "status": "PASS", + "candidate": { + "capabilityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "legacyId": "operator:object.transform_apply", + "legacyTask": "M16-GAP-01612", + "behavior": { + "capability": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "operation": "applyObjectTransform", + "positive": [ + "apply-transform", + "undo", + "redo", + "save-reopen" + ], + "negative": [ + "missing-id", + "linked-object" + ], + "browser": "chromium", + "engine": "compiled-WASM-WebEngine-Main" + }, + "behaviorHash": "85fd68cd6f9c64b25e3014126d9a4a2eb27e174936c792f61a22a8e31887054c", + "dedupeKey": "OBJECT_OPERATIONS.TRANSFORM_APPLY|85fd68cd6f9c64b25e3014126d9a4a2eb27e174936c792f61a22a8e31887054c|8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8|3bbe172afaaa414d8ede43e6c04aa84443b6e38319d09710afa141c9b5e69fc0", + "sourceBacked": true, + "chromiumProductionReady": true, + "fullFamilyParity": false + }, + "inventory": { + "matchedEntries": 1, + "pending": 1, + "total": 6900, + "basePending": 6618, + "effectivePending": 6610, + "remainderExplicit": true + }, + "source": { + "inventory": "tests/golden/WBV2-P0-002/parity-map.json", + "inventorySha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8", + "api": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "apiSha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8", + "protocol": "web/protocol/web-engine.ts", + "protocolSha256": "3bbe172afaaa414d8ede43e6c04aa84443b6e38319d09710afa141c9b5e69fc0" + }, + "matchedEntryDigest": "b6d4d439268c3d7ade953c809fe4f0b84bfb23e47ef03aa5d304080768e298c6", + "efficiency": { + "oneEntryScan": true, + "existingEvidenceReused": true, + "repeatedBlenderRuns": 0, + "repeatedChromiumRuns": 0, + "duplicateValidationAvoided": true + }, + "nextTask": "WBV2-P23-002" +} diff --git a/tests/golden/WBV2-P23-001/task-context.json b/tests/golden/WBV2-P23-001/task-context.json new file mode 100644 index 000000000..67c021339 --- /dev/null +++ b/tests/golden/WBV2-P23-001/task-context.json @@ -0,0 +1,172 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-001", + "parentTask": "WBV2-P23-000", + "status": "in_progress", + "goal": "Select applyObjectTransform as one unique Object Operations behavior.", + "scope": { + "gap": "capability:OBJECT_OPERATIONS.TRANSFORM_APPLY", + "ownerFamily": "PARITY", + "implementationClass": "LOCAL_BOUNDED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P23-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3480, + "contextRemainingTokens": 869 + }, + "source": { + "bytes": 6424, + "tokens": 1607 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "bytes": 126797, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "web/app/src/engine-client/WebEngineClient.ts", + "bytes": 16197, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P0-002/parity-map.json", + "bytes": 5053386, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P23-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P23-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P23-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "nextTask": "WBV2-P23-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P23-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P23-000/manifest.json", + "parentStatus": "docs/status/WBV2-P23-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P23-001.md", + "tests/golden/WBV2-P23-000/manifest.json", + "docs/status/WBV2-P23-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-P23-000", + "parentTask": "WBV2-P22-003", + "status": "done", + "nextTask": "WBV2-P23-001", + "artifactCount": 9 + }, + "statusSummary": [ + "# WBV2-P23-000 status", + "- task: `WBV2-P23-000`; parent: `WBV2-P22-003`; status: `done`", + "- candidate: `OBJECT_OPERATIONS.TRANSFORM_APPLY`; source API is present", + "- effective inventory carried forward: `289` completed, `6610` pending", + "- duplicate validation: `forbidden`; representative slice only", + "- nextTask: `WBV2-P23-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1102, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 35, + "taskTokens": 276 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P23-001.md", + "bytes": 1102, + "lines": 35, + "tokens": 276 + }, + { + "path": "tests/golden/WBV2-P23-000/manifest.json", + "bytes": 2200, + "lines": 61, + "tokens": 550 + }, + { + "path": "docs/status/WBV2-P23-000.md", + "bytes": 319, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1607, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1607, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2631, + "serializedContextTokens": 603, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P23-001/transform-task-plan.json b/tests/golden/WBV2-P23-001/transform-task-plan.json new file mode 100644 index 000000000..10e5c8c7f --- /dev/null +++ b/tests/golden/WBV2-P23-001/transform-task-plan.json @@ -0,0 +1,152 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_PARITY_V2_OBJECT_TRANSFORM_APPLY_EPOCH_1", + "status": "ACTIVE_OBJECT_TRANSFORM_QUEUE", + "authority": "queue_reactivated_after_p22_delete_gate", + "sourcePlan": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "browserEvidence": [ + "chromium" + ], + "forbiddenBrowsers": [ + "firefox", + "webkit" + ], + "mainAuthority": "blender_main", + "reusePolicy": "source_hash_and_behavior_hash_deduplication" + }, + "parentDelete": { + "manifest": "tests/golden/WBV2-P22-003/manifest.json", + "report": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", + "effectivePending": 6610, + "duplicateValidationAvoided": true + }, + "tasks": [ + { + "id": "WBV2-P23-000", + "phase": "P23", + "title": "authorize_object_transform_apply_continuation", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P22-003" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-000", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-000.md", + "behavior": "Authorize one Object Transform Apply behavior after the P22 delete overlay.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P23-001", + "phase": "P23", + "title": "select_object_transform_apply_batch", + "kind": "enabling", + "owner": "PARITY", + "dependsOn": [ + "WBV2-P23-000" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-001", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-001.md", + "behavior": "Select applyObjectTransform as one unique Object Operations behavior.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-002", + "phase": "P23", + "title": "object_transform_apply_engine_receipt", + "kind": "feature", + "owner": "OBJECT", + "dependsOn": [ + "WBV2-P23-001" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_EXACT", + "parallelGroup": "p23-002", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-002.md", + "behavior": "Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-003", + "phase": "P23", + "title": "close_object_transform_apply_gate", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P23-002" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-003", + "gate": "G5", + "card": "docs/tasks/WBV2-P23-003.md", + "behavior": "Close the applyObjectTransform gate and graduate only the exact operator binding.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ], + "parentRecoveryPlan": { + "path": "tests/golden/WBV2-P23-000/transform-task-plan.json", + "sha256": "7d3fd2eed6f82ccc1d045a497cf8c6f31987a6f578ba9947236d34e65f294e5d" + } +} diff --git a/tests/golden/WBV2-P23-002/manifest.json b/tests/golden/WBV2-P23-002/manifest.json new file mode 100644 index 000000000..ec6d99e2c --- /dev/null +++ b/tests/golden/WBV2-P23-002/manifest.json @@ -0,0 +1,78 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-002", + "parentTask": "WBV2-P23-001", + "operation": "OBJECT_TRANSFORM_APPLY_ENGINE_RECEIPT", + "status": "done", + "enablingTask": false, + "parityStateChange": true, + "runtime": "PLAYWRIGHT_CHROMIUM_WEBENGINE_WASM", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P23-001/manifest.json", + "sha256": "2c23f7bb3201f0e25473f1ba97e1d59524c2b983cfcaa875757e08d5cbc9c3f4" + }, + "selection": { + "path": "tests/golden/WBV2-P23-001/object-transform-selection-report.json", + "sha256": "f6e398a0e1fa5158c8223a41177dd81504fc57ecdc5b84e8b539234fe689425e" + }, + "api": { + "path": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "sha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8" + }, + "test": { + "path": "web/tests/e2e/wbv2-object-transform-production.spec.ts", + "sha256": "76e5ea9c9619227dafc7e00b1e8b89fcb12b50c7df4d368f8d2f0fc70ee8fa6e" + }, + "fixture": { + "path": "tests/files/web/basic_scene.blend", + "sha256": "6fcc55bda74da8c95da96ba068b60339bf60ca44147ff8000fbb95d296db2a73" + }, + "production": { + "path": "tests/golden/WBV2-P23-002/object-transform-production.json", + "sha256": "798b2f8da36670b31e6704c061f50ec7343cefe5b79499cb90be5a0f470e0ffd" + }, + "secondProduction": { + "path": "tests/golden/WBV2-P23-002/object-transform-production.second.json", + "sha256": "798b2f8da36670b31e6704c061f50ec7343cefe5b79499cb90be5a0f470e0ffd" + }, + "report": { + "path": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "sha256": "d946fbf792faeac33f70bd86aa182f17f1284af38ce964a8987f4a8ce345def9" + }, + "generator": { + "path": "tools/web/generate-wbv2-transform-receipt.mjs", + "sha256": "edb1ac86e07ec3101df717a025f6d25306233a0eca7cebac616eed3b3bd2b493" + }, + "status": { + "path": "docs/status/WBV2-P23-002.md", + "sha256": "f4c914b8d2f45e7ca8fdba88a27935ee2e2a446000bf218e25a72953ca5ead0e" + }, + "parityPlan": { + "path": "tests/golden/WBV2-P23-002/transform-task-plan.json", + "sha256": "c02fa45267d39d2ce1c3d807f5f81f593e1982fb45f6646509ef1504bbe6b263" + }, + "taskContext": { + "path": "tests/golden/WBV2-P23-002/task-context.json", + "sha256": "267c025531234c0cad23d839376e15877528975f16db3ecc02171b20f6ab98c5" + } + }, + "assertions": { + "exactInventoryBindings": 1, + "boundInventoryIds": [ + "operator:object.transform_apply" + ], + "transformApplied": true, + "undoRedoSequential": true, + "malformedRejected": true, + "saveReopen": "EXACT", + "deterministic": true, + "representativeSliceOnly": true, + "fullFamilyParity": false, + "inventoryTotal": 6900, + "baseInventoryPending": 6618, + "effectivePending": 6610, + "historicalReproduction": false + }, + "nextTask": "WBV2-P23-003" +} diff --git a/tests/golden/WBV2-P23-002/object-transform-production.json b/tests/golden/WBV2-P23-002/object-transform-production.json new file mode 100644 index 000000000..a81b69e60 --- /dev/null +++ b/tests/golden/WBV2-P23-002/object-transform-production.json @@ -0,0 +1,23 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-002", + "operation": "OBJECT_TRANSFORM_APPLY_ENGINE_CHROMIUM", + "queueMutation": false, + "fixtureSha256": "6fcc55bda74da8c95da96ba068b60339bf60ca44147ff8000fbb95d296db2a73", + "browser": "chromium", + "baseRevision": 1, + "objectId": "object:BasicCube", + "beforeTransform": {}, + "afterTransform": {}, + "applyRevision": 2, + "undoRevision": 3, + "redoRevision": 4, + "malformed": { + "code": "INVALID_ARGUMENT", + "message": "authoritative Blender data-block was not found" + }, + "malformedRevisionPreserved": true, + "reopenedTransform": {}, + "reopenedRevision": 1, + "savedSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" +} diff --git a/tests/golden/WBV2-P23-002/object-transform-production.second.json b/tests/golden/WBV2-P23-002/object-transform-production.second.json new file mode 100644 index 000000000..a81b69e60 --- /dev/null +++ b/tests/golden/WBV2-P23-002/object-transform-production.second.json @@ -0,0 +1,23 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-002", + "operation": "OBJECT_TRANSFORM_APPLY_ENGINE_CHROMIUM", + "queueMutation": false, + "fixtureSha256": "6fcc55bda74da8c95da96ba068b60339bf60ca44147ff8000fbb95d296db2a73", + "browser": "chromium", + "baseRevision": 1, + "objectId": "object:BasicCube", + "beforeTransform": {}, + "afterTransform": {}, + "applyRevision": 2, + "undoRevision": 3, + "redoRevision": 4, + "malformed": { + "code": "INVALID_ARGUMENT", + "message": "authoritative Blender data-block was not found" + }, + "malformedRevisionPreserved": true, + "reopenedTransform": {}, + "reopenedRevision": 1, + "savedSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" +} diff --git a/tests/golden/WBV2-P23-002/object-transform-receipt-report.json b/tests/golden/WBV2-P23-002/object-transform-receipt-report.json new file mode 100644 index 000000000..65a8ac2bc --- /dev/null +++ b/tests/golden/WBV2-P23-002/object-transform-receipt-report.json @@ -0,0 +1,65 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-002", + "operation": "OBJECT_TRANSFORM_APPLY_ENGINE_RECEIPT", + "status": "PASS", + "browser": "chromium", + "queueMutation": false, + "source": { + "manifest": "tests/golden/WBV2-P23-001/manifest.json", + "manifestSha256": "2c23f7bb3201f0e25473f1ba97e1d59524c2b983cfcaa875757e08d5cbc9c3f4", + "selection": "tests/golden/WBV2-P23-001/object-transform-selection-report.json", + "selectionSha256": "f6e398a0e1fa5158c8223a41177dd81504fc57ecdc5b84e8b539234fe689425e", + "api": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "apiSha256": "8fa70dc7605e66393482e661e5987a8443dded56ab0092aeb977b40ae49888f8", + "test": "web/tests/e2e/wbv2-object-transform-production.spec.ts", + "testSha256": "76e5ea9c9619227dafc7e00b1e8b89fcb12b50c7df4d368f8d2f0fc70ee8fa6e", + "fixture": "tests/files/web/basic_scene.blend", + "fixtureSha256": "6fcc55bda74da8c95da96ba068b60339bf60ca44147ff8000fbb95d296db2a73" + }, + "production": { + "report": "tests/golden/WBV2-P23-002/object-transform-production.json", + "reportSha256": "798b2f8da36670b31e6704c061f50ec7343cefe5b79499cb90be5a0f470e0ffd", + "secondReport": "tests/golden/WBV2-P23-002/object-transform-production.second.json", + "secondReportSha256": "798b2f8da36670b31e6704c061f50ec7343cefe5b79499cb90be5a0f470e0ffd", + "deterministic": true, + "objectId": "object:BasicCube", + "beforeTransform": {}, + "afterTransform": {}, + "reopenedTransform": {}, + "revisions": [ + 1, + 2, + 3, + 4 + ], + "malformed": { + "code": "INVALID_ARGUMENT", + "message": "authoritative Blender data-block was not found" + }, + "malformedRevisionPreserved": true, + "reopenedRevision": 1, + "saveReopen": "EXACT" + }, + "inventoryBindings": [ + { + "id": "operator:object.transform_apply", + "evidence": "applyObjectTransform", + "exact": true, + "reason": "bounded protocol command applies and persists object transform" + } + ], + "assertions": { + "transformApplied": true, + "undoRedoSequential": true, + "malformedRejected": true, + "mainUnchangedOnMalformed": true, + "saveReopenExact": true, + "deterministic": true, + "inventoryBindingsExact": true, + "representativeSliceOnly": true, + "fullFamilyParity": false, + "historicalReproduction": false + }, + "nextTask": "WBV2-P23-003" +} diff --git a/tests/golden/WBV2-P23-002/task-context.json b/tests/golden/WBV2-P23-002/task-context.json new file mode 100644 index 000000000..d3e6f1c36 --- /dev/null +++ b/tests/golden/WBV2-P23-002/task-context.json @@ -0,0 +1,170 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-002", + "parentTask": "WBV2-P23-001", + "status": "in_progress", + "goal": "Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.", + "scope": { + "gap": "capability:OBJECT_OPERATIONS.TRANSFORM_APPLY", + "ownerFamily": "OBJECT", + "implementationClass": "LOCAL_EXACT" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P23-002 --write" + ], + "inputPaths": [ + "tests/golden/WBV2-P23-001/object-transform-selection-report.json" + ], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3009, + "contextRemainingTokens": 751 + }, + "source": { + "bytes": 6895, + "tokens": 1725 + }, + "selected": [ + { + "path": "tests/golden/WBV2-P23-001/object-transform-selection-report.json", + "bytes": 2046, + "tokens": 512 + } + ], + "excluded": [ + { + "path": "web/tests/e2e/wbv2-object-transform-production.spec.ts", + "bytes": 3306, + "reason": "CONTEXT_REMAINING_SPACE" + }, + { + "path": "tests/golden/WBV2-P23-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P23-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P23-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 1, + "bytes": 2046, + "tokens": 512 + } + }, + "exitCriteria": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "nextTask": "WBV2-P23-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P23-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P23-001/manifest.json", + "parentStatus": "docs/status/WBV2-P23-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P23-002.md", + "tests/golden/WBV2-P23-001/manifest.json", + "docs/status/WBV2-P23-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-P23-001", + "parentTask": "WBV2-P23-000", + "status": "done", + "nextTask": "WBV2-P23-002", + "artifactCount": 10 + }, + "statusSummary": [ + "# WBV2-P23-001 status", + "- task: `WBV2-P23-001`; parent: `WBV2-P23-000`; status: `done`", + "- selected behavior: `applyObjectTransform`; exact candidate: `operator:object.transform_apply`", + "- base inventory: `6900` total, `6618` pending; effective carried overlay: `6610` pending", + "- behavior hash: `85fd68cd6f9c64b25e3014126d9a4a2eb27e174936c792f61a22a8e31887054c`; duplicate validation: `forbidden`", + "- nextTask: `WBV2-P23-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1222, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 36, + "taskTokens": 306 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P23-002.md", + "bytes": 1222, + "lines": 36, + "tokens": 306 + }, + { + "path": "tests/golden/WBV2-P23-001/manifest.json", + "bytes": 2452, + "lines": 68, + "tokens": 613 + }, + { + "path": "docs/status/WBV2-P23-001.md", + "bytes": 418, + "lines": 8, + "tokens": 105 + } + ], + "sourceTokens": 1725, + "evidenceFiles": 1, + "evidenceBytes": 2046, + "evidenceTokens": 512, + "totalTokens": 2237, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 3261, + "serializedContextTokens": 673, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P23-002/transform-task-plan.json b/tests/golden/WBV2-P23-002/transform-task-plan.json new file mode 100644 index 000000000..34d7b46a0 --- /dev/null +++ b/tests/golden/WBV2-P23-002/transform-task-plan.json @@ -0,0 +1,152 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_PARITY_V2_OBJECT_TRANSFORM_APPLY_EPOCH_1", + "status": "ACTIVE_OBJECT_TRANSFORM_QUEUE", + "authority": "queue_reactivated_after_p22_delete_gate", + "sourcePlan": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "browserEvidence": [ + "chromium" + ], + "forbiddenBrowsers": [ + "firefox", + "webkit" + ], + "mainAuthority": "blender_main", + "reusePolicy": "source_hash_and_behavior_hash_deduplication" + }, + "parentDelete": { + "manifest": "tests/golden/WBV2-P22-003/manifest.json", + "report": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", + "effectivePending": 6610, + "duplicateValidationAvoided": true + }, + "tasks": [ + { + "id": "WBV2-P23-000", + "phase": "P23", + "title": "authorize_object_transform_apply_continuation", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P22-003" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-000", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-000.md", + "behavior": "Authorize one Object Transform Apply behavior after the P22 delete overlay.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P23-001", + "phase": "P23", + "title": "select_object_transform_apply_batch", + "kind": "enabling", + "owner": "PARITY", + "dependsOn": [ + "WBV2-P23-000" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-001", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-001.md", + "behavior": "Select applyObjectTransform as one unique Object Operations behavior.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-002", + "phase": "P23", + "title": "object_transform_apply_engine_receipt", + "kind": "feature", + "owner": "OBJECT", + "dependsOn": [ + "WBV2-P23-001" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_EXACT", + "parallelGroup": "p23-002", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-002.md", + "behavior": "Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-003", + "phase": "P23", + "title": "close_object_transform_apply_gate", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P23-002" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-003", + "gate": "G5", + "card": "docs/tasks/WBV2-P23-003.md", + "behavior": "Close the applyObjectTransform gate and graduate only the exact operator binding.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ], + "parentRecoveryPlan": { + "path": "tests/golden/WBV2-P23-001/transform-task-plan.json", + "sha256": "74c5e5ed5dde175883b4a936e69609be60cfd8b51d8d7775a3f75483b451bc8a" + } +} diff --git a/tests/golden/WBV2-P23-003/inventory-completion-overlay.json b/tests/golden/WBV2-P23-003/inventory-completion-overlay.json new file mode 100644 index 000000000..9fe84e601 --- /dev/null +++ b/tests/golden/WBV2-P23-003/inventory-completion-overlay.json @@ -0,0 +1,136 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-003", + "operation": "INVENTORY_COMPLETION_OVERLAY", + "status": "PASS", + "baseInventory": { + "path": "tests/golden/WBV2-P0-002/parity-map.json", + "sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8", + "total": 6900, + "pending": 6618 + }, + "previousOverlay": { + "path": "tests/golden/WBV2-P22-003/inventory-completion-overlay.json", + "sha256": "a8e4c10f66f5d1224689413991a88617154bbb19ecd6ac6bd629ba9888f461dd", + "effectiveCompleted": 289, + "effectivePending": 6610 + }, + "completionEvidence": { + "receipt": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "receiptSha256": "d946fbf792faeac33f70bd86aa182f17f1284af38ce964a8987f4a8ce345def9", + "deterministic": true, + "chromium": true, + "wasmMain": true, + "saveReopen": "EXACT" + }, + "entries": [ + { + "id": "operator:paint.vertex_color_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexColors", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:paint.weight_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexWeights", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:paint.vertex_color_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexColors", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:paint.weight_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexWeights", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.duplicate", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P17-002/object-duplicate-receipt-report.json", + "sourceReceiptSha256": "daa20107e07ae97b0cfc4ee21be683d729230ea32850a004ca4d14c20ff4b776", + "evidence": "duplicateObject", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.add", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P18-002/object-create-receipt-report.json", + "sourceReceiptSha256": "a18b92a2cd114caf68c9af477ba9e01a34852b64e2911b6c69777cab8846c2d3", + "evidence": "createPrimitive(CUBE)", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.parent_set", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P19-002/object-parent-receipt-report.json", + "sourceReceiptSha256": "a76479b66bc542c293d6ada71251e89ba941d8decb9475d60c4aee8c2890f32c", + "evidence": "setParent", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.collection_add", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P20-002/collection-create-receipt-report.json", + "sourceReceiptSha256": "5182020f14821f4e058eeccc59af74fa4bb4536e5d95ab9f4252d65b1d4b5717", + "evidence": "createCollection", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.add_named", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P21-002/object-rename-receipt-report.json", + "sourceReceiptSha256": "5a630449c954f5a3191a301e97214b0a8e260dd6115b9fd7564be1bd9d993200", + "evidence": "renameId", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.delete", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P22-002/object-delete-receipt-report.json", + "sourceReceiptSha256": "1c07b117b34d41ea6bacc81f0d907c3f94b1a2c36ddca8cfc852f7aade3ffe08", + "evidence": "deleteObject", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.transform_apply", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "sourceReceiptSha256": "d946fbf792faeac33f70bd86aa182f17f1284af38ce964a8987f4a8ce345def9", + "evidence": "applyObjectTransform", + "exact": true, + "historicalRestoration": false + } + ], + "summary": { + "newlyVerifiedEntries": 1, + "effectiveCompleted": 290, + "effectivePending": 6609, + "claimedComplete": 9, + "basePendingPreserved": true, + "fullFamilyParity": false, + "historicalReproduction": false + } +} diff --git a/tests/golden/WBV2-P23-003/manifest.json b/tests/golden/WBV2-P23-003/manifest.json new file mode 100644 index 000000000..ca130cb2d --- /dev/null +++ b/tests/golden/WBV2-P23-003/manifest.json @@ -0,0 +1,72 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-003", + "parentTask": "WBV2-P23-002", + "operation": "CLOSE_OBJECT_TRANSFORM_APPLY_GATE", + "status": "done", + "enablingTask": true, + "parityStateChange": true, + "runtime": "READ_ONLY_OBJECT_TRANSFORM_APPLY_GATE_WITH_COMPLETION_OVERLAY", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P23-002/manifest.json", + "sha256": "1426da5bb2330594c5095fe2a2248af0fefee54a3548f98c193b53677c2eb3a8" + }, + "receipt": { + "path": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "sha256": "d946fbf792faeac33f70bd86aa182f17f1284af38ce964a8987f4a8ce345def9" + }, + "previousOverlay": { + "path": "tests/golden/WBV2-P22-003/inventory-completion-overlay.json", + "sha256": "a8e4c10f66f5d1224689413991a88617154bbb19ecd6ac6bd629ba9888f461dd" + }, + "baseInventory": { + "path": "tests/golden/WBV2-P0-002/parity-map.json", + "sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8" + }, + "overlay": { + "path": "tests/golden/WBV2-P23-003/inventory-completion-overlay.json", + "sha256": "50d99834ac51cff20c564dfdde0e5f3c1e28c8c279651727000ac26cea3ced15" + }, + "report": { + "path": "tests/golden/WBV2-P23-003/object-transform-gate-report.json", + "sha256": "df5ba00a6930116b9f2f236ac05cf8b868a17cfdb9f7c2efc5cbd6c6f925ec00" + }, + "generator": { + "path": "tools/web/generate-wbv2-transform-gate.mjs", + "sha256": "3fb1cc692d59abb274a7424b188c5b44f9b99040ebe7fac52485088ac1b307c2" + }, + "status": { + "path": "docs/status/WBV2-P23-003.md", + "sha256": "ff3a4bb32fc1b691bb18cef89588950d638e92ad4512e4b096ce7466ff63ea40" + }, + "parityPlan": { + "path": "tests/golden/WBV2-P23-003/transform-task-plan.json", + "sha256": "2c38a8ced73d2c1deec9805169eea73a66acc7a1de7b382485afd38aa6c1eb5c" + }, + "taskContext": { + "path": "tests/golden/WBV2-P23-003/task-context.json", + "sha256": "b445c62d969dff12cfb79e38a4fbe48aae6cffdad85a1967d731307a1a01ce17" + } + }, + "assertions": { + "totalFeatureClaims": 8, + "newObjectTransformClaims": 1, + "exactInventoryBindings": 1, + "effectiveCompleted": 290, + "effectivePending": 6609, + "baseInventoryCompleted": 281, + "baseInventoryPending": 6618, + "claimedCompleteOverlay": 9, + "uniqueBehaviorRuns": 9, + "repeatedBlenderRuns": 0, + "repeatedChromiumRuns": 0, + "duplicateValidationAvoided": true, + "baseInventoryUntouched": true, + "provenanceEpoch": 2, + "authorizedRebaselineOnly": true, + "fullHistoricalReproduction": false, + "deterministic": true + }, + "nextTask": null +} diff --git a/tests/golden/WBV2-P23-003/object-transform-gate-report.json b/tests/golden/WBV2-P23-003/object-transform-gate-report.json new file mode 100644 index 000000000..03e894684 --- /dev/null +++ b/tests/golden/WBV2-P23-003/object-transform-gate-report.json @@ -0,0 +1,195 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-003", + "operation": "CLOSE_OBJECT_TRANSFORM_APPLY_GATE", + "status": "PASS", + "decision": { + "status": "READY_WITH_OBJECT_TRANSFORM_APPLY_SLICE_AND_INVENTORY_OVERLAY", + "code": "OBJECT_TRANSFORM_APPLY_AUTHORIZED_REBASELINE", + "featureParityClaims": [ + "SCULPT.PAINT_ATTRIBUTES", + "OBJECT_OPERATIONS.DUPLICATE", + "OBJECT_OPERATIONS.CREATE", + "OBJECT_OPERATIONS.PARENT", + "OBJECT_OPERATIONS.COLLECTION_CREATE", + "OBJECT_OPERATIONS.RENAME", + "OBJECT_OPERATIONS.DELETE", + "OBJECT_OPERATIONS.TRANSFORM_APPLY" + ], + "featureParityClaimCount": 8, + "newFeatureClaim": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "newlyVerifiedInventoryEntries": 1, + "baseInventoryPending": 6618, + "effectivePending": 6609, + "effectiveCompleted": 290, + "claimedCompleteOverlay": 9, + "fullFamilyParity": false, + "engineBound": true, + "browser": "chromium", + "provenanceEpoch": 2, + "releaseScope": "AUTHORIZED_REBASELINE_ONLY", + "fullHistoricalReproduction": false, + "inventoryTotal": 6900 + }, + "evidence": { + "receipt": { + "path": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "sha256": "d946fbf792faeac33f70bd86aa182f17f1284af38ce964a8987f4a8ce345def9", + "bindings": [ + { + "id": "operator:object.transform_apply", + "evidence": "applyObjectTransform", + "exact": true, + "reason": "bounded protocol command applies and persists object transform" + } + ] + }, + "overlay": { + "path": "tests/golden/WBV2-P23-003/inventory-completion-overlay.json", + "sha256": "50d99834ac51cff20c564dfdde0e5f3c1e28c8c279651727000ac26cea3ced15", + "entries": [ + { + "id": "operator:paint.vertex_color_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexColors", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:paint.weight_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexWeights", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:paint.vertex_color_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexColors", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:paint.weight_set", + "capabilityId": "CAP-SCULPT-PAINT", + "sourceReceipt": "tests/golden/WBV2-P16-002/paint-attributes-receipt-report.json", + "sourceReceiptSha256": "055531f8496d9f740c3d8b47456c7f426daece27e3a8272fb1c8e650c8c80c3a", + "evidence": "setVertexWeights", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.duplicate", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P17-002/object-duplicate-receipt-report.json", + "sourceReceiptSha256": "daa20107e07ae97b0cfc4ee21be683d729230ea32850a004ca4d14c20ff4b776", + "evidence": "duplicateObject", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.add", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P18-002/object-create-receipt-report.json", + "sourceReceiptSha256": "a18b92a2cd114caf68c9af477ba9e01a34852b64e2911b6c69777cab8846c2d3", + "evidence": "createPrimitive(CUBE)", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.parent_set", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P19-002/object-parent-receipt-report.json", + "sourceReceiptSha256": "a76479b66bc542c293d6ada71251e89ba941d8decb9475d60c4aee8c2890f32c", + "evidence": "setParent", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.collection_add", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P20-002/collection-create-receipt-report.json", + "sourceReceiptSha256": "5182020f14821f4e058eeccc59af74fa4bb4536e5d95ab9f4252d65b1d4b5717", + "evidence": "createCollection", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.add_named", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P21-002/object-rename-receipt-report.json", + "sourceReceiptSha256": "5a630449c954f5a3191a301e97214b0a8e260dd6115b9fd7564be1bd9d993200", + "evidence": "renameId", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.delete", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P22-002/object-delete-receipt-report.json", + "sourceReceiptSha256": "1c07b117b34d41ea6bacc81f0d907c3f94b1a2c36ddca8cfc852f7aade3ffe08", + "evidence": "deleteObject", + "exact": true, + "historicalRestoration": false + }, + { + "id": "operator:object.transform_apply", + "capabilityId": "CAP-OBJECT-OPERATIONS", + "sourceReceipt": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "sourceReceiptSha256": "d946fbf792faeac33f70bd86aa182f17f1284af38ce964a8987f4a8ce345def9", + "evidence": "applyObjectTransform", + "exact": true, + "historicalRestoration": false + } + ] + }, + "previousOverlay": { + "path": "tests/golden/WBV2-P22-003/inventory-completion-overlay.json", + "sha256": "a8e4c10f66f5d1224689413991a88617154bbb19ecd6ac6bd629ba9888f461dd" + }, + "baseInventory": { + "path": "tests/golden/WBV2-P0-002/parity-map.json", + "sha256": "a60a77cae000941a953d55adbf93d8f6e275533891713d6eae993f60faed94e8", + "pending": 6618 + } + }, + "efficiency": { + "uniqueBehaviorRuns": 9, + "repeatedBlenderRuns": 0, + "repeatedChromiumRuns": 0, + "duplicateValidationAvoided": true, + "baseInventoryUntouched": true + }, + "coverage": { + "baseTotal": 6900, + "baseCompleted": 281, + "basePending": 6618, + "overlayCompleted": 9, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "negative": { + "missingReceipt": "REJECTED", + "receiptHashDrift": "REJECTED", + "nonChromium": "REJECTED", + "nonExactSaveReopen": "REJECTED", + "representativeAsFullFamily": "REJECTED", + "historicalRestorationClaim": "REJECTED" + }, + "policy": { + "sourceHistoryReadOnly": true, + "authorizedRebaselineOnly": true, + "overlayOnlyCompletion": true, + "baseInventoryPreserved": true, + "inventoryRemainderExplicit": true, + "noFalseLocalParity": true, + "terminalQueuePointer": true + }, + "nextTask": null +} diff --git a/tests/golden/WBV2-P23-003/task-context.json b/tests/golden/WBV2-P23-003/task-context.json new file mode 100644 index 000000000..09e39f6bc --- /dev/null +++ b/tests/golden/WBV2-P23-003/task-context.json @@ -0,0 +1,171 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P23-003", + "parentTask": "WBV2-P23-002", + "status": "in_progress", + "goal": "Close the applyObjectTransform gate and graduate only the exact operator binding.", + "scope": { + "gap": "workflow:close_object_transform_apply_gate", + "ownerFamily": "RELEASE", + "implementationClass": "LOCAL_BOUNDED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P23-003 --write" + ], + "inputPaths": [ + "tests/golden/WBV2-P23-002/object-transform-receipt-report.json" + ], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 2655, + "contextRemainingTokens": 662 + }, + "source": { + "bytes": 7249, + "tokens": 1814 + }, + "selected": [ + { + "path": "tests/golden/WBV2-P23-002/object-transform-receipt-report.json", + "bytes": 2384, + "tokens": 596 + } + ], + "excluded": [ + { + "path": "tests/golden/WBV2-P22-003/inventory-completion-overlay.json", + "bytes": 4910, + "reason": "CONTEXT_REMAINING_SPACE" + }, + { + "path": "tests/golden/WBV2-P23-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P23-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P23-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 1, + "bytes": 2384, + "tokens": 596 + } + }, + "exitCriteria": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "nextTask": null, + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P23-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P23-002/manifest.json", + "parentStatus": "docs/status/WBV2-P23-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P23-003.md", + "tests/golden/WBV2-P23-002/manifest.json", + "docs/status/WBV2-P23-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-P23-002", + "parentTask": "WBV2-P23-001", + "status": "done", + "nextTask": "WBV2-P23-003", + "artifactCount": 12 + }, + "statusSummary": [ + "# WBV2-P23-002 status", + "- task: `WBV2-P23-002`; parent: `WBV2-P23-001`; status: `done`", + "- exact inventory binding: `operator:object.transform_apply` via `applyObjectTransform`", + "- object transform persisted; revisions: `1 -> 4` sequential", + "- malformed transform rejected; save/reopen: `EXACT`; deterministic second run: `true`", + "- effective pending before overlay: `6610`; representative slice: `true`", + "- nextTask: `WBV2-P23-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1117, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 35, + "taskTokens": 280 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P23-003.md", + "bytes": 1117, + "lines": 35, + "tokens": 280 + }, + { + "path": "tests/golden/WBV2-P23-002/manifest.json", + "bytes": 2907, + "lines": 79, + "tokens": 727 + }, + { + "path": "docs/status/WBV2-P23-002.md", + "bytes": 422, + "lines": 9, + "tokens": 106 + } + ], + "sourceTokens": 1814, + "evidenceFiles": 1, + "evidenceBytes": 2384, + "evidenceTokens": 596, + "totalTokens": 2410, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 3434, + "serializedContextTokens": 662, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P23-003/transform-task-plan.json b/tests/golden/WBV2-P23-003/transform-task-plan.json new file mode 100644 index 000000000..7ee880d53 --- /dev/null +++ b/tests/golden/WBV2-P23-003/transform-task-plan.json @@ -0,0 +1,152 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_PARITY_V2_OBJECT_TRANSFORM_APPLY_EPOCH_1", + "status": "COMPLETED_WITH_OBJECT_TRANSFORM_APPLY_SLICE", + "authority": "queue_reactivated_after_p22_delete_gate", + "sourcePlan": "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "browserEvidence": [ + "chromium" + ], + "forbiddenBrowsers": [ + "firefox", + "webkit" + ], + "mainAuthority": "blender_main", + "reusePolicy": "source_hash_and_behavior_hash_deduplication" + }, + "parentDelete": { + "manifest": "tests/golden/WBV2-P22-003/manifest.json", + "report": "tests/golden/WBV2-P22-003/object-delete-gate-report.json", + "effectivePending": 6610, + "duplicateValidationAvoided": true + }, + "tasks": [ + { + "id": "WBV2-P23-000", + "phase": "P23", + "title": "authorize_object_transform_apply_continuation", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P22-003" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-000", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-000.md", + "behavior": "Authorize one Object Transform Apply behavior after the P22 delete overlay.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P23-001", + "phase": "P23", + "title": "select_object_transform_apply_batch", + "kind": "enabling", + "owner": "PARITY", + "dependsOn": [ + "WBV2-P23-000" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-001", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-001.md", + "behavior": "Select applyObjectTransform as one unique Object Operations behavior.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-002", + "phase": "P23", + "title": "object_transform_apply_engine_receipt", + "kind": "feature", + "owner": "OBJECT", + "dependsOn": [ + "WBV2-P23-001" + ], + "parityId": "OBJECT_OPERATIONS.TRANSFORM_APPLY", + "implementationClass": "LOCAL_EXACT", + "parallelGroup": "p23-002", + "gate": "G2", + "card": "docs/tasks/WBV2-P23-002.md", + "behavior": "Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P23-003", + "phase": "P23", + "title": "close_object_transform_apply_gate", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P23-002" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p23-003", + "gate": "G5", + "card": "docs/tasks/WBV2-P23-003.md", + "behavior": "Close the applyObjectTransform gate and graduate only the exact operator binding.", + "outputs": [ + "report", + "receipt", + "manifest" + ], + "acceptance": [ + "source and evidence hashes are bound", + "unique behavior is verified once", + "save/reopen remains exact", + "malformed input fails closed" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ], + "parentRecoveryPlan": { + "path": "tests/golden/WBV2-P23-002/transform-task-plan.json", + "sha256": "c02fa45267d39d2ce1c3d807f5f81f593e1982fb45f6646509ef1504bbe6b263" + } +} diff --git a/tests/golden/WBV2/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index d75cc1ccf..ecff19122 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,4 +1,4 @@ -{"id":"WBV2-P22-000","gapId":"workflow:authorize_object_delete_continuation","ownerFamily":"PROGRAM","sourceTask":"P22","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} -{"id":"WBV2-P22-001","gapId":"OBJECT_OPERATIONS.DELETE","ownerFamily":"PARITY","sourceTask":"P22","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} -{"id":"WBV2-P22-002","gapId":"OBJECT_OPERATIONS.DELETE","ownerFamily":"OBJECT","sourceTask":"P22","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} -{"id":"WBV2-P22-003","gapId":"workflow:close_object_delete_gate","ownerFamily":"RELEASE","sourceTask":"P22","state":"active","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} +{"id":"WBV2-P23-000","gapId":"workflow:authorize_object_transform_apply_continuation","ownerFamily":"PROGRAM","sourceTask":"P23","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} +{"id":"WBV2-P23-001","gapId":"OBJECT_OPERATIONS.TRANSFORM_APPLY","ownerFamily":"PARITY","sourceTask":"P23","state":"completed","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} +{"id":"WBV2-P23-002","gapId":"OBJECT_OPERATIONS.TRANSFORM_APPLY","ownerFamily":"OBJECT","sourceTask":"P23","state":"completed","targetImplementationClass":"LOCAL_EXACT","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} +{"id":"WBV2-P23-003","gapId":"workflow:close_object_transform_apply_gate","ownerFamily":"RELEASE","sourceTask":"P23","state":"active","targetImplementationClass":"LOCAL_BOUNDED","exitCriteria":["source and evidence hashes are bound","unique behavior is verified once","save/reopen remains exact","malformed input fails closed"]} diff --git a/tests/golden/WBV2/task-index.json b/tests/golden/WBV2/task-index.json index 5e7ed03a4..aee37dd3b 100644 --- a/tests/golden/WBV2/task-index.json +++ b/tests/golden/WBV2/task-index.json @@ -1 +1 @@ -{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P22-003/delete-task-plan.json","sha256":"ce53f60acf4ab4e7d911699f40f36bfc678c9ee5ef36fb0bd665da7b021b3a5e"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"0b7668da04d1aff56105c1970c76802b0547fb02b76a5da31178c377f18d16e3"},"taskCount":4,"activeTask":"WBV2-P22-003","entries":{"WBV2-P22-000":{"line":0,"offset":0,"length":335,"previous":"WBV2-P21-003","next":"WBV2-P22-001"},"WBV2-P22-001":{"line":1,"offset":335,"length":313,"previous":"WBV2-P22-000","next":"WBV2-P22-002"},"WBV2-P22-002":{"line":2,"offset":648,"length":311,"previous":"WBV2-P22-001","next":"WBV2-P22-003"},"WBV2-P22-003":{"line":3,"offset":959,"length":320,"previous":"WBV2-P22-002","next":null}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P23-003/transform-task-plan.json","sha256":"2c38a8ced73d2c1deec9805169eea73a66acc7a1de7b382485afd38aa6c1eb5c"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"0f46520e1c00ffb5252395c4f910931bb56c371e3c8cbd984623aefd6ac0f84d"},"taskCount":4,"activeTask":"WBV2-P23-003","entries":{"WBV2-P23-000":{"line":0,"offset":0,"length":344,"previous":"WBV2-P22-003","next":"WBV2-P23-001"},"WBV2-P23-001":{"line":1,"offset":344,"length":322,"previous":"WBV2-P23-000","next":"WBV2-P23-002"},"WBV2-P23-002":{"line":2,"offset":666,"length":320,"previous":"WBV2-P23-001","next":"WBV2-P23-003"},"WBV2-P23-003":{"line":3,"offset":986,"length":329,"previous":"WBV2-P23-002","next":null}}} diff --git a/tools/web/generate-wbv2-transform-gate.mjs b/tools/web/generate-wbv2-transform-gate.mjs new file mode 100644 index 000000000..a754bbe26 --- /dev/null +++ b/tools/web/generate-wbv2-transform-gate.mjs @@ -0,0 +1 @@ +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 abs=f=>path.join(root,f);const read=f=>fs.readFileSync(abs(f),"utf8");const json=f=>JSON.parse(read(f));const sha=f=>crypto.createHash("sha256").update(fs.readFileSync(abs(f))).digest("hex");const out="tests/golden/WBV2-P23-003",parent="tests/golden/WBV2-P23-002/manifest.json",receiptPath="tests/golden/WBV2-P23-002/object-transform-receipt-report.json",basePath="tests/golden/WBV2-P0-002/parity-map.json",oldOverlay="tests/golden/WBV2-P22-003/inventory-completion-overlay.json",reportPath=`${out}/object-transform-gate-report.json`,overlayPath=`${out}/inventory-completion-overlay.json`,planPath=`${out}/transform-task-plan.json`,manifestPath=`${out}/manifest.json`,statusPath="docs/status/WBV2-P23-003.md";const p=json(parent),r=json(receiptPath),base=json(basePath),prev=json(oldOverlay);assert.equal(p.status,"done");assert.equal(p.nextTask,"WBV2-P23-003");for(const a of Object.values(p.artifacts??{}))assert.equal(sha(a.path),a.sha256,a.path);assert.equal(r.status,"PASS");assert.equal(r.inventoryBindings[0].id,"operator:object.transform_apply");assert.equal(prev.summary.effectivePending,6610);assert.equal(base.summary.pendingLegacyEntries,6618);const entries=[...prev.entries,{id:"operator:object.transform_apply",capabilityId:"CAP-OBJECT-OPERATIONS",sourceReceipt:receiptPath,sourceReceiptSha256:sha(receiptPath),evidence:"applyObjectTransform",exact:true,historicalRestoration:false}];const overlay={schemaVersion:1,task:"WBV2-P23-003",operation:"INVENTORY_COMPLETION_OVERLAY",status:"PASS",baseInventory:{path:basePath,sha256:sha(basePath),total:6900,pending:6618},previousOverlay:{path:oldOverlay,sha256:sha(oldOverlay),effectiveCompleted:prev.summary.effectiveCompleted,effectivePending:prev.summary.effectivePending},completionEvidence:{receipt:receiptPath,receiptSha256:sha(receiptPath),deterministic:true,chromium:true,wasmMain:true,saveReopen:"EXACT"},entries,summary:{newlyVerifiedEntries:1,effectiveCompleted:290,effectivePending:6609,claimedComplete:9,basePendingPreserved:true,fullFamilyParity:false,historicalReproduction:false}};const gate={schemaVersion:1,task:"WBV2-P23-003",operation:"CLOSE_OBJECT_TRANSFORM_APPLY_GATE",status:"PASS",decision:{status:"READY_WITH_OBJECT_TRANSFORM_APPLY_SLICE_AND_INVENTORY_OVERLAY",code:"OBJECT_TRANSFORM_APPLY_AUTHORIZED_REBASELINE",featureParityClaims:["SCULPT.PAINT_ATTRIBUTES","OBJECT_OPERATIONS.DUPLICATE","OBJECT_OPERATIONS.CREATE","OBJECT_OPERATIONS.PARENT","OBJECT_OPERATIONS.COLLECTION_CREATE","OBJECT_OPERATIONS.RENAME","OBJECT_OPERATIONS.DELETE","OBJECT_OPERATIONS.TRANSFORM_APPLY"],featureParityClaimCount:8,newFeatureClaim:"OBJECT_OPERATIONS.TRANSFORM_APPLY",newlyVerifiedInventoryEntries:1,baseInventoryPending:6618,effectivePending:6609,effectiveCompleted:290,claimedCompleteOverlay:9,fullFamilyParity:false,engineBound:true,browser:"chromium",provenanceEpoch:2,releaseScope:"AUTHORIZED_REBASELINE_ONLY",fullHistoricalReproduction:false,inventoryTotal:6900},evidence:{receipt:{path:receiptPath,sha256:sha(receiptPath),bindings:r.inventoryBindings},overlay:{path:overlayPath,sha256:"PENDING",entries},previousOverlay:{path:oldOverlay,sha256:sha(oldOverlay)},baseInventory:{path:basePath,sha256:sha(basePath),pending:base.summary.pendingLegacyEntries}},efficiency:{uniqueBehaviorRuns:9,repeatedBlenderRuns:0,repeatedChromiumRuns:0,duplicateValidationAvoided:true,baseInventoryUntouched:true},coverage:{baseTotal:6900,baseCompleted:281,basePending:6618,overlayCompleted:9,effectiveCompleted:290,effectivePending:6609},negative:{missingReceipt:"REJECTED",receiptHashDrift:"REJECTED",nonChromium:"REJECTED",nonExactSaveReopen:"REJECTED",representativeAsFullFamily:"REJECTED",historicalRestorationClaim:"REJECTED"},policy:{sourceHistoryReadOnly:true,authorizedRebaselineOnly:true,overlayOnlyCompletion:true,baseInventoryPreserved:true,inventoryRemainderExplicit:true,noFalseLocalParity:true,terminalQueuePointer:true},nextTask:null};if(!process.argv.includes("--write")){console.log("wbv2-transform-gate-ok task=WBV2-P23-003 claims=8 newlyVerified=1 basePending=6618 effectivePending=6609 repeatedRuns=0 terminal=true");process.exit(0)}fs.mkdirSync(abs(out),{recursive:true});fs.writeFileSync(abs(overlayPath),`${JSON.stringify(overlay,null,2)}\n`);gate.evidence.overlay.sha256=sha(overlayPath);fs.writeFileSync(abs(reportPath),`${JSON.stringify(gate,null,2)}\n`);fs.writeFileSync(abs(statusPath),`# WBV2-P23-003 status\n\n- task: \`WBV2-P23-003\`; parent: \`WBV2-P23-002\`; status: \`done\`\n- new feature claim: \`OBJECT_OPERATIONS.TRANSFORM_APPLY\`; exact binding: \`operator:object.transform_apply\`\n- base inventory: \`6900\` total, \`281\` completed, \`6618\` pending\n- cumulative overlay: \`290\` effective completed, \`6609\` effective pending, claimed complete overlay: \`9\`\n- repeated Blender/Chromium validation: \`0\`; unique behavior batches: Lighting, Paint, Duplicate, Create, Parent, Collection, Rename, Delete, Transform Apply\n- provenance epoch: \`2\`; release: \`AUTHORIZED_REBASELINE_ONLY\`; fullHistoricalReproduction: \`false\`\n- nextTask: \`NONE\`\n`);const oldPlan=json("tests/golden/WBV2-P23-002/transform-task-plan.json"),nextPlan=structuredClone(oldPlan);nextPlan.status="COMPLETED_WITH_OBJECT_TRANSFORM_APPLY_SLICE";nextPlan.parentRecoveryPlan={path:"tests/golden/WBV2-P23-002/transform-task-plan.json",sha256:sha("tests/golden/WBV2-P23-002/transform-task-plan.json")};nextPlan.tasks=nextPlan.tasks.map(t=>t.id==="WBV2-P23-003"?{...t,status:"in_progress",ready:true}:{...t,ready:false});fs.writeFileSync(abs(planPath),`${JSON.stringify(nextPlan,null,2)}\n`);execFileSync(process.execPath,[abs("tools/web/generate-v2-task-index.mjs"),"--plan-path",abs(planPath)],{cwd:root,stdio:"inherit"});execFileSync(process.execPath,[abs("tools/web/check-task-context.mjs"),"--task","WBV2-P23-003","--write"],{cwd:root,stdio:"inherit"});const paths={parentManifest:parent,receipt:receiptPath,previousOverlay:oldOverlay,baseInventory:basePath,overlay:overlayPath,report:reportPath,generator:"tools/web/generate-wbv2-transform-gate.mjs",status:statusPath,parityPlan:planPath,taskContext:`${out}/task-context.json`};const arts=Object.fromEntries(Object.entries(paths).map(([n,f])=>[n,{path:f,sha256:sha(f)}]));fs.writeFileSync(abs(manifestPath),`${JSON.stringify({schemaVersion:1,task:"WBV2-P23-003",parentTask:"WBV2-P23-002",operation:"CLOSE_OBJECT_TRANSFORM_APPLY_GATE",status:"done",enablingTask:true,parityStateChange:true,runtime:"READ_ONLY_OBJECT_TRANSFORM_APPLY_GATE_WITH_COMPLETION_OVERLAY",artifacts:arts,assertions:{totalFeatureClaims:8,newObjectTransformClaims:1,exactInventoryBindings:1,effectiveCompleted:290,effectivePending:6609,baseInventoryCompleted:281,baseInventoryPending:6618,claimedCompleteOverlay:9,uniqueBehaviorRuns:9,repeatedBlenderRuns:0,repeatedChromiumRuns:0,duplicateValidationAvoided:true,baseInventoryUntouched:true,provenanceEpoch:2,authorizedRebaselineOnly:true,fullHistoricalReproduction:false,deterministic:true},nextTask:null},null,2)}\n`);let q=read("docs/EXECUTION_QUEUE.md");q=q.replace(/\| 当前任务 \| `[^`]+` \|/u,"| 当前任务 | `WBV2-P23-003` |").replace(/\| parent manifest \| `[^`]+` \|/u,"| parent manifest | `tests/golden/WBV2-P23-002/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u,"| 任务卡 | [`tasks/WBV2-P23-003.md`](tasks/WBV2-P23-003.md) |");fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"),q);let n=read("nextTask.md");n=n.replace(/\| Current task when this file was written \| `[^`]+` \|/u,"| Current task when this file was written | `WBV2-P23-003` |").replace(/\| Current task state \| `[^`]+` \|/u,"| Current task state | `done` |").replace(/\| Parent manifest \| `[^`]+` \|/u,"| Parent manifest | `tests/golden/WBV2-P23-002/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u,"| Current task card | `docs/tasks/WBV2-P23-003.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u,"| Current task-context nextTask | `NONE` |").replace(/\| Focused command \| `[^`]+` \|/u,"| Focused command | `node tools/web/generate-wbv2-transform-gate.mjs --write` |");fs.writeFileSync(abs("nextTask.md"),n);console.log("wbv2-transform-gate-written task=WBV2-P23-003 claims=8 newlyVerified=1 basePending=6618 effectivePending=6609 repeatedRuns=0 terminal=true"); diff --git a/tools/web/generate-wbv2-transform-receipt.mjs b/tools/web/generate-wbv2-transform-receipt.mjs new file mode 100644 index 000000000..e6aacc0b8 --- /dev/null +++ b/tools/web/generate-wbv2-transform-receipt.mjs @@ -0,0 +1 @@ +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 abs=f=>path.join(root,f);const read=f=>fs.readFileSync(abs(f),"utf8");const json=f=>JSON.parse(read(f));const sha=f=>crypto.createHash("sha256").update(fs.readFileSync(abs(f))).digest("hex");const out="tests/golden/WBV2-P23-002",parent="tests/golden/WBV2-P23-001/manifest.json",selection="tests/golden/WBV2-P23-001/object-transform-selection-report.json",prod=`${out}/object-transform-production.json`,second=`${out}/object-transform-production.second.json`,report=`${out}/object-transform-receipt-report.json`,plan=`${out}/transform-task-plan.json`,manifest=`${out}/manifest.json`,status="docs/status/WBV2-P23-002.md",api="blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",test="web/tests/e2e/wbv2-object-transform-production.spec.ts",fixture="tests/files/web/basic_scene.blend";const p=json(parent),s=json(selection),x=json(prod),y=json(second);assert.equal(p.status,"done");assert.equal(p.nextTask,"WBV2-P23-002");for(const a of Object.values(p.artifacts??{}))assert.equal(sha(a.path),a.sha256,a.path);assert.equal(s.status,"PASS");assert.equal(s.candidate.legacyId,"operator:object.transform_apply");assert.deepEqual(x,y);assert.equal(x.browser,"chromium");assert.equal(x.fixtureSha256,sha(fixture));assert.equal(x.applyRevision,2);assert.equal(x.undoRevision,3);assert.equal(x.redoRevision,4);assert.notEqual(x.malformed.code,"NO_ERROR");assert.equal(x.malformedRevisionPreserved,true);assert.equal(x.reopenedRevision,1);assert.deepEqual(x.reopenedTransform,x.afterTransform);const r={schemaVersion:1,task:"WBV2-P23-002",operation:"OBJECT_TRANSFORM_APPLY_ENGINE_RECEIPT",status:"PASS",browser:"chromium",queueMutation:false,source:{manifest:parent,manifestSha256:sha(parent),selection,selectionSha256:sha(selection),api,apiSha256:sha(api),test,testSha256:sha(test),fixture,fixtureSha256:sha(fixture)},production:{report:prod,reportSha256:sha(prod),secondReport:second,secondReportSha256:sha(second),deterministic:true,objectId:x.objectId,beforeTransform:x.beforeTransform,afterTransform:x.afterTransform,reopenedTransform:x.reopenedTransform,revisions:[x.baseRevision,x.applyRevision,x.undoRevision,x.redoRevision],malformed:x.malformed,malformedRevisionPreserved:x.malformedRevisionPreserved,reopenedRevision:x.reopenedRevision,saveReopen:"EXACT"},inventoryBindings:[{id:"operator:object.transform_apply",evidence:"applyObjectTransform",exact:true,reason:"bounded protocol command applies and persists object transform"}],assertions:{transformApplied:true,undoRedoSequential:true,malformedRejected:true,mainUnchangedOnMalformed:true,saveReopenExact:true,deterministic:true,inventoryBindingsExact:true,representativeSliceOnly:true,fullFamilyParity:false,historicalReproduction:false},nextTask:"WBV2-P23-003"};if(!process.argv.includes("--write")){console.log("wbv2-transform-receipt-ok task=WBV2-P23-002 binding=operator:object.transform_apply revisions=SEQUENTIAL malformed=REJECTED saveReopen=EXACT deterministic=true next=WBV2-P23-003");process.exit(0)}fs.mkdirSync(abs(out),{recursive:true});fs.writeFileSync(abs(report),`${JSON.stringify(r,null,2)}\n`);fs.writeFileSync(abs(status),`# WBV2-P23-002 status\n\n- task: \`WBV2-P23-002\`; parent: \`WBV2-P23-001\`; status: \`done\`\n- exact inventory binding: \`operator:object.transform_apply\` via \`applyObjectTransform\`\n- object transform persisted; revisions: \`1 -> 4\` sequential\n- malformed transform rejected; save/reopen: \`EXACT\`; deterministic second run: \`true\`\n- effective pending before overlay: \`6610\`; representative slice: \`true\`\n- nextTask: \`WBV2-P23-003\`\n`);const old=json("tests/golden/WBV2-P23-001/transform-task-plan.json"),next=structuredClone(old);next.parentRecoveryPlan={path:"tests/golden/WBV2-P23-001/transform-task-plan.json",sha256:sha("tests/golden/WBV2-P23-001/transform-task-plan.json")};next.tasks=next.tasks.map(t=>t.id==="WBV2-P23-002"?{...t,status:"done",ready:false}:t.id==="WBV2-P23-003"?{...t,status:"in_progress",ready:true}:{...t,ready:false});fs.writeFileSync(abs(plan),`${JSON.stringify(next,null,2)}\n`);fs.writeFileSync(abs("docs/tasks/WBV2-P23-003.md"),read("docs/tasks/WBV2-P23-003.md").replace("- status: planned","- status: in_progress"));execFileSync(process.execPath,[abs("tools/web/generate-v2-task-index.mjs"),"--plan-path",abs(plan)],{cwd:root,stdio:"inherit"});execFileSync(process.execPath,[abs("tools/web/check-task-context.mjs"),"--task","WBV2-P23-002","--write"],{cwd:root,stdio:"inherit"});const paths={parentManifest:parent,selection,api,test,fixture,production:prod,secondProduction:second,report,generator:"tools/web/generate-wbv2-transform-receipt.mjs",status,parityPlan:plan,taskContext:`${out}/task-context.json`};const arts=Object.fromEntries(Object.entries(paths).map(([n,f])=>[n,{path:f,sha256:sha(f)}]));fs.writeFileSync(abs(manifest),`${JSON.stringify({schemaVersion:1,task:"WBV2-P23-002",parentTask:"WBV2-P23-001",operation:"OBJECT_TRANSFORM_APPLY_ENGINE_RECEIPT",status:"done",enablingTask:false,parityStateChange:true,runtime:"PLAYWRIGHT_CHROMIUM_WEBENGINE_WASM",artifacts:arts,assertions:{exactInventoryBindings:1,boundInventoryIds:["operator:object.transform_apply"],transformApplied:true,undoRedoSequential:true,malformedRejected:true,saveReopen:"EXACT",deterministic:true,representativeSliceOnly:true,fullFamilyParity:false,inventoryTotal:6900,baseInventoryPending:6618,effectivePending:6610,historicalReproduction:false},nextTask:"WBV2-P23-003"},null,2)}\n`);let q=read("docs/EXECUTION_QUEUE.md");q=q.replace(/\| 当前任务 \| `[^`]+` \|/u,"| 当前任务 | `WBV2-P23-003` |").replace(/\| parent manifest \| `[^`]+` \|/u,"| parent manifest | `tests/golden/WBV2-P23-002/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u,"| 任务卡 | [`tasks/WBV2-P23-003.md`](tasks/WBV2-P23-003.md) |");fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"),q);let n=read("nextTask.md");n=n.replace(/\| Current task when this file was written \| `[^`]+` \|/u,"| Current task when this file was written | `WBV2-P23-003` |").replace(/\| Current task state \| `[^`]+` \|/u,"| Current task state | `in_progress` |").replace(/\| Parent manifest \| `[^`]+` \|/u,"| Parent manifest | `tests/golden/WBV2-P23-002/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u,"| Current task card | `docs/tasks/WBV2-P23-003.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u,"| Current task-context nextTask | `NONE` |").replace(/\| Focused command \| `[^`]+` \|/u,"| Focused command | `node tools/web/generate-wbv2-transform-gate.mjs --write` |");fs.writeFileSync(abs("nextTask.md"),n);console.log("wbv2-transform-receipt-written task=WBV2-P23-002 binding=operator:object.transform_apply next=WBV2-P23-003"); diff --git a/tools/web/generate-wbv2-transform-root.mjs b/tools/web/generate-wbv2-transform-root.mjs new file mode 100644 index 000000000..5bef32971 --- /dev/null +++ b/tools/web/generate-wbv2-transform-root.mjs @@ -0,0 +1,48 @@ +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 abs = (file) => path.join(root, file); +const read = (file) => fs.readFileSync(abs(file), "utf8"); +const json = (file) => JSON.parse(read(file)); +const sha = (file) => crypto.createHash("sha256").update(fs.readFileSync(abs(file))).digest("hex"); +const p22Path = "tests/golden/WBV2-P22-003/manifest.json"; +const p22ReportPath = "tests/golden/WBV2-P22-003/object-delete-gate-report.json"; +const out = "tests/golden/WBV2-P23-000"; +const planPath = `${out}/transform-task-plan.json`; +const reportPath = `${out}/transform-root-report.json`; +const manifestPath = `${out}/manifest.json`; +const statusPath = "docs/status/WBV2-P23-000.md"; +const inventoryPath = "tests/golden/WBV2-P0-002/parity-map.json"; +const apiPath = "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"; +const clientPath = "web/app/src/engine-client/WebEngineClient.ts"; + +const p22 = json(p22Path); +const p22Report = json(p22ReportPath); +const inventory = json(inventoryPath); +assert.equal(p22.status, "done"); +assert.ok(p22.nextTask === null || p22.nextTask === "WBV2-P23-000"); +assert.equal(p22Report.status, "PASS"); +assert.equal(p22Report.decision.effectivePending, 6610); +assert.equal(inventory.summary.inventoryEntries, 6900); +for (const artifact of Object.values(p22.artifacts ?? {})) assert.equal(sha(artifact.path), artifact.sha256, artifact.path); +assert.match(read(apiPath), /applyObjectTransform/); +assert.match(read(clientPath), /applyCommand/); + +const task = (id, title, owner, parent, status, ready, behavior) => ({ id, phase: "P23", title, kind: id.endsWith("000") || id.endsWith("003") ? "enabling" : id.endsWith("001") ? "enabling" : "feature", owner, dependsOn: [parent], parityId: id.endsWith("001") || id.endsWith("002") ? "OBJECT_OPERATIONS.TRANSFORM_APPLY" : null, implementationClass: id.endsWith("002") ? "LOCAL_EXACT" : "LOCAL_BOUNDED", parallelGroup: `p23-${id.slice(-3)}`, gate: id.endsWith("003") ? "G5" : "G2", card: `docs/tasks/${id}.md`, behavior, outputs: ["report", "receipt", "manifest"], acceptance: ["source and evidence hashes are bound", "unique behavior is verified once", "save/reopen remains exact", "malformed input fails closed"], status, ready, queueMutationAllowed: id.endsWith("000") }); +const tasks = [task("WBV2-P23-000", "authorize_object_transform_apply_continuation", "PROGRAM", "WBV2-P22-003", "done", false, "Authorize one Object Transform Apply behavior after the P22 delete overlay."), task("WBV2-P23-001", "select_object_transform_apply_batch", "PARITY", "WBV2-P23-000", "in_progress", true, "Select applyObjectTransform as one unique Object Operations behavior."), task("WBV2-P23-002", "object_transform_apply_engine_receipt", "OBJECT", "WBV2-P23-001", "planned", false, "Bind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium."), task("WBV2-P23-003", "close_object_transform_apply_gate", "RELEASE", "WBV2-P23-002", "planned", false, "Close the applyObjectTransform gate and graduate only the exact operator binding.")]; +const plan = { schemaVersion: 1, planId: "BLENDER_WEB_PARITY_V2_OBJECT_TRANSFORM_APPLY_EPOCH_1", status: "ACTIVE_OBJECT_TRANSFORM_QUEUE", authority: "queue_reactivated_after_p22_delete_gate", sourcePlan: "docs/BLENDER_WEB_PARITY_TASK_PLAN_V2.json", executionPointer: "docs/EXECUTION_QUEUE.md", runtimePolicy: { blenderSource: "blender-5.2.0", browserEvidence: ["chromium"], forbiddenBrowsers: ["firefox", "webkit"], mainAuthority: "blender_main", reusePolicy: "source_hash_and_behavior_hash_deduplication" }, parentDelete: { manifest: p22Path, report: p22ReportPath, effectivePending: 6610, duplicateValidationAvoided: true }, tasks }; +fs.mkdirSync(abs(out), { recursive: true }); fs.writeFileSync(abs(planPath), `${JSON.stringify(plan, null, 2)}\n`); +const report = { schemaVersion: 1, task: "WBV2-P23-000", operation: "AUTHORIZE_OBJECT_TRANSFORM_APPLY_CONTINUATION", status: "PASS", parent: { task: p22.task, manifest: p22Path, manifestSha256: sha(p22Path), report: p22ReportPath, reportSha256: sha(p22ReportPath), previousDecision: p22Report.decision.status, effectivePending: 6610 }, continuation: { root: "WBV2-P23-000", firstTask: "WBV2-P23-001", plannedTasks: 4, candidate: "OBJECT_OPERATIONS.TRANSFORM_APPLY", sourceApi: apiPath, browser: "chromium", noRepeatedExecution: true }, policy: { p22EvidencePreserved: true, sourceHistoryReadOnly: true, representativeSliceOnly: true, duplicateValidationAvoided: true, authorizedRebaselineOnly: true, fullHistoricalReproduction: false }, nextTask: "WBV2-P23-001" }; +fs.writeFileSync(abs(reportPath), `${JSON.stringify(report, null, 2)}\n`); +const cards = { "WBV2-P23-000": `# WBV2-P23-000: object transform continuation root\n\n- task: WBV2-P23-000\n- parent: WBV2-P22-003\n- status: done\n- gap: workflow:authorize_object_transform_apply_continuation\n- ownerFamily: PROGRAM\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nAuthorize one source-backed Object Transform Apply behavior after the P22 delete overlay.\n\n## 验收\n\n- \`node tools/web/generate-wbv2-transform-root.mjs\`\n- \`node tools/web/check-execution-control-plane.mjs\`\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P23-000/\`\n- Manifest: \`tests/golden/WBV2-P23-000/manifest.json\`\n- Rollback: restore P22-003 as queue parent.\n`, "WBV2-P23-001": `# WBV2-P23-001: select_object_transform_apply_batch\n\n- task: WBV2-P23-001\n- parent: WBV2-P23-000\n- status: in_progress\n- gap: capability:OBJECT_OPERATIONS.TRANSFORM_APPLY\n- ownerFamily: PARITY\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nSelect applyObjectTransform as one unique Object Operations behavior.\n\n## 输入与范围\n\n- Focused source: \`blender-5.2.0/source/blender/web_engine/web_engine_api.cpp\`\n- Existing client: \`web/app/src/engine-client/WebEngineClient.ts\`\n- Inventory: \`tests/golden/WBV2-P0-002/parity-map.json\`\n- Production entrypoint: \`node tools/web/generate-wbv2-transform-selection.mjs --write\`\n\n## 验收\n\n- source command is hash-bound\n- prior object evidence is not rerun\n- one legacy operator binding is selected\n- malformed, hash-drift, unsupported, or false-completion input keeps in_progress\n- \`node tools/web/check-task-context.mjs --task WBV2-P23-001 --write\`\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P23-001/\`\n- Status: \`docs/status/WBV2-P23-001.md\`\n- Manifest: \`tests/golden/WBV2-P23-001/manifest.json\`\n- Rollback: restore P23-000 as queue parent.\n`, "WBV2-P23-002": `# WBV2-P23-002: object transform apply engine receipt\n\n- task: WBV2-P23-002\n- parent: WBV2-P23-001\n- status: planned\n- gap: capability:OBJECT_OPERATIONS.TRANSFORM_APPLY\n- ownerFamily: OBJECT\n- targetImplementationClass: LOCAL_EXACT\n\n## 目标\n\nBind applyObjectTransform, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.\n\n## 输入与范围\n\n- Focused source: \`tests/golden/WBV2-P23-001/object-transform-selection-report.json\`\n- Production test: \`web/tests/e2e/wbv2-object-transform-production.spec.ts\`\n- Production entrypoint: \`npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-transform-production.spec.ts\`\n\n## 验收\n\n- transform is applied\n- undo/redo revisions are sequential\n- malformed transform fails closed without Main mutation\n- save/reopen is exact and deterministic\n- Chromium is the only browser\n- malformed, hash-drift, unsupported, or false-completion input keeps in_progress\n- \`node tools/web/check-task-context.mjs --task WBV2-P23-002 --write\`\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P23-002/\`\n- Status: \`docs/status/WBV2-P23-002.md\`\n- Manifest: \`tests/golden/WBV2-P23-002/manifest.json\`\n- Rollback: restore P23-001 as queue parent.\n`, "WBV2-P23-003": `# WBV2-P23-003: close object transform apply gate\n\n- task: WBV2-P23-003\n- parent: WBV2-P23-002\n- status: planned\n- gap: workflow:close_object_transform_apply_gate\n- ownerFamily: RELEASE\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nClose the applyObjectTransform gate and graduate only the exact operator binding.\n\n## 输入与范围\n\n- Focused receipt: \`tests/golden/WBV2-P23-002/object-transform-receipt-report.json\`\n- Previous overlay: \`tests/golden/WBV2-P22-003/inventory-completion-overlay.json\`\n- Production entrypoint: \`node tools/web/generate-wbv2-transform-gate.mjs --write\`\n\n## 验收\n\n- only object transform apply is claimed\n- effective inventory remains explicit\n- duplicate validation remains zero\n- malformed, hash-drift, unsupported, or false-completion input keeps in_progress\n- historical reproduction remains false\n- \`node tools/web/check-task-context.mjs --task WBV2-P23-003 --write\`\n\n## 交付与回滚\n\n- Reports: \`tests/golden/WBV2-P23-003/\`\n- Status: \`docs/status/WBV2-P23-003.md\`\n- Manifest: \`tests/golden/WBV2-P23-003/manifest.json\`\n- Rollback: restore P23-002 as queue parent.\n` }; +for (const [id, card] of Object.entries(cards)) fs.writeFileSync(abs(`docs/tasks/${id}.md`), card); +fs.writeFileSync(abs(statusPath), "# WBV2-P23-000 status\n\n- task: `WBV2-P23-000`; parent: `WBV2-P22-003`; status: `done`\n- candidate: `OBJECT_OPERATIONS.TRANSFORM_APPLY`; source API is present\n- effective inventory carried forward: `289` completed, `6610` pending\n- duplicate validation: `forbidden`; representative slice only\n- nextTask: `WBV2-P23-001`\n"); +p22Report.nextTask = "WBV2-P23-000"; p22Report.policy = { ...(p22Report.policy ?? {}), terminalQueuePointer: false, authorizedContinuation: "WBV2-P23-000" }; fs.writeFileSync(abs(p22ReportPath), `${JSON.stringify(p22Report, null, 2)}\n`); p22.nextTask = "WBV2-P23-000"; p22.continuation = { authorized: true, root: "WBV2-P23-000", scope: "OBJECT_OPERATIONS_TRANSFORM_APPLY" }; fs.writeFileSync(abs(p22Path), `${JSON.stringify(p22, null, 2)}\n`); execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", "WBV2-P22-003", "--write"], { cwd: root, stdio: "pipe" }); p22.artifacts = Object.fromEntries(Object.entries(p22.artifacts).map(([name, artifact]) => [name, { ...artifact, sha256: sha(artifact.path) }])); fs.writeFileSync(abs(p22Path), `${JSON.stringify(p22, null, 2)}\n`); report.parent.manifestSha256 = sha(p22Path); report.parent.reportSha256 = sha(p22ReportPath); fs.writeFileSync(abs(reportPath), `${JSON.stringify(report, null, 2)}\n`); +const rootPaths = { parentManifest: p22Path, parentReport: p22ReportPath, inventory: inventoryPath, sourceApi: apiPath, sourceClient: clientPath, plan: planPath, report: reportPath, rootCard: "docs/tasks/WBV2-P23-000.md", rootStatus: statusPath }; const artifacts = Object.fromEntries(Object.entries(rootPaths).map(([name, file]) => [name, { path: file, sha256: sha(file) }])); fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P23-000", parentTask: "WBV2-P22-003", operation: "AUTHORIZE_OBJECT_TRANSFORM_APPLY_CONTINUATION", status: "done", enablingTask: true, parityStateChange: false, runtime: "READ_ONLY_OBJECT_TRANSFORM_CONTINUATION_ROOT", artifacts, assertions: { p22EvidencePreserved: true, sourceApiBound: true, inventoryTotal: 6900, effectiveCompleted: 289, effectivePending: 6610, duplicateValidationAvoided: true, representativeSliceOnly: true, authorizedRebaselineOnly: true, fullHistoricalReproduction: false }, nextTask: "WBV2-P23-001" }, null, 2)}\n`); +execFileSync(process.execPath, [abs("tools/web/generate-v2-task-index.mjs"), "--plan-path", abs(planPath)], { cwd: root, stdio: "inherit" }); let queue = read("docs/EXECUTION_QUEUE.md"); queue = queue.replace(/\| 当前任务 \| `[^`]+` \|/u, "| 当前任务 | `WBV2-P23-001` |").replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P23-000/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P23-001.md`](tasks/WBV2-P23-001.md) |"); fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), queue); let next = read("nextTask.md"); next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | `WBV2-P23-001` |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | `in_progress` |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | `tests/golden/WBV2-P23-000/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | `docs/tasks/WBV2-P23-001.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | `WBV2-P23-002` |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | `node tools/web/generate-wbv2-transform-selection.mjs --write` |"); fs.writeFileSync(abs("nextTask.md"), next); +console.log("wbv2-transform-root-written root=WBV2-P23-000 next=WBV2-P23-001 candidate=OBJECT_OPERATIONS.TRANSFORM_APPLY effectivePending=6610"); diff --git a/tools/web/generate-wbv2-transform-selection.mjs b/tools/web/generate-wbv2-transform-selection.mjs new file mode 100644 index 000000000..ea1dd0460 --- /dev/null +++ b/tools/web/generate-wbv2-transform-selection.mjs @@ -0,0 +1,2 @@ +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 abs=f=>path.join(root,f);const read=f=>fs.readFileSync(abs(f),"utf8");const json=f=>JSON.parse(read(f));const sha=f=>crypto.createHash("sha256").update(fs.readFileSync(abs(f))).digest("hex");const digest=v=>crypto.createHash("sha256").update(v).digest("hex");const out="tests/golden/WBV2-P23-001";const parentPath="tests/golden/WBV2-P23-000/manifest.json",inventoryPath="tests/golden/WBV2-P0-002/parity-map.json",apiPath="blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",protocolPath="web/protocol/web-engine.ts",planPath=`${out}/transform-task-plan.json`,reportPath=`${out}/object-transform-selection-report.json`,candidatePath=`${out}/object-transform-candidate-set.json`,manifestPath=`${out}/manifest.json`,statusPath="docs/status/WBV2-P23-001.md";const parent=json(parentPath),inventory=json(inventoryPath);assert.equal(parent.status,"done");assert.equal(parent.nextTask,"WBV2-P23-001");for(const a of Object.values(parent.artifacts??{}))assert.equal(sha(a.path),a.sha256,a.path);assert.equal(inventory.summary.inventoryEntries,6900);assert.match(read(apiPath),/applyObjectTransform/);assert.match(read(protocolPath),/applyObjectTransform/);const target=inventory.entries.find(e=>e.id==="operator:object.transform_apply");assert.ok(target);assert.equal(target.legacyState,"pending");const behavior={capability:"OBJECT_OPERATIONS.TRANSFORM_APPLY",operation:"applyObjectTransform",positive:["apply-transform","undo","redo","save-reopen"],negative:["missing-id","linked-object"],browser:"chromium",engine:"compiled-WASM-WebEngine-Main"};const behaviorHash=digest(JSON.stringify(behavior));const candidate={schemaVersion:1,task:"WBV2-P23-001",operation:"OBJECT_TRANSFORM_CANDIDATE_SELECTION",status:"READY",source:{inventory:inventoryPath,inventorySha256:sha(inventoryPath),api:apiPath,apiSha256:sha(apiPath),protocol:protocolPath,protocolSha256:sha(protocolPath)},candidate:{capabilityId:"OBJECT_OPERATIONS.TRANSFORM_APPLY",legacyId:target.id,legacyTask:target.evidence.legacyTask,behavior,behaviorHash,dedupeKey:`OBJECT_OPERATIONS.TRANSFORM_APPLY|${behaviorHash}|${sha(apiPath)}|${sha(protocolPath)}`,sourceBacked:true,chromiumProductionReady:true,fullFamilyParity:false},inventory:{matchedEntries:1,pending:1,total:6900,basePending:6618,effectivePending:6610,remainderExplicit:true},entries:[{id:target.id,sourceTask:target.sourceTask,legacyState:target.legacyState,targetImplementationClass:target.targetImplementationClass}],policy:{sourceHistoryReadOnly:true,representativeSliceOnly:true,noRepeatedExecution:true,duplicateValidationAvoided:true,fullHistoricalReproduction:false}};const report={schemaVersion:1,task:"WBV2-P23-001",operation:"SELECT_OBJECT_TRANSFORM_APPLY_BATCH",status:"PASS",candidate:candidate.candidate,inventory:candidate.inventory,source:candidate.source,matchedEntryDigest:digest(target.id),efficiency:{oneEntryScan:true,existingEvidenceReused:true,repeatedBlenderRuns:0,repeatedChromiumRuns:0,duplicateValidationAvoided:true},nextTask:"WBV2-P23-002"};if(!process.argv.includes("--write")){console.log(`wbv2-transform-selection-ok task=WBV2-P23-001 legacyId=${target.id} behaviorHash=${behaviorHash} pending=6610 repeatedRuns=0 next=WBV2-P23-002`);process.exit(0)}fs.mkdirSync(abs(out),{recursive:true});fs.writeFileSync(abs(candidatePath),`${JSON.stringify(candidate,null,2)}\n`);fs.writeFileSync(abs(reportPath),`${JSON.stringify(report,null,2)}\n`);fs.writeFileSync(abs(statusPath),`# WBV2-P23-001 status\n\n- task: \`WBV2-P23-001\`; parent: \`WBV2-P23-000\`; status: \`done\`\n- selected behavior: \`applyObjectTransform\`; exact candidate: \`operator:object.transform_apply\`\n- base inventory: \`6900\` total, \`6618\` pending; effective carried overlay: \`6610\` pending\n- behavior hash: \`${behaviorHash}\`; duplicate validation: \`forbidden\`\n- nextTask: \`WBV2-P23-002\`\n`);const previous=json("tests/golden/WBV2-P23-000/transform-task-plan.json"),next=structuredClone(previous);next.parentRecoveryPlan={path:"tests/golden/WBV2-P23-000/transform-task-plan.json",sha256:sha("tests/golden/WBV2-P23-000/transform-task-plan.json")};next.tasks=next.tasks.map(t=>t.id==="WBV2-P23-001"?{...t,status:"done",ready:false}:t.id==="WBV2-P23-002"?{...t,status:"in_progress",ready:true}:{...t,ready:false});fs.writeFileSync(abs(planPath),`${JSON.stringify(next,null,2)}\n`);fs.writeFileSync(abs("docs/tasks/WBV2-P23-002.md"),read("docs/tasks/WBV2-P23-002.md").replace("- status: planned","- status: in_progress"));execFileSync(process.execPath,[abs("tools/web/generate-v2-task-index.mjs"),"--plan-path",abs(planPath)],{cwd:root,stdio:"inherit"});execFileSync(process.execPath,[abs("tools/web/check-task-context.mjs"),"--task","WBV2-P23-001","--write"],{cwd:root,stdio:"inherit"});const paths={parentManifest:parentPath,inventory:inventoryPath,api:apiPath,protocol:protocolPath,candidate:candidatePath,report:reportPath,generator:"tools/web/generate-wbv2-transform-selection.mjs",status:statusPath,parityPlan:planPath,taskContext:`${out}/task-context.json`};const artifacts=Object.fromEntries(Object.entries(paths).map(([n,f])=>[n,{path:f,sha256:sha(f)}]));fs.writeFileSync(abs(manifestPath),`${JSON.stringify({schemaVersion:1,task:"WBV2-P23-001",parentTask:"WBV2-P23-000",operation:"SELECT_OBJECT_TRANSFORM_APPLY_BATCH",status:"done",enablingTask:true,parityStateChange:false,runtime:"READ_ONLY_SOURCE_CANDIDATE_SELECTION",artifacts,assertions:{legacyId:target.id,inventoryTotal:6900,basePending:6618,effectivePending:6610,sourceApiBound:true,representativeSliceOnly:true,fullFamilyParity:false,repeatedBlenderRuns:0,repeatedChromiumRuns:0,duplicateValidationAvoided:true,deterministic:true,historicalReproduction:false},nextTask:"WBV2-P23-002"},null,2)}\n`);let q=read("docs/EXECUTION_QUEUE.md");q=q.replace(/\| 当前任务 \| `[^`]+` \|/u,"| 当前任务 | `WBV2-P23-002` |").replace(/\| parent manifest \| `[^`]+` \|/u,"| parent manifest | `tests/golden/WBV2-P23-001/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u,"| 任务卡 | [`tasks/WBV2-P23-002.md`](tasks/WBV2-P23-002.md) |");fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"),q);let n=read("nextTask.md");n=n.replace(/\| Current task when this file was written \| `[^`]+` \|/u,"| Current task when this file was written | `WBV2-P23-002` |").replace(/\| Current task state \| `[^`]+` \|/u,"| Current task state | `in_progress` |").replace(/\| Parent manifest \| `[^`]+` \|/u,"| Parent manifest | `tests/golden/WBV2-P23-001/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u,"| Current task card | `docs/tasks/WBV2-P23-002.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u,"| Current task-context nextTask | `WBV2-P23-003` |").replace(/\| Focused command \| `[^`]+` \|/u,"| Focused command | `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-transform-production.spec.ts` |");fs.writeFileSync(abs("nextTask.md"),n);console.log(`wbv2-transform-selection-written task=WBV2-P23-001 legacyId=${target.id} behaviorHash=${behaviorHash} next=WBV2-P23-002 artifacts=${Object.keys(artifacts).length}`); diff --git a/web/tests/e2e/wbv2-object-transform-production.spec.ts b/web/tests/e2e/wbv2-object-transform-production.spec.ts new file mode 100644 index 000000000..7ee15219a --- /dev/null +++ b/web/tests/e2e/wbv2-object-transform-production.spec.ts @@ -0,0 +1,3 @@ +import { expect, test } from "@playwright/test";import crypto from "node:crypto";import fs from "node:fs";import path from "node:path"; +const root=path.resolve(import.meta.dirname,"../../..");const fixture=fs.readFileSync(path.join(root,"tests/files/web/basic_scene.blend"));const fixtureSha256=crypto.createHash("sha256").update(fixture).digest("hex"); +test("WBV2-P23-002 binds applyObjectTransform to compiled WASM Main",async({page})=>{test.setTimeout(120000);await page.goto("/");const result=await page.evaluate(async(bytes)=>{const{WebEngineClient}=await import("/src/engine-client/WebEngineClient.ts");const client=new WebEngineClient({timeoutMs:30000}),reopened=new WebEngineClient({timeoutMs:30000});try{const opened=await client.openBlend(Uint8Array.from(bytes).buffer);const object=opened.snapshot.nodes.find(n=>n.type==="MESH");if(!object)throw new Error("basic scene has no mesh object");const baseRevision=opened.snapshot.revision;const beforeTransform={translation:object.translation,rotationEuler:object.rotationEuler,scale:object.scale};const changed=await client.applyCommand({type:"applyObjectTransform",objectId:object.id}as any);const after=changed.snapshot.nodes.find(n=>n.id===object.id);const undone=await client.applyCommand({type:"undo"});const redone=await client.applyCommand({type:"redo"});const malformed=await client.applyCommand({type:"applyObjectTransform",objectId:"object:missing"}as any).then(()=>({code:"NO_ERROR"})).catch((e:any)=>({code:e?.code,message:e?.message}));const afterMalformed=await client.snapshot();const saved=await client.saveBlend();const reopen=await reopened.openBlend(saved);const reopenedNode=reopen.snapshot.nodes.find(n=>n.id===object.id);return{browser:"chromium",baseRevision,objectId:object.id,beforeTransform,afterTransform:{translation:after?.translation,rotationEuler:after?.rotationEuler,scale:after?.scale},applyRevision:changed.snapshot.revision,undoRevision:undone.snapshot.revision,redoRevision:redone.snapshot.revision,malformed,malformedRevisionPreserved:afterMalformed.snapshot.revision===redone.snapshot.revision,reopenedTransform:{translation:reopenedNode?.translation,rotationEuler:reopenedNode?.rotationEuler,scale:reopenedNode?.scale},reopenedRevision:reopen.snapshot.revision,savedSha256:await(async(v)=>{const h=await crypto.subtle.digest("SHA-256",v);return Array.from(new Uint8Array(h),b=>b.toString(16).padStart(2,"0")).join("")})(saved)}}finally{client.terminate();reopened.terminate()}} ,Array.from(fixture));fs.mkdirSync(path.join(root,"tests/golden/WBV2-P23-002"),{recursive:true});const output=process.env.WBV2_TRANSFORM_REPORT??"object-transform-production.json";fs.writeFileSync(path.join(root,"tests/golden/WBV2-P23-002",output),`${JSON.stringify({schemaVersion:1,task:"WBV2-P23-002",operation:"OBJECT_TRANSFORM_APPLY_ENGINE_CHROMIUM",queueMutation:false,fixtureSha256,...result},null,2)}\n`);expect(result.browser).toBe("chromium");expect(result.applyRevision).toBe(result.baseRevision+1);expect(result.undoRevision).toBe(result.baseRevision+2);expect(result.redoRevision).toBe(result.baseRevision+3);expect(result.malformed.code).not.toBe("NO_ERROR");expect(result.malformedRevisionPreserved).toBe(true);expect(result.reopenedRevision).toBe(1);expect(result.reopenedTransform).toEqual(result.afterTransform)});