Field notes
Writing
Field notes from shipping production AI agent guardrails, local-first MCP memory, and high-reliability Rust, TypeScript, and PostgreSQL backends.
-
Deterministic guardrails for AI coding agents: intercepting tool calls in Rust
Why prompt instructions degrade over long agent sessions, and how a small Rust boundary intercepts tool calls, enforces safety policy, and pairs with CI entropy gates in production.
-
Local-first MCP memory with SQLite FTS5: why we skipped vector databases
How a zero-cloud SQLite FTS5 MCP server gives coding agents fast, deterministic, byte-budgeted memory across Claude Code, Codex, and Antigravity — without embedding drift or hosted infra.
-
Splitting a 543k-line Rust monolith into 30 Cargo crates (5x–8.7x faster builds)
Measured incremental compile-time benchmarks and architectural lessons from splitting a production 543k-line Rust/Axum/PostgreSQL SaaS monolith into a 30-crate Cargo workspace.
-
Payments that survive retries: idempotency keys, guarded transitions and an outbox in Rust
How a commerce backend avoids double charges and lost orders when requests, webhooks and workers are all allowed to retry.
-
Three services, one Rust binary: a phased live migration
Why I merged three separately deployed services into a single Rust API and worker, how each cutover was gated, and the two mistakes that taught me the most.