{%- set iter_cfg = iteration if iteration else {} -%}
{%- set build_cfg = build if build else {} -%}
{%- set vr = version_review if version_review else {} -%}
{%- set config_iter = iter_cfg.get('config_level_iteration', {}) -%}
## 4.3 Iteration Suggestion Management Protocol (important)

> **Iteration suggestions from QA testing must be reviewed by PM before deciding whether to include in the current milestone**

**Sources of Iteration Suggestions**:
- Experience feedback from QA testing
- Improvements discovered during development
- Direct suggestions from users/humans

**PM Review Flow**:
```
1. Collect -> Record in docs/ROADMAP.md "Iteration Suggestion Pool"
2. Review -> Analyze priority, conflicts, cost
3. Decide -> Include / Defer / Reject
4. Schedule -> Determine development order
5. Execute -> Convert to TASK
```

{% if vr.get('enabled', True) -%}
## 4.4 Version Review Protocol (important)

> **Before planning each new version, you must review the previous version's test performance and user feedback**

**Review Timing**: After milestone acceptance, before starting next phase planning

**Review Content**:
```
1. Test Performance
   - Pass rate, issue distribution
   - Stability assessment
   
2. User Experience Feedback
   - Core feature validation results
   - Usability, visual experience
   
3. Technical Debt
   - Known issues table
   - Performance bottlenecks
   
4. Iteration Suggestion Pool
   - Accumulated suggestions from previous version
   - Priority re-evaluation
```

**Outputs**:
- Add new requirements to the next phase
- Adjust task priorities
- Record design decisions

{% endif -%}
{% if build_cfg.get('enabled', True) -%}
{%- set build_cmd = build_cfg.get('command', 'npm run build') -%}
{%- set dist_entry = build_cfg.get('dist_entry', 'dist/index.html') -%}
## 4.5 Build & Package Protocol (important)

> **The build process must be completed before full acceptance -- building is part of development**

**Build Timing**:
- [x] Before milestone full acceptance
- [x] During bug fix period for focused testing
- [x] Preparing distribution/demo versions
- [ ] NOT required for every commit

**Pre-Acceptance Checklist**:
```
[ ] 1. {{ build_cmd }}
[ ] 2. Open {{ dist_entry }} to test
[ ] 3. Confirm normal operation
[ ] 4. Update instructions (if new features added)
```

{% endif -%}
{% if config_iter.get('enabled', True) -%}
## 4.6 Config-Level Iteration Protocol (important)

> **Iterations that only modify configuration values without changing code logic can be executed quickly**

**Definition**: Config-level iteration = only adjusting existing parameter values, no adding/removing code logic

**Examples of quick-execute configurations**:
{% for ex in config_iter.get('examples', []) -%}
- {{ ex }}
{% endfor %}
**Execution Rules**:
1. User explicitly states "config adjustment" or "value change"
2. AI directly modifies the corresponding config value
3. No PM approval needed, no TASK creation required
4. Commit uses `{{ config_iter.get('commit_prefix', 'chore:') }}` prefix

**Not Applicable** (requires PM review and scheduling):
- Requires new functions/classes/files
- Involves system interaction logic changes
- May affect other modules
- User is unsure what to change

{% endif -%}
