Intelligence compiles.
Execution is deterministic.
MERLIN is a four-layer cognitive architecture that converts natural-language intent into controlled, auditable system actions. The LLM is a compiler — not a controller. Every plan is validated before a single action is taken.
48
Executable Skills
across 7 domains
<100
Milliseconds
reflex path latency
4
Cognitive Layers
strict separation
10
Dashboard Pages
full system visibility
Architecture
Four layers. Strict boundaries.
Intelligence never touches execution. Execution never reasons. Every layer has one job and enforced contracts at its boundaries.
Perception
The SensesMulti-modal input handling — text, voice, Telegram, dashboard — with explicit cancellation semantics. Typing aborts voice. No race conditions.
Nervous System
The RouterBrainCore acts as a circuit breaker. It structurally analyzes every input and decides: is this a simple command or a complex intent? Simple commands never touch the LLM.
Mission Cortex
The CompilerThe LLM is used exactly once — as a compiler. It translates intent into a validated DAG with typed skill arguments. After compilation, the plan is frozen. No re-interpretation.
Execution Layer
The PhysiologyPure deterministic execution. Walks compiled DAGs, fires skills with enforced contracts, handles failures with bounded three-tier recovery. No LLM in the loop.
Execution Flow
Where intelligence ends. Where determinism begins.
Most AI systems use the LLM at every step. MERLIN uses it at exactly two. Everything else is compiled, validated, and executed deterministically.
Engineering Decisions
What most AI agents do — and why MERLIN doesn't.
System Laws
Enforced. Not aspirational.
These aren't guidelines — they're architecturally enforced at every layer. Violations are compile-time errors, not runtime hopes.
No global mutable state
WorldTimeline is append-only. State is derived.
Skills are isolated
No inter-skill calls. No DAG modification at runtime.
One LLM call per plan
Cortex compiles once. No reasoning loops.
Intelligence ≠ Infrastructure
Cortex cannot access OS, browser, or filesystem.
Failures are bounded
Max 2 inline recoveries per node. Max 1 recompile.
Proof
A compiled plan. A live trace. 48 skills.
{
"id": "mission_a7f3c",
"nodes": [
{
"id": "n1",
"skill": "system.set_volume",
"inputs": {
"level": 40
},
"depends_on": [],
"mode": "foreground"
},
{
"id": "n2",
"skill": "system.set_brightness",
"inputs": {
"level": 70
},
"depends_on": [],
"mode": "foreground"
}
],
"metadata": {
"ir_version": "1.0",
"parallel": true
}
}⚡
System
19
volume, brightness, apps, battery, media
🌐
Browser
12
click, navigate, scroll, autonomous task
📧
5
read inbox, draft, send, search
📁
Files
5
read, write, search, create folder
🧠
Memory
4
preferences, facts, policies
💬
2
send message, send file
🔮
Reasoning
1
generate text