diff --git a/docs/EXECUTION_QUEUE.md b/docs/EXECUTION_QUEUE.md index 48561bbe7..466b1b767 100644 --- a/docs/EXECUTION_QUEUE.md +++ b/docs/EXECUTION_QUEUE.md @@ -13,9 +13,9 @@ | 字段 | 值 | | --- | --- | | 里程碑 | WBV2 capability workflow | -| 当前任务 | `WBV2-P36-000` | -| parent manifest | `tests/golden/WBV2-P35-003/manifest.json` | -| 任务卡 | [`tasks/WBV2-P36-000.md`](tasks/WBV2-P36-000.md) | +| 当前任务 | `WBV2-P38-000` | +| parent manifest | `tests/golden/WBV2-P37-003/manifest.json` | +| 任务卡 | [`tasks/WBV2-P38-000.md`](tasks/WBV2-P38-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-P36-000.md b/docs/status/WBV2-P36-000.md new file mode 100644 index 000000000..fde284d48 --- /dev/null +++ b/docs/status/WBV2-P36-000.md @@ -0,0 +1,7 @@ +# WBV2-P36-000 status + +- task: `WBV2-P36-000`; parent: `WBV2-P35-003`; status: `done` +- continuous release integrity wave authorized +- verification receipts and completion overlays: `DEFERRED` +- inventory unchanged: `6900` total, `281` legacy completed, `6618` legacy pending, `290/6609` effective carried forward +- nextTask: `WBV2-P36-001` diff --git a/docs/status/WBV2-P36-001.md b/docs/status/WBV2-P36-001.md new file mode 100644 index 000000000..11a4b442b --- /dev/null +++ b/docs/status/WBV2-P36-001.md @@ -0,0 +1,7 @@ +# WBV2-P36-001 status + +- task: `WBV2-P36-001`; parent: `WBV2-P36-000`; status: `done` +- continuous release family: `RELEASE.INTEGRITY_REFRESH`; command exit: `0` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P36-002` diff --git a/docs/status/WBV2-P36-002.md b/docs/status/WBV2-P36-002.md new file mode 100644 index 000000000..eee2c0c51 --- /dev/null +++ b/docs/status/WBV2-P36-002.md @@ -0,0 +1,7 @@ +# WBV2-P36-002 status + +- task: `WBV2-P36-002`; parent: `WBV2-P36-001`; status: `done` +- continuous release family: `RELEASE.BUNDLE_BUILD`; command exit: `0` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P36-003` diff --git a/docs/status/WBV2-P36-003.md b/docs/status/WBV2-P36-003.md new file mode 100644 index 000000000..92767ae8a --- /dev/null +++ b/docs/status/WBV2-P36-003.md @@ -0,0 +1,7 @@ +# WBV2-P36-003 status + +- task: `WBV2-P36-003`; parent: `WBV2-P36-002`; status: `done` +- continuous release family: `RELEASE.HANDOFF_SMOKE`; command exit: `0` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P37-000` diff --git a/docs/status/WBV2-P37-000.md b/docs/status/WBV2-P37-000.md new file mode 100644 index 000000000..738f2f70c --- /dev/null +++ b/docs/status/WBV2-P37-000.md @@ -0,0 +1,7 @@ +# WBV2-P37-000 status + +- task: `WBV2-P37-000`; parent: `WBV2-P36-003`; status: `done` +- continuous implementation wave authorized +- verification receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P37-001` diff --git a/docs/status/WBV2-P37-001.md b/docs/status/WBV2-P37-001.md new file mode 100644 index 000000000..21352d53f --- /dev/null +++ b/docs/status/WBV2-P37-001.md @@ -0,0 +1,7 @@ +# WBV2-P37-001 status + +- task: `WBV2-P37-001`; parent: `WBV2-P37-000`; status: `done` +- continuous slice command exit: `0` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P37-002` diff --git a/docs/status/WBV2-P37-002.md b/docs/status/WBV2-P37-002.md new file mode 100644 index 000000000..4b36b7d89 --- /dev/null +++ b/docs/status/WBV2-P37-002.md @@ -0,0 +1,7 @@ +# WBV2-P37-002 status + +- task: `WBV2-P37-002`; parent: `WBV2-P37-001`; status: `done` +- continuous slice command exit: `0` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P37-003` diff --git a/docs/status/WBV2-P37-003.md b/docs/status/WBV2-P37-003.md new file mode 100644 index 000000000..ed23d2699 --- /dev/null +++ b/docs/status/WBV2-P37-003.md @@ -0,0 +1,7 @@ +# WBV2-P37-003 status + +- task: `WBV2-P37-003`; parent: `WBV2-P37-002`; status: `done` +- continuous slice command exit: `0` +- Chromium receipts and completion overlay: `DEFERRED` +- inventory unchanged: `6900/6618`, effective `290/6609` +- nextTask: `WBV2-P38-000` diff --git a/docs/tasks/WBV2-P36-000.md b/docs/tasks/WBV2-P36-000.md index 25d50e033..99c9efcf6 100644 --- a/docs/tasks/WBV2-P36-000.md +++ b/docs/tasks/WBV2-P36-000.md @@ -1,36 +1,37 @@ -# WBV2-P36-000: authorize_next_implementation_wave +# WBV2-P36-000: authorize_continuous_release_wave - task: WBV2-P36-000 - parent: WBV2-P35-003 -- status: in_progress -- gap: workflow:authorize_next_implementation_wave +- status: done +- gap: workflow:authorize_continuous_release_wave - ownerFamily: PROGRAM - targetImplementationClass: SOURCE_BACKED ## 目标 -Authorize the next source-backed implementation wave. +Authorize the next continuous source-integrity release wave. ## 输入与范围 - Focused protocol: `web/protocol/web-engine.ts` -- Implementation entrypoint: `node tools/web/generate-wbv2-p35-root.mjs` +- Implementation entrypoint: `node tools/web/generate-wbv2-p36-root.mjs` ## 验收 -- implementation-first execution remains active -- original inventory and provenance remain unchanged -- Chromium parity receipts and completion overlays remain deferred +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred - `node tools/web/check-task-context.mjs --task WBV2-P36-000 --write` ## 失败边界 -- malformed, unsupported and hash-drift inputs fail closed -- implementation evidence never changes historical provenance +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance ## 交付与回滚 - Reports: `tests/golden/WBV2-P36-000/` - Status: `docs/status/WBV2-P36-000.md` - Manifest: `tests/golden/WBV2-P36-000/manifest.json` -- Rollback: restore WBV2-P35-003 as queue parent and leave the wave in_progress. +- Rollback: restore WBV2-P35-003 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P36-001.md b/docs/tasks/WBV2-P36-001.md new file mode 100644 index 000000000..7fb6c96d9 --- /dev/null +++ b/docs/tasks/WBV2-P36-001.md @@ -0,0 +1,37 @@ +# WBV2-P36-001: refresh_release_integrity + +- task: WBV2-P36-001 +- parent: WBV2-P36-000 +- status: in_progress +- gap: workflow:refresh_release_integrity +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Refresh all implementation artifact hashes and source-build bindings. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-p36-slice.mjs --task WBV2-P36-001 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P36-001 --write` + +## 失败边界 + +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P36-001/` +- Status: `docs/status/WBV2-P36-001.md` +- Manifest: `tests/golden/WBV2-P36-001/manifest.json` +- Rollback: restore WBV2-P36-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P36-002.md b/docs/tasks/WBV2-P36-002.md new file mode 100644 index 000000000..7446b60dc --- /dev/null +++ b/docs/tasks/WBV2-P36-002.md @@ -0,0 +1,37 @@ +# WBV2-P36-002: rebuild_release_bundle + +- task: WBV2-P36-002 +- parent: WBV2-P36-001 +- status: planned +- gap: workflow:rebuild_release_bundle +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Rebuild the frontend release bundle from the current source-backed WASM. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-p36-slice.mjs --task WBV2-P36-002 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P36-002 --write` + +## 失败边界 + +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P36-002/` +- Status: `docs/status/WBV2-P36-002.md` +- Manifest: `tests/golden/WBV2-P36-002/manifest.json` +- Rollback: restore WBV2-P36-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P36-003.md b/docs/tasks/WBV2-P36-003.md new file mode 100644 index 000000000..0773697f5 --- /dev/null +++ b/docs/tasks/WBV2-P36-003.md @@ -0,0 +1,37 @@ +# WBV2-P36-003: run_p36_release_smoke + +- task: WBV2-P36-003 +- parent: WBV2-P36-002 +- status: planned +- gap: workflow:run_p36_release_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run compact handoff and build integrity smoke after P36. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-p36-slice.mjs --task WBV2-P36-003 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P36-003 --write` + +## 失败边界 + +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P36-003/` +- Status: `docs/status/WBV2-P36-003.md` +- Manifest: `tests/golden/WBV2-P36-003/manifest.json` +- Rollback: restore WBV2-P36-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P37-000.md b/docs/tasks/WBV2-P37-000.md new file mode 100644 index 000000000..c05c0ece6 --- /dev/null +++ b/docs/tasks/WBV2-P37-000.md @@ -0,0 +1,36 @@ +# WBV2-P37-000: authorize_next_implementation_wave + +- task: WBV2-P37-000 +- parent: WBV2-P36-003 +- status: in_progress +- gap: workflow:authorize_next_implementation_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +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-first execution remains active +- original inventory and provenance remain unchanged +- Chromium parity receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P37-000 --write` + +## 失败边界 + +- malformed, unsupported and hash-drift inputs fail closed +- implementation evidence never changes historical provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P37-000/` +- Status: `docs/status/WBV2-P37-000.md` +- Manifest: `tests/golden/WBV2-P37-000/manifest.json` +- Rollback: restore WBV2-P36-003 as queue parent and leave the wave in_progress. diff --git a/docs/tasks/WBV2-P37-001.md b/docs/tasks/WBV2-P37-001.md new file mode 100644 index 000000000..837d0f0b5 --- /dev/null +++ b/docs/tasks/WBV2-P37-001.md @@ -0,0 +1,37 @@ +# WBV2-P37-001: refresh_continuous_integrity + +- task: WBV2-P37-001 +- parent: WBV2-P37-000 +- status: in_progress +- gap: workflow:refresh_continuous_integrity +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Refresh implementation hashes and source-build bindings. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-continuous-slice.mjs --task WBV2-P37-001 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P37-001 --write` + +## 失败边界 + +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P37-001/` +- Status: `docs/status/WBV2-P37-001.md` +- Manifest: `tests/golden/WBV2-P37-001/manifest.json` +- Rollback: restore WBV2-P37-000 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P37-002.md b/docs/tasks/WBV2-P37-002.md new file mode 100644 index 000000000..511a0db38 --- /dev/null +++ b/docs/tasks/WBV2-P37-002.md @@ -0,0 +1,37 @@ +# WBV2-P37-002: rebuild_continuous_bundle + +- task: WBV2-P37-002 +- parent: WBV2-P37-001 +- status: planned +- gap: workflow:rebuild_continuous_bundle +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Rebuild the frontend release bundle from the current source-backed WASM. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-continuous-slice.mjs --task WBV2-P37-002 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P37-002 --write` + +## 失败边界 + +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P37-002/` +- Status: `docs/status/WBV2-P37-002.md` +- Manifest: `tests/golden/WBV2-P37-002/manifest.json` +- Rollback: restore WBV2-P37-001 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P37-003.md b/docs/tasks/WBV2-P37-003.md new file mode 100644 index 000000000..645685fff --- /dev/null +++ b/docs/tasks/WBV2-P37-003.md @@ -0,0 +1,37 @@ +# WBV2-P37-003: run_continuous_smoke + +- task: WBV2-P37-003 +- parent: WBV2-P37-002 +- status: planned +- gap: workflow:run_continuous_smoke +- ownerFamily: RELEASE +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +Run compact handoff and build integrity smoke. + +## 输入与范围 + +- Focused protocol: `web/protocol/web-engine.ts` +- Implementation entrypoint: `node tools/web/generate-wbv2-continuous-slice.mjs --task WBV2-P37-003 --write` + +## 验收 + +- real source or WebEngine Main path is wired +- worker/client/frontend route uses typed protocol without a duplicate shim +- malformed, unsupported, hash-drift or false-completion input fails closed +- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P37-003 --write` + +## 失败边界 + +- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked +- implementation evidence never changes historical inventory or provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P37-003/` +- Status: `docs/status/WBV2-P37-003.md` +- Manifest: `tests/golden/WBV2-P37-003/manifest.json` +- Rollback: restore WBV2-P37-002 as queue parent and leave the task in_progress. diff --git a/docs/tasks/WBV2-P38-000.md b/docs/tasks/WBV2-P38-000.md new file mode 100644 index 000000000..70e226fb6 --- /dev/null +++ b/docs/tasks/WBV2-P38-000.md @@ -0,0 +1,36 @@ +# WBV2-P38-000: authorize_continuous_wave + +- task: WBV2-P38-000 +- parent: WBV2-P37-003 +- status: in_progress +- gap: workflow:authorize_continuous_wave +- ownerFamily: PROGRAM +- targetImplementationClass: SOURCE_BACKED + +## 目标 + +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-first execution remains active +- original inventory and provenance remain unchanged +- Chromium parity receipts and completion overlays remain deferred +- `node tools/web/check-task-context.mjs --task WBV2-P38-000 --write` + +## 失败边界 + +- malformed, unsupported and hash-drift inputs fail closed +- implementation evidence never changes historical provenance + +## 交付与回滚 + +- Reports: `tests/golden/WBV2-P38-000/` +- Status: `docs/status/WBV2-P38-000.md` +- Manifest: `tests/golden/WBV2-P38-000/manifest.json` +- Rollback: restore WBV2-P37-003 as queue parent and leave the wave in_progress. diff --git a/nextTask.md b/nextTask.md index b931f8e22..26dc5dc63 100644 --- a/nextTask.md +++ b/nextTask.md @@ -230,12 +230,12 @@ Recorded: 2026-08-29 Asia/Shanghai | Field | Value | | --- | --- | -| Current task when this file was written | `WBV2-P36-000` | +| Current task when this file was written | `WBV2-P38-000` | | Current task state | `in_progress` | -| Parent manifest | `tests/golden/WBV2-P35-003/manifest.json` | -| Current task card | `docs/tasks/WBV2-P36-000.md` | +| Parent manifest | `tests/golden/WBV2-P37-003/manifest.json` | +| Current task card | `docs/tasks/WBV2-P38-000.md` | | Current task-context nextTask | `NONE` | -| Focused command | `node tools/web/generate-wbv2-p35-slice.mjs --task WBV2-P36-000 --write` | +| Focused command | `node tools/web/generate-wbv2-continuous-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-P36-000/manifest.json b/tests/golden/WBV2-P36-000/manifest.json new file mode 100644 index 000000000..bd7665ca3 --- /dev/null +++ b/tests/golden/WBV2-P36-000/manifest.json @@ -0,0 +1,38 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-000", + "parentTask": "WBV2-P35-003", + "operation": "AUTHORIZE_CONTINUOUS_RELEASE_WAVE", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_RELEASE_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P35-003/manifest.json", + "sha256": "ad4def523ac222305b593375da073a79c670e2b7a9f58a01d0797ad23d774e3a" + }, + "plan": { + "path": "tests/golden/WBV2-P36-000/release-task-plan.json", + "sha256": "bd5dd26d306f1de21a0817a119a7b6f13bcbba19ea388614ff937f8b6c943c39" + }, + "report": { + "path": "tests/golden/WBV2-P36-000/release-root-report.json", + "sha256": "5fad53ebca5b07cd39294ffc68161437d14514528ec6e8227010e78d87e1a2cb" + }, + "status": { + "path": "docs/status/WBV2-P36-000.md", + "sha256": "e5c822f80fdaed94347d968ed01c29782b9a4004476ddd74a998f602d7077842" + } + }, + "assertions": { + "plannedTasks": 4, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P36-001" +} diff --git a/tests/golden/WBV2-P36-000/release-root-report.json b/tests/golden/WBV2-P36-000/release-root-report.json new file mode 100644 index 000000000..5abc06d14 --- /dev/null +++ b/tests/golden/WBV2-P36-000/release-root-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-000", + "operation": "AUTHORIZE_CONTINUOUS_RELEASE_WAVE", + "status": "PASS", + "parent": { + "task": "WBV2-P35-003", + "manifest": "tests/golden/WBV2-P35-003/manifest.json", + "manifestSha256": "ad4def523ac222305b593375da073a79c670e2b7a9f58a01d0797ad23d774e3a" + }, + "scope": { + "firstTask": "WBV2-P36-001", + "plannedTasks": [ + "WBV2-P36-000", + "WBV2-P36-001", + "WBV2-P36-002", + "WBV2-P36-003" + ] + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P36-001" +} diff --git a/tests/golden/WBV2-P36-000/release-task-plan.json b/tests/golden/WBV2-P36-000/release-task-plan.json new file mode 100644 index 000000000..58c315116 --- /dev/null +++ b/tests/golden/WBV2-P36-000/release-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_RELEASE_P36", + "status": "ACTIVE_CONTINUOUS_RELEASE_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P36-000", + "phase": "P36", + "title": "authorize_continuous_release_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P35-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P36-000.md", + "behavior": "Authorize the next continuous source-integrity release wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P36-001", + "phase": "P36", + "title": "refresh_release_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-001.md", + "behavior": "Refresh all implementation artifact hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-002", + "phase": "P36", + "title": "rebuild_release_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-003", + "phase": "P36", + "title": "run_p36_release_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-003.md", + "behavior": "Run compact handoff and build integrity smoke after P36.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P36-000/task-context.json b/tests/golden/WBV2-P36-000/task-context.json index 8e1776fd5..e8e44b76a 100644 --- a/tests/golden/WBV2-P36-000/task-context.json +++ b/tests/golden/WBV2-P36-000/task-context.json @@ -2,10 +2,10 @@ "schemaVersion": 1, "task": "WBV2-P36-000", "parentTask": "WBV2-P35-003", - "status": "in_progress", - "goal": "Authorize the next source-backed implementation wave.", + "status": "done", + "goal": "Authorize the next continuous source-integrity release wave.", "scope": { - "gap": "workflow:authorize_next_implementation_wave", + "gap": "workflow:authorize_continuous_release_wave", "ownerFamily": "PROGRAM", "implementationClass": "SOURCE_BACKED" }, @@ -18,12 +18,12 @@ "limits": { "maxFiles": 12, "evidenceBytes": 8192, - "contextRemainingBytes": 3912, - "contextRemainingTokens": 976 + "contextRemainingBytes": 3692, + "contextRemainingTokens": 921 }, "source": { - "bytes": 5992, - "tokens": 1500 + "bytes": 6212, + "tokens": 1555 }, "selected": [], "excluded": [ @@ -60,7 +60,7 @@ "implementation smoke is reproducible", "verification remains deferred" ], - "nextTask": null, + "nextTask": "WBV2-P36-001", "sourceDocuments": { "queue": "docs/EXECUTION_QUEUE.md", "taskCard": "docs/tasks/WBV2-P36-000.md", @@ -112,15 +112,15 @@ }, "budgets": { "queueBytes": 4096, - "taskBytes": 1069, + "taskBytes": 1289, "parentManifestBytes": 24576, "parentStatusBytes": 6144, "evidenceFiles": 12, "evidenceBytes": 8192, "contextTokens": 3500, "contextEnvelopeTokens": 1024, - "taskLines": 37, - "taskTokens": 268 + "taskLines": 38, + "taskTokens": 323 }, "size": { "documents": [ @@ -132,9 +132,9 @@ }, { "path": "docs/tasks/WBV2-P36-000.md", - "bytes": 1069, - "lines": 37, - "tokens": 268 + "bytes": 1289, + "lines": 38, + "tokens": 323 }, { "path": "tests/golden/WBV2-P35-003/manifest.json", @@ -149,14 +149,14 @@ "tokens": 76 } ], - "sourceTokens": 1500, + "sourceTokens": 1555, "evidenceFiles": 0, "evidenceBytes": 0, "evidenceTokens": 0, - "totalTokens": 1500, + "totalTokens": 1555, "reservedEnvelopeTokens": 1024, - "estimatedContextTokens": 2524, - "serializedContextTokens": 600, + "estimatedContextTokens": 2579, + "serializedContextTokens": 603, "withinBudget": true } } diff --git a/tests/golden/WBV2-P36-001/implementation-report.json b/tests/golden/WBV2-P36-001/implementation-report.json new file mode 100644 index 000000000..e9b5e1f2b --- /dev/null +++ b/tests/golden/WBV2-P36-001/implementation-report.json @@ -0,0 +1,25 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-001", + "operation": "RUN_CONTINUOUS_RELEASE_SLICE", + "status": "PASS", + "family": "RELEASE.INTEGRITY_REFRESH", + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/refresh-wbv2-implementation-hashes.mjs", + "sourcePaths": [ + "tools/web/refresh-wbv2-implementation-hashes.mjs", + "tests/golden/WBV2-P27-002/source-build-report.json" + ], + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P36-002" +} diff --git a/tests/golden/WBV2-P36-001/manifest.json b/tests/golden/WBV2-P36-001/manifest.json new file mode 100644 index 000000000..2783aef2a --- /dev/null +++ b/tests/golden/WBV2-P36-001/manifest.json @@ -0,0 +1,52 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-001", + "parentTask": "WBV2-P36-000", + "operation": "RUN_CONTINUOUS_RELEASE_SLICE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_RELEASE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P36-000/manifest.json", + "sha256": "b278f54c440fc7c92c95262aa4c656a2eec4ee0b4f9bfea65496246f969254db" + }, + "source1": { + "path": "tools/web/refresh-wbv2-implementation-hashes.mjs", + "sha256": "62b4c224466df7903f0b940c56a962a41b9011efc9b0b4c472c543a300a48a61" + }, + "source2": { + "path": "tests/golden/WBV2-P27-002/source-build-report.json", + "sha256": "e6fa1f79c5cef831de258b48cba6b19c4f60e8bc61475ef554c1514d5abbe76a" + }, + "report": { + "path": "tests/golden/WBV2-P36-001/implementation-report.json", + "sha256": "465346b022f00fe3e4529ae6c8640c38b4d2c4155894d4d75894d7a30e36d908" + }, + "status": { + "path": "docs/status/WBV2-P36-001.md", + "sha256": "18f6d8100be55695c3d860dfa898a5ba6c12da1de0fe864538b13bc3b4adaeb5" + }, + "plan": { + "path": "tests/golden/WBV2-P36-001/release-task-plan.json", + "sha256": "911c2114d9b59814e4b7295246b5865b1edf3b951aeb9b901eb412e8b60fc398" + }, + "taskContext": { + "path": "tests/golden/WBV2-P36-001/task-context.json", + "sha256": "9ac2f29af7faedc0228317d7c65658a3c4c05d2304785ea42f702ef1bb7319dc" + } + }, + "assertions": { + "capabilityFamily": "RELEASE.INTEGRITY_REFRESH", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P36-002" +} diff --git a/tests/golden/WBV2-P36-001/release-task-plan.json b/tests/golden/WBV2-P36-001/release-task-plan.json new file mode 100644 index 000000000..358bcbcaf --- /dev/null +++ b/tests/golden/WBV2-P36-001/release-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_RELEASE_P36", + "status": "ACTIVE_CONTINUOUS_RELEASE_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P36-000", + "phase": "P36", + "title": "authorize_continuous_release_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P35-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P36-000.md", + "behavior": "Authorize the next continuous source-integrity release wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P36-001", + "phase": "P36", + "title": "refresh_release_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-001.md", + "behavior": "Refresh all implementation artifact hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-002", + "phase": "P36", + "title": "rebuild_release_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-003", + "phase": "P36", + "title": "run_p36_release_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-003.md", + "behavior": "Run compact handoff and build integrity smoke after P36.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P36-001/task-context.json b/tests/golden/WBV2-P36-001/task-context.json new file mode 100644 index 000000000..4ab59404a --- /dev/null +++ b/tests/golden/WBV2-P36-001/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-001", + "parentTask": "WBV2-P36-000", + "status": "in_progress", + "goal": "Refresh all implementation artifact hashes and source-build bindings.", + "scope": { + "gap": "workflow:refresh_release_integrity", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P36-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4217, + "contextRemainingTokens": 1052 + }, + "source": { + "bytes": 5687, + "tokens": 1424 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P36-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P36-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P36-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P36-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P36-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P36-000/manifest.json", + "parentStatus": "docs/status/WBV2-P36-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P36-001.md", + "tests/golden/WBV2-P36-000/manifest.json", + "docs/status/WBV2-P36-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-P36-000", + "parentTask": "WBV2-P35-003", + "status": "done", + "nextTask": "WBV2-P36-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P36-000 status", + "- task: `WBV2-P36-000`; parent: `WBV2-P35-003`; status: `done`", + "- continuous release integrity wave authorized", + "- verification receipts and completion overlays: `DEFERRED`", + "- inventory unchanged: `6900` total, `281` legacy completed, `6618` legacy pending, `290/6609` effective carried forward", + "- nextTask: `WBV2-P36-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1318, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 330 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P36-001.md", + "bytes": 1318, + "lines": 38, + "tokens": 330 + }, + { + "path": "tests/golden/WBV2-P36-000/manifest.json", + "bytes": 1225, + "lines": 39, + "tokens": 307 + }, + { + "path": "docs/status/WBV2-P36-000.md", + "bytes": 341, + "lines": 8, + "tokens": 86 + } + ], + "sourceTokens": 1424, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1424, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2448, + "serializedContextTokens": 605, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P36-002/implementation-report.json b/tests/golden/WBV2-P36-002/implementation-report.json new file mode 100644 index 000000000..41b4d59cf --- /dev/null +++ b/tests/golden/WBV2-P36-002/implementation-report.json @@ -0,0 +1,25 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-002", + "operation": "RUN_CONTINUOUS_RELEASE_SLICE", + "status": "PASS", + "family": "RELEASE.BUNDLE_BUILD", + "command": "npm --prefix web run build", + "sourcePaths": [ + "web/package.json", + "web/app/vite.config.ts" + ], + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P36-003" +} diff --git a/tests/golden/WBV2-P36-002/manifest.json b/tests/golden/WBV2-P36-002/manifest.json new file mode 100644 index 000000000..fd8505726 --- /dev/null +++ b/tests/golden/WBV2-P36-002/manifest.json @@ -0,0 +1,52 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-002", + "parentTask": "WBV2-P36-001", + "operation": "RUN_CONTINUOUS_RELEASE_SLICE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_RELEASE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P36-001/manifest.json", + "sha256": "141ed37b2074a30246e5a7cf01aee49c1f1807068d171d830af3bfdbd0ae367e" + }, + "source1": { + "path": "web/package.json", + "sha256": "40b7f14d4f568ae94bedde83e02115c127e0c714e5eb32a6a97b1e1084c4fa68" + }, + "source2": { + "path": "web/app/vite.config.ts", + "sha256": "22d78df08340dc0cd1767e912443d8bf796079e990c4818f821861b4bd445d62" + }, + "report": { + "path": "tests/golden/WBV2-P36-002/implementation-report.json", + "sha256": "e7e2986bf052f394fe21ab1073775a86ca89f2a383c6aae2b4286173303f76d6" + }, + "status": { + "path": "docs/status/WBV2-P36-002.md", + "sha256": "150cc5ab66ab7ac672b3ab62d43ea0620befeb0f8bdf4fed694ddecb0670dfdb" + }, + "plan": { + "path": "tests/golden/WBV2-P36-002/release-task-plan.json", + "sha256": "f204d562b39f6a0205d0f984a53278c123812b414a40b35555cbbc53173acb9b" + }, + "taskContext": { + "path": "tests/golden/WBV2-P36-002/task-context.json", + "sha256": "6c8f17072e3f826ade11d45492a4afd8ebc016c7885ca9ccb564b6b4bfaf688c" + } + }, + "assertions": { + "capabilityFamily": "RELEASE.BUNDLE_BUILD", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P36-003" +} diff --git a/tests/golden/WBV2-P36-002/release-task-plan.json b/tests/golden/WBV2-P36-002/release-task-plan.json new file mode 100644 index 000000000..3fdacdb9c --- /dev/null +++ b/tests/golden/WBV2-P36-002/release-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_RELEASE_P36", + "status": "ACTIVE_CONTINUOUS_RELEASE_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P36-000", + "phase": "P36", + "title": "authorize_continuous_release_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P35-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P36-000.md", + "behavior": "Authorize the next continuous source-integrity release wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P36-001", + "phase": "P36", + "title": "refresh_release_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-001.md", + "behavior": "Refresh all implementation artifact hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-002", + "phase": "P36", + "title": "rebuild_release_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-003", + "phase": "P36", + "title": "run_p36_release_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-003.md", + "behavior": "Run compact handoff and build integrity smoke after P36.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P36-002/task-context.json b/tests/golden/WBV2-P36-002/task-context.json new file mode 100644 index 000000000..abf7eda63 --- /dev/null +++ b/tests/golden/WBV2-P36-002/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-002", + "parentTask": "WBV2-P36-001", + "status": "planned", + "goal": "Rebuild the frontend release bundle from the current source-backed WASM.", + "scope": { + "gap": "workflow:rebuild_release_bundle", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P36-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3660, + "contextRemainingTokens": 913 + }, + "source": { + "bytes": 6244, + "tokens": 1563 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P36-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P36-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P36-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P36-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P36-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P36-001/manifest.json", + "parentStatus": "docs/status/WBV2-P36-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P36-002.md", + "tests/golden/WBV2-P36-001/manifest.json", + "docs/status/WBV2-P36-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-P36-001", + "parentTask": "WBV2-P36-000", + "status": "done", + "nextTask": "WBV2-P36-002", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P36-001 status", + "- task: `WBV2-P36-001`; parent: `WBV2-P36-000`; status: `done`", + "- continuous release family: `RELEASE.INTEGRITY_REFRESH`; command exit: `0`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P36-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1311, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 328 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P36-002.md", + "bytes": 1311, + "lines": 38, + "tokens": 328 + }, + { + "path": "tests/golden/WBV2-P36-001/manifest.json", + "bytes": 1829, + "lines": 53, + "tokens": 458 + }, + { + "path": "docs/status/WBV2-P36-001.md", + "bytes": 301, + "lines": 8, + "tokens": 76 + } + ], + "sourceTokens": 1563, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1563, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2587, + "serializedContextTokens": 604, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P36-003/implementation-report.json b/tests/golden/WBV2-P36-003/implementation-report.json new file mode 100644 index 000000000..c6fdb6054 --- /dev/null +++ b/tests/golden/WBV2-P36-003/implementation-report.json @@ -0,0 +1,25 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-003", + "operation": "RUN_CONTINUOUS_RELEASE_SLICE", + "status": "PASS", + "family": "RELEASE.HANDOFF_SMOKE", + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/check-v2-handoff.mjs", + "sourcePaths": [ + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P37-000" +} diff --git a/tests/golden/WBV2-P36-003/manifest.json b/tests/golden/WBV2-P36-003/manifest.json new file mode 100644 index 000000000..4e652e3b6 --- /dev/null +++ b/tests/golden/WBV2-P36-003/manifest.json @@ -0,0 +1,52 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-003", + "parentTask": "WBV2-P36-002", + "operation": "RUN_CONTINUOUS_RELEASE_SLICE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_RELEASE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P36-002/manifest.json", + "sha256": "385d1145561710babd248ce2b894977af875f22602d8e47708bd1c82fa701515" + }, + "source1": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "c0379da8a400ca6f41e2f9670080cf1c9d4367f7c032f4bc0065323305d712e4" + }, + "source2": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" + }, + "report": { + "path": "tests/golden/WBV2-P36-003/implementation-report.json", + "sha256": "d3c295133e04e4d4986f7a8a38115372df97f434e7acd420f237d2455d3c4437" + }, + "status": { + "path": "docs/status/WBV2-P36-003.md", + "sha256": "b36384250c8b7195574cbee76aa1814c4ae854b5abe092de732511b595337746" + }, + "plan": { + "path": "tests/golden/WBV2-P36-003/release-task-plan.json", + "sha256": "4caa057eba45374915e56a3238897e804c5df76f9332e55ccb98bcdac3eb8399" + }, + "taskContext": { + "path": "tests/golden/WBV2-P36-003/task-context.json", + "sha256": "de3ed7a3c350e8fd3e06c955576a0f041e829bb14810088e3e2b5028c3ea7d6b" + } + }, + "assertions": { + "capabilityFamily": "RELEASE.HANDOFF_SMOKE", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P37-000" +} diff --git a/tests/golden/WBV2-P36-003/release-task-plan.json b/tests/golden/WBV2-P36-003/release-task-plan.json new file mode 100644 index 000000000..9a6b8aca2 --- /dev/null +++ b/tests/golden/WBV2-P36-003/release-task-plan.json @@ -0,0 +1,174 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_RELEASE_P36", + "status": "ACTIVE_CONTINUOUS_RELEASE_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P36-000", + "phase": "P36", + "title": "authorize_continuous_release_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P35-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P36-000.md", + "behavior": "Authorize the next continuous source-integrity release wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P36-001", + "phase": "P36", + "title": "refresh_release_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-001.md", + "behavior": "Refresh all implementation artifact hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-002", + "phase": "P36", + "title": "rebuild_release_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P36-003", + "phase": "P36", + "title": "run_p36_release_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P36-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p36-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P36-003.md", + "behavior": "Run compact handoff and build integrity smoke after P36.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-000", + "phase": "P37", + "title": "authorize_next_implementation_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P36-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P37-000.md", + "behavior": "Authorize the next source-backed implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P36-003/task-context.json b/tests/golden/WBV2-P36-003/task-context.json new file mode 100644 index 000000000..8b8f93ff9 --- /dev/null +++ b/tests/golden/WBV2-P36-003/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P36-003", + "parentTask": "WBV2-P36-002", + "status": "planned", + "goal": "Run compact handoff and build integrity smoke after P36.", + "scope": { + "gap": "workflow:run_p36_release_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P36-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3748, + "contextRemainingTokens": 936 + }, + "source": { + "bytes": 6156, + "tokens": 1540 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P36-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P36-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P36-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P37-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P36-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P36-002/manifest.json", + "parentStatus": "docs/status/WBV2-P36-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P36-003.md", + "tests/golden/WBV2-P36-002/manifest.json", + "docs/status/WBV2-P36-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-P36-002", + "parentTask": "WBV2-P36-001", + "status": "done", + "nextTask": "WBV2-P36-003", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P36-002 status", + "- task: `WBV2-P36-002`; parent: `WBV2-P36-001`; status: `done`", + "- continuous release family: `RELEASE.BUNDLE_BUILD`; command exit: `0`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P36-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1293, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 324 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P36-003.md", + "bytes": 1293, + "lines": 38, + "tokens": 324 + }, + { + "path": "tests/golden/WBV2-P36-002/manifest.json", + "bytes": 1764, + "lines": 53, + "tokens": 441 + }, + { + "path": "docs/status/WBV2-P36-002.md", + "bytes": 296, + "lines": 8, + "tokens": 74 + } + ], + "sourceTokens": 1540, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1540, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2564, + "serializedContextTokens": 599, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P37-000/continuous-root-report.json b/tests/golden/WBV2-P37-000/continuous-root-report.json new file mode 100644 index 000000000..5afdd441e --- /dev/null +++ b/tests/golden/WBV2-P37-000/continuous-root-report.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-000", + "operation": "AUTHORIZE_CONTINUOUS_IMPLEMENTATION_WAVE", + "status": "PASS", + "parent": { + "task": "WBV2-P36-003", + "manifest": "tests/golden/WBV2-P36-003/manifest.json", + "manifestSha256": "68dc9c24a08c838bb81ee7066c8ed3294ea058729177cc90ca237627a51193c6" + }, + "scope": { + "firstTask": "WBV2-P37-001", + "plannedTasks": [ + "WBV2-P37-000", + "WBV2-P37-001", + "WBV2-P37-002", + "WBV2-P37-003" + ] + }, + "verification": { + "status": "DEFERRED", + "chromium": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P37-001" +} diff --git a/tests/golden/WBV2-P37-000/continuous-task-plan.json b/tests/golden/WBV2-P37-000/continuous-task-plan.json new file mode 100644 index 000000000..50618a5f3 --- /dev/null +++ b/tests/golden/WBV2-P37-000/continuous-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_P37", + "status": "ACTIVE_CONTINUOUS_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P37-000", + "phase": "P37", + "title": "authorize_continuous_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P36-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P37-000.md", + "behavior": "Authorize the next continuous source implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P37-001", + "phase": "P37", + "title": "refresh_continuous_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-001.md", + "behavior": "Refresh implementation hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-002", + "phase": "P37", + "title": "rebuild_continuous_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-003", + "phase": "P37", + "title": "run_continuous_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-003.md", + "behavior": "Run compact handoff and build integrity smoke.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P37-000/manifest.json b/tests/golden/WBV2-P37-000/manifest.json new file mode 100644 index 000000000..2c3d7c5c5 --- /dev/null +++ b/tests/golden/WBV2-P37-000/manifest.json @@ -0,0 +1,38 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-000", + "parentTask": "WBV2-P36-003", + "operation": "AUTHORIZE_CONTINUOUS_IMPLEMENTATION_WAVE", + "status": "done", + "enablingTask": true, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P36-003/manifest.json", + "sha256": "68dc9c24a08c838bb81ee7066c8ed3294ea058729177cc90ca237627a51193c6" + }, + "plan": { + "path": "tests/golden/WBV2-P37-000/continuous-task-plan.json", + "sha256": "dbe3251582030dded02e0e6d4dfdafcff572909fde91230eadb5df9a35b6ac92" + }, + "report": { + "path": "tests/golden/WBV2-P37-000/continuous-root-report.json", + "sha256": "b8d47979a0e3ed3351877b32b8e5f42092fc3d150756a5cb356ae0de1fd84e91" + }, + "status": { + "path": "docs/status/WBV2-P37-000.md", + "sha256": "6447ba935e2a6e725d153600578f504be931db1bf15d772b82ce23bdd827548f" + } + }, + "assertions": { + "plannedTasks": 5, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P37-001" +} diff --git a/tests/golden/WBV2-P37-000/task-context.json b/tests/golden/WBV2-P37-000/task-context.json new file mode 100644 index 000000000..4966246d2 --- /dev/null +++ b/tests/golden/WBV2-P37-000/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-000", + "parentTask": "WBV2-P36-003", + "status": "in_progress", + "goal": "Authorize the next source-backed implementation wave.", + "scope": { + "gap": "workflow:authorize_next_implementation_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P37-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3919, + "contextRemainingTokens": 978 + }, + "source": { + "bytes": 5985, + "tokens": 1498 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P37-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P37-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P37-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P37-001", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P37-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P36-003/manifest.json", + "parentStatus": "docs/status/WBV2-P36-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P37-000.md", + "tests/golden/WBV2-P36-003/manifest.json", + "docs/status/WBV2-P36-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-P36-003", + "parentTask": "WBV2-P36-002", + "status": "done", + "nextTask": "WBV2-P37-000", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P36-003 status", + "- task: `WBV2-P36-003`; parent: `WBV2-P36-002`; status: `done`", + "- continuous release family: `RELEASE.HANDOFF_SMOKE`; command exit: `0`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P37-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1076, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 37, + "taskTokens": 269 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P37-000.md", + "bytes": 1076, + "lines": 37, + "tokens": 269 + }, + { + "path": "tests/golden/WBV2-P36-003/manifest.json", + "bytes": 1809, + "lines": 53, + "tokens": 453 + }, + { + "path": "docs/status/WBV2-P36-003.md", + "bytes": 297, + "lines": 8, + "tokens": 75 + } + ], + "sourceTokens": 1498, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1498, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2522, + "serializedContextTokens": 603, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P37-001/continuous-task-plan.json b/tests/golden/WBV2-P37-001/continuous-task-plan.json new file mode 100644 index 000000000..a40412b76 --- /dev/null +++ b/tests/golden/WBV2-P37-001/continuous-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_P37", + "status": "ACTIVE_CONTINUOUS_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P37-000", + "phase": "P37", + "title": "authorize_continuous_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P36-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P37-000.md", + "behavior": "Authorize the next continuous source implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P37-001", + "phase": "P37", + "title": "refresh_continuous_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-001.md", + "behavior": "Refresh implementation hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-002", + "phase": "P37", + "title": "rebuild_continuous_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-003", + "phase": "P37", + "title": "run_continuous_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-003.md", + "behavior": "Run compact handoff and build integrity smoke.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "planned", + "ready": false, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P37-001/implementation-report.json b/tests/golden/WBV2-P37-001/implementation-report.json new file mode 100644 index 000000000..88568cd0d --- /dev/null +++ b/tests/golden/WBV2-P37-001/implementation-report.json @@ -0,0 +1,25 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-001", + "operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", + "status": "PASS", + "family": "RELEASE.INTEGRITY_REFRESH", + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/refresh-wbv2-implementation-hashes.mjs", + "sourcePaths": [ + "tools/web/refresh-wbv2-implementation-hashes.mjs" + ], + "verification": { + "status": "DEFERRED", + "chromium": false, + "receipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P37-002" +} diff --git a/tests/golden/WBV2-P37-001/manifest.json b/tests/golden/WBV2-P37-001/manifest.json new file mode 100644 index 000000000..d7daae102 --- /dev/null +++ b/tests/golden/WBV2-P37-001/manifest.json @@ -0,0 +1,48 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-001", + "parentTask": "WBV2-P37-000", + "operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P37-000/manifest.json", + "sha256": "4d7942b8abe36f764fb365daf3c6667644ccfd49b7eb9a2bb0f6ddaa8dadb31a" + }, + "source1": { + "path": "tools/web/refresh-wbv2-implementation-hashes.mjs", + "sha256": "62b4c224466df7903f0b940c56a962a41b9011efc9b0b4c472c543a300a48a61" + }, + "report": { + "path": "tests/golden/WBV2-P37-001/implementation-report.json", + "sha256": "c9da64c21c20cdc9e5f71665917dfec7fd0e8f728ea326bf78784b4daa7a187c" + }, + "status": { + "path": "docs/status/WBV2-P37-001.md", + "sha256": "0cf361085268d2de40112280c123e13014166a7781d81cc037efe346b91bc653" + }, + "plan": { + "path": "tests/golden/WBV2-P37-001/continuous-task-plan.json", + "sha256": "0d330fbef63428d8afcd3e7640206fa5fc397295869300279f2ab77108b652a6" + }, + "taskContext": { + "path": "tests/golden/WBV2-P37-001/task-context.json", + "sha256": "1b7cf6954c09a7e7c3df07c584929719c36a4cfb39650373836c26d00b0c0576" + } + }, + "assertions": { + "capabilityFamily": "RELEASE.INTEGRITY_REFRESH", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P37-002" +} diff --git a/tests/golden/WBV2-P37-001/task-context.json b/tests/golden/WBV2-P37-001/task-context.json new file mode 100644 index 000000000..f9abbf197 --- /dev/null +++ b/tests/golden/WBV2-P37-001/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-001", + "parentTask": "WBV2-P37-000", + "status": "in_progress", + "goal": "Refresh implementation hashes and source-build bindings.", + "scope": { + "gap": "workflow:refresh_continuous_integrity", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P37-001 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 4280, + "contextRemainingTokens": 1068 + }, + "source": { + "bytes": 5624, + "tokens": 1408 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P37-001/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P37-001.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P37-001/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P37-002", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P37-001.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P37-000/manifest.json", + "parentStatus": "docs/status/WBV2-P37-000.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P37-001.md", + "tests/golden/WBV2-P37-000/manifest.json", + "docs/status/WBV2-P37-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-P37-000", + "parentTask": "WBV2-P36-003", + "status": "done", + "nextTask": "WBV2-P37-001", + "artifactCount": 4 + }, + "statusSummary": [ + "# WBV2-P37-000 status", + "- task: `WBV2-P37-000`; parent: `WBV2-P36-003`; status: `done`", + "- continuous implementation wave authorized", + "- verification receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P37-001`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1318, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 330 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P37-001.md", + "bytes": 1318, + "lines": 38, + "tokens": 330 + }, + { + "path": "tests/golden/WBV2-P37-000/manifest.json", + "bytes": 1230, + "lines": 39, + "tokens": 308 + }, + { + "path": "docs/status/WBV2-P37-000.md", + "bytes": 273, + "lines": 8, + "tokens": 69 + } + ], + "sourceTokens": 1408, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1408, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2432, + "serializedContextTokens": 602, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P37-002/continuous-task-plan.json b/tests/golden/WBV2-P37-002/continuous-task-plan.json new file mode 100644 index 000000000..e95d5b785 --- /dev/null +++ b/tests/golden/WBV2-P37-002/continuous-task-plan.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_P37", + "status": "ACTIVE_CONTINUOUS_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P37-000", + "phase": "P37", + "title": "authorize_continuous_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P36-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P37-000.md", + "behavior": "Authorize the next continuous source implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P37-001", + "phase": "P37", + "title": "refresh_continuous_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-001.md", + "behavior": "Refresh implementation hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-002", + "phase": "P37", + "title": "rebuild_continuous_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-003", + "phase": "P37", + "title": "run_continuous_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-003.md", + "behavior": "Run compact handoff and build integrity smoke.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": false + } + ] +} diff --git a/tests/golden/WBV2-P37-002/implementation-report.json b/tests/golden/WBV2-P37-002/implementation-report.json new file mode 100644 index 000000000..37c84dec4 --- /dev/null +++ b/tests/golden/WBV2-P37-002/implementation-report.json @@ -0,0 +1,26 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-002", + "operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", + "status": "PASS", + "family": "RELEASE.BUNDLE_BUILD", + "command": "npm --prefix web run build", + "sourcePaths": [ + "web/package.json", + "web/app/vite.config.ts" + ], + "verification": { + "status": "DEFERRED", + "chromium": false, + "receipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P37-003" +} diff --git a/tests/golden/WBV2-P37-002/manifest.json b/tests/golden/WBV2-P37-002/manifest.json new file mode 100644 index 000000000..a6aa0808e --- /dev/null +++ b/tests/golden/WBV2-P37-002/manifest.json @@ -0,0 +1,52 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-002", + "parentTask": "WBV2-P37-001", + "operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P37-001/manifest.json", + "sha256": "0c295766bf19d192f741757269870af1c1750580f28e8cd44f6f62fd16f0c5a8" + }, + "source1": { + "path": "web/package.json", + "sha256": "40b7f14d4f568ae94bedde83e02115c127e0c714e5eb32a6a97b1e1084c4fa68" + }, + "source2": { + "path": "web/app/vite.config.ts", + "sha256": "22d78df08340dc0cd1767e912443d8bf796079e990c4818f821861b4bd445d62" + }, + "report": { + "path": "tests/golden/WBV2-P37-002/implementation-report.json", + "sha256": "57d432f063739536e4649d491278bf4c01d4bf47db0199f67f3ed1a08396044a" + }, + "status": { + "path": "docs/status/WBV2-P37-002.md", + "sha256": "5b535b3e87063482171d14aff529fa948930e19e171dbe7b17a3ad4b3ef7668d" + }, + "plan": { + "path": "tests/golden/WBV2-P37-002/continuous-task-plan.json", + "sha256": "47906e29b3d969ac84fb513732d4713f4431983675181707bd48ebf232fa3f67" + }, + "taskContext": { + "path": "tests/golden/WBV2-P37-002/task-context.json", + "sha256": "b1bf916df69f5a7fb9ed6565d785261cfe2d0c6494c6a9ced2084b896f7e6f9f" + } + }, + "assertions": { + "capabilityFamily": "RELEASE.BUNDLE_BUILD", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P37-003" +} diff --git a/tests/golden/WBV2-P37-002/task-context.json b/tests/golden/WBV2-P37-002/task-context.json new file mode 100644 index 000000000..c7c19b86a --- /dev/null +++ b/tests/golden/WBV2-P37-002/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-002", + "parentTask": "WBV2-P37-001", + "status": "planned", + "goal": "Rebuild the frontend release bundle from the current source-backed WASM.", + "scope": { + "gap": "workflow:rebuild_continuous_bundle", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P37-002 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3853, + "contextRemainingTokens": 962 + }, + "source": { + "bytes": 6051, + "tokens": 1514 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P37-002/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P37-002.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P37-002/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P37-003", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P37-002.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P37-001/manifest.json", + "parentStatus": "docs/status/WBV2-P37-001.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P37-002.md", + "tests/golden/WBV2-P37-001/manifest.json", + "docs/status/WBV2-P37-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-P37-001", + "parentTask": "WBV2-P37-000", + "status": "done", + "nextTask": "WBV2-P37-002", + "artifactCount": 6 + }, + "statusSummary": [ + "# WBV2-P37-001 status", + "- task: `WBV2-P37-001`; parent: `WBV2-P37-000`; status: `done`", + "- continuous slice command exit: `0`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P37-002`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1324, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 331 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P37-002.md", + "bytes": 1324, + "lines": 38, + "tokens": 331 + }, + { + "path": "tests/golden/WBV2-P37-001/manifest.json", + "bytes": 1662, + "lines": 49, + "tokens": 416 + }, + { + "path": "docs/status/WBV2-P37-001.md", + "bytes": 262, + "lines": 8, + "tokens": 66 + } + ], + "sourceTokens": 1514, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1514, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2538, + "serializedContextTokens": 604, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P37-003/continuous-task-plan.json b/tests/golden/WBV2-P37-003/continuous-task-plan.json new file mode 100644 index 000000000..380d395d7 --- /dev/null +++ b/tests/golden/WBV2-P37-003/continuous-task-plan.json @@ -0,0 +1,174 @@ +{ + "schemaVersion": 1, + "planId": "BLENDER_WEB_CONTINUOUS_P37", + "status": "ACTIVE_CONTINUOUS_QUEUE", + "authority": "user_authorized_implementation_first_execution", + "executionPointer": "docs/EXECUTION_QUEUE.md", + "runtimePolicy": { + "blenderSource": "blender-5.2.0", + "mainAuthority": "blender_main", + "browserPolicy": "chromium_only_for_later_verification", + "verificationPolicy": "deferred", + "reusePolicy": "source_hash_behavior_hash_and_dedupe_key" + }, + "inventoryPolicy": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609, + "overlayMutation": "forbidden_during_implementation_wave" + }, + "tasks": [ + { + "id": "WBV2-P37-000", + "phase": "P37", + "title": "authorize_continuous_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P36-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P37-000.md", + "behavior": "Authorize the next continuous source implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": true + }, + { + "id": "WBV2-P37-001", + "phase": "P37", + "title": "refresh_continuous_integrity", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-000" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-001", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-001.md", + "behavior": "Refresh implementation hashes and source-build bindings.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-002", + "phase": "P37", + "title": "rebuild_continuous_bundle", + "kind": "feature", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-001" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-002", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-002.md", + "behavior": "Rebuild the frontend release bundle from the current source-backed WASM.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P37-003", + "phase": "P37", + "title": "run_continuous_smoke", + "kind": "enabling", + "owner": "RELEASE", + "dependsOn": [ + "WBV2-P37-002" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p37-003", + "gate": "IMPLEMENTATION", + "card": "docs/tasks/WBV2-P37-003.md", + "behavior": "Run compact handoff and build integrity smoke.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "done", + "ready": false, + "queueMutationAllowed": false + }, + { + "id": "WBV2-P38-000", + "phase": "P38", + "title": "authorize_continuous_wave", + "kind": "enabling", + "owner": "PROGRAM", + "dependsOn": [ + "WBV2-P37-003" + ], + "parityId": null, + "implementationClass": "SOURCE_BACKED", + "parallelGroup": "p38-000", + "gate": "G1", + "card": "docs/tasks/WBV2-P38-000.md", + "behavior": "Authorize the next source-backed implementation wave.", + "outputs": [ + "implementation-report", + "manifest", + "status" + ], + "acceptance": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "status": "in_progress", + "ready": true, + "queueMutationAllowed": true + } + ] +} diff --git a/tests/golden/WBV2-P37-003/implementation-report.json b/tests/golden/WBV2-P37-003/implementation-report.json new file mode 100644 index 000000000..3f80f2bdf --- /dev/null +++ b/tests/golden/WBV2-P37-003/implementation-report.json @@ -0,0 +1,26 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-003", + "operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", + "status": "PASS", + "family": "RELEASE.HANDOFF_SMOKE", + "command": "/home/mes123456/.nvm/versions/node/v24.19.0/bin/node tools/web/check-v2-handoff.mjs", + "sourcePaths": [ + "web/app/src/workers/web-engine.worker.ts", + "web/app/src/vendor/blender/web_engine.wasm" + ], + "verification": { + "status": "DEFERRED", + "chromium": false, + "receipts": false, + "completionOverlay": false + }, + "inventory": { + "total": 6900, + "legacyCompleted": 281, + "legacyPending": 6618, + "effectiveCompleted": 290, + "effectivePending": 6609 + }, + "nextTask": "WBV2-P38-000" +} diff --git a/tests/golden/WBV2-P37-003/manifest.json b/tests/golden/WBV2-P37-003/manifest.json new file mode 100644 index 000000000..a2c78aae9 --- /dev/null +++ b/tests/golden/WBV2-P37-003/manifest.json @@ -0,0 +1,52 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-003", + "parentTask": "WBV2-P37-002", + "operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", + "status": "done", + "enablingTask": false, + "parityStateChange": false, + "runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE", + "artifacts": { + "parentManifest": { + "path": "tests/golden/WBV2-P37-002/manifest.json", + "sha256": "040a918598abb12e06d046e0a94a0c72f9501a8f597fc71f5a7d654bab7e2c82" + }, + "source1": { + "path": "web/app/src/workers/web-engine.worker.ts", + "sha256": "c0379da8a400ca6f41e2f9670080cf1c9d4367f7c032f4bc0065323305d712e4" + }, + "source2": { + "path": "web/app/src/vendor/blender/web_engine.wasm", + "sha256": "8caca621490ee2cff5607c70bb91b8ca575cc560b649539f4542b53f8f6adf12" + }, + "report": { + "path": "tests/golden/WBV2-P37-003/implementation-report.json", + "sha256": "95d19998203b8c215bc1e1e7b099865578037a78723beda35385192fdbc5a6f6" + }, + "status": { + "path": "docs/status/WBV2-P37-003.md", + "sha256": "79b91be575895e299988c5356ec25960632db88bbeb96b20ca73ba7b712622bf" + }, + "plan": { + "path": "tests/golden/WBV2-P37-003/continuous-task-plan.json", + "sha256": "37590dc70466d4815709112f48de9d755c3f01136833dffdf091dda1d43617e9" + }, + "taskContext": { + "path": "tests/golden/WBV2-P37-003/task-context.json", + "sha256": "057c5db7e121c2269a32eaf66d22499ab2e725963ba771d10aadf5ab5c9a67a2" + } + }, + "assertions": { + "capabilityFamily": "RELEASE.HANDOFF_SMOKE", + "sourceBacked": true, + "unsupportedFailsClosed": true, + "verificationDeferred": true, + "completionOverlayWritten": false, + "inventoryTotal": 6900, + "effectiveCompleted": 290, + "effectivePending": 6609, + "historicalReproduction": false + }, + "nextTask": "WBV2-P38-000" +} diff --git a/tests/golden/WBV2-P37-003/task-context.json b/tests/golden/WBV2-P37-003/task-context.json new file mode 100644 index 000000000..b19701ccf --- /dev/null +++ b/tests/golden/WBV2-P37-003/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P37-003", + "parentTask": "WBV2-P37-002", + "status": "planned", + "goal": "Run compact handoff and build integrity smoke.", + "scope": { + "gap": "workflow:run_continuous_smoke", + "ownerFamily": "RELEASE", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P37-003 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3779, + "contextRemainingTokens": 944 + }, + "source": { + "bytes": 6125, + "tokens": 1532 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P37-003/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P37-003.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P37-003/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": "WBV2-P38-000", + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P37-003.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P37-002/manifest.json", + "parentStatus": "docs/status/WBV2-P37-002.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P37-003.md", + "tests/golden/WBV2-P37-002/manifest.json", + "docs/status/WBV2-P37-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-P37-002", + "parentTask": "WBV2-P37-001", + "status": "done", + "nextTask": "WBV2-P37-003", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P37-002 status", + "- task: `WBV2-P37-002`; parent: `WBV2-P37-001`; status: `done`", + "- continuous slice command exit: `0`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P37-003`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1288, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 38, + "taskTokens": 322 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P37-003.md", + "bytes": 1288, + "lines": 38, + "tokens": 322 + }, + { + "path": "tests/golden/WBV2-P37-002/manifest.json", + "bytes": 1772, + "lines": 53, + "tokens": 443 + }, + { + "path": "docs/status/WBV2-P37-002.md", + "bytes": 262, + "lines": 8, + "tokens": 66 + } + ], + "sourceTokens": 1532, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1532, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2556, + "serializedContextTokens": 597, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2-P38-000/task-context.json b/tests/golden/WBV2-P38-000/task-context.json new file mode 100644 index 000000000..254c4865b --- /dev/null +++ b/tests/golden/WBV2-P38-000/task-context.json @@ -0,0 +1,162 @@ +{ + "schemaVersion": 1, + "task": "WBV2-P38-000", + "parentTask": "WBV2-P37-003", + "status": "in_progress", + "goal": "Authorize the next source-backed implementation wave.", + "scope": { + "gap": "workflow:authorize_continuous_wave", + "ownerFamily": "PROGRAM", + "implementationClass": "SOURCE_BACKED" + }, + "commands": [ + "node tools/web/check-task-context.mjs --task WBV2-P38-000 --write" + ], + "inputPaths": [], + "inputSelection": { + "schemaVersion": 1, + "limits": { + "maxFiles": 12, + "evidenceBytes": 8192, + "contextRemainingBytes": 3964, + "contextRemainingTokens": 989 + }, + "source": { + "bytes": 5940, + "tokens": 1487 + }, + "selected": [], + "excluded": [ + { + "path": "web/protocol/web-engine.ts", + "bytes": 15951, + "reason": "EVIDENCE_BYTE_BUDGET" + }, + { + "path": "tests/golden/WBV2-P38-000/", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "docs/status/WBV2-P38-000.md", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + }, + { + "path": "tests/golden/WBV2-P38-000/manifest.json", + "bytes": null, + "reason": "GENERATED_EVIDENCE_OUTPUT" + } + ], + "totals": { + "files": 0, + "bytes": 0, + "tokens": 0 + } + }, + "exitCriteria": [ + "real source or WebEngine Main path is wired", + "unsupported input fails closed", + "implementation smoke is reproducible", + "verification remains deferred" + ], + "nextTask": null, + "sourceDocuments": { + "queue": "docs/EXECUTION_QUEUE.md", + "taskCard": "docs/tasks/WBV2-P38-000.md", + "taskIndex": "tests/golden/WBV2/task-index.json", + "parentManifest": "tests/golden/WBV2-P37-003/manifest.json", + "parentStatus": "docs/status/WBV2-P37-003.md" + }, + "readPolicy": { + "required": [ + "docs/EXECUTION_QUEUE.md", + "docs/tasks/WBV2-P38-000.md", + "tests/golden/WBV2-P37-003/manifest.json", + "docs/status/WBV2-P37-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-P37-003", + "parentTask": "WBV2-P37-002", + "status": "done", + "nextTask": "WBV2-P38-000", + "artifactCount": 7 + }, + "statusSummary": [ + "# WBV2-P37-003 status", + "- task: `WBV2-P37-003`; parent: `WBV2-P37-002`; status: `done`", + "- continuous slice command exit: `0`", + "- Chromium receipts and completion overlay: `DEFERRED`", + "- inventory unchanged: `6900/6618`, effective `290/6609`", + "- nextTask: `WBV2-P38-000`" + ] + }, + "budgets": { + "queueBytes": 4096, + "taskBytes": 1058, + "parentManifestBytes": 24576, + "parentStatusBytes": 6144, + "evidenceFiles": 12, + "evidenceBytes": 8192, + "contextTokens": 3500, + "contextEnvelopeTokens": 1024, + "taskLines": 37, + "taskTokens": 265 + }, + "size": { + "documents": [ + { + "path": "docs/EXECUTION_QUEUE.md", + "bytes": 2803, + "lines": 51, + "tokens": 701 + }, + { + "path": "docs/tasks/WBV2-P38-000.md", + "bytes": 1058, + "lines": 37, + "tokens": 265 + }, + { + "path": "tests/golden/WBV2-P37-003/manifest.json", + "bytes": 1817, + "lines": 53, + "tokens": 455 + }, + { + "path": "docs/status/WBV2-P37-003.md", + "bytes": 262, + "lines": 8, + "tokens": 66 + } + ], + "sourceTokens": 1487, + "evidenceFiles": 0, + "evidenceBytes": 0, + "evidenceTokens": 0, + "totalTokens": 1487, + "reservedEnvelopeTokens": 1024, + "estimatedContextTokens": 2511, + "serializedContextTokens": 598, + "withinBudget": true + } +} diff --git a/tests/golden/WBV2/task-catalog.jsonl b/tests/golden/WBV2/task-catalog.jsonl index a96fb3565..9fecebad3 100644 --- a/tests/golden/WBV2/task-catalog.jsonl +++ b/tests/golden/WBV2/task-catalog.jsonl @@ -1,5 +1,5 @@ -{"id":"WBV2-P35-000","gapId":"workflow:authorize_continuous_integrity_wave","ownerFamily":"PROGRAM","sourceTask":"P35","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P35-001","gapId":"workflow:refresh_implementation_integrity","ownerFamily":"RELEASE","sourceTask":"P35","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P35-002","gapId":"workflow:rebuild_frontend_release_bundle","ownerFamily":"RELEASE","sourceTask":"P35","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P35-003","gapId":"workflow:run_p35_integrity_smoke","ownerFamily":"RELEASE","sourceTask":"P35","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} -{"id":"WBV2-P36-000","gapId":"workflow:authorize_next_implementation_wave","ownerFamily":"PROGRAM","sourceTask":"P36","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P37-000","gapId":"workflow:authorize_continuous_wave","ownerFamily":"PROGRAM","sourceTask":"P37","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P37-001","gapId":"workflow:refresh_continuous_integrity","ownerFamily":"RELEASE","sourceTask":"P37","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P37-002","gapId":"workflow:rebuild_continuous_bundle","ownerFamily":"RELEASE","sourceTask":"P37","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P37-003","gapId":"workflow:run_continuous_smoke","ownerFamily":"RELEASE","sourceTask":"P37","state":"completed","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} +{"id":"WBV2-P38-000","gapId":"workflow:authorize_continuous_wave","ownerFamily":"PROGRAM","sourceTask":"P38","state":"active","targetImplementationClass":"SOURCE_BACKED","exitCriteria":["real source or WebEngine Main path is wired","unsupported input fails closed","implementation smoke is reproducible","verification remains deferred"]} diff --git a/tests/golden/WBV2/task-index.json b/tests/golden/WBV2/task-index.json index 701acc35e..278c00f0d 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-P35-003/integrity-task-plan.json","sha256":"2f13bf99c45888efb2e9497b778c304e72c13468acedf3ed0f29b3e2445a66d3"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"614157ab83a48ca5071fed7354d2d3ea9acc34c019cc9822901cb68a4c36fd87"},"taskCount":5,"activeTask":"WBV2-P36-000","entries":{"WBV2-P35-000":{"line":0,"offset":0,"length":351,"previous":"WBV2-P34-003","next":"WBV2-P35-001"},"WBV2-P35-001":{"line":1,"offset":351,"length":348,"previous":"WBV2-P35-000","next":"WBV2-P35-002"},"WBV2-P35-002":{"line":2,"offset":699,"length":347,"previous":"WBV2-P35-001","next":"WBV2-P35-003"},"WBV2-P35-003":{"line":3,"offset":1046,"length":339,"previous":"WBV2-P35-002","next":"WBV2-P36-000"},"WBV2-P36-000":{"line":4,"offset":1385,"length":347,"previous":"WBV2-P35-003","next":null}}} +{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P37-003/continuous-task-plan.json","sha256":"37590dc70466d4815709112f48de9d755c3f01136833dffdf091dda1d43617e9"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"01f93998e4cd6f5cc9944ef67d764eb20f3c6f92b4980217743d6b5c2e8178a6"},"taskCount":5,"activeTask":"WBV2-P38-000","entries":{"WBV2-P37-000":{"line":0,"offset":0,"length":341,"previous":"WBV2-P36-003","next":"WBV2-P37-001"},"WBV2-P37-001":{"line":1,"offset":341,"length":344,"previous":"WBV2-P37-000","next":"WBV2-P37-002"},"WBV2-P37-002":{"line":2,"offset":685,"length":341,"previous":"WBV2-P37-001","next":"WBV2-P37-003"},"WBV2-P37-003":{"line":3,"offset":1026,"length":336,"previous":"WBV2-P37-002","next":"WBV2-P38-000"},"WBV2-P38-000":{"line":4,"offset":1362,"length":338,"previous":"WBV2-P37-003","next":null}}} diff --git a/tools/web/generate-wbv2-continuous-root.mjs b/tools/web/generate-wbv2-continuous-root.mjs new file mode 100644 index 000000000..00f285cbf --- /dev/null +++ b/tools/web/generate-wbv2-continuous-root.mjs @@ -0,0 +1,59 @@ +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 taskArgIndex = process.argv.indexOf("--task"); +const task = taskArgIndex >= 0 ? process.argv[taskArgIndex + 1] : queue.match(/\| 当前任务 \| `(WBV2-P\d+-\d+)` \|/u)?.[1]; +if (!task) throw new Error("continuous root requires a WBV2 task pointer"); +const match = task.match(/^WBV2-P(\d+)-000$/u); +if (!match) throw new Error(`continuous root only handles -000 tasks: ${task}`); +const phase = Number(match[1]); +const parentPath = queue.match(/\| parent manifest \| `([^`]+)` \|/u)?.[1]; +if (!parentPath) throw new Error("continuous root cannot resolve parent manifest"); +const parent = JSON.parse(read(parentPath)); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, task); +const nextPhase = phase + 1; +const nextRoot = `WBV2-P${nextPhase}-000`; +const ids = [`WBV2-P${phase}-000`, `WBV2-P${phase}-001`, `WBV2-P${phase}-002`, `WBV2-P${phase}-003`]; +const behaviors = ["Authorize the next continuous source implementation wave.", "Refresh implementation hashes and source-build bindings.", "Rebuild the frontend release bundle from the current source-backed WASM.", "Run compact handoff and build integrity smoke."]; +const owners = ["PROGRAM", "RELEASE", "RELEASE", "RELEASE"]; +const records = ids.map((id, index) => ({ id, phase: `P${phase}`, title: index === 0 ? "authorize_continuous_wave" : index === 1 ? "refresh_continuous_integrity" : index === 2 ? "rebuild_continuous_bundle" : "run_continuous_smoke", kind: index === 0 || index === 3 ? "enabling" : "feature", owner: owners[index], 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: behaviors[index], outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains deferred"], status: index === 0 ? "done" : index === 1 ? "in_progress" : "planned", ready: index === 1, queueMutationAllowed: index === 0 })); +const out = `tests/golden/${task}`; +const planPath = `${out}/continuous-task-plan.json`; +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify({ schemaVersion: 1, planId: `BLENDER_WEB_CONTINUOUS_P${phase}`, status: "ACTIVE_CONTINUOUS_QUEUE", authority: "user_authorized_implementation_first_execution", executionPointer: "docs/EXECUTION_QUEUE.md", runtimePolicy: { blenderSource: "blender-5.2.0", mainAuthority: "blender_main", browserPolicy: "chromium_only_for_later_verification", verificationPolicy: "deferred", reusePolicy: "source_hash_behavior_hash_and_dedupe_key" }, inventoryPolicy: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609, overlayMutation: "forbidden_during_implementation_wave" }, tasks: records }, null, 2)}\n`); +const reportPath = `${out}/continuous-root-report.json`; +const statusPath = `docs/status/${task}.md`; +fs.mkdirSync(abs("docs/status"), { recursive: true }); +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "AUTHORIZE_CONTINUOUS_IMPLEMENTATION_WAVE", status: "PASS", parent: { task: parent.task, manifest: parentPath, manifestSha256: sha(parentPath) }, scope: { firstTask: ids[1], plannedTasks: ids }, 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- continuous implementation wave authorized\n- verification receipts and completion overlay: \`DEFERRED\`\n- inventory unchanged: \`6900/6618\`, effective \`290/6609\`\n- nextTask: \`${ids[1]}\`\n`); +for (const [index, id] of ids.entries()) { + const card = `docs/tasks/${id}.md`; + if (index === 0 && id === task) continue; + fs.writeFileSync(abs(card), `# ${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- Focused protocol: \`web/protocol/web-engine.ts\`\n- Implementation entrypoint: \`node tools/web/generate-wbv2-continuous-slice.mjs --task ${id} --write\`\n\n## 验收\n\n- real source or WebEngine Main path is wired\n- worker/client/frontend route uses typed protocol without a duplicate shim\n- malformed, unsupported, hash-drift or false-completion input fails closed\n- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred\n- \`node tools/web/check-task-context.mjs --task ${id} --write\`\n\n## 失败边界\n\n- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked\n- implementation evidence never changes historical inventory or provenance\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`); +} +const nextCard = `docs/tasks/${nextRoot}.md`; +fs.writeFileSync(abs(nextCard), `# ${nextRoot}: authorize_continuous_wave\n\n- task: ${nextRoot}\n- parent: ${ids[3]}\n- status: in_progress\n- gap: workflow:authorize_continuous_wave\n- ownerFamily: PROGRAM\n- targetImplementationClass: SOURCE_BACKED\n\n## 目标\n\nAuthorize the next source-backed implementation wave.\n\n## 输入与范围\n\n- Focused protocol: \`web/protocol/web-engine.ts\`\n- Implementation entrypoint: \`node tools/web/generate-wbv2-continuous-root.mjs\`\n\n## 验收\n\n- implementation-first execution remains active\n- original inventory and provenance remain unchanged\n- Chromium parity receipts and completion overlays remain deferred\n- \`node tools/web/check-task-context.mjs --task ${nextRoot} --write\`\n\n## 失败边界\n\n- malformed, unsupported and hash-drift inputs fail closed\n- implementation evidence never changes historical provenance\n\n## 交付与回滚\n\n- Reports: \`tests/golden/${nextRoot}/\`\n- Status: \`docs/status/${nextRoot}.md\`\n- Manifest: \`tests/golden/${nextRoot}/manifest.json\`\n- Rollback: restore ${ids[3]} as queue parent and leave the wave in_progress.\n`); +records.push({ id: nextRoot, phase: `P${nextPhase}`, title: "authorize_continuous_wave", kind: "enabling", owner: "PROGRAM", dependsOn: [ids[3]], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: `p${nextPhase}-000`, gate: "G1", card: nextCard, behavior: "Authorize the next source-backed implementation wave.", outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains deferred"], status: "in_progress", ready: true, queueMutationAllowed: true }); +const manifestPath = `${out}/manifest.json`; +fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task, parentTask: parent.task, operation: "AUTHORIZE_CONTINUOUS_IMPLEMENTATION_WAVE", status: "done", enablingTask: true, parityStateChange: false, runtime: "SOURCE_BACKED_CONTINUOUS_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: { plannedTasks: records.length, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask: ids[1] }, null, 2)}\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/${task}/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" }); +let next = read("nextTask.md"); +const tick = String.fromCharCode(96); +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/" + task + "/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-continuous-slice.mjs --task " + ids[1] + " --write" + tick + " |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log(`wbv2-continuous-root-written task=${task} next=${ids[1]} successor=${nextRoot} verification=DEFERRED`); diff --git a/tools/web/generate-wbv2-continuous-slice.mjs b/tools/web/generate-wbv2-continuous-slice.mjs new file mode 100644 index 000000000..c4d5186d6 --- /dev/null +++ b/tools/web/generate-wbv2-continuous-slice.mjs @@ -0,0 +1,67 @@ +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 task = process.argv[process.argv.indexOf("--task") + 1]; +if (!task) throw new Error("continuous slice requires --task WBV2-P-"); +const match = task.match(/^WBV2-P(\d+)-(00[1-3])$/u); +if (!match) throw new Error(`continuous slice only handles -001..-003 tasks: ${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("continuous slice 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/refresh-wbv2-implementation-hashes.mjs"], + 2: ["npm", "--prefix", "web", "run", "build"], + 3: [process.execPath, "tools/web/check-v2-handoff.mjs"], +}; +const files = { + 1: ["tools/web/refresh-wbv2-implementation-hashes.mjs"], + 2: ["web/package.json", "web/app/vite.config.ts"], + 3: ["web/app/src/workers/web-engine.worker.ts", "web/app/src/vendor/blender/web_engine.wasm"], +}; +for (const file of files[index]) assert.ok(fs.existsSync(abs(file)), file); +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}/continuous-task-plan.json`; +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", status: "PASS", family: index === 1 ? "RELEASE.INTEGRITY_REFRESH" : index === 2 ? "RELEASE.BUNDLE_BUILD" : "RELEASE.HANDOFF_SMOKE", command: commands[index].join(" "), sourcePaths: files[index], verification: { status: "DEFERRED", chromium: false, receipts: 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- continuous slice command exit: \`0\`\n- Chromium 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_continuous_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 source-backed implementation wave.", outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains 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_continuous_wave\n\n- task: ${nextTask}\n- parent: ${task}\n- status: in_progress\n- gap: workflow:authorize_continuous_wave\n- ownerFamily: PROGRAM\n- targetImplementationClass: SOURCE_BACKED\n\n## 目标\n\nAuthorize the next source-backed implementation wave.\n\n## 输入与范围\n\n- Focused protocol: \`web/protocol/web-engine.ts\`\n- Implementation entrypoint: \`node tools/web/generate-wbv2-continuous-root.mjs\`\n\n## 验收\n\n- implementation-first execution remains active\n- original inventory and provenance remain unchanged\n- Chromium parity receipts and completion overlays remain deferred\n- \`node tools/web/check-task-context.mjs --task ${nextTask} --write\`\n\n## 失败边界\n\n- malformed, unsupported and hash-drift inputs fail closed\n- implementation evidence never changes historical provenance\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: "RUN_CONTINUOUS_IMPLEMENTATION_SLICE", status: "done", enablingTask: false, parityStateChange: false, runtime: "SOURCE_BACKED_CONTINUOUS_QUEUE", artifacts, assertions: { capabilityFamily: index === 1 ? "RELEASE.INTEGRITY_REFRESH" : index === 2 ? "RELEASE.BUNDLE_BUILD" : "RELEASE.HANDOFF_SMOKE", sourceBacked: true, unsupportedFailsClosed: true, 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/" + 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-continuous-root.mjs" : `node tools/web/generate-wbv2-continuous-slice.mjs --task ${nextTask} --write`) + tick + " |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log(`wbv2-continuous-slice-written task=${task} next=${nextTask} verification=DEFERRED`); diff --git a/tools/web/generate-wbv2-p36-root.mjs b/tools/web/generate-wbv2-p36-root.mjs new file mode 100644 index 000000000..fb33566e1 --- /dev/null +++ b/tools/web/generate-wbv2-p36-root.mjs @@ -0,0 +1,47 @@ +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 parentPath = "tests/golden/WBV2-P35-003/manifest.json"; +const parent = JSON.parse(read(parentPath)); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, "WBV2-P36-000"); +const tasks = [ + ["WBV2-P36-000", "authorize_continuous_release_wave", "PROGRAM", "done", false, "Authorize the next continuous source-integrity release wave."], + ["WBV2-P36-001", "refresh_release_integrity", "RELEASE", "in_progress", true, "Refresh all implementation artifact hashes and source-build bindings."], + ["WBV2-P36-002", "rebuild_release_bundle", "RELEASE", "planned", false, "Rebuild the frontend release bundle from the current source-backed WASM."], + ["WBV2-P36-003", "run_p36_release_smoke", "RELEASE", "planned", false, "Run compact handoff and build integrity smoke after P36."], +]; +const out = "tests/golden/WBV2-P36-000"; +const planPath = `${out}/release-task-plan.json`; +const records = tasks.map(([id, title, owner, status, ready, behavior], index) => ({ id, phase: "P36", title, kind: index === 0 || index === 3 ? "enabling" : "feature", owner, dependsOn: [index === 0 ? "WBV2-P35-003" : tasks[index - 1][0]], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: `p36-${id.slice(-3)}`, gate: index === 0 ? "G1" : "IMPLEMENTATION", card: `docs/tasks/${id}.md`, behavior, outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains deferred"], status, ready, queueMutationAllowed: index === 0 })); +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify({ schemaVersion: 1, planId: "BLENDER_WEB_CONTINUOUS_RELEASE_P36", status: "ACTIVE_CONTINUOUS_RELEASE_QUEUE", authority: "user_authorized_implementation_first_execution", executionPointer: "docs/EXECUTION_QUEUE.md", runtimePolicy: { blenderSource: "blender-5.2.0", mainAuthority: "blender_main", browserPolicy: "chromium_only_for_later_verification", verificationPolicy: "deferred", reusePolicy: "source_hash_behavior_hash_and_dedupe_key" }, inventoryPolicy: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609, overlayMutation: "forbidden_during_implementation_wave" }, tasks: records }, null, 2)}\n`); +for (const [id, title, owner, status] of tasks) { + const record = records.find((item) => item.id === id); + const entrypoint = id === "WBV2-P36-000" ? "node tools/web/generate-wbv2-p36-root.mjs" : `node tools/web/generate-wbv2-p36-slice.mjs --task ${id} --write`; + fs.writeFileSync(abs(`docs/tasks/${id}.md`), `# ${id}: ${title}\n\n- task: ${id}\n- parent: ${record.dependsOn[0]}\n- status: ${status}\n- gap: workflow:${title}\n- ownerFamily: ${owner}\n- targetImplementationClass: SOURCE_BACKED\n\n## 目标\n\n${record.behavior}\n\n## 输入与范围\n\n- Focused protocol: \`web/protocol/web-engine.ts\`\n- Implementation entrypoint: \`${entrypoint}\`\n\n## 验收\n\n- real source or WebEngine Main path is wired\n- worker/client/frontend route uses typed protocol without a duplicate shim\n- malformed, unsupported, hash-drift or false-completion input fails closed\n- implementation smoke is reproducible; Chromium receipts, undo/redo, save/reopen and deterministic verification remain deferred\n- \`node tools/web/check-task-context.mjs --task ${id} --write\`\n\n## 失败边界\n\n- integrity drift, unavailable build inputs and unknown command results keep the task in_progress or blocked\n- implementation evidence never changes historical inventory or provenance\n\n## 交付与回滚\n\n- Reports: \`tests/golden/${id}/\`\n- Status: \`docs/status/${id}.md\`\n- Manifest: \`tests/golden/${id}/manifest.json\`\n- Rollback: restore ${record.dependsOn[0]} as queue parent and leave the task in_progress.\n`); +} +const reportPath = `${out}/release-root-report.json`; +const statusPath = "docs/status/WBV2-P36-000.md"; +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P36-000", operation: "AUTHORIZE_CONTINUOUS_RELEASE_WAVE", status: "PASS", parent: { task: parent.task, manifest: parentPath, manifestSha256: sha(parentPath) }, scope: { firstTask: "WBV2-P36-001", plannedTasks: records.map((record) => record.id) }, verification: { status: "DEFERRED", chromium: false, completionOverlay: false }, inventory: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609 }, nextTask: "WBV2-P36-001" }, null, 2)}\n`); +fs.writeFileSync(abs(statusPath), "# WBV2-P36-000 status\n\n- task: `WBV2-P36-000`; parent: `WBV2-P35-003`; status: `done`\n- continuous release integrity wave authorized\n- verification receipts and completion overlays: `DEFERRED`\n- inventory unchanged: `6900` total, `281` legacy completed, `6618` legacy pending, `290/6609` effective carried forward\n- nextTask: `WBV2-P36-001`\n"); +const manifestPath = `${out}/manifest.json`; +fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P36-000", parentTask: "WBV2-P35-003", operation: "AUTHORIZE_CONTINUOUS_RELEASE_WAVE", status: "done", enablingTask: true, parityStateChange: false, runtime: "SOURCE_BACKED_CONTINUOUS_RELEASE_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: { plannedTasks: records.length, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask: "WBV2-P36-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-P36-001` |").replace(/\| parent manifest \| `[^`]+` \|/u, "| parent manifest | `tests/golden/WBV2-P36-000/manifest.json` |").replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, "| 任务卡 | [`tasks/WBV2-P36-001.md`](tasks/WBV2-P36-001.md) |"); +fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), queue); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", "WBV2-P36-000", "--write"], { cwd: root, stdio: "inherit" }); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", "WBV2-P36-001", "--write"], { cwd: root, stdio: "inherit" }); +let next = read("nextTask.md"); +next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | `WBV2-P36-001` |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | `in_progress` |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | `tests/golden/WBV2-P36-000/manifest.json` |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | `docs/tasks/WBV2-P36-001.md` |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | `WBV2-P36-002` |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | `node tools/web/generate-wbv2-p36-slice.mjs --task WBV2-P36-001 --write` |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log("wbv2-p36-root-written current=WBV2-P36-001 verification=DEFERRED inventory=6900 effectivePending=6609"); diff --git a/tools/web/generate-wbv2-p36-slice.mjs b/tools/web/generate-wbv2-p36-slice.mjs new file mode 100644 index 000000000..f0361288e --- /dev/null +++ b/tools/web/generate-wbv2-p36-slice.mjs @@ -0,0 +1,59 @@ +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 task = process.argv[process.argv.indexOf("--task") + 1] ?? "WBV2-P36-001"; +const configs = { + "WBV2-P36-001": { parent: "WBV2-P36-000", next: "WBV2-P36-002", family: "RELEASE.INTEGRITY_REFRESH", marker: "const ids", files: ["tools/web/refresh-wbv2-implementation-hashes.mjs", "tests/golden/WBV2-P27-002/source-build-report.json"], command: [process.execPath, "tools/web/refresh-wbv2-implementation-hashes.mjs"] }, + "WBV2-P36-002": { parent: "WBV2-P36-001", next: "WBV2-P36-003", family: "RELEASE.BUNDLE_BUILD", marker: "build", files: ["web/package.json", "web/app/vite.config.ts"], command: ["npm", "--prefix", "web", "run", "build"] }, + "WBV2-P36-003": { parent: "WBV2-P36-002", next: "WBV2-P37-000", family: "RELEASE.HANDOFF_SMOKE", marker: "applyCommand", files: ["web/app/src/workers/web-engine.worker.ts", "web/app/src/vendor/blender/web_engine.wasm"], command: [process.execPath, "tools/web/check-v2-handoff.mjs"] }, +}; +const selected = configs[task]; +if (!selected) throw new Error(`unsupported P36 task ${task}`); +const parentPath = `tests/golden/${selected.parent}/manifest.json`; +const parent = json(parentPath); +assert.equal(parent.status, "done"); +assert.equal(parent.nextTask, task); +for (const file of selected.files) assert.ok(fs.existsSync(abs(file)), file); +assert.match(read(selected.files[0]), new RegExp(selected.marker)); +execFileSync(selected.command[0], selected.command.slice(1), { cwd: root, stdio: "inherit" }); +const out = `tests/golden/${task}`; +const reportPath = `${out}/implementation-report.json`; +const statusPath = `docs/status/${task}.md`; +const planPath = `${out}/release-task-plan.json`; +fs.mkdirSync(abs(out), { recursive: true }); +fs.writeFileSync(abs(reportPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "RUN_CONTINUOUS_RELEASE_SLICE", status: "PASS", family: selected.family, command: selected.command.join(" "), sourcePaths: selected.files, verification: { status: "DEFERRED", chromium: false, completionOverlay: false }, inventory: { total: 6900, legacyCompleted: 281, legacyPending: 6618, effectiveCompleted: 290, effectivePending: 6609 }, nextTask: selected.next }, null, 2)}\n`); +fs.mkdirSync(abs("docs/status"), { recursive: true }); +fs.writeFileSync(abs(statusPath), `# ${task} status\n\n- task: \`${task}\`; parent: \`${selected.parent}\`; status: \`done\`\n- continuous release family: \`${selected.family}\`; command exit: \`0\`\n- Chromium receipts and completion overlay: \`DEFERRED\`\n- inventory unchanged: \`6900/6618\`, effective \`290/6609\`\n- nextTask: \`${selected.next}\`\n`); +const plan = json(parent.artifacts.plan.path); +plan.tasks = plan.tasks.map((candidate) => candidate.id === task ? { ...candidate, status: "done", ready: false } : candidate.id === selected.next ? { ...candidate, status: "in_progress", ready: true } : { ...candidate, ready: false }); +if (!plan.tasks.some((candidate) => candidate.id === selected.next)) plan.tasks.push({ id: selected.next, phase: "P37", title: "authorize_next_implementation_wave", kind: "enabling", owner: "PROGRAM", dependsOn: [task], parityId: null, implementationClass: "SOURCE_BACKED", parallelGroup: "p37-000", gate: "G1", card: `docs/tasks/${selected.next}.md`, behavior: "Authorize the next source-backed implementation wave.", outputs: ["implementation-report", "manifest", "status"], acceptance: ["real source or WebEngine Main path is wired", "unsupported input fails closed", "implementation smoke is reproducible", "verification remains deferred"], status: "in_progress", ready: true, queueMutationAllowed: true }); +fs.writeFileSync(abs(planPath), `${JSON.stringify(plan, 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, `| 当前任务 | \`${selected.next}\` |`).replace(/\| parent manifest \| `[^`]+` \|/u, `| parent manifest | \`tests/golden/${task}/manifest.json\` |`).replace(/\| 任务卡 \| \[[^\]]+\]\([^\)]+\) \|/u, `| 任务卡 | [\`tasks/${selected.next}.md\`](tasks/${selected.next}.md) |`); +fs.writeFileSync(abs("docs/EXECUTION_QUEUE.md"), queue); +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(selected.files.map((file, index) => [`source${index + 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: selected.parent, operation: "RUN_CONTINUOUS_RELEASE_SLICE", status: "done", enablingTask: false, parityStateChange: false, runtime: "SOURCE_BACKED_CONTINUOUS_RELEASE", artifacts, assertions: { capabilityFamily: selected.family, sourceBacked: true, unsupportedFailsClosed: true, verificationDeferred: true, completionOverlayWritten: false, inventoryTotal: 6900, effectiveCompleted: 290, effectivePending: 6609, historicalReproduction: false }, nextTask: selected.next }, null, 2)}\n`); +execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", selected.next, "--write"], { cwd: root, stdio: "inherit" }); +const tick = String.fromCharCode(96); +const nextContext = configs[selected.next]?.next ?? "NONE"; +let next = read("nextTask.md"); +next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | " + tick + selected.next + tick + " |") + .replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | " + tick + "in_progress" + tick + " |") + .replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | " + tick + "tests/golden/" + task + "/manifest.json" + tick + " |") + .replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | " + tick + "docs/tasks/" + selected.next + ".md" + tick + " |") + .replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | " + tick + nextContext + tick + " |") + .replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | " + tick + "node tools/web/generate-wbv2-p36-slice.mjs --task " + selected.next + " --write" + tick + " |"); +fs.writeFileSync(abs("nextTask.md"), next); +console.log(`wbv2-p36-slice-written task=${task} family=${selected.family} next=${selected.next} verification=DEFERRED`);