# Roadmap — {{projectName}}

> Current Status: {{currentStatus}} | Last Updated: {{timestamp}}

---

## Project Status

{{#if projectStatus}}
- **Current Milestone:** {{projectStatus.currentMilestone}}
- **Current Phase:** {{projectStatus.currentPhase}}
- **Overall Progress:** {{projectStatus.progress}}%
- **Estimated Completion:** {{projectStatus.estimatedCompletion}}
{{/if}}

---

## Milestone Overview

{{#each milestones}}
### {{this.name}}
{{this.description}}

- **Status:** {{this.status}}
- **Duration:** {{this.duration}}
- **Dependencies:** {{#if this.dependencies}}{{this.dependencies}}{{else}}None{{/if}}
- **Deliverables:**
{{#each this.deliverables}}
  - {{this}}
{{/each}}

{{/each}}

---

## Phase Breakdown

{{#each phases}}
### Phase {{@index}}: {{this.name}}

{{this.description}}

**Duration:** {{this.duration}}
**Dependencies:** {{#if this.dependencies}}{{this.dependencies}}{{else}}None{{/if}}

#### Tasks
{{#each this.tasks}}
- **[{{this.status}}]** {{this.id}} — {{this.name}} ({{this.owner}})
{{/each}}

#### Deliverables
{{#each this.deliverables}}
- {{this}}
{{/each}}

{{#if this.notes}}
**Notes:**
{{this.notes}}
{{/if}}

---

{{/each}}

---

## Dependency Graph

```mermaid
graph TD
{{#each dependencyGraph}}
    {{this.from}}[{{this.fromLabel}}] --> {{this.to}}[{{this.toLabel}}]
{{/each}}
```

---

## Risk Register

{{#if risks}}
| Risk | Impact | Probability | Mitigation | Owner |
|------|--------|-------------|------------|-------|
{{#each risks}}
| {{this.description}} | {{this.impact}} | {{this.probability}} | {{this.mitigation}} | {{this.owner}} |
{{/each}}
{{/if}}

---

## Upcoming Work

### Next Sprint
{{#if nextSprint}}
{{#each nextSprint}}
- **{{this.task}}** — {{this.description}} ({{this.owner}})
{{/each}}
{{/if}}

### Backlog
{{#if backlog}}
{{#each backlog}}
- **[{{this.priority}}]** {{this.name}} — {{this.description}}
{{/each}}
{{/if}}

---

## Definition of Done

A milestone is considered complete when:

{{#each definitionOfDone}}
{{@index}}. {{this}}
{{/each}}

---

## Changes & Decisions

{{#if changes}}
### Recent Changes
{{#each changes}}
- **[{{this.date}}]** {{this.description}} — *{{this.author}}*
{{/each}}
{{/if}}

---

> **Version:** {{version}}
> **Last Updated:** {{timestamp}}
