# K-07 — Autonomous DoD loop
# Category: KEY
# Kapitel: 09 – Definition of Done und autonome Loops
# Anker: DoD agent-ermittelbar; sonst kein echter Loop
# Orientierung: 16:9 landscape
# Didaktik: Change → DoD checks → done/fix; ohne maschinenlesbare Checks nur Ping-Pong.
# Caption (DE): Autonomie braucht agent-ermittelbare DoD — sonst nur Ping-Pong.
# Ziel-Asset: assets/illustrations/K-07-autonomous-dod-loop.jpg
# Language: English (Gemini / Imagen)
# Usage: paste entire prompt body below into Gemini

--- PROMPT START ---
Create an autonomous verification loop diagram, 16:9 landscape, for a professional engineering practice book about coding agents.

TOPIC: Real agent autonomy requires machine-checkable Definition of Done (DoD). Without it, work becomes human ping-pong.

GLOBAL STYLE:
- clean flowchart; navy, teal, green done, amber fix, red anti-pattern; off-white background; flat vector
- minimal English labels; print-ready

QUALITY GUARDRAILS:
- every visible word correctly spelled English; max ~12 short labels
- command examples short and real-looking: "pnpm test --filter …", "lint", "git diff --name-only"
- no brand logos; no mascots

Title text exactly: "Autonomy needs a checkable DoD"
Subtitle: "done is measured — not narrated"

MAIN LOOP:
1 node "Attempt change"
2 node "Run DoD checks" with chips: "tests exit 0" · "lint" · "scope check"
3 diamond "all green?"
   - YES → "report / done" → optional "commit if allowed"
   - NO → "diagnose → fix" → back to 1
4 side brake chip: "max attempts → escalate / handoff"

BOTTOM-LEFT small red anti-loop:
"write → claim done → user: not yet → write…"
label: "ping-pong, not an agent loop"

RIGHT panel "Agent DoD vs human gates":
- green list: "exit codes · contract tests · scope checks"
- gray list: "UX feel · clean code · senior taste"

MOOD: rigorous, practical, anti-hype.
ASPECT: 16:9.
NEGATIVE: no robots, no neon, no watermarks, no fake dashboards with invented metrics.
--- PROMPT END ---

# Follow-up edit:
# Keep contrast between real DoD loop and ping-pong anti-loop.
# Preserve Agent DoD vs human gates panel.
