IntentGuard × OpenClaw

Brain / Body Architecture — Where Trust Meets Execution
Brain IntentGuard v1.8.3
Body OpenClaw v2026.2.14
Skills 43/55 eligible
Rooms 9 cognitive
Agents 50 concurrent
Report 2026-02-15

The Differentiation

IntentGuard thinks. OpenClaw acts. wrapper.ts connects them.

🧠 IntentGuard Brain

The cognitive engine. Measures trust, authenticates identity, and decides what's permissible based on mathematical proof.

Core Functions

  • 8-step Trust Debt pipeline (agents 0-7)
  • FIM geometric authentication (20-dimensional identity vector)
  • Sovereignty scoring (0.0–1.0 trust metric)
  • Federation: bot-to-bot tensor overlap, drift detection, quarantine
  • Grid state sync to tesseract.nu (12-cell Reality Bridge)
  • CEO Loop: 24/7 autonomous executor

Patent-Pending Formula

TrustDebt = Σ((Intent_i - Reality_i)² × Time_i × SpecAge_i × Weight_i)

Key Files

  • src/wrapper.ts — Brain↔Body connector
  • src/runtime.ts — Sovereign Engine orchestrator
  • src/ceo-loop.ts — Always-on executor
  • src/pipeline/runner.ts — 8-step pipeline
  • src/auth/geometric.ts — FIM identity + permissions
  • src/federation/ — Bot-to-bot trust network

🦞 OpenClaw Body

The execution layer. Receives decisions, routes to terminals, captures output, and reports back through every communication channel.

Core Functions

  • Discord bot with 9 cognitive room channels
  • Terminal dispatch via native IPC (no focus stealing)
  • ThetaSteer categorization (12×12 tesseract grid)
  • 3-tier LLM routing: Ollama → Sonnet → Opus
  • Bidirectional I/O: dispatch prompt → capture output → post to Discord
  • 43 skills (voice, screen, browser, email, messaging, IoT)

Multi-Channel Gateway

ws://127.0.0.1:18789 — OpenAI-compatible API

Key Files

  • openclaw/src/runtime.ts — Discord bot + orchestrator
  • openclaw/skills/claude-flow-bridge.ts — Terminal router
  • openclaw/skills/thetasteer-categorize.ts — 12×12 grid
  • openclaw/src/task-store.ts — Task lifecycle journal
  • openclaw/src/output-poller.ts — Terminal output capture
  • openclaw/src/scheduler.ts — Proactive cron jobs

⚡ System Architecture Bridge

┌──────────────────────────────────────────────────────────────────────┐ 🧠 INTENTGUARD (Brain) ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────┐ │ 8-Step │ │ FIM Geometric│ │ Sovereignty │ │ CEO Loop │ │ Pipeline │ │ Auth Engine │ │ Score Engine │ │ (24/7) │ │ (agents 0-7) │ │ (20-dim vec) │ │ (0.0→1.0) │ │ │ └──────┬──────┘ └──────┬───────┘ └──────┬───────┘ └────┬─────┘ │ │ │ │ └────────────────┼─────────────────┼────────────────┘ │ │ ├──────────────────────────┼─────────────────┼────────────────────────┤ wrapper.ts FIM interceptor spawns OpenClaw hooks tool calls as child process for permission checks ├──────────────────────────┼─────────────────┼────────────────────────┤ │ │ 🦞 OPENCLAW (Body) │ │ ▼ ▼ ┌──────────────────────────────────────────────────────────────┐ │ Gateway ws://127.0.0.1:18789 (OpenAI-compatible API) │ │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────────┐│ │ │Discord │ │WhatsApp│ │Telegram│ │ Slack │ │ iMessage ││ │ └───┬────┘ └────────┘ └────────┘ └────────┘ └────────────┘│ └──────┼───────────────────────────────────────────────────────┘ ┌──────────────┐ ┌─────────────┐ ┌──────────────────────┐ │ ThetaSteer │──▶│ Model Route │──▶│ Claude Flow Bridge │ │ Categorize │ │ H1→Ollama │ │ 9 Terminal Rooms │ │ 12×12 Grid │ │ H3→Sonnet │ │ Parallel IPC │ │ │ │ H5→Opus │ │ │ └──────────────┘ └─────────────┘ └──────────┬───────────┘ ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐ │🔨 │📐 │🎩 │🔒 │🎤 │🧪 │🎭 │🧭 │🌐 │ │build │archi │oper │vault │voice │lab │perf │nav │net │ │iTerm │Code │kitty │Wez │Term │Cursor│Term │rio │Msgs │ └──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘ │ output capture ┌──────────────────────┐ │ data/spec.md (living)│ ← learnings appended │ data/tasks.jsonl │ ← task journal │ tesseract.nu/api │ ← grid state sync └──────────────────────┘ └──────────────────────────────────────────────────────────────────────┘

9 Cognitive Rooms

Each room maps to a terminal app with its own IPC method

🔨 Builder iTerm2 (AppleScript) C1 Operations.Grid
📐 Architect VS Code (System Events) A2 Strategy.Goal
🎩 Operator Kitty (remote socket) C3 Operations.Flow
🔒 Vault WezTerm (CLI) A1 Strategy.Law
🎤 Voice Terminal (AppleScript) B3 Tactics.Signal
🧪 Laboratory Cursor (System Events) C2 Operations.Loop
🎭 Performer Terminal (AppleScript) A3 Strategy.Fund
🧭 Navigator Rio (System Events) B1 Tactics.Speed
🌐 Network Messages (System Events) B2 Tactics.Deal

8-Step Trust Debt Pipeline

IntentGuard's brain: agents 0-7 measure the gap between intent and reality

Step
Agent
Input
Output
0
Outcome Requirements Parser
Report HTML, docs
0-outcome-requirements.json
1
Database Indexer
Requirements + codebase
1-indexed-keywords.json
2
Category Generator
Keywords
2-categories-balanced.json
3
Matrix Builder
Categories
3-presence-matrix.json
4
Grades Calculator
Matrix
4-grades-statistics.json
5
Timeline Analyzer
Historical data
5-timeline-history.json
6
Symmetric Matrix
Categories
6-symmetric-matrix.json
7
Final Report Generator
All above
HTML report + audit log

Message Execution Flow

From Discord message to terminal output to spec update

1
Discord message received
Voice memo, text, or reaction in any room channel
2
ThetaSteer categorization
Maps to 12×12 grid → full notation + hardness (1-5) + target model
3
FIM auth interceptor (Brain check)
IntentGuard validates: Identity ∩ Requirement ≥ Threshold
4
Model routing
H1-2 → Ollama (local) | H3-4 → Sonnet (API) | H5 → Opus (API)
5
Terminal dispatch
Claude Flow Bridge sends to room's terminal via native IPC (no focus steal)
6
Output capture + stabilization
Poll every 2s → detect shell prompt → 5s stability → complete
7
Post results to Discord
Status emoji + summary + output (split >1900 chars to file attachment)
8
Spec update + grid sync
Learnings appended to data/spec.md → sovereignty updated → tesseract.nu synced

Skills Dashboard

43 eligible, 12 remaining (env vars / config needed)

Eligible Skills (43)

SkillCategoryStatus
🔐 1passwordSecurityeligible
📝 apple-notesProductivityeligible
⏰ apple-remindersProductivityeligible
🐻 bear-notesProductivityeligible
📰 blogwatcherContenteligible
🫐 blucliAudioeligible
📸 camsnapMediaeligible
📦 clawhubSkillseligible
🧩 coding-agentDeveligible
🎮 discordCommseligible
♊️ geminiAIeligible
🧲 gifgrepMediaeligible
🐙 githubDeveligible
🎮 gogWorkspaceeligible
📦 healthcheckSystemeligible
📧 himalayaEmaileligible
📨 imsgMessagingeligible
📦 mcporterMCPeligible
📊 model-usageAnalyticseligible
📄 nano-pdfDocseligible
🖼️ openai-image-genAIeligible
🎙️ openai-whisperSpeecheligible
☁️ openai-whisper-apiSpeecheligible
🧿 oracleAIeligible
🛵 ordercliCommerceeligible
👀 peekabooScreeneligible
📜 session-logsDebugeligible
📦 skill-creatorSkillseligible
🌊 songseeAudioeligible
🔊 sonoscliAudioeligible
🎵 spotify-playerAudioeligible
🧾 summarizeContenteligible
✅ things-macProductivityeligible
🧵 tmuxTerminaleligible
🎞️ video-framesMediaeligible
📱 wacliMessagingeligible
🌤️ weatherUtilityeligible
🌊 claude-flow-bridgeWorkspaceeligible
📡 output-captureWorkspaceeligible
🎮 system-controlWorkspaceeligible
🧭 terminal-dispatchWorkspaceeligible
🧊 thetasteer-categorizeWorkspaceeligible
🎤 voice-memo-reactorWorkspaceeligible

Blocked Skills (12)

These need API keys or service configuration — not installable binaries.

SkillMissingType
🫧 bluebubbleschannels.bluebubblesconfig
🎛️ eightctleightctlbinary
📍 goplacesGOOGLE_PLACES_API_KEYenv
🍌 nano-banana-proGEMINI_API_KEYenv
📝 notionNOTION_API_KEYenv
💎 obsidianobsidian-clibinary
💡 openhueopenhuebinary
🗣️ sagELEVENLABS_API_KEYenv
🗣️ sherpa-onnx-ttsSHERPA_ONNX_*env
💬 slackchannels.slackconfig
📋 trelloTRELLO_API_KEYenv
📞 voice-callplugins.voice-callconfig

What Fires Next

  • Immediate: Set API keys (Notion, Trello, ElevenLabs, Gemini) to unlock 4 more
  • Short-term: Configure Slack + BlueBubbles channels for messaging skills
  • Medium-term: eightctl, openhue, obsidian-cli need upstream releases or custom builds
  • Target: 50+/55 eligible (90%+ coverage)

Current State → Next State

The differentiation gap and what needs bridging

🧠 Brain: Where We Are

  • Pipeline: 8-step Trust Debt engine functional (agents 0-7)
  • Auth: FIM geometric 20-dim identity vector implemented
  • Sovereignty: Self-scoring engine (currently Grade C: 4,423 units)
  • Federation: Tensor overlap + drift detection built but untested at scale
  • CEO Loop: 24/7 autonomous executor operational
  • Grid: tesseract.nu reader/writer connected

Gaps

  • Pipeline runs manually (npm run queen) — not triggered by body events
  • FIM interceptor installed but permission thresholds may be too permissive
  • Federation untested between real instances
  • Sovereignty score doesn't yet gate body actions dynamically

🦞 Body: Where We Are

  • Discord: Bot live with 9 room channels + commands
  • Skills: 43/55 eligible (78% coverage)
  • Terminals: 9 rooms with native IPC (parallel safe)
  • Categorization: ThetaSteer 12×12 grid + hardness routing
  • Proactive: Queue drain (30s), retry (5m), health check (5m), doc scan (6h)
  • Overnight: 5-room parallel pipeline runner

Gaps

  • Gateway runs as launchd service but body runtime still manual (npm start)
  • No WebSocket reconnection — Discord disconnect = dead bot
  • Output poller can miss fast tasks (2s poll interval)
  • System Events rooms (Cursor, VS Code, Rio) still fragile (focus stealing)

⚡ Bridge: Where We Need To Go

Phase 1: Tighten the Brain↔Body Loop

Phase 2: Body Resilience

Phase 3: Federation

Keep-Alive Architecture

Ollama heartbeat monitoring and token tier routing with failure isolation

🔋 Heartbeat & Routing System System

Ollama Health Classification

Every 60 seconds, OpenClaw checks http://localhost:11434/api/tags to determine Ollama health:

Every 5 minutes, health status is posted to Discord #cron channel.

Token Tier Routing Table

┌─────────┬──────────────┬───────────────┬─────────────────────────────────┐ │ Tier │ Provider │ Cost │ When to Use │ ├─────────┼──────────────┼───────────────┼─────────────────────────────────┤ │ Tier 0 │ Ollama │ FREE │ H1-H2 tasks, prototyping │ │ Tier 1 │ Sonnet 4.5 │ $0 (moderate) │ H3-H4 tasks, production │ │ Tier 2 │ Opus 4.6 │ $$ (high) │ H5 tasks, critical decisions │ │ Tier 3 │ Human │ $$$ (manual) │ Escalation, approvals, review │ └─────────┴──────────────┴───────────────┴─────────────────────────────────┘

Failure Isolation Per Subdivision

Each task subdivision has independent failure handling:

4 Task Subdivisions

Parallel work streams with independent failure domains

🌊 flows Bridge

Claude Flow terminal tasks

  • Terminal dispatch to 9 rooms
  • Output capture & stabilization
  • IPC method per room (AppleScript, CLI, socket)
  • Result posting to Discord

📚 docs Brain

Document scanning, spec parsing

  • data/spec.md learning updates
  • Codebase indexing (agent 1)
  • Outcome requirements parsing (agent 0)
  • 6-hour overnight doc scan cron

🎮 discord Body

Messages, voice, reactions

  • Message ingestion from 9 room channels
  • Voice memo → Whisper transcription
  • Reaction-based task queue (👍/📌/❌)
  • WebSocket connection management

cron Grid

Scheduled jobs, health checks

  • Queue drain (every 30s)
  • Task retry (every 5m)
  • Ollama health check (every 60s → Discord every 5m)
  • Overnight 5-room parallel runner (3am)