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.
The 2026 Sovereign AI Tech Stack: Multi-Family GPUs, 3-Tier MCP Substrates, @krusch/toolkit & Closed-Loop Distillation
An end-to-end engineering blueprint of the hardware, 8K snowflake-arctic-embed2 vector plane, model routing topology, zero-bloat Node 22 / Python 3.12 / PostgreSQL 16 runtime (@krusch/toolkit & Raw-RAG), 7-server MCP ecosystem validated across 11 external peer-reviewed benchmarks (#1 91.17% Official DolphinBench @ $24.54 & #1 Open-Weights 54.17% Gemma 4 31B @ $0.00, 2,000/2,000 ICLR 2026 BEAM, #1 0.7883 RouterArena & #1 0.4269 ACL 2026 LLMRouterBench, 47,998-Q RepoBench-R, 51.56% Aider Polyglot, 6,889-Q LegalBench-RAG), unified one-command installer (krusch-stack --defer-tools + generalized 2PC Action Harness), and Wave-4 120B/30B/8B QLoRA+DPO distillation across 18,131 SFT+DPO rows.
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.
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.
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.
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.
🧠 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 →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.
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.
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.
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.
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).
🔬 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.
🧠 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).
🌳 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.
🗂️ 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.
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 →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 →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.
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%.
🛡️ 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.
💾 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 →🚀 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 →🛡️ 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.
☁️ 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.
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).
⚖️ 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 →⚖️ 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.
⚖️ 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 →💼 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 →📦 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 →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 →