feat(web): complete user-facing workflow command coverage
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user