AI Systems Architecture & Bare-Metal Infrastructure · Los Angeles, CA
Kevin Ruschman

Kevin Ruschman

AI Systems Architect & Local-First Infrastructure Engineer

I architect local-first AI infrastructure and deterministic control planes—where language models act as interchangeable compute samplers over PostgreSQL ACID state, sandboxed verification, and multi-family bare-metal GPU clusters.

#1 Overall on Official DolphinBench (91.17%, 547/600 at $24.54): Return on Memory with Gemini 4 Argon & 54.17% Gemma 4 31B at $0.00

Holding all 13,539 episodic sessions (1.50M tokens) byte-for-byte constant inside frozen 0o444 SQLite checkpoints ($0.00 Zero-LLM Raw-RAG + 4-Way RRF) across 14 full 600-task Official openai/gpt-5.6-sol runs (8,400 traces across 5 model families), our memory substrate sets both #1 Overall and #1 Open-Weights ($0.00) scores:

  • +20.50 pp (+123 Tasks) Above Official #1 at ~4x Lower Cost: Gemini 4 Argon (Low Thinking) scores 91.17% (547/600) across Morgan (95.5%), Alex (89.5%), and Riley (88.5%) in 35.38s median latency for $24.54 total ($0.00 ingestion + $24.54 execution, 57.1% cache hit; Argon Medium 89.17% @ $24.57)—beating Official #1 Hermes + GPT 5.6 Luna + Mem0 (70.67% / 424/600 @ $96.21) and Supermemory (59.17% @ $345.64, 14.1x cheaper).
  • 96.17% (577/600) Oracle@14 Sufficiency, 2x2 Thinking Interaction & 4.19x Multi-Hop Return: Zero-LLM snowflake-arctic-embed2 (1024d) + 256/32-tok Raw-RAG + Porter-FTS5 4-Way RRF already retrieves sufficient facts on 96.17% of tasks (78.83% Oracle@10 across $0.00 open-weights runs alone); interactive search interacts with concise Low thinking (ΔΔ = +3.17 pp, p = 0.032) and multiplies 4+-fact (LBF=4+) accuracy 4.19x (21.3% → 89.3%).
  • 54.17% (325/600) #1 Open-Weights at $0.00 (Gemma 4 31B) & 2PC Action Harness: Apache-2.0 dense Google Gemma 4 31B shatters the 50% open-weights barrier at 54.17% (325/600, $0.00; 52.00% No-Think)—beating all 8 non-GPT-5.6-Luna commercial cloud stacks up to $1,830.57 (+18.83 pp over matched-scale Qwen2.5-Coder-32B 35.33%; 42.67% local 30B Wave-4; 15.7x 8B lift)—while our generalized krusch-stack 2PC Action Harness eliminates 100% of duplicate MCP calls (10 → 0). All 8 submitted archives are verified & queued on dolphinbench.ai (Argon Low UUID c047b063-822c-49fb-8b36-27c3763d6ca7 & Gemma 4 31B UUID 288671ad-afe0-40a3-93af-b834c9bbd306).
Read Return on Memory Paper → arXiv Preprint PDF → 5,535-Run Local AI Study → 🤗 Raw Audit Logs (36) →
91.17%
#1 Overall · 547 / 600 Official gpt-5.6-sol (+20.50 pp over #1 Mem0)
$24.54
~4x Cheaper than Mem0 ($96.21) · $0.00 Memory Ingestion
96.17%
Oracle@14 Ceiling · 577 / 600 Tasks Retrieved by $0.00 Store
54.17%
#1 Open-Weights @ $0.00 · Gemma 4 31B Beats 8 Cloud Stacks · 4.19x 4+ Hop
Public Leaderboard Audit Status: 14/14 official archives validated & 8 signed submission archives queued on dolphinbench.ai awaiting maintainer merge · Argon Low UUID c047b063-822c-49fb-8b36-27c3763d6ca7 · Gemma 4 31B UUID 288671ad-afe0-40a3-93af-b834c9bbd306.

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

Why we inverted the conventional cloud-wrapper AI stack—treating language models as stateless compute samplers governed by bare-metal multi-family GPUs, relational PostgreSQL 16 state planes, a zero-bloat shared monorepo toolkit, and autonomous QLoRA self-distillation:

  • Unified 1-Command Installer (krusch-stack): Run npx krusch-stack init --defer-tools or docker compose up -d to wire all 7 pillars, 39 annotated MCP tools (cutting upfront schema bytes by 68.5%), and our generalized 2PC Tool-Action Harness (INV-STACK-10, 10 → 0 duplicate MCP calls) across Claude Code, Cursor, Windsurf, and Antigravity.
  • Pillar I · Multi-Family 5-GPU, 8K Arctic & 96GB G4 Burst: Qwen3-30B-MoE (124.2 tok/s) audited by orthogonal Gemma 4 & Hermes 3 Referees + 8K snowflake-arctic-embed2 (89.17% R@1) + on-demand 96GB Blackwell G4 (gpt-oss:120b & gemma4:31b).
  • Pillar II · 7-Server MCP Ecosystem & Hermetic Benchmarks: krusch-context-mcp v2.0.0 (#1 Overall 91.17% Official DolphinBench @ $24.54 + #1 Open-Weights 54.17% Gemma 4 31B @ $0.00 · 2,000/2,000 ICLR 2026 BEAM 100K–10M), krusch-git v1.2.3 (15.25ms HNSW/GIN · RepoBench-R 47,998 Qs beating CodeBERT & UniXcoder), krusch-fs-mcp v0.3.1 (8-node SSH page trees), krusch-harness (Aider Polyglot Pass@1 19.56% → Pass@2 51.56%, 2.64x self-healing), and KruschNexus v0.2.6 (LegalBench-RAG 26.74% Macro F1 · 47.71% recall across 6,889 Qs).
  • Pillar III–V · @krusch/toolkit, Raw-RAG, Jean SRE & QLoRA Flywheel: Node 22 ESM & Python 3.12 runtime (embeddings, 256/32-tok raw-rag, harness-engineering) + 24/7 Jean SRE sweeps across 88 repos distilling 18,131 Zero-Leak SFT + DPO rows (sovereign-code-audit-sft) into our published 120B Teacher, 30B Student, and 8B Edge Wave-4 QLoRA+DPO adapters.
Read Full 2026 Tech Stack Blueprint → Cross-Stack Benchmark Comparison → Install krusch-stack (GitHub) → 🤗 Raw Audit Logs (36) →
The 2026 Sovereign AI Tech Stack Architecture Diagram

The 5-Layer Sovereign AI Tech Stack

How multi-family bare-metal GPU routing, 7-server MCP substrates, sandboxed 2PC harnesses, air-gapped document intelligence, and @krusch/toolkit + QLoRA self-distillation compose into a unified platform.

LAYER 01 · COMPUTE, GPU FLEET & CASCADE ROUTING PLANE #1 RouterArena (0.7883) · #1 LLMRouterBench & RouterBench

Microsecond Syntactic Gating, Neural Centroids & Multi-Family GPU Pooling

Eliminates the 500ms LLM "routing tax." Intercepts deterministic patterns on CPU in <15µs for $0.00, routes semantic intents via 8K snowflake-arctic-embed2 centroids to a multi-family 5-GPU bare-metal pool (Qwen3-Coder-30B-MoE at 124.2 tok/s + Gemma 4 / Hermes 3 cross-family Referees), bursts on-demand to 96GB Blackwell G4 (gpt-oss:120b & gemma4:31b), and reserves frontier Gemini 4 Argon escalation strictly for tail reasoning and 3-viewport UI visual audits.

krusch-pre-router npm v1.0

Stage-0 CPU syntactic classifier and exact-match LRU memoization table. Intercepts code fences, SQL, stack traces, and voice board intents in <10µs with zero token burn.

krusch-cascade-router npm v1.1 · 104 Tests

Dual-stage L1 CPU + L2 Arctic centroid router with live SSE logprob/loop abort. Validated #1 on RouteWorks RouterArena CI (0.7883 / 80.72%), #1 Pareto (0.4269, -83.95% cost) across 12,566 ACL 2026 LLMRouterBench prompts, #1 ID & OOD AIQ across 72,980 Martian RouterBench rows (-72.63% @ 98% GPT-4), and -48.0% TTFT live SSE cascade.

Multi-Family GPU + G4 Burst 57GB+ Local · 96GB G4

5 bare-metal GPUs across Dual RTX 3060 (24GB), Dual RTX 2080 Ti (22GB NVLink), and 11GB Orchestrator + on-demand 96GB Blackwell G4 burst (120B QLoRA distillation & 31B dense open-weights evals) and @krusch/toolkit runtime.

LAYER 02 · RELATIONAL STATE, WORKING MEMORY & STRUCTURAL GRAPHS 82★ · 3-Tier MCP Ecosystem

Governed Episodic Memory, Git DAG / AST Graphs & Multi-Node Fleet Page Trees

Replaces flat sliding-window RAG with three specialized Model Context Protocol substrates backed by PostgreSQL 16 + pgvector HNSW and zero-Docker SQLite WAL. Separates invariant working memory (krusch-context-mcp), Git DAG & AST caller/callee graphs (krusch-git), and OS/fleet filesystem page memory (krusch-fs-mcp).

krusch-context-mcp 82★ · npm v2.0.0

5-verb sovereign coding-agent working memory (retrieve, remember, revise, nudge, health) in ~350 prompt tokens. Validated #1 Overall (91.17%, 547/600 @ $24.54) on Official DolphinBench with Gemini 4 Argon (Low) + $0.00 Zero-LLM Raw-RAG (#1 Open-Weights 54.17% Gemma 4 31B @ $0.00 · 42.67% local 30B @ $0.00) and 2,000/2,000 Official ICLR 2026 BEAM 100K–10M (93.00% 10M IE recall · beats past.dev on 4/4 CR & 10M MSR).

krusch-git npm v1.2.3 · RepoBench-R

Relational Git DAG, multi-language AST chunker (JS/TS/Py/Go/Rust/Java) & live import-activity analyzer in PostgreSQL 16 (15.25ms HNSW/GIN). Benchmarked across all 47,998 RepoBench-R queries: 19.12% Macro Acc@1 (68.58% Acc@5) and 31.33% Py / 27.45% Java cfr Easy—beating CodeBERT & UniXcoder.

krusch-fs-mcp v0.3.1 · 8-Node Fleet

OS filesystem & multi-node SSH fleet page memory powered by KruschNexus Library Mode. Indexes PDFs, DOCX, and /etc/systemd into compact float32 vector blobs & SHA-256 drift-verified page trees.

LAYER 03 · TRANSACTIONAL EXECUTION HARNESS & SOVEREIGN CONTROL PLANE 51.56% Aider Polyglot (2.64x) · <32ms 2PC

ACID Diff Staging, Policy Floors, Sandboxed Verification & Voice-First Daily Execution

Enforces hard transactional boundaries between probabilistic model outputs and physical side effects. Code agents stage patches into PostgreSQL behind import-frozen policy floors and truncation breakers before 2PC fsync apply; personal and SRE agents operate under deterministic Confirm-Before-Act gates.

krusch-coding-harness 2PC Harness · 103 Tests

PostgreSQL state-machine harness enforcing import-frozen policy floors, truncation guards, verify-on-stop outer loops & Bubblewrap sandboxes (<32ms 2PC), plus krusch-stack's generalized 2PC Tool-Action Harness (10 → 0 duplicate MCP calls). Lifts open-weights gpt-oss:120b from 19.56% → 51.56% (2.64x, 72 tasks self-healed) on 225/225 6-language Aider Polyglot—tying Claude 3.5 Sonnet & beating GPT-4o (23.1%).

krusch-companion v1.2 · 73 Tests

100% local-first personal AI assistant & daily execution PWA. Local faster-whisper voice dictation, Dual-Axis Priority Board, 20-tool <holodata> proxy, 256/32-tok Raw-RAG recall & Skylight sync.

@krusch/polygres-connector v1.0 · Hybrid Sync

Swappable storage substrate bridging local SQLite/PostgreSQL with Polygres Cloud (pgContext + pgGraph) and 40-char SHA pinning with fail-closed air-gap enforcement.

LAYER 04 · AIR-GAPPED DOCUMENT INGESTION & PRECEDENCE INTELLIGENCE 0.00% False Support · 26.74% LegalBench-RAG F1

Physical Citation Coordinates, Statutory Preemption DAGs & Contract Compliance Joins

Replaces naive cosine similarity in regulated legal, financial, and commercial workflows with physical coordinate preservation (pdf_page, printed_page, bbox, char_start..end), versioned statutory precedence graphs, and confirmed-edge contract amendment resolution.

KruschNexus v0.2.6 · 206 Tests

7-parser-family layout-aware ingestion spine (100% citation accuracy, contextual section-path embeddings + local mxbai-rerank-large-v2 cross-encoder). Achieves 26.74% Macro F1 (k=1), 25.81% F1 / 44.72% Recall (k=2), and 47.71% Recall (k=6) across all 6,889 LegalBench-RAG queries (33.95% MAUD Recall@2 beating OpenAI text-embedding-3-large + Cohere Rerank Recall@64 28.28%).

KruschLaw & Authority Packs v0.7.0 · 0.00% FSR

Sovereign legal intelligence engine enforcing two-pass proposition entailment (0.00% False Support Rate), temporal as_of_date preemption DAGs (Floor vs. Ceiling rules), and cryptographic purge.

KruschBiz & Gateway MCP v0.8.0 · 200 Tests

Confirmed-edge commercial contract graph resolving MSA/SOW/Amendment overrides, unexecuted draft isolation, and "The Join" (contract slot vs. statutory floor) via a <450-token 5-verb Gateway MCP.

LAYER 05 · ZERO-BLOAT RUNTIME, AUTONOMOUS SRE & DUAL-TRACK QLoRA DISTILLATION

Zero-Dependency Shared Toolkits, 24/7 Jean SRE & Self-Distilling SFT Flywheel

Eliminates transitive framework bloat across 28+ production services via unified zero-dependency Node.js 22 / Python 3.12 toolkits, an autonomous 24/7 SRE daemon auditing 88 targets on bare metal, and a closed-loop QLoRA pipeline converting verified execution traces into open-weights adapters.

@krusch/toolkit & krusch_toolkit Zero-Dep Runtime

Unified Node.js 22 ESM & Python 3.12 foundations providing 8K snowflake-arctic-embed2 batching & isotropic calibration, zero-LLM 256/32-tok Raw-RAG, single-token logprob System-1 deciders, and Cross-Family Referee gates.

Jean SRE & 11-Phase Audit 88 Targets · 24/7

Autonomous 3-Tier MCP SRE daemon sweeping 88 repositories across 11 checkpoints with pre-hydrated AST caller graphs, Phase 1.9 Adversarial Steel-Manning, and Cross-Family Referee convergence gates.

Dual-Track QLoRA Flywheel 18,131 SFT+DPO · HF Live

Distills unit-test-gated remediations and rejection-sampled trajectories (18,131 rows across 7 splits) through krusch-stack into open-weights 120B Teacher (native Blackwell 4-bit MXFP4), 30B Student, and 8B Edge Wave-4 LoRA+DPO adapters on 96GB G4.

Production Local-First Infrastructure & Multi-Family GPU Plane

Self-hosted 8-node Linux fleet engineered for zero cloud telemetry leakage, dedicated 10GbE PostgreSQL/vector storage throughput, 100% GPU-resident multi-family inference, and on-demand 96GB Blackwell G4 cloud burst distillation.

Node-01 · State & Referee Host State & Non-Qwen Pool
Dual Xeon 40T · 80GB RAM · Dual RTX 3060 (24.5GB VRAM)

Primary production database & vector plane hosting PostgreSQL 16 + pgvector (dedicated NVMe relational & HNSW storage), DBOS durable execution, secondary 8K snowflake-arctic-embed2, and our non-Qwen Referee pool (gemma4:e4b + hermes3:latest).

Node-02 · Heavy Compute 30B MoE & Jean SRE Host
Dual Xeon 40T · 64GB ECC · Dual RTX 2080 Ti (22.5GB NVLink)

High-throughput compute server pinning 100%-GPU Qwen3-Coder-30B-MoE (q8_0 KV cache) at 124.2 tok/s, autonomous 24/7 Jean SRE 88-target codebase sweeps, and hermetic container test verification with strict OS NVMe write protection.

Node-03 + 5 Edge & G4 Burst Orchestrator, Mesh & L2.5 Burst
RTX 2080 Ti (11.2GB) + 5 Fleet Nodes + 96GB Blackwell G4

Central orchestrator pinning 8K-ctx 1,024-dim snowflake-arctic-embed2 (89.17% R@1), qwen2.5-coder:7b (74.6 tok/s), and 16kHz faster-whisper ASR—plus on-demand 96GB RTX PRO 6000 Blackwell G4 burst running gpt-oss:120b (~117.7 tok/s) and Dual-Track QLoRA distillation.

Interconnect & Security Invariants: Dedicated 10GbE Direct Fabric between compute and PostgreSQL state nodes · Encrypted Tailscale mesh · Pre-transport .env secret redaction · Zero-Docker SQLite WAL fallback.
Read 2026 Tech Stack Blueprint → View Enterprise On-Prem Architecture →

The Invariant Execution Lifecycle: Stage → Verify → Commit

How krusch and kd-Code prevent autonomous coding agents from corrupting git repositories or applying broken refactors.

STEP 01
Stage in Postgres
ACID Isolation

The model plans and generates diffs directly into relational tables (staged_diffs). Zero unvetted file writes ever touch your physical working tree.

STEP 02
Sandboxed Verify
Ephemeral Runner

A shadow workspace runs automated test suites, typechecks, and linters in isolation. If a test fails, the staged turn aborts instantly without repo pollution.

STEP 03
AST & Diff Review
kd-Code Workbench

Inspect side-by-side color-coded diffs via @pierre/diffs, caller/callee symbol graphs, and invariant nudges before authorizing disk modification.

STEP 04
2PC Fsync Apply
<32ms Atomic Apply

Only on verified tests AND explicit human approval does the two-phase commit manager fsync changes to disk. Instant 1-click rollback preserves sanity.

Core Architectural Invariants

The non-negotiable systems rules governing every layer in the KruschDev ecosystem.

01 / INVARIANTS OVER PROMPTS

Deterministic State Managers

Never trust language models to police their own file writes or follow conversational rules. Enforce constraints in PostgreSQL ACID tables, AST parsers, and atomic two-phase commit journals.

02 / ZERO ROUTING TAX

Multi-Tier Routing Cascades

Don't burn a 500ms LLM call just to choose an LLM. Intercept structured syntax on CPU in <15µs for $0.00, escalate to sub-50ms neural centroids, and only query frontier models when necessary.

03 / LOCAL-FIRST SOVEREIGNTY

Air-Gapped Hardware Control

Run compute, vector indexes, and episodic memory on self-hosted bare-metal clusters. Privileged files, client discovery, and organizational memory never leak to third-party cloud APIs.

Technical Publications by Architectural Layer (26)

Reproducible architectural deep dives, empirical ablation benchmarks, and systems specifications.

Open Full Publications Catalog →
TRACK I · LAYER 01

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

End-to-end stack architecture, 15/15 production agentic systems matrix, 317,500+-query cross-stack benchmark comparison, 5-GPU + 96GB G4 burst compute, 3-Tier MCP code audits, Wave-4 QLoRA+DPO self-distillation, and sub-15µs syntactic gates.

Flagship Stack Blueprint krusch-stack (--defer-tools + 2PC) @krusch/toolkit + 7 MCPs 8K Arctic + QLoRA Distillation

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

Complete end-to-end engineering blueprint of the KruschDev tech stack: 5 bare-metal GPUs + 8K snowflake-arctic-embed2 + 96GB Blackwell G4 burst, 7 MCP servers validated across 11 hermetic external benchmarks (#1 91.17% Official DolphinBench @ $24.54 & #1 Open-Weights 54.17% Gemma 4 31B @ $0.00, 2,000/2,000 BEAM, #1 0.7883 RouterArena, #1 0.4269 ACL 2026 LLMRouterBench & #1 Martian RouterBench, 47,998-Q RepoBench-R, 51.56% Aider Polyglot, 6,889-Q LegalBench-RAG), krusch-stack --defer-tools (-68.5% schema bytes) + 2PC Action Harness, 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 & Benchmark Proofs

Three architectural teardowns mapping all 15 production agentic engineering 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 · 36 HF Logs 11 External Suites · 0.00% ASR Honest Gaps & SHA-256 Gates

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

Empirical cross-stack comparison of krusch-stack against open-source wrapper stacks and commercial cloud stacks across 11 external suites: Official DolphinBench (#1 91.17% Argon Low @ $24.54 & #1 Open-Weights 54.17% Gemma 4 31B @ $0.00, 8 queued), RouterArena (0.7883 CI, PR #169 open), ACL 2026 LLMRouterBench (#1 Pareto 0.4269), Martian RouterBench (#1 ID & OOD 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, RepoBench-R, LegalBench-RAG, and Aider Polyglot (19.56% → 51.56%)—with explicit reader-ceiling and methodology caveats.

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 & 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 SFT + DPO trajectories.

Read Audit & QLoRA Pipeline Paper →
#1 RouterArena, LLMRouterBench & RouterBench <15µs CPU Gate -83.95% Cost · -48% TTFT

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

Systems architecture deep dive into krusch-cascade-router (#1 RouteWorks RouterArena CI at 0.7883 / 80.72%, #1 ACL 2026 LLMRouterBench Pareto 0.4269, #1 Martian RouterBench ID & OOD AIQ across 72,980 rows at -72.63% cost, and -48.0% TTFT live SSE cascade) and krusch-pre-router (<15µs CPU gate, $0.00 tax).

Read Cascade Routing Whitepaper →
Flagship Architecture PostgreSQL State Plane

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

Why autonomous agents require raw SQL and a transaction manager—not ORMs or prompts: 0 JS ORMs across 48 repos, 252ms → 15.25ms HNSW+GIN CTEs in krusch-git, 10M-token memory, and 2.64x Aider Polyglot 2PC self-healing in krusch-coding-harness.

Read State Plane Architecture →
Hybrid Architecture PostgreSQL + pgGraph

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

Decoupling AI coding agent working memory into managed PostgreSQL (pgGraph + HNSW) and optional cloud embeddings for zero VRAM load and global context while keeping file writes strictly sovereign.

Read Hybrid Elasticity Paper →
TRACK II · LAYER 02

Agent Working Memory, Closed-System BEAM Benchmarks, Git DAG / AST Graphs & OS Substrates

The 5-verb MCP discipline, #1 Official DolphinBench Return on Memory (91.17% @ $24.54 & 54.17% Gemma 4 31B @ $0.00) & 8,400+-trace multi-family study, 2,000/2,000 ICLR 2026 BEAM validation (100K–10M), relational AST symbol indexing, multi-node SSH fleet page trees, and swappable Postgres/SQLite drives.

#1 Official DolphinBench (91.17%) 54.17% Gemma 4 31B @ $0.00 96.17% Oracle@14 · 4.19x 4+ Hop

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), scaling active test-time reasoning across 14 full 600-task Official gpt-5.6-sol runs (8,400 traces, 5 model families) lifts accuracy from 18.33% (8B) to 54.17% (325/600, #1 Open-Weights @ $0.00) with Gemma 4 31B (beating 8 paid cloud stacks) and 91.17% (547/600, #1 Overall) with Gemini 4 Argon (Low)—beating #1 GPT 5.6 Luna + Mem0 (70.67% @ $96.21) by +20.50 pp at $24.54, with 96.17% Oracle@14 and a 4.19x 4+-fact hop lift.

Read Return on Memory Paper →
Official DolphinBench 600 (8,400+ Traces) 54.17% Gemma 4 31B @ $0.00 15.7x 8B Lift · 2PC Harness

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-domain Gemma 4 31B reaches 54.17% (325/600, $0.00, beating matched Qwen2.5-Coder-32B by +18.83 pp and 8 paid cloud stacks up to $1,830.57); Zero-Leak QLoRA+DPO lifts local Qwen3-Coder-30B-A3B to 42.67% and boosts 8B Q4_0 15.7x; and our krusch-stack 2PC Action Harness eliminates 100% (10 → 0) of duplicate MCP calls.

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

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

Evaluating krusch-context-mcp across all 100 conversations (~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 →
v0.3.1 · 8-Node Fleet KruschNexus Library Mode SHA-256 Page Memory

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

Why coding and SRE agents need a dedicated OS & fleet filesystem memory substrate. Turning unstructured PDFs, DOCX, systemd units (/etc/systemd/system), and /etc/fstab across multi-node SSH server fleets into layout-true page trees with SHA-256 drift-verified PageMemory annotations.

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

🌳 krusch-git: Git DAG Indexing, Relational AST Symbols & Hybrid Recency Search

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 →
82★ Flagship MCP · v2.0.0 2,000/2,000 BEAM (100K–10M)

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

From tool overload to the radical 5-verb contract (~350 prompt tokens). Deep dive into krusch-context-mcp v2.0.0 (governed episodic memory, two-level episode rollups, 2-hop bridges, closed-system Official ICLR 2026 BEAM n = 2,000/2,000 validation across 100K–10M on 8K snowflake-arctic-embed2) and decoupling codebase RAG into krusch-git.

Read 5-Verb Memory Deep Dive →
Developer Substrate KruschContext + KruschGit Swappable Drives

💾 Swappable Substrates: Powering Agent Memory & Codebase Graphs with Polygres

Why AI coding agents need ACID decision logs and relational AST symbol graphs—and how swappable storage drives let you run locally on SQLite/Postgres or on Polygres Cloud (pgContext + pgGraph) without changing agent tools.

Read Swappable Substrate Paper →
Enterprise MCP PostgreSQL 16 + pgvector

Sovereign Context & Safe Mutation Architecture for Coding Agents

Decoupling tool density, stratified λ-decay, declarative steering nuggets, and 2026 Streamable HTTP transport across enterprise PostgreSQL 16 + pgvector deployments.

Read Enterprise MCP Paper →
Code-Agent Architecture 12k Symbol Benchmark

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), dependency graph walks, and deterministic token budget packing.

Read Retrieval Benchmark Paper →
TRACK III · LAYER 03

Transactional Coding Harnesses & Sovereign Daily Execution

Pre-commit diff staging, container sandbox verification, 2PC apply journals, and local-first voice-driven agentic control.

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 PostgreSQL 16 2PC

🛡️ 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 exercises.

Read Coding Harness Deep Dive →
Flagship Open Source · v1.2 Voice-First Whisper ASR 16-Tool <holodata> Proxy

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

Complete architectural tour of krusch-companion: local 16kHz faster-whisper Voice-to-Text, Dual-Axis Priority Board (4 Execution Lanes × 6 Life Pillars), 16-tool <holodata> proxy with Confirm-Before-Act gates, and SQLite WAL temporal fact superseding.

Read Companion Architecture & Playbook →
Open Source Release 12-Tool MCP Server 1,024-Dim Drive RAG

☁️ 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 →
TRACK IV · LAYER 04

Air-Gapped Document Ingestion, Vector Geometry & Precedence Graphs

Layout-true coordinate spines, statutory preemption DAGs, confirmed-edge contract graphs, and certified rulebooks.

Architectural Whitepaper GC Benchmark (n=180) 0.0% Wrong-Law Blend

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

How bounded, versioned rulebooks (Jurisdiction Packs, Standards Packs, Playbook Packs) enforce O(1) token budgets, pre-extracted numeric slots, and physical citation truth across law, finance (ASC 606), and enterprise contracts.

Read Authority Packs Whitepaper →
v0.8.0 · 200 Tests Confirmed Precedence DAG The Join: Contract vs Statute

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

Systems architecture deep dive into KruschBiz (v0.8.0): confirmed-edge precedence graph resolver, unexecuted draft isolation, materialized effective slots, The Join (contract vs. statute compliance engine), and physical citation spine coordinates (INV-11).

Read KruschBiz Architecture →
v0.7.0 · 156 Tests 0.00% False Support Rate Preemption DAG & as_of_date

⚖️ Why We Built KruschLaw: Local-First Legal RAG & Statutory Precedence

Why generalist RAG fails in statutory law. 0.00% False Support Rate on labeled golden benchmarks, versioned statutory precedence graphs (resolve_controlling_law with as_of_date), tenant defense deadlines, and cryptographic purge.

Read KruschLaw Architecture →
v0.2.6 · 206 Tests LegalBench-RAG (6,889 Qs) 26.74% Macro F1 · 100% Citation

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

Why arbitrary token slicing destroys document citations. 7-parser-family held-out evaluation (100% citation accuracy), contextual section-path embeddings + local mxbai-rerank-large-v2 cross-encoder 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 (beating OpenAI text-embedding-3-large + Cohere Rerank Recall@64 on MAUD).

Read KruschNexus Deep Dive →
Sovereign Fleet (587 Tests) Citation Spine Closed-Loop Grounding

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

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

Read Sovereign Triad Essay →
Vector Space Geometry Parser Contracts Failure Mode Analysis

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

Why wrong retrieval is the dominant root cause of enterprise AI failure. Embedding space geometry (measured negation and numeric limits), parser contracts, citation spines, and how structured fixes fail.

Read Systems Architecture Note →