Architecture

The Control Deck

Not bigger, better constrained. An architecture for AI collaboration that treats model limitations not as embarrassments to hide, but as design constraints to build around.

Implemented through the Cognitive Trinity: Lex (mind) + LexRunner (body) + LexSona (soul).

Note: Research papers use "Control Stack" — same concepts, different name.

Core Concepts

The Control Deck is built from six interlocking ideas. Each one reinforces the others.

The PILOT Loop

The Control Deck orchestrates work through a structured planning cycle. The model never directly edits—it plans and allocates.

Phase What it does
Perceive Parse intent, extract features, classify risk
Integrate Pull Lex state, check version contracts, validate scope
Layout Design task graph, assign providers, set budgets
Orchestrate Emit plan to LexRunner, configure gates
Track Consume Receipts, decide: accept / re-plan / escalate

📖 Full documentation in the Lex repo

The Key Insight

Models don't need superhuman judgment—they need guardrails that encode the judgment their principals already have about risk, scope, and acceptable behavior.

Give them...

  • Explicit scope instead of ambiguous prompts
  • Required gates instead of optional validation
  • Structured modes instead of one-size-fits-all
  • Audit trails instead of ephemeral outputs

And you get...

  • Work reviewable in minutes, not hours
  • Changes reversible with git revert
  • Trustworthy results because the receipts are there
  • Models that succeed at narrow tasks

The Full Story

📖 Not Bigger, Better Constrained

For the complete narrative—told from a frontier model's perspective—read the essay that explains why constraints are what models actually want.

Read the Essay →

Implementation

Lex 1.0.0 (Open Source)

The contract-bearing mind. Frames for episodic memory, lexmap.policy.json for module boundaries, lex.yaml for workflow contracts. Stable on npm.

Explore Lex →

LexRunner (Private)

Consumes Lex contracts to implement merge pyramids with deterministic execution. The body that reads from the mind's contract surfaces.

Explore LexRunner →