Heuristic:ARCANGEL0 EVA Intel Capacity Limits
| Knowledge Sources | |
|---|---|
| Domains | Optimization, LLMs |
| Last Updated | 2026-10-29 12:00 GMT |
Overview
Cap session Intel records (2,000 assets, 1,000 findings, 4,000 observations, 1,000 exploits, 2,000 accounts, 2,000 manhunt) and 100 evidence items per record to stay within LLM context limits.
Description
Mitsu enforces hard capacity limits on every Intel collection type to prevent unbounded growth that would exceed LLM context windows or degrade agent reasoning quality. Assets, accounts, and manhunt entries are capped at 2,000 each. Findings and exploits are capped at 1,000 each. Observations have the highest cap at 4,000. Each individual record can hold up to 100 evidence items. When these limits are reached, new upserts that would exceed the cap are rejected, preserving the existing Intel state.
Usage
Apply this heuristic to all Intel upsert operations (`upsert_asset`, `upsert_finding`, `upsert_exploit`, etc.). The limits are constants defined at the top of `workspace/intel.py` and enforced within each upsert function. The `intel_context` function further compacts Intel for injection into the LLM system prompt.
The Insight (Rule of Thumb)
- Action: Enforce `MAX_ASSETS = 2000`, `MAX_FINDINGS = 1000`, `MAX_OBSERVATIONS = 4000`, `MAX_EXPLOITS = 1000`, `MAX_ACCOUNTS = 2000`, `MAX_MANHUNT = 2000`, `MAX_EVIDENCE_PER_RECORD = 100`.
- Value: Hard-coded constants; not configurable at runtime.
- Trade-off: Very large engagements may hit caps, but LLM context stays manageable and agent reasoning quality is preserved.
- Compatibility: Applies to all session types and all agent modes.
Reasoning
LLM context windows are finite (typically 8K-128K tokens). Injecting unbounded Intel data into the system prompt would either exceed the context limit or dilute the agent's focus with stale data. The capacity limits ensure the Intel stays a curated, high-signal summary of the engagement. The `intel_context` function further compacts this by truncating fields and paginating sections, so only the most relevant data reaches the LLM.
Code Evidence
Capacity constants from `workspace/intel.py:37-43`:
MAX_ASSETS = 2_000
MAX_FINDINGS = 1_000
MAX_OBSERVATIONS = 4_000
MAX_EXPLOITS = 1_000
MAX_ACCOUNTS = 2_000
MAX_MANHUNT = 2_000
MAX_EVIDENCE_PER_RECORD = 100
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| Intel capacity reached | Exceeded max records for a category | Remove obsolete entries or start a new session |
| Evidence limit per record | Exceeded 100 evidence items | Consolidate or remove older evidence |