AI engineer building production agentic systems in high-stakes financial domains. In crypto and decentralized systems since 2020; since 2025 in Mexican fiscal compliance, where a wrong output is a legal filing with the tax authority. Shipped solo: a production MCP server (46 tools), a three-tier Claude orchestration layer with cost-aware model routing, and a full AI-native compliance platform (in private beta) with chat interface, STT input, CI-gated evals, end-to-end observability, multi-tenant security, human-in-the-loop approval on irreversible operations, and 8,900+ tests across two repos.
Previously led development at RetailDAO, where I ran smart-contract audits and executed the on-chain governance action that permanently capped the token supply, removing inflation and honeypot risk for holders. Python and TypeScript/Node. Async collaboration with North American teams; English-first documentation.
- Production MCP server (46 tools). Designed, built and operate a Model Context Protocol server (TypeScript/Node, Railway) covering the full CFDI 4.0 lifecycle: invoicing, payroll, carta porte, payment complements, live SAT catalog injection, EFOS blacklist sync, PAC stamping, multi-tenant credential handling. Migrated to MCP SDK v2 and the stateless 2026-07-28 protocol within a week of its release, keeping 2025-era clients working from the same endpoint. MCPTypeScriptRailway
- Three-tier agentic orchestration on Claude. Haiku 4.5 router with a deterministic regex tie-break across 10 fiscal domains, 10 domain agents using native tool use with agentic loops and self-correction, server-synced tool allowlists, and cost-aware executioner routing (Sonnet 4.6 standard, Sonnet 5 advanced, Opus 4.8 escalation). Claude APITool UseMulti-Agent
- Reliability under irreversible operations. Human-in-the-loop confirmation gate before any tax-authority stamping; exactly-once PAC stamping via in-process single-flight plus an atomic PostgreSQL claim; fail-open vs fail-closed policy per subsystem; DB-persisted circuit breakers on stamping (PAC) providers. HITLIdempotencyCircuit Breakers
- Multi-tenant security. PostgreSQL row-level security, short-lived HMAC-signed assertions binding each org to the tool it calls, encrypted per-tenant signing certificates, TOTP MFA, Redis-backed rate limiting, timing-safe key checks and a structured auth audit trail. RLSHMACMFA
- Retrieval and context injection. Domain-scoped retrieval over 95 MCP resources (SAT catalogs, templates, regulatory docs, versioned domain skills, blacklists) with live per-domain context injection. Accent-insensitive fuzzy search across 52k+ catalog entries. Designed the hybrid upgrade (trigram + embeddings, RRF) so retrieval only proposes candidates and exact validation alone commits a code, with exact kNN over ANN to keep results reproducible. MCP ResourcesRetrieval
- Evals & observability. Routing eval harness (golden set, 4 scorers) gating CI offline on every PR and live on main; Langfuse tracing with per-session cost attribution, Sentry for errors. 8,900+ tests across two repos from unit and contract through VCR replay, integration, smoke and Playwright E2E; the MCP server holds 97% line / 90% branch coverage, enforced in CI. EvalsLangfuseVitest
- Production ownership. 28 architecture decision records and 8 written postmortems (cross-tenant credential fallback, a bypassable rate limiter, untraced PAC routes), each tracing root cause and blast radius to a fix and a generalizable lesson.
- Full-stack. Next.js 16 / React 19 streaming frontend, Node backend, PostgreSQL/Redis data layer, Zod 4 validation at every boundary with compiled hot-path schemas (3-7x validation throughput), GitHub Actions CI. Next.jsReact 19Zod
-
Applied mathematics in production. Directed supplier-network risk
graph with BFS propagation and DFS cycle detection for tax-fraud carousel patterns;
derived and published the decay bound, released as the open-source
efos-risk-graphnpm package (v0.3.0). The network is built from each org's own invoices and shown as an interactive graph with what-if exclusion. Graph Algorithmsnpm - Customer-facing delivery. Ran discovery sessions with Mexican accounting firms and translated ambiguous fiscal and regulatory requirements into working agent workflows.
- AI-assisted engineering. Built the platform solo directing Claude Code, Gemini CLI, OpenCode and other harnesses daily, reviewing all generated code for logic, security and performance defects as the last line of defense before production.