# Execution Plan — {{projectName}}

> Phase: {{currentPhase}} | Status: {{status}}

---

## Phase Overview

### {{phaseName}}

{{phaseDescription}}

**Duration:** {{phaseDuration}}
**Owner:** {{phaseOwner}}
**Dependencies:** {{#if phaseDependencies}}{{phaseDependencies}}{{else}}None{{/if}}

---

## Task Breakdown

{{#each tasks}}
### {{this.id}}: {{this.name}}

**Owner:** {{this.owner}}
**Type:** {{this.type}}
**Priority:** {{this.priority}}
**Status:** {{this.status}}

#### Description
{{this.description}}

#### Dependencies
{{#if this.dependencies}}
- {{this.dependencies}}
{{else}}
None
{{/if}}

#### Files
{{#if this.files}}
- Input: {{this.inputs}}
- Output: {{this.outputs}}
{{/if}}

#### Contracts
{{#if this.contracts}}
- {{this.contracts}}
{{else}}
None
{{/if}}

#### Acceptance Criteria
{{#each this.acceptance}}
- {{this}}
{{/each}}

#### Verification
```bash
{{this.verify}}
```

---

{{/each}}

---

## Dependency Graph

```mermaid
graph TD
{{#each dependencies}}
    {{this.id}}[{{this.label}}]
    {{#each this.deps}}
    {{../id}} --> {{this}}
    {{/each}}
{{/each}}
```

### Critical Path
{{#if criticalPath}}
The following tasks form the critical path:
{{#each criticalPath}}
{{@index}}. {{this}}
{{/each}}
{{/if}}

### Parallel Execution Opportunities
{{#if parallelTasks}}
These tasks can be executed in parallel:
{{#each parallelTasks}}
- **{{this.name}}:** {{this.description}}
{{/each}}
{{/if}}

---

## Resource Allocation

| Role | Agent | Tasks | Hours |
|------|-------|-------|-------|
{{#each resources}}
| {{this.role}} | {{this.agent}} | {{this.taskCount}} | {{this.estimatedHours}} |
{{/each}}

---

## Contracts & Interfaces

{{#if contracts}}
{{#each contracts}}
### {{this.name}}
- **Path:** `{{this.path}}`
- **Format:** {{this.format}}
- **Version:** {{this.version}}
- **Provider:** {{this.provider}}
- **Consumers:** {{this.consumers}}

{{/each}}
{{/if}}

---

## Execution Strategy

### Parallel Strategy
{{#if parallelStrategy}}
{{parallelStrategy}}
{{/if}}

### Rollout Plan
{{#if rolloutPlan}}
{{rolloutPlan}}
{{/if}}

### Testing Strategy
{{#if testingStrategy}}
{{testingStrategy}}
{{/if}}

---

## Risk Mitigation

{{#if risks}}
{{#each risks}}
### {{this.name}}
- **Risk:** {{this.description}}
- **Impact:** {{this.impact}}
- **Mitigation:** {{this.mitigation}}
- **Contingency:** {{this.contingency}}

{{/each}}
{{/if}}

---

## Success Criteria

This phase is complete when:

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

---

## Notes

{{#if notes}}
{{notes}}
{{/if}}

---

> **Token Budget:** ~6000 tokens max
> **Last Updated:** {{timestamp}}
