← Back to 5-Layer Architecture Hub View Architect Resume →

Systems Architecture Publications

Empirical whitepapers, SQL/AST schemas, and reproducible benchmark teardowns organized across the 4-layer local-first AI stack: bare-metal compute & cascade routing, relational PostgreSQL/MCP working-memory substrates, transactional execution harnesses, and air-gapped statutory/contract intelligence.

Showing 26 of 26 papers
Track 01 · Layer 01 — Sovereign Tech Stack, Autonomous Audit & Routing Plane

The 2026 Sovereign Tech Stack, Cross-Stack Benchmarks, Closed-Loop Audit & Operating Planes

End-to-end 5-GPU + 96GB Blackwell G4 stack blueprint, 15/15 production agentic systems matrix, 317,500+-query cross-stack benchmark comparison across 11 external suites (with honest frontier gaps), 3-Tier MCP code audit & Wave-4 QLoRA+DPO distillation, krusch-stack unified distribution, sub-15µs CPU cascade routing, and PostgreSQL state planes.

Flagship Systems Blueprint krusch-stack v1.0 (--defer-tools) @krusch/toolkit + 7 MCPs Hermetic Benchmarks + QLoRA

The 2026 Sovereign AI Tech Stack: Multi-Family GPUs, 3-Tier MCP Substrates, @krusch/toolkit, and Closed-Loop Distillation

Complete end-to-end engineering blueprint of the KruschDev tech stack: one-command unified distribution (krusch-stack --defer-tools cutting schema bytes by 68.5% + generalized 2PC Action Harness), 5 bare-metal GPUs + 8K snowflake-arctic-embed2 + 96GB Blackwell G4 burst, 11 hermetic external benchmarks (BEAM, #1 91.17% Official DolphinBench 600 & #1 Open-Weights 54.17% Gemma 4 31B @ $0.00, #1 RouterArena, ACL 2026 LLMRouterBench & Martian RouterBench, AgentDojo, ACL 2025 CoIR, BIRD-SQL, BFCL v3, RepoBench-R, Aider Polyglot, LegalBench-RAG), and Wave-4 120B/30B/8B QLoRA+DPO distillation across 18,131 SFT+DPO rows.

Read 2026 Tech Stack Blueprint →
15/15 Production Agent Systems 120+ Async Tasks · Typed Swarms 100 Golden DAGs · 72h Slack HITL $0.50 Kill-Switch · 5% Shadow Diff

The 15 Production Agentic Systems: Reference Architecture, State-Machine Invariants, and Benchmark Proofs Across a Sovereign Stack

Three engineering teardowns mapping all 15 production agentic pillars across krusch-stack, krusch-agentic-proxy, and krusch-coding-harness: asyncio.Semaphore(128) orchestrators + circuit breakers, strict 3-bucket token budgeting, Pydantic v2 error-trace retry routers, frozen typed swarms, 72h HMAC-SHA256 Slack HITL leases, 100-trajectory Golden DAG CI gates, 0.00% ASR inter-agent sanitization, bwrap --unshare-net sandboxes, $0.50 cost kill-switches, REST-to-browser fallback, and 5% non-blocking shadow diffing.

Read 15-System Architecture Teardown →
Cross-Stack Benchmark Report 317,500+ Queries · 11 Suites 36 HF Raw Logs · SHA-256 Gates Honest Cloud Gaps Included

How an Open-Weights Sovereign Stack Stacks Up Across 317,000+ Benchmark Queries (Including Where Cloud Still Wins)

Concise head-to-head comparison of krusch-stack against open-source wrapper stacks and commercial cloud stacks across 11 external suites: Official DolphinBench (600 tasks, #1 91.17% Argon Low @ $24.54 & #1 Open-Weights 54.17% Gemma 4 31B @ $0.00 beating 8 cloud stacks, 8 queued), RouterArena (0.7883 CI, PR #169 open), ACL 2026 LLMRouterBench (#1 Pareto 0.4269), Martian RouterBench (#1 ID 0.7488/0.7695 & #1 OOD 0.7268/0.7455 across 72,980 rows), ETH SpyLab AgentDojo v1.2.2 (19.28% → 0.00% ASR across 1,046 episodes), ACL 2025 CoIR (56.40% #1 NDCG@10 across 2.39M docs & 162,216 Qs), BIRD-SQL Mini-Dev (26.00% → 40.20% EX), BFCL v3 Live (66.28% Micro, -80.67% schema tokens), ICLR 2026 BEAM (100K–10M), RepoBench-R, LegalBench-RAG, and Aider Polyglot (19.56% → 51.56%)—with explicit disclosures on reader ceilings, referee rubrics, and open PRs.

Read Cross-Stack Benchmark Report →
Autonomous SRE & Audit 3-Tier MCP Hydration Cross-Family Referees 18,131 SFT+DPO + 120B/30B/8B QLoRA

🧠 The Closed-Loop Audit & Distillation Pipeline: 3-Tier MCP Context Hydration, Cross-Family Referees, and Dual-Track QLoRA

How Jean SRE sweeps 88 repositories across 11 checkpoints: pre-hydrating AST caller/callee graphs and working-memory invariants via 3-Tier MCPs, eliminating false positives via Phase 1.9 Adversarial Steel-Manning, enforcing a Dual-Zero-Finding Cross-Family Referee gate, and fine-tuning 120B Teacher (native Blackwell MXFP4), 30B Student, and 8B Edge Wave-4 QLoRA+DPO weights on 18,131 test-verified, rejection-sampled trajectories.

Read Audit & QLoRA Pipeline Paper →
#1 RouterArena (0.7883) #1 LLMRouterBench & RouterBench <15µs CPU + Live SSE Abort -83.95% Cost · -48% TTFT

Multi-Tier Cascade Routing Architecture: Slashing Enterprise Inference Budgets by 60–80%

Stage-0 syntactic CPU gating (<15µs, $0.00 tax), 8K Arctic centroid escalation, and live SSE logprob abort. Validated #1 on RouteWorks RouterArena CI (0.7883 / 80.72%), #1 Pareto (0.4269, -83.95% cost) on ACL 2026 LLMRouterBench, #1 ID & OOD AIQ across 72,980 Martian RouterBench rows (-72.63% @ 98% GPT-4), and -48.0% TTFT live SSE cascade.

Read Cascade Routing Whitepaper →
Flagship Architecture State Plane Synthesis PostgreSQL 16 ACID

Postgres as the State Plane: Why Side Effects Require a Transaction Manager

Why autonomous agents made us write more raw SQL, not less: 0 JS ORMs across 48 repos, 252ms → 15.25ms oversampled HNSW+GIN CTEs in krusch-git, 10M-token memory in krusch-context-mcp, and 2.64x Aider Polyglot 2PC self-healing in krusch-coding-harness.

Read State Plane Synthesis Paper →
Track 02 · Layer 02 — Relational State, Working Memory & Graphs

3-Tier MCP Ecosystem: Governed Memory, Closed-System BEAM Benchmarks & AST/FS Graphs

Replacing flat sliding-window RAG with ACID decision lineage, 14-run Official DolphinBench 600-task (`8,400` traces across 5 model families) & zero-leakage closed-system ICLR 2026 BEAM validation, relational AST caller/callee graphs, and SHA-256 page-indexed OS filesystems.

#1 Official DolphinBench (91.17%) 54.17% Gemma 4 31B @ $0.00 96.17% Oracle@14 · 4.19x 4+ Hop 8,400 gpt-5.6-sol Traces · arXiv PDF

Return on Memory: Why Test-Time Reasoning Unlocks Zero-Distillation Agentic Retrieval on Official DolphinBench (91.17%, #1 Overall)

Holding 13,539 episodic sessions byte-for-byte constant inside frozen 0o444 SQLite checkpoints ($0.00 Zero-LLM Raw-RAG + 4-Way RRF) across 14 full 600-task Official gpt-5.6-sol runs (8,400 traces across 5 model families), Gemini 4 Argon (Low Thinking) reaches 91.17% (547/600 @ $24.54)—beating Official #1 GPT 5.6 Luna + Mem0 (70.67% @ $96.21) by +20.50 pp with a 4.19x LBF=4+ multiplier and 96.17% Oracle@14 sufficiency—while Apache-2.0 Google Gemma 4 31B hits 54.17% (325/600 @ $0.00), beating all 8 non-Luna cloud stacks up to $1,830.57.

Read Return on Memory Paper →
Official DolphinBench 600 (8,400+ Traces) 54.17% Gemma 4 31B @ $0.00 8 Queued gpt-5.6-sol ZIPs · 2PC Harness 15.7x 8B Edge Lift · Fine-Tuning

What 5,535 DolphinBench Runs Taught Us About Local AI Memory

Controlled multi-family study across 600 multi-app tasks + 15 counterfactuals (13,539 sessions / 1.50M tokens, 0o444 frozen SQLite WAL): general-assistant post-trained Gemma 4 31B reaches 54.17% (325/600 @ $0.00, +18.83 pp over matched-scale Qwen2.5-Coder-32B 35.33%, beating 8 paid cloud stacks); Wave-4 QLoRA+DPO lifts local Qwen3-Coder-30B-A3B to 42.67% ($0.00) and 8B Q4_0 15.7x; and krusch-stack's generalized 2PC Action Harness eliminates 100% of duplicate MCP calls (10 → 0).

Read Local AI Memory Study →
ICLR 2026 BEAM 100K–10M (2,000/2,000) v2.0.0 Multi-Scale Retrieval 93.00% 10M IE Recall Beats past.dev CR (4/4) & 10M MSR

🔬 Benchmarking Agent Memory Without Cheating: Closed-System ICLR 2026 BEAM (100K–10M)

De-rigging 5 memory benchmark traps, calibrating 8K isotropic cosine geometry, and evaluating krusch-context-mcp (v1.9.0 & v2.0.0) across all 100 chats (~178.34M tokens) and 2,000/2,000 official BEAM probes on SQLite inside one 96GB Blackwell box: 92.58% 100K & 93.00% 10M IE recall, zero E2E drop to 1M, and beating cloud past.dev on CR (4/4) & 10M MSR.

Read Closed-System BEAM 2,000/2,000 Paper →
Flagship · v2.0.0 (82★) ~350 Token 5-Verb Contract 2,000/2,000 BEAM (100K–10M) SQLite WAL + Postgres

🧠 Beyond Flat Vector RAG: What Makes krusch-context-mcp Special

Why flat vector RAG fails coding agents. Deep dive into the radical 5-verb discipline (retrieve, remember, revise, nudge, health), hierarchical episode rollups, 2-hop multi-session bridges, span-grounded provenance drift healing, and closed-system Official ICLR 2026 BEAM validation across all 2,000/2,000 questions (100K–10M, ~178.34M tokens).

Read krusch-context-mcp Deep Dive →
Flagship · v1.2.3 · RepoBench-R Git DAG + Java/Py AST 47,998 Cross-File Qs Beats CodeBERT & UniXcoder

🌳 krusch-git: Git DAG Indexing, Relational AST Symbols, and Hybrid Recency Search for AI Coding Agents

Why grep and flat vector RAG fail autonomous coding agents. Git DAG objects in PostgreSQL 16 + pgvector, multi-language AST lexing & live import-activity analysis, 15.25ms HNSW/GIN search, and 19.12% Macro Acc@1 (68.58% Acc@5) across 47,998 RepoBench-R queries.

Read krusch-git Architecture Deep Dive →
Open Source · v0.3.1 KruschNexus Library Mode SHA-256 Page Memory 8-Node SSH Fleet

🗂️ krusch-fs-mcp: OS Filesystem Page Memory, SHA-256 Drift Detection, and Multi-Node Fleet Indexing for AI Agents

Turning unstructured OS directories, PDFs, DOCX, systemd units, and /etc/fstab across an 8-node SSH fleet into layout-true page trees with SHA-256 drift-verified PageMemory annotations and secret-redacted .env indexing.

Read krusch-fs-mcp Architecture Deep Dive →
Code-Agent Architecture 12,398 Indexed Symbols PostgreSQL 16 + pgvector

Architecting Code-Agent Retrieval & Memory: Beyond Naive Vector Search

Why sliding-window RAG fails on codebases. Single-store PostgreSQL 16 + pgvector HNSW, structural symbol extraction, SQL Reciprocal Rank Fusion (RRF), and empirical benchmarks (8.2ms P50).

Read Retrieval Architecture Paper →
Enterprise Reference Streamable HTTP MCP 890-Token Core Profile

Sovereign Context & Working-Memory Architecture for Coding Agents

Decoupling Enterprise Access Gateways from the Sovereign Context Plane and Safe Execution Harness. Tool profile projection, stratified lambda-decay priors, and PostgreSQL 16 durability.

Read Enterprise MCP Hub Paper →
Track 03 · Layer 03 — Staged Execution, Sandboxes & Hybrid Cloud

2-Phase Commit Coding Harnesses, Swappable Storage & Voice-First Execution

Enforcing Bubblewrap container sandboxes, PostgreSQL 2PC apply journals, Polygres Cloud sync, and sovereign personal assistant workflows.

35 Bricks · 7 Blueprints INV-LEGO-01..25 · 100 Repos 10-Rule MCP Diff Guard 25% → 100% QLoRA + DPO

Why Coding Agents Need Certified Lego Bricks, Not Prompted Boilerplate: Inside a 35-Brick, Self-Evolving Code Substrate

How we eliminated LLM-regenerated HTTP 413 TCP ECONNRESET races, DNS-rebinding SSRF, SQLite lock quarantine, and YAML alias bombs across 100 repositories (3,150+ files): 35 dual-runtime bricks + 7 zero-LLM blueprints (@krusch/toolkit v1.7 & krusch_toolkit v1.6), a 10-rule comment/string-masked MCP pre-commit guard, an autonomous Rule-of-3 anti-bloat scout (8/8 clusters promoted), and 2-stage QLoRA + DPO calibration lifting zero-tool brick accuracy from 25.0% → 100.0%.

Read 35-Brick Lego Substrate Paper →
51.56% Aider Polyglot (2.64x) Bubblewrap Sandbox 2PC Apply Journal PostgreSQL 16 FSM

🛡️ The Krusch Coding Harness: Why Autonomous Code Agents Require a Transaction Manager, Not a Prompt

Why unconstrained file writing breaks coding agents. Pre-commit SHA-256 diff staging, Bubblewrap isolation, verify-on-stop outer loops, and 2PC apply journals—lifting open-weights gpt-oss:120b from 19.56% → 51.56% (72 tasks self-healed) across 225/225 Aider Polyglot tasks.

Read Harness Architecture Deep Dive →
Developer Substrate KruschContext + KruschGit Polygres Cloud Bridge Zero Tool Changes

💾 Swappable Substrates: Powering Agent Memory & Codebase Graphs with KruschContext, KruschGit, and Polygres

How swappable storage drivers let AI coding agents run on local zero-Docker SQLite/PostgreSQL or sync seamlessly with Polygres Cloud without changing a single MCP tool definition.

Read Swappable Substrates Paper →
Hybrid Architecture Sub-5ms SQLite Edge PostgreSQL + pgGraph

🚀 Local-First Core, Hybrid Cloud Elasticity: Decoupling Agent Memory

A practitioner's analysis of coding-agent memory topologies: SQLite edge caching, PostgreSQL durability, embedding parity pitfalls, and two-stage HNSW decay indexing.

Read Cloud Elasticity Deep Dive →
Flagship Open Source · v1.2 Voice-First Chat & Triage Dual-Axis Priority Board 20-Tool Router + AP2

🛡️ Introducing Krusch Companion: A Sovereign, Voice-First Personal AI Assistant & Dual-Axis Daily Execution Engine

Complete guide to krusch-companion: Voice-to-Text capture, how the Dual-Axis Priority Board solves the Priority Paradox, the <holodata> agentic proxy, and a 10-minute daily efficiency playbook.

Read Companion Guide & Playbook →
Open Source Release 12-Tool MCP Server 1,024-Dim Drive RAG AES-256-GCM Vault

☁️ Introducing G-Krusch: A Sovereign Google Workspace Hub, Hybrid Drive RAG & MCP Bridge

Complete architectural deep dive into G-Krusch: cloud-synced agent.md steering, 3-tier 1,024-dim semantic + SQLite FTS5 BM25 Drive RAG, 3-tier PDF extraction, 12 MCP tools, and NIST AES-256-GCM security hardening.

Read G-Krusch Architecture Deep Dive →
Track 04 · Layer 04 — Sovereign Document Ingestion, Legal & Contract Intelligence

Layout-True OCR Coordinates, Statutory Precedence DAGs & Contract Compliance

100% air-gapped document ingestion (KruschNexus), 0.00% False Support Rate statutory grounding (KruschLaw), and relational contract-vs-statute join engines (KruschBiz).

Sovereign Fleet (624 Tests) Document Ingestion Statutory Graphs Agent Working Memory

⚖️ The Sovereign Triad: Unifying Document Ingestion, Statutory Graphs, and Agentic Working Memory

How KruschNexus (layout-true ingestion), KruschLaw (statutory authority & assertion grounding), KruschBiz (contract graphs), and KruschContext MCP create a closed-loop, self-auditing intelligence substrate.

Read Sovereign Triad Architecture Essay →
v0.2.6 · 206 Tests LegalBench-RAG (6,889 Qs) 26.74% Macro F1 · 47.71% Recall 100% Citation Accuracy

⚖️ Citations Die in Local RAG: Why We Built KruschNexus and What It's For

Why arbitrary token slicing destroys document citations. Heldout evaluation of 7 parser families (100% citation accuracy), contextual section-path embeddings + local mxbai-rerank-large-v2 cross-encoder reranking achieving 26.74% Macro F1 (k=1), 25.81% F1 / 44.72% Recall (k=2), and 47.71% Recall (k=6) across 6,889 LegalBench-RAG queries.

Read KruschNexus Architecture Deep Dive →
v0.8.0 · 159 Tests 0.00% False Support Rate Preemption DAG & as_of_date Cryptographic Purge

⚖️ Why We Built KruschLaw: Local-First Legal RAG & Ordinance Intelligence

Why generalist RAG fails in statutory law and municipal codes. Two-pass assertion grounding achieving 0.00% False Support Rate on golden benchmarks, versioned statutory precedence graphs, and verifiable purge.

Read KruschLaw Architecture Deep Dive →
v0.8.0 · 200 Tests Confirmed Precedence DAG The Join: Contract vs Statute <450t Gateway MCP

💼 Why Semantic Similarity Isn't Governing Precedence: What Makes KruschBiz Different From Generic Business RAG

Why flat vector search fails on commercial contracts. Confirmed-edge precedence graph resolver, unexecuted draft isolation, materialized effective slots, and The Join compliance engine.

Read KruschBiz Architecture Deep Dive →
Architectural Whitepaper Authority Packs GC Benchmark (n=180) 0.0% Wrong-Law Blend

📦 Authority Packs: Certified Rulebooks for Enterprise AI — Sovereign Domain Scoping vs. Vector Bleed

Why enterprise buyers don't buy retrieval. How bounded, versioned rulebooks enforce O(1) token budgets, pre-extracted numeric slots, and physical citation truth across law, finance, and enterprise contracts.

Read Authority Packs Whitepaper →
Systems Architecture Vector Space Geometry Document Ingestion Failure Mode Taxonomy

The Ingestion Imperative: Why Retrieval Quality Is Bounded Before the Model Reads a Single Word

Why wrong retrieval is the dominant root cause of enterprise AI failure. Deep dive into embedding space geometry, parser contracts, citation spines, and how the structured fix itself fails.

Read Systems Architecture Note →