# Retrospective (REX): {title}

> **{summary}**

---

## Metadata

| Field | Value |
|-------|-------|
| **REX ID** | REX-{rex_id} |
| **Type** | {type} |
| **Scope** | {scope} |
| **Date** | {date} |
| **Facilitator** | {facilitator} |
| **Participants** | {participants} |

---

## Context

### What Was Delivered

| Item | Type | Status |
|------|------|--------|
| {item_1} | {type_1} | {status_1} |
| {item_2} | {type_2} | {status_2} |
| {item_3} | {type_3} | {status_3} |

### Key Metrics

| Metric | Planned | Actual | Variance |
|--------|---------|--------|----------|
| Stories completed | {stories_planned} | {stories_actual} | {stories_variance} |
| UCV coverage | {ucv_planned} | {ucv_actual} | {ucv_variance} |
| Bugs found | {bugs_planned} | {bugs_actual} | {bugs_variance} |
| Technical debt | {debt_planned} | {debt_actual} | {debt_variance} |

---

## What Went Well (Keep Doing)

### Successes

1. **{success_1_title}**
   - What: {success_1_what}
   - Impact: {success_1_impact}
   - Action: Continue this practice

2. **{success_2_title}**
   - What: {success_2_what}
   - Impact: {success_2_impact}
   - Action: Continue this practice

3. **{success_3_title}**
   - What: {success_3_what}
   - Impact: {success_3_impact}
   - Action: Continue this practice

### Patterns Validated

| Pattern | Evidence | Confidence |
|---------|----------|------------|
| {pattern_1} | {evidence_1} | {confidence_1} |
| {pattern_2} | {evidence_2} | {confidence_2} |

---

## What Didn't Go Well (Stop Doing)

### Challenges

1. **{challenge_1_title}**
   - What happened: {challenge_1_what}
   - Root cause: {challenge_1_cause}
   - Impact: {challenge_1_impact}
   - Learning: {challenge_1_learning}

2. **{challenge_2_title}**
   - What happened: {challenge_2_what}
   - Root cause: {challenge_2_cause}
   - Impact: {challenge_2_impact}
   - Learning: {challenge_2_learning}

### Anti-Patterns Identified

| Anti-Pattern | Occurrence | Prevention |
|--------------|------------|------------|
| {antipattern_1} | {occurrence_1} | {prevention_1} |
| {antipattern_2} | {occurrence_2} | {prevention_2} |

---

## What to Improve (Start Doing)

### Improvement Areas

1. **{improvement_1_title}**
   - Current state: {improvement_1_current}
   - Target state: {improvement_1_target}
   - Action: {improvement_1_action}
   - Owner: {improvement_1_owner}

2. **{improvement_2_title}**
   - Current state: {improvement_2_current}
   - Target state: {improvement_2_target}
   - Action: {improvement_2_action}
   - Owner: {improvement_2_owner}

### Experiments to Try

| Experiment | Hypothesis | Measure | Duration |
|------------|------------|---------|----------|
| {experiment_1} | {hypothesis_1} | {measure_1} | {duration_1} |
| {experiment_2} | {hypothesis_2} | {measure_2} | {duration_2} |

---

## Learnings to Preserve

### Technical Learnings

| Learning | Context | Application |
|----------|---------|-------------|
| {tech_learning_1} | {tech_context_1} | {tech_application_1} |
| {tech_learning_2} | {tech_context_2} | {tech_application_2} |

### Process Learnings

| Learning | Before | After |
|----------|--------|-------|
| {process_learning_1} | {before_1} | {after_1} |
| {process_learning_2} | {before_2} | {after_2} |

### Team Learnings

| Learning | Impact |
|----------|--------|
| {team_learning_1} | {team_impact_1} |
| {team_learning_2} | {team_impact_2} |

---

## Action Items

### Immediate Actions

| Action | Owner | Due Date | Status |
|--------|-------|----------|--------|
| {action_1} | {owner_1} | {due_1} | {status_1} |
| {action_2} | {owner_2} | {due_2} | {status_2} |
| {action_3} | {owner_3} | {due_3} | {status_3} |

### Long-Term Improvements

| Improvement | Owner | Target | Metric |
|-------------|-------|--------|--------|
| {longterm_1} | {lt_owner_1} | {lt_target_1} | {lt_metric_1} |
| {longterm_2} | {lt_owner_2} | {lt_target_2} | {lt_metric_2} |

---

## Patterns to Add to Memory

### New Patterns

```json
{
  "id": "P-LEARN-{pattern_id}",
  "type": "prevention",
  "category": "{category}",
  "trigger": "{trigger}",
  "action": "{action}",
  "confidence": {confidence},
  "source": "REX-{rex_id}"
}
```

### Updated Rules

| Rule | Change | Rationale |
|------|--------|-----------|
| {rule_1} | {change_1} | {rationale_1} |

---

## Mood Check

### Team Sentiment

```
Very Happy  😄  {happy_count}
Happy       🙂  {ok_count}
Neutral     😐  {neutral_count}
Unhappy     😕  {unhappy_count}
Very Unhappy 😢  {sad_count}
```

### Key Themes

- {theme_1}
- {theme_2}
- {theme_3}

---

## Follow-up

### Next REX

| Field | Value |
|-------|-------|
| Scheduled | {next_rex_date} |
| Focus | {next_rex_focus} |

### Tracking

| Item | Review Date | Reviewer |
|------|-------------|----------|
| {tracking_item_1} | {review_date_1} | {reviewer_1} |
| {tracking_item_2} | {review_date_2} | {reviewer_2} |

---

## Related

- Sprint: [Sprint {sprint_number}](../sprints/sprint-{sprint_number}.md)
- Epic: [EPIC-{epic_id}](../backlog/epics/EPIC-{epic_id}.md)
- Previous REX: [REX-{prev_rex_id}](./REX-{prev_rex_id}.md)

