Memory Priority Matrix
| Priority | Scope | Contents | Use Case |
|---|---|---|---|
| 1 | user_id | User preferences, learned behaviors | Personalization |
| 2 | agent_id | Manowar execution patterns, skill learnings | Multi-run improvement |
| 3 | run_id | Current execution context | Within-run coherence |
The Safe Wipe Pattern
When context window usage exceeds the dynamic threshold, Manowar compresses state without information loss:- 32k context → ~56.8%
- 128k context → ~58.9%
- 4M context (MiniMax M2.1) → ~72.3%
Semantic Retrieval
Context retrieval usese5-mistral-7b-instruct embeddings with Mem0’s advanced features:
- Reranking: Relevance optimization after initial retrieval
- Keyword Search: Hybrid semantic + lexical matching
- Metadata Filtering: Type-based access (step_reflection, checkpoint_summary, trigger)
Checkpoint System
Internal agents annotate execution with ephemeral checkpoints:| Type | Purpose |
|---|---|
observation | What the agent perceived |
decision | Choices made and reasoning |
output | Results produced |
insight | Meta-learnings for future runs |
error | Failure modes for pattern avoidance |
Ambient Intelligence / Proactive Systems
Manowar supports autonomous operation through natural language triggers—enabling workflows that execute without human initiation.Trigger Architecture
- “every 5 minutes” →
/5 * * * * - “every Monday at 3 PM” →
0 15 * * 1 - “daily at midnight” →
0 0 * * *
nvidia/nemotron-3.
Trigger Storage
Triggers persist in Mem0 graph memory:- Cross-session persistence
- Graph-based discovery
- Workflow-trigger relationships
Lifecycle Hooks
Beyond triggers, Manowar defines lifecycle hooks for reactive behaviors:| Hook | Fires When |
|---|---|
pre-execution | Before workflow starts |
post-step | After each step completes |
on-error | Any step fails |
on-complete | Workflow succeeds |
on-context-cleanup | Safe wipe triggered |
on-restart | Workflow resumes after cleanup |
webhook, agent, memory, notify, log.
Run Observability
Every execution is tracked with:- LangSmith Integration: Full trace visibility, token metrics, reasoning_tokens for thinking models
- TrackedRun State: pending → running → success/error/cancelled
- Cron Stats: Per-trigger execution history and success rates