05 · Drafting and citations
Draft from the record. Prove it before it leaves.
Long-form drafting builds a motion section by section from the evidence the matter holds, then one clearance composer decides whether these exact bytes may be signed, filed, shared or sent.
The send decision stays with the lawyer.
The question in the room
“What stops a fabricated case reaching a court under my signature?”
How it works
The mechanism, not the promise.
One composer, thirty-four chokepoints
Signing, client sharing, minting a PDF, e-filing, exporting, approving and sending email each run a fixed sequence that is a superset of what that path ran before the composer existed. Chokepoints are appended and never renumbered, so a number is an identifier rather than a position.
Three verdicts, and a fourth thing worth saying
A citation is verified, unverified, or not checked. A separate marker says the lookup could not run at all, so the screen reads could not verify and re-check rather than not found, and it re-verifies by itself when the source returns.
A send gate that throws
ShippedAn unresolved citation raises rather than returns, so a caller cannot forget to check the result.
backend/src/lib/research/citationVerifier.ts
A statute gate that fails closed
ShippedA statute is grounded in this matter's own authorities, or checked against a closed list of authoritative hosts, or it is unverified.
backend/src/lib/research/citationShapes.ts
Quote fidelity against the source text
ShippedA quotation is checked against what the source actually says, not against the fact that the source exists.
backend/src/lib/research/quoteFidelity.ts
A treatment scan whose strongest verdict is no negative signals found
ShippedWithout licensed citator data that is the honest ceiling, and every note says so.
backend/src/lib/research/goodLaw.ts
A long-form engine that names what it left out
ShippedA motion is planned, budgeted per section, expanded in parallel and stitched. A planned section missing from the finished document is reported as a degradation rather than quietly dropped.
backend/src/lib/documents/longform.ts
A certificate that refuses
ShippedThe Certificate of AI Use is rendered from the audit trail and will not certify what the record contradicts. Refusing is the feature.
backend/src/lib/documents/aiUseCertificate.ts
A word-count certificate computed from the body
ShippedOver the limit it states that the document does not comply, rather than certifying that it does.
backend/src/lib/documents/wordCountCertificate.ts
A pre-file check against the judge's standing orders
ShippedFormatting and filing rules for the actual forum, before the filing goes out.
backend/src/lib/documents/preFileCheck.ts
Refusals
What it will not do, and why.
- Let a brief leave with ten pages nobody looked at.
- If one extraction window fails while others succeed, the citation count is non-zero and nothing looks wrong. That case blocks by name, because otherwise a filing could reach a court carrying a record asserting those pages were checked.
- Let a model corroborate its own citation.
- Only authority text may ground a statute cite. Research notes were excluded after an audit found the verification was circular, and a rule number appearing in a client PDF is not the rule.
- Cache a not-found.
- Only positive statute results are cached. A transient search failure must never brand a real statute fabricated.
- Honour an override it could not record.
- The override writes an append-only audit row before the send proceeds, and a failed audit write aborts the override. A lost trail is how a filing once went out with nothing durable behind it.
- Offer an override at all for three of the checks.
- Tracked changes, client visibility and reviewer sign-off have no override parameter anywhere in the codebase. Their block carries a path to fix it instead, so a refusal never dead-ends.
- Invent a page number for the table of authorities.
- With no page substrate it gives deterministic order of first appearance and labels it as such, which is a true fact about the assembled text.
One record
Nothing here stands on its own.
What feeds it
- The matter brain
- Discovery and the evidence ledger
- Researched authorities
What it feeds
- The filing
- The audit trail
- The exported manifest
Limits
What this does not establish.
- Citation checking in chat is advisory. The hard block is at the send gate, because chat is not a filing.
- Pagination from extracted text approximates the court-filed document and is surfaced as advisory.
Check the work before you believe it.
Run a sample manifest in your own browser, or read where publication refuses for want of evidence.