chore(web): add fail-closed unattended runner
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
| 字段 | 值 |
|
||||
| --- | --- |
|
||||
| 里程碑 | WBV2 capability workflow |
|
||||
| 当前任务 | `WBV2-P38-001` |
|
||||
| parent manifest | `tests/golden/WBV2-P38-000/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P38-001.md`](tasks/WBV2-P38-001.md) |
|
||||
| 当前任务 | `WBV2-P39-000` |
|
||||
| parent manifest | `tests/golden/WBV2-P38-003/manifest.json` |
|
||||
| 任务卡 | [`tasks/WBV2-P39-000.md`](tasks/WBV2-P39-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` |
|
||||
|
||||
22
nextTask.md
22
nextTask.md
@@ -34,6 +34,7 @@ and (when authorized) repository push:
|
||||
10. 任一命令失败、输入缺失、队列不一致、环境不可用或状态不明时,保持 `in_progress`/`blocked`,不得推进指针、伪造完成或重复未知结果的状态改变命令。
|
||||
11. 每轮结束报告实现切片、当前任务、`nextTask`、最小检查退出码、原始 inventory、effective inventory 是否保持不变、提交/推送状态和剩余真实阻塞。
|
||||
12. CONTINUOUS_LOOP_REQUIRED:成功交接后立即开始下一轮;不得在成功提交、推送或生成新 manifest 后等待用户确认、只写计划或只汇报状态。每轮必须重新运行 `print-task-context` 和 `check-task-context`,使用新 parent manifest 的 `nextTask`,不沿用上一轮上下文。
|
||||
13. 可使用仓库内 unattended runner 保持进程级连续执行:`node tools/web/run-wbv2-continuous.mjs --max-iterations 0`。它只执行任务卡声明的入口;`0` 表示不限轮数,`--max-iterations N` 用于受控运行,`--commit --push` 才允许自动提交/推送。任何入口失败、退出 0 但队列未前进、治理失败或 push 失败都立即停止并保留 `tests/golden/<task>/continuous-runner.log`,不得重试未知结果。
|
||||
```
|
||||
|
||||
## Resume Command
|
||||
@@ -91,6 +92,17 @@ perform a second attempt after an unknown state-changing command. A root task
|
||||
is itself an executable enabling task: run its declared root generator, then
|
||||
continue from the generated child task in the same continuous run.
|
||||
|
||||
For process-level unattended execution, run:
|
||||
|
||||
```bash
|
||||
node tools/web/run-wbv2-continuous.mjs --max-iterations 0
|
||||
```
|
||||
|
||||
The runner is intentionally fail-closed. It derives the command from the
|
||||
current task card, requires the queue to advance after a successful exit, and
|
||||
writes one bounded log per task. It never invents a task, retries an unknown
|
||||
state-changing result, or turns implementation output into parity completion.
|
||||
|
||||
## Activation Contract
|
||||
|
||||
The phrase activates implementation only when the queue is internally
|
||||
@@ -230,12 +242,12 @@ Recorded: 2026-08-29 Asia/Shanghai
|
||||
|
||||
| Field | Value |
|
||||
| --- | --- |
|
||||
| Current task when this file was written | `WBV2-P38-001` |
|
||||
| Current task when this file was written | `WBV2-P39-000` |
|
||||
| Current task state | `in_progress` |
|
||||
| Parent manifest | `tests/golden/WBV2-P38-000/manifest.json` |
|
||||
| Current task card | `docs/tasks/WBV2-P38-001.md` |
|
||||
| Current task-context nextTask | `WBV2-P38-002` |
|
||||
| Focused command | `node tools/web/generate-wbv2-continuous-slice.mjs --task WBV2-P38-001 --write` |
|
||||
| Parent manifest | `tests/golden/WBV2-P38-003/manifest.json` |
|
||||
| Current task card | `docs/tasks/WBV2-P39-000.md` |
|
||||
| Current task-context nextTask | `NONE` |
|
||||
| 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
|
||||
|
||||
144
tests/golden/WBV2-P38-001/continuous-task-plan.json
Normal file
144
tests/golden/WBV2-P38-001/continuous-task-plan.json
Normal file
@@ -0,0 +1,144 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"planId": "BLENDER_WEB_CONTINUOUS_P38",
|
||||
"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-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 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-P38-001",
|
||||
"phase": "P38",
|
||||
"title": "refresh_continuous_integrity",
|
||||
"kind": "feature",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-000"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-001",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P38-002",
|
||||
"phase": "P38",
|
||||
"title": "rebuild_continuous_bundle",
|
||||
"kind": "feature",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-001"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-002",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P38-003",
|
||||
"phase": "P38",
|
||||
"title": "run_continuous_smoke",
|
||||
"kind": "enabling",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-002"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-003",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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
|
||||
}
|
||||
]
|
||||
}
|
||||
25
tests/golden/WBV2-P38-001/implementation-report.json
Normal file
25
tests/golden/WBV2-P38-001/implementation-report.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-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-P38-002"
|
||||
}
|
||||
48
tests/golden/WBV2-P38-001/manifest.json
Normal file
48
tests/golden/WBV2-P38-001/manifest.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-001",
|
||||
"parentTask": "WBV2-P38-000",
|
||||
"operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE",
|
||||
"status": "done",
|
||||
"enablingTask": false,
|
||||
"parityStateChange": false,
|
||||
"runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P38-000/manifest.json",
|
||||
"sha256": "de8074eaf72fa9e6d9f1726f546d02b396ff51463b419b9139f34dba0856b96d"
|
||||
},
|
||||
"source1": {
|
||||
"path": "tools/web/refresh-wbv2-implementation-hashes.mjs",
|
||||
"sha256": "62b4c224466df7903f0b940c56a962a41b9011efc9b0b4c472c543a300a48a61"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P38-001/implementation-report.json",
|
||||
"sha256": "81975d6c31d645b51faba1a596b389edafa5aef6c9eb9d9233a2a1a5affdbace"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P38-001.md",
|
||||
"sha256": "33a9db2914617675a8fd01b27c1bee318ebf7257056ac6ce55811082107df7b8"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P38-001/continuous-task-plan.json",
|
||||
"sha256": "5c72139dc33ad201aa996eb2a431255ce8bc75bdfd19ce261bb5f05b3f340b33"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P38-001/task-context.json",
|
||||
"sha256": "a930d0d94e0fb44ebb929c0ec5d973fc33b33b900878cc1ba721ecd2e869757c"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"capabilityFamily": "RELEASE.INTEGRITY_REFRESH",
|
||||
"sourceBacked": true,
|
||||
"unsupportedFailsClosed": true,
|
||||
"verificationDeferred": true,
|
||||
"completionOverlayWritten": false,
|
||||
"inventoryTotal": 6900,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P38-002"
|
||||
}
|
||||
144
tests/golden/WBV2-P38-002/continuous-task-plan.json
Normal file
144
tests/golden/WBV2-P38-002/continuous-task-plan.json
Normal file
@@ -0,0 +1,144 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"planId": "BLENDER_WEB_CONTINUOUS_P38",
|
||||
"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-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 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-P38-001",
|
||||
"phase": "P38",
|
||||
"title": "refresh_continuous_integrity",
|
||||
"kind": "feature",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-000"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-001",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P38-002",
|
||||
"phase": "P38",
|
||||
"title": "rebuild_continuous_bundle",
|
||||
"kind": "feature",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-001"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-002",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P38-003",
|
||||
"phase": "P38",
|
||||
"title": "run_continuous_smoke",
|
||||
"kind": "enabling",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-002"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-003",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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
|
||||
}
|
||||
]
|
||||
}
|
||||
26
tests/golden/WBV2-P38-002/implementation-report.json
Normal file
26
tests/golden/WBV2-P38-002/implementation-report.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-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-P38-003"
|
||||
}
|
||||
52
tests/golden/WBV2-P38-002/manifest.json
Normal file
52
tests/golden/WBV2-P38-002/manifest.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-002",
|
||||
"parentTask": "WBV2-P38-001",
|
||||
"operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE",
|
||||
"status": "done",
|
||||
"enablingTask": false,
|
||||
"parityStateChange": false,
|
||||
"runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P38-001/manifest.json",
|
||||
"sha256": "25696a7e1bcb92fe493ce7a54a585ea24337baaa38917ea685a11aad706586e4"
|
||||
},
|
||||
"source1": {
|
||||
"path": "web/package.json",
|
||||
"sha256": "40b7f14d4f568ae94bedde83e02115c127e0c714e5eb32a6a97b1e1084c4fa68"
|
||||
},
|
||||
"source2": {
|
||||
"path": "web/app/vite.config.ts",
|
||||
"sha256": "22d78df08340dc0cd1767e912443d8bf796079e990c4818f821861b4bd445d62"
|
||||
},
|
||||
"report": {
|
||||
"path": "tests/golden/WBV2-P38-002/implementation-report.json",
|
||||
"sha256": "cb125867df27dbbeed2adfdfda541a59f3faf7080c8055dbee1cfbf788a7b2de"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P38-002.md",
|
||||
"sha256": "b6baf2afde97e92fa8b3fbde5a443d9a0b9f32142a3d2a04135a86b93ba19ca0"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P38-002/continuous-task-plan.json",
|
||||
"sha256": "efd02254453a828aa36c16ae3ce3b5d44526c8c5a389b618d9c5f7f21b596a83"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P38-002/task-context.json",
|
||||
"sha256": "1f7106ef8b8c92d172c164ea8dbae45867747cad8266e45f2eec40d8455f9a69"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"capabilityFamily": "RELEASE.BUNDLE_BUILD",
|
||||
"sourceBacked": true,
|
||||
"unsupportedFailsClosed": true,
|
||||
"verificationDeferred": true,
|
||||
"completionOverlayWritten": false,
|
||||
"inventoryTotal": 6900,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P38-003"
|
||||
}
|
||||
162
tests/golden/WBV2-P38-002/task-context.json
Normal file
162
tests/golden/WBV2-P38-002/task-context.json
Normal file
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-002",
|
||||
"parentTask": "WBV2-P38-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-P38-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-P38-002/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P38-002.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P38-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-P38-003",
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P38-002.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P38-001/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P38-001.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P38-002.md",
|
||||
"tests/golden/WBV2-P38-001/manifest.json",
|
||||
"docs/status/WBV2-P38-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-P38-001",
|
||||
"parentTask": "WBV2-P38-000",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P38-002",
|
||||
"artifactCount": 6
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P38-001 status",
|
||||
"- task: `WBV2-P38-001`; parent: `WBV2-P38-000`; status: `done`",
|
||||
"- continuous slice command exit: `0`",
|
||||
"- Chromium receipts and completion overlay: `DEFERRED`",
|
||||
"- inventory unchanged: `6900/6618`, effective `290/6609`",
|
||||
"- nextTask: `WBV2-P38-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-P38-002.md",
|
||||
"bytes": 1324,
|
||||
"lines": 38,
|
||||
"tokens": 331
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P38-001/manifest.json",
|
||||
"bytes": 1662,
|
||||
"lines": 49,
|
||||
"tokens": 416
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P38-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
|
||||
}
|
||||
}
|
||||
174
tests/golden/WBV2-P38-003/continuous-task-plan.json
Normal file
174
tests/golden/WBV2-P38-003/continuous-task-plan.json
Normal file
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"planId": "BLENDER_WEB_CONTINUOUS_P38",
|
||||
"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-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 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-P38-001",
|
||||
"phase": "P38",
|
||||
"title": "refresh_continuous_integrity",
|
||||
"kind": "feature",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-000"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-001",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P38-002",
|
||||
"phase": "P38",
|
||||
"title": "rebuild_continuous_bundle",
|
||||
"kind": "feature",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-001"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-002",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P38-003",
|
||||
"phase": "P38",
|
||||
"title": "run_continuous_smoke",
|
||||
"kind": "enabling",
|
||||
"owner": "RELEASE",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-002"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p38-003",
|
||||
"gate": "IMPLEMENTATION",
|
||||
"card": "docs/tasks/WBV2-P38-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-P39-000",
|
||||
"phase": "P39",
|
||||
"title": "authorize_continuous_wave",
|
||||
"kind": "enabling",
|
||||
"owner": "PROGRAM",
|
||||
"dependsOn": [
|
||||
"WBV2-P38-003"
|
||||
],
|
||||
"parityId": null,
|
||||
"implementationClass": "SOURCE_BACKED",
|
||||
"parallelGroup": "p39-000",
|
||||
"gate": "G1",
|
||||
"card": "docs/tasks/WBV2-P39-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
|
||||
}
|
||||
]
|
||||
}
|
||||
26
tests/golden/WBV2-P38-003/implementation-report.json
Normal file
26
tests/golden/WBV2-P38-003/implementation-report.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-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-P39-000"
|
||||
}
|
||||
52
tests/golden/WBV2-P38-003/manifest.json
Normal file
52
tests/golden/WBV2-P38-003/manifest.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-003",
|
||||
"parentTask": "WBV2-P38-002",
|
||||
"operation": "RUN_CONTINUOUS_IMPLEMENTATION_SLICE",
|
||||
"status": "done",
|
||||
"enablingTask": false,
|
||||
"parityStateChange": false,
|
||||
"runtime": "SOURCE_BACKED_CONTINUOUS_QUEUE",
|
||||
"artifacts": {
|
||||
"parentManifest": {
|
||||
"path": "tests/golden/WBV2-P38-002/manifest.json",
|
||||
"sha256": "36ec0b23db5823b36a97cb0c23dbdbd856becf830ed57ed902309a4590a4e80a"
|
||||
},
|
||||
"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-P38-003/implementation-report.json",
|
||||
"sha256": "2bedfac5efa06215a7e154a8f90a31b0af9136bb720444ff8b6c6178c5f5883b"
|
||||
},
|
||||
"status": {
|
||||
"path": "docs/status/WBV2-P38-003.md",
|
||||
"sha256": "c95f96befe1b46ce32e5a80c4db441ae415fb10c34688a22594a81f91d53792b"
|
||||
},
|
||||
"plan": {
|
||||
"path": "tests/golden/WBV2-P38-003/continuous-task-plan.json",
|
||||
"sha256": "68d62f7df81e9ede44da5ac0bece333181c0ab349b1968d0e7f0aa127817554c"
|
||||
},
|
||||
"taskContext": {
|
||||
"path": "tests/golden/WBV2-P38-003/task-context.json",
|
||||
"sha256": "e6f18fb8c1d262f381315986b8dc6c1737b389e8bd3be45db6c9371824948635"
|
||||
}
|
||||
},
|
||||
"assertions": {
|
||||
"capabilityFamily": "RELEASE.HANDOFF_SMOKE",
|
||||
"sourceBacked": true,
|
||||
"unsupportedFailsClosed": true,
|
||||
"verificationDeferred": true,
|
||||
"completionOverlayWritten": false,
|
||||
"inventoryTotal": 6900,
|
||||
"effectiveCompleted": 290,
|
||||
"effectivePending": 6609,
|
||||
"historicalReproduction": false
|
||||
},
|
||||
"nextTask": "WBV2-P39-000"
|
||||
}
|
||||
162
tests/golden/WBV2-P38-003/task-context.json
Normal file
162
tests/golden/WBV2-P38-003/task-context.json
Normal file
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P38-003",
|
||||
"parentTask": "WBV2-P38-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-P38-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-P38-003/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P38-003.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P38-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-P39-000",
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/WBV2-P38-003.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P38-002/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P38-002.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P38-003.md",
|
||||
"tests/golden/WBV2-P38-002/manifest.json",
|
||||
"docs/status/WBV2-P38-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-P38-002",
|
||||
"parentTask": "WBV2-P38-001",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P38-003",
|
||||
"artifactCount": 7
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P38-002 status",
|
||||
"- task: `WBV2-P38-002`; parent: `WBV2-P38-001`; status: `done`",
|
||||
"- continuous slice command exit: `0`",
|
||||
"- Chromium receipts and completion overlay: `DEFERRED`",
|
||||
"- inventory unchanged: `6900/6618`, effective `290/6609`",
|
||||
"- nextTask: `WBV2-P38-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-P38-003.md",
|
||||
"bytes": 1288,
|
||||
"lines": 38,
|
||||
"tokens": 322
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P38-002/manifest.json",
|
||||
"bytes": 1772,
|
||||
"lines": 53,
|
||||
"tokens": 443
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P38-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
|
||||
}
|
||||
}
|
||||
162
tests/golden/WBV2-P39-000/task-context.json
Normal file
162
tests/golden/WBV2-P39-000/task-context.json
Normal file
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P39-000",
|
||||
"parentTask": "WBV2-P38-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-P39-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-P39-000/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P39-000.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P39-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-P39-000.md",
|
||||
"taskIndex": "tests/golden/WBV2/task-index.json",
|
||||
"parentManifest": "tests/golden/WBV2-P38-003/manifest.json",
|
||||
"parentStatus": "docs/status/WBV2-P38-003.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/WBV2-P39-000.md",
|
||||
"tests/golden/WBV2-P38-003/manifest.json",
|
||||
"docs/status/WBV2-P38-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-P38-003",
|
||||
"parentTask": "WBV2-P38-002",
|
||||
"status": "done",
|
||||
"nextTask": "WBV2-P39-000",
|
||||
"artifactCount": 7
|
||||
},
|
||||
"statusSummary": [
|
||||
"# WBV2-P38-003 status",
|
||||
"- task: `WBV2-P38-003`; parent: `WBV2-P38-002`; status: `done`",
|
||||
"- continuous slice command exit: `0`",
|
||||
"- Chromium receipts and completion overlay: `DEFERRED`",
|
||||
"- inventory unchanged: `6900/6618`, effective `290/6609`",
|
||||
"- nextTask: `WBV2-P39-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-P39-000.md",
|
||||
"bytes": 1058,
|
||||
"lines": 37,
|
||||
"tokens": 265
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/WBV2-P38-003/manifest.json",
|
||||
"bytes": 1817,
|
||||
"lines": 53,
|
||||
"tokens": 455
|
||||
},
|
||||
{
|
||||
"path": "docs/status/WBV2-P38-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
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{"id":"WBV2-P38-000","gapId":"workflow:authorize_continuous_wave","ownerFamily":"PROGRAM","sourceTask":"P38","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-001","gapId":"workflow:refresh_continuous_integrity","ownerFamily":"RELEASE","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"]}
|
||||
{"id":"WBV2-P38-002","gapId":"workflow:rebuild_continuous_bundle","ownerFamily":"RELEASE","sourceTask":"P38","state":"pending","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-003","gapId":"workflow:run_continuous_smoke","ownerFamily":"RELEASE","sourceTask":"P38","state":"pending","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-001","gapId":"workflow:refresh_continuous_integrity","ownerFamily":"RELEASE","sourceTask":"P38","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-002","gapId":"workflow:rebuild_continuous_bundle","ownerFamily":"RELEASE","sourceTask":"P38","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-003","gapId":"workflow:run_continuous_smoke","ownerFamily":"RELEASE","sourceTask":"P38","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-P39-000","gapId":"workflow:authorize_continuous_wave","ownerFamily":"PROGRAM","sourceTask":"P39","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"]}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P38-000/continuous-task-plan.json","sha256":"bc98b748758639084713ec945a5cfe1a8f7e20e0c7ef28050ccd9a7e2b1b1415"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"4e127106aa2178c60d193102768822f8c11729f276f33da172e1d204ece7e7a2"},"taskCount":4,"activeTask":"WBV2-P38-001","entries":{"WBV2-P38-000":{"line":0,"offset":0,"length":341,"previous":"WBV2-P37-003","next":"WBV2-P38-001"},"WBV2-P38-001":{"line":1,"offset":341,"length":341,"previous":"WBV2-P38-000","next":"WBV2-P38-002"},"WBV2-P38-002":{"line":2,"offset":682,"length":339,"previous":"WBV2-P38-001","next":"WBV2-P38-003"},"WBV2-P38-003":{"line":3,"offset":1021,"length":334,"previous":"WBV2-P38-002","next":null}}}
|
||||
{"schemaVersion":1,"operation":"BLENDER_WEB_CAPABILITY_TASK_INDEX","source":{"path":"tests/golden/WBV2-P38-003/continuous-task-plan.json","sha256":"68d62f7df81e9ede44da5ac0bece333181c0ab349b1968d0e7f0aa127817554c"},"catalog":{"path":"tests/golden/WBV2/task-catalog.jsonl","sha256":"ee1924e25e31e9bbf6de2818513a04c4834b1825de49d4b18cd866044562afb2"},"taskCount":5,"activeTask":"WBV2-P39-000","entries":{"WBV2-P38-000":{"line":0,"offset":0,"length":341,"previous":"WBV2-P37-003","next":"WBV2-P38-001"},"WBV2-P38-001":{"line":1,"offset":341,"length":344,"previous":"WBV2-P38-000","next":"WBV2-P38-002"},"WBV2-P38-002":{"line":2,"offset":685,"length":341,"previous":"WBV2-P38-001","next":"WBV2-P38-003"},"WBV2-P38-003":{"line":3,"offset":1026,"length":336,"previous":"WBV2-P38-002","next":"WBV2-P39-000"},"WBV2-P39-000":{"line":4,"offset":1362,"length":338,"previous":"WBV2-P38-003","next":null}}}
|
||||
|
||||
86
tools/web/run-wbv2-continuous.mjs
Normal file
86
tools/web/run-wbv2-continuous.mjs
Normal file
@@ -0,0 +1,86 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { spawnSync } 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 maxArg = process.argv.indexOf("--max-iterations");
|
||||
const maxIterations = maxArg >= 0 ? Number(process.argv[maxArg + 1]) : 0;
|
||||
if (!Number.isSafeInteger(maxIterations) || maxIterations < 0) throw new Error("--max-iterations must be a non-negative integer; 0 means unlimited");
|
||||
const commitEnabled = process.argv.includes("--commit");
|
||||
const pushEnabled = process.argv.includes("--push");
|
||||
const shellQuote = (value) => `'${value.replaceAll("'", "'\\''")}'`;
|
||||
|
||||
function command(command, logPath) {
|
||||
const result = spawnSync("bash", ["-lc", command], { cwd: root, encoding: "utf8", maxBuffer: 16 * 1024 * 1024 });
|
||||
const output = `${result.stdout ?? ""}${result.stderr ?? ""}`;
|
||||
if (logPath) fs.writeFileSync(abs(logPath), output);
|
||||
return { code: result.status ?? 1, output };
|
||||
}
|
||||
|
||||
function currentTask() {
|
||||
const queue = read("docs/EXECUTION_QUEUE.md");
|
||||
const task = queue.match(/\| 当前任务 \| `(WBV2-P\d+-\d+)` \|/u)?.[1];
|
||||
const parentManifest = queue.match(/\| parent manifest \| `([^`]+)` \|/u)?.[1];
|
||||
if (!task || !parentManifest) throw new Error("queue pointer is incomplete");
|
||||
return { task, parentManifest };
|
||||
}
|
||||
|
||||
function taskCommand(task) {
|
||||
const card = read(`docs/tasks/${task}.md`);
|
||||
const match = card.match(/- Implementation entrypoint: `([^`]+)`/u);
|
||||
if (!match) throw new Error(`task card has no implementation entrypoint: ${task}`);
|
||||
return match[1];
|
||||
}
|
||||
|
||||
function assertContext() {
|
||||
const result = command("node tools/web/print-task-context.mjs && node tools/web/check-task-context.mjs", "tests/golden/WBV2/continuous-context.log");
|
||||
if (result.code !== 0) throw new Error(`context gate failed (exit ${result.code})`);
|
||||
}
|
||||
|
||||
let iterations = 0;
|
||||
const summary = [];
|
||||
while (maxIterations === 0 || iterations < maxIterations) {
|
||||
const before = currentTask();
|
||||
assertContext();
|
||||
const focused = taskCommand(before.task);
|
||||
const logPath = `tests/golden/${before.task}/continuous-runner.log`;
|
||||
const focusedResult = command(focused, logPath);
|
||||
if (focusedResult.code !== 0) throw new Error(`${before.task} focused command failed (exit ${focusedResult.code}); log=${logPath}`);
|
||||
const after = currentTask();
|
||||
if (after.task === before.task) throw new Error(`${before.task} focused command exited 0 without advancing queue; log=${logPath}`);
|
||||
const gates = command("node tools/web/check-context-governance.mjs && node tools/web/check-execution-control-plane.mjs --allow-unrunnable && node tools/web/check-v2-task-index.mjs && node tools/web/check-v2-handoff.mjs && npm --prefix web run typecheck && npm --prefix web run lint && git diff --check", `tests/golden/${before.task}/continuous-gates.log`);
|
||||
if (gates.code !== 0) throw new Error(`${before.task} post-handoff gate failed (exit ${gates.code}); log=tests/golden/${before.task}/continuous-gates.log`);
|
||||
iterations += 1;
|
||||
summary.push({ task: before.task, command: focused, nextTask: after.task, log: logPath });
|
||||
process.stdout.write(`continuous-iteration=${iterations} task=${before.task} next=${after.task}\n`);
|
||||
if (commitEnabled) {
|
||||
const manifestPath = `tests/golden/${before.task}/manifest.json`;
|
||||
const artifactPaths = fs.existsSync(abs(manifestPath))
|
||||
? Object.values(JSON.parse(read(manifestPath).toString()).artifacts ?? {}).map((artifact) => artifact?.path).filter((file) => typeof file === "string")
|
||||
: [];
|
||||
const handoffPaths = [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"nextTask.md",
|
||||
`docs/tasks/${before.task}.md`,
|
||||
`docs/tasks/${after.task}.md`,
|
||||
`docs/status/${before.task}.md`,
|
||||
`docs/status/${after.task}.md`,
|
||||
manifestPath,
|
||||
...artifactPaths,
|
||||
"tests/golden/WBV2/task-index.json",
|
||||
"tests/golden/WBV2/task-catalog.jsonl",
|
||||
].filter((file, index, all) => file && all.indexOf(file) === index && fs.existsSync(abs(file)));
|
||||
const commit = command(`git add ${handoffPaths.map(shellQuote).join(" ")}`, `tests/golden/${before.task}/continuous-commit.log`);
|
||||
if (commit.code !== 0) throw new Error(`${before.task} staging failed; log=tests/golden/${before.task}/continuous-commit.log`);
|
||||
const commitResult = command(`git diff --cached --quiet || git commit -m "chore(web): continuous handoff ${before.task}"`, `tests/golden/${before.task}/continuous-commit-result.log`);
|
||||
if (commitResult.code !== 0) throw new Error(`${before.task} commit failed; log=tests/golden/${before.task}/continuous-commit-result.log`);
|
||||
if (pushEnabled) {
|
||||
const push = command("git push origin main", `tests/golden/${before.task}/continuous-push.log`);
|
||||
if (push.code !== 0) throw new Error(`${before.task} push failed; log=tests/golden/${before.task}/continuous-push.log`);
|
||||
}
|
||||
}
|
||||
}
|
||||
process.stdout.write(`continuous-run-complete iterations=${iterations} current=${currentTask().task} committed=${commitEnabled} pushed=${pushEnabled}\n`);
|
||||
Reference in New Issue
Block a user