AI Infrastructure Engineer | Agent Systems | Reliability & Verification — "I build the reliability infrastructure that makes autonomous AI systems safe, persistent, and useful"
Independent R&D Lab · Open to Senior, Staff, or Principal engineering roles across agent infrastructure, persistent memory, model orchestration, sandboxed code execution, and AI reliability/evaluation · Los Angeles, CA / Remote / Hybrid · Portfolio (krusch.dev) ↗ · Resume ↗
I design and build open-source agent infrastructure, transactional execution harnesses, persistent working-memory substrates, and cost-disciplined multi-GPU inference routers. Rather than treating language models as self-policing control planes, I run them as stateless compute samplers bounded by PostgreSQL ACID state, <32ms two-phase commit (2PC) write-ahead diff journals + POSIX atomic rename, <15µs pure-CPU Stage-0 cascade dispatch, <1ms static AST checks, and hermetic verification gates.
Lab Provenance: Independent R&D lab and open-source engineering research. Projects, evaluations, and reference architectures are developed and tested in my own lab unless otherwise indicated.
# Run the unified 7-pillar, 39-tool MCP runtime locally in one command (Node.js 22+ SQLite WAL or PostgreSQL 16)
npx krusch-stack init --ide all --defer-tools && npx krusch-stack doctor1. krusch-context-mcp v2.0.0 — Persistent Agent Working Memory & Span Provenance
- Architecture & Adoption (
82★·7forks ·86monthly npm downloads ·144/144tests): 5-verb Model Context Protocol (MCP) memory engine (retrieve,remember,revise,nudge,health) backed byPostgreSQL 16 + pgvector HNSWor zero-Dockernode:sqliteWAL + external-content PorterFTS5. EnforcesINV-12SHA-256 line-span provenance (flaggingSTALE_DRIFTwhen anchored source lines mutate so stale rules never silently steer edits) and$0.00zero-LLMRaw-RAG(256/32-token sliding conversation windows + 4-Way Hybrid RRF). - Scope & Limitations: Zero-LLM
Raw-RAGeliminates write-time LLM summarization cost and ingestion hallucination, leaving a1.67%implicit-synthesis miss floor (10/600DolphinBenchtasks unresolved acrossOracle@28) when cross-session constraints share neither lexical tokens nor dense semantic neighborhood at index time. - Supporting Benchmarks:
90.26%accuracy &95.77%dia_idrecall across all1,540/1,540Official SnapLoCoMo(ACL 2024) QA probes at$0.00ingestion (89.68%argon_tight@6.73xcompression,92.66%Oracle@2, clean-room evaluation);91.17%(547/600@$24.54,Gemini 4 Argon Low) — uploadeddolphinbench.aisubmission (UUID c047b063,status: "queued"awaiting leaderboard acceptance; exceeds current70.67%published leaderboard entry in independent600/600evaluation),90.67%(544/600@$30.54,Argon Low + Grounded v0.3,90.50%onRiley) — self-run clean-room evaluation (highestRileyslice181/200 = 90.50%, published SHA-256 audit logs), and57.33%(344/600@$0.00, Wave-6krush420/gemma4-31b-sre-lora+Grounded) — highest open-weights score in self-run 28-run evaluation ($0.00;54.17%[325/600] stock submissionUUID 288671aduploaded & queued ondolphinbench.ai) across28DolphinBenchruns (16,800gpt-5.6-soltraces,98.33%Global Oracle@28);93.00%10M-token IE recall across2,000Official ICLR 2026BEAMprobes.
2. @krusch/toolkit v1.8.1 (JS/TS) & krusch_toolkit v1.6.0 (Python) — Certified Runtime Bricks & Static Guards
- Architecture & Test Rigor (
39runtime bricks ·64.d.tssubpaths ·141/141Node &201/201pytesttests): Pre-audited infrastructure primitives replacing LLM-regenerated boilerplate: connect-time DNS-pinned SSRF guards (safeFetch), bounded HTTP413stream parsers, atomicIdempotency-Keylocks (409/422), hash-chained SHA-256/SQLiteaudit-logledgers, zero-node:*rbac/IDOR guards, and HMAC keysetpagination. Paired withkrusch-lego's16<1msstatic/AST vulnerability & boilerplate detectors and7zero-LLM project blueprints—validated externally onOWASP/NodeGoat,node-express-realworld-example-app, andstripe-samples/accept-a-payment(plus104/104lab repository compliance). - Scope & Limitations: The
16<1msstatic/AST detectors enforce structural security and reliability boundaries (rawfetchSSRF, unguarded multipart uploads,yaml.loadalias bombs, missing idempotency/RBAC wrappers), not domain-specific business logic or multi-service state invariants, which still require integration suites and independent code review. - Supporting Benchmarks: Lifts autonomous open-weights brick adoption from
25%→100%under pre-commit MCP diff gating and 2-stage QLoRA + DPO calibration (Architecture Paper ↗).
3. krusch-coding-harness + grounded-harness v0.2.0 (& Unified krusch-stack v1.1.0) — Transactional 2PC & Turn-0 Execution Plane
- Architecture & Crash Recovery (
116/116+7/7harness tests ·68/68stack tests): Stages agent edits inside aPostgreSQLwrite-ahead apply journal (<32ms) and commits via POSIX atomicrenameSync/fsync+ pre-commit SHA-256 file-drift guards, verified under a real SIGKILL-mid-apply crash test (crash-smoke.test.js: kill -9 after the first rename, thenrecoverInFlightApplies()restores the tree). Paired with Bubblewrap sandboxes, Turn-0 workspace grounding, passiveBLOCK_SPIN_LOOPtool memoization, live-state delta hydration, and0-turn defect-only stop verification (INV-GH-01..10). - Scope & Limitations: Pre-apply SHA-256 digest checks + POSIX atomic
renameSync/fsyncprevent partial writes and torn multi-file batches on process crash, though a sub-millisecond TOCTOU window remains if an external host editor mutates the same checkout concurrently outside container orgit worktreeisolation. - Supporting Benchmarks:
90.67%(544/600@$30.54,Argon Low + Grounded v0.3,+1.50 ppoverv0.2) onDolphinBench(self-run clean-room evaluation — highestRileyslice181/200 = 90.50%, published SHA-256 audit logs);90.0%(-74.5%cost,2.54xfaster) onadyen/DABstep(2xaccuracy to40.0%@$0.00onGemma 4 31B);0.00%attack success rate (0/949prompt-injection attacks across1,046episodes) on ETH SpyLabAgentDojo v1.2.2;59.9%→66.3%at-80.7%schema tokens on UC BerkeleyBFCL v3 Live(2,251Qs).
| System | Engineering Focus | Failure-Mode Design & Empirical Evaluation |
|---|---|---|
krusch-cascade-router |
<15µs Inference Cascade & Circuit Breakers |
Pure-CPU Stage-0 feature dispatch + HALF_OPEN tier circuit breakers & live SSE logprob aborts (-48.0% 120B TTFT, 1,442x faster Polyglot routing). 0.7263 across 8,400/8,400 live receipts on RouteWorks/RouterArena PR #169 (github-actions[bot] CI-verified upstream PR) (74.44% acc @ $0.38/1K, 91.43% rob., 26.4x cheaper than GPT-5); clean-room self-run evaluations on Martian RouterBench (36,497 Qs, 0.7488/0.7695 AIQ) & ACL 2026 LLMRouterBench (-83.95% cost). |
krusch-git & krusch-fs-mcp |
AST Blast-Radius & OS Page Memory | 2-hop AST call-graph blast-radius checks before signature edits + SHA-256 page-anchored OS config memory. 56.40% 10-task Macro NDCG@10 in clean-room ACL 2025 CoIR evaluation (2.39M docs / 162,216 Qs, > Voyage-Code-002 56.26% 512-tok baseline); beats CodeBERT & UniXcoder across 47,998 RepoBench-R queries. |
Jean SRE & @krush420 |
Hermetic SRE Daemon & QLoRA Distillation | Containerized repository audit daemon + Rule-of-3 scouting; published 18,131 Zero-Leak SFT + DPO rows training gemma4-31b-sre-lora (57.33% @ $0.00 — highest open-weights score in self-run 28-run evaluation), 120B Teacher, 30B Student (43.00%), & 8B Edge (15.7x lift). |
krusch-law & krusch-nexus |
Evidentiary Citation Spines & DBOS Workflows | Layout-true Poppler TSV document spines (100% held-out citation accuracy) + two-pass proposition entailment enforcing a 0.00% False Support Rate; 26.74% Macro F1 (k=1) & 44.72% Recall (k=2) across 6,889 Stanford LegalBench-RAG queries (714 contracts). |
Before focusing full-time on AI infrastructure, I spent nine years (2014–2023) diagnosing and installing applied electrical and mechanical systems in Southern Vermont, directed mobile field-diagnostic crews for the Wisconsin Bicycle Federation, and built and operated a physical retail and service business to first-year profitability in Aspen, Colorado (building on earlier Eagle Scout leadership). Working where miswired circuits, missed mechanical tolerances, and unhedged operating costs fail immediately shaped my engineering instincts around failure modes and operational accountability. That background is why I govern language models with deterministic engineering gates—PostgreSQL ACID state, <15µs pure-CPU dispatch, and <1ms static AST checks—rather than relying on unverified LLM behavior.
Evaluated across 335,000+ traces and 14 external benchmark suites, with published SHA-256 audit logs and reproducible evaluation artifacts (95/95 SHA-256 clean-room verification gates across 49 Hugging Face audit logs in 64 files + 15/15 adyen/DABstep gates + 5/5 Official Snap LoCoMo gates, enforcing runtime JS Proxy oracle-leakage traps, 0o444 read-only SQLite freezes, and loopback air-gaps on open-weights runs). Every external score is disclosed under one of three explicit verification categories:
github-actions[bot]CI-Verified Upstream PR:RouteWorks/RouterArenaPR #169 (0.7263Arena Score across8,400/8,400live OpenRouter receipts +420robustness noise perturbations; open upstream PR awaiting maintainer merge).- Uploaded
dolphinbench.aiSubmissions (status: "queued"Awaiting Leaderboard Acceptance):91.17%(547/600@$24.54,Gemini 4 Argon Low,UUID c047b063— exceeds current70.67%published leaderboard entry in independent600/600evaluation),89.17%(535/600@$24.57,Argon Medium,UUID 29389157), and54.17%(325/600@$0.00,Google Gemma 4 31Bstock,UUID 288671ad), among8uploaded.ziparchives passingsubmission.validate. - Independently Reproduced Clean-Room Evaluations (Published SHA-256 Audit Logs):
90.67%(544/600@$30.54,Argon Low + Grounded v0.3— highestRileyslice181/200 = 90.50%),57.33%(344/600@$0.00, Wave-6krush420/gemma4-31b-sre-lora+Grounded— highest open-weights score in self-run 28-run evaluation), Official SnapLoCoMo(90.26%accuracy /95.77%dia_idrecall), ETH SpyLabAgentDojo v1.2.2(0.00%ASR),adyen/DABstep(90.0%), ACL 2025CoIR, ICLR 2026BEAM,BFCL v3 Live,Aider Polyglot,BIRD-SQL,RepoBench-R,LegalBench-RAG,RouterBench, andLLMRouterBench: Full Methodology & Honest Gaps (BENCHMARKS.md) ↗ · Raw SHA-256 Logs on Hugging Face ↗.
- Languages & Runtimes:
JavaScript / TypeScript(Node.js 22+ ESM,React,Vite,Express,Cloudflare Workers,oxlint) ·Python 3.12(FastAPI,SQLAlchemy 2.0,Pydantic v2,PyTorch,asyncio) ·SQL - State, Graph & Search:
PostgreSQL 16(pgvectorHNSW,tsvectorGIN, Hybrid RRF) ·node:sqliteWAL + external-content PorterFTS5·snowflake-arctic-embed2(8,192-ctx,1,024-dim, asymmetricquery:calibration) - Infrastructure & LLMOps: Multi-Node Bare-Metal Linux (
10GbE,systemd,Docker,Bubblewrapsandboxes) ·Ollama/vLLM(q8_0KV) ·96GB RTX PRO 6000 BlackwellQLoRA + DPO ·GitHub Actions CI
📖 Selected Architecture Writing (All 27 Papers on krusch.dev →)
- Why Coding Agents Need Release-Gated Lego Bricks, Not Prompted Boilerplate: Inside a 39-Brick, Self-Evolving Code Substrate — Eliminating LLM-regenerated HTTP
413TCPRSTraces, DNS-rebinding SSRF, FTS5 injection, idempotency races, mutable audit logs, IDOR leaks, and YAML alias bombs across104/104(100%) lab repositories using@krusch/toolkitv1.8.1&krusch_toolkitv1.6.0(16<1msstatic/AST detectors) and pre-commit MCP diff guards. - The Krusch Coding Harness — Designing a
PostgreSQLwrite-ahead apply journal, POSIX atomicrenameSync/fsyncswap engine, mid-commit crash-injection harness, and pre-commit SHA-256 drift gate for autonomous coding agents. - Beyond Flat Vector RAG: What Makes
krusch-context-mcpSpecial — 5-verb hierarchical working memory, temporal lineage (supersedes_id), andINV-12SHA-256 line-span drift checks across100K–10Mtokens. - Return on Memory: Why Test-Time Reasoning Unlocks Zero-Distillation Agentic Retrieval on Official DolphinBench (
91.17%QueuedUUID c047b063&90.67%Clean-Room Grounded v0.3) — Controlled28-run (16,800-trace) study over frozen0o444SQLite checkpoints ($0.00Raw-RAG + 4-Way RRF):90.26%accuracy &95.77%dia_idrecall on Official SnapLoCoMo,98.33%(590/600)Global Oracle@28,81.50%@$1.35on model-matchedGPT 5.6 Luna + Grounded(71.1xcheaper thanMem0), and57.33%@$0.00(highest open-weights score in self-run 28-run evaluation;54.17%stockUUID 288671adqueued) onkrush420/gemma4-31b-sre-lora. - How an Open-Weights Sovereign Stack Stacks Up Across 335,000+ Benchmark Queries & Traces (Including Where Cloud Still Wins) — Evaluated across 335,000+ traces and 14 external benchmark suites, with published SHA-256 audit logs and reproducible evaluation artifacts (
95/95SHA-256 clean-room gates,49Hugging Face audit logs across64files), including honest open-weights ceilings and reproduction commands. - Multi-Tier Cascade Routing Architecture —
<15µspure-CPU Stage-0 dispatch,HALF_OPENcircuit breakers, live SSE logprob aborts (-48.0%TTFT),github-actions[bot]CI-verified upstreamRouteWorks/RouterArenaPR #169 (0.7263across8,400/8,400live receipts), and clean-room self-run evaluations on MartianRouterBench& ACL 2026LLMRouterBench. - The 15 Production Agentic Systems: Reference Architecture, State-Machine Invariants & Benchmark Proofs — Architectural teardowns covering
100+async orchestration, typed Pydantic v2 swarms,72hSlack HMAC HITL leases,100-trajectory Golden DAG CI gates,$0.50cost kill-switches, and5%shadow diffing.


