prd.md
1.67 KB
The planner work node finished — it produced a PRD v2 for the new Graph page (Org Graph / Work Graph visualization + output overview), building on the previously approved BRD.
Key points from the PRD:
- New page:
v_graph_consoleat route#/graph(kept distinct from the existingv_graph_visualizercomponent embedded inv_task_detail, to avoid naming collision). - FR-1: New Org Graph topology renderer showing the 3 fixed nodes (planner/coder/validator) with flow + retry-loop edges, replacing reliance on the existing
org-strip. - FR-2/3: Work Graph rendering reuses existing
computeGraphLayers/renderGraphVisualizerPanel, adds a task switcher, and reuses the existing WebSocket event flow for live updates. - FR-4 (the core fix in this revision): Click-to-expand-logs is implemented as an opt-in parameter (
enableNodeClick/onNodeClick) on the shared rendering functions, sov_task_detail's existing hover-only behavior is explicitly guaranteed to stay unchanged — this resolves a contradiction flagged by consistency review in the prior draft (v1 implied both "shared code" and "v_task_detail unaffected" without a mechanism to reconcile them). - FR-5: An "artifacts overview" panel (docs/code/graph-run-history/tasks) done as summary + "view all" links to existing pages, rather than reimplementing filtering — one new backend endpoint needed:
GET /api/work-graph-runs. - Includes updated acceptance criteria (AC-1–AC-6), test scenarios, and a suggested
docs/sdd/02-V-界面与交互.md§2.7.2 addition.
This is planner-stage output only (no code was written, consistent with the planner agent's role) — next step would be the SDD stage or handing this PRD to the Coder.