%%{init: {'theme':'base', 'themeVariables': {'lineColor':'#888888', 'edgeLabelBackground':'#ffffff', 'clusterBorder':'#b0b0b0', 'clusterBkg':'#d4e8fb', 'primaryColor':'#ffe9b3'}}}%%
flowchart LR
    A["📝 Create issue<br/><i>agdt-initiate-create-jira-issue-workflow</i>"]
    B["✨ Optimize for AI agent<br/><i>agdt-initiate-optimize-issue-for-ai-agent-workflow</i>"]
    C["👤 Assign to agent<br/><i>agdt-assign-implementation-agent</i>"]
    D["🛠️ Agent implements<br/><i>agdt-initiate-work-on-jira-issue-workflow</i>"]
    E["🔍 Automated PR review<br/><i>agdt-initiate-pull-request-review-workflow</i>"]
    G["👥 Human review<br/>(required sign-off)"]
    F["✅ Merge when green<br/>& approved"]

    A --> B --> C --> D --> E --> G --> F
    E -. "changes requested" .-> D
    G -. "changes requested" .-> D
    F -. "next story" .-> A
