graphlemon-prd-consistency-cf139b0e0b2d4dfe93d272053740e516.js
2.5 KB
export const meta = { name: "graphlemon-prd-consistency-cf139b0e0b2d4dfe93d272053740e516", description: 'graphlemon PRD consistency check' }
const result = await agent("Review the following PRD for internally CONTRADICTORY scenario assumptions -- e.g. two requirements that cannot both hold at once, or the same scenario described two incompatible ways. Do NOT flag mere incompleteness, ambiguity, or style issues, only genuine self-contradiction. Reply via the required schema: consistent=false only if you found a real contradiction, and list each one in issues.\n\nPRD:\n\nThe planner work node finished \u2014 it produced a PRD v2 for the new Graph page (Org Graph / Work Graph visualization + output overview), building on the previously approved BRD.\n\nKey points from the PRD:\n- New page: `v_graph_console` at route `#/graph` (kept distinct from the existing `v_graph_visualizer` component embedded in `v_task_detail`, to avoid naming collision).\n- 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`.\n- FR-2/3: Work Graph rendering reuses existing `computeGraphLayers`/`renderGraphVisualizerPanel`, adds a task switcher, and reuses the existing WebSocket event flow for live updates.\n- 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, so `v_task_detail`'s existing hover-only behavior is explicitly guaranteed to stay unchanged \u2014 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).\n- 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 \u2014 one new backend endpoint needed: `GET /api/work-graph-runs`.\n- Includes updated acceptance criteria (AC-1\u2013AC-6), test scenarios, and a suggested `docs/sdd/02-V-\u754c\u9762\u4e0e\u4ea4\u4e92.md` \u00a72.7.2 addition.\n\nThis is planner-stage output only (no code was written, consistent with the planner agent's role) \u2014 next step would be the SDD stage or handing this PRD to the Coder.", { agentType: 'planner', schema: {"type": "object", "required": ["consistent", "issues"], "properties": {"consistent": {"type": "boolean"}, "issues": {"type": "array", "items": {"type": "string"}}}} })
return result