STAMPED principles and their role in the age of
AI-driven scientific software development

Agents often fail not for lack of "intelligence".
They fail for lack of structure to act on.

Yaroslav O. Halchenko
@yarikoptic @yarikoptic@fosstodon.org

Center for Open Neuroscience
Department of Psychological and Brain Sciences
Center for Cognitive Neuroscience
Dartmouth College
New Hampshire, USA
Neuroimaging, Reproducibility and LLMs:
Early promises and future question

a ReproNim workshop — MIT Building 46, Cambridge MA — October 16th, 2026
Live slides/Sources: https://datasets.datalad.org/centerforopenneuroscience/talks/2026-reproAI-MIT-STAMPED.html

Reality Check

Disclaimer: I am not here to sell you a model, a vendor, or a workflow.

I am here to argue that the boring infrastructure work we have been doing for 20 years
is exactly what decides whether agents help you or hurt you.
We are just giving some of the aspects new names.

Many names on the slides are links — follow along, click through later.

Standing on two talks

Mine — ReproNim webinar, Feb 2026
ReproFlow & YODA: structure your studies (video: YouTube · ReproTube)
  • Version control everything
  • Look up you must not
  • Compose modularly you shall
  • … and preserve all artifacts as an AI-accessible knowledge base
Oscar Esteban — OHBM 2026 Educational
Using LLMs in Neuroimaging Research: LLMs for Coding
  • Agent = Model + Harness
  • AGENTS.md as the operational contract
  • Context engineering > prompt wording
  • Grounding beats a bigger search
Oscar showed how to build the harness.
This talk is about what the harness should stand on,
and how harnesses themselves become shareable.

So the bottleneck moved

writing the code → verifying and situating it
can I create this? → is this right, and does it fit what already exists?

HBR, Feb 2026: “AI doesn’t reduce work, it intensifies it”

Without structure, the agent has to guess

What an agent finds in most labs
study_final2/
  scans/
    s01_ep2d_bold_moco_3.nii
    s01_t1_mprage_FINAL.nii
    s02_ep2d_bold_moco_3(1).nii
  analysis_new/
    run_it.sh
    run_it_OLD.sh
    results_use_this_one.mat
  notes.docx
  • Which file is which subject? Infer.
  • What are the acquisition parameters? Infer.
  • Which script made results_use_this_one.mat? Infer.
  • Was it run on the fixed data or the broken data? Infer.
What an agent finds in a BIDS dataset
ds000001/
  dataset_description.json
  participants.tsv
  sub-01/
    anat/sub-01_T1w.nii.gz
    anat/sub-01_T1w.json
    func/sub-01_task-rest_bold.nii.gz
    func/sub-01_task-rest_bold.json
  derivatives/
    mriqc/dataset_description.json
  • Subject, session, task, run: in the filename
  • Parameters: in the sidecar
  • Provenance of derivatives: GeneratedBy
  • Correctness: a validator says so
Same LLM. Same prompt. Different background. On the left the agent would improvise confidently and likely get it wrong. On the right it can act immediately.

Not just rhetoric: a structured neuroimaging harness moved first-choice tool-selection accuracy from 23.3% to 93.6% across seven models — Chen, …, Poldrack, Bringing analytic rigor to agentic AI for science, arXiv:2608.19902, 2026 (brain-researcher.com).

This problem already has a name

→

YODA, 2018 — for humans composing studies

STAMPED, 2026 — generalized, gradeable, domain-agnostic

We did not invent these for AI. That is the point — they were already the right properties.

… and AI changed what counts as actionable

“Actionable” required… … so what could act
Before An exact command, API call, or documented CLI. Prose was not enough. Tools, and humans who already knew the tool. Everything else stayed a paragraph in the Methods.
Now A procedure described in human language — with scripts provided for efficiency and precision! Any agent, on first contact. The interface moved from syntax to language, so vastly more of what we already wrote down became executable.
Next Routines that fire without being asked. The harness itself — CI, PR monitors, scheduled agents.

2 types of actionable helpers

1. Skills — logic written in language
  • Human language carries the judgement; scripts carry the precision
  • One skill, one job — modularity still applies
  • The procedure you did by hand three times, written down once
2. Routines — the harness runs them for you
  • Claude Code on the web watching a repo: triage issues, review PRs
  • Scheduled agents; CI that does more than run tests
  • No human has to remember to invoke it
AI did not only make more things actionable.
It made automation on top of actionability cheap — which is the real multiplier.

Nobody ships you a STAMPED object — each tool brings a piece

Letters repeat because several tools feed the same property, and that is the point: no one tool is the answer. The next slides walk three of these pieces — what it is, how it was made, what it took.

Standards are the grammar — BIDS as the worked example

11 modalities · 25 active BEPs · a machine-readable schema · a validator · turnkey BIDS-Apps

K. J. Gorgolewski, …, Y. O. Halchenko, …, R. A. Poldrack. The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments. Scientific Data 3:160044, 2016.

But a layout only tells you what   the files are.

It says nothing about how they came to be, or what it cost to make them.

Tracked: datalad run writes the record for you

$ datalad run -m "run brain extract workflow" \
    --input "inputs/ds*/sub-01/anat/sub-01_T1w.nii.gz" \
    --output "sub-*/anat" \
    bash -e code/brain_extraction.sh inputs/ds*/sub-01/anat/sub-01_T1w.nii.gz
$ git show --stat
commit 1223bc4bead3c7e6be15b78546c894c6465dd7a4

    [DATALAD RUNCMD] run brain extract workflow

    === Do not change lines below ===
    {
     "cmd": "bash -e code/brain_extraction.sh inputs/ds000001/sub-01/anat/sub-01_T1w.nii.gz ...",
     "dsid": "b656ac80-973c-45ef-887e-1b8d6f6a51dd",
     "exit": 0,
     "inputs": ["inputs/ds*/sub-01/anat/sub-01_T1w.nii.gz"],
     "outputs": ["sub-*/anat"],
     "pwd": "."
    }
    ^^^ Do not change lines above ^^^

 sub-001/anat.nii.gz      | 1 +
 sub-001/anat_mask.nii.gz | 1 +
  • Machine-readable, in the commit message — no sidecar database to lose
  • Clean git state in, clean git state out: no surprises
  • datalad rerun reads it back and re-executes

Example from the DataLad Handbook. Found in the wild in ~15% of indexed DataLad repositories on GitHub.

… and that log is   the provenance you need later

“Why did this get OOM-killed on the cluster?”
  • Peak RSS over time, per process. Not your memory of it.
“How much do I request for 2,000 subjects?”
  • Measured, from the run you already did.
“What did it print before it died?”
  • Captured, versioned, next to the outputs.

con-duct plot — Who can guess this monster?

Why an AI audience should care: when you hand a failing pipeline to an agent, it needs numbers and text it can read, not a human recollection. duct turns “it crashed, I think it ran out of memory” into a file. Self-contained (S), tracked (T), immediately actionable (A).

More, including the patterns of use with AI agents will be presented on our US-RSE’26 poster next Monday:
"Agent-friendly provenance capture with con-duct"

Already wired in: set REPRONIM_USE_DUCT=1 with ///repronim/containers and every datalad containers-run gets a duct trace for free.

All three layers, one real artifact — built with AI

dandi/compression-comparisons-t261-study — a reproduction of Buccino et al. 2023 on ephys compression, plus a comparison against the new ITU-T T.261 codec.

1. The layout (what)
dataset_description.json
code/
  compression-comparisons-tools/
  run_sweep.sh
sourcedata/
  aind-ephys-compression/      # 523 GB
derivatives/
  compbench-*/<cell>/
    metrics.json  manifest.json
    duct-info.json  duct-usage.jsonl
  reports-*/

BIDS-like, M-odular: data and tool are subdatasets pinned by commit, not copies.

2. The record (how) — and 3. the cost (what it took)
$ git log --oneline
7733465 [DATALAD RUNCMD] cell aind-634568__zstd...

 "cmd": "duct --output-prefix .../duct- \
      --sample-interval 1 --report-interval 5 \
      compbench run --codec zstd ...",
 "inputs":  ["sourcedata/aind-ephys-compression/.."],
 "outputs": ["derivatives/../aind-634568__zstd.."],
 "exit": 0

The recorded command is a duct invocation — so every cell commits its own resource trace beside its own results.

commits[DATALAD RUNCMD] of those, wrapping duct cellsrecorded compute AI disclosure
12661216 1095 912, 0 errors 3838 h (peak RSS 120 GB) 26 Co-Authored-By: Claude

So I tried to rerun it — fresh clone, two months later

$ datalad clone https://github.com/dandi/\
    compression-comparisons-t261-study
$ datalad get -n code/compression-comparisons-tools
  ✓ submodule URL fixed — it just works now

$ # no image to pull: the env is prose in README.md
$ uv venv envs/compbench
$ uv pip install --python envs/compbench/bin/python \
    './code/compression-comparisons-tools[ephys,..]' \
    wavpack-numcodecs flac-numcodecs
  ✗ not all of it built — enough for this cell

$ datalad rerun -b repro-20261015-42dc5cfa-1 42dc5cfa
  run(ok): ... [duct --clobber --output-prefix ..]
  Wall Clock Time: 2.465 sec   RSS peak: 142 MB
Did the science come back?
fieldoriginal vs. rerun
cr1.514... same
encoded_bytes5283 same
rmse · round_trip_ok0.0 · true same
signal_std706.609... same
*_time_s~20% slower — as they must
manifestsame kernel 6.12.57,
python 3.13.15→3.13.5
duct-infohost 327bc591…→typhon:
the original ran in a container
the record never named

A hand-rebuilt environment, a different Python, no container — and every scientific number came back bit-for-bit. Only timings moved.

Last pass broke on Distributable — a relative submodule URL that resolved only on the author’s disk. One-line fix, and this clone just worked. This pass broke on Portable: there is no image, so the environment had to be rebuilt by hand out of the README — and not all of it built. S, T, A, M, D held. Each pass finds the next weakest letter — that is what the checklist is for.

Agent = Model + Harness

formulation borrowed from Oscar Esteban, OHBM 2026

Harness piece What it is STAMPED property
AGENTS.md / CLAUDE.md The project’s operational contract: conventions, commands, what not to do Self-contained
Skills A named, reusable procedure with its own references and scripts Modular, Actionable
Hooks / CI Guard rails that run whether or not anyone remembered to Tracked
MCP servers The port to external systems — archives, trackers, databases Distributable
Container / sandbox
(con/yolo)
Where it may run and how much it can break — and the one piece that enforces self-containment: what you did not declare is not in there Self-contained, Portable, Ephemeral
Pre-flight check Credentials, access and inputs verified before the run starts — fail in the first second, not in hour three Actionable, Ephemeral
The harness is itself a research object. Which means it can be self-contained, tracked, modular, portable — or it can be a pile of prompts in your notes app.

"AI" now permeates through all levels of SciOps.

Figure reproduced from: E. C. Johnson, T. T. Nguyen, B. K. Dichter, …, M. E. Martone, F. Pestilli, D. Yatsenko. SciOps: Achieving Productivity and Reliability in Data-Intensive Research. arXiv:2401.00077, 2024.

The preprint names BIDS, NWB, DataLad/git-annex, DANDI and brainlife.io as its own Level-3 exemplars — and reserved the top, Level 5 (Optimizing), for closing the discovery loop with AI.
Well, too late, AI harnesses elevate you across all levels now.

Two regimes — and be honest about which one you are in

Either the system checks itself against goals and spec — or the work items stay small enough that a human still can.

A. Scaffolded self-verification
the agentic system keeps itself in sync
  • An executable spec the loop is checked against (spec-kit, OpenSpec, LAD)
  • Tests and validators as the oracle — the loop must be able to fail
  • Provenance so drift is detectable at all (datalad run, duct, CI history)
  • Automated gates before human eyes; humans review intent and architecture
Only then could large autonomous batches be trusted.
B. Small, human-reviewable, hand-tried
where almost every research project actually is
  • A diff a human can actually read is a design constraint, not a courtesy
  • One concern per change; small commits; mark them (@pytest.mark.ai_generated)
  • Run it by hand before you believe it. Agent-rate output, human-rate trust
  • Cheap to back out — the reversibility is the safety mechanism
Not a lesser mode — the correct default until A is actually built.
There is no third regime where you ship large, unverified agent output safely. And the way out of B is not a better model — it is Actionable specs, Tracked provenance and Modular units: the same STAMPED properties, again.

“Well, less is more” — Robert Browning, Andrea del Sarto, 1855

Acknowledgements

STAMPED and FAIR do different jobs

FAIR STAMPED
About sharing: can someone else find this and get it? About the object being operational on its own: can someone — or something — re-run it?
A FAIR dataset can still be a .zip of .mat files with a DOI. A STAMPED object carries its own layout, environment, and execution record.
Graded by a repository. Graded by a checklist you can walk, item by item.
Not competitors — different lenses on the same stack. FAIR tells you whether the world can reach it. STAMPED tells you whether anything useful happens once it does.

Portable + Ephemeral: the environment travels with the record

$ datalad containers-run \
    -n repronim-mriqc \
    -m "run MRIQC on sub-01" \
    --input sub-01 --output derivatives/mriqc \
    '{inputs}' '{outputs}' participant
  • Container image is a tracked subdataset, not a latest tag that drifts
  • The commit records image and command together
  • Bind-mount only the current module — look up you must not
  • Throw the container away afterwards: that is Ephemerality, and it is already how agents run

ReproNim/containers — auto-rebuilt, versioned collection

“Depend on where you run, you should not.” An agent’s sandbox is not your laptop — which makes portability a correctness property, not a courtesy.