A legal agent and its review grid
How a legal technology company made an AI agent that lawyers trust, through a few composable primitives, a citation on every claim and evaluations built without reading customer data, and how to rebuild its review grid from open source as a compliance agent.
The basic mental model is a spreadsheet of questions and documents. It makes a large review task approachable by dividing it into cells that can be checked independently. Evidence still matters at the cell level: one fluent answer does not establish that every document was reviewed correctly.
Drop ten thousand files into a legal technology company's agent and say "do due diligence". According to its public accounts, the agent does not answer from a pile of text. It builds a review grid, with a row for every document and a column for every question. It runs the grid, waits for the results, reads them, flags the red flags (an outsized pay package and other red flags) and drafts the memo to the client.
The usual explanation for an agent like this is a better model. We think the evidence points elsewhere. Our claim is that the trust came from a small set of primitives, a citation on every claim and an evaluation system built so that nobody has to read customer data, and that the model is the part most easily swapped. The company reported that citation accuracy rose from about 70% to 99% with one model release. That is a large jump, but it matters only because every claim already pointed to a place in a source document, so the improvement could be measured, sampled and checked by a reviewer who has no reason to trust the machine.
The second half of the page tests the claim by building the part that the industry copied. Review grids are now common, and the interesting question is what makes one safe to rely on. We rebuild a grid from open-source parts, show where each reported mechanism has to appear for it to work, and then point the same pattern at compliance work.
Two cautions. This is a case study, not a product review: we describe a system as publicly reported, then analyse it, and we label which is which. And the word "agent" is used only where a model decides the next action. The grid itself is a deterministic fan-out. What makes the product an agent is that a model chooses to create and run one.
Lessons in brief
- A few primitives beat many features. Projects, an agent, a review grid, lists, intake and a portal compose into every product the company sells.
- Search, analysis and drafting are the core tools. The company ranks them, "probably" in that order. Drafting is itself a retrieval problem, so retrieval quality sets the ceiling.
- Route models like a portfolio. Quality, cost, latency, governance and region each pick a different model for a different job.
- A citation on every claim is the trust primitive. It turns an impossible review into a sampling audit.
- Evals do not need traces. Snapshotted worlds and many repeated runs measure change without anyone reading customer data.
- Governance is architecture. The approved cloud, the vendors inside it and the split between configuring and coding decide what can be sold.
About this case
What a case study is here. A real system, taken apart, then rebuilt from open-source parts to see what holds. The first half explains how it works. The second half is a build.
Anonymised. Names, numbers and identifying vendors are removed, and some scale figures are generalised. The company, its product and its people appear by role only. Open-source tools, standards and public APIs keep their names.
Sources. Public interviews and an engineering write-up. The links are withheld to keep the case anonymous. The interview was read in full through a summarising tool, and the engineering write-up likewise; the video was not watched. Every company claim was checked against them, and the ones that were overstated are corrected in the text.
Half one
How it works
Part I — The system at a glance
The product is best understood as a chat assistant for lawyers with a sidebar of purpose-built tools. The agent drafts and edits documents in the word processor, organises files, runs analysis and does legal research. Lawyers spend their days in the word processor and the email client, so the company ships add-ins for both and meets them where they already work. As reported, the product crossed from assistant to agent when the model gained agency over its own tools. It no longer waits to be told to build a grid; it decides to, runs it and reads what came back.
The figure shows the whole system in one frame, and the dashed boundary is the important line. Everything that touches client documents sits inside the cloud that the company's customers had already approved, and the model providers it calls are reached from there. That boundary is a commercial decision as much as a technical one, and Part II returns to it as a mechanism of its own.
A few primitives, many products
The company says it deliberately built only a few things, and composes products from them. The set is small enough to list.
Projects hold the files for a matter or an engagement, and everything else reads from them. The agent is the reasoning loop over a project, with tools for search, analysis, drafting and editing, and it can be started by a person, a trigger or another agent. The review grid is bulk fan-out review: rows are documents, columns are questions, and the agent can create, run and read grids as a step in a larger job. Lists are a flexible store in the manner of a database page, with triggers and automations. Intake is a bot in the team chat that turns a request into a ticket on a list, and the result is posted back to the chat. The portal is the shared workspace where a lawyer, a client and the agent meet.
Our reading is that the grid is the primitive that carries the weight, because it is the one place where the agent's work becomes a durable, inspectable object. A chat answer vanishes into a transcript. A grid is a table that can be diffed, commented on, sampled and rerun. When the agent hands work to a person, it hands over a grid.
Lists that start agents, agents that fill lists
Two mechanisms make a small set scale, and both are reported rather than inferred. The first is end-user programmability. Lists carry triggers, so a change to a list can start an agent run, and an agent run can create or fill a list. In the CTO's words, agents can create lists and lists can create agents. That loop is the coordination layer: work moves between people and agents through the same objects, in the way that coding agents are directed through an issue tracker.
The second is no-code configuration by domain experts. The company employs a pool of legal engineers, former lawyers from large firms who often also have computer-science training. They assemble new products on the primitives without writing code: a different set of columns gives due diligence, another gives contract triage, and a third extracts facts from litigation documents. The company's forward-deployed engineers come second and write production code only where a primitive falls short, such as an integration with a firm's document-management system. As reported, they never need to see the client's data to do it.
The leverage here is organisational, not clever. Because a new product is mostly a configuration of existing primitives, the people closest to the legal work can ship it, and engineering effort goes into making the primitives better rather than into one-off features. The risk is the same fact seen from the other side: every product inherits every defect of the primitives, so a weak citation or a leaky grid is multiplied across the whole catalogue.
Two bets nobody asked for
The company reported that both of its defining product bets were made without customer demand. No customer asked for an assistant that acts without being asked, and none asked for collaboration inside the product to replace email threads of numbered word-processor attachments. The company built both because it believed that was where the industry was heading.
We would draw two cautions from this. First, the claim comes from the company, and unprompted demand is hard to verify from outside. Second, the lesson is narrower than "ignore customers". An agent that acts on its own is only safe to ship if its work can be checked without rereading everything it read, which is why the bet on autonomy and the bet on citations belong together. Part II takes the second of those apart.
Part II — Six mechanisms
The system in Part I rests on six mechanisms. Each section below follows the same order: the claim, a figure, what the company reported, and our assessment of how far that report carries. Reported practices are attributed to the company's public interviews and an engineering write-up; where a figure is our own illustration rather than the company's, it says so.
M1. Search, analysis and drafting
Our claim is that a legal agent is only as good as its retrieval, and that retrieval over legal text is best done by matching tokens, not by squeezing a chunk into one vector. The first half is reported by the company. The second half is our analysis, and the company said in terms that it does not do it.
As reported, the company's chief technology officer named three tools as the core of the agent: search, analysis and drafting, "probably" in that order. The hedge matters. A common summary of the interview turns this into a flat statement that search is the single most important tool, and the interview does not quite say so. What it does support is that everything else the agent does, from answering a question to filling a grid cell, starts by pulling the right passages into view, and that a failure there cannot be repaired downstream.
The figure contrasts two ways of scoring a chunk against a question. A pooled embedding compresses the chunk into one vector and compares it with one vector for the query. Late interaction keeps one vector per token. Each query token finds its best-matching token in the chunk, and the scores are combined. The difference is invisible on prose that is mostly meaning and obvious on text that is mostly reference.
Legal text is mostly reference. A question about "§ 4.2(b)" and the "Indemnified Party" depends on a section number and a defined term, and those are exactly the items a pooled vector blurs: the number is one token among several hundred, and its contribution to the average is small. A token-level match can pin the section number to its counterpart in the chunk and the defined term to its own, so a chunk that merely discusses indemnity in general terms scores lower than the one that contains the clause. Cross-references ("subject to clause 14.3") and capitalised definitions behave the same way. We would expect the benefit to be largest on short, exact lookups and smallest on open questions of the "what is the overall risk" kind, where pooled meaning is the right unit anyway.
What was reported about the company's own practice is narrower than the argument above. A colleague who cared about search pushed the company's vector-database vendor to add multi-vector support. But when the interviewer asked whether the company uses late interaction, the answer was that it does not do that. The advice not to use default embeddings came from the interviewer; the chief technology officer agreed, and added that embeddings must be multilingual, since customers work in many languages. Nothing in the record says the company customises its embeddings in any particular way.
That leaves our argument as a hypothesis, not a finding. The mechanism is plausible and well understood in the retrieval literature, and the vendor's willingness to build the feature suggests a customer thought it worth having. It has not been shown, in anything we found, to be what makes the company's agent good. A builder should treat token-level matching as a candidate to test on their own golden questions, not as a proven ingredient.
Search first, because every later step inherits its errors; that part is reported and sensible. Token-level matching suits legal text for the reasons above, but it is our analysis, and the company says it does not use it.
M2. Drafting is retrieval
Our claim is that drafting is a search problem with a writing step on the end, and that the real design decision is not how to write but how much of a document to read at once. The company reports the first half; the second is a dial that it says it has turned several times.
As reported, lawyers rarely draft from a blank page. They look for precedent: how did we handle this clause in a similar deal, for a similar company, in the same industry? Then they decide which parts to take from which document. The chief technology officer described drafting as essentially also a search problem. An agent that skips the search and writes from the model's general knowledge produces text that reads well and is anchored to nothing the firm has actually agreed before. That is the failure the framing is meant to prevent, and it explains why the company puts retrieval effort ahead of drafting effort.
The second reported point concerns how the search is run. The company described delegating retrieval to sub-agents, each given a piece of the question, with the results gathered by a parent. In the interview this is said to have been hard earlier and to work well now for fan-out queries. The direction is what matters. Our interpretation, not the company's, is that fan-out retrieval became reliable because models improved at following narrow instructions and returning clean results, and the same mechanism sits underneath the review grid in Part IV.
The figure shows the choice that follows. At one end, map-reduce: split the document, send each piece to a cheap parallel worker, and merge the answers. At the other, whole-document context: let one model call see every page. Each end has a characteristic loss. Splitting loses nuance across chunk boundaries, the case where two pages are jointly decisive while each alone looks irrelevant. Reading everything at once loses on latency and cost, and, on very long contracts, on how reliably the model attends to the middle.
Care is needed over who said what here. The report we started from presents a shift from map-reduce to large context as the company's story. In the transcript, the company said only that it has changed its approach several times; the line about moving toward large context cannot be firmly assigned to its chief technology officer, and may have been the interviewer's. The detail about million-token documents and chunk boundaries is likewise unverified as a statement of the company's. What is firmly reported is the pattern of repeated change: the scaffolding that edits and drafts inside the word-processor add-in has been rewritten more than once as models changed.
Our reading is that this is the sensible response, not a lapse. The right position on the dial depends on context length, price, latency and model skill, and all four move with each release. A system that hard-wires one position will be wrong within months. A system that treats the position as configuration, and has evals to say which setting is better today, can move without drama.
Drafting begins with finding precedent, so retrieval quality caps draft quality. The dial between map-reduce and long context has no permanent setting; the lesson from the company is to expect to re-tune it, not to pick a side.
M3. Model arbitrage
Our claim is that once most work is done well enough by several models, the decision shifts from "which model is best" to "which model is best for this task, here, at this price", and that decision is a routing problem the customer should not have to see. The company reports behaviour that fits this reading.
As reported, the company aims to keep every customer on the frontier of quality, cost, latency, governance and regional availability. The last two are not technical criteria. A model may be excellent and still unusable for a customer whose contract confines data to one region, or whose security team has approved only certain providers. Routing therefore has to treat "allowed" as a filter applied before "best" is considered.
The left panel shows the idea: each task sits at a point of quality against cost, and the route chosen is a point on the frontier, not the top-left corner nobody can afford. The right panel shows why the choice cannot be made once. After a model release, some cells of a grid of practice area against task improve, some regress and some do not move. The company reported keeping such a heat map and noted that new models improve some cells and worsen others more often than one would expect. The positions and cells in our figure are illustrative; they show the shape of the idea and are not measured results.
Three further points were reported. First, the company resisted a model picker for a long time and then added one, with a handful of options. The stated philosophy is that a lawyer should not have to know which model suits which contract, and that routing between tools stays internal; several tools run on a different model from the main agent. The picker was a concession to users, not the design. Second, the chief technology officer said that roughly sixty per cent of legal work is already handled well by current models, so for that portion the live questions are cost and latency. The cost-and-latency framing comes from a secondary summary and not from the transcript, so we give it less weight than the sixty per cent itself. Third, the company post-trains open-weight models, but narrowly, for bounded high-volume tasks where it can gain on quality, cost and latency together. Legal research, which is a fan-out retrieval problem, was the example. It does not attempt a frontier model, saying that it would not win that contest against the large labs.
Our assessment of that last choice is that it is the disciplined one. Post-training pays when the task is narrow, the volume is high and a measurable gap exists; it does not pay as a general strategy, because the frontier moves faster than a small team can train. The routing layer is what makes the narrow model usable: without a way to send only research queries to it, it would have no safe home.
Routing is the product of three things: a set of allowed models, a measured view of quality by task, and a rule that keeps governance ahead of price. The company's heat map is its version of the second; a builder needs an equivalent before routing is more than a guess.
M4. Citations down to the box
A legal agent is only as useful as the speed at which a lawyer can stop trusting it less. Our claim is that the company's real trust primitive is not accuracy but checkability: every statement the system makes must resolve, through layers, to a place on a page, so that verification becomes a sampling problem rather than a reading problem.
As reported in public interviews, the invariant is simple to state: whatever the agent says must always be citable somewhere. What makes it work is that the citation is layered. An agent's statement in a memo can cite a cell in a review grid; the cell cites a page of the source document; the page citation resolves to a bounding box, so that clicking it highlights the exact region of the PDF the information came from. A reviewer can descend the chain as far as their suspicion requires and stop. Each layer is an object with its own identity, not a footnote in prose, which is why the chain can be validated by a machine as well as by a person.
The second claim concerns how the company found out where the problem lay. Citation success was reported at about 70%, a rate no law firm would accept, and the company's own account is that the fix was not engineering: the next model release took it to about 99%. The useful detail is what the company knew in the meantime. By its account, its evaluations were good enough to show that the harness was not at fault, so it did not spend months patching around a weakness that a model release would remove. That is an under-appreciated function of an evaluation suite. It tells you not only that something is broken but which layer owns the breakage, and therefore whether to build or to wait.
The third claim is about people. Lawyers do not read every citation. As the CTO described it, they check selectively, much as an engineer reviews a colleague's code or a partner reviews a junior's work: with an eye trained on red flags, and more attention where the stakes or the doubt are higher. "Risk-based sampling" is our paraphrase of that practice, not the company's phrase. The design consequence is the one that matters. If the profession will sample, the product's job is to make sampling cheap (one click from claim to box) and trustworthy (a citation that fails to resolve is flagged, never silently shown).
There are limits. A bounding box proves where a passage is, not that the model read it correctly; a quote can be located and still be misconstrued. Sampling also fails quietly when the failures cluster in a place the reviewer does not look. Both are reasons to keep the verification layer separate from the model that wrote the claim, which we return to in the rebuild.
Layered, machine-checkable citations are what turn a probabilistic writer into something a regulated profession can adopt, because they change the review task from reading to sampling. Treat the 70% to 99% movement as a lesson about evaluations rather than about the model: the firm that can tell a harness fault from a model fault avoids months of wasted work. Confidence: high on the design, medium on the figures, which are as reported.
M5. Evals without traces
Most teams improve an agent by reading what it did. The company cannot. Almost everything its users upload is confidential, and much of it belongs to the firm's own clients, so, as reported, the company cannot read customers' traces. Our claim is that this constraint, far from crippling its evaluation, forced a more disciplined practice than trace reading usually produces: invented worlds, named failure modes, and checks that report a label instead of a document.
As reported, the team behind this is small, a handful of engineers and lawyers. Their main instrument is the synthetic world, a reinforcement-learning-style environment that recreates a kind of work. The example given is a 10,000-file data room for due diligence, with a defined good output: a report that catches the right red flags, is concise, and contains nothing strange. Results are collected in a heat map of practice area against task. New models routinely improve some cells and regress others, more often than one would expect, so the map, not a single headline score, drives decisions. Around the evals team sits a pool of legal engineers, former lawyers from large firms, often with computer-science training, who act as an on-demand source of judgement.
In production the company still needs a signal. It classifies failures into some ten to twenty known modes, and runs cheap model-based checks behind feature flags to compare an old rollout with a new one: did it improve, or decline catastrophically?
The engineering write-up of the infrastructure shows the scale. A single experiment reaches thousands of isolated runs, each a case, a harness variant and a repeated trial. Every run executes in a sandbox that runs the real product stack from a snapshotted world, so each run starts from identical documents, database contents and permissions. A regular build rebuilds only what changed and pre-warms the sandboxes. An internal benchmark of realistic, long-horizon legal tasks compares models on quality, cost and latency and informs model selection and harness design. And agents hill-climb the harness itself, given a metric, tools and a budget; one pass cut agent cost substantially through better compaction and tool search.
Two cautions. The write-up does not say whether the cost saving applies in production or only in evaluation. And a heat map is only as honest as the worlds behind it; a synthetic data room can be easy in ways a real one is not.
For any product whose data you may not read, treat the evaluation environment as a product with its own team, not as a test fixture. The portable pieces are cheap: a named failure taxonomy, snapshotted worlds so runs are comparable, and label-only checks behind flags. The expensive piece is the legal-engineer pool, which is people, not software. Confidence: high.
M6. Governance as architecture
Security reviews usually arrive after the design. The company's account reverses the order: governance decisions came first and shaped the infrastructure, the vendor list and even the staffing model. Our claim is that a regulated buyer's approvals are a constraint you design to, and the cheapest way to meet them is to make the perimeter small enough that there is little left to approve.
The first decision was the cloud. As reported, everything runs on one cloud, not for technical reasons but because law firms had already security-reviewed it through products they used daily.
The second is vendor minimalism. The CTO said the company avoided a voice-AI vendor for data-processing-agreement reasons, not quality ones. In our analysis, every extra processor lengthens the agreement and every customer's review. Its transcription vendors were not confirmed. This is the same logic as the cloud decision applied to software: the right tool outside the agreement often loses to a slightly worse tool inside it. Domain vocabulary still defeats speech recognition: a court title was repeatedly mistranscribed. A keyword-biased second pass is our inference for the fix, not something the company described.
The third is people. Forward-deployed engineers, who build a firm's integrations, do not touch client data; even when onboarded with a firm laptop, the answer on data access stays no. The organisation splits accordingly. Legal engineers, former lawyers, configure the product as a power user would, without code, and are the first line. Forward-deployed engineers write production code only where primitives fall short, such as integrations with customer systems, and feed what they learn back into the product. Neither role needs to read client data to do the job, which is the point of the diagram above.
Last is APIs. The company began building them about six months before the interview. The open question the CTO said the company was toying with is whether the agent can itself be the API: trigger an agent instead of calling an endpoint. The trade-offs mused about were cost, latency and an agent occasionally doing something off-script. The "two in a hundred" was a hypothetical illustration, not a measured rate, and should not be quoted as one.
The transferable rule is to count processors, not features. Each vendor, role and data path you add is a line in someone's security review, so choose the smaller perimeter and let the product fit it. Keeping configuration (no code, no data access needed) apart from integration (code, still no data) is a cheap structural way to honour that. The agent-as-API idea is unproven; ship human review states before any automation that customers can trigger. Confidence: medium, since these practices are as reported and not independently observed.
Part III — What it adds up to
The company's practices fall on a spectrum. Some are products of its position: distribution inside the tools lawyers already use, a customer base that had already approved one cloud, and a pool of lawyers-turned-engineers. Others are habits any team building an agent for regulated work can adopt tomorrow. The figure sorts eight of them. Solid markers are practices reported in public sources; dashed markers are our judgement, and every position is ours.
The right-hand end is short and the practices on it are cheap. A citation on every claim, a ten-row pilot before any fan-out, and a small set of primitives cost design discipline, not headcount. The left-hand end is where the company's advantage lives, and it cannot be copied by reading about it.
Ten design principles
Our rewrite of what the case teaches, corrected against the sources. Where a principle is our judgement rather than the company's practice, it says so.
Five risks
Labs moving into the market. Model laboratories already ship legal-flavoured products. Our judgement is that depth, integrations and governance protect a specialist in large-firm work, while a compliance product, whose moat is its audit trail and golden sets, is more exposed.
Permanent harness churn. The company has reworked its map-reduce and long-context scaffolding more than once and treats that as normal. Budget for re-architecture every few model releases; evals are what make it survivable.
The zero-trace problem. It never goes away. Eval worlds are a product, not a fixture, and the company staffs a dedicated evals team that pairs engineers with lawyers. Plan for real headcount.
Licensing. These are risks in our rebuild choices, not in the company's stack. PyMuPDF is AGPL-3.0, and MinIO is AGPL and now archived. Fine internally, a question for counsel before a hosted product. The Apache, MIT and BSD-3 chain in Part VI avoids both.
Agent-as-API nondeterminism. The company's chief technology officer mused about exposing the agent itself as an API and imagined that, in two runs out of a hundred, it might do something unexpected. That was a hypothetical, not a measured rate, but the lesson holds: ship review states before automations.
The case transfers as a method, not as a product. What carries over is the sequence: make every claim checkable, gate every scale-up, and measure without reading client data. What does not carry over is the company's distribution. A team that copies the grid without the citations has copied the shape and left behind the reason lawyers use it.
Half two
Rebuild it
Part IV — The review grid
The review grid is the one component of the company's product worth copying exactly, and the reason is its shape rather than its model. Our claim is that a spreadsheet of documents by questions turns a review that cannot be checked into one that can be sampled, and that is why it beats a chat window over a pile of files.
The mechanics are simple. Rows are documents; columns are questions. Load a stack of employment contracts, ask "what is the termination period?" in one column and "is there an IP assignment clause?" in the next, and the grid fills in. As reported, runs can be very large, and the interface is built on an off-the-shelf data grid. Each cell carries a citation: click it and the source document opens at the passage the answer came from. A reviewer therefore audits a sample of cells rather than reading all of them.
The feature that matters most is the gate. As reported, a new run executes only the first ten rows. The author of the column reads those ten cells, fixes the prompt, and runs again, while a mistake is still cheap. Only when the pilot looks right does the grid fan out across every remaining row. This turns prompt engineering into a short, bounded loop with a human decision at its end, instead of a bill discovered after the fact. The figure shows the pilot band, the sign-off, and the queued rows that wait behind it.
Beyond what was reported, the design invites two further states, and we would build both: comments on a cell, row or column, and a visible reviewed or flagged mark on each cell. They are our additions, and they matter because they let two people share one grid without a side channel.
The grid also serves the agent. As reported, the agent can create a grid from dropped files, run it, and act on the results, for instance by drafting a memo that cites cells which cite pages. In that arrangement the grid is the memory between agent steps: a durable, inspectable table in place of a long scroll of tool output that the next step must re-read. Because a cell cites a page, a sentence in the memo can be traced through the cell to the page, one hop at a time.
Why does this beat "chat with 10,000 PDFs"? That comparison is ours, and it rests on four points.
- The shape matches the work. Extraction is the same question put to many documents. A grid expresses exactly that; a chat does not.
- The loop is cheap. The ten-row gate makes iteration on a question cost ten calls rather than ten thousand.
- The output can be diffed and discussed. A table can be exported, compared between runs and commented on. A chat answer cannot.
- Provenance is per cell. Review becomes risk-based sampling, which is how people already check junior work.
Build the grid before building any agent on top of it. The pilot gate, the cell-level citation and the append-only record are what make the agent's output checkable; the model behind them can change. Confidence: high on the form.
Part V — Reference architecture
A review grid is, structurally, a pipeline that ends in a table. Our reference design has four views: the components and how data flows between them, one cell in sequence, the data model, and the deployment. Every tool named here is an example of a choice, and Part VI discusses the alternatives.
Components
Data flows left to right and then down. Documents are parsed into pages, text, tables and layout coordinates, and stored with their metadata. Columns are not free-text strings; each is a versioned prompt paired with a schema, so a change to a question creates a new version and old answers keep pointing at the version that produced them. A pilot gate runs ten rows and waits for a person to approve. Approved columns then fan out to workers with bounded concurrency, one cell per task. Each worker retrieves passages, calls a model through a gateway that owns routing, retries and spend caps, and hands the answer to a verifier that checks that the quoted text is on the cited page. Only then is the cell appended to the store. The grid interface and the agent both read from that store, and nothing else.
Retrieval needs two modes. Per-chunk retrieval serves pinpoint extraction: find the passages nearest to the question and answer from them. A cross-chunk mode serves answers that span chunks, such as an obligation defined on one page and qualified on another. There the worker retrieves, reads, decides what is missing, and retrieves again, so the reasoning between steps carries the answer across a boundary. For per-chunk retrieval, a multi-vector index matters because section numbers and defined terms match better token by token than in one pooled embedding; Qdrant has supported this natively since v1.10, and BGE-M3 produces dense, sparse and multi-vector representations in one model.
One cell in sequence
Sequence
One cell, from question to review
Read the numbered messages from top to bottom.
Scroll horizontally to explore the full diagram.
The sequence has seven participants and one fork. The worker asks the retriever for the top passages and receives them with their page references. It sends the prompt and schema to the gateway, which calls the model and returns validated JSON. Validation is the worker's own step: with LiteLLM, the parsed field on the response is empty, so the worker validates the returned content against the Pydantic model itself. The worker then passes the quote to the verifier.
The fork is the point of the figure. If the quote is on the page, the verifier appends a verified cell and the cell appears for the reviewer. If it is not, the verifier appends the same cell with the failure code unsupported_citation, and the cell arrives flagged. Nothing is silently dropped and nothing is silently shown. The verifier tries exact text search on the page first and calls a judge model only when that is ambiguous, which keeps the common case free of extra model calls.
The data model
The central choice is that cells, reviews and the audit log are append-only. A re-run does not overwrite a cell; it adds one under a new run. A reviewer accepting or editing a cell adds a review row. This costs a little storage and buys three properties: any past state can be reconstructed, a reviewer's decision is never lost by a later run, and an auditor can be shown the history rather than told it.
The tables are few. documents and pages hold the sources, with a content hash so that a changed file is a new document. columns and column_versions hold the questions and their schemas. cells hold one answer per document, column version and run, with a status. runs record the model and the time of each execution. citations link a cell to a page with the quote and its box. reviews and comments hold human decisions and discussion. The audit_log has no foreign keys by design: it records who did what to which entity, and it must survive the deletion or restructuring of anything it describes.
Deployment
The deployment is a set of zones inside the buyer's own cloud account, which is the point: the company reportedly chose its cloud because its customers had already approved it, and the open-source equivalent inverts that lesson by letting the buyer approve nothing new. Ingress terminates TLS and sign-in. A private zone runs ingest and the fan-out. A private data zone holds the database, the object store (SeaweedFS in the figure) and the vector index. Keys live in a key store, and workers fetch short-lived scoped credentials rather than holding standing ones. The model gateway is the only route to model providers, and an egress allow-list enforced outside the application blocks everything else.
Evaluation runs in separate sandboxes. As reported, the company runs its evaluations in sandboxes that run the real product stack, and starts each run from a snapshot of a known world: documents, database state and permissions. In our assessment, the snapshot discipline matters more than the sandbox technology. A self-hosted team can use gVisor or Kata Containers under Kubernetes and get the same property, provided every run begins from identical state and ends with a reset. Without that, a regression and a changed fixture look the same.
Part VI — The open-source stack
Our claim is that every layer of the grid can be built from open-source parts today, and that the choices that matter are made at four seams: how text keeps its coordinates, how retrieval matches tokens, which licences you accept, and how much orchestration you let into the middle. The company's own stack is proprietary in places, and the interviews do not describe it layer by layer. What follows is our analysis of a rebuild, checked against each project's repository and package index on 7 November 2026.
The map reads from top to bottom as the path a document takes. Orange marks a licence that needs a decision before you ship; a struck name is a project that is no longer maintained.
Parsing, retrieval and embeddings
Parse once, keep the coordinates. Docling (MIT) turns PDF, Word and image files into structured text with reading order, table structure and layout boxes. Its Granite-Docling model (Apache-2.0, 258 million parameters) is the fallback for hard scans. The reason to choose a parser with coordinates is Part II's citation chain: a cell that quotes a passage can be pinned to a box on a page only if the box was recorded when the text was extracted. For the later check, pypdfium2 searches a page for the quoted string and returns character ranges and per-line rectangles. PyMuPDF does the same job faster to write, but it is AGPL, and we return to that below.
Retrieval is where the effort belongs. Qdrant has stored multi-vector points, scored by MaxSim, since v1.10.0 in July 2024, and the same release added multi-stage queries that re-score a first-pass shortlist. Vespa offers a native ColBERT embedder as the alternative. This is the machinery for the token-level matching argued in Part II. BGE-M3 (MIT) is the matching embedder: one model produces dense, sparse and multi-vector outputs, handles more than 100 languages and accepts 8,192 tokens, which suits multilingual contracts. The stand-alone ColBERT repository, by contrast, has not been pushed since October 2025 and is research code; use BGE-M3's multi-vector output or ColPali for scanned pages, not the old reference implementation. As in Part II, the company says it does not use late interaction, so treat this as a hypothesis to test on your own golden questions, not as its recipe.
Gateway, orchestration and the grid itself
LiteLLM is the routing primitive. One OpenAI-style call, per-column model choice, fallbacks and spend tracking: it is the cheapest way to make Part II's model arbitrage a column setting. Two cautions. Everything outside its enterprise/ directory is MIT, but that directory sits under a separate commercial licence and is for production use only under an agreement; keep your build clear of it. And structured output is validated by you: the parsed field on the response is empty, so read the content and validate it with your own Pydantic model, as Part VII does.
The grid component. AG Grid Community (MIT) gives virtualised rows and an infinite row model, which is enough for a flat document-by-question grid. Row grouping and the server-side row model are Enterprise features and need a paid licence in production. TanStack Table (MIT) is headless, now on its ninth major version, and leaves layout to you. Choose AG Grid if you want the behaviour now and will stay inside the free feature set; choose TanStack if you intend to own every pixel. OpenContracts (MIT, small community) is the closest single open-source project to a document review grid, with annotations, extraction and a citation graph, and is worth reading before you write a line.
Storage, evaluation and scale
Storage. PostgreSQL holds documents, versioned columns, cells and the append-only audit log. For files, plan on SeaweedFS (Apache-2.0, S3-compatible), not MinIO: the MinIO repository was archived in April 2026 and its last release was in October 2025. Evaluation has three sensible tools, promptfoo (MIT, installed from npm), Inspect AI and DeepEval; the golden ten rows in Part VII use promptfoo. Scale and sandboxes: Kubernetes Jobs with gVisor or Kata Containers, or Firecracker micro-VMs, give an isolated kernel per evaluation run. Nomad is an alternative scheduler, but it has been under the Business Source Licence (BUSL-1.1) since version 1.7 and is not open source in the usual sense; internal use is fine, reselling it inside an orchestration product is not. Temporal (MIT) supplies durable workflows where retries must survive a crash.
A licensing decision, made early
Three licences need a person to decide before you embed them in something you sell. PyMuPDF is AGPL-3.0 with a commercial option; served over a network, it can pull your own code under the same terms. LiteLLM's enterprise/ directory and AG Grid Enterprise are commercial. Nomad is BUSL-1.1. None of this matters for an internal tool. It matters for a product whose buyers will read your software bill of materials. A chain of Apache, MIT and BSD-3 parts (Docling, pypdfium2, Qdrant, BGE-M3, LiteLLM core, AG Grid Community, SeaweedFS, promptfoo) avoids the question, at a small cost in convenience; check pypdfium2's bundled LGPL and MPL components before redistributing.
Orchestrating the fan-out
The grid is an embarrassingly parallel map, so the framework is the least interesting choice, and the source report's comparison needed correcting in places. The table reflects installed versions and current documentation.
| Framework | Fan-out fit | Durable state and retries | Human-in-the-loop | Choose when |
|---|---|---|---|---|
| LangGraph (MIT) | Strong: the Send API maps one node over many inputs, with subgraphs | Checkpointers persist state per step, including to Postgres, and runs resume | interrupt pauses a run for a person and resumes with a Command | The grid is one step in a longer matter workflow (intake, review, memo, approval) |
| pydantic-ai (MIT) | Good: a typed call per cell under plain asyncio | Durable-execution integrations for Temporal, DBOS and Prefect; the source said to build your own | Deferred tools raise an approval request that a person answers, which the source also missed | Every cell is a schema-validated call and you want the smallest harness |
| OpenAI Agents SDK (MIT, 0.x) | Fair: built for agents with handoffs, so a map is hand-written | Serialisable run state and sessions; tracing is strong, but no workflow engine | Tool calls can require approval before running; guardrails are validation, not review | A small multi-agent setup where tracing matters more than control |
| CrewAI (MIT) | Fair: role-based crews and flows; per-cell calls are not its natural unit | Flows hold state; retries are yours to arrange | A task can ask for human input; coarser than a per-cell gate | Prototyping a team of role-played agents quickly |
Our recommendation is to keep the grid boring: map each cell, verify it, persist it, with bounded concurrency and a checkpoint after each batch, and spend the effort you save on retrieval and evals. Part II's lesson from the company's own history applies: the harness gets rewritten with each model release, and only a strong eval set makes that rewrite safe.
Part VII — Recipes
The earlier parts argued that the review grid is the product. These three recipes build the parts of it that carry the argument: a runner that cannot fan out across every document before a person has looked at ten, a verifier that refuses a citation it cannot find on the page, and a gate that keeps the first ten rows honest after every change. Each is small on purpose. They are our reconstruction from open-source parts, not the company's code, and the model calls are generic: swap in whichever routes your own evaluation selects. Library calls were checked against the versions listed at the end.
A grid runner with the 10-row gate
- Define the cell as a Pydantic model. Keep field names plain (
answer,quote,page); avoid one calledschema, which shadows a Pydantic method and warns at class definition. If you must store a column definition, call itanswer_model. - Route each column to its own model through LiteLLM's
acompletion, passing the Pydantic class asresponse_format. LiteLLM does not parse for you:message.parsedisNone, so validatemessage.contentyourself and mark a cellinvalidrather than guessing. - Bound the fan-out with an
asyncio.Semaphore, run the first ten documents, print them, and continue only on a human yes.
import asyncio, json
import litellm
from pydantic import BaseModel, Field, ValidationError
class Cell(BaseModel):
answer: str
quote: str = Field(description="verbatim text from the page that supports the answer")
page: int
ROUTES = {"party": "openai/gpt-4.1-mini", "liability_cap": "anthropic/claude-sonnet-4-5"}
PROMPTS = {"party": "Who is the counterparty? Quote the clause.",
"liability_cap": "What is the liability cap? Quote the clause."}
async def run_cell(sem, doc_id, text, column, retries=1):
async with sem:
for attempt in range(retries + 1):
resp = await litellm.acompletion(
model=ROUTES[column],
messages=[{"role": "system", "content": PROMPTS[column]},
{"role": "user", "content": text}],
response_format=Cell,
temperature=0,
)
raw = resp.choices[0].message.content # message.parsed is None
try:
cell = Cell.model_validate_json(raw)
return {"doc": doc_id, "column": column, "status": "ok", **cell.model_dump()}
except ValidationError as e:
last = str(e)
return {"doc": doc_id, "column": column, "status": "invalid", "error": last}
async def run_grid(docs, columns, concurrency=8):
sem = asyncio.Semaphore(concurrency)
jobs = [run_cell(sem, d, t, c) for d, t in docs.items() for c in columns]
return await asyncio.gather(*jobs)
def signed_off(rows: list[dict]) -> bool:
for r in rows:
print(json.dumps(r, indent=2))
return input("Pilot accepted? [y/N] ").strip().lower() == "y"
async def main(docs, columns):
ids = list(docs)
pilot = {d: docs[d] for d in ids[:10]}
pilot_rows = await run_grid(pilot, columns)
if not signed_off(pilot_rows):
raise SystemExit("Pilot rejected: fix the column prompts, then rerun the pilot.")
rest = {d: docs[d] for d in ids[10:]}
return pilot_rows + await run_grid(rest, columns)The gate is the point. Ten rows cost almost nothing, a person reading them catches the wrong column prompt before it is multiplied by every document, and a rejected pilot raises before any further spend. Our assessment: put the sign-off in the code path, not in a runbook, because a runbook is the first thing skipped on a deadline.
A citation verifier
- Open the cited page and search it for the quoted text. In pypdfium2
searchreturns a searcher;get_next()gives the start index and character count of a match, orNone. - Call
count_rects(start, count)first, thenget_rect(i)for each line the match spans. Merge the rectangles into one box in PDF units, origin at the bottom left. - If the quote is not found, the status is
unsupported_citationand no judge is called. If it is found, a cheap judge call asks whether the quote supports the answer; only then is the statusok. - Append one JSON line per decision, with the prompt version, model, provider, verdict and time. Never rewrite the file.
import json, time
import pypdfium2 as pdfium
PROMPT_VERSION = "verify-v1"
JUDGE_MODEL, JUDGE_PROVIDER = "judge-small", "example-provider"
def locate(pdf_path: str, page_no: int, quote: str):
"""Return a (left, bottom, right, top) box in PDF points, or None."""
pdf = pdfium.PdfDocument(pdf_path)
page = tp = searcher = None
try:
page = pdf[page_no - 1]
tp = page.get_textpage()
searcher = tp.search(quote, match_case=False)
hit = searcher.get_next() # (start_index, char_count) or None
if hit is None:
return None
start, count = hit
n = tp.count_rects(start, count) # must come before get_rect
rects = [tp.get_rect(i) for i in range(n)] # one rect per visual line
return (min(r[0] for r in rects), min(r[1] for r in rects),
max(r[2] for r in rects), max(r[3] for r in rects))
finally:
for obj in (searcher, tp, page): # release before the document
if obj is not None:
obj.close()
pdf.close()
def judge(claim: str, quote: str) -> bool:
"""Cheap model call: does the quote support the claim? Stubbed here."""
return True
def append_audit(path: str, record: dict) -> None:
with open(path, "a", encoding="utf-8") as f: # append-only JSON lines
f.write(json.dumps(record, sort_keys=True) + "\n")
def verify(cell: dict, pdf_path: str, audit_path: str) -> dict:
box = locate(pdf_path, cell["page"], cell["quote"])
if box is None:
verdict = "unsupported_citation"
else:
verdict = "ok" if judge(cell["answer"], cell["quote"]) else "unsupported_citation"
append_audit(audit_path, {
"doc": cell["doc"], "column": cell["column"], "verdict": verdict, "box": box,
"prompt_version": PROMPT_VERSION, "model": JUDGE_MODEL,
"provider": JUDGE_PROVIDER, "at": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
})
return {**cell, "status": verdict, "box": box}Exact matching is deliberately strict: a model that paraphrases a quote fails here, which is the behaviour a reviewer wants. If your sources are scans, run text recognition first and search its output. The judge is a stub; its job in production is the second, softer question of whether a real quote means what the answer says.
The golden ten rows in CI
- Install nothing permanent: run
npx promptfoo@0.125.1 eval -c promptfooconfig.yamlin CI. The Python package of the same name on PyPI is not this tool. - Put the shared assertions under
defaultTest.assert. A top-levelassertkey is accepted bypromptfoo validateand then silently ignored, so every row passes; we saw this with version 0.125.1. - Keep the ten rows in a tests file with the question, the source text and the path to it. The Python assertion opens that source and fails any quote that does not appear in it.
description: Golden ten rows, review grid
prompts:
- file://prompts.txt
providers:
- id: openai:gpt-4.1-mini
config:
temperature: 0
response_format:
type: json_object
- anthropic:messages:claude-sonnet-4-5
tests: file://golden.yaml
defaultTest:
assert:
- type: is-json
- type: python
value: file://check_quote.py
- type: llm-rubric
value: The answer states the liability cap exactly as the quote states it, with no added terms.
provider: openai:gpt-4.1-mini# golden.yaml: ten rows in practice, one shown
- vars:
question: What is the liability cap?
contract_text: file://sources/msa_01.txt
source_file: sources/msa_01.txt
assert:
- type: javascript
value: "JSON.parse(output).answer.includes('fees')"# check_quote.py
import json, re
def norm(s): return re.sub(r"\s+", " ", s).strip().lower()
def get_assert(output, context):
cell = json.loads(output)
source = open(context["vars"]["source_file"], encoding="utf-8").read()
ok = bool(cell.get("quote")) and norm(cell["quote"]) in norm(source)
return {"pass": ok, "score": 1.0 if ok else 0.0,
"reason": "quote resolves in source" if ok else "quote not found in source"}Fail the build when any row fails, and also when the pass rate drops against the last merged run. Treat a prompt change, a model change and a parser change as the same event: each reruns the ten rows. Provider ids follow promptfoo's documented forms, openai:<model> and anthropic:messages:<model>; use whichever models your routing table names.
What we checked. Executed, without any model call: the runner with LiteLLM 1.108.2 and Pydantic 2.14.3 using mock_response (valid and invalid output both handled); the verifier on a one-line PDF with pypdfium2 5.15.0 (a found quote returned a box, a missing one returned unsupported_citation, the audit file gained two lines); and promptfoo 0.125.1, where validate config accepted the configuration above and an offline run with the echo provider passed the is-json and python assertions on a good row and failed them on a quote absent from the source. Not executed: the live provider calls, the llm-rubric grader and the javascript row assertion's output on a real model answer, since these need paid keys; their key names were validated by promptfoo validate only.
Part VIII — Make it a compliance agent
The review grid is a legal-technology idea, but its fit with corporate compliance is closer than its fit with most of the law. Compliance work is repetitive fan-out over documents: the same questions asked of many contracts, filings or policies, with a reviewer who must be able to show how each answer was reached. That is the shape of the grid. Our analysis is that a compliance buyer will also pay for the trust properties more readily than a law firm will, because an auditor, unlike a partner, will ask for them in writing.
Four grids can be built almost as they stand, and each differs only in what a row is and which columns it carries.
Vendor and data-processing agreements. Rows are vendor contracts. Under the GDPR, Article 28 governs the controller's relationship with a processor, and Article 32 concerns security of processing; the columns follow from them: standard contractual clauses present, breach-notification window, whether the sub-processor list is current, data-residency commitments, audit rights, retention limits and certification claims. This is the safest wedge for an EU-facing buyer, since the documents are long, similar and rarely read twice.
Obligations register. Rows are obligations extracted from contracts and regulations. The columns are source citation, deadline, owner, jurisdiction, evidence required and status. The grid here replaces a spreadsheet that someone updates by hand and no one trusts.
Regulatory-change triage. Rows are the nightly pulls from public sources, and all three can be read without a key. The Federal Register API returns JSON for documents matching a search. The eCFR offers a versioner and search service; its full-text endpoint answers HTTP 406 unless the client sends Accept-Encoding: gzip, which httpx and requests do by default. The EU Publications Office exposes a SPARQL endpoint and content negotiation by CELEX number (the separate EUR-Lex SOAP service needs free registration). The columns are a plain-language summary, whether our entities are affected, affected policies, required action and deadline. A list trigger starts a model-driven loop per new row, and the reviewed state closes it. That loop is where the word "agent" earns its place, because the model decides what to read and what to ask next; the nightly pull itself is plain automation.
Policy-to-control mapping. For SOX section 404 or ISO 27001, rows are controls and the columns are policy reference, owner, date last tested, evidence link and gaps. The grid shows at a glance which control has a policy but no evidence.
- Per-cell provenance. Record the prompt version, model, provider, document span and verifier verdict for every cell, in an append-only log. When an auditor asks how a conclusion was produced, the citation chain is the answer.
- Four-eyes review states. Reviewed and flagged states map onto controlled sign-off by a second person, and comments belong in the record, not in the interface.
- Residency and self-hosting. If a buyer cannot approve your cloud, be deployable in theirs. A permissively licensed, self-hostable stack removes a procurement objection before it is raised.
- A published failure-mode taxonomy. Ten to twenty named modes (
not_found,ambiguous_clause,parse_error,unsupported_citation) with per-run rates let you say that 98.2 per cent of cells passed verification, rather than that the system is very good. - Dogfooding. Run your own vendor portfolio through your own grid every quarter, and make your company its first customer.
The first four items are properties of the record, not of the model, which is why they are cheap to promise early and expensive to retrofit.
The build plan
The plan is ours, condensed from the source report's proposal, and not a reported practice of the company. Its five phases each end in a test that someone other than the builder can run.
The first phase, weeks one and two, picks one grid and one buyer, collects a golden set of ten anonymised public agreements and writes down what a good cell is. It exits when two practising compliance leads agree that definition. The second, weeks three to eight, builds the vertical slice of Parts V to VII with an audit log from the first day, and exits when the ten-row gate is live and a reviewer can audit ten rows by five columns in under ten minutes. The third, weeks nine to sixteen, scales to a thousand or more documents, runs the golden set in CI on every prompt or model change, adds four-eyes states and a self-host option, and exits at 99 per cent citation grounding on the golden set with a first paid pilot. The fourth, months five and six, adds lists with triggers, the team-chat intake bot, grids that agents can read and write, and the regulatory feeds above as triggers; it exits when a compliance team runs a weekly loop of intake, grid, review and memo without the builders in the middle. The fifth, from month seven, post-trains a small open-weight model for the cheapest, highest-volume columns, fine-tunes embeddings on accumulated golden data and packages column sets as products. It exits at a tenfold cost cut on budget columns and packs that sell with no engineering per deal.
Team and pricing (our recommendation). The company reportedly employs former lawyers from large firms, often with computer-science training, to configure its products. The compliance equivalent is a compliance engineer, an ex-auditor or ex-compliance officer who can prompt, configure and test; hire one or two before the fifth ordinary engineer. On price, charge per review or per grid run and not per seat-hour. In our view, routine review is moving towards fixed fees, and a per-hour price puts your revenue on the wrong side of your own efficiency.
Close
What to take from this case
The grid is the product
A spreadsheet of questions and documents turns out to be the right shape for trusting a machine.
Most commentary on legal AI asks which model is best. The case suggests the question is badly formed. Models improved for everyone at once; the company's trust did not come from a better one. It came from putting a fixed, boring structure around whichever model happened to be best that quarter: documents down the side, questions along the top, a source behind every cell.
That structure does three jobs that chat cannot. It matches the work, because due diligence is the same question put to a thousand documents. It makes prompts cheap to fix, because ten rows show a bad column at once. And it turns an impossible audit into a possible one. No partner will re-read ten thousand contracts, but any partner will open twenty cells and follow each to its page. Sampling is how the profession already supervises juniors; the grid lets it supervise a machine the same way.
Nothing here is exotic. Citations to a bounding box, bounded fan-out, routing, and a golden set run on every change are all ordinary engineering. The scarce thing is the discipline to make each one non-negotiable, and the organisation to keep it so when a customer demands a feature that skips the check.
The case also shows where the advantage will not last. Models will keep changing, so scaffolding will keep being rewritten; the company reports changing its approach several times. Retrieval tricks spread within a quarter. What compounds is slower: a library of column definitions refined against real documents, a taxonomy of failures, evaluation worlds built over time, and a customer's habit of opening the citation. A rival can copy the interface in a month and the habit in a decade.
For a builder, then, the lesson is to start with the check. Decide what a reviewer will open, and how quickly, before choosing a model or a vector store. Everything in the second half of this page follows from that order, and the compliance grids in Part VIII are the same idea pointed at a different set of questions. The grid is the product; the model is a supplier to it.
What to watch
Four signals would change our conclusions.
- Agent: a model-driven loop that chooses its own next action or tool call. A fixed pipeline is not one.
- Review grid: a table with documents as rows and questions as columns; each cell holds an answer and its source.
- Cell: one answer to one question about one document, with its citation.
- Fan-out: running the same question over many documents in parallel.
- 10-row gate: a human-checked pilot on ten rows before the full run.
- Primitive: a small reusable building block (projects, grid, lists) from which products are configured.
- Harness: the code around a model: tools, prompts, memory, retries and checks.
- Retrieval: finding the passages relevant to a question before the model answers.
- Dense embedding: one vector per passage, compared by similarity.
- Multi-vector / late interaction: one vector per token, matched token by token (MaxSim). Finer than a pooled vector; costlier to store.
- MaxSim: the scoring rule in late interaction; each query token takes its best-matching document token and the scores are summed.
- Map-reduce: split a long input into chunks, process each, then combine the results.
- Long context: feeding a very large input to the model in one go.
- Model routing: choosing a model per task on quality, cost, latency, governance and region.
- Pareto frontier: the set of options where nothing is better on every axis at once.
- Bounding box: the rectangle on a page that encloses the cited text.
- Golden set: a fixed, expert-checked set of cases run on every change.
- World snapshot: a frozen copy of documents, database state and permissions used to replay an eval.
- Trace: the recorded steps of one run. Here, unreadable when it contains client data.
- Feature flag: a switch that turns a behaviour on for some users only.
- Forward-deployed engineer: an engineer who works at the customer's side to configure and extend the product.
- Four-eyes review: a second person must approve before a result counts.
- AGPL: a copyleft licence that extends source-sharing duties to software offered over a network.
- Parsing and retrieval: Docling (MIT) and Granite-Docling (Apache-2.0); Qdrant (Apache-2.0, multivectors since 1.10); Vespa (Apache-2.0, ColBERT embedder); BGE-M3 / FlagEmbedding (MIT); ColBERT and PLAID (MIT, research code, stale); ColPali (MIT); pypdfium2 (BSD-3-Clause and Apache-2.0); PyMuPDF (AGPL-3.0, commercial dual licence).
- Platform and storage: LiteLLM (MIT, except the
enterprise/directory); Temporal (MIT); Kubernetes Jobs (Apache-2.0); gVisor, Kata Containers and Firecracker (Apache-2.0); Nomad (BUSL-1.1, not open source); MinIO (AGPL-3.0, archived); SeaweedFS (Apache-2.0); PostgreSQL. - Interface: AG Grid Community (MIT; Enterprise is commercial); TanStack Table (MIT, v9); Baserow (MIT core).
- Evals, agents, training: promptfoo (MIT, npm); Inspect AI (MIT); DeepEval (Apache-2.0); OpenContracts (MIT); LangGraph, pydantic-ai, OpenAI Agents SDK and CrewAI (MIT); Slack Bolt for Python (MIT); TRL and PEFT (Apache-2.0).
- Public regulatory feeds (no key needed): Federal Register API; eCFR versioner and search APIs (send
Accept-Encoding: gzip); EU Publications Office SPARQL endpoint.
Licences and status were checked on 7 November 2026. Check the licence of your exact version before shipping.
How is this page?
Last updated on