From 28f8fca0a2b9c86001a4246fdfca1eba99f851e2 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Sun, 4 May 2025 22:05:59 -0500 Subject: [PATCH] drastically simplified workflow diagram --- workflow-diagram.md | 206 +++++++++++++++++--------------------------- 1 file changed, 77 insertions(+), 129 deletions(-) diff --git a/workflow-diagram.md b/workflow-diagram.md index b3c860ac..763831e4 100644 --- a/workflow-diagram.md +++ b/workflow-diagram.md @@ -1,135 +1,83 @@ ```mermaid flowchart TD -subgraph subGraph0["Phase 0: Ideation (Optional)"] -A1["BA / Researcher"] -A0["User Idea"] -A2["project-brief"] -A3["DR: BA"] -end -subgraph subGraph1["Phase 1: Product Definition"] -B1["Product Manager"] -B2["prd"] -B3["epicN (Functional Draft)"] -B4["DR: PRD"] -end -subgraph subGraph2["Phase 2: Technical Design"] -C1["Architect"] -C2["architecture"] -C3["Reference Files"] -C4["DR: Architecture"] -end -subgraph subGraph3["Phase 3: Refinement, Validation & Approval"] -R1{"Refine & Validate Plan"} -R2["PM + Architect + Tech SM"] -R3["PO Validation"] -R4{"Final Approval?"} -R5["Approved Docs Finalized"] -R6["index"] -end -subgraph subGraph4["Phase 4: Story Generation"] -E1["Technical Scrum Master"] -E2["story-template"] -E3["story_X_Y"] -end -subgraph subGraph5["Phase 5: Development"] -F1["Developer Agent"] -F2["Code + Tests Committed"] -F3["Story File Updated"] -end -subgraph subGraph6["Phase 6: Review & Acceptance"] -G1{"Review Code & Functionality"} -G1_1["Tech SM / Architect"] -G1_2["User / QA Agent"] -G2{"Story Done?"} -G3["Story Done"] -end -subgraph subGraph7["Phase 7: Deployment"] -H1("Developer Agent") -H2@{ label: "Run IaC Deploy Command (e.g., `cdk deploy`)" } -H3["Deployed Update"] -end -A0 -- PO Input on Value --> A1 -A1 --> A2 & A3 -A2 --> B1 -A3 --> B1 -B4 <--> B1 -B1 --> B2 & B3 -B2 --> C1 & R1 -B3 <-- Functional Req --> C1 -C4 -.-> C1 -C1 --> C2 & C3 -B3 --> R1 -C2 --> R1 -C3 --> R1 -R1 -- Collaboration --> R2 -R2 -- Technical Input --> B3 -R1 -- Refined Plan --> R3 -R3 -- "Checks:
1. Scope/Value OK?
2. Story Sequence/Deps OK?
3. Holistic PRD Alignment OK?" --> R4 -R4 -- Yes --> R5 -R4 -- No --> R1 -R5 --> R6 & E1 -B3 -- Uses Refined Version --> E1 -C3 -- Uses Approved Version --> E1 -E1 -- Uses --> E2 -E1 --> E3 -E3 --> F1 -F1 --> F2 & F3 -F2 --> G1 -F3 --> G1 -G1 -- Code Review --> G1_1 -G1 -- Functional Review --> G1_2 -G1_1 -- Feedback --> F1 -G1_2 -- Feedback --> F1 -G1_1 -- Code OK --> G2 -G1_2 -- Functionality OK --> G2 -G2 -- Yes --> G3 -G3 --> H1 -H1 --> H2 -H2 --> H3 -H3 --> E1 + %% Phase 0: BA + subgraph BA["Phase 0: Business Analyst"] + BA_B["Mode 1: Brainstorming"] + BA_R["Mode 2: Deep Research"] + BA_P["Mode 3: Project Briefing"] - H2@{ shape: rect} - A0:::default - A1:::agent - A2:::doc - A3:::doc - B1:::default - B2:::doc - B3:::doc - B4:::doc - C1:::default - C2:::doc - C3:::doc - C4:::doc - F2:::default - F3:::doc - H3:::default - R1:::process - R2:::agent - R3:::agent - R4:::process - R5:::default - R6:::doc - E1:::agent - E2:::doc - E3:::doc - F1:::agent - G1:::process - G1_1:::agent - G1_2:::agent - G2:::process - G3:::process - H1:::agent - H2:::process - classDef agent fill:#1a73e8,stroke:#0d47a1,stroke-width:2px,color:white,font-size:14px - classDef doc fill:#43a047,stroke:#1b5e20,stroke-width:1px,color:white,font-size:14px + BA_B --> BA_P + BA_R --> BA_P + end + + %% Phase 1: PM + subgraph PM["Phase 1: Product Manager"] + PM_D["Mode 2: Deep Research"] + PM_M["Mode 1: Initial Product Def."] + PM_C["PM Checklist Verification"] + PM_PRD["PRD Complete"] + + PM_D --> PM_M + PM_M --> PM_C + PM_C --> PM_PRD + end + + %% Phase 2: Architect + subgraph ARCH["Phase 2: Architect"] + ARCH_P["Architecture Package Creation"] + ARCH_C["Architect Checklist Verification"] + ARCH_D["PRD+Architecture and Artifacts"] + + ARCH_P --> ARCH_C + ARCH_C --> ARCH_D + end + + %% Phase 3: PO + subgraph PO["Phase 3: Product Owner"] + PO_C["PO Checklist Verification"] + PO_A["Approval"] + end + + %% Phase 4: SM + subgraph SM["Phase 4: Scrum Master"] + SM_S["Draft Next Story"] + SM_A["User Story Approval"] + end + + %% Phase 5: Developer + subgraph DEV["Phase 5: Developer"] + DEV_I["Implement Story"] + DEV_T["Test"] + DEV_D["Deploy"] + DEV_A["User Approval"] + + DEV_I --> DEV_T + DEV_T --> DEV_D + DEV_D --> DEV_A + end + + %% Connections between phases + BA_P --> PM_M + User_Input[/"User Direct Input"/] --> PM_M + PM_PRD --> ARCH_P + ARCH_D --> PO_C + PO_C --> PO_A + PO_A --> SM_S + SM_S --> SM_A + SM_A --> DEV_I + DEV_A --> SM_S + + %% Completion condition + DEV_A -- "All stories complete" --> DONE["Project Complete"] + + %% Styling + classDef phase fill:#1a73e8,stroke:#0d47a1,stroke-width:2px,color:white,font-size:14px + classDef artifact fill:#43a047,stroke:#1b5e20,stroke-width:1px,color:white,font-size:14px classDef process fill:#ff9800,stroke:#e65100,stroke-width:1px,color:white,font-size:14px - classDef default fill:#333333,color:white,stroke:#999999,stroke-width:1px,font-size:14px + classDef approval fill:#d81b60,stroke:#880e4f,stroke-width:1px,color:white,font-size:14px - %% Styling for subgraphs - classDef subGraphStyle font-size:16px,font-weight:bold - class subGraph0,subGraph1,subGraph2,subGraph3,subGraph4,subGraph5,subGraph6,subGraph7 subGraphStyle - - %% Styling for edge labels - linkStyle default font-size:12px + class BA,PM,ARCH,PO,SM,DEV phase + class BA_P,PM_PRD,ARCH_D artifact + class BA_B,BA_R,PM_D,PM_M,ARCH_P,SM_S,DEV_I,DEV_T,DEV_D process + class PM_C,ARCH_C,PO_C,PO_A,SM_A,DEV_A approval ```