SYSTEM ARCHITECTURE WHITEPAPER · SPECIFICATION v1.20.0

Nexus System Architecture Whitepaper

Dissecting the architectural contracts and data flows across WebAI cognition (currently supporting ChatGPT Web), the Universal MCP protocol, the Nexus Execution Harness, and your native OS.

AI Thinks. Nexus Executes.
Tier 1 · WebAI / AI Models (Cognitive Reasoning Plane)
High-Level Cognition
ChatGPT Web (Supported Now) Intent Parsing & Decomposition
Claude Web (Roadmap) Long-Context Reasoning
Gemini / DeepSeek (Roadmap) Replanning & Error Recovery
Standard MCP Clients Skill Selection & Coordination
Universal MCP Protocol (JSON-RPC 2.0 · Streamable SSE · stdio)
Tier 2 · Nexus Universal MCP Execution Bridge (Agent Harness Infrastructure)
Core Execution Harness
Tool Registry & Router
Strictly validates call payloads against JSON Schema Draft 7 contracts and routes to target Providers.
Provider Multiplexer
Driver multiplexing layer managing Win32, WinRT, Chromium CDP, Office OOXML, and PTY channels.
Isolated Runner
Windows JobObject process pool enforcing hard CPU/RAM quotas and canonical sandbox directory boundaries.
Action Ledger (WAL)
ACID Write-Ahead Log recording inputs, timestamps, idempotency keys, and monotonic Action IDs.
Checkpoint & Recovery
Long-running task snapshots enabling idempotent verification and safe rollback after host crashes.
Computer State Store
Real-time tracking of active window handles (HWND), UI Automation trees, and filesystem locks.
Verification Engine
Two-phase ground-truth probes verifying target file SHA-256 hashes and process exit codes at the OS level.
Evidence & World State
Packages non-repudiable execution receipts (SHA-256, HWND snapshots, exit states) back to WebAI.
Native Windows OS Boundary (Win32 Syscalls · WinRT UI Automation · JobObject · NTFS)
Tier 3 · Windows / Local Operating System (Physical Ground Truth)
Ground Truth
Filesystem
NTFS / ReFS / USN
Applications
Win32 / UWP / WPF
Chromium Browser
DevTools Protocol (CDP)
Processes
JobObjects & PTYs
Desktop & HWND
Window Tree / Display
Office Documents
DOCX / XLSX / PDF
Execution Infrastructure

Core Subsystems Engineered for Deterministic Execution

Six core subsystems work in concert to guarantee execution robustness, consistency, and safety. Click any node below to inspect its contract:

WebAI (ChatGPT Web)
↓ MCP Protocol (JSON-RPC 2.0) ↓
MCP Gateway
Tool Registry
JobObject Runner
Action Ledger
Verification Engine
Computer State
↓ System Calls / Win32 API ↓
Windows Native OS
MCP Gateway
Acts as the local communication hub on 127.0.0.1, exposing SSE/stdio endpoints to receive standardized tool invocations from ChatGPT Web and authenticate requests.
Interface HTTP / SSE / stdio
Isolation Local Loopback Only
Action Ledger Deep Dive

Every Action Leaves Evidence.

Execution ≠ Success=true. True reliability requires Execution + Evidence + World State + Verification.

Execution ≠ Success=true
Execution + Evidence + World State + Verification = Certified Reality

Before any action mutates the physical operating system, it is pre-registered in the SQLite WAL ledger. Upon completion, low-level OS probes extract ground-truth evidence—including actual file SHA-256 hashes, live process PIDs, and active window handles (HWND).

ACTION #1842
EXECUTED · WAL_COMMITTED
Tool filesystem.write
Input
{ "path": "C:/Reports/Q3_Summary.docx", "bytes": 48920 }
Output
{ "bytes_written": 48920, "fs_time_ms": 14 }
World State
file.exists = true · sha256 = "e3b0c442..." · lock = false
Verification PASS (Direct Win32 GetFileAttributesExW & SHA256 match)
Timestamp 2026-09-30T12:00:12.842Z
Idempotency IDEM-KEY-789a-4c21-99fe
Durable Execution

Execution That Survives Failure.

Across process crashes, power loss, or ambiguous states, Nexus heals deterministically via its state machine instead of leaving the AI to guess.

STARTED
➔
EXECUTING
➔
CRASH
➔
UNKNOWN
➔
WORLD STATE
➔
COMMITTED
STAGE 1: STARTED (Write-Ahead Intent Registration)

Before invoking any native OS API, Nexus assigns a monotonic Action ID and an Idempotency Token, committing the full parameter contract to the SQLite WAL table so no action is ever lost.