DataJoint is a validated Built-on partner in the Databricks Brickbuilder Partner Network (Bronze tier)

  • Who signed for it?

    Who signed for it?

    In a criminal case, evidence is only as good as its chain of custody. That’s the documented list of everyone who held it, from the scene to the courtroom. A gap in that list doesn’t prove anyone tampered with anything. It means nobody can prove they didn’t.

    Scientific data has the same weak point. It’s the hand-off.

    Where the record starts

    Inside the system that ran the work, the record is strong. A system can record every step it performed, because it performed them. Nobody has to remember anything.

    Now look upstream. An instrument writes a vendor file. Someone exports it. A site or an outside partner sends a transfer. A value passes through a spreadsheet on its way somewhere else. A step gets run by hand. By the time the data reaches the system it has changed hands several times, and the system saw none of it.

    A system can’t describe what it didn’t do. So the record starts at the door.

    “Everyone knows”

    DataJoint Chief Revenue Officer Doug Welsh wrote about this in Where does your provenance stop? He asks teams what happens between the instrument and the point where their system picks the data up. The answer he gets: that part is a convention. Everyone knows to name the files correctly.

    Doug’s reply belongs on the evidence board. “‘Everyone knows’ is not a record. It is a practice.”

    A practice works for as long as the people who hold it are the ones doing the work. Then someone changes teams, and the practice leaves with them.

    Regulated work already has a word for what’s missing: attributable. It’s the A in ALCOA. FDA’s data integrity guidance says data should be attributable, legible, contemporaneously recorded, original or a true copy, and accurate. Attributable asks one thing: who did this? A file-naming habit doesn’t say.

    You can’t remove the boundaries. You can guard them.

    A boundary is any place where data enters from outside the system: an instrument, a vendor, a site, an outside partner, a step someone runs by hand. Every real workflow has them. As Doug puts it, any vendor claiming otherwise is describing a diagram rather than a laboratory.

    Guarding a boundary takes two steps.

    First, find each one. At each, name who is accountable for the data up to that point.

    Second, require a source record with everything that enters. A source record states where the data came from and who handed it over. Dimitri Yatsenko, DataJoint’s Chief Science Officer, describes this in Intrinsic and Extrinsic Provenance: the data arrives with its source record attached, and data that arrives without one is “not a tolerated gap but a failed ingestion.” The failure shows up when the data arrives, not when an auditor asks.

    Look at your own workflow and find the place where the record stops being automatic and becomes a habit. If nobody can point to that place, it is still there, and data crosses it without a signature.


    Sources

    U.S. Food and Drug Administration. (2018, December). Data Integrity and Compliance With Drug CGMP: Questions and Answers. Guidance for Industry.

  • What’s left when the run ends?

    What’s left when the run ends?


    Last week’s suspect was the audit log: a record of events that says nothing about how a result was made. This week’s suspect did better. The harness kept a record, and the record is evidence. The trouble is how long that record lasted.

    The harness did its job

    An agent harness is the environment built around an AI model: tools, guardrails, compute, and a system of record. The good ones are serious engineering. Their record names what ran, on what data, and when.

    So what’s the crime? This week’s lead investigator is DataJoint Founder and Chief Science Officer Dimitri Yatsenko. In Workflow Grounding for Science Agents, he states the problem in one line: a harness is fitted to one horse for one race.

    One run, one record

    A harness is assembled for one run of work, which its builders call a campaign. The harness works on your data from the outside, and its record describes that run and no other.

    When the next run starts, the agent isn’t empty-handed. Agents keep memory now, so it has notes from last time. But those notes are the agent’s own account of what it did. Nothing ties them to the data, the code, or the result. They’re testimony.

    The run’s record was the evidence, and it ended with the run.

    For a single run, that costs some time. Over a year of runs, it decides what you have to show for the year. Dimitri asks it this way: after a year of this work, do you have a body of work the next phase can build on? Or a year of documents nobody can explain, defend, or reproduce?

    Start from the workflow

    His answer is workflow grounding. The agent works from inside the workflow your team already runs, not from outside. The agent reads and extends the same definitions that run the work. A new plate arrives. Segmentation and feature extraction run on the new plate. Each result records which plate and which version of the code produced the result, and the workflow shows what still needs to be computed.

    That changes where the record lives. The harness no longer keeps the record. The workflow does. Every result traces to its inputs and the code that produced the result, and that record outlasts any agent that used the result.

    Swap the model or change the harness. The next agent still picks up where the last one stopped.

    Keep the harness. Build the track.

    None of this argues against harnesses. A fast horse needs one. Dimitri’s point is that you also need a track: lanes so many horses can run at once, at full speed, with checkpoints along the way.

    The harness belongs to the run. The track is still there for the next race.

    Verdict: The harness is innocent. The culprit is the missing track.

    When this run ends, where does the next run start?

    If the answer is a folder of reports, you have a harness and no track.

  • Your agent has a harness. It still has no record.

    Your agent has a harness. It still has no record.

    An AI agent will do in seconds what used to take an afternoon. It will also, given the chance, do the wrong thing in seconds; and hand it back with the same confidence as the right thing. The speed is real. So is the risk, and most teams are pricing only the first one.

    The reflex is to make the model better: a sharper prompt, a bigger model, more guardrails bolted onto the output.

    That treats the agent as the thing to fix. But the agent isn’t the problem. The problem is what it’s standing on.

    A confident answer is not a checked answer

    When a person produces a result, the person is the audit trail. You can ask how they got there, and they can walk you back through it. When an agent produces results at scale and nothing records how, you don’t have an audit trail — you have a pile of outputs to trust on faith. The ones that are right look exactly like the ones that are wrong.

    That’s the real exposure. Not that an agent makes mistakes — people make mistakes too — but that an ungoverned agent makes them fast, confidently, and without a record anyone can check.

    An agent does the wrong thing as fast as the right thing, and logs it the same way. Most agent setups keep an audit log, and in a regulated lab they have to. But an audit log records events, not derivations. It says who ran what, and when. It doesn’t say which inputs and which version of the code produced a given result, and it points to outputs it doesn’t hold: if a file is overwritten later, the log still points to it and nothing flags the change. 

    Part of it may be the agent’s own account of what it did, which can be wrong the same way the answer can. And a complete log of a wrong result still passes review. That’s the larger risk: the audit log makes an ungoverned agent look governed.

    Harnesses are for horses

    The industry’s answer so far is the harness: wrap the model in constraints and hope they hold. Right instinct, wrong layer. You can’t make an agent trustworthy by tightening a leash around the model. An agent is only as accountable as the workflow it runs on. Most agents already have a harness. What they lack is a record. A harness limits what an agent can do; it keeps no account of what the agent did.

    Ground the workflow, and the picture changes. In a grounded workflow the design is the operation: the steps an agent takes are the same formal structure that defines the science, and every step writes its own record as it runs. The agent doesn’t have to be trusted to be honest about what it did, because what it did is written down — the inputs it used, the code it ran, the result it produced, bound together.

    Now the agent can move fast and be checked. A person can walk any result back to its origin. Another agent can pick up where the last one stopped and reproduce it. The speed stays; the faith requirement goes.

    The racetrack, not the leash

    Harnesses are for horses. What a fast, powerful thing needs isn’t a tighter restraint — it’s a track built for speed that it cannot leave. Workflow grounding is the racetrack. The agent runs flat out, and the track keeps it honest.

    That is the difference between an agent you deploy and an agent you can defend. One is a demo. The other is something a regulated lab can put its name on.

    Before you put an agent on a workflow, ask one thing: if it did the work, could you prove how?

    If the answer is “we’d trust it,” the agent doesn’t have a racetrack, it has a head start. Ground the workflow first, and the speed becomes an asset instead of a liability.

  • Which result do you trust?

    Which result do you trust?

    Biomedical researchers struggle to reproduce their own work. In a 2024 survey of 1,630 of them, published in PLOS Biology, 72% said their field faces a reproducibility crisis. Of those who had tried to repeat one of their own studies, 43% could not.

    That last number is the stranger one. Reproducing someone else’s work means a different lab, different hands and different reagents. Reproducing your own work removes most of those differences, and it still fails. You run the same analysis a second time, get a different number, and no one can say why. The first run is already in the paper. Now you have two results and no way to tell which one is right.

    This kind of failure is quieter than fraud and does more damage, because nothing flags it. A result you cannot account for looks the same as one you can, until someone asks you to account for it.

    Why results diverge

    A result can change between runs for reasons that never show up in the analysis: a parameter set by hand and never written down, a library that updated, a random seed, a different machine. A reviewer would not catch any of these, because the analysis looks the same both times.

    So running it again does not settle anything. A third run may give a third number. Without a record of what each run used, you are comparing results you cannot explain.

    The fix is a record of every run

    It would be easy to claim that the same inputs always give the same answer. That would not be true. Much of what changes a result sits outside the code: software versions, seeds, hardware. No workflow can keep all of that fixed.

    What a workflow can do is keep the record. In a grounded workflow, every run stores exactly what produced it: the inputs, the code version and the parameters. When two results differ, you put the two runs side by side and see what changed, such as a dependency or a parameter. You can also see which run matches the paper.

    This is the lineage claim from the first episode, applied to a second run, and it holds without conditions. The number may still move. The record tells you why it moved and which version to trust.

    Which one do you report?

    The runs do not all have to agree, but when they disagree you need to be able to explain why. Then when a reviewer, an auditor or your future self asks which result is correct, the answer is in the record and not in someone’s memory.

    A result you can account for is a result you can defend. A result you cannot account for is a liability wearing a lab coat.

    With the record, you do not have to guess which result to trust.


    Sources

    Cobey, K. D., et al. (2024). Biomedical researchers’ perspectives on the reproducibility of research. PLOS Biology, 22(11), e3002870.

    Trisovic, A., Lau, M. K., Pasquier, T., & Crosas, M. (2022). A large-scale study on research code quality and execution. Scientific Data, 9, 60.

  • Every result leaves a trail

    Every result leaves a trail


    Most labs rely on results that nobody can fully explain. The number is in a paper, a slide deck, or a decision that has already been made. Ask which inputs, which version of the code, and which run produced it, and often no one can say. This first episode is about that problem:

    a result that is still in use after the record of how it was made has been lost.

    A number is not a result

    A result is a number plus its provenance: the inputs it came from, the code that computed it, the parameters used, and the run that produced it. Without those, you have a value and no way to check it. A lot of lab data is in this state, in spreadsheet cells and in folders named final_final_v2.

    This works until someone asks how the number was produced. That might be an auditor, a regulator, a reviewer, or an AI system that reads your data and acts on it, which is more and more common.

    If the record was never kept, there is nothing to show them. Usually nobody made a mistake. The tools they used simply didn’t record how each result was made.

    The record has to come from the work itself

    The usual fix is discipline: label everything, keep the notebook current, name files consistently. That holds until a busy week, a quick re-run, or a handoff to someone new. Provenance that depends on people remembering is missing at the moment it’s needed.

    In a grounded workflow, each step records how its result was made at the moment it runs: what it used, what code ran, and what it produced. There is no separate documentation task. The design of the workflow is the operation, and every step writes its own record.

    Ask how a result was made, and look it up

    Once the record is automatic, the question that used to stall a meeting becomes a lookup. You can trace a result back through the analysis to the raw data, the instrument, and its origin. You can ask which results depend on an input that just changed.

    A new scientist, an auditor, or an AI agent can follow any number back to the moment it was made, without needing the one person who happened to remember.

    That is the difference between a result you report and one you can defend. The first asks for trust. The second shows the record.

    Every result leaves a trail. The work is to build the workflow that keeps it.