# ainl-context-compiler
Multi-segment, role-aware **LLM context assembly** for AINL hosts: system/user/history/tool blocks, optional graph-memory vitals, trajectory recap, and failure warnings.
- **Repository:** <https://github.com/sbhooley/armaraos>
- **API reference:** <https://docs.rs/ainl-context-compiler>
Feature flags pull in `ainl-memory`, `ainl-failure-learning`, `ainl-context-freshness`, `ainl-semantic-tagger`, and related crates. Distinct from `ainl-context-freshness`, which gates execution when context is stale.