Technical

The Agentic Operating System for Investigation Teams

by Prasad Hemakumara17 October 20269 min read

Most investigation teams we speak to run a matter across six or seven tools. One processes the data, one hosts the review, one cleans the ledgers, a notebook runs the tests, a dashboard shows the client and email carries the rest. Each tool is good at its step. The matter lives in the gaps between them.

Those gaps are where an investigation gets hard to defend. A ledger export loses the link to the email that approved the payment. A privilege call made in review has to be carried by hand into the production. A finding in the report cites a document by name, and nobody can say which version. When we started building Donna for investigations and eDiscovery, the question was what a model needs around it to carry a matter from the first mailbox to the final report.

This post sets out how we answered it: seven layers, what each one does, where its checks sit, and which parts run in code, which in a model and which with a person.

Why We Call It an Operating System

Our first agents were given search over the evidence and asked to answer questions. They answered well. The trouble started when they were asked to act. An agent that can find the privileged emails can also propose to release them. An agent reading a phone extraction must not be able to read the folder its user was never given. And an answer is only useful to an investigator if every sentence can be traced back to a page.

None of that is a property of the model. It is a property of the system around it, in the way an operating system manages files, memory and permissions so that applications can be trusted with a machine. Donna plays that role between frontier models, from Anthropic and OpenAI, and a matter. It gives agents the evidence, the tools and the method, and it governs what they can see, what they can do and when they must stop for a person.

7Security and Governance

Around every layer: identity from the credential, permissions in the API, approvals, audit, legal hold

  1. 6Working with ClientsOne Space per matter, each person reading their own audience
  2. 5Redaction and ProductionRedacted copies, Bates and load files, breach lists, each behind its gates
  3. 4ReviewFirst-pass coding, privilege, CAL rounds and a signed stop
  4. 3AgentsPlan, call tools, cite, and stop for a person before changing the matterThe loop ends at a person
  5. 2Text and Numbers, TogetherStatements become tables, programs run the tests
  6. 1ProcessingScan, fingerprint, de-duplicate, open containers, extract
The seven layers. Security and Governance is drawn as a frame because it is applied inside every other layer, at the API and the data, below the model.

Three principles run through every layer, and they explain most of the design decisions below.

  1. Models recognise, programs compute, people decide. A model reads and nominates. Anything that must be exact, a deadline, a reconciliation, a recall estimate, is computed by a program. Anything that leaves the matter is signed by a person.
  2. Permissions live beneath the model. Every tool call reaches the API as the person who asked, and the API narrows what comes back. The model never decides who may see what.
  3. Fail closed where it leaves the matter. If a check cannot run, the release does not happen.

1. Processing

Everything starts with the evidence: mailboxes, chat exports from Slack, Teams and WhatsApp, Cellebrite phone extractions, forensic disk images, scanned records, ledgers and bank statements. The simple version of intake is a queue of files to OCR. In an investigation that breaks quickly, because most evidence arrives inside other evidence. A single mailbox holds thousands of messages, each with attachments, some of which are archives.

So intake is a pipeline that treats containers as first-class. A file is scanned for malware before anything reads its contents. It is then fingerprinted, SHA-256 and MD5 over the exact bytes, and matched on content. A file Donna has already processed is not processed again: the stored copy is reused and the new Space is granted access to it. Only then is the file opened, its format detected from its signature, its text and metadata extracted and its scanned pages read by OCR.

  1. 1 · Malware scanBefore anyone opens it. A malicious file stops here.
  2. 2 · FingerprintSHA-256 and MD5 over the exact bytes.
  3. 3 · Seen before?A content match reuses the stored copy.
  4. 4 · Open and extractText, metadata and OCR. Containers open into child files.
  5. Mailboxes, chats, phone extractions and disk images open into children, and every child goes back through step 1 with its parent, root and path recorded.
One file through intake. Containers open into child files, and each child re-enters the pipeline at the malware scan.

When a file is a container, it opens into children. Mailboxes split into messages, chat exports and phone extractions into conversations, disk images into the files recovered from them. To the pipeline every child is a new upload, so it goes back through the same scan. Each one records its parent, its root and its path, along with the hashes of its ancestors, which is how Donna refuses an archive that contains itself. Child ids are derived from the parent and the entry, so a retried job finds the children it already made instead of making them twice.

Disk images get extra care, because parsing them means running forensic tooling over bytes an adversary may have shaped. That work runs in its own job, as an unprivileged user, with no network: socket creation is refused at the kernel. If that filter cannot be installed, nothing runs.

2. Text and Numbers, Together

Most investigations split in two. The eDiscovery team reads the emails. The forensic accountants work the ledgers. Findings usually live where the two meet: the invoice beside the email that approved it, the transfer beside the chat that arranged it.

Donna reads both. Bank statements are parsed into tables and then checked against the arithmetic they print about themselves: a running balance has to match each printed balance, and the first line that does not is named by page. A statement with nothing to check against is marked as unreconciled, with the reason. Records from different systems are cleaned and joined in Sheets.

The analysis, Benford tests, circular flows of money, fund tracing through an evidence graph, writing that is unusual for the person who sent it, runs as programs over those tables in a sandboxed query engine. The agent chooses the test and explains the result; it does not do the arithmetic. A program gives the same answer twice and its inputs can be shown, which is what makes a finding defensible. Results are framed as screens: a failed Benford test says where to look, never that anything is wrong.

The processes that read untrusted documents and run analysis start with a minimal environment, cannot open a network connection or start another program, and refuse to run a job if those restrictions cannot be applied.

3. Agents

This is the layer that does the analysis. You brief Donna as you would a senior analyst: trace the funds out of this account, find who knew about the side letter, run these payments through a Benford test. The agent plans the work, hands parts of it to specialist subagents, calls tools, checks its output and tries again when it does not hold up.

The interesting engineering is in what happens on each tool call. Before a call runs, a capability policy decides it from three things: the action, the person’s role and the kind of Space. There are three outcomes. Reads and reversible steps run autonomously. Anything that changes the matter in a way others can see stops on a confirmation card that shows the exact inputs, which the person can approve, edit or deny. Settings, billing and membership are forbidden to agents outright. An action the policy does not recognise is forbidden by default, and a card nobody answers counts as a deny. A firm’s admins can adjust the autonomous and confirm decisions for their own matters, but cannot grant an agent the forbidden ones.

  1. 1 · AgentPlans the step and calls a tool.
  2. 2 · Capability policyDecides by action, role and surface: autonomous, confirm or forbid. Anything unknown is forbidden.
  3. 3 · ConfirmA person sees the exact inputs and approves, edits or denies. No answer counts as a deny.
  4. 4 · Donna’s API, as the personChecks a credential tied to this person and this run, their role in the Space, and returns only what they may open.
One tool call. The policy decides whether a person must approve. The API then decides what the person, and so the agent, may see.

The call then reaches Donna’s API with a short-lived credential minted for that run. It names the person as the subject, Donna’s worker as the actor, and the run it belongs to. Identity comes from that credential, never from the tool’s arguments. The API runs the same membership and role checks a person’s own request would, and narrows the result to the documents that person may open. The model cannot talk its way past a check that happens after it has spoken.

Answers are grounded the same way. When the agent cites a passage, Donna checks the quote against the text the search actually returned during that turn and stores the exact matching passage, so a citation opens the page it came from with the clause highlighted.

4. Review

Review is still the slowest part of most matters. Donna’s agents take a first pass across the whole population, coding for relevance and issues, and screening for privilege with the reason and evidence for each proposal. Reviewers spend their time on the documents that need judgement.

The harder problem is knowing when to stop. Donna runs continuous active learning: reviewers code a batch, a model trained on those labels ranks the rest, and the ranking sets the next batch. One rule shapes the whole design: only a person’s coding is a label. Donna’s first pass helps reviewers, but it never counts toward what the review has found.

  1. 1 · PersonCode a batchReviewers label documents. Only a person’s coding counts as a label.
  2. 2 · ProgramRank the restA model trained on the labels scores the population and sets the next batch.
  3. 3 · ProgramFreezeThe found set and the unreviewed remainder are written, counted and hashed.
  4. 4 · ProgramDraw a sampleFrom the remainder only, with a seed drawn after the freeze.
  5. 5 · PersonCode the sampleEvery sampled document, by a person.
  6. 6 · ProgramEstimateElusion and recall, against the target the team set.
  7. 7 · PersonSign the stopOver a fingerprint of exactly what was measured. Below target needs a reason.

Steps 1 and 2 repeat, round by round.

If a label, the population or an estimate changes after the signature, the stop reads “stale: re-accept”.

A review that ends on a signature. Programs draw and measure, people label and sign. The stop is tied to a fingerprint, so it cannot silently outlive the data it measured.

Validation is built to be shown to a court or a regulator. The found set and the unreviewed remainder are frozen, counted and hashed. The sample is drawn from the remainder only, with a seed generated after the freeze, so nothing already labelled can be drawn and nobody can choose the sample. Once a person has coded every sampled document, a program estimates elusion and recall. The decision to stop is a person’s signature over a fingerprint of exactly what was measured, and a result below the target needs a written reason. If a label or the population changes later, the stop reads as stale until someone accepts it again.

5. Redaction and Production

Whatever leaves the matter has to be right, and this is where we are strictest. Donna proposes redactions for personal information, a person decides each one, and the redacted file is written as a new copy beside the original. The original is never modified. A copy is written only when a ladder of checks passes in order, the last of which confirms the original still hashes to what was redacted. Each copy keeps a frozen log of its redactions beside it.

The gates before anything leaves. Each ladder runs in order, and a gate that cannot be evaluated counts as a failure.

Productions go out with Bates numbers and load files. Before release, a program runs a checklist over every document, reading privilege coding as it stands at that moment. The checklist fails closed: a fact that could not be gathered for a document, such as an unknown hash or a redaction set the checker cannot read, blocks that document. Nothing on it can be waived; a line clears only when what it counts changes. Release is a person’s act, signed over a fingerprint of the locked set, and the package download is audited.

After a data breach, the same layer builds the notification list. Agents read the affected files and find each person and the data exposed. Grouping records into people is the error-prone step, so Donna proposes groupings with its reasons and the records that support them, conflicts go to a queue, and a person can split, join or override any of it. The regulator’s clock is computed by a program from facts a person entered, each with its evidence. The clock never acts: reading it sends nothing, and a deadline is only met when a person records the notice that was sent.

6. Working with Clients

All of that work has to live somewhere the team and the client can use it. In Donna that place is the Space: one secure workspace per matter, where the firm, the client and Donna work on the same evidence, review, chronology, dashboards and draft report. Nobody passes exports around, and nobody works from last week’s version.

Each document carries an audience, from everyone on the matter down to a single person, and every read is narrowed to it. A client can read the findings dashboard without seeing the team’s working notes. Surfaces a client is not meant to use, such as productions, answer as if they do not exist, so their presence is not disclosed either.

7. Security and Governance

We draw this layer at the top, but as the diagrams above show, it is applied inside every other one: identity comes from the credential, permissions are enforced in the API and the data, and the capability policy decides where an investigator’s approval is required. Reading a document, proposing a redaction and releasing a production are different actions and do not carry the same permission.

Roles are set per matter. Actions by people and by agents are logged, and downloads are recorded. A legal hold can only be set or released by a person. Setting one writes the hold before its audit record, so a logging failure leaves the hold in place; releasing one writes the audit first and refuses if it cannot. Matter data is stored and processed in an Australian region, and Donna never trains models on your matters.

We built this layer first, even though it is drawn last, because every other layer depends on it.

What We Learned

The most useful decision we made was to be explicit, for every step, about who is responsible: the model, a program or a person. Once that is written down, most of the architecture follows. Models are very good at reading a phone extraction and noticing that two records describe the same person. They are the wrong place to compute a deadline, estimate recall or decide what a client may see.

The second was to put every check where the model cannot reach it. Prompts change and models improve, and neither should be able to widen what an agent may see or let a production out early. With the checks in the API and the programs, we can change the model without re-proving the system.

With all seven layers in place, a matter moves from the first mailbox to the cited report in one place. Agents carry the volume, the investigator makes the calls, and the record of who did what, and why, builds itself as the work happens. We keep deepening every layer with the forensic, investigation and eDiscovery teams, and the law firms they work with, who use it.

See Donna on your next investigation

Bring a matter. See the agents trace the money, review the mailbox or build the notification list, every finding cited.

Country *
Organisation type *
Team size *
How did you hear about us?