Benchmark accuracy (real L3)
Workflow failures
L2 mean latency
Real topics benchmarked
Multi-agent AI systems fail at alarming rates — not because the models are bad, but because there's no infrastructure for coordination.
Lattice provides the coordination primitives that make multi-agent systems reliable. Structural solutions for structural problems.
Typed envelopes that travel between every agent handoff — carrying inputs, decisions, outputs, constraints, and assumptions. Full lineage for every action.
Tiered validation: L1 (structural), L2 (semantic similarity), L3 (LLM-as-judge). Catches failures before they cascade downstream.
Compose sequential agent handoffs with built-in coordination. Abort, retry, or degrade on failure — your choice.
Automatic PII scrubbing before logging. API keys, tokens, emails, phone numbers — cleaned while preserving audit structure.
Typed coordination events for every contract emission, validation, and circuit state change. Hook into your monitoring stack.
Wrap any agent function — sync or async — to get State Contracts and validation for free. No framework changes needed.
Three lines to wrap an agent. Full coordination from there.
import { pipeline, HandoffFailure } from '@heybeaux/lattice-core'; const p = pipeline() .agent('researcher', researchFn, { breaker: { tier: 'L1+L3' } }) .agent('writer', writeFn, { breaker: { tier: 'L1' } }) .agent('editor', editFn, { breaker: { tier: 'L1' } }) .onReject('retry', { maxRetries: 2 }) .build(); try { const result = await p.execute({ query: 'AI coordination' }); console.log(result.output); // final editor output console.log(result.contracts); // State Contracts from each agent console.log(result.hadRejected); // any rejections? } catch (err) { if (err instanceof HandoffFailure) { console.error(err.validation.reason); // why it failed console.error(err.contract); // full audit trail } }
16 fault scenarios across a 4-agent research pipeline. No API keys needed.
Three packages, one ecosystem. Start with core, add providers and adapters as needed.
Install Lattice, wrap your agents, and see failures before they cascade.