BrainPath: A Deterministic Addressing Layer for Multimodal Human Brain Data
1. Introduction
There is now a large amount of publicly available human neuroscience data. The TUH EEG Corpus contains recordings from more than 15,000 subjects, OpenNeuro hosts over 1,600 BIDS datasets (Gorgolewski et al. 2016), and HCP, UK Biobank, and ABCD together contribute tens of thousands of multimodal participants. In terms of subject counts, the field has enough data to train models at the scale that transformed language and vision.
In practice, however, this data is difficult to use together. A team that wants to train a model across several archives typically spends months assembling a corpus by hand, reconciling the layouts, file formats, subject identifiers, and preprocessing conventions of each source. The result is tied to that team’s modeling choices (e.g., a sampling rate, a parcellation, a coordinate frame), and changing one of them means redoing much of the work, which is presumably why such corpora are rarely shared. The same problem appears in a measurable form when the data is requested by research agents: in a recent benchmark on viral sequence retrieval, agent accuracy ranged from 16.9% to 91.3% and varied strongly between runs of the same prompt, whereas a deterministic retrieval layer lifted every agent above 90% (Nasri et al. 2026). We take this as evidence that the bottleneck is not the amount of data but the lack of a shared, machine-actionable way to name and request it.
Neuroimaging adds a complication that sequence retrieval does not have: the requested object usually does not exist as a stored file. Denoised BOLD in MNI152 space for a cohort filtered on head motion, for instance, is the output of a pipeline, and the pipeline admits many defensible variants (e.g., a 0.1 Hz versus a 0.5 Hz high-pass cutoff). These variants matter for the results. Delorme (2023) found that, apart from high-pass filtering and bad-channel interpolation, automated EEG preprocessing operations either had no effect on statistical power or decreased it, and when 70 teams analyzed the same fMRI dataset, no two teams chose the same workflow and their hypothesis tests diverged even where their statistical maps were highly correlated (Botvinik-Nezer et al. 2020). Not knowing which variant one has received is therefore comparable to reading coordinates off the wrong genome build.
The field currently deals with this by fixing the choices in curated catalogs, e.g., MOABB (Jayaram and Barachant 2018) for BCI benchmarking and the HCP minimal preprocessing pipelines (Glasser et al. 2013) or UK Biobank’s fixed pipeline for MRI. This works, but the choices live in code, and “minimal” is itself a choice. The field is thus left with a trade-off between fixing the pipeline (and losing flexibility) and assembling one’s own corpus (and losing comparability).
Our proposal is to make the analytic choices part of the artifact’s name. A shared default and a deviation from it then become the same kind of object; they differ in an address rather than in whether an address exists at all. BrainPath is an addressing layer built on this idea. The following address is used as a running example throughout the paper:
brain:///hcp-100307/:fmri/:mni152/:bold/:rest/:denoised/@xyz=-42,38,12;t=0:
It refers to subject 100307 of the HCP dataset, fMRI data in MNI152 space, the BOLD signal acquired at rest and denoised, at one voxel over the full time course. The address says nothing about where the bytes are stored, in what format, or which software produced them, and the artifact does not need to exist at the time the address is written—resolving the address derives it.
The paper makes four contributions. First, the address is a URI, so transport, authority, hierarchy, and request-scoped parameters are inherited from an existing standard rather than reinvented (Section 4). Second, four sigils allow one string to serve as both a name and a query, which in turn makes the state of curation queryable (Section 4.2, Section 6.1). Third, the analytic variant is part of the address, with one normal form behind three surface forms, so that requesting a different parameter means requesting a different artifact (Section 5). Fourth, resolution derives a processing plan from declared operator contracts and reuses existing derivatives by longest-prefix matching (Section 6.2). We then show that a multiverse sweep and a benchmark item can each be expressed in terms of addresses (Section 7). Section 2 first follows the running example from string to bytes, and Section 10 compares the design with BIDS URI, build systems, and workflow engines.
2. One address, end to end
Before going into the details, this section walks through the whole mechanism using the running example. Table 1 breaks the address into its parts.
| Segment | Meaning | Defined in |
|---|---|---|
brain:// |
Scheme: the logical namespace. brain+s3:// or brain+https:// selects a transport |
Section 4.1 |
| (empty authority) | The catalog that resolves the address; empty means the default local one | Section 4.1 |
hcp-100307 |
Key: dataset prefix plus the dataset’s own subject label | Section 6 |
:fmri/:mni152/:bold |
Required facets: modality, space, data type | Section 4.3 |
:rest/:denoised |
Optional qualifiers: acquisition condition, processing | Section 4.3, Section 5 |
@xyz=-42,38,12;t=0: |
Selector: one voxel, in millimetres because the space is a template, over all time points | Section 4.3 |
The sigils are defined in Section 4.2: : marks a vocabulary term, ! one not yet mapped to the vocabulary, @ opens the selector, and * is a wildcard, so replacing hcp-100307 with * turns the same string into a query over every subject.
Resolving an address proceeds through nine stages (parse, normalize, resolve, expand, match, plan, bind, slice, return). For the running example, the stages look as follows:
parse key = hcp-100307, facets = [fmri, mni152, bold, rest, denoised],
selector = xyz(-42,38,12); t(0:)
normalize terms lowercased, selector explicit, declared parameters
filled from operator defaults (sec. 5.2)
resolve every ':' term is in the vocabulary; no '!' terms remain
expand no wildcards: one key
match no materialized bytes for this goal; an fMRIPrep derivative
of this subject in MNI152 is on record
plan lookup, fmri.read, fmri.mc, fmri.coreg, fmri.norm,
fmri.denoise, coord, return cost 26
the derivative covers the first five steps; to execute:
fmri.denoise, coord, return cost 7
bind raw locators, the derivative, and auxiliary inputs
(the subject's T1w, itself an address) attached to the plan
slice selector pushed down to chunked storage: one voxel, all t
return bytes, plus the executed chain with parameters and versions pinned
None of this was written down as a pipeline. The chain of operations is derived from the goal and from a registry of operator contracts (Section 6), the fMRIPrep derivative is reused because its recorded properties cover a prefix of the plan (Section 6.2), and with an empty cache the same address yields the same bytes, only at cost 26 instead of 7. The interactive query planner reproduces this trace, i.e., the parse, the plan, the costs, and the effect of switching reuse off.
3. Requirements
Table 2 lists the requirements the design has to satisfy, grouped by concern, together with the section in which each one is addressed. In the following sections we refer to a requirement by its number wherever a design decision is made because of it.
| Requirement | Section | |
|---|---|---|
| Identity | ||
| R1 | One address denotes one artifact: the same address yields the same bytes, across catalogs and over time | Section 4, Section 5.2, Section 6.2 |
| R2 | Identity is independent of catalog and transport | Section 4.1 |
| R3 | Identifiers are collision-free across datasets, without linking individuals across them | Section 6 |
| R6 | Addresses are safe to publish: no personal data in the name | Section 6, Section 5.3 |
| Expressiveness | ||
| R4 | One grammar covers fMRI, EEG, MEG, DWI, fNIRS, and behavior; adding a modality does not change it | Section 4.3 |
| R5 | Addresses are legible to a reviewer and constructible by a program | Section 4 |
| R11 | New operators and vocabulary terms need no grammar or planner change | Section 4.3, Section 6 |
| R14 | One expression selects a set of artifacts | Section 4.2, Section 6.1 |
| Derivation | ||
| R7 | An address may name an artifact that does not exist; resolution materializes it | Section 5, Section 6 |
| R8 | The analytic variant is in the address, not in a pipeline configuration | Section 5 |
| R9 | Provenance is machine-readable and re-executable | Section 6, Section 6.2 |
| R10 | The cost of a request is knowable before execution | Section 6.2 |
| Operation | ||
| R12 | Partially curated data stays queryable | Section 4.2, Section 8 |
| R13 | Cohorts are selectable on quality metrics and subject facets | Section 6.1 |
| R15 | Reads are chunked and zero-copy, sized for training batches | Section 8 |
| R16 | Access tiers are enforced across differing data use agreements | Section 6 |
4. The address
4.1 A URI, not an identifier resembling one
A URI already separates an access specification into the components this problem needs: a scheme that selects how a thing is reached, an authority that names who resolves it, a hierarchical path that names the thing, and query and fragment components for request-scoped parameters. A new identifier format would have to re-derive all four and would then also need client tooling that already exists for URIs.
The scheme brain names the logical namespace, and an optional suffix names the transport used to reach a catalog, so brain:///<path>, brain+https://catalog.example.org/<path>, and brain+s3://archive/<path> all name the same artifact (R2). The authority holds the catalog, i.e., where an address is resolved; whose data it refers to is given by the dataset prefix inside the key (hcp in hcp-100307), so provenance travels with the key when an address is copied between catalogs.
Everything after the authority is the identity of the artifact, so two addresses with identical paths denote the same artifact regardless of scheme or authority, and R1 can be checked by comparing strings. The query and fragment components remain available for request-scoped options such as the output format or an access token; a literal ? or # is therefore not allowed in the path, which is also why unresolved terms are marked with ! rather than ?. A parameter that changes the produced bytes is by definition not request-scoped, and canonicalization moves it into the path (Section 5.2).
The design has two layers. The raw layer consists of the provider-native URIs under which the original bytes are stored (e.g., s3://openneuro.org/ds002158/...); these are never rewritten, because the provider’s layout is itself the provenance record. The canonical layer is the brain:// address. A catalog maps canonical addresses to raw sources and to the derivation that produces what was asked for, and a .raw accessor returns the native URI (R9).
4.2 Grammar and sigils
address = scheme "://" [ authority ] "/" keys *( "/" facet ) [ "/" coords ]
scheme = "brain" [ "+" transport ]
transport = "https" / "s3" / "file" / token
authority = catalog ; empty selects the default local catalog
keys = key *( "," key ) / "*"
key = prefix "-" local-id *( "/" sublevel )
facet = sigil term [ "(" param *( "," param ) ")" ]
sigil = ":" / "!" ; resolved / unresolved
param = name "=" value
coords = "@" ( "*" / axis *( ";" axis ) )
axis = akey "=" ( point / range / namelist )
point = number *( "," number )
namelist = token *( "," token )
range = [ number ] ":" [ number ] [ ":" step ] ; half-open; ends omissible
step = number
Lexical productions are omitted; catalog, prefix, local-id, sublevel, term, akey, name, value, and token are unreserved-character strings in the sense of RFC 3986 (Berners-Lee et al. 2005), and number is an integer or decimal literal.
The sigils : and ! split the facets into those the catalog understands and those it does not yet understand. Treating “not yet understood” as an indexable state rather than as missing data keeps partially curated data queryable (R12) and turns ingestion into the gradual rewriting of ! terms into : terms (Section 8). The wildcard * lets one string act as both a name and a query, e.g., brain:///*/:fmri/... names a cohort (R14). Earlier drafts used ~ for unresolved terms, which collides with the shell’s home-directory expansion, and ? is the URI query delimiter, hence !.
4.3 Facets and coordinates
Three facets are required and positional: :modality (:fmri, :eeg, :meg, :t1w, :dwi, :fnirs, :behavior), :space (:native, :mni152, :fsaverage, :source, and :task for behavioral data, whose coordinate frame is the task’s trial structure), and :dtype (:bold, :voltage, :fa, :connectivity, :trials). They may be followed by optional qualifiers describing the acquisition condition (:rest, :task), the processing applied (:denoised, :filtered), or the feature form (:parcellated, :roi-mean). Because facets are drawn from a closed vocabulary, they can be dictionary-encoded as integers, matched as a vector, and validated by set membership, and adding a modality means adding a term and its operators rather than changing the grammar (R4, R11).
The trailing @ segment selects a region within an artifact. The syntax follows W3C Media Fragments (Troncy et al. 2012), with the following forms:
@* the whole artifact
@xyz=-42,38,12 a point
@xyz=-42:40,30:50,10:20 a box
@t=0:1200 a time range; @t=0: open-ended; @t=0:1200:2 strided
@ch=Cz a named stream
@trial=0:40 a range of trials in a behavioral artifact
@xyz=-42,38,12;t=0: axes combined with ';'
Two conventions differ from Media Fragments: ranges use : instead of a comma, since the comma already separates the components of xyz, and ranges are half-open as in Python and NumPy slicing, so that adjacent ranges tile without off-by-one corrections. Selectors are typed by the facets that precede them, i.e., :space fixes the units of @xyz (millimetres in a template space, voxel indices in :native) and :modality fixes how @t is indexed. This is what allows one selector syntax to serve volumetric, surface, and sensor data, and it is why the selector comes last.
4.4 Normalization and validation
Normalization resolves an empty authority, lowercases the terms, rewrites the key to the form {prefix}-{local-id}, adds @* if the selector is absent, and applies the parameter rules of Section 5.2. The result is the unique normal form under which an artifact is indexed and cached. Validation then checks that the string parses, that : terms are members of the vocabulary, that parameters are declared and their values within the declared domain, that the selector is well formed with respect to the facets that type it, and that no literal ? or # appears. An unrecognized term can be rewritten with ! and remains queryable, whereas a malformed parameter or selector cannot, since no operator could satisfy such a request.
5. Variants in the address
5.1 Why the variant must be in the name
As discussed in Section 1, preprocessing admits many defensible variants and the choice among them affects the results. The methodological response to this is well established: enumerate the reasonable analysis paths and report results across them, as in multiverse analysis (Steegen et al. 2016). How to name the resulting artifacts is less settled. In practice the variant is recorded in a pipeline configuration file, a directory name, or a BIDS desc- label, so two artifacts that differ in a meaningful way can carry the same name, and a name that does not determine the bytes does not satisfy R1. The variant space is also large: a pipeline with k parameters and m plausible values per parameter yields m^k variants per recording. The naming scheme must therefore be able to denote variants that have never been computed, at negligible cost, so that the space is addressable without being materialized (R7, R8).
5.2 Three surface forms, one normal form
The primary form is a parameterized qualifier, i.e., a qualifier followed by named parameters in parentheses:
brain:///hcp-100307/:eeg/:native/:voltage/:rest/:filtered(hp=0.1,lp=40)/@ch=Cz
brain:///hcp-100307/:eeg/:native/:voltage/:rest/:filtered(hp=0.5,lp=40)/@ch=Cz
These are two different artifacts with two different names, and both can be derived on demand; parentheses, commas, and = are allowed in a path segment by RFC 3986 (Berners-Lee et al. 2005), so no percent-encoding is needed. The second form is a named preset, i.e., a vocabulary term that expands to a parameterization: a lab can publish :bandpass-strict as a short name for :filtered(hp=0.5,lp=40), which keeps common addresses short and makes a convention citable. The third form uses query parameters, which allows a client to sweep one parameter without rebuilding the path; this form does not survive canonicalization.
Without a rule that collapses them, three surface forms would be three identities. Canonicalization therefore applies the following steps in order: expand presets, move byte-affecting query parameters into the path, fill in omitted parameters from the operator’s declared defaults, sort parameters by name, and normalize values (so that 0.50, 0.5, and 5e-1 become the same). As a result, the three addresses below share one cache key:
in: .../:rest/:bandpass-strict/@ch=Cz
in: .../:rest/:filtered(lp=40,hp=0.50)/@ch=Cz
in: .../:rest/:filtered/@ch=Cz?hp=0.5&lp=40
out: .../:rest/:filtered(hp=0.5,lp=40)/@ch=Cz
Two of these steps protect against failures that are easy to overlook. The first is the eager expansion of defaults: if defaults were resolved at execution time, a bare :filtered would mean whatever the operator’s default happened to be on that day, and changing the default in a later release would silently change the meaning of every address that omits the parameter (i.e., R1 would break over time). The second is the lifting of query parameters into the path: if a parameter that affects the bytes stayed in the query component, the query would have to be part of the identity, and correctness would depend on whether a given HTTP cache keys on query strings. In short, a parameter that changes the bytes belongs in the path.
Parameters are not free-form. Each operator declares the parameters it accepts, with their types, domains, and defaults (Section 6), and an undeclared name or an out-of-domain value is rejected when the address is parsed rather than producing a plausible-looking artifact that nobody can reproduce. Unresolved terms are the one exception: !weirdfilter(hp=0.1) carries its parameters verbatim until the term is resolved.
5.3 Addressable is not materialized
Most points in the variant space are never computed; an uncomputed variant is derived on request (Section 6.2). Combining parameters with the sigils gives two further capabilities. First, since a parameter value is a position in the address and * may appear at any position, a parameter sweep is itself addressable:
brain:///*/:eeg/:native/:voltage/:rest/:filtered(hp=*,lp=40)/@ch=Cz
A specification curve thus becomes a query result rather than a scripting exercise. Second, because the variant is part of the name and the name can be published (R6), a method becomes citable: a paper can state its preprocessing by quoting an address, and a reader who disagrees with a choice can evaluate the alternative by changing one parameter.
6. Data model
The data model consists of three classes, expressed in LinkML so that the schema is machine-readable. We kept the model deliberately small; the expressiveness of the system lies in the address grammar and in the operator registry rather than in the entity model.
A Key names a scope of data. Brain data follows a containment hierarchy (catalog, dataset, subject, session, run), and modeling it as five joined entity classes would make every cross-level question a five-way join. We instead use one recursive relation with an id (e.g., hcp-100307/ses-01/run-2), a level, and a parent; since descendants share an id prefix, selecting a subtree is a prefix scan. Level-specific attributes (e.g., age, sex, and diagnosis at the subject level; modality, sampling rate, and the raw locator at the run level) are attached to the same class and populated where they apply. The relation is therefore semi-structured, which we accept in exchange for avoiding a join on every query. A key’s id has the form {dataset_prefix}-{local_id}, where the local id is the dataset’s own subject label; it is never derived, hashed, or linked across datasets (R3). Sensitive attributes are stored as queryable fields under the access controls the source agreement requires (R16) and never appear in an address (R6): the name carries identity and the catalog carries attributes.
A Representation is what an address names, and its identifier is the canonical address without the selector. Besides the content facets it records materialized, rawUri, derivedFrom (the ordered operator chain with resolved parameters), the pinned pipeline version, and quality metrics such as meanFd and tsnr that can be used as query predicates. The materialized flag is what makes an address a specification rather than a pointer, since a representation can be indexed and queried while no bytes exist (R7), and derivedFrom is what makes a result re-executable by a third party (R9).
A Transform is a registered operator. It declares requires and provides sets over representation properties, an operationType (map, flatMap, reduce, filter, compose, or write), a versioned uses, parameters with domains and defaults, auxiliary inputs that are themselves addresses, and a relative cost. The requires/provides pair is the precondition-effect contract used in classical planning, which is what allows a plan to be derived from a goal rather than written by hand, so that adding an operator is an entry in the registry and not a change to the planner (R11). The inputs field makes planning recursive (e.g., registration needs a structural scan and parcellation needs an atlas, each resolved by its own plan). ## 7. Querying and resolution {#sec-query}
7.1 Patterns and filters
Since * can appear at any position, the grammar that names a single artifact also names a set of artifacts (R14):
brain:///*/:fmri/:mni152/:bold/:rest/:denoised/@* this artifact for every subject
brain:///*/!* anything with an unresolved term
brain:///*/:*/:*/:*/@* fully resolved artifacts only
The last two patterns have no obvious equivalent in other systems: because unresolved terms are an indexable state, the state of curation itself can be queried, with !* returning the backlog and an all-: pattern returning what is fully curated. A pattern matches when every constrained position agrees and the coordinate extent intersects the selector; with facets dictionary-encoded and keys prefix-indexed, this is a vectorized scan rather than a join. Note that matched artifacts need not exist, since a pattern ranges over what a catalog can produce.
Cohort predicates such as motion thresholds or age ranges are not part of an artifact’s identity and are therefore not expressed in the address (encoding them would make two selections of the same artifact look like two different artifacts). A query consequently has two parts, a pattern that gives the shape and a filter that gives the selection:
dataset.query(
"brain:///*/:fmri/:mni152/:bold/:rest/:denoised/@*",
where="mean_fd < 0.5 and outlier_fraction < 0.3 and group == 'control'",
)Building a training set with quality control is then a single query rather than a script that fetches, computes, and discards (R13). A query returns names rather than bytes, and the expansion of a pattern is a publishable specification of a training set.
7.2 Resolution: planning and reuse
Resolution follows the nine stages shown in Section 2. The first three (parse, normalize, resolve) are addressing proper; the remaining six are query compilation and execution. An address that names an existing artifact and one that names an artifact that has never been computed take the same route and differ only in how much work the match stage leaves for the planner.
The address states a goal. The planner selects every operator in the goal’s modality family whose condition holds and orders them topologically by their precondition-effect dependencies, starting from the properties that already hold; a goal in native space, for example, starts with the spatial property satisfied, so registration operators are never selected. The chain for the running example is not stored anywhere as a pipeline but derived from the goal and the registry, so supporting a new kind of variant means registering operators rather than editing the planner (R11). Planning is recursive over a DAG of addresses, since auxiliary inputs are themselves addresses, and the cost of a request is the cost of its DAG, known before anything is executed (R10).
Standard pipelines already produce expensive derivatives, and the planner reuses them. A materialized derivative records which properties it satisfies; the planner takes the longest leading prefix of the plan that these properties cover, skips it, and executes the rest. For the running example, an fMRIPrep derivative in MNI152 space provides the first five steps:
plan lookup fmri.read fmri.mc fmri.coreg fmri.norm | fmri.denoise coord return
|---------- provided by fMRIPrep derivative --------|-------- executed --------|
cost 26 without reuse 7 with reuse
This is a special case of answering queries using views (Halevy 2001) for linear chains: the view is a derivative, usability is prefix containment, and the rewrite is prefix truncation. Restricting reuse to prefixes keeps matching cheap, at the price of missing derivatives that overlap with a plan without being a prefix of it. Two properties are worth stating explicitly. First, reuse never affects correctness, because with an empty cache the same address yields the same bytes, only more slowly. Second, matching is parameter-aware: a derivative filtered at hp=0.5 does not satisfy a goal that requires hp=0.1, because the properties a derivative provides include its resolved parameters; without this, prefix matching would serve the wrong variant while reporting success.
Not every request produces a single chain: a wildcard facet leaves a template that is grounded once per matching entry, and a cross-modal target is planned as a join over per-modality sub-plans. In both cases the planner reports which case applies. Every returned artifact carries the operator chain that produced it, with parameters resolved and versions pinned, and the raw sources remain reachable, so that a colleague or an agent can re-execute the derivation and obtain the same bytes (R1, R9).
8. Two practices that become addresses
Two things that are currently done with ad hoc scripts become objects in the address space; neither needs machinery beyond what the preceding sections define.
A multiverse analysis is a query. As shown in Section 5.3, a wildcard in a parameter position names a sweep, so the question “how much of this result survives a change of the high-pass cutoff” is a single pattern whose cost is known before it runs (R10). Robustness across variants can thus be reported as routinely as a point estimate, and a reader can extend the sweep by editing the pattern.
A benchmark item is an address, a split, and a metric. Benchmarks for brain models are currently reproducible at the level of a dataset name and a prose description of the preprocessing; if every item is an address instead, two groups that report on the benchmark have scored the same bytes, and a disagreement about preprocessing becomes a disagreement about one visible parameter. The same mechanism controls leakage, since subjects excluded from a pretraining corpus are excluded by a published pattern that can be checked against a model’s training manifest.
9. Storage and ingestion
Metadata and bytes are kept apart. The catalog holds keys, representations, operators, and quality metrics; it is small, structured, and queried constantly. The store holds the bytes. Queries run against the catalog and return addresses, and only resolution reads from the store, so filtering 100,000 subjects means scanning a compact table rather than traversing an archive. Every request is appended to a log from which chunking, materialization, and curation priorities are derived.
Chunk layout is derived from the request log. A training loop draws shuffled minibatches, each of which is a window of channels over a time range or of voxels over a volume range (R15), and if the chunk shape and the selector shape disagree every read is amplified (e.g., a 4D volume chunked per time point makes a single voxel time course touch every chunk). Because every request carries an explicit, typed selector, the catalog accumulates a structured log of its access pattern, i.e., which region of which representation is read how often, and chunk shape, compression, and the set of materialized derivatives can follow from that log instead of from guesses made when the archive was first laid out. On object storage, fine chunks are grouped into larger objects that keep the fine grid inside, since fine chunking multiplies the number of requests.
Ingestion is incremental. Onboarding a dataset is usually all-or-nothing, i.e., the dataset must be fully mapped onto a schema before any of it can be used. In BrainPath the minimum is a key for each entity and a raw locator for each run; every recording then has an address and can be resolved, because resolution derives what it needs from the raw data, and facets that can be read from the source metadata become : terms while the rest become ! terms (R12). No bytes are copied, so the cost of onboarding scales with the number of entities rather than with data volume, and curation can proceed against a live corpus in the order the request log shows to be most needed. The natural metric is therefore time to queryable, i.e., the interval between obtaining a dataset and its first successful resolution, rather than time to fully ingested, a state that a growing corpus never reaches.
10. Reference implementation and evaluation plan
The reference implementation shows that the scheme can be resolved mechanically. A parser maps an address to a syntax tree (transport, catalog, key set, classified facets, selector). A registry of roughly thirty operators across five modality families declares their conditions, requires and provides sets, auxiliary inputs, costs, and dataflow shapes; the registry is data, not code. The planner computes the goal, selects and orders operators, collects auxiliary inputs, and reports the non-linear cases. A small set of registered derivatives, standing in for standard pipeline outputs, supports longest-prefix reuse, which can be switched off to confirm that it changes the cost but never the target of the plan. The interactive query planner shows the parse, the plan, the costs, and the effect of reuse; it produced the examples in this paper, and editing one facet there changes the plan as the design predicts.
The implementation stops at planning. It does not execute operators, read neuroimaging data, or implement the catalog, the store, access scoping, or ingestion, and we make no measured claims about these parts. It also predates the parameterized qualifiers of Section 5; since these are the paper’s main contribution, closing that gap (parser, canonicalization, parameter declarations in the registry, parameter-aware reuse) is the priority.
Three claims can be measured against a corpus we already hold (more than thirty public datasets, more than 23,000 subjects, more than five terabytes, with fMRIPrep and MNE derivatives for a subset). Table 3 states how we plan to measure each one and what result would falsify it.
| Measurement | Definition | Prediction | Falsified by |
|---|---|---|---|
| Time to queryable | From obtaining a dataset to its first successful resolution, with the fraction of facets starting as ! |
Hours, since no bytes are copied | Days |
| Reuse hit rate | Fraction of plans for which longest-prefix matching finds a materialized derivative, and the cost saved, under a request distribution drawn from training loops on the corpus | High for template-space requests, low for native-space ones; the gap to an oracle admitting overlapping derivatives bounds what prefix matching leaves on the table | A rate near zero |
| Read amplification | Bytes read over bytes returned for selector-shaped minibatch reads, before and after re-chunking from the request log | Re-chunking reduces it | No reduction |
13. Conclusion
Public neuroscience data is hard to use together because there is no shared way to name what a researcher or an agent wants, which is rarely a stored file and usually the specification of a derivation. BrainPath turns that specification into a URI. Four sigils allow one string to serve as a name and as a query; the analytic variant is part of the address and has one normal form, so a different parameter is a different artifact; and resolution derives a plan from declared operator contracts, reuses derivatives by longest-prefix matching, and returns enough provenance to re-execute the derivation. What remains is to build the system at scale; Table 3 states the three measurements that will decide.