# Context Markdown template - renders docs/context.yaml to docs/CONTEXT.md
# {{ project_name }} Global Context

> ⚠️ **This file is auto-generated, do not edit manually**
> Last updated: {{ updated_at }}
{% if aggregated_from %}> Aggregated from: {{ aggregated_from|join(', ') }}
{% endif %}

## Project Overall Status
- **Version**: {{ project_status.current_version }}
{% if project_status.active_roles %}- **Active roles**: {{ project_status.active_roles|length }} ({{ project_status.active_roles|join(', ') }})
{% else %}- **Active role**: {{ project_status.active_role }}
{% endif %}- **Milestone**: {{ project_status.milestone }}

## Role Work Status

{% if roles %}
{% for role in roles %}
### {{ role.role }}
- **Last updated**: {{ role.updated_at }}
- **Current task**: {{ role.current_task }}
- **Progress**: {{ role.progress }}
- **Pending issues**: {{ role.pending_issues or '(None)' }}
- **Next steps**: {{ role.next_steps }}

{% endfor %}
{% elif role_context %}
### {{ role_context.role }}
- **Last updated**: {{ role_context.updated_at }}
- **Current task**: {{ role_context.current_task }}
- **Progress**: {{ role_context.progress }}
- **Pending issues**: {{ role_context.pending_issues or '(None)' }}
- **Next steps**: {{ role_context.next_steps }}

{% else %}
### Dev
- **Status**: No role context defined
{% endif %}
## Cross-role Collaboration
{{ collaboration }}

## Global Technical Debt
{% if technical_debt %}
{% for debt in technical_debt %}
- [{{ debt.role }}] {{ debt.description }}
{% endfor %}
{% else %}
(None)
{% endif %}

---
*This file is auto-aggregated from multi-role contexts*
