SDLC blueprint

XP — major processes & flow maps

```mermaid

XP — major processes & flow maps

1. Iteration loop

flowchart LR IP[Iteration planning] --> DEV[Build: pair + TDD + CI] DEV --> ACC[Acceptance] ACC --> DEMO[Demo] DEMO --> RT[Retrospective] RT --> IP

2. TDD micro-loop (within story)

flowchart TD R[Red: failing test] --> G[Green: minimal code] G --> RF[Refactor] RF --> R

3. Story lifecycle

flowchart LR S[Story drafted] --> AT[Acceptance tests agreed] AT --> IMPL[Implement + unit tests] IMPL --> CI[CI green] CI --> ACP[Customer accepts]

4. Planning game (priorities vs estimates)

flowchart TD C[Customer: highest value story?] --> T[Team: estimate cost] T --> D{Fits iteration?} D -->|Yes| P[Pull to iteration] D -->|No| C

5. Phases A–F (XP locus)

Phase Typical XP locus
A Shape Stories with customer; release themes
B Plan Iteration planning; tasks
C Build Pairing, TDD, CI
D Verify Acceptance tests; collective ownership
E Release Small / frequent releases
F Learn Production feedback; retrospective

6. Flow details (walkthrough)

Iteration loop — Short iterations: plan a small story batch, build with pairing/TDD/CI, acceptance, demo with customer, retrospective; replan with what you learned.

TDD — Red (failing test) → Green (minimal code) → Refactor (keep tests green); repeat within the story so design stays test-guided and CI catches regressions.

Story lifecycle — Acceptance tests agreed before implementation define customer-visible done; then implement with unit tests and green CI; customer acceptance closes the story.

Planning game — Customer orders by value; team estimates; pull stories until capacity fits. If top value does not fit, split, defer, or negotiate scope explicitly.

7. Authoritative sources & further reading

Full curated list: REFERENCE-LINKS.md.

Canonical source

Edit https://github.com/autowww/blueprints/blob/main/sdlc/methodologies/xp/process-and-flows.md first; regenerate with docs/build-handbook.py.