From ac83fe4d32c77030c722fe49d65fb52984f7613a Mon Sep 17 00:00:00 2001 From: mes123456 Date: Fri, 28 Aug 2026 18:24:17 +0800 Subject: [PATCH] Continue deduplicated object transform and move workflow --- docs/EXECUTION_QUEUE.md | 6 +- docs/status/WBV2-P24-000.md | 7 + docs/tasks/WBV2-P24-000.md | 23 +++ docs/tasks/WBV2-P24-001.md | 34 ++++ docs/tasks/WBV2-P24-002.md | 35 ++++ docs/tasks/WBV2-P24-003.md | 34 ++++ nextTask.md | 12 +- tests/golden/WBV2-P23-003/manifest.json | 11 +- .../object-transform-gate-report.json | 5 +- tests/golden/WBV2-P23-003/task-context.json | 4 +- tests/golden/WBV2-P24-000/manifest.json | 60 +++++++ .../golden/WBV2-P24-000/move-root-report.json | 33 ++++ tests/golden/WBV2-P24-000/move-task-plan.json | 149 ++++++++++++++++++ tests/golden/WBV2/task-catalog.jsonl | 8 +- tests/golden/WBV2/task-index.json | 2 +- tools/web/generate-wbv2-move-root.mjs | 43 +++++ 16 files changed, 445 insertions(+), 21 deletions(-) create mode 100644 docs/status/WBV2-P24-000.md create mode 100644 docs/tasks/WBV2-P24-000.md create mode 100644 docs/tasks/WBV2-P24-001.md create mode 100644 docs/tasks/WBV2-P24-002.md create mode 100644 docs/tasks/WBV2-P24-003.md create mode 100644 tests/golden/WBV2-P24-000/manifest.json create mode 100644 tests/golden/WBV2-P24-000/move-root-report.json create mode 100644 tests/golden/WBV2-P24-000/move-task-plan.json create mode 100644 tools/web/generate-wbv2-move-root.mjs diff --git a/docs/EXECUTION_QUEUE.md b/docs/EXECUTION_QUEUE.md index 865fdfc8b..12a036cd9 100644 --- a/docs/EXECUTION_QUEUE.md +++ b/docs/EXECUTION_QUEUE.md @@ -13,9 +13,9 @@ | 字段 | 值 | | --- | --- | | 里程碑 | WBV2 capability workflow | -| 当前任务 | `WBV2-P23-003` | -| parent manifest | `tests/golden/WBV2-P23-002/manifest.json` | -| 任务卡 | [`tasks/WBV2-P23-003.md`](tasks/WBV2-P23-003.md) | +| 当前任务 | `WBV2-P24-001` | +| parent manifest | `tests/golden/WBV2-P24-000/manifest.json` | +| 任务卡 | [`tasks/WBV2-P24-001.md`](tasks/WBV2-P24-001.md) | | 专项验收 | `node tools/web/check-execution-control-plane.mjs` | | legacy coverage checkpoint | `M16-GAP-00282` | | legacy coverage parent | `tests/golden/M16-GAP-00281/manifest.json` | diff --git a/docs/status/WBV2-P24-000.md b/docs/status/WBV2-P24-000.md new file mode 100644 index 000000000..bbad10c28 --- /dev/null +++ b/docs/status/WBV2-P24-000.md @@ -0,0 +1,7 @@ +# WBV2-P24-000 status + +- task: `WBV2-P24-000`; parent: `WBV2-P23-003`; status: `done` +- candidate: `OBJECT_OPERATIONS.MOVE_COLLECTION`; source API is present +- effective inventory carried forward: `290` completed, `6609` pending +- duplicate validation: `forbidden`; representative slice only +- nextTask: `WBV2-P24-001` diff --git a/docs/tasks/WBV2-P24-000.md b/docs/tasks/WBV2-P24-000.md new file mode 100644 index 000000000..5f27ad4d9 --- /dev/null +++ b/docs/tasks/WBV2-P24-000.md @@ -0,0 +1,23 @@ +# WBV2-P24-000: object move collection continuation root + +- task: WBV2-P24-000 +- parent: WBV2-P23-003 +- status: done +- gap: workflow:authorize_object_move_collection_continuation +- ownerFamily: PROGRAM +- targetImplementationClass: LOCAL_BOUNDED + +## 目标 + +Authorize one source-backed Object Move-to-Collection behavior after the P23 transform overlay. + +## 验收 + +- `node tools/web/generate-wbv2-move-root.mjs` +- `node tools/web/check-execution-control-plane.mjs` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P24-000/` +- Manifest: `tests/golden/WBV2-P24-000/manifest.json` +- Rollback: restore P23-003 as queue parent. diff --git a/docs/tasks/WBV2-P24-001.md b/docs/tasks/WBV2-P24-001.md new file mode 100644 index 000000000..7ffb3a7e7 --- /dev/null +++ b/docs/tasks/WBV2-P24-001.md @@ -0,0 +1,34 @@ +# WBV2-P24-001: select_object_move_collection_batch + +- task: WBV2-P24-001 +- parent: WBV2-P24-000 +- status: in_progress +- gap: capability:OBJECT_OPERATIONS.MOVE_COLLECTION +- ownerFamily: PARITY +- targetImplementationClass: LOCAL_BOUNDED + +## 目标 + +Select moveObjectToCollection 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-move-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-P24-001 --write` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P24-001/` +- Status: `docs/status/WBV2-P24-001.md` +- Manifest: `tests/golden/WBV2-P24-001/manifest.json` +- Rollback: restore P24-000 as queue parent. diff --git a/docs/tasks/WBV2-P24-002.md b/docs/tasks/WBV2-P24-002.md new file mode 100644 index 000000000..857bd6275 --- /dev/null +++ b/docs/tasks/WBV2-P24-002.md @@ -0,0 +1,35 @@ +# WBV2-P24-002: object move collection engine receipt + +- task: WBV2-P24-002 +- parent: WBV2-P24-001 +- status: planned +- gap: capability:OBJECT_OPERATIONS.MOVE_COLLECTION +- ownerFamily: OBJECT +- targetImplementationClass: LOCAL_EXACT + +## 目标 + +Bind moveObjectToCollection, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium. + +## 输入与范围 + +- Focused source: `tests/golden/WBV2-P24-001/object-move-selection-report.json` +- Production test: `web/tests/e2e/wbv2-object-move-production.spec.ts` +- Production entrypoint: `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-move-production.spec.ts` + +## 验收 + +- object collection membership changes +- undo/redo revisions are sequential +- malformed move 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-P24-002 --write` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P24-002/` +- Status: `docs/status/WBV2-P24-002.md` +- Manifest: `tests/golden/WBV2-P24-002/manifest.json` +- Rollback: restore P24-001 as queue parent. diff --git a/docs/tasks/WBV2-P24-003.md b/docs/tasks/WBV2-P24-003.md new file mode 100644 index 000000000..52fe00238 --- /dev/null +++ b/docs/tasks/WBV2-P24-003.md @@ -0,0 +1,34 @@ +# WBV2-P24-003: close object move collection gate + +- task: WBV2-P24-003 +- parent: WBV2-P24-002 +- status: planned +- gap: workflow:close_object_move_collection_gate +- ownerFamily: RELEASE +- targetImplementationClass: LOCAL_BOUNDED + +## 目标 + +Close the moveObjectToCollection gate and graduate only the exact operator binding. + +## 输入与范围 + +- Focused receipt: `tests/golden/WBV2-P24-002/object-move-receipt-report.json` +- Previous overlay: `tests/golden/WBV2-P23-003/inventory-completion-overlay.json` +- Production entrypoint: `node tools/web/generate-wbv2-move-gate.mjs --write` + +## 验收 + +- only object move collection 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-P24-003 --write` + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P24-003/` +- Status: `docs/status/WBV2-P24-003.md` +- Manifest: `tests/golden/WBV2-P24-003/manifest.json` +- Rollback: restore P24-002 as queue parent. diff --git a/nextTask.md b/nextTask.md index 2d419ef8f..b5d279011 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-P23-003` | -| Current task state | `done` | -| 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-transform-gate.mjs --write` | +| Current task when this file was written | `WBV2-P24-001` | +| Current task state | `in_progress` | +| Parent manifest | `tests/golden/WBV2-P24-000/manifest.json` | +| Current task card | `docs/tasks/WBV2-P24-001.md` | +| Current task-context nextTask | `WBV2-P24-002` | +| Focused command | `node tools/web/generate-wbv2-move-selection.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-P23-003/manifest.json b/tests/golden/WBV2-P23-003/manifest.json index ca130cb2d..e05a6838b 100644 --- a/tests/golden/WBV2-P23-003/manifest.json +++ b/tests/golden/WBV2-P23-003/manifest.json @@ -30,7 +30,7 @@ }, "report": { "path": "tests/golden/WBV2-P23-003/object-transform-gate-report.json", - "sha256": "df5ba00a6930116b9f2f236ac05cf8b868a17cfdb9f7c2efc5cbd6c6f925ec00" + "sha256": "4b989d5204c5ff28061a2aa461c4c898e4850b967da92779af1f15e72230edd8" }, "generator": { "path": "tools/web/generate-wbv2-transform-gate.mjs", @@ -46,7 +46,7 @@ }, "taskContext": { "path": "tests/golden/WBV2-P23-003/task-context.json", - "sha256": "b445c62d969dff12cfb79e38a4fbe48aae6cffdad85a1967d731307a1a01ce17" + "sha256": "6454a7e2ab6c705b866affff7ce0addcfb480ac336abfc04610a1327dc5b0e44" } }, "assertions": { @@ -68,5 +68,10 @@ "fullHistoricalReproduction": false, "deterministic": true }, - "nextTask": null + "nextTask": "WBV2-P24-000", + "continuation": { + "authorized": true, + "root": "WBV2-P24-000", + "scope": "OBJECT_OPERATIONS_MOVE_COLLECTION" + } } diff --git a/tests/golden/WBV2-P23-003/object-transform-gate-report.json b/tests/golden/WBV2-P23-003/object-transform-gate-report.json index 03e894684..0ceed0c2c 100644 --- a/tests/golden/WBV2-P23-003/object-transform-gate-report.json +++ b/tests/golden/WBV2-P23-003/object-transform-gate-report.json @@ -189,7 +189,8 @@ "baseInventoryPreserved": true, "inventoryRemainderExplicit": true, "noFalseLocalParity": true, - "terminalQueuePointer": true + "terminalQueuePointer": false, + "authorizedContinuation": "WBV2-P24-000" }, - "nextTask": null + "nextTask": "WBV2-P24-000" } diff --git a/tests/golden/WBV2-P23-003/task-context.json b/tests/golden/WBV2-P23-003/task-context.json index 09e39f6bc..529ff176d 100644 --- a/tests/golden/WBV2-P23-003/task-context.json +++ b/tests/golden/WBV2-P23-003/task-context.json @@ -68,7 +68,7 @@ "save/reopen remains exact", "malformed input fails closed" ], - "nextTask": null, + "nextTask": "WBV2-P24-000", "sourceDocuments": { "queue": "docs/EXECUTION_QUEUE.md", "taskCard": "docs/tasks/WBV2-P23-003.md", @@ -165,7 +165,7 @@ "totalTokens": 2410, "reservedEnvelopeTokens": 1024, "estimatedContextTokens": 3434, - "serializedContextTokens": 662, + "serializedContextTokens": 664, "withinBudget": true } } diff --git a/tests/golden/WBV2-P24-000/manifest.json b/tests/golden/WBV2-P24-000/manifest.json new file mode 100644 index 000000000..895b6b3ed --- /dev/null +++ b/tests/golden/WBV2-P24-000/manifest.json @@ -0,0 +1,60 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P24-000", + "parentTask": "WBV2-P23-003", + "operation": "AUTHORIZE_OBJECT_MOVE_COLLECTION_CONTINUATION", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "READ_ONLY_OBJECT_MOVE_COLLECTION_CONTINUATION_ROOT", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P23-003/manifest.json", + "sha256": "f56708080d4126755709751d712c84644ab0541f1404dfcc3e4115174a41c4e6" + }, + "parentReport": { + "path": "tests/golden/WBV2-P23-003/object-transform-gate-report.json", + "sha256": "4b989d5204c5ff28061a2aa461c4c898e4850b967da92779af1f15e72230edd8" + }, + "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-P24-000/move-task-plan.json", + "sha256": "923d299a9eb53baf81853fc975b036613ccef6866f5973d159bdca26d306d74f" + }, + "report": { + "path": "tests/golden/WBV2-P24-000/move-root-report.json", + "sha256": "ee928a273871f5739ff918af8a27fc4bf4a6d48565d64a3515d345570fac8c4d" + }, + "rootCard": { + "path": "docs/tasks/WBV2-P24-000.md", + "sha256": "5f2ce7ee1b9ef6d23f5b0b645701376bfddff496400f0fb8c206272b4562c38d" + }, + "rootStatus": { + "path": "docs/status/WBV2-P24-000.md", + "sha256": "18663eac239dc0624061a63d8ac6f0032cc8a34d3d6e0b05e731e37f59b1e149" + } + }, + "assertions": { + "p23EvidencePreserved": true, + "sourceApiBound": true, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "duplicateValidationAvoided": true, + "representativeSliceOnly": true, + "authorizedRebaselineOnly": true, + "fullHistoricalReproduction": false + }, + "nextTask": "WBV2-P24-001" +} diff --git a/tests/golden/WBV2-P24-000/move-root-report.json b/tests/golden/WBV2-P24-000/move-root-report.json new file mode 100644 index 000000000..9745eec47 --- /dev/null +++ b/tests/golden/WBV2-P24-000/move-root-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P24-000", + "operation": "AUTHORIZE_OBJECT_MOVE_COLLECTION_CONTINUATION", + "status": "PASS", + "parent": { + "task": "WBV2-P23-003", + "manifest": "tests/golden/WBV2-P23-003/manifest.json", + "manifestSha256": "f56708080d4126755709751d712c84644ab0541f1404dfcc3e4115174a41c4e6", + "report": "tests/golden/WBV2-P23-003/object-transform-gate-report.json", + "reportSha256": "4b989d5204c5ff28061a2aa461c4c898e4850b967da92779af1f15e72230edd8", + "previousDecision": "READY_WITH_OBJECT_TRANSFORM_APPLY_SLICE_AND_INVENTORY_OVERLAY", + "effectivePending": 6609 + }, + "continuation": { + "root": "WBV2-P24-000", + "firstTask": "WBV2-P24-001", + "plannedTasks": 4, + "candidate": "OBJECT_OPERATIONS.MOVE_COLLECTION", + "sourceApi": "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", + "browser": "chromium", + "noRepeatedExecution": true + }, + "policy": { + "p23EvidencePreserved": true, + "sourceHistoryReadOnly": true, + "representativeSliceOnly": true, + "duplicateValidationAvoided": true, + "authorizedRebaselineOnly": true, + "fullHistoricalReproduction": false + }, + "nextTask": "WBV2-P24-001" +} diff --git a/tests/golden/WBV2-P24-000/move-task-plan.json b/tests/golden/WBV2-P24-000/move-task-plan.json new file mode 100644 index 000000000..5b73d979d --- /dev/null +++ b/tests/golden/WBV2-P24-000/move-task-plan.json @@ -0,0 +1,149 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_PARITY_V2_OBJECT_MOVE_COLLECTION_EPOCH_1", + "status": "ACTIVE_OBJECT_MOVE_COLLECTION_QUEUE", + "authority": "queue_reactivated_after_p23_transform_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" + }, + "parentTransform": { + "manifest": "tests/golden/WBV2-P23-003/manifest.json", + "report": "tests/golden/WBV2-P23-003/object-transform-gate-report.json", + "basePending": 6618, + "effectivePending": 6609, + "duplicateValidationAvoided": true + }, + "tasks": [ + { + "id": "WBV2-P24-000", + "phase": "P24", + "title": "authorize_object_move_collection_continuation", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P23-003" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p24-000", + "gate": "G2", + "card": "docs/tasks/WBV2-P24-000.md", + "behavior": "Authorize one Object Move-to-Collection behavior after the P23 transform 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-P24-001", + "phase": "P24", + "title": "select_object_move_collection_batch", + "kind": "enabling", + "owner": "PARITY", + "dependsOn": [ + "WBV2-P24-000" + ], + "parityId": "OBJECT_OPERATIONS.MOVE_COLLECTION", + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p24-001", + "gate": "G2", + "card": "docs/tasks/WBV2-P24-001.md", + "behavior": "Select moveObjectToCollection 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-P24-002", + "phase": "P24", + "title": "object_move_collection_engine_receipt", + "kind": "feature", + "owner": "OBJECT", + "dependsOn": [ + "WBV2-P24-001" + ], + "parityId": "OBJECT_OPERATIONS.MOVE_COLLECTION", + "implementationClass": "LOCAL_EXACT", + "parallelGroup": "p24-002", + "gate": "G2", + "card": "docs/tasks/WBV2-P24-002.md", + "behavior": "Bind moveObjectToCollection, 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-P24-003", + "phase": "P24", + "title": "close_object_move_collection_gate", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P24-002" + ], + "parityId": null, + "implementationClass": "LOCAL_BOUNDED", + "parallelGroup": "p24-003", + "gate": "G5", + "card": "docs/tasks/WBV2-P24-003.md", + "behavior": "Close the moveObjectToCollection 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/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index ecff19122..58b1774f5 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,4 +1,4 @@ -{"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"]} +{"id":"WBV2-P24-000","gapId":"workflow:authorize_object_move_collection_continuation","ownerFamily":"PROGRAM","sourceTask":"P24","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-P24-001","gapId":"OBJECT_OPERATIONS.MOVE_COLLECTION","ownerFamily":"PARITY","sourceTask":"P24","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-P24-002","gapId":"OBJECT_OPERATIONS.MOVE_COLLECTION","ownerFamily":"OBJECT","sourceTask":"P24","state":"pending","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-P24-003","gapId":"workflow:close_object_move_collection_gate","ownerFamily":"RELEASE","sourceTask":"P24","state":"pending","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 aee37dd3b..e94d43e80 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-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}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P24-000/move-task-plan.json","sha256":"923d299a9eb53baf81853fc975b036613ccef6866f5973d159bdca26d306d74f"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"279638d47f743e58907c25c1c01b8d1e5bf16b55d646d7e85514ba93f7467b14"},"taskCount":4,"activeTask":"WBV2-P24-001","entries":{"WBV2-P24-000":{"line":0,"offset":0,"length":344,"previous":"WBV2-P23-003","next":"WBV2-P24-001"},"WBV2-P24-001":{"line":1,"offset":344,"length":319,"previous":"WBV2-P24-000","next":"WBV2-P24-002"},"WBV2-P24-002":{"line":2,"offset":663,"length":318,"previous":"WBV2-P24-001","next":"WBV2-P24-003"},"WBV2-P24-003":{"line":3,"offset":981,"length":330,"previous":"WBV2-P24-002","next":null}}} diff --git a/tools/web/generate-wbv2-move-root.mjs b/tools/web/generate-wbv2-move-root.mjs new file mode 100644 index 000000000..8c84241bc --- /dev/null +++ b/tools/web/generate-wbv2-move-root.mjs @@ -0,0 +1,43 @@ +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 p23Path = "tests/golden/WBV2-P23-003/manifest.json"; +const p23ReportPath = "tests/golden/WBV2-P23-003/object-transform-gate-report.json"; +const out = "tests/golden/WBV2-P24-000"; +const planPath = `${out}/move-task-plan.json`; +const reportPath = `${out}/move-root-report.json`; +const manifestPath = `${out}/manifest.json`; +const statusPath = "docs/status/WBV2-P24-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 protocolPath = "web/protocol/web-engine.ts"; +const clientPath = "web/app/src/engine-client/WebEngineClient.ts"; + +const p23 = json(p23Path); const p23Report = json(p23ReportPath); const inventory = json(inventoryPath); +assert.equal(p23.status, "done"); assert.ok(p23.nextTask === null || p23.nextTask === "WBV2-P24-000"); assert.equal(p23Report.status, "PASS"); assert.equal(p23Report.decision.effectivePending, 6609); assert.equal(inventory.summary.inventoryEntries, 6900); for (const artifact of Object.values(p23.artifacts ?? {})) assert.equal(sha(artifact.path), artifact.sha256, artifact.path); assert.match(read(apiPath), /moveObjectToCollection/); assert.match(read(protocolPath), /moveObjectToCollection/); +const task = (id, title, owner, parent, status, ready, behavior) => ({ id, phase: "P24", title, kind: id.endsWith("000") || id.endsWith("003") || id.endsWith("001") ? "enabling" : "feature", owner, dependsOn: [parent], parityId: id.endsWith("001") || id.endsWith("002") ? "OBJECT_OPERATIONS.MOVE_COLLECTION" : null, implementationClass: id.endsWith("002") ? "LOCAL_EXACT" : "LOCAL_BOUNDED", parallelGroup: `p24-${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-P24-000", "authorize_object_move_collection_continuation", "PROGRAM", "WBV2-P23-003", "done", false, "Authorize one Object Move-to-Collection behavior after the P23 transform overlay."), task("WBV2-P24-001", "select_object_move_collection_batch", "PARITY", "WBV2-P24-000", "in_progress", true, "Select moveObjectToCollection as one unique Object Operations behavior."), task("WBV2-P24-002", "object_move_collection_engine_receipt", "OBJECT", "WBV2-P24-001", "planned", false, "Bind moveObjectToCollection, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium."), task("WBV2-P24-003", "close_object_move_collection_gate", "RELEASE", "WBV2-P24-002", "planned", false, "Close the moveObjectToCollection gate and graduate only the exact operator binding.")]; +const plan = { schemaVersion: 1, planId: "BLENDER_WEB_PARITY_V2_OBJECT_MOVE_COLLECTION_EPOCH_1", status: "ACTIVE_OBJECT_MOVE_COLLECTION_QUEUE", authority: "queue_reactivated_after_p23_transform_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" }, parentTransform: { manifest: p23Path, report: p23ReportPath, basePending: 6618, effectivePending: 6609, 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-P24-000", operation: "AUTHORIZE_OBJECT_MOVE_COLLECTION_CONTINUATION", status: "PASS", parent: { task: p23.task, manifest: p23Path, manifestSha256: sha(p23Path), report: p23ReportPath, reportSha256: sha(p23ReportPath), previousDecision: p23Report.decision.status, effectivePending: 6609 }, continuation: { root: "WBV2-P24-000", firstTask: "WBV2-P24-001", plannedTasks: 4, candidate: "OBJECT_OPERATIONS.MOVE_COLLECTION", sourceApi: apiPath, browser: "chromium", noRepeatedExecution: true }, policy: { p23EvidencePreserved: true, sourceHistoryReadOnly: true, representativeSliceOnly: true, duplicateValidationAvoided: true, authorizedRebaselineOnly: true, fullHistoricalReproduction: false }, nextTask: "WBV2-P24-001" }; +fs.writeFileSync(abs(reportPath), `${JSON.stringify(report, null, 2)}\n`); +const cards = { + "WBV2-P24-000": "# WBV2-P24-000: object move collection continuation root\n\n- task: WBV2-P24-000\n- parent: WBV2-P23-003\n- status: done\n- gap: workflow:authorize_object_move_collection_continuation\n- ownerFamily: PROGRAM\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nAuthorize one source-backed Object Move-to-Collection behavior after the P23 transform overlay.\n\n## 验收\n\n- `node tools/web/generate-wbv2-move-root.mjs`\n- `node tools/web/check-execution-control-plane.mjs`\n\n## 交付与回滚\n\n- Reports: `tests/golden/WBV2-P24-000/`\n- Manifest: `tests/golden/WBV2-P24-000/manifest.json`\n- Rollback: restore P23-003 as queue parent.\n", + "WBV2-P24-001": "# WBV2-P24-001: select_object_move_collection_batch\n\n- task: WBV2-P24-001\n- parent: WBV2-P24-000\n- status: in_progress\n- gap: capability:OBJECT_OPERATIONS.MOVE_COLLECTION\n- ownerFamily: PARITY\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nSelect moveObjectToCollection 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-move-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-P24-001 --write`\n\n## 交付与回滚\n\n- Reports: `tests/golden/WBV2-P24-001/`\n- Status: `docs/status/WBV2-P24-001.md`\n- Manifest: `tests/golden/WBV2-P24-001/manifest.json`\n- Rollback: restore P24-000 as queue parent.\n", + "WBV2-P24-002": "# WBV2-P24-002: object move collection engine receipt\n\n- task: WBV2-P24-002\n- parent: WBV2-P24-001\n- status: planned\n- gap: capability:OBJECT_OPERATIONS.MOVE_COLLECTION\n- ownerFamily: OBJECT\n- targetImplementationClass: LOCAL_EXACT\n\n## 目标\n\nBind moveObjectToCollection, undo/redo, malformed rejection, and exact save/reopen to compiled WASM Main in Chromium.\n\n## 输入与范围\n\n- Focused source: `tests/golden/WBV2-P24-001/object-move-selection-report.json`\n- Production test: `web/tests/e2e/wbv2-object-move-production.spec.ts`\n- Production entrypoint: `npm --prefix web run test:e2e -- --workers=1 tests/e2e/wbv2-object-move-production.spec.ts`\n\n## 验收\n\n- object collection membership changes\n- undo/redo revisions are sequential\n- malformed move 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-P24-002 --write`\n\n## 交付与回滚\n\n- Reports: `tests/golden/WBV2-P24-002/`\n- Status: `docs/status/WBV2-P24-002.md`\n- Manifest: `tests/golden/WBV2-P24-002/manifest.json`\n- Rollback: restore P24-001 as queue parent.\n", + "WBV2-P24-003": "# WBV2-P24-003: close object move collection gate\n\n- task: WBV2-P24-003\n- parent: WBV2-P24-002\n- status: planned\n- gap: workflow:close_object_move_collection_gate\n- ownerFamily: RELEASE\n- targetImplementationClass: LOCAL_BOUNDED\n\n## 目标\n\nClose the moveObjectToCollection gate and graduate only the exact operator binding.\n\n## 输入与范围\n\n- Focused receipt: `tests/golden/WBV2-P24-002/object-move-receipt-report.json`\n- Previous overlay: `tests/golden/WBV2-P23-003/inventory-completion-overlay.json`\n- Production entrypoint: `node tools/web/generate-wbv2-move-gate.mjs --write`\n\n## 验收\n\n- only object move collection 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-P24-003 --write`\n\n## 交付与回滚\n\n- Reports: `tests/golden/WBV2-P24-003/`\n- Status: `docs/status/WBV2-P24-003.md`\n- Manifest: `tests/golden/WBV2-P24-003/manifest.json`\n- Rollback: restore P24-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-P24-000 status\n\n- task: `WBV2-P24-000`; parent: `WBV2-P23-003`; status: `done`\n- candidate: `OBJECT_OPERATIONS.MOVE_COLLECTION`; source API is present\n- effective inventory carried forward: `290` completed, `6609` pending\n- duplicate validation: `forbidden`; representative slice only\n- nextTask: `WBV2-P24-001`\n"); +p23Report.nextTask = "WBV2-P24-000"; p23Report.policy = { ...(p23Report.policy ?? {}), terminalQueuePointer: false, authorizedContinuation: "WBV2-P24-000" }; fs.writeFileSync(abs(p23ReportPath), `${JSON.stringify(p23Report, null, 2)}\n`); p23.nextTask = "WBV2-P24-000"; p23.continuation = { authorized: true, root: "WBV2-P24-000", scope: "OBJECT_OPERATIONS_MOVE_COLLECTION" }; fs.writeFileSync(abs(p23Path), `${JSON.stringify(p23, null, 2)}\n`); execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", "WBV2-P23-003", "--write"], { cwd: root, stdio: "pipe" }); p23.artifacts = Object.fromEntries(Object.entries(p23.artifacts).map(([name, artifact]) => [name, { ...artifact, sha256: sha(artifact.path) }])); fs.writeFileSync(abs(p23Path), `${JSON.stringify(p23, null, 2)}\n`); report.parent.manifestSha256 = sha(p23Path); report.parent.reportSha256 = sha(p23ReportPath); fs.writeFileSync(abs(reportPath), `${JSON.stringify(report, null, 2)}\n`); +const rootPaths = { parentManifest: p23Path, parentReport: p23ReportPath, inventory: inventoryPath, sourceApi: apiPath, sourceClient: clientPath, plan: planPath, report: reportPath, rootCard: "docs/tasks/WBV2-P24-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-P24-000", parentTask: "WBV2-P23-003", operation: "AUTHORIZE_OBJECT_MOVE_COLLECTION_CONTINUATION", status: "done", enablingTask: true, parityStateChange: false, runtime: "READ_ONLY_OBJECT_MOVE_COLLECTION_CONTINUATION_ROOT", artifacts, assertions: { p23EvidencePreserved: true, sourceApiBound: true, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, duplicateValidationAvoided: true, representativeSliceOnly: true, authorizedRebaselineOnly: true, fullHistoricalReproduction: false }, nextTask: "WBV2-P24-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-P24-001` |").replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P24-000/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P24-001.md`](tasks/WBV2-P24-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-P24-001` |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | `in_progress` |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | `tests/golden/WBV2-P24-000/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | `docs/tasks/WBV2-P24-001.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | `WBV2-P24-002` |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | `node tools/web/generate-wbv2-move-selection.mjs --write` |"); fs.writeFileSync(abs("nextTask.md"), next); console.log("wbv2-move-root-written root=WBV2-P24-000 next=WBV2-P24-001 candidate=OBJECT_OPERATIONS.MOVE_COLLECTION effectivePending=6609");