feat(web): complete user-facing workflow command coverage
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-06 05:48:41 +08:00
parent 187deb0986
commit 23c59c2c2e
20 changed files with 670 additions and 40 deletions

View File

@@ -104,6 +104,11 @@ def finalize_product_task(backlog: dict) -> None:
record["ready"] = False
plan["status"] = "PRODUCT_IMPLEMENTATION_COMPLETE"
write_json(plan_path, plan)
parent_manifest_path = ROOT / "tests/golden" / parent_id / "manifest.json"
parent_manifest = read_json(parent_manifest_path)
if isinstance(parent_manifest.get("artifacts", {}).get("plan"), dict):
parent_manifest["artifacts"]["plan"]["sha256"] = file_hash(str(plan_path.relative_to(ROOT)))
write_json(parent_manifest_path, parent_manifest)
output = ROOT / "tests/golden" / task_id
report_path = output / "product-implementation-report.json"
status_path = ROOT / "docs/status" / f"{task_id}.md"
@@ -126,12 +131,6 @@ def finalize_product_task(backlog: dict) -> None:
"changedFiles": changed_files,
"sourceInventory": backlog.get("sourceInventory"),
})
write_json(status_path.with_suffix(".json"), {
"schemaVersion": 1,
"task": task_id,
"status": "implemented",
"verification": "deferred_until_user_reports",
})
status_path.write_text(
f"# {task_id} status\n\n- status: `implemented`\n- workflow modules: `16/16`\n- implementation tasks: `{len(backlog.get('tasks', []))}/{len(backlog.get('tasks', []))}`\n- verification: `deferred_until_user_reports`\n- nextTask: `NONE`\n",
encoding="utf-8",