1. Introduction
The FAIR Data Train (FDT) is a FAIR-based platform framework that aims at guaranteeing a specific level of interoperability among its participant elements. It defines a set of application types and their expected behaviours to support the findability, accessibility, interoperability and reusability of data following the FAIR principles [FAIR-PRINCIPLES]. The FDT follows the analogy of a train system with two main elements, stations and trains. Data Stations make data (or other kinds of digital objects) available and publish metadata about themselves and about their content. Trains represent analysis or processing algorithms that are sent to Data Stations to process the data where it is: the computation travels to the data, and the data stays. A registry indexes the metadata the stations publish, so that a client can find out which station holds which data before sending anything anywhere.
In this document, data means not only the content of artefacts such as databases, tables and graphs, but also other kinds of digital objects such as controlled vocabularies, ontologies and models; unless otherwise stated the terms are used interchangeably. The FAIR Data Train architecture defines a number of key capabilities:
-
provisioning of metadata to describe digital objects;
-
a common representation format [RDF11-CONCEPTS] to express the metadata in a machine-actionable manner;
-
a common approach to inform clients on how to navigate through the metadata structure;
-
a common representation format [SHACL] for the metadata schemas — and, since version 0.2, for what a train requires of a station’s data and what a station’s data conforms to, which is how a station is selected for a train;
-
a common way of describing how data sources support interactions with their content, in terms of metadata properties of the station;
-
a common way to represent how client applications interact with data: the interfaces and protocols by which a station accepts an incoming train, negotiates the terms under which it may run, runs it, and decides what may leave.
The main goal of the FDT general architecture is to define a set of behaviours, interfaces and protocols to improve interoperability among data sources and data processing services. To fulfil this goal, the FDT specifications help developers build new applications, or extend existing ones, so that they can take part in the FAIR Data Train ecosystem. The envisioned scenario is one with a multitude of trains, stations and client applications, independently created and able to interact with one another because they all follow the same base guidelines — interfaces, protocols and representation formats.
1.1. Purpose
The purpose of this document is to present the general architecture of the FAIR Data Train: its roles, its components, how they interact and the standards they rest on. It is primarily intended as a reference for developers willing to add FDT functionality to their existing applications, or to develop their own implementation of an FDT component. Knowledge of RDF, SHACL, ODRL and REST APIs is required to follow it.
This document is the entry point to a set of specifications. Where a part of the architecture is specified in full elsewhere, this document says what the part is for and points at the specification that governs it. In version 0.3 there are two such documents: the FDT Visit Protocol [FDT-VISIT-PROTOCOL], which specifies the conversation between a Data Station and a Train Handler for one visit of one train; and the FDT Metadata specification [FDT-METADATA], which specifies what a train, a Train Depot, a Train Handler and a Data Station publish about themselves, and how every signing party publishes its keys.
1.2. How this document relates to the reference implementation
This section is non-normative.
A reference implementation of the ecosystem exists [FDT-COMMONS] and this version of the architecture was written against it: every component in § 3 Components has a running implementation — of the two services of § 3.6 Identifier translation and vocabulary alignment, identifier translation runs and vocabulary alignment does not yet — the interactions of § 4 Interactions are exercised end to end by its test suites and testbed, and the normative artefacts of the Visit Protocol — JSON Schemas, OpenAPI documents, SHACL shapes and the fixtures every component is tested against — are the contracts that implementation is built on. The architectural decisions behind the text are recorded as Architecture Decision Records [FDT-ADR] and are cited here by number (ADR-nnn) where a reader may want the reasoning rather than the result.
1.3. Changes since version 0.1
This section is non-normative.
Version 0.1 (10 July 2025) described the FDT as it was first conceived. Version 0.2 brings it up to date with what has since been built, and the following names and ideas changed:
| Version 0.1 | Version 0.2 or 0.3 | Why |
|---|---|---|
| Personal Gateway | Individual Gateway | The controller-side agent serves one controller — a company or a natural person — across every station holding their data, not only persons. |
| Station Directory, "a special kind of Data Station" | FDT Registry | The registry is an index over what stations and depots publish and is not a trust anchor: nothing may be granted on the strength of an entry, and it is not a station. |
| Train Provider | Train Creator | The role is the party that created a train and is answerable for it. The ontology keeps fdt-o:TrainProvider as the IRI with "Train Creator" as its label, because a published IRI is a promise.
|
| — | Train Depot | Trains are contracted assets with an identity, a creator’s offer and a verifiable payload. The Depot is the authority for a train; a station resolves a train there before running it. |
| A Data Station hosts data | A Data Station hosts any digital object | "Data" is meant as the FAIR principles mean it. Identifier translation between pseudonym spaces and vocabulary alignment are services a station hosts and a train visits like any other, under the same protocol and their own agreements (§ 3.6 Identifier translation and vocabulary alignment). An earlier draft of this version made them two station types and withdrew them: they added components without adding an interface. |
| — | Visit Protocol [FDT-VISIT-PROTOCOL] | The Content Interaction Interface of version 0.1 was a heading. It is now a specification: how a train is dispatched, how an agreement is negotiated and signed by both parties on arrival, how every decision is reported, and how a result leaves. |
| — | Conformance criteria | Version 0.1 named no requirement an implementation could be checked against. § 6 Conformance now defines conforming Data Stations and Train Handlers by numbered criteria, each tied to the shape, checker or harness that decides it. |
| Agreement signed by the station | Agreement signed by both parties | A record kept by one party and signed by that party alone proves nothing to a third party. Each party signs the same canonical form. |
| — | Run authorisation (0.3) | A consumer authorises each run once, at their own Individual Gateway, with their own key; the Train Handler signs each visit with its own key and carries the authorisation; a station verifies both. A consumer’s intent and a Handler’s action are two signatures by two key holders, never one claim (§ 4.2 Authorising a run). |
| — | Metadata specification (0.3) [FDT-METADATA] | What a train, a Depot, a Handler and a station publish was stated only in the contracts. It is now a specification with criteria of its own, and states that every signing party publishes its keys — for discovery, never for trust. |
| Depot trusted for a train’s code | The creator’s signature is verified (0.3) | A station verifies the creator’s signature over the train’s description and bytes, so a Depot that served other bytes with a matching digest is caught (ADR-059). Built in the reference station. |
| — | Signed returns (0.3) | A station signs every result envelope it returns and chains its events; a Handler verifies them and keeps nothing that does not verify (§ 4.4 Dispatch, checkpoints and outcomes). |
The three interface groups of the Data Station are unchanged in name; § 3.1 Data Station now says what each one is.
Version 0.3, 30 November 2026. Brought level with fdt-commons 0.92.1 (commit abf0e3d), FDT-O
4.1.0 (commit 473dc54) and the Visit Protocol and Metadata specifications of the same date
(ADR-056 to ADR-061, Q169, Q170, Q171): the Metadata
specification; the creator’s signature verified by stations; the run authorisation and the signed descriptor
(§ 4.2 Authorising a run); the Handler signing the assignee’s side of each agreement with its own
key, for the consumer; takes signed by the consumer at their own Gateway, recorded by the Handler that
carried them, and portable between Handlers (§ 3.5 Train Depot); the consumer surface of the Individual
Gateway (§ 3.3 Individual Gateway); signed returns; a Depot that signs its requests to a creator’s Gateway, and
nothing a party is bound by (§ 3.5 Train Depot); a Handler’s runs read only under the credential they were
dispatched under (§ 3.2 Train Handler). Criteria DS-17 to DS-20 and TH-10 to TH-15 are added; DS-2,
DS-9, TH-4, TH-5, TH-7, TH-8 and TH-9 are changed; the conformance class of a Data Station now names DS-13 to
DS-16 as its conditional criteria rather than "the last four". No criterion was renumbered.
2. Roles
The parties of an FDT ecosystem, and what each is answerable for. A party may play several roles; a role may be played by an organisation or, where the deployment admits it, by a natural person.
| Role | Party | Responsibility |
|---|---|---|
| Data Controller | An organisation or a natural person with authority over data hosted at one or more stations | Authors the access conditions over their data, as ODRL offers; approves agreements where a person is required to; may revoke an agreement they granted. The identified assigner of every agreement over their resources. Distinct from the Station Owner (ADR-011): hosting data is not controlling it. Acts through a station’s console or, across stations, through an Individual Gateway.
|
| Station Owner | The organisation (or, in the personal profile, the person) operating a station | Sets station-wide policy — quotas, permitted mechanisms, networks served — orthogonal to the controllers' conditions. The effective decision over a request is the conjunction of the controller’s offer and the owner’s policy. |
| Data Consumer / Train Owner | The party accountable for a run | The assignee of every agreement a run concludes; authorises each run at their own Individual Gateway, with their own key; submits it through a Train Handler and receives inspected results of Aggregate class. Takes a train from a Depot in their own name, at their own Gateway.
|
| Train Creator | The party that created a train and publishes it | Offers the train as a contracted asset through a Train Depot, under their own licence; signs what they publish. When a creator sends their own train, they also play the Train Owner role. |
| Train Handler operator | Runs dispatch and orchestration infrastructure | Not a party to any agreement. Its Handler signs each visit descriptor with the operator’s own key, and the assignee’s side of each visit agreement as the consumer’s delegate, inside the run authorisation the consumer signed. May hold aggregate results only (ADR-015). |
| Registry operator, Train Depot operator | Run a registry or a depot | A registry harvests and indexes; it is never a trust anchor. A depot is the authority for the trains it holds — bytes, digests, declared parameters and output, the creator’s offer and the creator’s signature as submitted; it does not publish creators' keys. |
| Trusted third party | Operates a station hosting an identifier-translation service | A Station Owner whose station translates pseudonyms between organisational spaces — the only party that ever holds both sides of a join. An alignment service has an operator in the same sense, with nothing sensitive in their keeping. |
| Network governance authority | One per FDT network | Participation rules, evidence categories, trusted identity issuers and trust anchors for the network (ADR-017). |
3. Components
| Component | Responsibility |
|---|---|
| Data Station | Hosts digital objects of any kind — datasets, and services such as identifier translation or vocabulary alignment; publishes FAIR metadata about itself and what it hosts; receives trains; negotiates an agreement per visit on arrival; enforces policy at three checkpoints; executes the train through an interaction-mechanism adapter; returns the inspected result, or lets inspected state travel onward. § 3.1 Data Station. |
| Train Handler | The consumer-side agent: selects and parametrises a train, composes a plan, runs it under the run authorisation its consumer signed, dispatches visits to stations (push or poll) signed with its own key, orchestrates multi-station itineraries, verifies and collects the Aggregate-class results and the provenance, and shows the run as it happens. The Handler owns the run; the station owns the visit. § 3.2 Train Handler.
|
| Individual Gateway | One party’s agent, holding that party’s signing key. For a controller, across every station hosting their data: author and revoke access conditions, review the agreements concluded over their data and the audit slice that touched it, receive and decide approval requests, exercise opt-out. For a creator: sign and publish trains and licences over them. For a consumer: sign run authorisations and takes. § 3.3 Individual Gateway. |
| FDT Registry | A metadata registry: harvests and indexes what stations and depots publish, and answers which stations hold the data a train needs. An index and never a trust anchor. § 3.4 FDT Registry. |
| Train Depot | The authority for a train and a catalogue of train offers: payload bytes and digest, declared parameters and output, the creator’s licence as an ODRL offer and the creator’s signature over each train; it concludes takes and serves a completed take to a Handler the owner authorised. § 3.5 Train Depot. |
| Governance function | Per network: onboarding, evidence, trusted issuers and trust anchors, rule publication; exposes machine-readable membership so stations and handlers can check who belongs to which network. § 3.7 Networks and governance. |
| fdt-commons | The shared contracts: the FDT ontology and profiles, SHACL shapes, JSON-LD contexts, JSON Schemas and OpenAPI documents, state machines and their mapping to the Dataspace Protocol, and the fixtures every component is tested against. § 3.8 Shared contracts. |
Trains are packaged, executable interactions of four families — query, API, script and container — and are assets, not datasets: a train is something a station runs, not something it hosts (ADR-020). A train has an identity and an offer of its own, carries a payload with a digest, and declares the data it needs (as a SHACL model) and the output it produces (as a JSON Schema).
3.1. Data Station
Since the purpose of the FAIR Data Train architecture is to define a set of desired behaviours that applications expose and support, the definition of the Data Station is the definition of its interface. The interface is divided into three groups, as depicted in the figure below: the Metadata Interface, the Station Interface and the Content Interaction Interface. Each group exposes the interfaces of a number of services the station provides, and the interaction with the data happens only through the station’s interaction component, which is the one component that connects to the data storage.
A station hosts digital objects of any kind — "data" in the sense the FAIR principles give the word. Hosted datasets and their parts are the common case; a service that translates identifiers between pseudonym spaces or aligns vocabularies is hosted the same way, described in the same catalogue with the interaction mechanism it is reached by, and visited by a train under the same protocol and its own agreement (§ 3.6 Identifier translation and vocabulary alignment).
3.1.1. Metadata Interface
The Metadata Interface publishes what the station holds and on whose terms, as RDF, following the FAIR Data Point specification [FDP] for the metadata structure and its navigation. A station publishes:
-
a catalogue [VOCAB-DCAT-3] of the hosted datasets it serves and of the dataset parts a controller offers in their own right, each with its distributions per interaction mechanism, its
dcat:theme, and the ODRL offer [ODRL-MODEL] that states the controller’s access conditions over it; -
for each dataset or part, what its data conforms to: a SHACL shape [SHACL], served by the station alongside the catalogue. This is what makes station selection answerable — a train declares the data it needs as a SHACL model, and a station matches when the shapes it publishes cover that model (ADR-030). Where the station’s data is not natively RDF, the shape is generated from the mapping the dataset declares [RML] and the mapping is published too.
Publishing a catalogue entry grants nothing. A catalogue says what exists and under which terms; every access is still negotiated on arrival against the offer, per visit. What the catalogue, its datasets and parts must state is specified in [FDT-METADATA].
3.1.2. Station Interface
The Station Interface publishes the station’s self-description: its type and the interaction
mechanisms it supports, the networks it is a member of and the governance authority of each, the
dispatch modes it accepts (push, poll, or both), the protocol versions it implements, and links to
its metadata and catalogue. The self-description is what a Train Handler reads to know whether a
station will accept a train from a given network and how to reach it. The station is itself a
dcat:DataService: it states its dispatch endpoint, with dct:conformsTo the Visit Protocol
version, its dispatch modes and the key set it signs with [FDT-METADATA].
3.1.3. Content Interaction Interface
The Content Interaction Interface is the Visit Protocol [FDT-VISIT-PROTOCOL]: the conversation between a Train Handler and a Data Station for one visit — one train, at one station, under one agreement. It covers dispatch, negotiation on arrival, the signatures of both parties, every checkpoint decision as an event, execution progress, result delivery and the hand-over of onward state. It is deliberately the only interface a station has to implement to take part in any itinerary pattern. A Data Station conforms to this architecture by conforming to that protocol as a station.
Behind the interface a station enforces policy at three checkpoints, with negotiation between the first two:
| Checkpoint | Decides |
|---|---|
| PEP 1 — arrival | Is the caller who they say, is the descriptor valid, is the payload the one the train’s depot offer names (by digest), does this station support the mechanism. A failure here rejects the visit. |
| NEG — negotiation | Is the request satisfiable under the controller’s offer for the visit’s network and the owner’s policy. Produces an agreement, or asks a person where a machine may not decide, or refuses — a controller’s decision, never a checkpoint’s. |
| PEP 2 — before execution | Is the agreement active and signed by both parties, is it about this visit, do the station’s quotas allow the run. |
| PEP 3 — after execution | Does the result conform to the train’s declared output, does every duty of the agreement hold on it, what class of state may leave and where to. A failure here rejects the result; nothing leaves. |
3.2. Train Handler
The Train Handler is the consumer’s agent. It resolves a train from a Train Depot, asks the registry which stations hold the data the train needs, composes a plan — the train, its parameter values, an itinerary and the consumer’s purpose as an ODRL request template — and runs it: one run is one execution of a plan, decomposed into visits, each one train execution at one station under one agreement. The Handler dispatches each visit by push or, for a station that accepts no inbound connection, by letting the station poll for it; follows the station’s event stream; signs the assignee’s side of each agreement with its own key, for the consumer; applies the plan’s failure policy to each outcome; and assembles the run record and the completeness statement — for every intended station, its outcome in the protocol’s own words, its cause and the station’s stated reason.
A Handler acts for a consumer without holding the consumer’s key. It runs a plan only under a
run authorisation the consumer signed at their own Gateway and handed to it, carries that
authorisation in every descriptor, and signs every descriptor — and the assignee’s side of every
agreement, for the consumer — with its own operator key (§ 4.2 Authorising a run). It never calls
the consumer’s Gateway and holds no credential for it. It verifies every event and envelope a station
returns against that station’s key, keeps nothing that does not verify, and serves what it kept
exactly as the station emitted it, so that anyone can check a station’s word without trusting the
Handler. It serves a run only to whoever presents the dispatch credential it was dispatched under; to
anyone else a run is 404, as if it did not exist, and an anonymous reader gets only the Handler’s
description and key set (Q169; handler-api.yaml).
The Handler holds **Aggregate-class state only** (ADR-015): counts, aggregates, next-hop lists and
the names of hand-overs. Pseudonym-class state travels only from station to station, under an
agreement; RecordLevel state never leaves the station that hosts it. The rule follows from the
Handler’s position — it is a party to no agreement, and the Data Governance Act and the EHDS give
an intermediary that holds data a position this architecture keeps the Handler out of — and not
from any claim that what it holds is harmless: an aggregate can be personal, which is what the
k-anonymity duties of result inspection exist for. This document therefore describes what may
reach the Handler by state class and never as non-personal.
3.3. Individual Gateway
The Individual Gateway is one party’s agent, and holds that party’s signing key so that no other component has to. It serves the party in each role they play.
As a data controller, across every station hosting data they control: through it a controller authors access conditions once and publishes them to each station, reviews the agreements concluded over their data and the slice of each station’s audit trail that touched it, receives approval requests where a person must decide and decides them, and exercises revocation and opt-out. A controller may also act directly at a station’s own console; the Gateway is what makes the same controller’s view coherent across stations. For a controller the Gateway stores nothing: every row it shows was fetched from a station during the request, and the station stays the record.
As a train creator: it signs a train’s submission and publishes it to a Depot, and signs the
assigner’s side of a licence over the train when a Depot asks for it (§ 3.5 Train Depot). It answers such a
request only when the Depot signed it, as {depot, gateway, sentAt, request, signature}
(depot-request.schema.json), with a key the Gateway holds for that creator out of band, addressed
to this Gateway and within five minutes of its clock; otherwise it signs nothing and answers with one
of the words of depot-request-reason.schema.json (ADR-061).
As a data consumer: it signs the run authorisation of each run, and the owner’s side of taking a train. A Gateway signs these only at the request of the consumer’s own client: a Handler never calls a consumer’s Gateway and holds no credential for it, because one able to ask for a take signature could ask for a run authorisation in the consumer’s name. Who the consumer is comes from the credential, never from the request. Unless the consumer has explicitly configured that their credential alone suffices, nothing is signed until a person confirms the draft — under their own credential, distinct from the one that asked, and stating the digest of the draft they were shown, since a confirmation not tied to what the person read is not a confirmation; the person may also decline it. The Gateway computes the plan’s digest itself from the plan document, and recomputes a take’s digest from the terms the Depot served, refusing on a mismatch. The run authorisations it signed are the one thing it keeps: the party’s own record of their own acts.
The Gateway’s interface is individual-gateway-api.yaml [FDT-COMMONS]; this document defines no
conformance class for it (§ 6.1 Conformance classes).
3.4. FDT Registry
The registry harvests the self-descriptions and catalogues that stations and depots publish and indexes them: stations by interaction mechanism, network, theme, the shapes their data conforms to and the join keys they offer; trains by what they require. Its central question is which stations hold the data this train needs, answered by structural coverage of the train’s data requirement by a station’s published shapes — and, for a near miss, by naming the property a station lacks. A registry is an index: nothing may be granted on the strength of an entry, a station may be indexed by several registries, and a Handler acts on what a station publishes, not on what a registry harvested.
A registry harvests a station’s /catalogue and /shapes from the base it is configured to reach
— the station’s publication base [FDT-METADATA] — and nothing else; its entry for a station
records what that catalogue states, among it the station’s dispatch endpoint, dispatch modes, key-set
link and publication base (registry-api.yaml, StationEntry). Where what it reached disagrees with
what the station states — a publication base other than the configured source — it says so in the
source’s notes and reconciles nothing. A key-set link found in a registry is for discovery, never
trust (ADR-060). A registry offers no route by which a station it cannot harvest is registered
(Q95). Its two writes, POST /harvest and POST /ping, are open by statement (Q171, the
conservative default in force): either can make it re-read only the sources its operator configured,
and neither can put content into the index.
3.5. Train Depot
The Train Depot is the authority for a train. It holds the payload bytes and their digest, the train’s declared parameters, data requirement and output, the creator’s licence over the train as an ODRL offer, and — exactly as the creator submitted and signed them — the submission and the creator’s signature over it and the bytes; it publishes them as a catalogue of train offers. A Depot verifies a creator’s signature at publication against a key it holds out of band, and does not publish creators' keys: a creator’s keys are published by their own Gateway. A station resolves a train at the Depot before anything runs, verifies the creator’s signature over the description and the bytes it fetched, and only then compares the payload with the digest the Depot states (ADR-059), so that the Depot is not trusted for what a train’s code is. What a train description and a Depot publish is specified in [FDT-METADATA].
A Depot signs nothing a party is bound by (ADR-061). It is never a side of an agreement and never signs a train’s code. It has one signing key, published in its key set, with which it signs every request it makes to a creator’s Gateway — asking for the creator’s side of a take — so that a Gateway answers only the Depots its creator publishes at (§ 3.3 Individual Gateway). That signature authenticates the question and binds nobody.
Taking a train from a Depot — a take — is itself a two-party agreement, the creator’s licence: the creator’s Gateway signs the assigner’s side, and the would-be owner signs the assignee’s side at their own Gateway, in their own name. The Handler through which the take was done adds a third signature, a carrier’s record, saying which application carried it for this person; it is no side of the agreement, binds nobody and is made on nobody’s behalf. A take belongs to the person and not to the application, so it is portable: a run authorisation names the take it relies on, and any Handler the consumer authorises may dispatch the train under it, reading the completed take from the Depot by presenting that authorisation. The Depot signs neither side of it.
3.6. Identifier translation and vocabulary alignment
A multi-station analysis across organisational boundaries needs two services that no single data-holding station provides: translating identifiers between pseudonym spaces, and aligning vocabularies. Both are hosted by Data Stations like any other digital object and reached by the same protocol under their own agreements; neither is a component of the architecture.
Identifier translation. A station whose interaction mechanism is identifier translation
(fdt-inst:IdentifierTranslation) receives a list of pseudonyms in one organisation’s space and
returns the corresponding list in another’s — one side only, never the pair, and in an order
that discloses no correspondence — so that two stations can be joined at the level of the
individual by nobody but the trusted third party that operates it. The station declares the
pseudonym spaces and join keys it serves in its catalogue, and an existing trusted third party is
wrapped as such a station.
Vocabulary alignment. A station hosting mappings between code systems, units, spatial and administrative divisions, which a train consults or visits as a hop; stations declare per dataset the vocabularies they use, so a Handler can check at planning time that two stations' data can be put together.
The FDT ontology carries fdt-o:LinkageStation and fdt-o:AlignmentStation as subclasses of
fdt-o:DataStation: labels a station may add to its self-description so that a registry finds it
by what it hosts. They introduce no interface and no requirement that the mechanism declaration
does not already carry.
3.7. Networks and governance
An FDT network is a set of participants that accept one governance authority’s rules and trust anchors. A station frequently serves several communities at once, so a station may belong to several networks with different governance (ADR-017). The station’s self-description lists its memberships; policy is evaluated per network, because a controller’s offer may differ per network; every agreement records the network it was concluded under; and identity is issued by network authorities, not by the FDT — in version 1 through federated OpenID Connect providers the network trusts [OPENID-CONNECT-CORE].
A network also states whether a station in it may conclude a negotiation without a person. Where it may not, the station still evaluates the request and produces a recommendation with its evidence, and a person decides; where a machine may not grant, it may not refuse either (ADR-032).
3.8. Shared contracts
Interoperability rests on shared contracts, not on shared code. fdt-commons [FDT-COMMONS]
holds the FDT ontology [FDT-O] and the ODRL and run-description profiles; the SHACL shapes that
every published document and every arriving request is validated against; the JSON Schemas and
OpenAPI documents of the Visit Protocol and of the other component interfaces; the state machines
and their mapping to the Dataspace Protocol [DSP]; and the fixtures every implementation is
tested against, including counter-examples that must fail. No component redefines a term, shape,
schema or endpoint that exists there, and a change to a contract is made there first.
4. Interactions
4.1. Plan, run, visit
A plan names a train, its parameter values, an itinerary — the pattern, the entry stations or a registry query that selects them, phases and dependencies, stop conditions, budget — and the consumer’s purpose as an ODRL request template. A run is one execution of a plan. A visit is one train execution at one station under one agreement. Every itinerary pattern — a single visit, fan-out over many stations, a sequence, a discovery chain that learns where to go next from what it finds, iterative rounds, two-phase selection, composition — decomposes into visits, which is why the Visit Protocol is the only interface a station needs.
4.2. Authorising a run
A run is authorised by its consumer, once, and sent by a Handler, visit by visit, and the two acts are signed by two different key holders so that a consumer’s intent and a Handler’s action are never one claim (ADR-058):
-
The consumer’s own client — a console, a script — asks the consumer’s Individual Gateway to sign a run authorisation: which trains as which payload digests, for which purposes, at which stations or in which network, under which plan, through which Handler and by which of its keys, until when. Unless the consumer has explicitly configured otherwise, a person confirms it first (§ 3.3 Individual Gateway). The Gateway signs it with the consumer’s key, which never leaves it.
-
The client hands the plan and the signed authorisation to a Train Handler, which checks before it accepts the run that the authorisation is the consumer’s, given to this Handler, for this plan and these trains, in date, and that every take it relies on is the consumer’s (§ 6.4 Criteria for a Train Handler, TH-10).
-
The Handler signs each visit descriptor with its own operator key and carries the authorisation inside it, by value. The station verifies both signatures, against two separately configured key lists — the Handlers it accepts visits from, and the parties it grants standing to — and checks that the descriptor stays inside the authorisation, before it acts on anything in it [FDT-VISIT-PROTOCOL].
The authorisation bounds the Handler: another train, another purpose, a station outside its audience or a moment after it expires is rejected whatever the Handler signs. It does not replace the station’s decision, which is negotiated per visit exactly as before. The agreement each visit concludes pins the authorisation, and its assignee’s side is signed by the Handler for the consumer, as a delegate bounded by it (§ 4.3 Agreements, per visit, signed by both parties).
What this does not establish: the descriptor’s signature proves which Handler sent what, not what the consumer asked for, which only the authorisation’s signature proves; and an authorisation cannot be revoked in this version, so a compromised Handler can act inside its bounds until it expires — short lifetimes and narrow audiences are the consumer’s control.
4.3. Agreements, per visit, signed by both parties
Every visit — including a visit for identifier translation or vocabulary alignment — is governed by its own ODRL agreement, negotiated on arrival (ADR-014). The station matches the train’s request against the controller’s offer for the visit’s network and the owner’s policy and derives the agreement: it grants exactly the actions requested that the offer permits, carries every usage constraint bounded by what was offered, carries the offer’s prohibitions and duties verbatim, records the eligibility facts it established as evidence rather than as live terms, and pins the offer, the request and the train’s payload by digest. There is no counter-offer: narrowing is always permitted and widening never is.
The agreement is then signed by both parties over the same canonical form: the station signs the assigner’s side — with the controller’s key where they hold one, otherwise as the controller’s agent, and the signature says which — and the Train Handler signs the assignee’s side with its own key, for the consumer, inside the run authorisation the agreement pins; no document describes that signature as the consumer’s own. An agreement only one party has signed is not an agreement, and nothing runs under one. Both parties keep a pinned copy; neither can rewrite history unnoticed by the other, and a third party holding the document can verify it without asking either.
4.4. Dispatch, checkpoints and outcomes
A visit is dispatched by push — the Handler posts a visit descriptor to the station — or by poll — a station that accepts no inbound connection fetches the descriptors waiting for it from the Handler. Beyond the gateway the two are processed identically (ADR-004). Before it acts on anything in a descriptor, a station verifies the Handler’s signature over it and the consumer’s over the run authorisation it carries (§ 4.2 Authorising a run). The station then runs the visit through its checkpoints (§ 3.1.3 Content Interaction Interface), and every decision it takes is an event with a justification (ADR-027): the ordered event stream is the source of truth for what happened to a visit, for the Handler’s view of the run and for the audit trail a controller reads.
What a station returns is signed. Every event is chained to the one before it, and the result envelope that ends each visit is signed by the station and closes the chain, so that anyone holding the station’s public key can check the station’s account without either party’s cooperation; a Handler keeps nothing that does not verify (ADR-057). What no station signed is not covered: a descriptor turned away before its signature held, an attempt a station declined, and an outcome the Handler reached without the station’s word — a visit never sent, a station that never answered, a return that never verified — are the Handler’s own record. On a hand-over between stations the producing station’s envelope is checked by the Handler, not by the receiving station; that stronger check is owed. Encryption at rest is the operator’s.
Every visit ends in exactly one of seven outcomes, and the words are part of the contract (ADR-026), because a completeness statement reports them to a data consumer verbatim:
| Outcome | Meaning | Whose |
|---|---|---|
| Delivered | The result passed inspection and left the station (possibly redacted to meet a threshold). | — |
| Refused | Access was declined at negotiation — by the controller’s standing conditions or by a person. | A controller’s decision, with their stated reason |
| Rejected | A checkpoint’s verdict on a document or a result: an invalid descriptor, a payload that is not the one offered, a result a duty forbids. | A checkpoint’s verdict; nobody decided anything |
| TimedOut | A person was asked and the wait ran out, or the Handler withdrew the visit. | Nobody decided |
| Failed | Machinery broke. | — |
| Revoked | The controller took the agreement out of force while the visit was queued or running. | A controller’s act over an agreement they granted |
| Skipped | The run never asked this station — a phase condition excluded it, a chain was pruned, the failure policy dropped it, or the consumer’s run authorisation did not cover it. | The Handler’s record; no station can report it about itself |
These are not shades of one fact. Reporting a controller’s refusal as a rejection tells a consumer their request failed a check when a person declined it; reporting a timeout as either puts a verdict in the mouth of somebody who never gave one. Implementations keep the vocabulary exact in code, logs and user interfaces.
4.5. State between hops
Three mechanisms carry state from one visit to the next, chosen per plan and constrained by the
stations' policies (ADR-016): inside the train — a container or script train carries state, and
the origin station’s PEP 3 judges what may leave with it; via the Handler — only Aggregate-class
state returns to the Handler and is re-injected as parameters; via an identifier-translation hop — only
opaque pseudonyms cross an organisational boundary, translated at a station a trusted third party
operates and handed to the next station by location and digest, never by value, so that the Handler holds a
name and the bytes stay at the station that produced them.
5. Standards
This section is non-normative.
The FDT is built on open standards, and this table says how each is used — used where the reference implementation reads or writes it as specified, aligned where the FDT is designed to map onto it, declared where the architecture names it and the implementation does not yet exercise it.
| Standard | Where | Status |
|---|---|---|
| RDF 1.1 [RDF11-CONCEPTS], JSON-LD 1.1 [JSON-LD11] | All metadata, catalogues, self-descriptions, offers, requests and agreements; the Visit Protocol’s RDF payloads. | used |
| DCAT 3 [VOCAB-DCAT-3], FAIR Data Point [FDP] | Station catalogues (datasets, parts, distributions, services); the metadata structure and its navigation. | used |
| SHACL [SHACL] | Validation of every published document and arriving request; a train’s data requirement and a station’s data description, matched by coverage. | used |
| ODRL 2.2 [ODRL-MODEL] [ODRL-VOCAB] with the FDT profile | Access conditions (offers), requests, agreements and the derivation rule between them; the purpose vocabulary from DPV [DPV]. | used |
| PROV-O [PROV-O] | The run record: a run is an activity, its visits sub-activities, the merged result a derivation from the delivered visits. | used |
| JSON Schema [JSON-SCHEMA], OpenAPI 3.1 [OPENAPI] | The Visit Protocol’s three message types and every HTTP interface in the ecosystem. | used |
| OpenID Connect [OPENID-CONNECT-CORE], OAuth 2.0 Token Exchange [RFC8693] | Federated identity, trusted per network; the acting person carried as RFC 8693’s actor claim; a graded dispatch credential. | used |
| Ed25519 [RFC8032], JSON Web Key [RFC7517], RDF Dataset Canonicalization [RDF-CANON], JSON Canonicalization Scheme [RFC8785] | Signatures of both parties over the canonical form of an agreement and of a train’s submission; of the consumer over a run authorisation, the Handler over a visit descriptor and the station over a result envelope, over their RFC 8785 form; keys published as JWK sets. | used |
| RFC 9457 Problem Details [RFC9457] | Every error a component returns, carrying the FDT outcome word and the checkpoint. | used |
| Dataspace Protocol 2025-1 [DSP] | Agreement and visit lifecycles are mapped onto Contract Negotiation and Transfer Process states; the mapping is documentation in version 1 and a binding in version 2 (ADR-019). | aligned |
| RML [RML] | Where a station’s data is not RDF, the mapping its published shape is generated from. | declared |
| Verifiable Credentials | The identity model is kept credential-ready so that W3C Verifiable Credentials can replace bearer tokens without a schema migration (ADR-010); eligibility evidence is where they would first apply (ADR-031). | declared |
6. Conformance
6.1. Conformance classes
This document defines conformance for the two components every itinerary needs, and states what each must do beyond the Visit Protocol. The key words MUST, MUST NOT, SHOULD and MAY are those of [RFC2119]. The protocol-level requirements — dispatch, negotiation, signatures, checkpoints, events, envelopes, hand-over — are the Visit Protocol’s and are collected as numbered criteria there [FDT-VISIT-PROTOCOL]; the criteria below are the architecture’s own and are numbered apart so that a conformance claim can cite both without ambiguity.
- Conforming Data Station
-
A component that conforms to the Visit Protocol as a push-dispatch station or as a poll-dispatch station, and meets every criterion of § 6.3 Criteria for a Data Station — DS-13 to DS-16 only where it hosts an identifier-translation or alignment service.
- Conforming Train Handler
-
A component that conforms to the Visit Protocol as a Train Handler, and meets every criterion of § 6.4 Criteria for a Train Handler.
What a Train Depot publishes, and the key sets every signing party publishes, are criteria of the
Metadata specification [FDT-METADATA]. Conformance of the Individual Gateway’s and the FDT
Registry’s interfaces, and of the Depot’s beyond its metadata, will be specified in their own
documents as those are published; those interfaces exist today only as OpenAPI documents and
fixtures in fdt-commons [FDT-COMMONS], and a claim about them is a claim against those
artefacts. What § 3.3 Individual Gateway and § 3.5 Train Depot say a Gateway and a Depot
do is stated from those artefacts and is not collected as criteria here.
6.2. How the criteria are checked
The criteria below are checked in the three ways the Visit Protocol defines: by schema — a
SHACL shape or JSON Schema in fdt-commons decides it, and the fixtures named are what an
implementation must accept and the counter-examples it must refuse, each with the message the
shape carries; by rule — a checker in fdt-commons/tools executes it over the fixtures
named; or by harness — a behaviour observable only against a live counterpart, for which no
third-party-runnable harness is yet published and the reference implementation’s test suites are
the only published evidence. The artefacts are those pinned by the Visit Protocol’s Appendix B. No
component enforces the format keywords of the JSON Schemas, and no criterion rests on one (Q164).
6.3. Criteria for a Data Station
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| DS-1 | A Data Station MUST conform to the Visit Protocol as a push-dispatch station, as a poll-dispatch station, or as both. | § 3.1.3 Content Interaction Interface | The Visit Protocol’s criteria. |
| DS-2 | A Data Station MUST publish a self-description typed fdt-o:DataStation stating, on the station itself, the networks it is a member of with the governance authority of each, its dispatch endpoint with dct:conformsTo the Visit Protocol version, the dispatch modes it accepts and the key set it signs with, as the Metadata specification’s MD-DS-1 requires.
| § 3.1.2 Station Interface | The Metadata specification’s MD-DS-1: Schema — fdts-catalog:StationSelfDescriptionShape, fdts-catalog:MembershipShape (station-catalog.shapes.ttl) over the stations of network-and-stations.ttl, refusing station-without-a-dispatch-mode.ttl, station-naming-no-key-set.ttl. Harness for the live document.
|
| DS-3 | A Data Station MUST publish a catalogue typed fdt-o:StationCatalog, published by itself, listing the hosted datasets (fdt-o:HostedDataset) it serves and the parts (fdt-o:DatasetPart) a controller offers in their own right; every dataset and part MUST carry at least one distribution per interaction mechanism it is reachable by, an ODRL offer by its controller, and a dcat:theme that is a concept IRI.
| § 3.1.1 Metadata Interface | Schema — fdts-catalog:StationCatalogShape, fdts-catalog:DatasetShape, fdts-catalog:DatasetPartShape, fdts-catalog:GovernedDataThemeShape, fdts-catalog:MechanismDistributionShape, refusing dataset-without-offer.ttl, dataset-part-without-offer.ttl, theme-written-as-a-keyword.ttl; and fdts-policy:PolicyTargetShape (published-graph.shapes.ttl) refusing offer-whose-target-no-graph-describes.ttl.
|
| DS-4 | For every dataset and part a Data Station MUST publish what its data conforms to — at least one SHACL node shape named by dct:conformsTo — and MUST serve those shapes beside the catalogue, so that a train’s data requirement can be matched against them by structural coverage.
| § 3.1.1 Metadata Interface, § 3.4 FDT Registry | Schema — fdts-catalog:DatasetShape refusing dataset-without-a-shape.ttl. Rule — coverage.py check against tests/coverage-expectations.json, which records the misses as well as the hits.
|
| DS-5 | A Data Station MUST follow the FAIR Data Point specification for the structure and navigation of its metadata. | § 3.1.1 Metadata Interface | Harness. |
| DS-6 | Publishing a catalogue entry MUST grant nothing: a Data Station MUST negotiate every access on arrival against the controller’s offer, per visit. | § 3.1.1 Metadata Interface, § 4.3 Agreements, per visit, signed by both parties | Harness (the Visit Protocol’s negotiation criteria). |
| DS-7 | A Data Station MUST evaluate the controller’s offers for the network a visit runs under and for no other, MUST record that network in every agreement, and MUST verify a dispatching party’s credential against the identity providers that network trusts. | § 3.7 Networks and governance | Schema — fdts-policy:PolicyCommonShape (fdt-p:underNetwork required of every offer, request and agreement). Harness.
|
| DS-8 | In a network that states a station in it may not conclude a negotiation without a person, a Data Station MUST neither grant nor refuse by machine: it MUST evaluate, produce a recommendation with its evidence, and put the case to a person. | § 3.7 Networks and governance | Schema — fdts-catalog:NetworkShape refusing network-that-does-not-say-who-may-decide.ttl; the decision shapes of policy.shapes.ttl — fdts-policy:AutomaticDecisionHasNoDeciderShape, fdts-policy:HumanDecisionShape — refusing automatic-agreement-naming-a-decider.ttl, human-decision-with-nothing-to-review.ttl. Harness.
|
| DS-9 | A Data Station MUST resolve a train at its Depot before anything runs and verify that the payload it was handed is the one the Depot describes; it MUST treat a train as an executable asset and MUST NOT treat it as a dcat:Dataset. Before comparing the payload with the Depot’s digest it MUST verify the creator’s signature over the train, as the Visit Protocol’s STA-46 requires.
| § 3.5 Train Depot, § 3 Components | Schema — fdts-onto:TrainShape refusing train-typed-as-dataset.ttl. Rule — payloads.py check; the Visit Protocol’s STA-46 (descriptor.py verify_creator).
|
| DS-10 | A Data Station MUST enforce policy at the three checkpoints and MUST emit every decision it takes as an event with a justification; it MUST NOT change the state of a visit silently. | § 3.1.3 Content Interaction Interface, § 4.4 Dispatch, checkpoints and outcomes | The Visit Protocol’s criteria. |
| DS-11 | Record-level data MUST NOT leave a Data Station except to another station, under an agreement, by location and digest; it MUST NOT appear in a result, an artefact, an event or a justification. | § 3.2 Train Handler, § 4.5 State between hops | Schema — fdts-run:VisitShape refusing visit-record-level-onward.ttl. Rule — inspection.py check refusing record-level-onward.json.
|
| DS-12 | A Data Station MUST report every visit’s outcome in one of the seven words of § 4.4 Dispatch, checkpoints and outcomes, exactly, in its events, envelopes, logs and user interfaces. | § 4.4 Dispatch, checkpoints and outcomes | The Visit Protocol’s criteria. |
| DS-13 | A Data Station that hosts an identifier-translation service MUST declare it in its self-description as a dcat:DataService of the mechanism fdt-inst:IdentifierTranslation, and MUST publish a catalogue like any other station.
| § 3.6 Identifier translation and vocabulary alignment | Schema — fdts-catalog:LinkageStationServiceShape (station-catalog.shapes.ttl), which selects a station by the label fdt-o:LinkageStation the ontology keeps for this capability, refusing linkage-station-that-publishes-no-catalogue.ttl, linkage-station-that-publishes-no-translation-service.ttl.
|
| DS-14 | A translation or alignment service MUST be visited as a hop under its own agreement, through the Visit Protocol. | § 3.6 Identifier translation and vocabulary alignment, § 4.3 Agreements, per visit, signed by both parties | Schema — visit-result-ttg-hop2.json (the translation visit), visit-descriptor-ttg-hop3.json (the hop that receives its hand-over). Harness.
|
| DS-15 | A translation MUST return the identifiers of one pseudonym space only and never the pair, in an order that discloses no correspondence with the order asked, and the count it reports MUST be the count it released. | § 3.6 Identifier translation and vocabulary alignment | Schema — translation-envelope.schema.json over translation-result-ttg-hop2.json. Rule — inspection.py check refusing translation-that-returns-the-space-it-was-given.json, translation-in-the-order-it-was-asked.json, translation-whose-count-is-not-what-it-released.json.
|
| DS-16 | A Data Station MUST hand translated state to the next station by location and digest and never by value. | § 4.5 State between hops | The Visit Protocol’s criteria (onward.handedOverDigest, the inbound rules).
|
| DS-17 | A Data Station MUST hold the keys of the Handlers it accepts visits from and of the parties it grants standing to as two separately configured lists, and MUST act on nothing in a descriptor until it has verified the Handler’s signature over it, the consumer’s signature over the run authorisation it carries, and that the descriptor stays inside that authorisation. | § 4.2 Authorising a run, § 4.4 Dispatch, checkpoints and outcomes | The Visit Protocol’s criteria STA-34 to STA-40 and POLL-7, whose fixtures are the descriptor counter-examples of examples/protocol/invalid/ and whose checker is descriptor.py.
|
| DS-18 | A Data Station MUST pin in every visit agreement the run authorisation it was concluded under, and MUST verify the assignee’s signature as the Handler’s, made for the consumer that authorisation names. | § 4.3 Agreements, per visit, signed by both parties | The Visit Protocol’s criteria STA-19, STA-42 and STA-43. |
| DS-19 | A Data Station MUST chain every event it returns and end every attempt it took in a result envelope it signs with the key it signs agreements with, closing the chain; it MUST NOT demand or judge a take. | § 4.4 Dispatch, checkpoints and outcomes, § 3.5 Train Depot | The Visit Protocol’s criteria STA-38, STA-44 and STA-45. |
| DS-20 | A Data Station MUST serve its self-description, catalogue and data shapes, and publish its key set, as the Metadata specification requires. | § 3.1.2 Station Interface, § 3.1.1 Metadata Interface | The Metadata specification’s MD-DS-1 to MD-DS-9 and MD-KS-1 to MD-KS-6. |
6.4. Criteria for a Train Handler
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| TH-1 | A Train Handler MUST conform to the Visit Protocol as a Train Handler. | § 3.2 Train Handler | The Visit Protocol’s criteria. |
| TH-2 | Every plan a Train Handler runs MUST conform to the run-description shapes: a train, its parameter values, an itinerary with its pattern, a failure policy, an approval wait in days or less, and the consumer’s purpose as a request template; an open-ended pattern MUST carry a budget and a stop condition; a two-phase plan MUST carry the condition that selects the second phase’s stations. | § 4.1 Plan, run, visit | Schema — fdts-run:PlanShape, fdts-run:ItineraryShape, fdts-run:OpenEndedItineraryShape, fdts-run:TwoPhaseItineraryShape, fdts-run:FailurePolicyShape (run.shapes.ttl) over the plans of trains-and-plans.ttl and the plan-*.jsonld fixtures, refusing plan-discovery-without-budget.ttl, two-phase-whose-second-phase-selects-nobody.ttl, plan-approval-wait-of-one-month.ttl, plan-approval-wait-typed-xsd-duration.ttl.
|
| TH-3 | A station selector MUST state the data a station must hold, as a SHACL model, and a Train Handler MUST select stations by structural coverage of that requirement by the shapes each station publishes — acting on what a station publishes, never on a registry’s entry alone. | § 3.4 FDT Registry, § 4.1 Plan, run, visit | Schema — fdts-run:StationSelectorShape refusing selector-without-data-requirement.ttl. Rule — coverage.py check against tests/coverage-expectations.json. Harness.
|
| TH-4 | A Train Handler MUST dispatch query and API trains orchestrated only. | § 4.5 State between hops | Schema — fdts-run:QueryTrainOrchestratedShape (run.shapes.ttl) refusing plan-query-train-choreographed.ttl; for the train itself, fdts-train:QueryTrainCoordinationShape refusing examples/ontology/invalid/query-train-choreographed.ttl.
|
| TH-5 | A Train Handler MUST resolve a train at its Depot and dispatch only a train its owner holds under the creator’s licence, concluded as a two-party agreement signed by the creator and by the owner — the owner’s side at the owner’s own Gateway; it MUST NOT dispatch a withdrawn train. | § 3.5 Train Depot | Schema — train-offer.shapes.ttl (fdts-train:TrainOfferShape, fdts-train:TrainWithdrawalShape) over train-taken.ttl, refusing train-taken-from-someone-who-did-not-write-it.ttl, train-offer-assigned-by-its-depot.ttl, train-withdrawn-by-nobody.ttl; Rule — derivation.py refusing depot-signed-the-creators-side.ttl, take-signed-by-the-handler-as-its-owner.ttl. The Depot interface itself is specified only by train-depot-api.yaml and protocol/train-publication.md until its document is published.
|
| TH-6 | A Train Handler MUST hold Aggregate-class state only — envelopes, events, aggregates and the names of hand-overs — and MUST NOT store Pseudonym- or RecordLevel-class state.
| § 3.2 Train Handler | The Visit Protocol’s criteria. Harness. |
| TH-7 | A Train Handler MUST produce a completeness statement for every run that did not deliver from every intended station, naming every intended station and, for each, its outcome in the seven words verbatim, its cause — for a Skipped station one of NotSelected, NotEvaluated, Pruned, Dropped, OutsideAuthorisation — and the station’s stated reason.
| § 3.2 Train Handler, § 4.4 Dispatch, checkpoints and outcomes | Schema — fdts-run:RunShape, fdts-run:CompletenessShape refusing run-partial-without-completeness.ttl; run-state.schema.json over run-state-two-phase.json. Harness.
|
| TH-8 | A Train Handler MUST record each run as PROV-O provenance: the run an activity, its visits sub-activities, the merged result a derivation from the delivered visits. | § 3.2 Train Handler, § 5 Standards | Harness. No shape in fdt-commons 0.92.1 constrains the run record beyond fdts-run:RunShape; this is a recorded gap of the conformance material.
|
| TH-9 | A Train Handler MUST visit under its own credential, issued by a provider the visit’s network trusts, and MUST NOT forward a consumer’s credential to a station; it MUST sign every descriptor with its own operator key, the one the run authorisation names. | § 3.7 Networks and governance, § 4.2 Authorising a run | The Visit Protocol’s criteria (HND-4, HND-19, HND-20). |
| TH-10 | A Train Handler MUST accept a run only with a run authorisation signed by its consumer and MUST check, before it dispatches anything: the consumer’s signature, against the key it holds for that party; that the consumer is the party the dispatch credential establishes; that it is given to this Handler with this Handler’s operator key; that its plan digest is the digest of the plan handed over and its plan IRI that plan’s; that every train the plan names is listed; that a plan resolving its targets after dispatch has a network audience; that it has not expired and leaves time for the run; and that every take it names is the consumer’s, for that train and the document its digest pins, read from the Depot — a take it cannot read refusing the run as WrongTake. It MUST refuse a run that fails with one of the rejection reasons of the Visit Protocol.
| § 4.2 Authorising a run, § 3.5 Train Depot | Schema — RunDispatch and RunRefused (handler-api.yaml); run-authorisation.schema.json over the five published run-authorisation-*.json. Rule — descriptor.py check: each authorisation verified and its plan digest recomputed from the plan’s JSON-LD and Turtle; digest_plan_document refusing the counter-examples of examples/invalid/plan-documents/; check_takes refusing visit-descriptor-under-an-authorisation-pinning-another-take.json (WrongTake); take-read-gd-cardionet.json accepted and three take reads refused. Harness.
|
| TH-11 | A Train Handler MUST NOT hold a consumer’s signing key and MUST NOT call a consumer’s Individual Gateway. It MUST sign the assignee’s side of every visit agreement with its own operator key, for the consumer, and MUST NOT describe that signature as the consumer’s. | § 3.2 Train Handler, § 4.3 Agreements, per visit, signed by both parties | The Visit Protocol’s criteria HND-7 and HND-19. Rule — derivation.py refusing handler-signed-the-consumers-side-as-the-consumer.ttl. Harness for not calling the Gateway.
|
| TH-12 | Carrying a take, a Train Handler MUST relay the Depot’s terms only after recomputing their digest and finding it the one the Depot pinned; MUST verify the owner’s signature against the key it holds for the owner; MUST add its carrier’s record — its own signature over the same digest, made on nobody’s behalf — and post both; and MUST NOT make the owner’s signature. | § 3.5 Train Depot | Schema — fdts-policy:CarrierRecordShape, fdts-policy:CarrierRecordNamesNoPrincipalShape over train-taken.ttl, refusing carrier-record-on-a-visit-agreement.ttl, take-whose-carrier-record-names-a-principal.ttl; train-depot-api.yaml over take-completion-gd-cardionet.json, refusing take-completion-whose-record-is-made-for-the-owner.json. Rule — derivation.py refusing carrier-record-presented-as-the-owners.ttl. Harness.
|
| TH-13 | A Train Handler MUST verify every event and envelope a station returns, MUST store nothing that does not verify, MUST end an attempt whose return it refused Failed, and MUST serve what it stored exactly as the station emitted it, stating its own conclusions beside it. | § 3.2 Train Handler, § 4.4 Dispatch, checkpoints and outcomes | The Visit Protocol’s criteria HND-23 and HND-24. |
| TH-14 | A Train Handler MUST describe itself and publish its key set as the Metadata specification requires. | § 3.2 Train Handler | The Metadata specification’s MD-TH-1, MD-TH-2 and MD-KS-1 to MD-KS-6. |
| TH-15 | A Train Handler MUST serve a run — its state, its visits and its events — only to a caller presenting the dispatch credential it was dispatched under, answering 401 without one, and MUST answer 404 for a run dispatched under another, exactly as for a run that does not exist. Only its description and key set are open to an anonymous reader.
| § 3.2 Train Handler | Schema — handler-api.yaml: GET /runs, /runs/{runId}, /runs/{runId}/visits, /runs/{runId}/events declare dispatchCredential, and only GET / and GET /keys declare security: [] (gate rule of tests/validate_protocol.py). Harness for the scoping.
|
6.5. Conformance statement
An implementation claims conformance to this architecture by stating the class claimed, the
Visit Protocol conformance statement it rests on, the fdt-commons version and commit it was
validated against, and, for each criterion above, that it accepts the fixtures named and refuses
the counter-examples named with their recorded messages, or the evidence it offers where only a
harness can decide. The reference implementation is the only implementation that can make a
third-party-verified claim today, and this document says so rather than imply otherwise.