46 Pattern — federated cohort, site-retained
Deployment pattern. Follows the fixed template. Coordinate axes are defined once in Deployment patterns and are not re-explained here.
Status: planned — every component this shape composes is available; the assembly itself is not yet stood up anywhere in the project. TODO — confirm and drop this line once a cohort runs it.
A federated cohort is a longitudinal collection that behaves as one dataset to its consumers and as many independent datasets to its owners. Each contributing site runs its own collection with its own tools, deposits what it produced, and — uniquely in this catalog — keeps the right to decide, for the whole life of the cohort, who may read its contribution. There is no umbrella body that can grant access on a contributor’s behalf. The “whole cohort” is therefore not a place; it is the intersection of one consumer’s permissions across every site, assembled on the consumer’s machine. Governance was never delegated upward, so it cannot be handed over later.
Position on the coordinate system: delegated-to-institution authority, retained per site for the cohort’s lifetime (no umbrella can decide for a contributor) · constrained-on-prem resources at each site, composed rather than pooled · standalone site forges composed by superimposition (a peer-overlay with no umbrella provider) · project ontology for pristine capture, community standards for the harmonised derivatives · mixed posture — archival FAIR for derivatives, confined for pristine personal data, hot during live collection · human consumers · one large cohort assembled from many site datasets
46.1 Context and constraints
- Control is the founding commitment, not a feature. Sites joined because they would not surrender data governance to a central authority. The design may not create a single object that, if compromised or re-purposed, exposes every contributor at once. The unit of control is a site’s contribution to a data type, not the cohort.
- A request must be arguable as a slice. “All of the cohort” is a request no site can responsibly weigh, and no project actually needs. The dataset is therefore compartmentalised by data type — MRI, genetics, phenotypic, biospecimen assay — so an access request names the specific parts a given project can justify, never all-or-nothing. Lean requests are the property the whole compartmentalisation exists to buy.
- Modalities differ in every dimension that matters. MRI and genomics are heavy and slow to move; phenotypic tables are small; a biospecimen assay has a physical sample behind it. Personal-data sensitivity and storage demand are not uniform across the cohort, so a single access granularity would fit none of them.
- Pristine first, harmonised second. Each site’s own workflow is the source of truth and its artifacts are captured in their pristine form — including proprietary vendor formats. Cross-site harmonisation and alignment to community standards is a separate, downstream, derived step, never an overwrite of what the site collected.
46.2 Capabilities composed
- One repository per data type, per site. Every component (MRI, genetics, phenotypic, assay) lands in its own git-annex repository, hosted by forgejo-aneksajo inside that site’s own forgejo organisation. The organisation’s membership — not any cohort-wide setting — is the access boundary, so forgejo-aneksajo’s role as the single point of authentication and authorization is the compartmentalisation. Repository boundaries are how “lean requests” is physically implemented. See the data substrate and the platform foundation.
- A site dataset that superimposes its components. A site’s components nest under one site-level dataset, so the site can be cloned, pinned, and cited as a unit while each modality still lives on the storage and remote that suits it. This nesting is DataLad’s nested datasets that behave like one — DataLad is the natural client here even though the host is forgejo-aneksajo.
- A cohort dataset that superimposes the sites. The same mechanism one level up: the full cohort is a dataset whose members are the individual site datasets. It is assembled by superimposition, not by copying — the cohort dataset holds pointers (git-annex keys and submodule references), never bytes it owns. The cohort is a view, and a different consumer’s clone of it has different contents because it resolves to different authorized copies.
- Pristine capture is upstream and out of the platform’s way. Collection uses site-local solutions; the platform receives artifacts. Pristine data are pushed to forgejo-aneksajo, or run through a local pipeline that itself commits its outputs. The platform imposes no ingestion tool on collection.
- Harmonisation as a provenance-captured workflow. The transformation from pristine to harmonised is executed by a Forgejo runner under forgejo-aneksajo orchestration, and writes a dedicated derivative dataset that is deposited back like any other component. The derivation is re-runnable and traceable to the exact pristine inputs — see workflow execution and DataLad’s actionable provenance. Pristine and derivative are different repositories, so a site can withhold one and grant the other.
- Deliberately omitted / optional. Dump Things is not the capture path — collection is site-local. shacl-vue is the natural home for validating the harmonised derivatives against the community ontology, but a site can ship derivatives without it. search and
study-managementare consumers layered on top, not required to stand the cohort up.
46.3 Carrots that carry it
- Sites say yes. The thing that gets a cautious institution into a cohort is knowing it never hands the decision away: its access policy is enforced by its own forge organisation, on its own repository, for as long as the cohort lives.
- A lean request is an approvable request. A reviewer weighs “this project wants the phenotypic tables and the hormone assay for a defined window” — a real, bounded decision — instead of rubber-stamping or reflexively refusing a bulk release. Compartmentalisation turns governance from a veto into a yes-some-of-the-time.
- Nobody has to distort what they collected. Because harmonisation is a derivative, a site keeps its pristine artifacts authoritative and can adopt a new community standard by re-running a pipeline, not by re-collecting or rewriting history.
- Heavy modalities stay where they are cheap. MRI and genomics live on the storage their size demands; a consumer who only needed phenotypic data never pulls a terabyte. Per-component repositories make the cost of a request proportional to the request.
- Re-harmonisation is a pipeline change, not an excavation. Every derivative carries provenance back to pristine bytes, so when the community vocabulary moves, the cohort is updated by re-running the step — and the change is legible as a diff.
- A new site is a superimposition, not a migration. Joining means hosting your own org and being referenced by the cohort dataset — there is no shared silo to move into, which is what keeps the federation growable.
46.4 Governance
TODO — resolve against a real cohort. The decisions this shape forces the participants to name:
- Who decides per contribution. Authority never leaves the contributing site. Each site names who grants access to each of its repositories, and that grant is revocable for the cohort’s whole life — there is no irrevocable release to a central body to fall back on.
- The access object is per repository, not per cohort. There is deliberately no “cohort access.” Permission is forge membership on a given repo plus git-annex trust on its remote, decided by the owning site. A consumer’s access to “the cohort” is the union of grants they happened to collect.
- What a derivative inherits. A harmonised derivative of withheld pristine data is itself sensitive — it must default to at least the strictness of its source, and the owning site (not the pipeline author) sets that.
- Pinning vs freshness. A cohort assembled from live, moving site datasets is not a stable object until the superimposition is pinned. Who is allowed to publish a pinned cohort release, and what consumers must acknowledge about a moving view, has to be settled before first use.
- Onward re-sharing. Because no one holds a central licence, a consumer who is granted a slice holds only that slice; whether they may pass it on is each site’s per-repository condition, not a cohort policy.
46.5 Overlay and federation points
- Site forges are overlaid, never displaced. Each site’s organisation and storage stay under its own control; the cohort references those remotes and resolves content only where a site has granted a consumer reach. This is the overlay model applied per contribution.
- A peer-overlay without an umbrella. Like in a consortium overlay, there is no natural provider — but unlike it, the union here is a dataset, not a query. The consortium overlay interconnects sites; this shape composes them into a citable whole that exists only in each consumer’s authorized view.
- The inverse of a hub. In node in a data hub a hub grants access across collections; here nothing grants across collections. The “hub” is a dataset of pointers, and it grants nothing on its own.
- Withheld, absent, and unauthorized look identical. To a consumer, a key the owning site has not shared, a key no remote currently holds, and a key they are not trusted for all resolve to the same refusal — the same signature failure documented for code to data. The platform expresses per-site policy only as per-repository availability, never as a cohort-wide flag.
- A pinned cohort release federates for free. Once the superimposition is pinned, it is an ordinary dataset with a stable identifier: citable, depositable, and shareable onward where each constituent’s terms allow — the return value half of capture once, reuse widely, assembled across owners who never pooled control.
46.6 What is hard
- N permissions, for the lifetime of the cohort. Access to the cohort is never one grant; it is a per-site, per-component conversation that must be re-walked whenever the project, the personnel, or the policy changes. This is the central, irreducible cost — and the price of the control that makes sites join at all.
- Harmonisation is where the real work (and the real disputes) live. The same modality collected by different site tools in different proprietary formats has to converge. The pipeline is scientifically load-bearing, and disagreement about the right transformation is not a tooling problem the platform can settle.
- Proprietary formats fight the open substrate. Pristine bytes may be readable only inside a vendor toolchain, so the harmonisation runner must carry that toolchain — a closed dependency inside an otherwise open platform, and a recurring provisioning burden.
- Identifier crosswalk without a broker. Linking a participant across site datasets, so a consumer can assemble one person’s record, must happen without any site learning another site’s identities — a crosswalk the platform can host but no site can be made to accept.
- Modality skew breaks naive retrieval. A
git-annex geton a cohort dataset will try to fetch everything; the asymmetry between a gigabyte-scale assay and a terabyte-scale MRI series has to be handled by the consumer’s discipline, not by the dataset’s structure alone. - Version skew across live contributors. A derivative is only as sound as the site-dataset version it was derived from; superimposing sites that advance independently yields a cohort that silently drifts unless every consumer pins a release. Pinning buys stability and costs currency.
- The empty middle. Compartmentalisation lets a consumer be granted phenotypic data for a participant but not the MRI that contextualises it — a lawful, expected outcome that can still make the slice scientifically unusable. Lean requests are easier to approve precisely because they are partial.