Skip to content

Stream validation in parallel - #1956

Draft
CodyCBakerPhD wants to merge 16 commits into
claude/datalad-fuse-readablefrom
claude/validate-stream-via-datalad-fuse
Draft

CodyCBakerPhD wants to merge 16 commits into
claude/datalad-fuse-readablefrom
claude/validate-stream-via-datalad-fuse

Conversation

@CodyCBakerPhD

@CodyCBakerPhD CodyCBakerPhD commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #1955.

Stream dandi validate through datalad-fuse adapters (not FUSE mounts).

Try this out with
mkdir dandi-stream-demo && cd dandi-stream-demo

python3 -m venv venv && . venv/bin/activate
pip install git-annex con-duct \
    "dandi[datalad] @ git+https://github.com/dandi/dandi-cli@claude/validate-stream-via-datalad-fuse"
git annex version | head -1                     # expect 10.2025xxxx or newer

# Build the DataLad dataset from the archive's manifest on S3. Nothing is downloaded:
# each file gets its SHA-256 git-annex key and its S3 URL.
curl -sSfO https://dandiarchive.s3.amazonaws.com/dandisets/000006/draft/assets.jsonld
datalad create -c text2git 000006
curl -sSfo 000006/dandiset.yaml https://dandiarchive.s3.amazonaws.com/dandisets/000006/draft/dandiset.yaml
datalad save -d 000006 -m "Add dandiset.yaml"
datalad addurls -d 000006 --input-type json --exclude-autometa '.*' \
    --key 'et:SHA256-s{contentSize}--{digest[dandi:sha2-256]}' \
    assets.jsonld '{contentUrl[1]}' '{path}'
find 000006 -name '*.nwb' -xtype l | wc -l      # expect 53 (content not fetched)

# Cold run (cache cleared first), then warm run (results come from the cache)
DANDI_CACHE=clear duct -m "stream 000006 -J8 cold" \
    dandi validate --missing-file-content=stream -J 8 -o 000006-cold.jsonl 000006
duct -m "stream 000006 -J8 warm" \
    dandi validate --missing-file-content=stream -J 8 -o 000006-warm.jsonl 000006

and then con-duct ls -F message wall_clock_time peak_rss average_pcpu exit_code should give something like

PREFIX                               MESSAGE                     WALL_CLOCK_TIME PEAK_RSS AVERAGE_PCPU EXIT_CODE
.duct/logs/2026.10.15T21.17.34-3016_ 1956 stream 000006 -J8 cold 30.585 sec      1.8 GB   422.91%      1
.duct/logs/2026.10.15T21.18.05-7156_ 1956 stream 000006 -J8 warm 5.073 sec       1.5 GB   754.05%      1

and then dandi validate --load 000006-cold.jsonl --summary should give

--- Validation Summary ---
Total issues: 893  
By severity:
  ERROR: 576
  WARNING: 317
By validator:
  nwbinspector: 469
  pynwb: 424
By standard:
  N/A: 469
  NWB: 424

🤖 AI text below here 🤖

Details

Changes

  • New stream policy for --missing-file-content:
    • Annexed files whose content isn't present locally are opened through AnnexedReadableFile, and pynwb and nwbinspector run on the streamed content.
    • Each streamed file yields an INFO result, DANDI.FILE_CONTENT_STREAMED, naming the first URL git-annex reported for its content.
    • A file that can't be streamed yields a DANDI.FILE_CONTENT_MISSING error.
    • In a clone where git-annex isn't initialized, no git annex command runs, so the clone isn't modified, and every file is reported as missing.
  • Pipeline support, carried over from Enable dandi validate to operate on Datalad datasets through streaming #1933:
    • LocalFileAsset.content_source lets an asset read its content from a Readable.
    • pynwb_utils.validate(..., readable=...) validates content from a Readable.
    • nwbinspector inspects the streamed file object.
    • BIDS errors that need file content are suppressed for streamed files, as under only-non-data.
  • Caching:
  • -J/--jobs N: NWB files outside BIDS datasets are validated in N processes. Results are yielded in the same order as with 1 (the default), and the workers' log messages are forwarded to the main process.
  • Progress: one INFO log message per validated file, e.g. [12/53] sub-01/sub-01_ses-1.nwb: 3 issues.
  • Requirements: the policy requires datalad-fuse with remfile (pip install "dandi[datalad]", which requires datalad-fuse >= 0.8.0, see Stream missing annexed content with remfile, cached by annex key #1955) and git-annex, and raises an error if either is missing.
  • Docs: "Validating DataLad Dandisets Remotely" in the validate docs explains the policy, using datalad clone.
  • Tests: the stream tests from Enable dandi validate to operate on Datalad datasets through streaming #1933 are rewritten to use a real git-annex repository and the local HTTP range server from Stream missing annexed content with remfile, cached by annex key #1955. They cover:
    • the results match a local copy of the file;
    • caching by key;
    • the unstreamable and unreadable-URL cases;
    • the missing-requirements error;
    • --jobs and progress output.
---

🤖 Generated with Claude Code

https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr

@CodyCBakerPhD CodyCBakerPhD self-assigned this Oct 6, 2026
@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.55491% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.62%. Comparing base (4b76078) to head (a5f46ad).

Files with missing lines Patch % Lines
dandi/validate/_core.py 97.01% 4 Missing ⚠️
dandi/files/bases.py 97.91% 1 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                        @@
##           claude/datalad-fuse-readable    #1956      +/-   ##
================================================================
+ Coverage                         91.48%   91.62%   +0.14%     
================================================================
  Files                               102      102              
  Lines                             16105    16413     +308     
================================================================
+ Hits                              14734    15039     +305     
- Misses                             1371     1374       +3     
Flag Coverage Δ
unittests 91.62% <98.55%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CodyCBakerPhD
CodyCBakerPhD added this pull request to stack #1959 October 12, 2026 21:30
@CodyCBakerPhD CodyCBakerPhD added cmd-validate enhancement New feature or request patch Increment the patch version when merged labels Oct 12, 2026
@CodyCBakerPhD
CodyCBakerPhD force-pushed the claude/validate-stream-via-datalad-fuse branch from 0be1c28 to 106f661 Compare October 12, 2026 21:32
@CodyCBakerPhD

Copy link
Copy Markdown
Contributor Author

Note: test on https://dandiarchive.org/dandiset/001769 (BIDS with nifti's; @yarikoptic had concern about BIDS validator fetching content)

@CodyCBakerPhD
CodyCBakerPhD force-pushed the claude/validate-stream-via-datalad-fuse branch from a65f6ee to 336ec0b Compare October 15, 2026 17:58
@CodyCBakerPhD
CodyCBakerPhD removed this pull request from stack #1959 October 15, 2026 18:34
@CodyCBakerPhD CodyCBakerPhD changed the title validate: stream missing annexed content with datalad-fuse validate: stream missing annexed content, optionally in parallel Oct 15, 2026
@CodyCBakerPhD
CodyCBakerPhD added this pull request to stack #1965 October 15, 2026 19:28
@CodyCBakerPhD
CodyCBakerPhD force-pushed the claude/validate-stream-via-datalad-fuse branch from ea4dbbf to 63ee181 Compare October 16, 2026 03:23
@CodyCBakerPhD CodyCBakerPhD changed the title validate: stream missing annexed content, optionally in parallel Stream validation in parallel Oct 16, 2026
@CodyCBakerPhD
CodyCBakerPhD force-pushed the claude/validate-stream-via-datalad-fuse branch 2 times, most recently from cc5bca7 to bec91fa Compare November 4, 2026 20:51
@CodyCBakerPhD
CodyCBakerPhD removed this pull request from stack #1965 November 9, 2026 07:13
@CodyCBakerPhD
CodyCBakerPhD added this pull request to stack #1982 November 9, 2026 07:13
@CodyCBakerPhD
CodyCBakerPhD force-pushed the claude/validate-stream-via-datalad-fuse branch 3 times, most recently from 4b8f6ed to 3b3b7b3 Compare November 9, 2026 21:47
Add a `stream` policy to `--missing-file-content`: the content of
annexed files that is not present locally (as in a DataLad clone of a
Dandiset) is streamed with datalad-fuse's adapter, so that pynwb and
nwbinspector run on it without it being downloaded.  pynwb validation
results are cached under the files' git-annex keys.

This is the validation integration of #1933, on top of the datalad-fuse
readable rather than a git-only reader of the git-annex branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
This reverts commit d18843d.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
The results of inspecting an NWB file are cached in the validation
cache, under the file (by stat() for a local file, or by its git-annex
key for streamed content; see `annex_fingerprint`) and the version of
nwbinspector, so that validating again does not inspect (and for
streamed content, download) unchanged files again.  A failure to read
streamed content, which might be transient, is not cached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Validating a streamed file mostly waits for its content to be
downloaded, one request at a time (h5py serializes all reading of HDF5
files in a process), so validate NWB files (other than those of BIDS
datasets, which are validated together) in a pool of processes, started
with "spawn" since this process may run threads (e.g., fsspec's).  The
results are yielded in the same order as without the pool; the workers'
log records are handled by the handlers of the main process.  Streamed
content is set up again in the worker, as its source cannot be sent to
another process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Validating streamed content can take a long time per file, during which
nothing was shown.  Find all the files to validate first, log their
number, and log for each file when it is done ("[3/120] sub-01/...nwb:
2 issues"), including for the files validated in parallel with --jobs,
as they finish.

The `dataset_description.json` files of BIDS datasets, to which the
assets found refer only weakly, are kept alive while their assets are
validated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…fuse

Follow the base branch, which streams annexed content with remfile from the
URLs git-annex knows, without datalad-fuse: `--missing-file-content=stream`
now requires remfile (`dandi[streaming]`) and git-annex, and never runs a
`git annex` command in a clone in which git-annex is not initialized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…datalad]`

Follow dandi.support.annex_stream streaming with datalad-fuse's adapter
and its remfile backend: the stream policy now requires datalad-fuse
with remfile (`pip install 'dandi[datalad]'`), checked with
`can_stream()`, and the documentation says how the content is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
joblib, which fscacher caches with, warns when saving the arguments of a
cached call to its metadata.json takes over 0.5 s.  The arguments of
dandi's cached functions are small, so this happens only on a slow
filesystem, as on a Windows CI runner in test_validate_simple1_no_subject,
and the results are correct either way.  With `filterwarnings = error`,
the warning was raised inside the cached NWB Inspector call, and
reported as the file's only validation error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
@CodyCBakerPhD
CodyCBakerPhD force-pushed the claude/validate-stream-via-datalad-fuse branch from 3b3b7b3 to 26b5451 Compare November 10, 2026 16:25
CodyCBakerPhD added a commit to dandi-validations/dandi-validations that referenced this pull request Nov 10, 2026
…capsules (#1)

* Validate each Dandiset on its own runner, recorded as job capsules

Build the dandi-validate container from the recipe at the top of
dandi/dandi-cli#1956 (git-annex, con-duct, dandi[datalad] pinned to a
commit) and publish it to GHCR as an OCI image and an Apptainer SIF.

Create one repository per Dandiset in the organization, as
bids-dandisets/scripts does, and sync a template into each whose Validate
workflow runs a job on that repository's own runner:

- build a DataLad dataset from the archive's S3 manifest (addurls with
  SHA-256 keys and S3 URLs; nothing is downloaded);
- run `dandi validate --missing-file-content=stream` inside the container
  through Apptainer with `datalad containers-run`, wrapped in duct;
- record the run as a job capsule (code/, logs/, derivatives/,
  dataset_description.json) nested as in dandi-compute/001697, and push.

Jobs are keyed on the container version, parameters and the digest of
the validated inputs, so unchanged Dandisets are skipped and failed jobs
are retried. A collect workflow gathers every repository's jobs table
into records/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Mint images by validator version code; flatten Dandiset repositories

Follow the image convention of dandi/dandi-archive#2987:

- The image is ghcr.io/dandi-validations/dandi-validation:<version code>,
  where the code lists the six validator versions
  (d<dandi>-s<dandischema>-n<nwbinspector>-p<pynwb>-h<hdmf>-b<bids-validator-deno>),
  each a plain MAJOR.MINOR.PATCH release. A local segment, such as the
  +28.gbec91fa4 of dandi-cli installed from a commit, is dropped; the full
  versions stay recorded in the image and in each job's logs.
- The environment is a pixi lock (Python, git and git-annex from
  conda-forge), installed by the pixi image into a plain ubuntu:24.04,
  both pinned by digest.
- The build workflow publishes a code only once, refuses an image whose
  installed validators don't make up its code, and attaches the lock to
  the image with ORAS. pipeline.json names the code jobs run, and a test
  checks it against the lock.
- Jobs resolve the image's digest on GHCR and record its reference,
  digest and validator versions in each capsule, and refuse to run an
  image whose validators don't make up the expected code.

Each Dandiset repository is now a standalone (type 2) BIDS derivative
dataset, with pipeline-dandi+validate/ at its root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* README: name the Dandiset repositories by their full GitHub URL

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Keep capsules on tag branches; main holds their submodules

Each Dandiset repository is a standalone BIDS derivative dataset whose
main holds the single dataset_description.json and one git submodule,
pipeline-dandi+validate_tag-<tag>, per capsule branch.

- Each capsule is a DataLad dataset on the branch named exactly by its
  image's tag (e.g. d0.82.0-s0.14.0-n0.7.2-p4.2.0-h6.2.0-b3.0.2), with
  code/, logs/ and derivatives/ at its root, its image's registration,
  and the datalad containers-run record of each run. A rerun replaces
  its contents in a new commit, so earlier runs stay in its history.
- main's submodules point at the same repository and branch, pinned to
  the branch's head when a run is claimed and when it is recorded; a
  deleted branch loses its submodule. dataset_description.json keeps
  each capsule's provenance; the template sync only starts it.
- Job IDs and jobs.tsv are gone: a capsule is identified by its image
  tag, and skipped while its latest run succeeded on the same inputs.
  Collect reads every capsule through main's submodules into
  records/capsules.tsv.
- No git-annex branch is pushed; capsules initialize git-annex as private.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Work on capsules as worktrees; link sourcedata; image under envs/

- Every capsule branch is a git worktree of the runner's one clone of
  the Dandiset repository, at its submodule's path in main, so all of
  them share one object store and one (private) git-annex.
- Each capsule links DANDI's DataLad mirror of the Dandiset,
  github.com/dandisets/<id>, as its sourcedata/ subdataset, pinned to
  the mirror's draft head (read with git ls-remote; nothing is fetched).
  It is there for provenance and self-containment; the validation still
  reads the dataset built from the S3 manifest. The link is recorded in
  the capsule's provenance.
- The image is registered under envs/dandi-validation/image.
- Nothing is gzipped: assets.tsv and validation.jsonl stay plain text,
  readable on GitHub. Results over GitHub's 100 MiB file limit are not
  recorded, and the capsule is left failed saying so.
- submit.sh finds a failed run's record through git rev-parse --git-dir,
  since a worktree has no .git directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Give capsules a study dataset_description; test around a golden example

Two dataset_description.json, as BIDS has it:
- main's describes the repository as a derivative dataset collecting the
  capsules; the template sync manages it.
- each capsule's describes it as a study dataset (sourcedata/ and
  derivatives/), written by the job with the run's provenance: dandi-cli,
  the image (Container, with tag and digest) and this code in GeneratedBy,
  the Dandiset and the pinned mirror commit in SourceDatasets, and the
  inputs under DandiValidations.

The integration tests now run on one golden example, Dandiset 000006,
whose S3 manifest is frozen in tests/example_dandiset/000006:
- tests/expected_output/submitted holds, file by file, what its repository
  holds once a job has formed and claimed its capsule (main, and the tag
  branch); test_golden_example.py runs a real job against local stand-ins
  for github.com and compares. Run-to-run values show as placeholders.
- tests/expected_output/validated holds the capsule's summary.json and
  validation.jsonl after the real validation, which scripts/e2e_local.sh
  (the EndToEnd job) compares.
- test_branches.py checks branch and submodule behavior on the same example.
Set DANDI_VALIDATIONS_REGENERATE_GOLDEN=1 to regenerate; see tests/README.md.

dandi-validations run gains --manifest-directory (read a frozen manifest
instead of S3) and --claim-only. The remote URL recorded for submodules is
the configured one, before any insteadOf rewriting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Build the image without operating-system packages

The build stage installed git from Ubuntu's mirrors only to fetch the
PyPI packages pinned to git commits, and failed when a mirror was
mid-sync. pixi installs the locked conda packages, git among them, before
the PyPI ones, so the environment's own git can do it: put it first on
PATH and drop apt from the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Record validation results in a fixed order

`dandi validate --jobs N` writes each file's results as its worker
finishes, so the same results came out in a different order on GitHub's
runner than locally, and the golden comparison failed although every
record matched. summarize.py now also writes derivatives/validation.jsonl
sorted by file, then issue ID, then record, keeping each line exactly as
dandi-cli wrote it, and ranks ties in summary.json by name. The same
Dandiset and image now always make the same files, and reruns on a
capsule branch can be compared with git diff.

The golden results are re-sorted (the same 946 records), and a golden
mismatch now shows a diff in the test log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Adopt historia's AGENTS.md conventions and pre-commit hooks

AGENTS.md now carries CodyCBakerPhD/historia's instructions, and the code
follows them:
- Multi-input functions take keyword-only arguments, and single-input ones
  positional-only arguments. Imports are at the top of each module, in
  full-module style for external packages and relative within the package.
- Public functions and classes have numpydoc docstrings, and inline
  comments only explain why.
- The package exposes its API through __init__.py and __all__, and the
  tests import only from there. commit_and_publish is public for that, and
  a few names became clearer at package level (render_template,
  template_placeholders, read_capsule_table, CAPSULE_TABLE_COLUMNS,
  ParameterSet).
- CLI flags are one word, mapped onto the explicit keyword arguments
  (--dandiset, --version, --timeout, --manifest, --claim, --lock,
  --versions, --dandisets, --ref, --existing, --url, --verbosity). The
  workflows, the repository template, submit.sh, the end-to-end script and
  the READMEs use them.
- Tests carry the ai_generated marker, put the actual value on the left,
  use parametrize, and have type annotations.
- Progress messages are logged rather than printed, and the image digest
  and manifests are fetched with requests.

.pre-commit-config.yaml and pyproject.toml take historia's hooks and
settings: ruff with every rule, numpydoc validation, mypy, check-jsonschema
and shellcheck, besides black and codespell. A CHANGELOG.md starts with
this PR's entry. The golden example's expected output is regenerated for
the new flags and code.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Run shellcheck from shellcheck-py on pre-commit.ci

koalaman/shellcheck-precommit runs shellcheck in a Docker image, which
pre-commit.ci does not support, so the hook failed there. shellcheck-py
packages the same shellcheck release (0.11.0) for Python.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Install the test extra for the end-to-end job

The expected-output helpers in tests/golden.py import pytest, which the
EndToEnd job did not install, so its last step failed to import them after
a successful validation.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Show the capsule after a real run as one expected output

tests/expected_output now holds, branch by branch, what the example's
repository holds after one validation: main/, and the capsule's branch
with code/, logs/, derivatives/, sourcedata and envs/ side by side. The
submitted/ and validated/ levels are gone.

logs/ shows duct's records, the image's versions, the run's record and
submit.log. duct_info.json and run.json are compared, with measurements
and host details as <varies>. The logs that hold progress output and
samples (duct_stdout, duct_stderr, duct_usage.jsonl, submit.log) show one
run, and only their presence is checked.

tests/golden.py and test_golden_example.py become test_expected_output.py,
with two tests:
- test_claimed_capsule_matches_expected_output forms and claims the
  capsule offline and compares everything but the run's outputs.
- test_validated_capsule_matches_expected_output, marked container, runs
  the job for real and compares the whole repository, then checks that a
  second run skips. scripts/e2e_local.sh runs it for Dandiset 000006, and
  the EndToEnd job uploads the repository it compared.

The fixed environment now also covers the GitHub Actions context in
run.json, and the regeneration variable is
DANDI_VALIDATIONS_REGENERATE_EXPECTED_OUTPUT.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Document the exception the expected-output comparison raises

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Expect the versions of the image CI builds, and report every difference

The expected container_versions.json came from an image built in a
development sandbox, whose environment held five packages and an entry
the image built from the Dockerfile does not. It now lists what the
EndToEnd job's image reports.

The comparison reports every file that differs rather than the first, and
the end-to-end script prints the run's logs in collapsed groups whether or
not the test passes.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Show a GitHub Actions run's logs in the expected output

duct_stdout, duct_stderr, duct_usage.jsonl and submit.log now hold the
logs of the EndToEnd job's run of the example (run 42770129420), as its
script printed them, normalized like the rest of the expected output.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Set the repository README's footer apart with a rule

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Write the repository README one sentence per line, and link BIDS study datasets

The layout paragraph now names the repository a BIDS derivative dataset
(type 2) and each capsule a BIDS study dataset, linking the specification's
section on each.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Reword how the repository README describes building and streaming

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Make the repository README's note on sourcedata/ a footnote

The note that sourcedata/ is linked for provenance only is now a footnote
to the first step, which builds the dataset that is validated.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Drop summarize.py in favor of dandi validate's own --summary

run.sh passes --summary to dandi validate, which prints the counts by
severity, validator and standard to the logs, and copies its JSON Lines
results to derivatives/ as they are. Sorting the results and a structured
summary are to come from dandi-cli itself.

- The capsule table counts its columns from derivatives/validation.jsonl.
  dandi_validate_exit_code is gone, since nothing records it any more.
- The expected-output tests sort validation.jsonl when normalizing it,
  because dandi validate --jobs writes results as its workers finish.
- summarize.py, summary.json and their test are removed.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Show logs of a run with dandi validate --summary in the expected output

duct_stdout, duct_stderr, duct_usage.jsonl and submit.log now hold the
logs of the EndToEnd job's run on fd8d997 (run 42851534547), whose
duct_stderr ends with dandi validate's summary.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Check Markdown with md-lines, one sentence per line

The md-lines hook (CodyCBakerPhD/md-lines-pre-commit) needs Python 3.13,
so it is pinned to it. README.md and tests/README.md are reflowed to its
one-sentence-per-line form.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Move the Collect records workflow to dandi-validations-records

The workflow commits records/ every 6 hours, which would fill this
repository's history with bot commits. It now runs in
dandi-validations/dandi-validations-records, which installs this package
and keeps the records there. The collect command and the capsule table
stay here, where they are tested.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Call each Dandiset repository a BIDS derivative (type 2) dataset in the README

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Move setup, command line and development to docs/README.md

The README keeps the overview and points to docs/README.md for setting up,
the command line and development. The moved sections' links are adjusted,
and the hooks they list now include md-lines.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Collect records per image tag, and accept only fine-grained tokens

- `dandi-validations collect --tags` writes one capsule table per image
  tag, each in a directory named by the tag. The records repository's
  workflow commits each to the branch named by its tag, so that its main
  holds only the workflow.
- `_GITHUB_API_KEY` must be a fine-grained personal access token
  (`github_pat_...`). Classic tokens are refused with a message that says
  so, and the setup docs and workflow notes list the fine-grained
  permissions it needs. The built-in GITHUB_TOKEN of GitHub Actions is
  still accepted when no key is set.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Check that changes to the package bump its version

The Version Check workflow, as in CodyCBakerPhD/historia, fails a pull
request that changes src/ or pyproject.toml without bumping the version
in pyproject.toml. Each capsule's dataset_description.json records that
version, with the commit, as the version of this code that formed it. A
base branch without pyproject.toml yet passes, as for the first version.

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Shorten the setup step for the API key

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Drop the note on classic tokens from the setup steps

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Drop the note on the built-in token from the setup steps

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Make the first manual run of the organization workflows optional in the setup

Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Shorten the notes on conventions and hooks in the development section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Drop the commented-out schedule from each repository's Validate workflow

Runs are started by Dispatch validations from this repository, not by a schedule in each Dandiset repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Write the summary of the results to each capsule's derivatives

`run.sh` reloads the results with `dandi validate --load ... --summary` and keeps the summary in
`derivatives/validation_summary.txt`, next to `validation.jsonl`. The summary is still printed to the
logs during the run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Move the claim marker of the status test to the top of its module

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Render the repository template and submit.sh with Jinja2

Jinja2 replaces the small `{{ name }}` renderer, with `StrictUndefined` and the same check that every
variable gets a value and every value is used. The Validate workflow's GitHub Actions expressions are
wrapped in `{% raw %}`. The rendered files are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT

* Update README.md

Signed-off-by: Cody Baker <cody.c.baker.phd@gmail.com>

* Update README.md

Signed-off-by: Cody Baker <cody.c.baker.phd@gmail.com>

---------

Signed-off-by: Cody Baker <cody.c.baker.phd@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
@CodyCBakerPhD
CodyCBakerPhD removed this pull request from stack #1982 November 10, 2026 18:49
…am-via-datalad-fuse

Brings in #1955's switch from #1967 to #1987 as its base.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
claude and others added 5 commits November 11, 2026 04:23
…am-via-datalad-fuse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…am-via-datalad-fuse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…am-via-datalad-fuse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…am-via-datalad-fuse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd-validate enhancement New feature or request patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants