version: 1
id: agentic-sdd-loop
title: Agentic SDD Loop
inputs:
  input: Feature, bug, card, webhook payload or natural-language demand.
max_iterations: 3
nodes:
  - id: resolve-input
    action: command
    command: sdd resolve-input {input}
    description: Resolve card, resume or free text into the canonical orchestration name and next stage.
  - id: planning-loop
    action: command
    command: sdd workflow run standard-sdd --input {input} --max-iterations 100 --json
    description: Run the durable SDD planning loop until the first human gate or idle state.
  - id: planning-status
    action: command
    command: sdd workflow status standard-sdd --json
    description: Persist and expose the durable planning report for agents and clients.
  - id: prd-gate
    action: checkpoint
    stage: prd
    description: Pause for explicit human approval before Tech Spec and deeper loops.
edges:
  - from: resolve-input
    to: planning-loop
  - from: planning-loop
    to: planning-status
  - from: planning-status
    to: prd-gate
