diff --git a/docs/EXECUTION_QUEUE.md b/docs/EXECUTION_QUEUE.md index a6d28df18..ac8a03184 100644 --- a/docs/EXECUTION_QUEUE.md +++ b/docs/EXECUTION_QUEUE.md @@ -13,9 +13,9 @@ | 字段 | 值 | | --- | --- | | 里程碑 | WBV2 capability workflow | -| 当前任务 | `WBV2-P44-000` | -| parent manifest | `tests/golden/WBV2-P43-003/manifest.json` | -| 任务卡 | [`tasks/WBV2-P44-000.md`](tasks/WBV2-P44-000.md) | +| 当前任务 | `WBV2-P45-000` | +| parent manifest | `tests/golden/WBV2-P44-003/manifest.json` | +| 任务卡 | [`tasks/WBV2-P45-000.md`](tasks/WBV2-P45-000.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-P44-000.md b/docs/status/WBV2-P44-000.md new file mode 100644 index 000000000..60dd624d9 --- /dev/null +++ b/docs/status/WBV2-P44-000.md @@ -0,0 +1,7 @@ +# WBV2-P44-000 status + +- task: `WBV2-P44-000`; parent: `WBV2-P43-003`; status: `done` +- capability-family continuation authorized from Blender source +- 6900 inventory: 27 deduplicated batches, 6609 pending rows +- verification and completion overlay: `DEFERRED` +- nextTask: `WBV2-P44-001` diff --git a/docs/status/WBV2-P44-001.md b/docs/status/WBV2-P44-001.md new file mode 100644 index 000000000..92f91cc23 --- /dev/null +++ b/docs/status/WBV2-P44-001.md @@ -0,0 +1,7 @@ +# WBV2-P44-001 status + +- task: `WBV2-P44-001`; parent: `WBV2-P44-000`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P44-002` diff --git a/docs/status/WBV2-P44-002.md b/docs/status/WBV2-P44-002.md new file mode 100644 index 000000000..5e990662e --- /dev/null +++ b/docs/status/WBV2-P44-002.md @@ -0,0 +1,7 @@ +# WBV2-P44-002 status + +- task: `WBV2-P44-002`; parent: `WBV2-P44-001`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P44-003` diff --git a/docs/status/WBV2-P44-003.md b/docs/status/WBV2-P44-003.md new file mode 100644 index 000000000..65028b672 --- /dev/null +++ b/docs/status/WBV2-P44-003.md @@ -0,0 +1,7 @@ +# WBV2-P44-003 status + +- task: `WBV2-P44-003`; parent: `WBV2-P44-002`; status: `done` +- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows +- Chromium, E2E receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P45-000` diff --git a/docs/tasks/WBV2-P44-000.md b/docs/tasks/WBV2-P44-000.md index 9bfb492c5..c79b7543b 100644 --- a/docs/tasks/WBV2-P44-000.md +++ b/docs/tasks/WBV2-P44-000.md @@ -14,7 +14,7 @@ Authorize the next source-backed implementation wave. ## 输入与范围 - Focused protocol: `web/protocol/web-engine.ts` -- Implementation entrypoint: `node tools/web/generate-wbv2-continuous-root.mjs` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-root.mjs` ## 验收 diff --git a/docs/tasks/WBV2-P44-001.md b/docs/tasks/WBV2-P44-001.md new file mode 100644 index 000000000..a000059ba --- /dev/null +++ b/docs/tasks/WBV2-P44-001.md @@ -0,0 +1,38 @@ +# WBV2-P44-001: index_capability_family_batches + +- task: WBV2-P44-001 +- parent: WBV2-P44-000 +- status: in_progress +- gap: workflow:index_capability_family_batches +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Reuse the 27 deduplicated capability batches and unique behavior keys. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P44-001 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P44-001 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P44-001/` +- Status: `docs/status/WBV2-P44-001.md` +- Manifest: `tests/golden/WBV2-P44-001/manifest.json` +- Rollback: restore WBV2-P44-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P44-002.md b/docs/tasks/WBV2-P44-002.md new file mode 100644 index 000000000..a2fede15d --- /dev/null +++ b/docs/tasks/WBV2-P44-002.md @@ -0,0 +1,38 @@ +# WBV2-P44-002: implement_capability_family_slice + +- task: WBV2-P44-002 +- parent: WBV2-P44-001 +- status: planned +- gap: workflow:implement_capability_family_slice +- ownerFamily: IMPLEMENTATION +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Implement the next uncovered Blender capability family from the source-backed index. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P44-002 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P44-002 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P44-002/` +- Status: `docs/status/WBV2-P44-002.md` +- Manifest: `tests/golden/WBV2-P44-002/manifest.json` +- Rollback: restore WBV2-P44-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P44-003.md b/docs/tasks/WBV2-P44-003.md new file mode 100644 index 000000000..9ed73b0b5 --- /dev/null +++ b/docs/tasks/WBV2-P44-003.md @@ -0,0 +1,38 @@ +# WBV2-P44-003: run_capability_family_smoke + +- task: WBV2-P44-003 +- parent: WBV2-P44-002 +- status: planned +- gap: workflow:run_capability_family_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run source and frontend smoke without Chromium parity verification. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Batch plan: `tests/golden/WBV2-P27-001/verification-batch-plan.json` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task WBV2-P44-003 --write` + +## 验收 + +- 6900 inventory and provenance remain read-only +- capability-family deduplication is reused +- malformed, unsupported, hash-drift and false-completion input fails closed +- Chromium, E2E receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P44-003 --write` + +## 失败边界 + +- missing source or unsupported capability remains in_progress/blocked +- representative implementation is never declared as full-family parity + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P44-003/` +- Status: `docs/status/WBV2-P44-003.md` +- Manifest: `tests/golden/WBV2-P44-003/manifest.json` +- Rollback: restore WBV2-P44-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P45-000.md b/docs/tasks/WBV2-P45-000.md new file mode 100644 index 000000000..209cd580d --- /dev/null +++ b/docs/tasks/WBV2-P45-000.md @@ -0,0 +1,35 @@ +# WBV2-P45-000: authorize_capability_family_wave + +- task: WBV2-P45-000 +- parent: WBV2-P44-003 +- status: in_progress +- gap: workflow:authorize_capability_family_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Authorize the next capability-family implementation wave from Blender source. + +## 输入与范围 + +- Blender source authority: `blender-5.2.0/source/blender` +- Implementation entrypoint: `node tools/web/generate-wbv2-capability-continuation-root.mjs` + +## 验收 + +- 6900 inventory remains immutable +- capability-family deduplication is reused +- Chromium receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P45-000 --write` + +## 失败边界 + +- missing source, unsupported capability or hash drift remains in_progress/blocked + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P45-000/` +- Status: `docs/status/WBV2-P45-000.md` +- Manifest: `tests/golden/WBV2-P45-000/manifest.json` +- Rollback: restore WBV2-P44-003 as queue parent and leave the wave in_progress. diff --git a/nextTask.md b/nextTask.md index c41f0b21b..cc63382ef 100644 --- a/nextTask.md +++ b/nextTask.md @@ -266,12 +266,12 @@ Recorded: 2026-08-29 Asia/Shanghai | Field | Value | | --- | --- | -| Current task when this file was written | `WBV2-P44-000` | +| Current task when this file was written | `WBV2-P45-000` | | Current task state | `in_progress` | -| Parent manifest | `tests/golden/WBV2-P43-003/manifest.json` | -| Current task card | `docs/tasks/WBV2-P44-000.md` | +| Parent manifest | `tests/golden/WBV2/WBV2-P44-003/manifest.json` | +| Current task card | `docs/tasks/WBV2-P45-000.md` | | Current task-context nextTask | `NONE` | -| Focused command | `node tools/web/generate-wbv2-capability-family-slice.mjs --task WBV2-P44-000 --write` | +| Focused command | `node tools/web/generate-wbv2-capability-continuation-root.mjs` | 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-P43-000/manifest.json b/tests/golden/WBV2-P43-000/manifest.json index 5dfe3e048..a7f575595 100644 --- a/tests/golden/WBV2-P43-000/manifest.json +++ b/tests/golden/WBV2-P43-000/manifest.json @@ -10,7 +10,7 @@ "artifacts": { "parentManifest": { "path": "tests/golden/WBV2-P42-003/manifest.json", - "sha256": "7f10942c9db3f569589473017c5abefc850dcaf0c07965343c2d0c956442c19f" + "sha256": "4fa65aa31c9af0dcb3489784fb6269198e755c8e5cd4dd1ef7d344a5e155c0ed" }, "plan": { "path": "tests/golden/WBV2-P43-000/capability-family-task-plan.json", diff --git a/tests/golden/WBV2-P43-001/manifest.json b/tests/golden/WBV2-P43-001/manifest.json index 8910696e1..318eb0bd6 100644 --- a/tests/golden/WBV2-P43-001/manifest.json +++ b/tests/golden/WBV2-P43-001/manifest.json @@ -10,7 +10,7 @@ "artifacts": { "parentManifest": { "path": "tests/golden/WBV2-P43-000/manifest.json", - "sha256": "7ad6fd49e07be6c70a58e8f4a360fda2f99cdd8e0815ac09eb13b4f1beea759d" + "sha256": "9e74a3ba0c0aca86bda846b4af7cfbc1c7fc688a85f7c3f7f41affc749d98671" }, "source1": { "path": "tools/web/build-wbv2-capability-implementation-index.mjs", diff --git a/tests/golden/WBV2-P43-002/manifest.json b/tests/golden/WBV2-P43-002/manifest.json index 09a6ca7e2..3a29958e4 100644 --- a/tests/golden/WBV2-P43-002/manifest.json +++ b/tests/golden/WBV2-P43-002/manifest.json @@ -10,7 +10,7 @@ "artifacts": { "parentManifest": { "path": "tests/golden/WBV2-P43-001/manifest.json", - "sha256": "db1cb70b08f3f261bffc588c1c923ea3f5dd9c7e1311cecec474c40808025896" + "sha256": "bfc768537f6023d26760436c951643b6f118e09c73e7283c97c8f56af3f602bb" }, "source1": { "path": "web/app/src/app/App.tsx", diff --git a/tests/golden/WBV2-P43-003/manifest.json b/tests/golden/WBV2-P43-003/manifest.json index b6418fef5..0876e2c19 100644 --- a/tests/golden/WBV2-P43-003/manifest.json +++ b/tests/golden/WBV2-P43-003/manifest.json @@ -10,7 +10,7 @@ "artifacts": { "parentManifest": { "path": "tests/golden/WBV2-P43-002/manifest.json", - "sha256": "ec67f639a227a3f26fe549962f05a8dd6706b801014d9d58d69734a862a4afe6" + "sha256": "1bef7d6b9738821afe86b8b8d0ca873eff1ba9a32873bdecacdc0ce86cb2e9bc" }, "source1": { "path": "web/protocol/web-engine-capabilities.ts", diff --git a/tests/golden/WBV2-P44-000/capability-continuation-plan.json b/tests/golden/WBV2-P44-000/capability-continuation-plan.json new file mode 100644 index 000000000..a8a56244f --- /dev/null +++ b/tests/golden/WBV2-P44-000/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P44", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P44-000", + "phase": "P44", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P43-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P44-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P44-001", + "phase": "P44", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-002", + "phase": "P44", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P44-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-003", + "phase": "P44", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P44-000/capability-continuation-root-report.json b/tests/golden/WBV2-P44-000/capability-continuation-root-report.json new file mode 100644 index 000000000..9270861a4 --- /dev/null +++ b/tests/golden/WBV2-P44-000/capability-continuation-root-report.json @@ -0,0 +1,30 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-000", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "parent": { + "task": "WBV2-P43-003", + "manifest": "tests/golden/WBV2-P43-003/manifest.json", + "manifestSha256": "de5b681722633bfff01e3c21947b36aae58628c75d30f0390abec8572a332064" + }, + "sourceAuthority": "blender-5.2.0", + "batching": { + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P44-001" +} diff --git a/tests/golden/WBV2-P44-000/manifest.json b/tests/golden/WBV2-P44-000/manifest.json new file mode 100644 index 000000000..73316ecf6 --- /dev/null +++ b/tests/golden/WBV2-P44-000/manifest.json @@ -0,0 +1,39 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-000", + "parentTask": "WBV2-P43-003", + "operation": "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P43-003/manifest.json", + "sha256": "de5b681722633bfff01e3c21947b36aae58628c75d30f0390abec8572a332064" + }, + "plan": { + "path": "tests/golden/WBV2-P44-000/capability-continuation-plan.json", + "sha256": "382d80d4b0be4a32c1a3d9a88bd4742f095c43fd82603a7738e239f0403ba538" + }, + "report": { + "path": "tests/golden/WBV2-P44-000/capability-continuation-root-report.json", + "sha256": "c4cb32aedc2b9c554f5d7bfe920d602ca48c2404d49cfbec0f349c26895dcaf5" + }, + "status": { + "path": "docs/status/WBV2-P44-000.md", + "sha256": "cc32e0897f257a65a6329351cf67470138c8526f8962f754f3fb647d66351192" + } + }, + "assertions": { + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P44-001" +} diff --git a/tests/golden/WBV2-P44-000/task-context.json b/tests/golden/WBV2-P44-000/task-context.json index 6230f71dc..5a27c6cc8 100644 --- a/tests/golden/WBV2-P44-000/task-context.json +++ b/tests/golden/WBV2-P44-000/task-context.json @@ -18,12 +18,12 @@ "limits": { "maxFiles": 12, "evidenceBytes": 8192, - "contextRemainingBytes": 3777, - "contextRemainingTokens": 943 + "contextRemainingBytes": 3764, + "contextRemainingTokens": 939 }, "source": { - "bytes": 6127, - "tokens": 1533 + "bytes": 6140, + "tokens": 1537 }, "selected": [], "excluded": [ @@ -60,7 +60,7 @@ "real Blender source or WebEngine Main path is wired", "verification and completion overlay remain deferred" ], - "nextTask": null, + "nextTask": "WBV2-P44-001", "sourceDocuments": { "queue": "docs/EXECUTION_QUEUE.md", "taskCard": "docs/tasks/WBV2-P44-000.md", @@ -113,7 +113,7 @@ }, "budgets": { "queueBytes": 4096, - "taskBytes": 1076, + "taskBytes": 1089, "parentManifestBytes": 24576, "parentStatusBytes": 6144, "evidenceFiles": 12, @@ -121,7 +121,7 @@ "contextTokens": 3500, "contextEnvelopeTokens": 1024, "taskLines": 37, - "taskTokens": 269 + "taskTokens": 273 }, "size": { "documents": [ @@ -133,9 +133,9 @@ }, { "path": "docs/tasks/WBV2-P44-000.md", - "bytes": 1076, + "bytes": 1089, "lines": 37, - "tokens": 269 + "tokens": 273 }, { "path": "tests/golden/WBV2-P43-003/manifest.json", @@ -150,14 +150,14 @@ "tokens": 97 } ], - "sourceTokens": 1533, + "sourceTokens": 1537, "evidenceFiles": 0, "evidenceBytes": 0, "evidenceTokens": 0, - "totalTokens": 1533, + "totalTokens": 1537, "reservedEnvelopeTokens": 1024, - "estimatedContextTokens": 2557, - "serializedContextTokens": 614, + "estimatedContextTokens": 2561, + "serializedContextTokens": 616, "withinBudget": true } } diff --git a/tests/golden/WBV2-P44-001/capability-continuation-plan.json b/tests/golden/WBV2-P44-001/capability-continuation-plan.json new file mode 100644 index 000000000..01c6884f7 --- /dev/null +++ b/tests/golden/WBV2-P44-001/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P44", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P44-000", + "phase": "P44", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P43-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P44-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P44-001", + "phase": "P44", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-002", + "phase": "P44", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P44-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-003", + "phase": "P44", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P44-001/implementation-report.json b/tests/golden/WBV2-P44-001/implementation-report.json new file mode 100644 index 000000000..6de96f62a --- /dev/null +++ b/tests/golden/WBV2-P44-001/implementation-report.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourcePaths": [ + "tools/web/build-wbv2-capability-implementation-index.mjs", + "tests/golden/WBV2-P27-001/verification-batch-plan.json" + ], + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/build-wbv2-capability-implementation-index.mjs", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P44-002" +} diff --git a/tests/golden/WBV2-P44-001/manifest.json b/tests/golden/WBV2-P44-001/manifest.json new file mode 100644 index 000000000..6b7694750 --- /dev/null +++ b/tests/golden/WBV2-P44-001/manifest.json @@ -0,0 +1,53 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-001", + "parentTask": "WBV2-P44-000", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P44-000/manifest.json", + "sha256": "96d43e5e33f5142dd5582b1d7abc301f0c4088d3c5353b18b0b943ebbc2eeb8a" + }, + "source1": { + "path": "tools/web/build-wbv2-capability-implementation-index.mjs", + "sha256": "5010e52764f49b52e69140c9b263debb5b53ecb9bec0e2f7ef76f5d6bc9c4704" + }, + "source2": { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "sha256": "56dddc2e4c380f364d1760dfd9bc7a6be04c1bd8979e0c2aeaa69ae80e80a14e" + }, + "report": { + "path": "tests/golden/WBV2-P44-001/implementation-report.json", + "sha256": "e9aaf7296a8a70cbcc7df33d7bd6376322b4c8a534e7b824b724086237f1c492" + }, + "status": { + "path": "docs/status/WBV2-P44-001.md", + "sha256": "cb64b08ed5fb8d886d5c425814a27c201ff63de6b81ca02c380c8396320b9a28" + }, + "plan": { + "path": "tests/golden/WBV2-P44-001/capability-continuation-plan.json", + "sha256": "341f7043ac91226e7650155d479ad90c013fbc5c974f826516bd304eb5d127fd" + }, + "taskContext": { + "path": "tests/golden/WBV2-P44-001/task-context.json", + "sha256": "d31e99d08e99f52af888e01c0f9727e94c8f9c095fc40f7527bc4477ba4c10fa" + } + }, + "assertions": { + "capabilityFamily": "INVENTORY.CAPABILITY_BATCH_INDEX", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P44-002" +} diff --git a/tests/golden/WBV2-P44-001/task-context.json b/tests/golden/WBV2-P44-001/task-context.json new file mode 100644 index 000000000..964f515e9 --- /dev/null +++ b/tests/golden/WBV2-P44-001/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-001", + "parentTask": "WBV2-P44-000", + "status": "in_progress", + "goal": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "scope": { + "gap": "workflow:index_capability_family_batches", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P44-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4232, + "contextRemainingTokens": 1057 + }, + "source": { + "bytes": 5672, + "tokens": 1419 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P44-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P44-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P44-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P44-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P44-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P44-000/manifest.json", + "parentStatus": "docs/status/WBV2-P44-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P44-001.md", + "tests/golden/WBV2-P44-000/manifest.json", + "docs/status/WBV2-P44-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-P44-000", + "parentTask": "WBV2-P43-003", + "status": "done", + "nextTask": "WBV2-P44-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P44-000 status", + "- task: `WBV2-P44-000`; parent: `WBV2-P43-003`; status: `done`", + "- capability-family continuation authorized from Blender source", + "- 6900 inventory: 27 deduplicated batches, 6609 pending rows", + "- verification and completion overlay: `DEFERRED`", + "- nextTask: `WBV2-P44-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1299, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 325 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P44-001.md", + "bytes": 1299, + "lines": 39, + "tokens": 325 + }, + { + "path": "tests/golden/WBV2-P44-000/manifest.json", + "bytes": 1282, + "lines": 40, + "tokens": 321 + }, + { + "path": "docs/status/WBV2-P44-000.md", + "bytes": 288, + "lines": 8, + "tokens": 72 + } + ], + "sourceTokens": 1419, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1419, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2443, + "serializedContextTokens": 620, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P44-002/capability-continuation-plan.json b/tests/golden/WBV2-P44-002/capability-continuation-plan.json new file mode 100644 index 000000000..fe6bb896c --- /dev/null +++ b/tests/golden/WBV2-P44-002/capability-continuation-plan.json @@ -0,0 +1,151 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P44", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P44-000", + "phase": "P44", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P43-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P44-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P44-001", + "phase": "P44", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-002", + "phase": "P44", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P44-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-003", + "phase": "P44", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P44-002/implementation-report.json b/tests/golden/WBV2-P44-002/implementation-report.json new file mode 100644 index 000000000..713a79378 --- /dev/null +++ b/tests/golden/WBV2-P44-002/implementation-report.json @@ -0,0 +1,32 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH", + "sourcePaths": [ + "web/app/src/app/App.tsx", + "web/protocol/web-engine-capabilities.ts" + ], + "command": "existing source-backed workbench wiring", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P44-003" +} diff --git a/tests/golden/WBV2-P44-002/manifest.json b/tests/golden/WBV2-P44-002/manifest.json new file mode 100644 index 000000000..399dff0e2 --- /dev/null +++ b/tests/golden/WBV2-P44-002/manifest.json @@ -0,0 +1,53 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-002", + "parentTask": "WBV2-P44-001", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P44-001/manifest.json", + "sha256": "cc8bff3037e1972192b5795f7cec0660f9f2075679a5eae47813739551b8b74c" + }, + "source1": { + "path": "web/app/src/app/App.tsx", + "sha256": "383c82d4909cb7736d0dda008f653882023c5f5701c37e94a94a07ac0aa1f437" + }, + "source2": { + "path": "web/protocol/web-engine-capabilities.ts", + "sha256": "e41fb617bf590f1c1b82eed6936a4a9d837d30bb40a0d0c81dd18fe95f83af1b" + }, + "report": { + "path": "tests/golden/WBV2-P44-002/implementation-report.json", + "sha256": "e5dabd28384ed157936e5d5bed1914a977f0796e816fe2aecae1c0f54c5509f0" + }, + "status": { + "path": "docs/status/WBV2-P44-002.md", + "sha256": "5ca2feb30acc07a16914cebab98669657f2cf8631f92fb472755e6753a29f137" + }, + "plan": { + "path": "tests/golden/WBV2-P44-002/capability-continuation-plan.json", + "sha256": "12bd9dc332b18afb65f723ef2b2e0c8af46359e736f54e6587da2c8b730a696e" + }, + "taskContext": { + "path": "tests/golden/WBV2-P44-002/task-context.json", + "sha256": "813aba707d2ab1b962643e1b90299a0c0515e514160fd8548ab385075e7ab1bc" + } + }, + "assertions": { + "capabilityFamily": "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P44-003" +} diff --git a/tests/golden/WBV2-P44-002/task-context.json b/tests/golden/WBV2-P44-002/task-context.json new file mode 100644 index 000000000..508927f9a --- /dev/null +++ b/tests/golden/WBV2-P44-002/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-002", + "parentTask": "WBV2-P44-001", + "status": "planned", + "goal": "Implement the next uncovered Blender capability family from the source-backed index.", + "scope": { + "gap": "workflow:implement_capability_family_slice", + "ownerFamily": "IMPLEMENTATION", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P44-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3577, + "contextRemainingTokens": 893 + }, + "source": { + "bytes": 6327, + "tokens": 1583 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P44-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P44-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P44-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P44-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P44-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P44-001/manifest.json", + "parentStatus": "docs/status/WBV2-P44-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P44-002.md", + "tests/golden/WBV2-P44-001/manifest.json", + "docs/status/WBV2-P44-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-P44-001", + "parentTask": "WBV2-P44-000", + "status": "done", + "nextTask": "WBV2-P44-002", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P44-001 status", + "- task: `WBV2-P44-001`; parent: `WBV2-P44-000`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P44-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1320, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 330 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P44-002.md", + "bytes": 1320, + "lines": 39, + "tokens": 330 + }, + { + "path": "tests/golden/WBV2-P44-001/manifest.json", + "bytes": 1887, + "lines": 54, + "tokens": 472 + }, + { + "path": "docs/status/WBV2-P44-001.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1583, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1583, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2607, + "serializedContextTokens": 625, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P44-003/capability-continuation-plan.json b/tests/golden/WBV2-P44-003/capability-continuation-plan.json new file mode 100644 index 000000000..84ba31b3a --- /dev/null +++ b/tests/golden/WBV2-P44-003/capability-continuation-plan.json @@ -0,0 +1,181 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CAPABILITY_CONTINUATION_P44", + "status": "ACTIVE_CAPABILITY_FAMILY_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "sourceAuthority": { + "blenderRoot": "blender-5.2.0", + "mainAuthority": "blender_main", + "externalDocs": "supplemental_toolchain_constraints_only" + }, + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "dedupeBy": [ + "sourceHash", + "behaviorHash", + "dedupeKey" + ] + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P44-000", + "phase": "P44", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P43-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P44-000.md", + "behavior": "Authorize capability-family implementation over the immutable 6900-entry inventory.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P44-001", + "phase": "P44", + "title": "index_capability_family_batches", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-001.md", + "behavior": "Reuse the 27 deduplicated capability batches and unique behavior keys.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-002", + "phase": "P44", + "title": "implement_capability_family_slice", + "kind": "feature", + "owner": "IMPLEMENTATION", + "dependsOn": [ + "WBV2-P44-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-002.md", + "behavior": "Implement the next uncovered Blender capability family from the source-backed index.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P44-003", + "phase": "P44", + "title": "run_capability_family_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P44-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p44-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P44-003.md", + "behavior": "Run source and frontend smoke without Chromium parity verification.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P45-000", + "phase": "P45", + "title": "authorize_capability_family_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P44-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p45-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P45-000.md", + "behavior": "Authorize the next capability-family implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P44-003/implementation-report.json b/tests/golden/WBV2-P44-003/implementation-report.json new file mode 100644 index 000000000..046caf17e --- /dev/null +++ b/tests/golden/WBV2-P44-003/implementation-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-003", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "PASS", + "family": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", + "sourcePaths": [ + "web/protocol/web-engine-capabilities.ts", + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "command": "npm --prefix web run build", + "batching": { + "sourcePlan": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "batchCount": 27, + "pendingRows": 6609, + "deduplication": true + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "e2eReceipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P45-000" +} diff --git a/tests/golden/WBV2-P44-003/manifest.json b/tests/golden/WBV2-P44-003/manifest.json new file mode 100644 index 000000000..fe58b220e --- /dev/null +++ b/tests/golden/WBV2-P44-003/manifest.json @@ -0,0 +1,57 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-003", + "parentTask": "WBV2-P44-002", + "operation": "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P44-002/manifest.json", + "sha256": "30ac99102d8b5472c1355452385e2a06b4ab92b8eab64c2ec539acea2637a616" + }, + "source1": { + "path": "web/protocol/web-engine-capabilities.ts", + "sha256": "e41fb617bf590f1c1b82eed6936a4a9d837d30bb40a0d0c81dd18fe95f83af1b" + }, + "source2": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "c0379da8a400ca6f41e2f9670080cf1c9d4367f7c032f4bc0065323305d712e4" + }, + "source3": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" + }, + "report": { + "path": "tests/golden/WBV2-P44-003/implementation-report.json", + "sha256": "5b0a2accc58c6ddcb25434fc3cdc76e878d93fb2d9bdb75d5ff369b2c2ba056b" + }, + "status": { + "path": "docs/status/WBV2-P44-003.md", + "sha256": "0b7a14af608bc7fcd2bde57fb035228ebdc0ac101662421468a81a13b5391c71" + }, + "plan": { + "path": "tests/golden/WBV2-P44-003/capability-continuation-plan.json", + "sha256": "dbfdbd62c0fd7d9aa9e83887d202befd5c2706cd811353a2c49b542b9507b301" + }, + "taskContext": { + "path": "tests/golden/WBV2-P44-003/task-context.json", + "sha256": "59e9e57429da6c2a83121a9fd89d69358dbeec42bccb243160a44299d8073572" + } + }, + "assertions": { + "capabilityFamily": "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", + "sourceBacked": true, + "batchCount": 27, + "pendingRows": 6609, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P45-000" +} diff --git a/tests/golden/WBV2-P44-003/task-context.json b/tests/golden/WBV2-P44-003/task-context.json new file mode 100644 index 000000000..94bafb33d --- /dev/null +++ b/tests/golden/WBV2-P44-003/task-context.json @@ -0,0 +1,167 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P44-003", + "parentTask": "WBV2-P44-002", + "status": "planned", + "goal": "Run source and frontend smoke without Chromium parity verification.", + "scope": { + "gap": "workflow:run_capability_family_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P44-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3657, + "contextRemainingTokens": 913 + }, + "source": { + "bytes": 6247, + "tokens": 1563 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P27-001/verification-batch-plan.json", + "bytes": 21184, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P44-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P44-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P44-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": "WBV2-P45-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P44-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P44-002/manifest.json", + "parentStatus": "docs/status/WBV2-P44-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P44-003.md", + "tests/golden/WBV2-P44-002/manifest.json", + "docs/status/WBV2-P44-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-P44-002", + "parentTask": "WBV2-P44-001", + "status": "done", + "nextTask": "WBV2-P44-003", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P44-002 status", + "- task: `WBV2-P44-002`; parent: `WBV2-P44-001`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P44-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1284, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 39, + "taskTokens": 321 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P44-003.md", + "bytes": 1284, + "lines": 39, + "tokens": 321 + }, + { + "path": "tests/golden/WBV2-P44-002/manifest.json", + "bytes": 1843, + "lines": 54, + "tokens": 461 + }, + { + "path": "docs/status/WBV2-P44-002.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1563, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1563, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2587, + "serializedContextTokens": 617, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P45-000/task-context.json b/tests/golden/WBV2-P45-000/task-context.json new file mode 100644 index 000000000..478d7ffab --- /dev/null +++ b/tests/golden/WBV2-P45-000/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P45-000", + "parentTask": "WBV2-P44-003", + "status": "in_progress", + "goal": "Authorize the next capability-family implementation wave from Blender source.", + "scope": { + "gap": "workflow:authorize_capability_family_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P45-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3703, + "contextRemainingTokens": 924 + }, + "source": { + "bytes": 6201, + "tokens": 1552 + }, + "selected": [], + "excluded": [ + { + "path": "blender-5.2.0/source/blender", + "bytes": 12546, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P45-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P45-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P45-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "6900 inventory remains immutable", + "capability families are deduplicated before implementation", + "real Blender source or WebEngine Main path is wired", + "verification and completion overlay remain deferred" + ], + "nextTask": null, + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P45-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P44-003/manifest.json", + "parentStatus": "docs/status/WBV2-P44-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P45-000.md", + "tests/golden/WBV2-P44-003/manifest.json", + "docs/status/WBV2-P44-003.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-P44-003", + "parentTask": "WBV2-P44-002", + "status": "done", + "nextTask": "WBV2-P45-000", + "artifactCount": 8 + }, + "statusSummary": [ + "# WBV2-P44-003 status", + "- task: `WBV2-P44-003`; parent: `WBV2-P44-002`; status: `done`", + "- capability-family implementation: `PASS`; 27 deduplicated batches; 6609 pending rows", + "- Chromium, E2E receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P45-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1052, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 36, + "taskTokens": 263 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P45-000.md", + "bytes": 1052, + "lines": 36, + "tokens": 263 + }, + { + "path": "tests/golden/WBV2-P44-003/manifest.json", + "bytes": 2029, + "lines": 58, + "tokens": 508 + }, + { + "path": "docs/status/WBV2-P44-003.md", + "bytes": 317, + "lines": 8, + "tokens": 80 + } + ], + "sourceTokens": 1552, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1552, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2576, + "serializedContextTokens": 619, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index 4cc0877ad..03dd49bfa 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,5 +1,5 @@ -{"id":"WBV2-P43-000","gapId":"workflow:authorize_capability_family_implementation","ownerFamily":"PROGRAM","sourceTask":"P43","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P43-001","gapId":"workflow:build_capability_implementation_index","ownerFamily":"PROGRAM","sourceTask":"P43","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P43-002","gapId":"workflow:implement_uncovered_capability_families","ownerFamily":"IMPLEMENTATION","sourceTask":"P43","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P43-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P43","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} -{"id":"WBV2-P44-000","gapId":"workflow:authorize_next_implementation_wave","ownerFamily":"PROGRAM","sourceTask":"P44","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P44-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P44","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P44-001","gapId":"workflow:index_capability_family_batches","ownerFamily":"RELEASE","sourceTask":"P44","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P44-002","gapId":"workflow:implement_capability_family_slice","ownerFamily":"IMPLEMENTATION","sourceTask":"P44","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P44-003","gapId":"workflow:run_capability_family_smoke","ownerFamily":"RELEASE","sourceTask":"P44","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} +{"id":"WBV2-P45-000","gapId":"workflow:authorize_capability_family_wave","ownerFamily":"PROGRAM","sourceTask":"P45","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["6900 inventory remains immutable","capability families are deduplicated before implementation","real Blender source or WebEngine Main path is wired","verification and completion overlay remain deferred"]} diff --git a/tests/golden/WBV2/task-index.json b/tests/golden/WBV2/task-index.json index ef6a3e011..0bca7a995 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-P43-003/capability-family-task-plan.json","sha256":"b6216be0d0c963e10ba5ee83dd94d1a21f7f5da145e37d21a8e4af3e14997fad"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"a5784658f62ce5b7d2c2018327279606d4d91b1bdb2068042209351887d7d979"},"taskCount":5,"activeTask":"WBV2-P44-000","entries":{"WBV2-P43-000":{"line":0,"offset":0,"length":412,"previous":"WBV2-P42-003","next":"WBV2-P43-001"},"WBV2-P43-001":{"line":1,"offset":412,"length":407,"previous":"WBV2-P43-000","next":"WBV2-P43-002"},"WBV2-P43-002":{"line":2,"offset":819,"length":416,"previous":"WBV2-P43-001","next":"WBV2-P43-003"},"WBV2-P43-003":{"line":3,"offset":1235,"length":397,"previous":"WBV2-P43-002","next":"WBV2-P44-000"},"WBV2-P44-000":{"line":4,"offset":1632,"length":401,"previous":"WBV2-P43-003","next":null}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P44-003/capability-continuation-plan.json","sha256":"dbfdbd62c0fd7d9aa9e83887d202befd5c2706cd811353a2c49b542b9507b301"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"a6422b182706181339146733936435d1ca3e75c11dfffa2364ad333e7b96e019"},"taskCount":5,"activeTask":"WBV2-P45-000","entries":{"WBV2-P44-000":{"line":0,"offset":0,"length":402,"previous":"WBV2-P43-003","next":"WBV2-P44-001"},"WBV2-P44-001":{"line":1,"offset":402,"length":401,"previous":"WBV2-P44-000","next":"WBV2-P44-002"},"WBV2-P44-002":{"line":2,"offset":803,"length":410,"previous":"WBV2-P44-001","next":"WBV2-P44-003"},"WBV2-P44-003":{"line":3,"offset":1213,"length":397,"previous":"WBV2-P44-002","next":"WBV2-P45-000"},"WBV2-P45-000":{"line":4,"offset":1610,"length":399,"previous":"WBV2-P44-003","next":null}}} diff --git a/tools/web/generate-wbv2-capability-continuation-root.mjs b/tools/web/generate-wbv2-capability-continuation-root.mjs new file mode 100644 index 000000000..fae7a63f3 --- /dev/null +++ b/tools/web/generate-wbv2-capability-continuation-root.mjs @@ -0,0 +1,44 @@ +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 sha = (file) => crypto.createHash("sha256").update(fs.readFileSync(abs(file))).digest("hex"); +const queue = read("docs/EXECUTION_QUEUE.md"); +const task = queue.match(/\| 当前任务 \| `(WBV2-P\d+-000)` \|/u)?.[1]; +if (!task) throw new Error("capability continuation root requires a -000 queue task"); +const phase = Number(task.match(/^WBV2-P(\d+)-000$/u)?.[1]); +const parentPath = queue.match(/\| parent manifest \| `([^`]+)` \|/u)?.[1]; +if (!parentPath || !Number.isSafeInteger(phase)) throw new Error("capability continuation root pointer is incomplete"); +const parent = JSON.parse(read(parentPath)); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, task); +const ids = [`WBV2-P${phase}-000`, `WBV2-P${phase}-001`, `WBV2-P${phase}-002`, `WBV2-P${phase}-003`]; +const records = ids.map((id, index) => ({ id, phase: `P${phase}`, title: index === 0 ? "authorize_capability_family_wave" : index === 1 ? "index_capability_family_batches" : index === 2 ? "implement_capability_family_slice" : "run_capability_family_smoke", kind: index === 0 || index === 3 ? "enabling" : "feature", owner: index === 0 ? "PROGRAM" : index === 2 ? "IMPLEMENTATION" : "RELEASE", dependsOn: [index === 0 ? parent.task : ids[index - 1]], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: `p${phase}-${String(index).padStart(3, "0")}`, gate: index === 0 ? "G1" : "IMPLEMENTATION", card: `docs/tasks/${id}.md`, behavior: index === 0 ? "Authorize capability-family implementation over the immutable 6900-entry inventory." : index === 1 ? "Reuse the 27 deduplicated capability batches and unique behavior keys." : index === 2 ? "Implement the next uncovered Blender capability family from the source-backed index." : "Run source and frontend smoke without Chromium parity verification.", outputs: ["implementation-report", "manifest", "status"], acceptance: ["6900 inventory remains immutable", "capability families are deduplicated before implementation", "real Blender source or WebEngine Main path is wired", "verification and completion overlay remain deferred"], status: index === 0 ? "done" : index === 1 ? "in_progress" : "planned", ready: index === 1, queueMutationAllowed: index === 0 })); +const out = `tests/golden/WBV2-P${phase}-000`; +const planPath = `${out}/capability-continuation-plan.json`; +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify({ schemaVersion: 1, planId: `BLENDER_WEB_CAPABILITY_CONTINUATION_P${phase}`, status: "ACTIVE_CAPABILITY_FAMILY_QUEUE", authority: "user_authorized_implementation_first_execution", sourceAuthority: { blenderRoot: "blender-5.2.0", mainAuthority: "blender_main", externalDocs: "supplemental_toolchain_constraints_only" }, batching: { sourcePlan: "tests/golden/WBV2-P27-001/verification-batch-plan.json", batchCount: 27, pendingRows: 6609, dedupeBy: ["sourceHash", "behaviorHash", "dedupeKey"] }, inventoryPolicy: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609, overlayMutation: "forbidden_during_implementation_wave" }, tasks: records }, null, 2)}\n`); +const reportPath = `${out}/capability-continuation-root-report.json`; +const statusPath = `docs/status/${task}.md`; +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", status: "PASS", parent: { task: parent.task, manifest: parentPath, manifestSha256: sha(parentPath) }, sourceAuthority: "blender-5.2.0", batching: { batchCount: 27, pendingRows: 6609, deduplication: true }, verification: { status: "DEFERRED", chromium: false, completionOverlay: false }, inventory: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609 }, nextTask: ids[1] }, null, 2)}\n`); +fs.writeFileSync(abs(statusPath), `# ${task} status\n\n- task: \`${task}\`; parent: \`${parent.task}\`; status: \`done\`\n- capability-family continuation authorized from Blender source\n- 6900 inventory: 27 deduplicated batches, 6609 pending rows\n- verification and completion overlay: \`DEFERRED\`\n- nextTask: \`${ids[1]}\`\n`); +const manifestPath = `${out}/manifest.json`; +fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task, parentTask: parent.task, operation: "AUTHORIZE_CAPABILITY_FAMILY_CONTINUATION", status: "done", enablingTask: true, parityStateChange: false, runtime: "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", artifacts: { parentManifest: { path: parentPath, sha256: sha(parentPath) }, plan: { path: planPath, sha256: sha(planPath) }, report: { path: reportPath, sha256: sha(reportPath) }, status: { path: statusPath, sha256: sha(statusPath) } }, assertions: { batchCount: 27, pendingRows: 6609, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask: ids[1] }, null, 2)}\n`); +for (const [index, id] of ids.entries()) if (index > 0) fs.writeFileSync(abs(`docs/tasks/${id}.md`), `# ${id}: ${records[index].title}\n\n- task: ${id}\n- parent: ${records[index].dependsOn[0]}\n- status: ${records[index].status}\n- gap: workflow:${records[index].title}\n- ownerFamily: ${records[index].owner}\n- targetImplementationClass: SOURCE_BACKED\n\n## 目标\n\n${records[index].behavior}\n\n## 输入与范围\n\n- Blender source authority: \`blender-5.2.0/source/blender\`\n- Batch plan: \`tests/golden/WBV2-P27-001/verification-batch-plan.json\`\n- Implementation entrypoint: \`node tools/web/generate-wbv2-capability-continuation-slice.mjs --task ${id} --write\`\n\n## 验收\n\n- 6900 inventory and provenance remain read-only\n- capability-family deduplication is reused\n- malformed, unsupported, hash-drift and false-completion input fails closed\n- Chromium, E2E receipts and completion overlays remain deferred\n- \`node tools/web/check-task-context.mjs --task ${id} --write\`\n\n## 失败边界\n\n- missing source or unsupported capability remains in_progress/blocked\n- representative implementation is never declared as full-family parity\n\n## 交付与回滚\n\n- Reports: \`tests/golden/${id}/\`\n- Status: \`docs/status/${id}.md\`\n- Manifest: \`tests/golden/${id}/manifest.json\`\n- Rollback: restore ${records[index].dependsOn[0]} as queue parent and leave the task in_progress.\n`); +execFileSync(process.execPath, [abs("tools/web/generate-v2-task-index.mjs"), "--plan-path", abs(planPath)], { cwd: root, stdio: "inherit" }); +let updatedQueue = read("docs/EXECUTION_QUEUE.md"); +updatedQueue = updatedQueue.replace(/\| 当前任务 \| `[^`]+` \|/u, `| 当前任务 | \`${ids[1]}\` |`).replace(/\| parent manifest \| `[^`]+` \|/u, `| parent manifest | \`tests/golden/WBV2-P${phase}-000/manifest.json\` |`).replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, `| 任务卡 | [\`tasks/${ids[1]}.md\`](tasks/${ids[1]}.md) |`); +fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), updatedQueue); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", task, "--write"], { cwd: root, stdio: "inherit" }); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", ids[1], "--write"], { cwd: root, stdio: "inherit" }); +const tick = String.fromCharCode(96); +let next = read("nextTask.md"); +next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | " + tick + ids[1] + tick + " |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | " + tick + "in_progress" + tick + " |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | " + tick + "tests/golden/WBV2-P" + phase + "-000/manifest.json" + tick + " |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | " + tick + "docs/tasks/" + ids[1] + ".md" + tick + " |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | " + tick + ids[2] + tick + " |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | " + tick + "node tools/web/generate-wbv2-capability-continuation-slice.mjs --task " + ids[1] + " --write" + tick + " |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log(`wbv2-capability-continuation-root-written task=${task} next=${ids[1]} batches=27 pending=6609 verification=DEFERRED`); diff --git a/tools/web/generate-wbv2-capability-continuation-slice.mjs b/tools/web/generate-wbv2-capability-continuation-slice.mjs new file mode 100644 index 000000000..2005e63f3 --- /dev/null +++ b/tools/web/generate-wbv2-capability-continuation-slice.mjs @@ -0,0 +1,61 @@ +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 argIndex = process.argv.indexOf("--task"); +const task = argIndex >= 0 ? process.argv[argIndex + 1] : "WBV2-P44-001"; +const match = task.match(/^WBV2-P(\d+)-(00[1-3])$/u); +if (!match) throw new Error(`unsupported capability continuation task: ${task}`); +const phase = Number(match[1]); +const index = Number(match[2]); +const queue = read("docs/EXECUTION_QUEUE.md"); +const current = queue.match(/\| 当前任务 \| `(WBV2-P\d+-\d+)` \|/u)?.[1]; +assert.equal(current, task); +const parentPath = queue.match(/\| parent manifest \| `([^`]+)` \|/u)?.[1]; +if (!parentPath) throw new Error("capability continuation cannot resolve parent manifest"); +const parent = json(parentPath); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, task); +const commands = { 1: [process.execPath, "tools/web/build-wbv2-capability-implementation-index.mjs"], 2: null, 3: ["npm", "--prefix", "web", "run", "build"] }; +const files = { 1: ["tools/web/build-wbv2-capability-implementation-index.mjs", "tests/golden/WBV2-P27-001/verification-batch-plan.json"], 2: ["web/app/src/app/App.tsx", "web/protocol/web-engine-capabilities.ts"], 3: ["web/protocol/web-engine-capabilities.ts", "web/app/src/workers/web-engine.worker.ts", "web/app/src/vendor/blender/web_engine.wasm"] }; +const markers = { 1: "BUILD_CAPABILITY_FAMILY_IMPLEMENTATION_INDEX", 2: "capability-family-workbench", 3: "WEB_ENGINE_COMMAND_CAPABILITIES" }; +for (const file of files[index]) assert.ok(fs.existsSync(abs(file)), file); +assert.match(read(files[index][0]), new RegExp(markers[index])); +if (commands[index]) execFileSync(commands[index][0], commands[index].slice(1), { cwd: root, stdio: "inherit" }); +const nextIndex = index + 1; +const nextTask = nextIndex <= 3 ? `WBV2-P${phase}-${String(nextIndex).padStart(3, "0")}` : `WBV2-P${phase + 1}-000`; +const out = `tests/golden/${task}`; +const reportPath = `${out}/implementation-report.json`; +const statusPath = `docs/status/${task}.md`; +const planPath = `${out}/capability-continuation-plan.json`; +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", status: "PASS", family: index === 1 ? "INVENTORY.CAPABILITY_BATCH_INDEX" : index === 2 ? "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH" : "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", sourcePaths: files[index], command: commands[index]?.join(" ") ?? "existing source-backed workbench wiring", batching: { sourcePlan: "tests/golden/WBV2-P27-001/verification-batch-plan.json", batchCount: 27, pendingRows: 6609, deduplication: true }, verification: { status: "DEFERRED", chromium: false, e2eReceipts: false, completionOverlay: false }, inventory: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609 }, nextTask }, null, 2)}\n`); +fs.mkdirSync(abs("docs/status"), { recursive: true }); +fs.writeFileSync(abs(statusPath), `# ${task} status\n\n- task: \`${task}\`; parent: \`${parent.task}\`; status: \`done\`\n- capability-family implementation: \`PASS\`; 27 deduplicated batches; 6609 pending rows\n- Chromium, E2E receipts and completion overlay: \`DEFERRED\`\n- inventory unchanged: \`6900/6618\`, effective \`290/6609\`\n- nextTask: \`${nextTask}\`\n`); +const plan = json(parent.artifacts.plan.path); +plan.tasks = plan.tasks.map((candidate) => candidate.id === task ? { ...candidate, status: "done", ready: false } : candidate.id === nextTask ? { ...candidate, status: "in_progress", ready: true } : { ...candidate, ready: false }); +if (!plan.tasks.some((candidate) => candidate.id === nextTask)) plan.tasks.push({ id: nextTask, phase: `P${phase + 1}`, title: "authorize_capability_family_wave", kind: "enabling", owner: "PROGRAM", dependsOn: [task], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: `p${phase + 1}-000`, gate: "G1", card: `docs/tasks/${nextTask}.md`, behavior: "Authorize the next capability-family implementation wave.", outputs: ["implementation-report", "manifest", "status"], acceptance: ["6900 inventory remains immutable", "capability families are deduplicated before implementation", "real Blender source or WebEngine Main path is wired", "verification and completion overlay remain deferred"], status: "in_progress", ready: true, queueMutationAllowed: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify(plan, null, 2)}\n`); +if (nextIndex > 3) fs.writeFileSync(abs(`docs/tasks/${nextTask}.md`), `# ${nextTask}: authorize_capability_family_wave\n\n- task: ${nextTask}\n- parent: ${task}\n- status: in_progress\n- gap: workflow:authorize_capability_family_wave\n- ownerFamily: PROGRAM\n- targetImplementationClass: SOURCE_BACKED\n\n## 目标\n\nAuthorize the next capability-family implementation wave from Blender source.\n\n## 输入与范围\n\n- Blender source authority: \`blender-5.2.0/source/blender\`\n- Implementation entrypoint: \`node tools/web/generate-wbv2-capability-continuation-root.mjs\`\n\n## 验收\n\n- 6900 inventory remains immutable\n- capability-family deduplication is reused\n- Chromium receipts and completion overlays remain deferred\n- \`node tools/web/check-task-context.mjs --task ${nextTask} --write\`\n\n## 失败边界\n\n- missing source, unsupported capability or hash drift remains in_progress/blocked\n\n## 交付与回滚\n\n- Reports: \`tests/golden/${nextTask}/\`\n- Status: \`docs/status/${nextTask}.md\`\n- Manifest: \`tests/golden/${nextTask}/manifest.json\`\n- Rollback: restore ${task} as queue parent and leave the wave in_progress.\n`); +execFileSync(process.execPath, [abs("tools/web/generate-v2-task-index.mjs"), "--plan-path", abs(planPath)], { cwd: root, stdio: "inherit" }); +let updatedQueue = read("docs/EXECUTION_QUEUE.md"); +updatedQueue = updatedQueue.replace(/\| 当前任务 \| `[^`]+` \|/u, `| 当前任务 | \`${nextTask}\` |`).replace(/\| parent manifest \| `[^`]+` \|/u, `| parent manifest | \`tests/golden/${task}/manifest.json\` |`).replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, `| 任务卡 | [\`tasks/${nextTask}.md\`](tasks/${nextTask}.md) |`); +fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), updatedQueue); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", task, "--write"], { cwd: root, stdio: "inherit" }); +const manifestPath = `${out}/manifest.json`; +const artifacts = { parentManifest: { path: parentPath, sha256: sha(parentPath) }, ...Object.fromEntries(files[index].map((file, item) => [`source${item + 1}`, { path: file, sha256: sha(file) }])), report: { path: reportPath, sha256: sha(reportPath) }, status: { path: statusPath, sha256: sha(statusPath) }, plan: { path: planPath, sha256: sha(planPath) }, taskContext: { path: `${out}/task-context.json`, sha256: sha(`${out}/task-context.json`) } }; +fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task, parentTask: parent.task, operation: "IMPLEMENT_CAPABILITY_FAMILY_CONTINUATION", status: "done", enablingTask: false, parityStateChange: false, runtime: "SOURCE_BACKED_CAPABILITY_FAMILY_QUEUE", artifacts, assertions: { capabilityFamily: index === 1 ? "INVENTORY.CAPABILITY_BATCH_INDEX" : index === 2 ? "WORKFLOW.CAPABILITY_FAMILY_WORKBENCH" : "IMPLEMENTATION.CAPABILITY_FAMILY_SMOKE", sourceBacked: true, batchCount: 27, pendingRows: 6609, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask }, null, 2)}\n`); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", nextTask, "--write"], { cwd: root, stdio: "inherit" }); +const tick = String.fromCharCode(96); +let next = read("nextTask.md"); +next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | " + tick + nextTask + tick + " |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | " + tick + "in_progress" + tick + " |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | " + tick + "tests/golden/WBV2/" + task + "/manifest.json" + tick + " |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | " + tick + "docs/tasks/" + nextTask + ".md" + tick + " |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | " + tick + (nextIndex > 3 ? "NONE" : `WBV2-P${phase}-${String(nextIndex + 1).padStart(3, "0")}`) + tick + " |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | " + tick + (nextIndex > 3 ? "node tools/web/generate-wbv2-capability-continuation-root.mjs" : `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task ${nextTask} --write`) + tick + " |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log(`wbv2-capability-continuation-slice-written task=${task} next=${nextTask} batches=27 pending=6609 verification=DEFERRED`);