
Template Builderflagship
template-builder turns a firm's precedent contracts into a deterministic document generator a lawyer can actually sign off on. Feed it 20–30 agreed examples of a document type and an LLM decompiles them into a clause graph — variants, conditions, defined terms, semantic dependencies — but everything downstream of that boundary is pure code: rendering, validation sweeps, content-hash approval and constrained edits are deterministic, so "approved" means exactly what was reviewed. A matters layer runs live negotiations: counterparty redlines are diffed clause-by-clause against the known render, routed through an escalation inbox, and every human decision is journaled with its rationale. Those journals distil into a citation-checked playbook, and an autonomy gate lets the assistant act alone only on clauses where it has demonstrably reproduced the lawyers' past decisions — automation earned per clause, never switched on. Python 3.14, Pydantic, FastAPI, a single-file web UI, and 268 offline tests.

