# Claude Collective v9.4.2 - Self-Learning & Resilient Workflow

{% if doc.sections %}
{# New dynamic sections approach #}
{% for section in doc.sections %}
{% if section.section_type == "core_mission" %}
## {{ section.title }}
{{ section.content }}

{% elif section.section_type == "content" %}
## {{ section.title }}

{{ section.content }}

{% elif section.section_type == "principles" %}
## {{ section.title }}
{% for principle in doc.principles %}
### {{ principle.title }}
{{ principle.content }}
{% endfor %}
{% elif section.section_type == "agents" %}
## {{ section.title }}

{{ doc.agents_markdown if doc.agents_markdown else section.content }}

{% else %}
## {{ section.title }}

{{ section.content }}

{% endif %}
{% endfor %}
{% else %}
{# Legacy hardcoded sections approach #}
## Core Mission
{{ doc.core_mission }}
## Fundamental Principles

{% for principle in doc.principles %}
### {{ principle.title }}
{{ principle.content }}
{% endfor %}
## Agent Specifications

{{ doc.agents_markdown }}
## Optimized Communication Patterns

{% for pattern_content in doc.communication_patterns.values() %}{{ pattern_content }}
{% endfor %}
## Dynamic Validation System

{% for validation_content in doc.validation_system.values() %}{{ validation_content }}
{% endfor %}
## Directory Management

{{ doc.directory_management }}
## Workflow Execution

{{ doc.workflow_execution }}
## Key Artifacts

{{ doc.key_artifacts }}
{% endif %}
