1. Introduction
This section is non-normative.
In the FAIR Data Train the computation travels to the data. A train — a query, an API call, a script or a container — is sent to a Data Station that hosts the data, runs there under terms negotiated on arrival, and only what passes the station’s inspection leaves. The Train Handler is the consumer’s agent that sends the train and collects what comes back; the station is where the data controller’s conditions are enforced.
The Visit Protocol is the data plane of the FDT ecosystem: the conversation between a Handler and a station for one visit — one train, at one station, under one agreement (ADR-014, ADR-027 [FDT-ADR]). Every multi-station itinerary a Handler can run — a single visit, fan-out, a sequence, a discovery chain, iterative rounds, two-phase selection, composition — decomposes into visits, which is why this is deliberately the only interface a station has to implement to take part in any of them. The Handler owns the run; the station owns the visit.
The protocol is defined by its artefacts as much as by this text. Its three message types are JSON Schemas, its two interfaces are OpenAPI documents, its RDF payloads are validated by SHACL shapes, and the examples in this document are the published fixtures every implementation is tested against — not documents typed into prose. Appendix B: Normative artefacts names them, pinned to a commit.
Every document that crosses between the parties is signed by whoever is answerable for it: the consumer signs a run authorisation once per run, at their own agent; the Handler signs each visit descriptor with its own key; the station and the Handler sign the two sides of the agreement; and the station signs what it returns and chains its events. § 7 The run authorisation and the signed descriptor and § 12 What a station returns is signed say what each signature proves, and what it does not.
1.1. Scope
This section is non-normative.
This specification covers, for one visit: dispatch in two directions (§ 6 Dispatch); the run authorisation and the signed descriptor a station verifies before it acts on anything (§ 7 The run authorisation and the signed descriptor); what a station checks when a train arrives; negotiation on arrival, the derivation of the agreement and the signatures of both parties (§ 8 Negotiation on arrival); execution and the inspection of the result (§ 9 Execution and inspection); the hand-over of state between visits (§ 10 Onward state and hand-over); how every decision is reported (§ 11 Reporting) and how what a station returns is signed and verified (§ 12 What a station returns is signed); how a visit ends (§ 13 Outcomes, cancellation, retries, revocation); the messages (§ 14 Messages) and the interfaces (§ 15 Station API, § 16 Handler API — the station-facing surface); and the security model (§ 17 Security).
Four things are not in this protocol and live in their own contracts: the station’s metadata
and catalogue, and every party’s key set ([FDT-METADATA], built on [FDP] and [VOCAB-DCAT-3]); the
controller’s actions over their own data — authoring conditions, approving, revoking, suspending —which reach a station through its console or an Individual Gateway; the catalogues of the
registry and the Train Depot, from which a train is dereferenced by IRI; and how a consumer obtains
the run authorisation a descriptor carries, at their own Individual Gateway, and hands it to a
Handler with a plan — which [FDT-ARCHITECTURE] describes and individual-gateway-api.yaml and
handler-api.yaml specify. This protocol starts from a descriptor that carries one.
1.2. Reading this document
This section is non-normative.
Decisions behind the protocol are recorded as Architecture Decision Records [FDT-ADR] and are cited as ADR-nnn where the reasoning may matter to an implementer. Questions the protocol leaves open are listed in § 19 Open points with their register identifiers (Qnn); each has a stated default that implementations follow until it is decided.
Member names in message tables are written as camelCase JSON keys. Where a value is an IRI, it
is a string in the JSON and an IRI in the vocabulary the schema maps it to.
2. Conformance
2.1. Conformance classes
Three conformance classes are defined. The key words MUST, MUST NOT, SHOULD and MAY in this document are to be interpreted as described in [RFC2119]. The requirements are stated in the body of this document and § 2.3 Criteria collects them as numbered criteria, so that an implementation can be checked against a list and a claim of conformance can say which item it rests on. Where a criterion and the body text differ, the body text and the artefacts of Appendix B: Normative artefacts govern and the criterion has an error to be reported.
- Push-dispatch station
-
A Data Station that accepts inbound connections. It implements the Station API (§ 15 Station API) as a server, and meets every criterion of § 2.3.1 Every Data Station and § 2.3.2 A push-dispatch station.
- Poll-dispatch station
-
A Data Station that accepts no inbound connection. It implements the poll half of the Handler API (§ 16 Handler API — the station-facing surface) as a client, reports by callback, and meets every criterion of § 2.3.1 Every Data Station and § 2.3.3 A poll-dispatch station.
- Train Handler (conformance class)
-
The consumer-side party: the client of the Station API and the server of the Handler API. It meets every criterion of § 2.3.4 A Train Handler.
A station MAY be both a push-dispatch and a poll-dispatch station; its self-description says which modes it accepts and the Handler chooses per station (§ 6.2 Poll dispatch).
2.2. How the criteria are stated
Each criterion has a stable identifier, which a conformance claim and a test report cite; the requirement, with its key word; the section of this document that states it; and the way it is checked:
- Schema
-
A JSON Schema or SHACL shape of Appendix B: Normative artefacts decides it. The fixtures named are the published examples the implementation must accept and the counter-examples it must refuse —each counter-example with the message the shape carries, as
tests/expectations.jsoninfdt-commonsrecords it.python3 tests/validate.pyruns every one of them. A JSON Schema check covers everything the schema states **except itsformatkeywords** (iri,uri,date-time,duration): no component enforces them and neither does the published checker (Q164), so no criterion here rests on one. - Rule
-
A checker in
fdt-commons/toolsexecutes the rule over the fixtures named — the agreement derivation (derivation.py), result inspection (inspection.py), the canonical form (canonical.py), payload digests (payloads.py), and the signatures of the descriptor, the run authorisation and the envelope, the binding between the first two and the chain of a station’s events (descriptor.py). An implementation is held to the same verdict over the same fixtures — fordescriptor.py, the same reason word. - Harness
-
The requirement is a behaviour observable only against a live counterpart — a station needs a Handler to dispatch to it, a Handler needs a station to answer — and no document decides it. These criteria are checked by a conformance harness that drives one side of the protocol and observes the other. That harness is not yet published; until it is, the reference implementation’s test suites are the only published evidence for these rows, and a third party’s claim over them is self-asserted (§ 2.5 Conformance statement).
The fixtures are in examples/ (Turtle, validated by shape), examples/invalid/ (Turtle
counter-examples, each refused with its recorded message, and the checkers' counter-examples in
its derivation/ and inspection/ subdirectories), examples/protocol/ (JSON, validated by
schema) and examples/protocol/invalid/ (JSON counter-examples; those under returns/ are
documents a station returned, each refused with the word it names), all at the commit
Appendix B: Normative artefacts pins. A criterion whose check names a shape that no fixture exercises would be a
rule that can be deleted with every light still green, so every schema and rule row names at
least one fixture.
2.3. Criteria
2.3.1. Every Data Station
These criteria bind a push-dispatch station and a poll-dispatch station alike. "Rejects" means the
visit ends Rejected at the checkpoint named, with visit.rejected carrying reason and
justification; "refuses" means Refused, the controller’s word, at NEG.
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| STA-1 | A station MUST publish a self-description as the Metadata specification requires (MD-DS-1): stating, on the station itself, its network memberships, its dispatch endpoint (dcat:endpointURL, the base URL of the Station API) with dct:conformsTo https://w3id.org/fdt/visit-protocol/v1, the dispatch mode or modes it accepts (fdt-p:dispatchMode) and its key set (fdt-p:keySet); a station given its visits only by poll names the publication base its metadata is served from (fdt-p:publicationBase).
| § 4 Parties and identifiers, § 6.2 Poll dispatch | Schema — fdts-catalog:StationSelfDescriptionShape, fdts-catalog:MembershipShape, fdts-catalog:PollStationPublicationShape (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, poll-station-publishing-from-nowhere.ttl. Harness for the live document.
|
| STA-2 | A station MUST verify the dispatching party’s credential against the identity providers it trusts for the visit’s network, and MUST answer 401 — not an outcome word — when the credential is missing or untrusted.
| § 17.1 Credentials | Harness. |
| STA-3 | At PEP 1 a station MUST validate the descriptor against the visit-descriptor schema and the embedded odrl:Request against fdts-policy:RequestShape, in the order STA-38 states, and MUST reject a visit that fails either. Because the binding of STA-37 comes first, a descriptor whose request states no purpose is rejected PurposeNotAuthorised and never meets fdts-policy:RequestShape’s message for the same fact.
| § 8.1 Request or agreement, § 14.1 Visit descriptor, § 7.3 Verification at PEP 1 | Schema — visit-descriptor.schema.json over visit-descriptor-gd-m1.json, visit-descriptor-ttg-hop3.json; fdts-policy:RequestShape and fdts-policy:PolicyCommonShape refusing request-without-network.ttl, request-without-purpose.ttl, request-without-train.ttl (requests validated on their own).
|
| STA-4 | A station MUST reject at PEP 1 a descriptor whose consumer.party and whose request’s odrl:assignee name different parties.
| § 8.1 Request or agreement | Harness. The consequence an agreement would carry is caught by Rule — derivation.py over agreement-binds-a-party-who-never-asked.ttl.
|
| STA-5 | Before anything runs, and after the creator’s signature holds (STA-46), a station MUST verify that payload.digest equals the fdt-o:artifactDigest of the train’s offer in its Depot, and that the payload bytes it holds hash to that digest; a mismatch rejects at PEP 1.
| § 14.1 Visit descriptor, § 17.2 Transport and integrity | Rule — payloads.py check: visit-descriptor-ttg-hop1-wrong-digest.json is schema-valid on purpose and only the digest check can tell it from visit-descriptor-ttg-hop1.json.
|
| STA-6 | A station MUST reject at PEP 1 a visit whose train mechanism it does not support (415 under push).
| § 6.1 Push dispatch, § 5 Overview of a visit | Harness. |
| STA-7 | A station MUST reject a descriptor whose consumer.presentation carries assurance or exchange; it MUST grade the credential itself and record the grade in every event’s requester.assurance — presented-and-verified, with the exchange it established, or presented-only.
| § 17.1 Credentials, § 14.6 Presentation | Schema — the ADR-044 mutations of tests/validate_protocol.py over visit-descriptor-gd-m1.json; visit.received and visit.rejected MUST carry requester (visit-event.schema.json). Harness for the grading.
|
| STA-8 | A station MUST NOT treat any claim of an exchanged token beyond its subject and actor as evidence in the negotiation, and MUST NOT record one. | § 17.1 Credentials | Harness — the evidence of the negotiation events.
|
| STA-9 | Event IRIs MUST be unique and MUST be minted by the station; sequence MUST be monotonic per visit and attempt.
| § 4 Parties and identifiers, § 14.4 Visit event | Schema — visit-event.schema.json; tests/validate_protocol.py checks the published streams for one event per IRI. Harness for a live stream.
|
| STA-10 | With a request, a station MUST emit negotiation.requested first and MUST match the request against the controller’s offers for the visit’s network and the station owner’s policy, and against nothing else.
| § 8.1 Request or agreement | Harness. |
| STA-11 | A station MUST emit negotiation.matched only when the offer and the request are satisfiable, and it MUST carry a justification.
| § 8.2 Matched, pending, refused | Schema — visit-event.schema.json (negotiation.matched requires justification); visit-events-gd-m1.json. Harness for the condition.
|
| STA-12 | Where a person must decide, a station MUST emit negotiation.pending-approval carrying an approval object that names the controller, the mode, the rule that imposed it, its recommendation and the facts it could not establish. Where a machine may not grant it MUST NOT refuse either: the visit goes from negotiation.requested to negotiation.pending-approval without a negotiation.matched.
| § 8.2 Matched, pending, refused | Schema — visit-event.schema.json (negotiation.pending-approval requires approval); approval-by-controller-preference.json, approval-inconclusive-evaluation.json; refusing approval-in-an-evaluating-mode-with-no-recommendation.json, approval-that-names-a-rule-nothing-imposed.json. Harness for ADR-032.
|
| STA-13 | A refusal MUST be emitted as negotiation.refused with reason and justification and the state Refused, and MUST NOT be reported in any other word; a station’s own failure MUST NOT be reported as a refusal.
| § 8.2 Matched, pending, refused, § 13 Outcomes, cancellation, retries, revocation | Schema — visit-events-gd-m1-refused.json, visit-events-gd-m1-failed.json; refusing visit-refusal-reported-as-a-failure.json, visit-failure-reported-as-a-refusal.json.
|
| STA-14 | A pending visit that is withdrawn because nobody decided MUST end TimedOut with negotiation.withdrawn, and MUST NOT be reported as Refused or Rejected. A station MAY apply its own timeout, stated as approval.expiresAt.
| § 8.2 Matched, pending, refused, § 13.1 Cancellation | Harness. |
| STA-15 | A station MUST derive the agreement from the offer, the request and the visit by the six rules of § 8.3 Derivation of the agreement: exactly the actions requested that the offer permits; every usage constraint, bounded by what was offered; the offer’s prohibitions and duties verbatim; one fdt-p:evidence per eligibility constraint; the three digests pinned; the offer’s assigner, the request’s assignee and the visit’s target and network. It MUST refuse when no action survives, naming the rule, and MAY narrow further but MUST NOT widen.
| § 8.3 Derivation of the agreement | Rule — derivation.py check over every agreement in examples/, refusing agreement-grants-more-than-offered.ttl, agreement-binds-a-party-who-never-asked.ttl, agreement-changed-after-it-was-signed.ttl. Schema — fdts-policy:AgreementShape refusing agreement-missing-assignee.ttl, agreement-without-an-authorisation-mode.ttl.
|
| STA-16 | Given an agreement IRI instead of a request, a station MUST resolve the agreement on arrival and MUST reject the visit at PEP 1 when it cannot resolve it, when its target or assignee is not the descriptor’s, when it was not concluded at this station, or when only one party signed it; an agreement its controller has revoked or suspended MUST be Refused at NEG with the controller’s reason. On a retry it MUST reuse the agreement rather than negotiate anew. | § 8.1 Request or agreement, § 6.4 Idempotency, attempts and withdrawal | Harness. |
| STA-17 | A station MUST sign the assigner’s side of every agreement it concludes: Ed25519 over the SHA-256 of the canonical form of the agreement with every fdt-p:signature excluded, keyId in the signer’s own published JWK set. Signing as the controller’s agent it MUST carry fdt-p:onBehalfOf; signing with the controller’s own key it MUST NOT; and it MUST refuse a signature naming as principal the party who made it.
| § 8.4.1 What is signed, § 8.4.2 Who signed, and for whom | Rule — canonical.py against tests/canonical-vectors/; derivation.py refusing agents-signature-presented-as-the-partys.ttl. Schema — fdts-policy:SignatureShape refusing agreement-signature-that-does-not-say-which-side.ttl.
|
| STA-18 | A station MUST NOT run anything under an agreement that does not carry the assignee’s signature, and MUST emit negotiation.active, naming the agreement, only once it has stored both signatures.
| § 8.4.3 The exchange, in two shapes, § 8.4.5 When the assignee does not sign | Schema — fdts-policy:AgreementShape refusing agreement-signed-by-the-assigner-only.ttl; Rule — derivation.py refusing agreement-only-the-station-ever-signed.ttl; visit-event.schema.json (negotiation.active names the agreement). Harness for the ordering.
|
| STA-19 | Verifying the assignee’s signature on an agreement, a station MUST use the key its Handler key list holds for the signer (STA-34), never a key taken from the document, and MUST check that signedBy is the Handler the agreement’s pinned run authorisation names, keyId the key it names, and onBehalfOf the agreement’s assignee, who is that authorisation’s consumer. Refusing, it MUST state exactly one of UnknownKey, DoesNotVerify, WrongParty, WrongDigest.
| § 8.4.2 Who signed, and for whom, § 8.4.4 Refusing a signature | Schema — the 422 body of POST /visits/{visitId}/agreement/signature in station-visit-api.yaml; fdts-policy:HandlerSignsForTheConsumerShape refusing agreement-signed-by-the-handler-for-nobody.ttl. Rule — derivation.py check refusing handler-signed-the-consumers-side-as-the-consumer.ttl, handler-signed-under-an-authorisation-given-to-another-handler.ttl. Harness for the four cases.
|
| STA-20 | At PEP 2 a station MUST check that the agreement is active and carries both signatures, that its target, train, network and assignee are the descriptor’s, that its usage terms admit the run now and that the station’s quotas allow it; it MUST emit visit.queued on success and reject otherwise.
| § 9 Execution and inspection | Harness. |
| STA-21 | A station MUST pass the descriptor’s parameters to the adapter unchanged, MUST emit visit.running, and MUST end a visit Failed with visit.failed carrying reason when the adapter or the infrastructure breaks.
| § 9 Execution and inspection | Schema — visit-event.schema.json (visit.failed requires reason). Harness.
|
| STA-22 | At PEP 3 a station MUST perform the six checks of § 9 Execution and inspection in order and release nothing when one fails: the output schema is declared and resolves; it is closed; the result validates against it; the onward state class is admitted by fdt-p:deliverResult and by onward.allowedClasses; every duty holds, a k-anonymity duty over every value marked x-fdt-subjectCount, a count of 0 passing and a count of 1 to k−1 failing, and a duty the station cannot check rejecting; and the envelope names inspection.outputSchema.
| § 9 Execution and inspection | Rule — inspection.py check over every envelope in examples/protocol/, refusing open-output-schema.json, result-the-schema-does-not-describe.json, cell-below-threshold.json, unenforceable-k-duty.json and accepting zero-cell-is-not-a-disclosure.json.
|
| STA-23 | RecordLevel state MUST NOT leave a station under any agreement; record-level content MUST NOT appear in an envelope’s result or artifacts, in an event’s evidence or in a justification.
| § 9 Execution and inspection, § 11.1 Events, § 14.5 Visit-result envelope | Rule — inspection.py refusing record-level-onward.json; Schema — fdts-run:VisitShape refusing visit-record-level-onward.ttl. Harness for events.
|
| STA-24 | A station MUST NOT list a prohibition on what the consumer does after delivery (fdt-p:reidentify, odrl:sell) among the duties that passed inspection.
| § 9 Execution and inspection | Harness — inspection.justification of a delivered envelope.
|
| STA-25 | Every decision a station takes and every state change of a visit MUST be emitted as a visit event conforming to the schema, with the conditional rules of § 14.4 Visit event: every decision event carries a justification (decision, rule, source, evidence), and every terminal event announces the state it ends in.
| § 11.1 Events, § 14.4 Visit event | Schema — visit-event.schema.json over visit-events-gd-m1.json, visit-events-gd-m1-poll.json, visit-events-gd-m1-rejected.json, visit-events-gd-m1-revoked.json, visit-events-ttg-hop1.json. Harness for completeness.
|
| STA-26 | Every non-success event MUST carry the reason the consumer will see; the envelope MUST repeat it; and a Problem a station answers with MUST carry the same outcome word as the visit’s terminal event — except the 409 with which it declines an attempt, which carries no outcome (STA-40).
| § 13 Outcomes, cancellation, retries, revocation, § 14.7 VisitStatus and Problem | Schema — visit-result.schema.json (every outcome but delivered requires reason), visit-result-gd-m1-refused.json, visit-result-gd-m1-rejected.json, visit-result-gd-m1-failed.json. Harness for the Problem.
|
| STA-27 | Once a visit is terminal its visit-result envelope MUST be available and MUST conform to the schema: state carries the outcome; result is empty under any outcome but delivered; a delivered visit carries agreement, deliveredAt and inspection; a result rejected at PEP 3 carries agreement and inspection; a visit that did not deliver says at which checkpoint it ended. It is signed by the station and closes the visit’s event stream (STA-45).
| § 11.2 Result and artefacts, § 14.5 Visit-result envelope | Schema — visit-result.schema.json over visit-result-gd-m1.json, visit-result-gd-m1-refused.json, visit-result-gd-m1-rejected.json, visit-result-gd-m1-failed.json, visit-result-ttg-hop1.json.
|
| STA-28 | A station MUST keep the outcome vocabulary — Delivered, Refused, Rejected, TimedOut, Failed, Revoked — exact in its events, its envelopes, its logs and its user interfaces, and MUST NOT report Skipped about itself. | § 13 Outcomes, cancellation, retries, revocation | Schema — the state enumerations of visit-event.schema.json and visit-result.schema.json. Harness for logs and interfaces.
|
| STA-29 | On withdrawal a queued or pending visit MUST end at once with negotiation.withdrawn, a running visit MUST stop at its next checkpoint with visit.cancelled, either ending TimedOut; a visit already terminal MUST be unaffected.
| § 13.1 Cancellation | Harness. |
| STA-30 | When the controller takes the agreement out of force, a queued or running visit MUST stop at its next checkpoint with visit.revoked, naming the agreement and carrying the controller’s reason verbatim. A visit that arrives afterwards presenting a revoked or suspended agreement MUST be Refused at NEG, with the controller’s reason, not Revoked.
| § 13.2 Revocation | Schema — visit-events-gd-m1-revoked.json; refusing visit-event-revocation-that-names-no-agreement.json, visit-event-revocation-reported-as-refused.json. Harness for the arriving case.
|
| STA-31 | Receiving a hand-over, a station MUST check at PEP 1 that handOver.fromVisit appears in the descriptor’s precededBy before fetching anything, MUST require in the request a permission for fdt-p:acceptHandOver constrained by fdt-p:inboundStateClass, MUST fetch url over https only, and MUST hash what it got and compare it to digest.
| § 10.2 What arrives | Schema — visit-descriptor.schema.json (a hand-over requires a lineage and the permission; url is https only) over visit-descriptor-ttg-hop3.json; fdts-policy:AcceptHandOverShape refusing request-accepting-a-hand-over-without-an-inbound-class.ttl. Harness for the membership itself, which no schema can decide, and for the digest.
|
| STA-32 | Handing state onward, a station MUST record the hand-over digest as onward.handedOverDigest and MUST hand Pseudonym-class state only to the station named in linkageStation, which performs the identifier translation.
| § 10.1 What leaves | Schema — visit-result.schema.json (onward), visit-result-ttg-hop1.json. Harness.
|
| STA-33 | All traffic a station opens or accepts under this protocol MUST be over TLS. | § 17.2 Transport and integrity | Harness. |
| STA-34 | A station MUST hold, from out-of-band configuration, two separately configured key lists — the keys of the Handlers it accepts visits from and the keys of the parties it grants standing to — MUST verify a Handler’s signature only against the first and a consumer’s only against the second, and MUST NOT take a key from the document it verifies. Where its lists record key ids it MUST answer UnknownKey (AuthorisationUnknownKey) when it holds no key under the id a signature names for that signer, even if it holds the signer’s key under another id, and WrongParty (AuthorisationWrongParty) for a signature made with a key it holds for somebody else.
| § 7.2 Two key lists | Rule — descriptor.py check: visit-descriptor-gd-m1.json presented to a station holding no Handler key (UnknownKey), no party key (AuthorisationUnknownKey), and the two keys enrolled in each other’s list (DoesNotVerify); the key-id control and counter-example of check(). Harness for the configuration.
|
| STA-35 | At PEP 1 a station MUST verify the Handler’s signature over the descriptor — signedBy is consumer.handler; signedDigest is the digest of § 7.1 What is signed as the station computes it; the signature verifies against the key its Handler list holds; station is this station; the station’s clock is not after expiresAt nor more than five minutes before issuedAt — and MUST reject a descriptor that fails, stating exactly one of Unsigned, WrongParty, WrongDigest, UnknownKey, DoesNotVerify, WrongStation, Expired in the top-level reason of the Problem it answers with (STA-38). A descriptor with no RFC 8785 form is WrongDigest.
| § 7.1 What is signed, § 7.3 Verification at PEP 1 | Schema — visit-descriptor.schema.json (signature, station, issuedAt, expiresAt required), refusing visit-descriptor-that-nobody-signed.json. Rule — descriptor.py check, rejecting visit-descriptor-whose-parameters-changed-after-it-was-signed.json (WrongDigest), visit-descriptor-signed-by-another-handler.json and visit-descriptor-signed-by-its-consumer-instead-of-its-handler.json (WrongParty), visit-descriptor-signed-with-a-key-that-is-not-its-handlers.json (DoesNotVerify), and visit-descriptor-gd-m1.json presented to another station (WrongStation) and a day after it expired (Expired).
|
| STA-36 | At PEP 1 a station MUST verify the consumer’s signature over the run authorisation the descriptor carries — signedBy is the authorisation’s consumer; the digest is its own; the signature verifies against the key its party list holds; the station’s clock is inside the authorisation’s lifetime — and MUST reject a descriptor that fails, stating exactly one of AuthorisationMissing, AuthorisationUnsigned, AuthorisationWrongParty, AuthorisationWrongDigest, AuthorisationUnknownKey, AuthorisationDoesNotVerify, AuthorisationExpired in the top-level reason of the Problem it answers with (STA-38).
| § 7.3 Verification at PEP 1, § 14.2 Run authorisation | Schema — run-authorisation.schema.json over the five published run-authorisation-*.json. Rule — descriptor.py check, rejecting visit-descriptor-without-a-run-authorisation.json (AuthorisationMissing), visit-descriptor-whose-authorisation-nobody-signed.json (AuthorisationUnsigned), visit-descriptor-whose-authorisation-another-party-signed.json (AuthorisationWrongParty), visit-descriptor-whose-authorisation-was-widened-after-signing.json (AuthorisationWrongDigest), visit-descriptor-whose-authorisation-was-signed-with-another-key.json (AuthorisationDoesNotVerify), visit-descriptor-under-an-expired-authorisation.json (AuthorisationExpired); AuthorisationUnknownKey as STA-34.
|
| STA-37 | At PEP 1, both signatures holding, a station MUST check that the descriptor is inside the authorisation and MUST reject it otherwise, stating exactly one of ConsumerMismatch, WrongHandler, OutsideAudience, PlanNotAuthorised, TrainNotAuthorised, PurposeNotAuthorised, OutsideAuthorisedPeriod, as the table of § 7.3 Verification at PEP 1 defines them, in the top-level reason of the Problem it answers with (STA-38). It MUST read the request’s purposes as RDF, with the contracts' own JSON-LD contexts and fetching none, and MUST treat a request it cannot read with them as stating no purpose.
| § 7.3 Verification at PEP 1 | Rule — descriptor.py check, rejecting visit-descriptor-under-another-consumers-authorisation.json (ConsumerMismatch), visit-descriptor-under-an-authorisation-given-to-another-handler.json (WrongHandler), visit-descriptor-to-a-station-outside-its-audience.json (OutsideAudience), visit-descriptor-for-a-plan-it-does-not-authorise.json (PlanNotAuthorised), visit-descriptor-for-a-train-it-does-not-list.json (TrainNotAuthorised), visit-descriptor-for-a-purpose-it-does-not-authorise.json and the same purpose in three request layouts — visit-descriptor-whose-request-is-a-flattened-graph-for-a-purpose-it-does-not-authorise.json, visit-descriptor-whose-request-is-a-uid-alias-for-a-purpose-it-does-not-authorise.json, visit-descriptor-whose-request-is-a-one-permission-object-for-a-purpose-it-does-not-authorise.json (PurposeNotAuthorised) — and visit-descriptor-that-outlives-its-authorisation.json (OutsideAuthorisedPeriod); accepting the authorised purpose in the same three layouts (purpose_layout_controls()).
|
| STA-38 | A station MUST perform PEP 1 in the order of § 7.3 Verification at PEP 1 — the credential, the schema, the descriptor’s signature, the authorisation’s signature, the binding, the creator’s signature, the payload digest, then everything else — and MUST reject with the first of the twenty-six words of STA-35 to STA-37 and STA-46 it meets, each Rejected at PEP1. A schema failure for want of a signature is Unsigned, for want of an authorisation AuthorisationMissing. The word MUST be the top-level reason of the Problem — or AcknowledgementProblem — the station answers with, and, where the event it records carries justification.evidence.descriptorCheck, the same word. A station MUST NOT demand or judge a take.
| § 7.3 Verification at PEP 1, § 7.6 A take is not the station’s to judge, § 14.7 VisitStatus and Problem | Schema — rejection-reason.schema.json, the reason of Problem (station-visit-api.yaml) and of AcknowledgementProblem (handler-callback-api.yaml); tests/validate_protocol.py holds reason and descriptorCheck to one word where both are present, over ack-rejected-at-pep1-gd-m1-poll.json (reason WrongDigest, captured from the reference station). Rule — descriptor.py check: each counter-example of STA-35 to STA-37 differs from visit-descriptor-gd-m1.json in one member, so the word it is rejected with is not masked by a second fault. Harness for the credential’s place in the order.
|
| STA-39 | Until both signatures and the binding hold a station MUST act on nothing in the descriptor: a rejection at the schema, the signatures or the binding MUST be answered only to whoever presented the descriptor and MUST NOT be posted to reporting.callbackUrl; it MUST NOT occupy the visit IRI; and it MUST be recorded as a presentation and not as a visit — a visit.rejected event at PEP1 whose visit is an IRI the station mints, also the instance of the Problem answered, with sequence 1, attempt 1, no run, no previous, justification.evidence.descriptorVerified: false and the descriptor’s claims as bounded strings under justification.evidence.presented — shown to the operator and a station-wide auditor only.
| § 7.4 Nothing is acted on until the signatures hold | Schema — the turned-away rule of visit-event.schema.json, refusing visit-event-turned-away-carrying-previous.json; station-admin-api.yaml (AuditEvent, TurnedAwayAccount) over admin-events-turned-away.json and admin-events-turned-away-scoped.json. Harness for the callback and the visit IRI.
|
| STA-40 | A station MUST recognise a replay only after the presented descriptor verified, and only when the digest it computes from it equals that of the descriptor it holds for the visit and attempt. It MUST decline with 409 and a Problem carrying no outcome — under poll dispatch, as its acknowledgement — a second, different, verified descriptor for a visit and attempt it already took, and a descriptor for a visit another of whose attempts has not finished.
| § 7.4 Nothing is acted on until the signatures hold, § 6.4 Idempotency, attempts and withdrawal | Schema — ack-declined-different-descriptor-gd-m1-poll.json against AcknowledgementProblem (handler-callback-api.yaml). Harness.
|
| STA-41 | Every event, envelope, VisitStatus and acknowledgement a station sends about a visit MUST carry attempt. An acknowledgement MUST name the attempt the collected descriptor stated, 1 where it stated none; a descriptor whose attempt is not a positive integer MUST NOT be acknowledged.
| § 6.4 Idempotency, attempts and withdrawal | Schema — attempt required by visit-event.schema.json, visit-result.schema.json, VisitStatus (station-visit-api.yaml) and AcknowledgementProblem (handler-callback-api.yaml), over every published event and envelope and ack-visit-received-gd-m1-poll.json, ack-rejected-at-pep1-gd-m1-poll.json. Harness.
|
| STA-42 | A station MUST write into every visit agreement it concludes the run authorisation it was concluded under — fdt-p:underRunAuthorisation and fdt-p:runAuthorisationDigest, taken from the descriptor whose signatures it verified — before it signs the assigner’s side.
| § 7.5 What binds it to the agreement | Schema — fdts-policy:VisitAgreementPinsItsRunAuthorisationShape refusing agreement-that-pins-no-run-authorisation.ttl. Rule — derivation.py check, comparing every visit agreement with the authorisation it names and refusing agreement-pins-a-digest-that-is-not-its-authorisations.ttl, agreement-under-another-consumers-authorisation.ttl.
|
| STA-43 | A station MUST reject at PEP 1, with AgreementUnderAnotherAuthorisation, a descriptor presenting an agreement whose fdt-p:runAuthorisationDigest is not the digest of the authorisation the descriptor carries, and MUST answer that word only after STA-35 to STA-37 hold and the agreement’s assignee and target are found to be the descriptor’s.
| § 7.5 What binds it to the agreement, § 8.1 Request or agreement | Rule — descriptor.py check, rejecting visit-descriptor-presenting-an-agreement-under-another-authorisation.json and accepting its control. Harness for the order.
|
| STA-44 | Every event a station returns MUST carry previous, the link digest of the link before it in the same visit and attempt: for the first event, the signed digest of the descriptor it answers; for an event after the envelope, the envelope’s.
| § 12.1 The chain | Rule — descriptor.py check: visit-events-gd-m1.json chains to the signed digest of visit-descriptor-gd-m1.json; refusing stream-with-an-event-dropped.json, stream-with-two-events-swapped.json, event-chained-to-another-attempts-event.json (ChainBroken). Schema — visit-event.schema.json (previous), required on the callbacks and reads of handler-callback-api.yaml and station-visit-api.yaml.
|
| STA-45 | Every attempt a station took MUST end in an envelope signed by the station with the key it signs the assigner’s side with, signedBy the station, carrying lastEventDigest, and sent only after every event it closes was accepted. After a later event about the attempt the station MUST re-issue the envelope — same outcome, lastEventDigest naming that event, a new signature — by PUT /visits/{visitId}/result, and serve the latest at GET /visits/{visitId}/result.
| § 12.2 The envelope closes it | Rule — descriptor.py check: visit-result-gd-m1.json and visit-result-gd-m1-refused.json verify against the published key of …/station/ut; visit-result-ttg-hop1-at-delivery.json and its re-issue visit-result-ttg-hop1.json close the hop-1 stream before and after obligation.scheduled; refusing envelope-unsigned.json (Unsigned), envelope-signed-by-another-station.json (WrongParty), envelope-altered-after-signing.json (WrongDigest), envelope-closing-another-last-event.json (ChainBroken). Harness for the order of sending.
|
| STA-46 | At PEP 1, once STA-35 to STA-37 hold and before it compares the payload digest, a station MUST fetch the train’s submission, the creator’s signature and the payload bytes from the Depot, MUST recompute the submission digest itself, and MUST verify the signature against a key it holds out of band for the train’s dct:creator; it MUST reject a visit that fails — a train with no kept signature and a creator it holds no key for included — stating exactly one of CreatorUnsigned, CreatorWrongParty, CreatorWrongDigest, CreatorUnknownKey, CreatorDoesNotVerify in the top-level reason of the Problem it answers with (STA-38). A creator key retired before the train’s recorded publication time (dct:issued), or a submission with no recorded time under a retired key, is CreatorUnknownKey.
| § 7.3 Verification at PEP 1 | Rule — descriptor.py check (verify_creator): trains/gene-disease.* and trains/time-to-groin.* verify against their creators' published keys; refusing the six counter-examples of examples/protocol/invalid/creator/ — train-served-without-a-signature.json (CreatorUnsigned), train-signed-by-somebody-other-than-its-creator.json (CreatorWrongParty), train-whose-description-changed-after-signing.json and train-whose-bytes-are-not-the-signed-bytes.json (CreatorWrongDigest), train-signed-with-a-key-nobody-holds.json (CreatorUnknownKey), train-whose-signature-does-not-verify.json (CreatorDoesNotVerify); gene-disease under a creator key retired after its publication time accepted, and with no publication time CreatorUnknownKey. Schema — rejection-reason.schema.json. Harness.
|
2.3.2. A push-dispatch station
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| PUSH-1 | A push-dispatch station MUST implement, as station-visit-api.yaml defines them, GET /, POST /visits, GET /visits/{visitId}, GET /visits/{visitId}/events, GET /visits/{visitId}/result, POST /visits/{visitId}/cancel, POST /visits/{visitId}/agreement/signature and GET /agreements/{agreementId}; and GET /visits/{visitId}/artifacts/{name} when it releases artefacts by reference.
| § 15 Station API | Schema — station-visit-api.yaml. Harness.
|
| PUSH-2 | To POST /visits a station MUST answer 202 with a Location header and a VisitStatus when it took the visit; 200 with the current status on a replay of the same visit and attempt, recognised as STA-40 says; 400 with a Problem when rejected at PEP 1; 401 when the credential is missing or untrusted; 403 with a Problem when refused; 409 with a Problem carrying no outcome when it declines the attempt (STA-40); and 415 when it does not support the mechanism.
| § 6.1 Push dispatch, § 6.4 Idempotency, attempts and withdrawal, § 4 Parties and identifiers | Harness. |
| PUSH-3 | After negotiation.matched a station MUST emit negotiation.awaiting-signature naming the agreement and carrying agreementDigest in its justification’s evidence; MUST serve the agreement at GET /agreements/{agreementId} to a party to it, with a Digest header; and MUST verify the posted AgreementSignature as STA-19 says, store it, emit negotiation.active and queue the run — answering 404 when nothing awaits a signature, 409 when already signed and 422 naming which of the four refusals.
| § 8.4.3 The exchange, in two shapes, § 15 Station API | Schema — visit-events-gd-m1.json (nine events, the fifth negotiation.awaiting-signature). Harness.
|
| PUSH-4 | While the assignee has not signed, a station MUST record no outcome and MUST leave the visit at negotiation.awaiting-signature until it is withdrawn.
| § 8.4.5 When the assignee does not sign | Harness. (Q27 default.) |
| PUSH-5 | Under reporting mode callback a station MUST POST events to {callbackUrl}/events and PUT the envelope to {callbackUrl}/result, presenting callbackToken as a bearer token; under poll it MUST serve GET /visits/{visitId}/events?after=n returning the events with sequence greater than n, and GET /visits/{visitId}/result, answering 409 while the visit is not terminal.
| § 6.3 Reporting modes, § 11.1 Events, § 11.2 Result and artefacts | Harness. |
| PUSH-6 | To POST /visits/{visitId}/cancel a station MUST answer 200 with the visit’s current status, and MUST act as STA-29 says.
| § 13.1 Cancellation | Harness. |
2.3.3. A poll-dispatch station
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| POLL-1 | A poll-dispatch station MUST implement as a client, as handler-callback-api.yaml defines them, GET /stations/{stationId}/pending-visits, POST /visits/{visitId}/ack, POST /visits/{visitId}/events, PUT /visits/{visitId}/result and POST /visits/{visitId}/agreement; and PUT /visits/{visitId}/artifacts/{name} when it releases artefacts by reference.
| § 6.2 Poll dispatch, § 16 Handler API — the station-facing surface | Schema — handler-callback-api.yaml. Harness.
|
| POLL-2 | For each descriptor it takes, a station MUST POST /visits/{visitId}/ack with its first event — visit.received — or with an AcknowledgementProblem when it rejects the descriptor at PEP 1 or declines the attempt (STA-40), never skipping a collected descriptor. The acknowledging event is the first link of the visit’s chain and its delivery: answered 204, the station MUST NOT post it again by callback. Answered 409, it MUST NOT start the visit; answered 422, the entry stays pending.
| § 6.2 Poll dispatch, § 12.3 Verification at the Handler | Schema — handler-callback-api.yaml over ack-visit-received-gd-m1-poll.json, ack-rejected-at-pep1-gd-m1-poll.json, ack-declined-different-descriptor-gd-m1-poll.json. Harness.
|
| POLL-3 | A poll-dispatch station MUST report by callback. | § 6.3 Reporting modes | Harness. |
| POLL-4 | A poll-dispatch station MUST NOT emit negotiation.awaiting-signature. After negotiation.matched it MUST send one CountersignatureRequest to POST /visits/{visitId}/agreement, carrying the agreement IRI, the agreement itself as canonical N-Quads or Turtle — never a JSON projection — and the assigner’s signature; on 201 it MUST store both signatures and emit negotiation.active with signatureRoute: station-initiated and dispatchMode: poll in its justification’s evidence; on 422, whose body names one of the five words of CountersignatureRefused, it MUST proceed as PUSH-4 says, without the event.
| § 8.4.3 The exchange, in two shapes, § 14.8 Signature messages | Schema — poll-countersign-ask-gd-m1.json, visit-events-gd-m1-poll.json (eight events, no negotiation.awaiting-signature); refusing poll-countersign-ask-without-the-assigners-signature.json, poll-countersign-ask-whose-document-is-not-the-one-signed.json, poll-countersign-ask-that-chooses-its-own-role.json. Harness.
|
| POLL-5 | Answered 410 to POST /visits/{visitId}/events, a station MUST stop the visit at its next checkpoint as STA-29 says.
| § 16 Handler API — the station-facing surface | Harness. |
| POLL-6 | A poll-dispatch station MUST authenticate at the Handler with the OpenID Connect client credentials of its operator. | § 17.1 Credentials | Harness. |
| POLL-7 | A poll-dispatch station MUST verify every descriptor it collects exactly as STA-34 to STA-39 require of a pushed one: the pending list is a transport, not a source of trust. | § 7.3 Verification at PEP 1 | The rules of STA-34 to STA-39; ack-rejected-at-pep1-gd-m1-poll.json (a tampered copy collected from the pending list, turned away WrongDigest). Harness.
|
2.3.4. A Train Handler
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| HND-1 | A Handler MUST mint the visit IRI of every visit and use it as the idempotency key: a retry of a Failed visit MUST re-dispatch the same visit IRI with attempt incremented by one and negotiation.agreement set to the existing agreement.
| § 4 Parties and identifiers, § 6.4 Idempotency, attempts and withdrawal | Schema — visit-descriptor.schema.json (visit required). Harness for retries.
|
| HND-2 | Every descriptor a Handler composes MUST conform to the visit-descriptor schema: the protocol identifier; hop and phase; the train’s IRI, type and mechanism; payload.digest equal to the fdt-o:artifactDigest of the train’s Depot offer, with exactly one of content or url; exactly one of negotiation.request or negotiation.agreement; onward; reporting; consumer with party and handler; station, issuedAt, expiresAt, authorisation and signature.
| § 14.1 Visit descriptor | Schema — visit-descriptor.schema.json over visit-descriptor-gd-m1.json, visit-descriptor-ttg-hop1.json, visit-descriptor-ttg-hop3.json. Rule — payloads.py check for the digest.
|
| HND-3 | A Handler MUST embed an odrl:Request valid against fdts-policy:RequestShape — the network, the train, the target, the assignee and the actions asked for with their constraints, a purpose among them — or the IRI of an existing active agreement; the descriptor’s consumer.party MUST be the request’s odrl:assignee.
| § 8.1 Request or agreement | Schema — fdts-policy:RequestShape and fdts-policy:PolicyCommonShape over the requests of policies.ttl and trains-and-plans.ttl, refusing request-without-network.ttl, request-without-purpose.ttl, request-without-train.ttl. Harness for the party match.
|
| HND-4 | A Handler MUST visit under its own credential and MUST NOT forward a consumer’s. It MUST carry consumer.presentation verbatim in every descriptor, MUST carry exchangedToken only alongside it, and MUST NOT set assurance or exchange in a presentation it sends.
| § 17.1 Credentials, § 14.6 Presentation | Schema — presentation.schema.json; the ADR-044 mutations of tests/validate_protocol.py. Harness for the credential used.
|
| HND-5 | A Handler MUST state approvalWait as an xsd:dayTimeDuration — never in months or years — and while a visit is pending MUST wait up to it and then either withdraw the visit with cause approval-timeout or keep waiting as the plan’s failure policy says; a visit so withdrawn MUST be recorded TimedOut.
| § 8.2 Matched, pending, refused, § 14.1 Visit descriptor | Schema — the P1M mutation of tests/validate_protocol.py; fdts-run:FailurePolicyShape refusing plan-approval-wait-of-one-month.ttl, plan-approval-wait-typed-xsd-duration.ttl. Harness for the wait.
|
| HND-6 | Before signing, a Handler MUST compute the canonical digest of the agreement document it holds and check that it equals the digest stated; MUST verify the assigner’s signature over it against the key it holds for that party from out-of-band configuration; MUST check the terms; and MUST check that the agreement pins, by IRI and digest, the run authorisation its visit was sent under. It MUST NOT sign a document the station has not signed, a digest other than the one it computed, a document whose assigner signature is for a party other than the agreement’s assigner, or an agreement that pins another run authorisation or none; refusing a poll-dispatch station, it MUST state exactly one of the five words of CountersignatureRefused. | § 8.4.3 The exchange, in two shapes, § 8.4.4 Refusing a signature | Rule — canonical.py against tests/canonical-vectors/; derivation.py check verifies every counter-signature in examples/ against the key it names and refuses agreement-changed-after-it-was-signed.ttl, agreement-pins-a-digest-that-is-not-its-authorisations.ttl; fdts-policy:VisitAgreementPinsItsRunAuthorisationShape refusing agreement-that-pins-no-run-authorisation.ttl. Schema — refusing poll-countersign-ask-without-the-assigners-signature.json, poll-countersign-ask-whose-document-is-not-the-one-signed.json. Harness for the four cases.
|
| HND-7 | A Handler MUST sign the assignee’s side with its own operator key — the key the run authorisation names — for the consumer: signedBy the Handler, onBehalfOf the consumer; and MUST NOT describe that signature as the consumer’s own. It signs to a push-dispatch station by posting an AgreementSignature — which carries no role — to POST /visits/{visitId}/agreement/signature; to a poll-dispatch station by serving POST /visits/{visitId}/agreement, answering 201 with a Countersignature, 409 when already countersigned, or 422 with a CountersignatureRefused.
| § 8.4.2 Who signed, and for whom, § 8.4.3 The exchange, in two shapes, § 14.8 Signature messages, § 16 Handler API — the station-facing surface | Schema — poll-countersign-answer-gd-m1.json; fdts-policy:AgreementShape refusing agreement-signed-by-the-assignee-only.ttl (a Handler that signs first); fdts-policy:HandlerSignsForTheConsumerShape refusing agreement-signed-by-the-handler-for-nobody.ttl. Rule — derivation.py check refusing handler-signed-the-consumers-side-as-the-consumer.ttl, handler-signed-under-an-authorisation-given-to-another-handler.ttl. Harness.
|
| HND-8 | A Handler MUST accept at-least-once delivery of events; MUST de-duplicate them on id, answering 204 to an event equal under RFC 8785 to the one it accepted under that id before any chain check; MUST order them on sequence; MUST file every message a station sends under the (visit, attempt) it names and never under an attempt it inferred; and MUST drive its view of the run from the event stream and the envelopes alone.
| § 11.1 Events, § 12.3 Verification at the Handler, § 6.4 Idempotency, attempts and withdrawal | Harness. |
| HND-9 | A descriptor that carries handOver MUST name handOver.fromVisit in its own precededBy, MUST carry a request with a permission for fdt-p:acceptHandOver constrained by fdt-p:inboundStateClass, and MUST name the hand-over by https location and digest and never carry it.
| § 10.2 What arrives | Schema — visit-descriptor.schema.json over visit-descriptor-ttg-hop3.json; fdts-policy:AcceptHandOverShape refusing request-accepting-a-hand-over-without-an-inbound-class.ttl. Harness for the membership, which no schema can decide.
|
| HND-10 | A Handler MUST hold Aggregate-class results, envelopes, events and the names of hand-overs only (ADR-015); Pseudonym-class state travels only from station to station. It MUST answer 422 to an envelope carrying record-level content, lacking its outcome, reason or attempt, or naming an attempt it never offered, and 409 to an uploaded artefact whose digest is not the envelope’s.
| § 10.2 What arrives, § 11.2 Result and artefacts, § 16 Handler API — the station-facing surface | Harness. |
| HND-11 | A Handler MUST assemble the run record and the completeness statement from envelopes and events only, reporting for every intended station its outcome in the seven words verbatim, its cause and the station’s stated reason; Skipped is the Handler’s own record and MUST carry one of NotSelected, NotEvaluated, Pruned, Dropped, OutsideAuthorisation.
| § 13 Outcomes, cancellation, retries, revocation, § 14.5 Visit-result envelope | Schema — visit-result.schema.json (a skipped visit carries skipCause and reason); run-state.schema.json over run-state-two-phase.json; fdts-run:RunShape refusing run-partial-without-completeness.ttl; fdts-run:VisitShape refusing run-skipped-outside-authorisation-reported-as-refused.ttl. Harness.
|
| HND-12 | A Handler MUST apply the plan’s failure policy and budget deadline through POST /visits/{visitId}/cancel, stating a reason and one of the causes approval-timeout, fail-run, stopped-by-person, deadline, replanned; it MUST NOT report a visit it withdrew as Refused or Rejected.
| § 6.4 Idempotency, attempts and withdrawal, § 13.1 Cancellation | Harness. |
| HND-13 | A Handler MUST dispatch query and API trains orchestrated and MUST NOT give them onward destination train.
| § 10.1 What leaves | Schema — fdts-run:QueryTrainOrchestratedShape refusing plan-query-train-choreographed.ttl. Harness for the descriptor.
|
| HND-14 | Serving GET /visits/{visitId}/plan, a Handler MUST disclose the run’s structure in full and never another station’s identity in any form — intendedStationCount and not the list — MUST say in redaction what the document withholds, and MUST answer 403 to a caller who does not hold the visit.
| § 14.9 Redacted plan, § 16 Handler API — the station-facing surface | Schema — redacted-plan.schema.json over redacted-plan-ttg-hop1.json, refusing the seven redacted-plan-*.json counter-examples. Harness for 403.
|
| HND-15 | Everything a station can reach at a Handler MUST be scoped to that station’s own traffic, reachable with the per-visit callback token or the station operator’s credential; nothing a consumer’s console reads MUST be reachable with either. | § 16 Handler API — the station-facing surface | Harness. |
| HND-16 | For a poll-dispatch station a Handler MUST serve GET /stations/{stationId}/pending-visits, honouring wait up to 60 s and offering each attempt of a visit as its own pending entry, removed only by the acknowledgement that names that visit and attempt; MUST answer 409 to the acknowledgement of an attempt it withdrew or superseded with a later one; MUST answer 422, leaving the entry pending, to an acknowledgement that names no attempt, does not conform, names an attempt it never offered, or whose event does not chain; MUST answer 204 to a re-delivered acknowledgement; and MUST answer 410 to the events of a withdrawn attempt.
| § 6.2 Poll dispatch, § 16 Handler API — the station-facing surface | Schema — AcknowledgementProblem (handler-callback-api.yaml) over the three ack-*-gd-m1-poll.json. Harness.
|
| HND-17 | A Handler MUST keep the outcome vocabulary exact in code, logs and user interfaces, and a console MUST render presented-only and presented-and-verified as two states.
| § 13 Outcomes, cancellation, retries, revocation, § 17.1 Credentials | Harness. |
| HND-18 | All traffic a Handler opens or accepts under this protocol MUST be over TLS. | § 17.2 Transport and integrity | Harness. |
| HND-19 | A Handler MUST send a visit only under a run authorisation its consumer signed, carried by value in every descriptor of the run. It MUST NOT hold a consumer’s signing key, and MUST NOT sign a descriptor, an authorisation or a side of an agreement with one. | § 7 The run authorisation and the signed descriptor | Schema — visit-descriptor.schema.json (authorisation required); run-authorisation.schema.json over the five published run-authorisation-*.json. Rule — descriptor.py check, verifying every published descriptor’s authorisation against its consumer’s key and rejecting visit-descriptor-without-a-run-authorisation.json, visit-descriptor-signed-by-its-consumer-instead-of-its-handler.json. Harness for custody.
|
| HND-20 | A Handler MUST sign every descriptor with its own operator key — the key the authorisation’s handler.keyId names — as consumer.handler, addressed in station to the station it is sent to, with issuedAt and an expiresAt no later than the run’s deadline and the authorisation’s expiresAt. A run whose budget deadline has passed MUST dispatch nothing, and the Handler MUST tell the caller why.
| § 7.1 What is signed, § 14.1 Visit descriptor | Rule — descriptor.py check verifying every published descriptor against its Handler’s key; tests/validate_protocol.py (no published descriptor outlives its run’s deadline). Harness for the deadline.
|
| HND-21 | A Handler MUST NOT send a descriptor outside its run authorisation. A station a plan selects that the authorisation does not cover MUST be sent nothing and recorded Skipped with cause OutsideAuthorisation — not Dropped, and never Refused or Rejected.
| § 7 The run authorisation and the signed descriptor, § 13 Outcomes, cancellation, retries, revocation | Schema — skipCause of visit-result.schema.json and run-state.schema.json; fdts-run:VisitShape refusing run-skipped-outside-authorisation-reported-as-refused.ttl. Rule — descriptor.py check_binding, which a Handler can run on its own descriptor before signing it. Harness.
|
| HND-22 | A Handler that receives a 409 declining an attempt — the answer to a push, or an AcknowledgementProblem carrying no outcome — MUST end that attempt Failed with the station’s detail as its reason, verbatim, and apply the plan’s failure policy; a retry is a new attempt.
| § 6.4 Idempotency, attempts and withdrawal | Schema — ack-declined-different-descriptor-gd-m1-poll.json. Harness.
|
| HND-23 | A Handler MUST verify every event and envelope a station returns as § 12.3 Verification at the Handler says — the chain against the last link it accepted for the visit and attempt, the envelope’s signature against the key it holds for the station the visit was sent to — MUST refuse one that does not verify with a ReturnRefused naming one of the six return reasons, MUST store nothing it refused, MUST NOT end a visit in any outcome on the strength of a refused envelope, and MUST end that attempt Failed, with the reason the station’s result did not verify and the word. | § 12.3 Verification at the Handler | Rule — descriptor.py check, verifying the published streams and envelopes against the published key of their station and refusing the seven counter-examples of examples/protocol/invalid/returns/ (envelope-unsigned.json, envelope-signed-by-another-station.json, envelope-altered-after-signing.json, envelope-closing-another-last-event.json, stream-with-an-event-dropped.json, stream-with-two-events-swapped.json, event-chained-to-another-attempts-event.json), each with its word, and UnknownKey and DoesNotVerify at a verifier’s key list. Schema — return-reason.schema.json; the 422 bodies of handler-callback-api.yaml. Harness.
|
| HND-24 | Wherever a Handler serves a station’s events or envelopes it MUST serve each exactly as the station emitted it, equal under RFC 8785, and MUST state what it concluded about a station’s return beside the document — returnsRefused in the run state, returnRefused on a run’s visit row — never inside it.
| § 12.4 The Handler serves what it accepted verbatim | Schema — run-state.schema.json (returnsRefused) over run-state-two-phase.json; RunVisit (handler-api.yaml) over run-visit-whose-return-was-refused.json, refusing run-visit-return-refused-with-an-outcome-word.json. Rule — tests/validate_protocol.py verifies every envelope of run-state-two-phase.json against the published key of its station. Harness for serving verbatim.
|
| HND-25 | A Handler MUST take the digest of a hand-over it names only from a producing envelope it verified.
| § 12.5 What this establishes, and what it does not, § 10.2 What arrives | Harness. |
2.4. Optional features
The following are permitted by this specification and required by no conformance class. A conformance statement says which of them an implementation provides.
| Feature | Who | Stated in |
|---|---|---|
Streaming events as Server-Sent Events on Accept: text/event-stream
| push-dispatch station | § 11.1 Events |
| Batching several events of one visit in one callback | station | § 11.1 Events |
visit.progress events
| station | § 9 Execution and inspection |
A station-side approval timeout, approval.expiresAt
| station | § 8.2 Matched, pending, refused |
Releasing artefacts by reference (artifacts[].url, or upload under poll dispatch)
| station | § 11.2 Result and artefacts |
| Both dispatch modes | station | § 6.2 Poll dispatch |
Long-polling the pending list with wait
| Handler | § 16 Handler API — the station-facing surface |
| Carrying an RFC 8693 exchanged token | Handler, where the network’s identity provider performs the exchange | § 17.1 Credentials |
Onward destination linkage and train
| Handler and station | § 10.1 What leaves |
2.5. Conformance statement
An implementation claims conformance by stating:
-
the conformance class or classes claimed;
-
the
fdt-commonsversion and commit whose artefacts it was validated against (Appendix B: Normative artefacts names this document’s); -
which optional features of § 2.4 Optional features it provides;
-
for every criterion checked by schema or rule, that it accepts every published fixture named and refuses every counter-example named with the message
tests/expectations.jsonrecords — the reference implementation’smake checkis one way to run them all; -
for every criterion checked by harness, the evidence it offers, and whether that evidence was produced by a harness a third party can run.
A statement that leaves item 5 to self-assertion is a valid statement and says so. The conformance harness and a statement template are owed by the reference implementation’s conformance work package and will be published beside this document; until they are, no implementation other than the reference implementation can make a third-party-verified claim, and this specification does not pretend otherwise.
3. Terminology
- run
-
One execution of a plan — a train, its parameter values, an itinerary and a request template — by a Handler. A run is decomposed into visits.
- hop, phase
-
A visit’s position in its itinerary: the hop counts outward from the run’s entry stations; the phase is the order of the itinerary phase it belongs to. Both are integers from 1.
- attempt
-
A retry re-dispatches the same visit IRI with
attemptincremented, under the same agreement. Attempts of one visit share its identity and its agreement. Every message a station sends about a visit names its attempt (§ 6.4 Idempotency, attempts and withdrawal). - agreement
-
The
odrl:Agreement[ODRL-MODEL] a station derives from the controller’s offer and the train’s request for one visit, pinned by digest and signed by both parties. One per visit (ADR-014). - checkpoint
-
One of the points at which a station decides: PEP 1 (arrival), NEG (negotiation), PEP 2 (before execution), EXEC (execution), PEP 3 (result inspection) and OBL (post-execution obligations).
- dispatch mode
-
How a visit reaches a station: push — the Handler posts it — or poll — the station fetches it from the Handler (ADR-004).
- reporting mode
-
How a station’s events and envelope reach the Handler: callback — the station posts them to a per-visit URL — or poll — the Handler reads them from the station. Note that the two senses of poll are different parties reading in different directions; § 8.4 Signatures of both parties depends on keeping them apart.
- onward state
-
What leaves a station other than the result delivered to the Handler: state of class
AggregateorPseudonymcarried to another station, directly in a choreographed train or through an identifier-translation hop.RecordLevelnever leaves a station. - hand-over
-
State produced by an earlier visit of the same run and named, by location and digest, as the input of a later one.
- outcome
-
The one word a visit ends in: Delivered, Refused, Rejected, TimedOut, Failed, Revoked, or — recorded by the Handler alone — Skipped (§ 13 Outcomes, cancellation, retries, revocation).
- canonical form
-
Of a graph G: its [RDF-CANON] (URDNA2015) canonical form, serialised as N-Quads, the lines sorted, joined with
\n, with a trailing\n, encoded UTF-8. Every digest a party signs or pins is"sha256:"followed by the lowercase hex SHA-256 of a canonical form.
4. Parties and identifiers
| Party | Role in the protocol | Identified by |
|---|---|---|
| Train Handler | Client of the Station API; server of the Handler API. Mints the visit IRI, carries the consumer’s run authorisation, signs each descriptor with its own operator key, embeds the request, signs the assignee’s side for the consumer, verifies what the station returns, applies the failure policy. | Its IRI (consumer.handler); its operator key, in the station’s Handler key list (§ 7.2 Two key lists); its own credential at the station (§ 17 Security).
|
| Data consumer | The party accountable for the run, and the assignee of every agreement it concludes. Signs the run authorisation once per run, at their own agent; takes no part in the protocol’s exchanges. | consumer.party and the authorisation’s consumer; their key, in the station’s party key list.
|
| Data Station | Server of the Station API; client of the Handler API. Verifies the descriptor’s two signatures and the binding between them, checks the arrival, negotiates, signs the assigner’s side, enforces the checkpoints, emits chained events, returns a signed envelope. | Its IRI (self-description); the identity providers it trusts per network; its signing key, in the Handler’s key configuration. |
| Train | The subject of the visit: an executable asset in a Train Depot’s catalogue, with its creator’s offer and its payload digest (ADR-020). | train.iri; its payload by sha256: digest.
|
| Station hosting a translation or alignment service | An ordinary station whose mechanism is identifier translation or vocabulary alignment; visited with this protocol under its own agreement. | As any station. |
Identifiers are IRIs. The visit IRI is the idempotency key of the whole exchange: a repeated
push, a retry under the same agreement, and every event and envelope refer to it. A station MUST
treat a repeated POST /visits with the same visit and attempt as a replay and answer with the
visit’s current status — once it has verified the presented descriptor and found it to be the one
it holds (§ 7.4 Nothing is acted on until the signatures hold). Event IRIs are minted by the station and MUST be unique; sequence MUST
be monotonic per visit and attempt.
A station MUST advertise that it speaks this protocol in its self-description ([FDT-METADATA]):
the station is itself a dcat:DataService whose dct:conformsTo is the protocol identifier
https://w3id.org/fdt/visit-protocol/v1 and whose dcat:endpointURL is the base URL of the
Station API; it states its dispatch mode or modes, links its key set and, where its metadata is not
served from that endpoint, names its publication base (§ 6.2 Poll dispatch).
5. Overview of a visit
This section is non-normative; the sections it points at are normative.
-
Dispatch. The Handler composes a visit descriptor carrying the run authorisation its consumer signed, signs it with its own key, and pushes it to the station, or a poll-dispatch station fetches it from the Handler (§ 6 Dispatch).
-
PEP 1. The station verifies the caller’s credential against the identity providers it trusts for the visit’s network; validates the descriptor against its schema; verifies the Handler’s signature over it, the consumer’s over the authorisation, and that the descriptor stays inside the authorisation (§ 7 The run authorisation and the signed descriptor); then validates the embedded ODRL request against
fdts-policy:RequestShape, checks that the train’s payload digest equals the one in the train’s depot offer, and checks that it supports the train’s mechanism. A failure rejects the visit; otherwise it emitsvisit.received, the first link of the visit’s chain. -
Negotiation. The station matches the request against the controller’s offer for the visit’s network and the owner’s policy. The outcome is a match, a case put to a person, or a refusal — which is the controller’s decision, never the station’s (§ 8 Negotiation on arrival).
-
Signatures. The station derives the agreement, pins the run authorisation in it, signs the assigner’s side and asks for the assignee’s; the Handler verifies the terms, the pins and that signature and signs the assignee’s side with its own key, for the consumer. Only then does the agreement become active, and only then does anything run (§ 8.4 Signatures of both parties).
-
PEP 2 and execution. The station checks that the agreement is active and about this visit and that its quotas allow the run, queues it, and runs the payload through the adapter for the train’s mechanism.
-
PEP 3. The station validates the result against the train’s declared output schema, checks every duty of the agreement on it, and decides what leaves and where (§ 9 Execution and inspection). A failure rejects the result; nothing leaves.
-
Delivery. The visit-result envelope — signed by the station, closing the chain of its events — is pushed to the Handler’s callback URL or fetched by the Handler, which verifies it (§ 12 What a station returns is signed); the visit ends in one of the outcomes of § 13 Outcomes, cancellation, retries, revocation.
6. Dispatch
6.1. Push dispatch
Under push dispatch the Handler POSTs the visit descriptor to the station’s dispatch endpoint,
read from the station’s self-description. The station MUST answer 202 Accepted with a
Location header naming the visit’s status URL and a VisitStatus body when the visit was
taken; 200 with the current status on a replay, recognised only as
§ 7.4 Nothing is acted on until the signatures hold says; 400 with a Problem when the visit is rejected at PEP 1;
401 when the credential is missing or untrusted; 403 with a Problem when the visit is refused
at negotiation; 409 with a Problem carrying no outcome when it declines the attempt
(§ 6.4 Idempotency, attempts and withdrawal); and 415 when the station does not support the train’s mechanism.
6.2. Poll dispatch
A station that cannot accept inbound connections MUST instead call
GET /stations/{stationId}/pending-visits on the Handler, which returns the descriptors waiting
for it and MAY long-poll for up to wait seconds; each attempt of a visit is its own pending
entry. The station MUST verify each descriptor it collects as § 7.3 Verification at PEP 1 says, and for
each it takes MUST POST /visits/{visitId}/ack with its first event — visit.received — or with
an AcknowledgementProblem if the visit is rejected at PEP 1 or the attempt is declined
(§ 6.4 Idempotency, attempts and withdrawal); it MUST NOT skip a collected descriptor, which would leave the entry
pending for ever. The acknowledgement is the delivery of the first event: a 204 to it is that
event’s acceptance, the station MUST NOT post the event again by callback, and its second event
chains to it (§ 12.1 The chain). An acknowledgement answered 409 means the Handler withdrew the
attempt or superseded it with a later one, and the station MUST NOT start it; one answered 422
was not taken and the entry stays pending. Beyond the gateway, processing is identical to push
dispatch (ADR-004).
A station advertises its dispatch mode or modes in its self-description, as fdt-p:dispatchMode
fdt-p:Push, fdt-p:Poll or both ([FDT-METADATA]); the Handler chooses per station.
A poll-dispatch station has no inbound port, so its visit API cannot serve its metadata. Its
self-description, catalogue, shapes and key set are served beneath a publication base its
operator designates (fdt-p:publicationBase), which a station given its visits only by poll MUST name
in its self-description (fdts-catalog:PollStationPublicationShape); one with no publication base
publishes no metadata at all and is known only through a registry entry ([FDT-METADATA];
protocol/visit-protocol.md §3.1). For a push-dispatch station the publication base is by default the
Station API’s base.
6.3. Reporting modes
The descriptor’s reporting.mode selects how the station’s events and envelope reach the Handler.
Under callback the station POSTs events to {callbackUrl}/events and PUTs the envelope to
{callbackUrl}/result, presenting the descriptor’s callbackToken as a bearer token. Under
poll the Handler reads GET /visits/{visitId}/events?after=n — or subscribes with
Accept: text/event-stream — and fetches GET /visits/{visitId}/result. A poll-dispatch station
MUST report by callback.
6.4. Idempotency, attempts and withdrawal
A Handler retrying a Failed visit MUST re-dispatch the same visit IRI with attempt incremented
by one and negotiation.agreement set to the existing agreement; the station MUST reuse that
agreement rather than negotiate anew. The Handler withdraws a visit with
POST /visits/{visitId}/cancel, stating a reason and a cause from approval-timeout,
fail-run, stopped-by-person, deadline or replanned; a queued or pending visit ends at once
and a running one stops at its next checkpoint (§ 13.1 Cancellation).
Every message a station sends about a visit names its attempt. Events, the result envelope,
the VisitStatus and the poll acknowledgement in both its forms MUST carry attempt, and a
Handler MUST file each under (visit, attempt) and never under an attempt it inferred — the
inference that a message naming none is about the live attempt is exactly wrong for a late or
re-delivered message about the previous one. An acknowledgement names the attempt the collected
descriptor stated (1 where it stated none), as a claim where the descriptor did not verify; a
descriptor whose attempt is not a positive integer names none and MUST NOT be acknowledged. The
one Problem without an attempt is the answer to a push, which travels back on the exchange that
carried the descriptor. A Handler offers each attempt to a poll-dispatch station as its own pending
entry under the same visit IRI.
A declined attempt ends Failed. A station MAY decline an attempt without deciding anything
about it, with 409 and a Problem that carries **no outcome*, in two cases: *a different
descriptor for this visit and attempt — a second, different, verified descriptor under an attempt
it already took, the first to verify holding the key — and visit already running — another
attempt of the visit has not finished. Under push dispatch the 409 answers the push; under poll
dispatch the station MUST send it as its acknowledgement. The Handler MUST end that attempt
Failed, with the station’s detail as its reason, verbatim, and apply the plan’s failure
policy; a retry is a new attempt. It is not Refused — no controller decided — and not Rejected — no
checkpoint judged the request: the visit did not happen, for a stated technical reason.
7. The run authorisation and the signed descriptor
A station checks a train’s code against the Depot’s offer and trusts neither the Handler nor
the wire for it (payload.digest, § 14.1 Visit descriptor). Everything else in a descriptor — the
parameter values the train runs with, the request, the onward destination, the callback address —is covered by two signatures made by two different key holders, so that a consumer’s intent
and a Handler’s action are never one claim (ADR-056, ADR-058):
-
the run authorisation, carried by value as the descriptor’s
authorisation, is signed once per run by the consumer, at their own Individual Gateway, with their own key; the Handler never holds that key. It proves: the consumer asked for these trains, for these purposes, at these stations or in this network, under this plan, through this Handler, until then. -
the descriptor is signed per visit by the Handler named in
consumer.handler, with its own operator key. It proves: this Handler sent these parameters to this station — the authorisation included, since it is inside the signed content.
Neither signature is described as the other. The authorisation bounds the Handler and does not replace the station’s decision: inside its bounds the Handler chooses parameters, retries and —for a plan that resolves its targets from earlier results — targets, and a station negotiates, evaluates and decides as § 8 Negotiation on arrival says.
7.1. What is signed
For both documents the signed digest is sha256: followed by the lowercase hex SHA-256 of the
RFC 8785 [RFC8785] serialisation of the document **with its signature member removed**. On a
descriptor that covers the payload digest, every parameter value, the embedded request, the onward
block, the callback address and token, the authorisation, and three members that exist to be inside
the digest: station (who the descriptor is addressed to), issuedAt and expiresAt. The visit
IRI and attempt remain the replay key (§ 6.4 Idempotency, attempts and withdrawal).
The signature is the construction every FDT signature uses: Ed25519 [RFC8032] over the digest
string as UTF-8, base64url without padding, in the closed signature object of
§ 14.3 Signature object, which has no onBehalfOf — whoever signs a protocol document signs it as
themselves. On a descriptor signedBy MUST be consumer.handler; on a run authorisation it MUST
be the authorisation’s consumer. tools/descriptor.py in fdt-commons is the one implementation
of both digests, both signatures and every check of this section; an implementation in another
language is held to its verdicts, word for word, over the published fixtures.
Note: RFC 8785 is the canonical form of these JSON documents; the canonical form of § 3 Terminology (URDNA2015) is that of the RDF agreement. They are different constructions over different documents and neither is applied to the other’s.
7.2. Two key lists
A station MUST hold, from its own out-of-band configuration, the public keys of the Handlers it
accepts visits from and the public keys of the parties it grants standing to, as two separate
lists. Enrolling a Handler grants transport; enrolling a party grants standing. A key in one list
says nothing about the other: a station that enrolled a consumer’s key as a Handler’s, and the
Handler’s as the consumer’s, accepts neither signature. A verifier MUST NOT take a key from the
document it is verifying. Every party publishes its key set at GET /keys ([FDT-METADATA]), for
discovery and never for trust: a key found there is trusted only once it is held out of band.
A key a party has retired stays in its set, marked with exp (key-set.schema.json). A
verifier MUST accept a signature by a retired key only over a document whose own time is before
exp — a descriptor’s or a run authorisation’s issuedAt, an envelope’s the time of the last
event it closes, an agreement’s dspace:timestamp, a train submission’s the publication time its
Depot recorded — and MUST answer a later document with the UnknownKey word of the check concerned
(UnknownKey, AuthorisationUnknownKey, CreatorUnknownKey), its detail saying the key was retired.
A document with no time of its own is verified by no retired key ([FDT-METADATA];
tools/descriptor.py usable_keys).
Where a key list records key ids, a verifier that holds no key under the id a signature names for
that signer MUST answer UnknownKey (AuthorisationUnknownKey for the authorisation), even when it
holds the signer’s key under another id: a key id is part of what was signed. A signature made with
a key the verifier holds for somebody else is WrongParty (AuthorisationWrongParty), never
UnknownKey or DoesNotVerify. A verifier that holds a bare key per subject cannot tell the two
apart and answers DoesNotVerify — a less informative answer to the same document, not a different
verdict.
7.3. Verification at PEP 1
At PEP 1 a station MUST verify both signatures and the binding between them, in the order below,
and then the creator’s signature over the train, and MUST reject the visit otherwise, saying which
of the following it found. Every word in this
section is a Rejected outcome — a checkpoint’s verdict on a document; nobody decided anything
about the request. The words are published as rejection-reason.schema.json.
(i) The Handler’s signature over the descriptor, against the station’s Handler list, with the descriptor’s addressee and lifetime:
| Reason | Meaning |
|---|---|
Unsigned
| The descriptor carries no complete signature. |
WrongParty
| signedBy is not the Handler named in consumer.handler — the consumer included: a descriptor signed by the party it binds is signed by the wrong party.
|
WrongDigest
| The stated digest is not this descriptor’s: it changed after it was signed. A document that has no RFC 8785 form — a NaN, an integer beyond 253 — is WrongDigest.
|
UnknownKey
| No key is held for that Handler under that id, or one is held only as retired before the descriptor’s issuedAt (§ 7.2 Two key lists). A key-distribution problem; it says nothing about the signature.
|
DoesNotVerify
| The signature is wrong. |
WrongStation
| Properly signed, and addressed in station to another station.
|
Expired
| Properly signed, and presented after expiresAt, or dated in issuedAt more than five minutes ahead of the station’s clock, or never valid (expiresAt not after issuedAt).
|
(ii) The consumer’s signature over the run authorisation, against the station’s party list, with the authorisation’s lifetime — the same seven checks about the other document:
| Reason | Meaning |
|---|---|
AuthorisationMissing
| The descriptor carries no run authorisation. |
AuthorisationUnsigned
| The authorisation carries no complete signature. |
AuthorisationWrongParty
| Its signedBy is not its consumer.
|
AuthorisationWrongDigest
| It changed after the consumer signed it. A Handler can re-sign a descriptor; it cannot re-sign what the consumer authorised. |
AuthorisationUnknownKey
| No key is held for that party under that id, or one is held only as retired before the authorisation’s issuedAt.
|
AuthorisationDoesNotVerify
| Its signature is wrong. |
AuthorisationExpired
| Presented after its expiresAt, or before its issuedAt beyond the five-minute skew.
|
(iii) The binding — both signatures hold, and the descriptor must be inside what was authorised:
| Reason | Meaning |
|---|---|
ConsumerMismatch
| The authorisation’s consumer is not the descriptor’s consumer.party.
|
WrongHandler
| The authorisation is given to another Handler (handler.iri is not consumer.handler), or to this one with another key (handler.keyId is not the descriptor’s signature.keyId).
|
OutsideAudience
| The descriptor’s station is not in the authorisation’s audience.stations, or its network is not audience.network. Where both are stated, both apply.
|
PlanNotAuthorised
| The descriptor’s plan is not the authorisation’s plan.iri.
|
TrainNotAuthorised
| The descriptor’s train.iri and payload.digest are not, together, an entry of trains.
|
PurposeNotAuthorised
| The request states a purpose the authorisation does not list in purpose.values, or states none. The request is read as RDF: parsed as JSON-LD with the contracts' own contexts — the ODRL subset, by its IRI or the W3C’s — fetching none, and every odrl:purpose constraint’s IRI on any permission counts however the JSON nests it. A purpose written as a bare string is a literal and not a purpose IRI. A request that cannot be read with those contexts states no purpose the verifier can see and is PurposeNotAuthorised: the check fails closed, and its detail quotes nothing from the request. A descriptor presenting an agreement instead of a request is checked against the authorisation that agreement pins (§ 7.5 What binds it to the agreement).
|
OutsideAuthorisedPeriod
| The descriptor is issued before the authorisation, or valid after it expires. |
(iv) The creator’s signature over the train (ADR-059). Only once (i) to (iii) hold does a station
act on what the descriptor names. It MUST fetch from the train’s Depot the submission and the
creator’s detached signature — GET /trains/{train}/submission and GET /trains/{train}/signature,
linked from the train by fdt-p:submission and fdt-p:creatorSignature ([FDT-METADATA]) — and the
payload bytes; MUST recompute the submission digest itself, as train-publication.md §1 defines
it, never using a digest the Depot states; and MUST verify the signature against a key it holds out of
band for the train’s creator — a published key set helps it find the key and never makes it trusted.
Only then does it compare the payload digest with the descriptor’s and the Depot offer’s: a digest
the Depot can rewrite together with the bytes proves nothing until the creator’s signature over both
holds. The check fails closed — a train whose creator cannot be checked does not run:
| Reason | Meaning |
|---|---|
CreatorUnsigned
| No complete creator’s signature is served — including a train published before signatures were kept, which has none until its creator publishes it again. |
CreatorWrongParty
| The signature is by somebody other than the train’s dct:creator in the served description, or made with a key held for somebody else.
|
CreatorWrongDigest
| The creator signed another submission: the description or the bytes changed after signing, or what is served is not this train’s description. |
CreatorUnknownKey
| The station holds no key for the creator under that id, or one retired before the publication time the Depot recorded, or the submission has no recorded time and the key is retired. Every station must be given the key of every creator whose trains it may run (Q61). |
CreatorDoesNotVerify
| The key held for the creator does not verify the signature. |
Withdrawal does not undo a signature: a withdrawn train’s signature is still served, so that a past run stays checkable; a new run is stopped by the withdrawal, not by the signature.
The order of PEP 1 is part of the requirement:
-
The dispatch credential (§ 17.1 Credentials). Missing or untrusted is
401, records no visit and is no outcome, whatever the descriptor says — so that a caller nobody has identified cannot learn fromUnknownKeyagainstDoesNotVerifywhich Handlers or parties a station holds keys for. -
The schema. A descriptor that fails it for want of a
signatureisUnsigned, and for want of anauthorisationAuthorisationMissing, so that the words are the same whichever check meets the absence first. -
The signatures and the binding, (i) then (ii) then (iii).
-
The creator’s signature, (iv), and only then the payload digest against the descriptor’s and the Depot offer’s.
-
Everything else PEP 1 does — the mechanism, the hand-over lineage (§ 10.2 What arrives), and the request against
fdts-policy:RequestShape.
Because the binding comes before the request’s own shape, a request that states no purpose is
rejected PurposeNotAuthorised at step 3 and never meets fdts-policy:RequestShape’s message for the same
fact. That message is what a request validated on its own meets — by a Handler before it signs a
descriptor, or by a console composing one — which is where the party who can fix the request is.
Nothing in a descriptor outside what its consumer authorised is judged on its merits.
The station states the word it found in the top-level reason of the Problem it answers with —the push response, or the AcknowledgementProblem under poll dispatch — and, in the event it
records, in justification.evidence.descriptorCheck; where both are present they are the same word.
A poll-dispatch station MUST verify the descriptors it collects exactly as a push-dispatch station verifies the ones posted to it: the pending list is a transport, not a source of trust.
7.4. Nothing is acted on until the signatures hold
Until both signatures and the binding hold, nothing in the descriptor is acted on. A station MUST implement three consequences of that:
-
The callback address is not called. A rejection reached at step 2 or 3 is answered to whoever presented the descriptor — in the push response or the poll acknowledgement — and MUST NOT be posted to
reporting.callbackUrl, because the Handler’s signature is what vouches for that address. -
The visit IRI is not taken. A descriptor rejected at step 2 or 3 MUST NOT occupy the idempotency key, and a later descriptor for the same visit and attempt is judged afresh. Otherwise a tampered copy presented first would make the genuine descriptor answer
200 Rejectedfor ever. -
The rejection is recorded as a presentation, not as a visit. It is recorded as every decision is (ADR-027): as a
visit.rejectedevent atPEP1whosevisitis an IRI the station mints for the presentation — also theinstanceof the Problem the presenter is answered with — withsequence1,attempt1, norunand noprevious. What the descriptor claimed is kept as bounded strings underjustification.evidence.presented, besidejustification.evidence.descriptorVerified: false. Because what such a record is about is itself a claim, it MUST be shown only to the station’s operator and a station-wide auditor, never to a credential scoped to one controller. The log is bounded, since anybody able to present a document can write to it; the operator’s audit surface (station-admin-api.yaml,GET /admin/events) serves it beside the visits' events with an account of what it holds and has dropped (turnedAway).
A second presentation for a visit and attempt the station already holds MUST be verified like any
first presentation; only then is it a replay, and only if the digest the station computes from
it equals that of the descriptor it holds. A tampered body carrying a copied signature therefore
fails as WrongDigest, is turned away, and learns nothing about the visit it imitated. A different
verified descriptor for the same visit and attempt is declined with 409
(§ 6.4 Idempotency, attempts and withdrawal).
7.5. What binds it to the agreement
A visit agreement pins the run authorisation it was concluded under:
fdt-p:underRunAuthorisation, the authorisation’s IRI, and fdt-p:runAuthorisationDigest, the
digest its consumer signed. A station MUST take both from the descriptor whose signatures it
verified and MUST write them into the agreement before it signs the assigner’s side, so that
both parties' signatures cover them. The assignee’s side is then signed by the Handler that
authorisation names, with the key it names, for the consumer (§ 8.4.2 Who signed, and for whom).
A descriptor that presents an agreement instead of a request — the rounds of an iterative pattern,
a retry — MUST carry the run authorisation that agreement pins: its digest MUST equal the
agreement’s fdt-p:runAuthorisationDigest, or the visit is Rejected with
AgreementUnderAnotherAuthorisation at PEP 1. A station MUST answer that word only after the
checks of § 7.3 Verification at PEP 1 hold and the agreement’s own assignee and target are found to be
the descriptor’s (§ 8.1 Request or agreement): its detail names the pinned digest, which is the presenting
consumer’s own only once those hold. An agreement concluded inside one authorisation is not reused
under another, even the same consumer’s re-issued one, and an agreement that pins none cannot be
presented.
7.6. A take is not the station’s to judge
The last word of rejection-reason.schema.json, WrongTake, is said by whoever holds the
take a run authorisation names in trains[].take: the Handler, which reads it from the Depot before
it accepts the run ([FDT-ARCHITECTURE]). A station holds no take and MUST NOT demand or judge one —a take is a licence between a train’s creator and its owner, and a station demanding it would make
itself a party to it. A station’s PEP 1 is complete without it.
7.7. What these signatures do not establish
This section is non-normative.
-
The descriptor’s signature is the Handler’s. It is not evidence that the consumer asked for these parameters; the authorisation’s signature is, and only for what the authorisation lists.
-
The creator’s signature proves who published the code, against a key the station was given. It says nothing about what the code does, and until a network’s trust anchors may vouch for keys (Q61) every station must be configured with the key of every creator whose trains it may run (STA-46, ADR-059).
-
An authorisation cannot be revoked. Revocation is not designed. A compromised Handler can act inside an authorisation’s bounds until it expires; short lifetimes and narrow audiences are the consumer’s control.
-
Formats are not checked. The schemas declare
format: iri,uri,date-timeandduration; no component enforces them (Q164), so a signed descriptor whosevisitis not an IRI passes the schema. -
The checker skips the lifetime when it is given no clock.
tools/descriptor.py’sverifyandverify_authorisationaccept a missingnowso that a station can probe for a missing signature before the period matters; a caller that omits it skips theExpiredandAuthorisationExpiredchecks. A station verifying a descriptor it will act on passes its clock.
8. Negotiation on arrival
8.1. Request or agreement
The descriptor’s negotiation member carries either an odrl:Request — JSON-LD, validated at
PEP 1 against fdts-policy:RequestShape — or the IRI of an existing active agreement (rounds of an
iterative pattern, retries). With an agreement IRI the station MUST resolve the agreement on
arrival, at PEP 1, before anything is queued: an agreement it cannot resolve, whose target or
assignee is not the descriptor’s, that was not concluded at this station or that only one party
signed is Rejected at PEP 1 — a checkpoint’s verdict on the document presented. An agreement its
controller has revoked or suspended is Refused at NEG, with the controller’s reason, because the
controller decided (§ 13.2 Revocation). The station MUST then check that the descriptor
carries the run authorisation the agreement pins (§ 7.5 What binds it to the agreement).
With a request, the station MUST match it against the controller’s offers for the visit’s
network (ADR-017) and the station owner’s policy, and MUST emit negotiation.requested first.
The request names the network under fdt-p:underNetwork, the train under fdt-p:train, the
target dataset or part, the assignee and the actions it asks for with their constraints, of which
a purpose is required. The descriptor’s consumer.party and the request’s odrl:assignee MUST
name the same party; a station MUST reject at PEP 1 a descriptor in which they differ, since the
agreement binds the request’s assignee while every record a controller is shown names the
descriptor’s consumer.
8.2. Matched, pending, refused
Matching has three outcomes.
- Matched
-
The offer and the request are satisfiable and the station may conclude. It emits
negotiation.matchedwith a justification and proceeds to derive and sign the agreement.negotiation.matchedMUST be emitted only when the two are satisfiable: the state means exactly that, and maps to the Dataspace Protocol’s OFFERED or AGREED, neither of which describes a request nothing can satisfy. - Pending approval
-
A person must decide. A station emits
negotiation.pending-approvalcarrying anapprovalobject that names the controller who must decide, themodethat says why a person is deciding, therulethat imposed it, the station’srecommendation, the eligibility facts it could not establish, and its ownexpiresAt. The modes areHumanRequiredByRegulation(the network’s regime bars automated decisions),HumanByControllerPreference(the offer asks for a person),HumanByStationPolicy(the operator configured one) andHumanByInconclusiveEvaluation(the controller’s conditions did not answer — the request asks for something no permission addresses, or a fact could not be established; ADR-050). Where a machine may not grant, it may not refuse either (ADR-032): a visit whose evaluation recommends refusal in a network that bars automated decisions goes fromnegotiation.requestedstraight tonegotiation.pending-approval, without anegotiation.matched, and therecommendationis what tells the two apart. A recommendation is not an outcome. - Refused
-
The controller’s standing conditions declined the request — conclusively, under a rule of the offer — or a person did. The station emits
negotiation.refusedwith the statedreasonand thejustification, and the visit’s outcome is Refused. This is a governance decision by a named party and is never reported in any other word (§ 13 Outcomes, cancellation, retries, revocation).
While a visit is pending, the Handler MUST wait up to the plan’s approvalWait and then either
withdraw the visit (POST /visits/{visitId}/cancel, cause approval-timeout) or keep waiting as
its failure policy says. The station MAY apply its own timeout (approval.expiresAt). A visit
withdrawn because nobody decided ends TimedOut, and MUST NOT be reported as Refused or
Rejected: nobody decided anything, and that is the fact to report.
8.3. Derivation of the agreement
An agreement that merely has the right shape is not an agreement anyone can audit. A station MUST
derive the agreement from the offer O (restricted to the visit’s network), the request R and
the visit V by the following rule, which fdt-commons executes over every published agreement
and which a station’s own agreements are held to:
-
Actions. The agreement grants exactly
actions(R) ∩ actions(O). If no action survives there is no agreement and the outcome is Refused, naming the rule. -
Constraints. Every
odrl:LeftOperandof the FDT profile has afdt-p:constraintRole: Eligibility constraints (legal basis, consumer type, network, jurisdiction, train, mechanism) are established once at negotiation and become evidence, never terms; Usage constraints (purpose, onward state class, k-anonymity, retention, validity window) become terms re-checked at PEP 2 and PEP 3. For each granted action and each usage operand O's matching rule constrains, the agreement carries what was asked, bounded by what was offered: R's constraint if O admits it, otherwise O's. Every usage constraint of O's matching rule MUST appear, and every usage constraint R placed on itself MUST appear too. -
Prohibitions and duties of O are carried verbatim. Nothing in negotiation may drop or weaken one, and no approver may waive one.
-
Evidence. For every eligibility constraint of O the agreement carries one
fdt-p:evidencenode: the fact, the established value, who attested it and when. The person who dispatched the train appears as a pseudonym the station can resolve in its own audit log; their identifier does not enter the agreement. -
Pinning. The agreement carries
fdt-p:derivedFromOffer,fdt-p:derivedFromRequest,fdt-p:train, and the digestsfdt-p:offerDigest,fdt-p:requestDigestandfdt-p:payloadDigestof each as it stood. -
Parties. The agreement’s
odrl:assignerMUST be the offer’s assigner and itsodrl:assigneeMUST be the request’s assignee;odrl:targetandfdt-p:underNetworkMUST be the visit’s;dspace:timestampandfdt-p:authorisationModeMUST be present.
A station policy may narrow the result further; narrowing is always permitted and widening never is.
8.4. Signatures of both parties
The station writes the agreement and is a party to it; digests make a rewrite detectable by
whoever kept the original, but prove nothing to a third party who kept nothing — a supervisory
authority, or a controller asking later under what terms their data was touched. So each party
signs (ADR-038), and an agreement carries one fdt-p:signature of each role,
fdt-p:AssignerSignature and fdt-p:AssigneeSignature.
8.4.1. What is signed
The signed digest is the SHA-256 of the canonical form of the agreement’s concise bounded
description **with every fdt-p:signature node excluded** — not only the signer’s own — so that
both parties sign one string, neither signature covers the other, the order they were made in is
not part of what was agreed, and neither party can invalidate the other’s by re-signing.
A signature is Ed25519 [RFC8032] (EdDSA) over the digest string as UTF-8, encoded base64url
without padding. fdt-p:keyId is the IRI of the public key in the signer’s own published key
set [RFC7517], so a verifier needs nothing from either party. Signing keys are not the bearer
tokens of § 17 Security: a token proves who called, a signature proves who agreed.
8.4.2. Who signed, and for whom
fdt-p:signedBy names whose key it is. fdt-p:onBehalfOf names whose agreement it is,
and MUST be present exactly when the two differ — when an agent signed.
signedBy
| onBehalfOf
| |
|---|---|---|
| The Handler signs the assignee’s side for the consumer | the Handler instance, with the operator key the run authorisation names | the consumer |
| A data controller with their own key signs (assigner) | the controller | absent |
| The station signs for a controller who holds no key | the station | the controller |
The controller signed and the station signed for the controller are different facts with
different weight, and a record that let them be confused would be worth less than no signature,
because a verifier would read the weaker as the stronger. A station signing as an agent MUST carry
onBehalfOf; a party signing for themselves MUST NOT; a signature naming as its principal the
party who made it MUST be refused — a party is not their own agent.
The assignee’s side of a visit agreement is signed by the Handler for the consumer, and no document may describe that signature as the consumer’s own: the consumer’s own signature is on the run authorisation, and says something else. It is a delegate’s signature bounded by the authorisation the agreement pins (§ 7.5 What binds it to the agreement) — only by the Handler it names, with the key it names, for the consumer who signed it, for a train and payload it lists, in its network and inside its lifetime. A visit agreement is concluded per station and often unattended, which is why the consumer’s own agent is not asked to sign each one.
8.4.3. The exchange, in two shapes
The two-signature rule fixes the order: the station derives the terms and signs the assigner’s
side; the Handler verifies the terms and that signature and signs the assignee’s side; the
station stores the fully signed agreement and only then emits negotiation.active. Which party
opens the call is decided by the dispatch mode and by nothing else.
Push-dispatched station. After negotiation.matched the station emits
negotiation.awaiting-signature, carrying the agreement IRI and, in the justification’s evidence,
agreementDigest — the digest to sign. The Handler fetches the agreement
(GET /agreements/{agreementId}), computes the digest for itself from the document it read,
checks that it equals the one stated, verifies the assigner’s signature over it, checks the terms
and that the agreement pins the run authorisation its visit was sent under, signs the digest with
its own operator key — signedBy the Handler, onBehalfOf the consumer — and POSTs an
AgreementSignature to POST /visits/{visitId}/agreement/signature. The station verifies it
against the key its Handler list holds for that Handler, checks that the Handler, the key and the
consumer are the ones the pinned authorisation names, stores it, emits negotiation.active and
queues the run. The visit stays at Checking
throughout: nothing about it is waiting on a person.
Poll-dispatched station. The station has no inbound port, so it cannot be told to wait to be
called; it emits no negotiation.awaiting-signature and instead opens one round trip of its
own: POST /visits/{visitId}/agreement on the Handler, with a CountersignatureRequest
carrying the agreement IRI, the agreement itself — as canonical N-Quads or Turtle, never a JSON
projection, because the document is what the signature is checked against — and the assigner’s
signature. The Handler applies exactly the checks above and answers 201 with the assignee’s
Countersignature, or 422 with a CountersignatureRefused. The station then stores both
signatures, emits negotiation.active and queues the run. Because no wait occurred, the stream
MUST NOT contain negotiation.awaiting-signature; instead negotiation.active carries
signatureRoute: station-initiated and dispatchMode: poll in its justification’s evidence, so
which way the exchange went is stated rather than inferred from an absence.
In both shapes the Handler MUST NOT sign a document the station has not signed, MUST NOT sign a digest other than the one it computed from the document itself, MUST NOT sign a document whose assigner signature is for a party other than the agreement’s assigner, and MUST NOT sign an agreement that does not pin, by IRI and digest, the run authorisation its visit was sent under.
8.4.4. Refusing a signature
A verifier refusing a signature MUST say which of four things it found, because a verifier has to distinguish them and one status for all four would leave the first hunting a forgery that never happened:
| Reason | Meaning |
|---|---|
UnknownKey
| The verifier holds no key for the signing party. A key-distribution problem; says nothing about the signature. |
DoesNotVerify
| The signature is wrong. |
WrongParty
| Valid cryptography by somebody who is not the party in that role, nor an agent naming them. |
WrongDigest
| The digest the signature states is not the canonical digest of the document in hand: the two sides are not looking at the same bytes. |
A station verifying the assignee’s signature says WrongParty for a signature by anybody but the
Handler the pinned run authorisation names, with the key it names, for the assignee. A Handler
answering a poll-dispatch station’s CountersignatureRequest has a fifth word,
WrongAuthorisation: the agreement does not pin the run authorisation the visit was sent under, by
IRI and digest, or pins none — the Handler signs for the consumer only inside what the consumer
authorised.
Keys are configured out of band: a station holds the public key of each Handler that may visit
it, in the Handler list of § 7.2 Two key lists; a Handler holds the public key of each party
that signs the assigner’s side of an agreement it countersigns — the station, or a controller
signing with their own key — and of each station it dispatches to, which also verifies that
station’s envelopes (§ 12 What a station returns is signed).
A verifier MUST NOT take the key from the document it is verifying, which would establish only
that the signer holds the key they nominated. A party for which no key is held — or only a key
retired before the agreement’s dspace:timestamp (agreement-derivation.md §6) — is answered
UnknownKey. Whether a network’s trust anchors may vouch for a station’s signing key is open (Q61).
8.4.5. When the assignee does not sign
An agreement only one party has signed is not an agreement, and nothing runs under one. If the
assignee’s Handler cannot be reached or will not accept the terms, the visit does not proceed.
The station records no outcome and the visit rests at negotiation.awaiting-signature until it is
withdrawn, which is the behaviour a pending approval already has; the consumer’s run reports
Failed when its Handler stops waiting — a statement about the Handler’s patience, not the
station’s verdict. What outcome the station should record is open (Q27). It is
deliberately not Refused: a consumer walking away is not the controller refusing.
9. Execution and inspection
PEP 2. Before execution the station MUST check that the agreement is active and carries both
signatures, that it is about this visit — its target, train, network and assignee match the
descriptor’s — and that its usage terms admit the run now (the validity window) and that the
station’s quotas allow it. A failure here rejects the visit at PEP 2, and the station MUST emit
visit.queued on success.
EXEC. The adapter for train.mechanism executes the payload with the descriptor’s parameters,
passed to the adapter unchanged; the station emits visit.running and MAY emit visit.progress.
An error in the adapter or the infrastructure ends the visit Failed.
PEP 3. A train has run and whatever it produced is inside the station. Everything before this point decided whether the train could run; this decides whether what it produced may leave, and the first cannot answer the second: the same train under the same agreement produces a releasable result for one parameter and an unreleasable one for another. The station MUST perform these checks in order, and the first that fails ends the inspection with nothing released:
-
The train declares an output schema (
fdt-o:generatesOutput→dct:conformsTo, a JSON Schema [JSON-SCHEMA]) and it resolves. -
That schema is closed: every object sets
additionalProperties: falseand every array describes its items. Against an open schema, a result carrying an identifier on every row validates, and "the result conforms to the declared output" would be a statement about nothing. -
The result validates against it, with no relaxation.
-
The onward state class being released is admitted by the agreement’s
fdt-p:deliverResultpermission and by the descriptor’sonward.allowedClasses.RecordLevelnever leaves a station, whatever any agreement says. -
Every duty of the agreement holds on the result. A k-anonymity duty is applied to every value the declared output schema marks
x-fdt-subjectCount: true; a count of 0 does not violate it and a count between 1 and k−1 does. A duty the station cannot check is not a duty that passes: if the agreement carries a k duty and the schema marks no subject count, the result is rejected with that stated. Prohibitions on what the consumer does after delivery (fdt-p:reidentify,odrl:sell) cannot be checked by inspecting a result; they bind the consumer through the agreement and the station MUST NOT list them as passed. -
The envelope names the schema it was checked against (
inspection.outputSchema), so an auditor can re-run steps 2 and 3 without the station’s cooperation.
The inspection’s outcome is passed, redacted (cells suppressed to meet a threshold — a
Delivered visit) or rejected (a Rejected visit, releasing nothing — not a partial result,
not a count beyond what the justification states). The station emits visit.inspecting and then
visit.delivered or visit.rejected at checkpoint PEP3, with the verdict’s evidence.
10. Onward state and hand-over
10.1. What leaves
The descriptor’s onward block is the plan’s request; PEP 3 applies the controller’s offer, which
may be stricter. The destination is handler (the default: the envelope’s result and
artifacts), linkage (Pseudonym-class state is handed to the station named in linkageStation — the
one that performs the identifier translation — under the named join key; the envelope records the
hand-over digest and that station verifies it on its own visit) or train (a choreographed script or container train carries state and a routing
instruction; in version 1 the train returns to the Handler between hops, so the envelope’s
routing.nextStations is what the Handler dispatches next, inspected at PEP 3 like any other
output). Query and API trains MUST NOT use destination train.
10.2. What arrives
A later visit of the same run receives earlier state through the descriptor’s handOver block,
which names the hand-over and never carries it: fromVisit, fromStation, url,
mediaType, digest, stateClass, and optionally joinKey, conformsTo, duties and bytes.
The Handler holds a name, which is what ADR-015 permits it to hold; the bytes stay at the station
that produced them. The following rules apply:
-
The object is closed and has no member that takes content.
urlMUST be anhttpslocation:data:andblob:, the two ways a reference carries its own payload, are refused by the schema rather than deprecated in prose, and so is plaintexthttp, because all traffic between the parties is over TLS. The same pattern bindsartifacts[].urlin the envelope that feeds this block (§ 14.5 Visit-result envelope). -
**
handOver.fromVisitMUST also appear in the descriptor’sprecededBy.** The hand-over is the reason this visit follows that one, and a descriptor naming a predecessor in one place that its own lineage does not name in the other describes two different runs. JSON Schema cannot compare a member with the contents of another member’s array, so the schema requires only that a hand-over is not carried without a lineage; the membership is a rule of this protocol, binding on the Handler that composes the descriptor, and a receiving station MUST check it before fetching anything — it is decidable from the one document in front of it at PEP 1. -
A descriptor that carries a hand-over MUST ask permission to accept it: its request MUST contain a permission for the action
fdt-p:acceptHandOver, constrained byfdt-p:inboundStateClassto say which class of state it accepts. Being asked to join one’s own records against a list a third party composed is a different thing to consent to from being asked to run a container. -
The receiving station fetches
url, hashes what it got and compares it todigest— the same value the producing station reported asonward.handedOverDigest, taken by the Handler from an envelope it verified — so the hand-over is bound to bytes on both sides of the hop. The receiving station does not itself verify the producing station’s envelope (§ 12.5 What this establishes, and what it does not).
Whether a station that cannot verify the bytes must refuse at PEP 1 or may run and report the result unverifiable (Q133, Q130), who may fetch a hand-over from the station holding it and under which credential (Q136), and how a hop with two inputs is expressed (Q135) are open; version 1 names the location and nothing else.
11. Reporting
11.1. Events
Every decision a station takes and every state change of a visit MUST be emitted as a
visit event (ADR-027). The ordered event stream is the source of truth for the Handler’s view
of the run and for the audit trail a controller reads; the Handler needs nothing else to drive its
itinerary map and its completeness statement. Every event carries previous, chaining it to the
one before it (§ 12.1 The chain). Delivery is at least once: a Handler MUST de-duplicate on
id — an event equal to one already accepted under its id changes nothing
(§ 12.3 Verification at the Handler) — and order on sequence. A station MAY batch events in one callback
if all belong to the visit in the path.
Under reporting mode poll, GET /visits/{visitId}/events?after=n returns the events with
sequence greater than n; with Accept: text/event-stream a station MAY stream new events as
Server-Sent Events, each data: line one event object and id: the sequence.
Every decision event carries a justification: the decision, the rule that fired, the offer,
agreement or station policy it came from, and evidence — counts, digests, cell counts, never
record-level content.
11.2. Result and artefacts
The visit-result envelope is available once the visit is in a terminal state, signed by the
station and closing the visit’s event stream (§ 12.2 The envelope closes it): under callback the station
PUTs it to {callbackUrl}/result; under poll the Handler fetches GET /visits/{visitId}/result,
which answers 409 while the visit is not yet terminal and the latest envelope after a re-issue. For a
non-success outcome the envelope is returned with an empty result, the outcome in state and the
stated reason. Artefacts too large to inline are referenced by artifacts[].url on the station
and fetched by the Handler, or — in poll mode — uploaded by the station with
PUT /visits/{visitId}/artifacts/{name}, where the Handler MUST verify the digest against the
envelope and answer 409 on a mismatch.
12. What a station returns is signed
What travels back to the Handler — the event stream and the visit-result envelope — is signed by the station and chained (ADR-057), for the reason the agreement is signed by both parties: a record only its recipient can vouch for proves nothing to the third party an audit is for. The event stream is the audit trail a controller reads and the source of the completeness statement a consumer receives, and a hand-over’s digest is taken from an envelope.
12.1. The chain
Every event a station returns MUST carry previous: the digest of the link before it in the
same visit and attempt. A link’s digest is sha256: followed by the lowercase hex SHA-256 of
the RFC 8785 form of the document as emitted, every member included — its own previous, and
an envelope’s signature (tools/descriptor.py link_digest). The first event’s previous is the
signed digest of the descriptor it answers — the digest its Handler signed (chain_anchor).
Removing, reordering or altering an event breaks the chain at that point.
A record of a descriptor turned away before its signature held belongs to no chain and carries no
previous (§ 7.4 Nothing is acted on until the signatures hold).
12.2. The envelope closes it
A station MUST sign its envelope — signature, the construction of § 7.1 What is signed, made
with the station’s own key, the one that signs the assigner’s side of its agreements, signedBy
the station — and the envelope MUST carry lastEventDigest, the link digest of the last event
before it, inside the signed digest. One signature covers the stream. A station MUST send the
envelope only after every event it closes was accepted (204), under either reporting mode.
An event a station emits about an attempt after its envelope — obligation.scheduled,
obligation.fulfilled, a late fact about attempt 1 while attempt 2 runs — chains to the
envelope’s digest: the envelope is a link like any event. The station MUST then re-issue
the envelope closing it: the same envelope with the same outcome — a terminal state is terminal —lastEventDigest naming the later event, and a new signature, sent again by
PUT /visits/{visitId}/result and served by GET /visits/{visitId}/result. The latest envelope
that verifies is the station’s current statement. Between the event and the re-issue the event is
chained and not yet signed; a station closes that window by re-issuing as soon as it emits.
Every attempt a station took — answered with its first event — MUST end in a station-signed envelope, whatever its outcome: Delivered; Rejected at PEP 1 (a verified descriptor turned away on its binding), PEP 2 or PEP 3; Refused at negotiation or under a presented agreement; Failed; Revoked; and the TimedOut of a visit the Handler withdrew. No second closing record is defined: the envelope already carries the outcome, the checkpoint, the reason and the justification.
12.3. Verification at the Handler
A Handler MUST verify what a station returns, under push and poll dispatch alike, by the rules
tools/descriptor.py executes (verify_event, verify_envelope):
-
An event whose
previousis not the digest of the last link the Handler accepted for its visit and attempt is refusedChainBrokenand not stored; in a batch, none of the batch is stored. -
An envelope is verified against the key the Handler holds for the station the visit was sent to — out of band, the key it verifies that station’s assigner signatures with — and against the last link accepted. One that does not verify is refused and not stored, and the visit MUST NOT be Delivered, or end in any other outcome, on its strength.
-
A re-delivery is not a break. The Handler first compares an incoming event with the one it already accepted under that event’s
id: an event equal to it under RFC 8785 is answered204before any chain check and changes nothing. A different event under an acceptedidis judged by the chain like any other. -
Under poll dispatch the acknowledgement is the delivery of the first event. A
204toPOST /visits/{visitId}/ackis the acceptance of the event it carries, which the station does not post again by callback; an acknowledging event that does not chain to the signed digest of the descriptor the Handler served is refusedChainBroken(422) and the entry stays pending.
A Handler refuses with a ReturnRefused naming one of the return reasons,
published as return-reason.schema.json — a vocabulary of its own, said by a Handler about a
station’s documents and never by a station about a descriptor:
| Reason | Meaning |
|---|---|
Unsigned
| The envelope carries no complete signature. |
WrongParty
| Signed by, or about, another station than the one the visit was sent to, or with a key held for somebody else. |
WrongDigest
| The envelope is not the document that was signed. |
UnknownKey
| No key is held for that station under that key id. |
DoesNotVerify
| The key held does not verify it. |
ChainBroken
| An event’s previous, or the envelope’s lastEventDigest, is not the digest of the last link accepted for that visit and attempt: an event dropped, reordered, from another visit or attempt, or never received.
|
A Handler that refuses a station’s envelope or events MUST end that attempt Failed, with the
reason the station’s result did not verify and the word, and apply the plan’s failure policy;
there is no other outcome word for it. A correct station never meets ChainBroken on its envelope,
since it sends the envelope only after every event it closes was accepted.
12.4. The Handler serves what it accepted verbatim
Wherever a Handler serves a station’s events or envelopes — a run state’s visits, a run’s event
feed (handler-api.yaml, GET /runs/{runId}/events) — it MUST serve each exactly as the station
emitted it. Those reads are the consumer’s, not the public’s: they require the dispatch credential
the run was dispatched under, and a run dispatched under another answers 404, as if absent (Q169;
[FDT-ARCHITECTURE], TH-15). Served, each document keeps every member and value, equal under RFC 8785 to what the station
emitted, nothing added and nothing dropped, so that
any reader can recompute the chain and check the station’s signature without trusting the Handler.
A Handler stores only envelopes it verified. What it concludes — that it refused a return, a title,
a station’s display name — lives beside the document and never inside it: a refused return is
stated as returnsRefused in the run state and returnRefused on a run’s visit row, each with a
return reason. A station’s own audit surface follows the same rule: an audit row is
{event, context}, event exactly as emitted and the visit’s context beside it
(station-admin-api.yaml, AuditEvent).
12.5. What this establishes, and what it does not
A station’s result envelope and its event trail are signed by the station: anyone holding the station’s public key can check the envelope’s signature, and the chain it closes back to the descriptor the Handler signed, without either party’s cooperation, and a Handler stores nothing that does not verify. That does not extend to what no station signed. The following carry no station signature, are the Handler’s own record, and MUST NOT be presented as the station’s:
-
a descriptor turned away before its signature held — no visit and no chain; the presenter receives a Problem;
-
an attempt a station declined with its
409— it took nothing, so nothing was chained; -
an outcome the Handler reached without the station’s word — a visit never sent (Skipped), a station that never answered (TimedOut), a return that never verified (Failed).
Further limits of this version:
-
On a hand-over, the producing envelope is checked by the Handler only. A hand-over’s
digestis taken from a producing envelope the Handler verified and reaches the receiving station inside the descriptor the Handler signs. The receiving station checks the bytes it fetches against that digest and checks the descriptor’s signature; it does not verify the producing station’s envelope, which would need the producing station’s key. Carrying the producing envelope’s signature with the hand-over, so that a receiving station or an auditor of the second hop can check the producer’s word without trusting the Handler, is owed and not specified. -
A reader that pulls sees only the latest envelope.
GET /visits/{visitId}/resultserves the latest envelope only, so a reader that pulls after a re-issue holds events chained to an envelope it never saw and cannot verify them. The callback path delivers every envelope as it is issued and is unaffected. The remedy is not decided. -
Members are required where documents travel, not where they are quoted.
previous,signatureandlastEventDigestare required on the callbacks and the station’s reads (handler-callback-api.yaml,station-visit-api.yaml), not byvisit-event.schema.jsonorvisit-result.schema.json: the same schemas describe documents quoted elsewhere — an audit slice, a run state captured before these members existed — and a schema that required the signature would refuse an unsigned envelope before a verifier could sayUnsigned. A schema check of a bare event or envelope therefore does not establish that it was signed or chained. -
Encryption at rest is the operator’s. Nothing in this protocol encrypts what a station or a Handler stores.
13. Outcomes, cancellation, retries, revocation
Every visit ends in exactly one terminal outcome, and the words are part of the contract (ADR-026): a run’s completeness statement reports them to a data consumer verbatim, and implementations MUST keep the vocabulary exact in code, logs and user interfaces.
| Outcome | Where | Meaning | Whose word |
|---|---|---|---|
| Delivered | PEP 3 | The result passed inspection and left; inspection.outcome is passed or redacted.
| — |
| Refused | NEG | Access was declined by the controller’s standing conditions, or by a person asked to decide. | A controller’s decision, with their stated reason, carried verbatim. |
| Rejected | PEP 1, PEP 2, PEP 3 | A checkpoint’s verdict on a document or a result: an invalid descriptor, a payload that is not the one offered, an agreement that is not this visit’s, a result a duty forbids. | A checkpoint’s; nobody decided anything. |
| TimedOut | NEG or EXEC | The approval wait ran out, or the Handler cancelled the visit. | Nobody decided. |
| Failed | EXEC — or NEG, when a station broke carrying out a decision already taken | Machinery broke; or the visit did not happen for a stated technical reason — the station declined the attempt (§ 6.4 Idempotency, attempts and withdrawal), or the Handler refused what it returned (§ 12.3 Verification at the Handler). | — |
| Revoked | PEP 2 or EXEC | The controller took the agreement out of force while the visit was queued or running; the station stops at its next checkpoint. | A controller’s act over an agreement they granted, with their reason. |
| Skipped | never reaches a station | The run did not ask this station: a phase condition excluded it (NotSelected), the first phase did not deliver (NotEvaluated), it was reachable only through a missing visit (Pruned), the failure policy dropped it (Dropped), or the plan selected it and the consumer’s run authorisation does not cover it, so the Handler sent nothing (OutsideAuthorisation).
| The Handler’s record. No station can report it about itself. |
Reporting a controller’s refusal as a rejection tells a consumer that 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; reporting a station’s own failure as a refusal attributes to a controller a
decision they did not take. Every non-success event MUST carry the reason the consumer will see,
and the envelope MUST repeat it.
13.1. Cancellation
POST /visits/{visitId}/cancel withdraws a visit: on approval timeout, on the run’s FailRun
reaction, on a person stopping the run, at the budget deadline, or on replanning. A queued or
pending visit ends immediately and the station emits negotiation.withdrawn; a running visit stops
at its next checkpoint and the station emits visit.cancelled; either ends TimedOut. A visit
already in a terminal state is unaffected, and the station answers 200 with its current status.
13.2. Revocation
A controller may take an agreement out of force while a visit under it is queued or running. The
station MUST stop at its next checkpoint and emit visit.revoked, carrying the controller’s
reason verbatim and naming the agreement, because a Handler applying the run’s onRevoked
reaction needs it: outputs already derived from a revoked visit fall under that agreement’s
duties. A visit that arrives afterwards presenting a revoked or suspended agreement was never
running and is Refused at NEG, with the controller’s reason, not Revoked; reporting it as
Revoked would fire the run’s onRevoked over a visit that never began.
14. Messages
The three message types, and the run authorisation a descriptor carries, are JSON Schemas
[JSON-SCHEMA] in Appendix B: Normative artefacts; the tables here describe them and the conditional rules each
schema enforces. Members marked ✱ are required. A member a schema declares with a format is
described here by that format, which no component checks (Q164).
14.1. Visit descriptor
The visit descriptor is what a Handler hands to a station to start one visit.
It is pushed to POST /visits or pulled by the station from the Handler’s pending list — the same
object either way.
| Member | Type | Meaning |
|---|---|---|
protocol ✱
| IRI | https://w3id.org/fdt/visit-protocol/v1.
|
visit ✱
| IRI | The fdt-run:Visit, minted by the Handler; the idempotency key.
|
run ✱, plan ✱
| IRI | The run and the fdt-run:Plan the visit is part of. A station may dereference the redacted plan for a visit it holds (Handler API).
|
hop ✱, phase ✱
| integer ≥ 1 | The visit’s position in the itinerary. |
attempt
| integer ≥ 1 | Retries reuse the visit IRI and increment this; 1 when absent. With visit, the replay key.
|
precededBy
| IRI[] | Visits whose results led to this one. MUST name handOver.fromVisit where a hand-over is carried.
|
network
| IRI | The FDT network the visit runs under; the station evaluates the controller’s offers for this network only. |
consumer ✱
| object | party ✱ — the accountable legal party (odrl:assignee); agent — the person or service acting, as this descriptor claims; handler ✱ — the Handler instance, which signs this descriptor; presentation — the credential presentation of § 14.6 Presentation, verbatim; exchangedToken — an RFC 8693 exchanged token where the network’s identity provider performs the exchange. A descriptor carrying exchangedToken MUST carry presentation; a descriptor’s presentation MUST NOT carry assurance or exchange (§ 17.1 Credentials).
|
authorisation ✱
| object | The run authorisation this visit is sent under, by value (§ 14.2 Run authorisation). |
train ✱
| object | iri ✱ — the fdt-o:Train in a depot catalogue; type ✱ — the concrete train class; mechanism ✱ — the interaction mechanism the station must support; version; coordination — Orchestrated or Choreographed.
|
payload ✱
| object | mediaType ✱; digest ✱ — MUST equal the fdt-o:artifactDigest in the train’s depot offer; and exactly one of content (inline, UTF-8) or url (where to fetch it; the station verifies the digest).
|
parameters
| object[] | Each name ✱ and value ✱, optionally the declared parameter IRI. Values are the train’s declared parameters and are passed to the adapter unchanged.
|
negotiation ✱
| object | Exactly one of request — an odrl:Request as JSON-LD — or agreement — the IRI of an existing active agreement.
|
target
| IRI | The hosted dataset, part or service the visit is about; also the request’s odrl:target.
|
onward ✱
| object | allowedClasses ✱ — classes of state the plan expects to leave; destination ✱ — handler, train or linkage; linkageStation, joinKey; outputSchema — the JSON Schema the train’s declared output conforms to.
|
handOver
| object (closed) | fromVisit ✱, fromStation ✱, stateClass ✱ (Aggregate or Pseudonym), url ✱ (https only), mediaType ✱, digest ✱, bytes, joinKey, conformsTo, duties. See § 10.2 What arrives.
|
reporting ✱
| object | mode ✱ — callback or poll; callbackUrl and callbackToken for callback.
|
deadline
| date-time | The run’s budget deadline; after it the Handler withdraws the visit. |
station ✱
| IRI | The station the descriptor is addressed to, inside the signed digest; a station rejects one naming anybody else (WrongStation).
|
issuedAt ✱, expiresAt ✱
| date-time | When the Handler signed it, and after when a station MUST NOT start it (Expired). Not deadline, which bounds a run; expiresAt bounds how long a signed descriptor may wait to be started. A Handler sets it no later than deadline and the authorisation’s expiresAt.
|
signature ✱
| signature object | The Handler’s signature over everything else in the descriptor (§ 7.1 What is signed); signedBy is consumer.handler.
|
approvalWait
| xsd:dayTimeDuration
| How long the Handler waits in pending approval before withdrawing. Days to seconds, never months: the value is the moment a controller’s pending case is withdrawn, and a month is 28 to 31 days depending on when it started. |
labels
| object | Free-form, shown in consoles. |
Conditional rules the schema enforces: a descriptor carrying handOver MUST carry a non-empty
precededBy and its request MUST contain a permission for fdt-p:acceptHandOver; a descriptor
carrying exchangedToken MUST carry presentation; a Handler MUST NOT grade its own presentation.
Rules no schema can state, executed by tools/descriptor.py and tests/validate_protocol.py: the
signature and the binding of § 7.3 Verification at PEP 1; handOver.fromVisit is in precededBy; and
expiresAt is no later than deadline.
visit-descriptor-gd-m1.json: addressed to one station, dated, signed by its Handler, and carrying the run authorisation its consumer signed.
{ "protocol" : "https://w3id.org/fdt/visit-protocol/v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "plan" : "https://example.org/fdt/plan/gene-disease-single" , "hop" : 1 , "phase" : 1 , "attempt" : 1 , "network" : "https://example.org/fdt/net/health-research-nl" , "consumer" : { "party" : "https://example.org/fdt/party/eu-cardionet-like" , "agent" : "m.devries@cardionet.example" , "handler" : "https://handler.cardionet.example/fdt/v1" , "presentation" : { "form" : "organisation-credential" , "party" : "https://example.org/fdt/party/eu-cardionet-like" , "agent" : "m.devries@cardionet.example" , "issuer" : "https://idp.example.org/ls-aai-like" }, "exchangedToken" : "eyJhbGciOiJFZERTQSIsInR5cCI6ImF0K2p3dCJ9.PLACEHOLDER.PLACEHOLDER" }, "authorisation" : { "protocol" : "https://w3id.org/fdt/visit-protocol/v1" , "authorisation" : "https://gateway.cardionet.example/fdt/v1/authorisations/gd-m1-01" , "consumer" : "https://example.org/fdt/party/eu-cardionet-like" , "handler" : { "iri" : "https://handler.cardionet.example/fdt/v1" , "keyId" : "https://handler.cardionet.example/fdt/v1/keys/operator-1" }, "purpose" : { "values" : [ "https://w3id.org/dpv#ResearchAndDevelopment" ] }, "trains" : [ { "train" : "https://example.org/fdt/train/gene-disease" , "payloadDigest" : "sha256:0f2ea318c57bde07b025561f2333bbf0b0cb7ce75ed867ca72020ff60a7890b9" , "take" : { "iri" : "https://example.org/fdt/agreement/take-gd-cardionet" , "digest" : "sha256:0d7fd67c9858533606a1cd6fc5253492626c51d63a5fe05e3e3a67b46f5c3815" } } ], "plan" : { "iri" : "https://example.org/fdt/plan/gene-disease-single" , "digest" : "sha256:f968ed9c0192bc191441b7fc5da52ac38ed8eeb8ef5f144ca0b037ed1fadfc84" }, "audience" : { "stations" : [ "https://example.org/fdt/station/ut" ] }, "issuedAt" : "2026-09-12T09:00:00Z" , "expiresAt" : "2026-09-19T00:00:00Z" , "signature" : { "signedBy" : "https://example.org/fdt/party/eu-cardionet-like" , "keyId" : "https://gateway.cardionet.example/fdt/v1/keys/aHR0cHM6Ly9leGFtcGxlLm9yZy9mZHQvcGFydHkvZXUtY2FyZGlvbmV0LWxpa2U/1" , "algorithm" : "EdDSA" , "signedDigest" : "sha256:0424ecada7294ce098707e5736a69e1c11641de6beb88e6fce6159cb5cfbd38e" , "value" : "osA4nLtDSBp_WDzGaub1E6VGyY-KFbA33icitpSAqZZRE3jfwfBzQ9ECBztErpdjf_YR-KYEVtpaH1o-QUVoDg" } }, "train" : { "iri" : "https://example.org/fdt/train/gene-disease" , "type" : "https://w3id.org/fdt/fdt-o#SPARQLTrain" , "mechanism" : "https://w3id.org/fdt/instances#SPARQL" , "version" : "1.3" , "coordination" : "Orchestrated" }, "payload" : { "mediaType" : "application/sparql-query" , "digest" : "sha256:0f2ea318c57bde07b025561f2333bbf0b0cb7ce75ed867ca72020ff60a7890b9" , "url" : "https://depot.example.org/trains/gene-disease/1.3/query.rq" }, "parameters" : [ { "name" : "mode" , "value" : "genes-to-diseases" , "parameter" : "https://example.org/fdt/param/gd-mode" }, { "name" : "terms" , "value" : [ "TTN" , "MYH7" , "LMNA" ], "parameter" : "https://example.org/fdt/param/gd-terms" }, { "name" : "min_evidence" , "value" : 2 , "parameter" : "https://example.org/fdt/param/gd-min-evidence" }, { "name" : "limit" , "value" : 100 , "parameter" : "https://example.org/fdt/param/gd-limit" } ], "negotiation" : { "request" : { "@context" : "http://www.w3.org/ns/odrl.jsonld" , "@type" : "Request" , "@id" : "https://example.org/fdt/request/gd-2026" , "profile" : "https://w3id.org/fdt/profile" , "target" : "https://example.org/fdt/dataset/ut-gene-disease" , "assignee" : "https://example.org/fdt/party/eu-cardionet-like" , "https://w3id.org/fdt/profile#train" : { "@id" : "https://example.org/fdt/train/gene-disease" }, "https://w3id.org/fdt/profile#underNetwork" : { "@id" : "https://example.org/fdt/net/health-research-nl" }, "permission" : [ { "@type" : "Permission" , "action" : "https://w3id.org/fdt/profile#runQuery" , "constraint" : [ { "leftOperand" : "purpose" , "operator" : "eq" , "rightOperand" : { "@id" : "https://w3id.org/dpv#ResearchAndDevelopment" } } ] }, { "@type" : "Permission" , "action" : "https://w3id.org/fdt/profile#deliverResult" , "constraint" : [ { "leftOperand" : "https://w3id.org/fdt/profile#onwardStateClass" , "operator" : "eq" , "rightOperand" : { "@id" : "https://w3id.org/fdt/profile#Aggregate" } } ] } ] } }, "target" : "https://example.org/fdt/dataset/ut-gene-disease" , "onward" : { "allowedClasses" : [ "Aggregate" ], "destination" : "handler" , "outputSchema" : "https://example.org/fdt/schemas/gene-disease-output" }, "reporting" : { "mode" : "callback" , "callbackUrl" : "https://handler.cardionet.example/fdt/v1/visits/m1-v1" , "callbackToken" : "<per-visit capability token>" }, "deadline" : "2026-09-19T00:00:00Z" , "approvalWait" : "PT0S" , "labels" : { "plan" : "Cardiomyopathy genes at one station" , "run" : "M1" }, "station" : "https://example.org/fdt/station/ut" , "issuedAt" : "2026-09-12T09:03:00Z" , "expiresAt" : "2026-09-12T10:03:00Z" , "signature" : { "signedBy" : "https://handler.cardionet.example/fdt/v1" , "keyId" : "https://handler.cardionet.example/fdt/v1/keys/operator-1" , "algorithm" : "EdDSA" , "signedDigest" : "sha256:31c5e77ecfb77aca8d420ffc17229ab5b4b2aa3aa6e435ae9de27223f3981b8f" , "value" : "rI8fnKYwALNDxpnvmR79NoBJSzw2ZJ4MhFjNO8EdlnOd0KUK0M36MotvjlZx58aiejVL2vVQr98Cr-c_SYO1CA" } }
14.2. Run authorisation
The run authorisation is what a consumer signs once per run, at their own agent, and what every
descriptor of the run carries by value (§ 7 The run authorisation and the signed descriptor). run-authorisation.schema.json is
normative; the object is closed.
| Member | Type | Meaning |
|---|---|---|
protocol ✱
| IRI | https://w3id.org/fdt/visit-protocol/v1.
|
authorisation ✱
| IRI | This authorisation’s own IRI, minted by the consumer’s agent. An agreement concluded under it names it beside its digest. |
consumer ✱
| IRI | The consumer party: the party every descriptor sent under it binds (consumer.party), and the only party whose key may sign it.
|
handler ✱
| object (closed) | iri ✱ — the one Handler instance it is given to; keyId ✱ — the operator key that Handler must sign each descriptor with.
|
purpose ✱
| object (closed) | values ✱ — the purposes authorised, as the rightOperand IRIs a request’s purpose constraint states; evidence — what the consumer presented for them, in the shape an agreement records evidence in.
|
trains ✱
| object[] | Each train ✱ and payloadDigest ✱ — a train and the payload digest the consumer authorises it to run as; and optionally take (iri ✱, digest ✱) — the take the entry relies on, which only its holder judges (§ 7.6 A take is not the station’s to judge).
|
plan ✱
| object (closed) | iri ✱ and digest ✱ — the plan the run executes. The digest is the canonical form’s, over the plan’s description as run-authorisation.schema.json defines it.
|
audience ✱
| object (closed) | stations, network, or both — where the run may go. Both present means both apply.
|
issuedAt ✱, expiresAt ✱
| date-time | When the consumer signed, and after when no descriptor under it may be started (AuthorisationExpired) and none may be valid (OutsideAuthorisedPeriod).
|
signature ✱
| signature object | The consumer’s signature, signedBy the consumer (§ 7.1 What is signed).
|
The descriptor shown in the visit descriptor example carries the published authorisation
run-authorisation-gd-m1.json in its authorisation member.
14.3. Signature object
The signature object is the one signature a protocol JSON document carries —signature.schema.json: signedBy ✱ (whose key made it), keyId ✱ (the IRI of the key in the
signer’s own published JWK set [RFC7517], so that an auditor can find it; never where a verifier
takes the key from), algorithm ✱ (EdDSA), signedDigest ✱ (sha256: and 64 lowercase hex
digits, stated so that a verifier whose computation differs can say WrongDigest rather than
DoesNotVerify) and value ✱ (base64url, unpadded). It is closed and has no onBehalfOf. It is
carried by the descriptor (signed by its Handler), the run authorisation (by its consumer) and the
visit-result envelope (by its station). An agreement’s signatures are RDF and are described in
§ 8.4 Signatures of both parties.
14.4. Visit event
A visit event is one progress or compliance event of a visit, emitted by the station at every checkpoint decision and state change.
| Member | Type | Meaning |
|---|---|---|
id ✱
| IRI | Globally unique, minted by the station. |
visit ✱, run, station
| IRI | What the event is about and who emitted it. |
sequence ✱
| integer | Monotonic per visit and attempt. |
attempt ✱
| integer ≥ 1 | Which attempt of the visit the event is about. |
previous
| digest | The link digest of the link before this one in the same visit and attempt (§ 12.1 The chain). Required wherever an event travels from a station; never on the record of a descriptor turned away before its signature held. |
time ✱
| date-time | The station’s time. |
type ✱
| enum | One of the types in the table below. |
state ✱
| enum | The fdt-run:VisitState after this event: Queued, Checking, PendingApproval, Running, Inspecting, Delivered, Skipped, Refused, TimedOut, Rejected, Failed, Revoked.
|
checkpoint
| enum | PEP1, NEG, PEP2, EXEC, PEP3, OBL.
|
agreement
| IRI | |
progress
| number 0–1 | For visit.progress.
|
message
| string | One sentence for consoles. |
reason
| string | For refused, rejected, failed, revoked: the stated reason shown to the consumer. On visit.revoked it is the controller’s reason.
|
justification
| object | decision — permit, deny, permit-with-duties or redact; rule; offer; agreement; stationPolicy; evidence — never record-level content; duties.
|
approval
| object (closed) | For negotiation.pending-approval: controller ✱, expiresAt, mode, rule, recommendation (grant or refuse), missing, assumedRegime (§ 8.2 Matched, pending, refused).
|
resultUrl
| URL | For visit.delivered under poll reporting.
|
dsp
| object | The equivalent Dataspace Protocol state, informative (§ 18 Relationship to the Dataspace Protocol). |
requester
| presentation | Who the visit was dispatched by, as presented, graded by the station. |
| Checkpoint | Event types | State after |
|---|---|---|
| PEP 1 | visit.received · visit.rejected
| Checking · Rejected |
| NEG | negotiation.requested · negotiation.matched · negotiation.pending-approval · negotiation.awaiting-signature · negotiation.active · negotiation.refused · negotiation.withdrawn
| Checking · PendingApproval · Checking · Checking · Refused · TimedOut |
| PEP 2 | visit.queued · visit.rejected · visit.revoked
| Queued · Rejected · Revoked |
| EXEC | visit.running · visit.progress · visit.failed · visit.cancelled · visit.revoked
| Running · Running · Failed · TimedOut · Revoked |
| PEP 3 | visit.inspecting · visit.delivered · visit.rejected
| Inspecting · Delivered · Rejected |
| OBL | obligation.scheduled · obligation.fulfilled
| unchanged |
Conditional rules the schema enforces: negotiation.refused and visit.rejected MUST carry
reason and justification; visit.failed and visit.revoked MUST carry reason;
visit.revoked, negotiation.awaiting-signature and negotiation.active MUST name the
agreement; negotiation.pending-approval MUST carry approval; negotiation.matched and
visit.delivered MUST carry justification; visit.received and visit.rejected MUST carry
requester; and a terminal event MUST announce its own state — negotiation.refused → Refused,
visit.rejected → Rejected, visit.delivered → Delivered, visit.failed → Failed,
visit.revoked → Revoked. A record of a descriptor turned away before its signature held —marked justification.evidence.descriptorVerified: false — MUST be a visit.rejected at PEP1,
Rejected, with sequence 1, attempt 1, no run and no previous, and MUST carry
justification.evidence.presented (§ 7.4 Nothing is acted on until the signatures hold).
Note: justification.decision has no value for nothing was decided. A visit.failed at NEG —the controller granted and the station broke before it could act — carries deny today, the same
word as a refusal, and type and state are what tell the two apart. Whether the field describes
what the rules said or what happened to the visit, and therefore whether the enumeration is short
by one value or two, is open (Q127).
visit-events-gd-m1.json. Nine events; nothing ran between the fourth and the fifth. Each carries previous; the first chains to the signed digest of the descriptor above.
[ { "id" : "https://station.ut.example/fdt/v1/events/0001-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 1 , "attempt" : 1 , "time" : "2026-09-12T09:03:04Z" , "type" : "visit.received" , "state" : "Checking" , "checkpoint" : "PEP1" , "message" : "Descriptor valid; payload digest matches the Depot offer for gene-disease 1.3; mechanism SPARQL supported and enabled" , "requester" : { "form" : "organisation-credential" , "party" : "https://example.org/fdt/party/eu-cardionet-like" , "agent" : "m.devries@cardionet.example" , "issuer" : "https://idp.example.org/ls-aai-like" , "assurance" : "presented-and-verified" , "exchange" : { "issuer" : "https://idp.example.org/ls-aai-like" , "subject" : "https://example.org/fdt/party/eu-cardionet-like" , "actor" : "m.devries@cardionet.example" } }, "justification" : { "decision" : "permit" , "rule" : "PEP1: PayloadShape + digest == fdt-o:artifactDigest" , "evidence" : { "digest" : "sha256:0f2ea318c57bde07b025561f2333bbf0b0cb7ce75ed867ca72020ff60a7890b9" } }, "previous" : "sha256:31c5e77ecfb77aca8d420ffc17229ab5b4b2aa3aa6e435ae9de27223f3981b8f" }, { "id" : "https://station.ut.example/fdt/v1/events/0002-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 2 , "attempt" : 1 , "time" : "2026-09-12T09:03:05Z" , "type" : "negotiation.requested" , "state" : "Checking" , "checkpoint" : "NEG" , "message" : "Matching request gd-2026 against 1 offer in network health-research-nl" , "previous" : "sha256:34eb5de6a755922b828cee0bf7f8985b293fcef164ad94703e8eaad070770225" }, { "id" : "https://station.ut.example/fdt/v1/events/0003-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 3 , "attempt" : 1 , "time" : "2026-09-12T09:03:10Z" , "type" : "negotiation.matched" , "state" : "Checking" , "checkpoint" : "NEG" , "message" : "Offer ut-gene-disease-research matches: research purpose, network health-research-nl, aggregate delivery" , "justification" : { "decision" : "permit" , "rule" : "NEG: every constraint of the matched permissions is satisfied by a fact the visit carries" , "evidence" : { "offer" : "https://example.org/fdt/offer/ut-gene-disease-research" , "purpose" : "https://w3id.org/dpv#ResearchAndDevelopment" , "network" : "https://example.org/fdt/net/health-research-nl" , "requiresManualApproval" : false } }, "previous" : "sha256:32550c141b268d554574b39e97f61a68ee7bd3b7b9cfa29b51e5642511065923" }, { "id" : "https://station.ut.example/fdt/v1/events/0004-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 4 , "attempt" : 1 , "time" : "2026-09-12T09:03:11Z" , "type" : "negotiation.awaiting-signature" , "state" : "Checking" , "checkpoint" : "NEG" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Agreement agr-m1-01 concluded without a human: the offer requires no manual approval and no constraint needed evidence the station lacks. Awaiting the assignee's signature (ADR-038)" , "justification" : { "decision" : "permit-with-duties" , "rule" : "ADR-008 auto-approval" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "duties" : [ "aggregate: at least 5 subjects per released cell" ], "evidence" : { "agreementDigest" : "sha256:3d1a0df22a584e23f4a42952cf86ef6f51c1aa6f9ea682c9a03a3a1fe9449494" } }, "dsp" : { "negotiationState" : "AGREED" }, "previous" : "sha256:bd845bf7dc394d0fa1f515fb7e49c728e0abd7735f5697b21c6c8ae48c40eb1a" }, { "id" : "https://station.ut.example/fdt/v1/events/0005-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 5 , "attempt" : 1 , "time" : "2026-09-12T09:03:14Z" , "type" : "negotiation.active" , "state" : "Checking" , "checkpoint" : "NEG" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Signed by both parties; the agreement is active" , "justification" : { "decision" : "permit-with-duties" , "rule" : "NEG: both parties have signed (agreement-derivation.md §6)" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "duties" : [ "aggregate: at least 5 subjects per released cell" ] }, "dsp" : { "negotiationState" : "FINALIZED" }, "previous" : "sha256:48607e0460f0d2cefe79299eddc9caee9559c984eb5b83b0c252ed6dd509a47c" }, { "id" : "https://station.ut.example/fdt/v1/events/0006-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 6 , "attempt" : 1 , "time" : "2026-09-12T09:03:12Z" , "type" : "visit.queued" , "state" : "Queued" , "checkpoint" : "PEP2" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Agreement active and covers runQuery on the target; within quota" , "previous" : "sha256:754f43f875e5baad73e330928faa762e9211bd9b03f1edff27662d0390a4b513" }, { "id" : "https://station.ut.example/fdt/v1/events/0007-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 7 , "attempt" : 1 , "time" : "2026-09-12T09:03:15Z" , "type" : "visit.running" , "state" : "Running" , "checkpoint" : "EXEC" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "SPARQL adapter executing the train payload against the station graph" , "previous" : "sha256:89116fc44052d58f27b01513715f99d567f9835e0a737d56c4efc761b9beafbe" }, { "id" : "https://station.ut.example/fdt/v1/events/0008-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 8 , "attempt" : 1 , "time" : "2026-09-12T09:04:20Z" , "type" : "visit.inspecting" , "state" : "Inspecting" , "checkpoint" : "PEP3" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Inspecting 5 cells against the train's declared output schema and the agreement's aggregation duty (k=5)" , "previous" : "sha256:a96366412ba0a467300a002736e566c4facce4dde560dbd09662f574fcb07db5" }, { "id" : "https://station.ut.example/fdt/v1/events/0009-m1v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 9 , "attempt" : 1 , "time" : "2026-09-12T09:04:22Z" , "type" : "visit.delivered" , "state" : "Delivered" , "checkpoint" : "PEP3" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Aggregate delivered to the Handler; 5 cells; no record-level field present" , "justification" : { "decision" : "permit-with-duties" , "rule" : "PEP3: every cell counts at least 5 subjects; result validates against the train's declared output schema" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "evidence" : { "cells" : 5 , "min_subject_count" : 14 , "outputSchema" : "https://example.org/fdt/schemas/gene-disease-output" } }, "resultUrl" : "https://station.ut.example/fdt/v1/visits/m1-v1/result" , "dsp" : { "transferState" : "COMPLETED" }, "previous" : "sha256:a94eb9cf472630cff7416df3b2ff2e489e52f636b741590e505b82a2fee2a0c6" } ]
visit-events-gd-m1-poll.json. Eight events: no negotiation.awaiting-signature, and negotiation.active states the route the exchange took.
[ { "id" : "https://station.ut.example/fdt/v1/events/0001-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 1 , "attempt" : 1 , "time" : "2026-09-12T09:03:04Z" , "type" : "visit.received" , "state" : "Checking" , "checkpoint" : "PEP1" , "message" : "Descriptor valid; payload digest matches the Depot offer for gene-disease 1.3; mechanism SPARQL supported and enabled" , "requester" : { "form" : "organisation-credential" , "party" : "https://example.org/fdt/party/eu-cardionet-like" , "agent" : "m.devries@cardionet.example" , "issuer" : "https://idp.example.org/ls-aai-like" , "assurance" : "presented-and-verified" , "exchange" : { "issuer" : "https://idp.example.org/ls-aai-like" , "subject" : "https://example.org/fdt/party/eu-cardionet-like" , "actor" : "m.devries@cardionet.example" } }, "justification" : { "decision" : "permit" , "rule" : "PEP1: PayloadShape + digest == fdt-o:artifactDigest" , "evidence" : { "digest" : "sha256:0f2ea318c57bde07b025561f2333bbf0b0cb7ce75ed867ca72020ff60a7890b9" } }, "previous" : "sha256:977402b8015f9906794dfa35b139eb688627714f984129dd1b29ba3b40170bfc" }, { "id" : "https://station.ut.example/fdt/v1/events/0002-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 2 , "attempt" : 1 , "time" : "2026-09-12T09:03:05Z" , "type" : "negotiation.requested" , "state" : "Checking" , "checkpoint" : "NEG" , "message" : "Matching request gd-2026 against 1 offer in network health-research-nl" , "previous" : "sha256:6c217a03273cfbf29e8d82ea19dabdda9a6018b8bfcf47ab29449b90140f50a8" }, { "id" : "https://station.ut.example/fdt/v1/events/0003-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 3 , "attempt" : 1 , "time" : "2026-09-12T09:03:10Z" , "type" : "negotiation.matched" , "state" : "Checking" , "checkpoint" : "NEG" , "message" : "Offer ut-gene-disease-research matches: research purpose, network health-research-nl, aggregate delivery" , "justification" : { "decision" : "permit" , "rule" : "NEG: every constraint of the matched permissions is satisfied by a fact the visit carries" , "evidence" : { "offer" : "https://example.org/fdt/offer/ut-gene-disease-research" , "purpose" : "https://w3id.org/dpv#ResearchAndDevelopment" , "network" : "https://example.org/fdt/net/health-research-nl" , "requiresManualApproval" : false } }, "previous" : "sha256:c7a92f361768ec370282e9b6d9cf259e238fdc4a902f890d552e5234910b37b8" }, { "id" : "https://station.ut.example/fdt/v1/events/0004-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 4 , "attempt" : 1 , "time" : "2026-09-12T09:03:14Z" , "type" : "negotiation.active" , "state" : "Checking" , "checkpoint" : "NEG" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Signed by both parties; the agreement is active. This station is poll-dispatched, so it obtained the assignee's signature itself in one round trip (POST /visits/{visitId}/agreement) rather than waiting to be reached" , "justification" : { "decision" : "permit-with-duties" , "rule" : "NEG: both parties have signed (agreement-derivation.md §6)" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "duties" : [ "aggregate: at least 5 subjects per released cell" ], "evidence" : { "signatureRoute" : "station-initiated" , "dispatchMode" : "poll" , "agreementDigest" : "sha256:3d1a0df22a584e23f4a42952cf86ef6f51c1aa6f9ea682c9a03a3a1fe9449494" } }, "dsp" : { "negotiationState" : "FINALIZED" }, "previous" : "sha256:444712e594a351e1348cd10cb3155eaee16d35af36a228066d4fc5785f8dd6e4" }, { "id" : "https://station.ut.example/fdt/v1/events/0005-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 5 , "attempt" : 1 , "time" : "2026-09-12T09:03:12Z" , "type" : "visit.queued" , "state" : "Queued" , "checkpoint" : "PEP2" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Agreement active and covers runQuery on the target; within quota" , "previous" : "sha256:4319861a11bf62af1e21a4e65982cda86fc253c3c85c25c8604fa8a4879975ea" }, { "id" : "https://station.ut.example/fdt/v1/events/0006-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 6 , "attempt" : 1 , "time" : "2026-09-12T09:03:15Z" , "type" : "visit.running" , "state" : "Running" , "checkpoint" : "EXEC" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "SPARQL adapter executing the train payload against the station graph" , "previous" : "sha256:406695cc2ba5190dc95db7b088d6ca9b2cefd3b41413f9cbcb82a39e58ab8245" }, { "id" : "https://station.ut.example/fdt/v1/events/0007-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 7 , "attempt" : 1 , "time" : "2026-09-12T09:04:20Z" , "type" : "visit.inspecting" , "state" : "Inspecting" , "checkpoint" : "PEP3" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Inspecting 5 cells against the train's declared output schema and the agreement's aggregation duty (k=5)" , "previous" : "sha256:fb2d219874ff7c9851da1012562738879b70e8ae39380bf12ad56cca2870a743" }, { "id" : "https://station.ut.example/fdt/v1/events/0008-m1v4" , "visit" : "https://example.org/fdt/visit/m1-v4" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "sequence" : 8 , "attempt" : 1 , "time" : "2026-09-12T09:04:22Z" , "type" : "visit.delivered" , "state" : "Delivered" , "checkpoint" : "PEP3" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "message" : "Aggregate delivered to the Handler; 5 cells; no record-level field present" , "justification" : { "decision" : "permit-with-duties" , "rule" : "PEP3: every cell counts at least 5 subjects; result validates against the train's declared output schema" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "evidence" : { "cells" : 5 , "min_subject_count" : 14 , "outputSchema" : "https://example.org/fdt/schemas/gene-disease-output" } }, "resultUrl" : "https://station.ut.example/fdt/v1/visits/m1-v4/result" , "dsp" : { "transferState" : "COMPLETED" }, "previous" : "sha256:7cf5c970efa445021907ba54cae171e56fcefafac3cc9d4cbee47dc514b9ff40" } ]
14.5. Visit-result envelope
The visit-result envelope is what a station returns for one visit after result inspection. The same object is the evaluation scope over which a Handler evaluates a plan’s conditions (ADR-025), so a Handler evaluates phase conditions and next-hop selectors directly on what arrives.
| Member | Type | Meaning |
|---|---|---|
visit ✱, station ✱, train ✱
| IRI | |
hop ✱, phase ✱, attempt ✱
| integer | |
run, protocol
| IRI | |
agreement
| IRI | Required when delivered, and when rejected at PEP 3. |
state ✱
| enum | delivered, skipped, refused, timed-out, rejected, failed, revoked — the outcome, in the envelope’s spelling.
|
checkpoint
| enum | Where the terminal decision was taken. Required for every outcome but delivered.
|
deliveredAt
| date-time | Required when delivered. |
inspection
| object | outcome ✱ — passed, redacted or rejected; onwardStateClass; outputSchema — the schema PEP 3 validated against; justification — in words a controller can read. Required when delivered and when rejected at PEP 3.
|
result ✱
| object | The train’s declared aggregate output, conforming to inspection.outputSchema. MUST be empty under any outcome but delivered.
|
skipCause
| enum | NotSelected, NotEvaluated, Pruned, Dropped, OutsideAuthorisation. Required when skipped.
|
reason
| string | The stated reason for a non-success outcome. Required for every outcome but delivered.
|
events
| URL | Where the full event stream can be read. |
artifacts
| object[] | Files released by PEP 3: name ✱, mediaType ✱, digest ✱, bytes ✱, url (https only — a location, never a container), inline (the honest way to put content in an envelope), conformsTo. Never record-level.
|
onward
| object | stateClass ✱ (Aggregate, Pseudonym, None), destination ✱, linkageStation, joinKey, handedOverDigest, duties.
|
routing
| object | Choreography only: nextStations, carriedState (digest), carriedStateClass.
|
obligations
| object[] | Post-execution duties the station scheduled and the consumer must honour: duty ✱, dueAt, agreement.
|
provenance
| URL | The PROV-O [PROV-O] record of this visit. |
requester
| presentation | Who the visit was dispatched by, as presented. |
lastEventDigest
| digest | The link digest of the last event this envelope closes (§ 12.2 The envelope closes it). |
signature
| signature object | The station’s signature, signedBy the station. With lastEventDigest, required wherever a station returns the envelope.
|
Conditional rules the schema enforces: an envelope carrying signature carries lastEventDigest;
a delivered visit carries agreement, deliveredAt and inspection; a result rejected at PEP 3 carries agreement and inspection; every non-success
outcome carries reason; a skipped visit carries skipCause and reason; only a delivered visit
carries a result; a visit that did not deliver says where it ended.
visit-result-gd-m1.json. Five cells, the smallest counting 14 subjects against a duty requiring 5; the numbers came out of the query, not out of prose. It closes the nine events above and is signed by the station.
{ "protocol" : "https://w3id.org/fdt/visit-protocol/v1" , "visit" : "https://example.org/fdt/visit/m1-v1" , "run" : "https://example.org/fdt/run/gd-m1-01" , "station" : "https://example.org/fdt/station/ut" , "hop" : 1 , "phase" : 1 , "attempt" : 1 , "train" : "https://example.org/fdt/train/gene-disease" , "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "state" : "delivered" , "deliveredAt" : "2026-09-12T09:04:22Z" , "inspection" : { "outcome" : "passed" , "onwardStateClass" : "Aggregate" , "outputSchema" : "https://example.org/fdt/schemas/gene-disease-output" , "justification" : "Result validates against the train's declared output schema; 5 cells, smallest counts 14 subjects, k=5 required by the agreement's odrl:aggregate duty; no record-level field present." }, "result" : { "rows" : [ { "gene_symbol" : "TTN" , "disease" : "https://example.org/fdt/gd/disease/dilated-cardiomyopathy" , "disease_label" : "Dilated cardiomyopathy" , "evidence_count" : 6 , "subject_count" : 62 }, { "gene_symbol" : "MYH7" , "disease" : "https://example.org/fdt/gd/disease/hypertrophic-cardiomyopathy" , "disease_label" : "Hypertrophic cardiomyopathy" , "evidence_count" : 5 , "subject_count" : 40 }, { "gene_symbol" : "LMNA" , "disease" : "https://example.org/fdt/gd/disease/dilated-cardiomyopathy" , "disease_label" : "Dilated cardiomyopathy" , "evidence_count" : 4 , "subject_count" : 23 }, { "gene_symbol" : "MYH7" , "disease" : "https://example.org/fdt/gd/disease/dilated-cardiomyopathy" , "disease_label" : "Dilated cardiomyopathy" , "evidence_count" : 3 , "subject_count" : 18 }, { "gene_symbol" : "LMNA" , "disease" : "https://example.org/fdt/gd/disease/conduction-disease" , "disease_label" : "Cardiac conduction disease" , "evidence_count" : 2 , "subject_count" : 14 } ], "cell_count" : 5 , "min_subject_count" : 14 }, "onward" : { "stateClass" : "Aggregate" , "destination" : "handler" }, "events" : "https://station.ut.example/fdt/v1/visits/m1-v1/events" , "provenance" : "https://station.ut.example/fdt/v1/visits/m1-v1/prov" , "lastEventDigest" : "sha256:69c4e3a9b4c20a297b932d51a85b6294587d5bf0b340da3e082f2fae528ea43b" , "signature" : { "signedBy" : "https://example.org/fdt/station/ut" , "keyId" : "https://station.ut.example/fdt/v1/keys/1" , "algorithm" : "EdDSA" , "signedDigest" : "sha256:7cfa49ccdea7171d8c9717dc885b8a148e817b30c3014c2936ae860dd3c79246" , "value" : "SKJ2Efk1yBorsSiisz4mNmgeLWoUejK26ZNvk9Tgx8V8piF6JZNO-WLq9ut_anTNR5AVZbbg7EGlw0S4Pi1_DA" } }
14.6. Presentation
The presentation records what a component saw of the credential a visit was dispatched under, verbatim — because a component that normalised every form into "the agent" would write down something nobody said, and which form was presented is often what an audit is about. One schema, recorded in the descriptor, every event and the envelope.
| Member | Meaning |
|---|---|
form ✱
| organisation-credential — the subject is the party and the credential names the human agent acting for it (RFC 8693’s act.sub); person-credential — the subject is the person and a named federation claim relates them to a party; configured-credential — configured out of band (development deployments); no-credential — authentication switched off; credential-not-read — the visit was turned away before any credential could be read.
|
party, agent, affiliation, issuer
| The legal party bound, the person or service that acted, the affiliation’s value and who signed the credential. |
affiliationClaim
| For a person’s credential, which claim the affiliation was read from — required, because the claim’s name is a deployment’s configuration and not pinned by this protocol (Q30), and two deployments reading two different claims must be distinguishable in the first record either writes. |
assurance
| Set by the station only: presented-only or presented-and-verified (§ 17.1 Credentials).
|
exchange
| What a verified exchanged token established and nothing else: issuer, subject, actor. Closed.
|
assuranceNote, note
| Why the weaker state applies; why a degenerate form was accepted. |
14.7. VisitStatus and Problem
A VisitStatus is the station’s answer to a push, a replay, a cancellation, a
signature and GET /visits/{visitId}: visit ✱, attempt ✱ (the latest the station holds), state ✱, agreement, sequence ✱
(of the latest event), approval (controller, expiresAt), progress, events and result
URLs, and reason for a non-success outcome.
A Problem is an RFC 9457 problem details object [RFC9457] — type ✱,
title ✱, status ✱, detail, instance — extended with the FDT outcome (Refused,
Rejected or Failed), the checkpoint, the justification, and reason — one of the
rejection reasons of § 7.3 Verification at PEP 1, present exactly when a descriptor is rejected at PEP 1
for one of them. A station answering with a Problem MUST put the same outcome word in it that the visit’s terminal event carries — except when
it declines an attempt, where the Problem carries no outcome (§ 6.4 Idempotency, attempts and withdrawal). The
Problem answering a descriptor turned away before its signature held has as its instance the IRI
the station minted for the presentation (§ 7.4 Nothing is acted on until the signatures hold).
An AcknowledgementProblem is the Problem a poll-dispatch station sends as its
acknowledgement, with one more member, attempt ✱ — the attempt the collected descriptor stated —because only there is the answer separated from the request it answers.
14.8. Signature messages
An AgreementSignature (posted by the Handler to a push-dispatch station) and a
PartySignature (carried in both directions of the poll-dispatch exchange) are
one construction: signedBy ✱, onBehalfOf (present exactly when it differs from signedBy),
keyId ✱, algorithm ✱ (EdDSA), signedDigest ✱ (sha256: + 64 hex), value ✱ (base64url,
unpadded). On the assignee’s side of a visit agreement signedBy is the Handler the pinned run
authorisation names and onBehalfOf the consumer. Neither carries a role: the endpoint or the position in the exchange fixes it, and
a role a sender could choose would let the party holding the pen present the other side’s
signature as its own.
A CountersignatureRequest is what a poll-dispatch station sends: agreement ✱
(IRI), document ✱ (mediaType ✱ — application/n-quads in canonical form or text/turtle —and content ✱, the serialised graph), and assignerSignature ✱. A Countersignature
is the answer: agreement ✱ and signature ✱. A CountersignatureRefused
carries reason ✱ from the five words of § 8.4.4 Refusing a signature — the four of its
table and WrongAuthorisation — and a detail.
A ReturnRefused is the Problem with which a Handler answers 422 to an event,
an acknowledgement or an envelope it does not accept, with reason ✱ one of the return reasons
(§ 12.3 Verification at the Handler).
poll-countersign-ask-gd-m1.json (the document’s N-Quads abbreviated here only in prose; the fixture is complete) and poll-countersign-answer-gd-m1.json, whose signature is the Handler’s, made for the consumer.
{ "agreement" : "https://example.org/fdt/agreement/agr-m1-01" , "signature" : { "signedBy" : "https://handler.cardionet.example/fdt/v1" , "onBehalfOf" : "https://example.org/fdt/party/eu-cardionet-like" , "keyId" : "https://handler.cardionet.example/fdt/v1/keys/operator-1" , "algorithm" : "EdDSA" , "signedDigest" : "sha256:3d1a0df22a584e23f4a42952cf86ef6f51c1aa6f9ea682c9a03a3a1fe9449494" , "value" : "zgsjlhtQULX1FHYN0m0JeNr6QVcE8cdfDK2SHvT-svW7bYhH8_2pdQelnMyu8SPV_9SyA6JXuXeddILNqCnsBw" } }
14.9. Redacted plan
The redacted plan a station may read for a visit it holds (Handler API) shows the run’s
structure in full and never another station’s identity: plan ✱, visit ✱, pattern ✱,
coordination ✱, phases ✱, failurePolicy ✱, stateCarriage, budget, stopCondition,
intendedStationCount ✱ — the count is disclosed, the list is not, in any form — branch ✱ (this
station’s own, with nothing withheld) and redaction ✱, by which the document says of itself what
it is not and that it is the Handler’s unverified account (ADR-047).
14.10. Reason vocabularies
Four closed vocabularies say why a document was not accepted. They share words because they are
about the same kinds of fact, and they are separate vocabularies, declared separate in
fdt-commons (tests/expectations.json, separate_vocabularies) rather than held to one list.
| Vocabulary | Said by, about | Words | Published as |
|---|---|---|---|
| Rejection reasons | A station at PEP 1, about a descriptor; also a Handler refusing a run it is handed, and a Depot refusing a take read (a subset) | The twenty-six words of § 7.3 Verification at PEP 1, AgreementUnderAnotherAuthorisation and WrongTake — twenty-eight; said by a station, each is a Rejected outcome
| rejection-reason.schema.json
|
| Agreement-signature refusals | A station, about the assignee’s signature posted to it | UnknownKey, DoesNotVerify, WrongParty, WrongDigest
| the 422 of POST /visits/{visitId}/agreement/signature
|
| CountersignatureRefused | A Handler, about an agreement a poll-dispatch station sent it | The four above and WrongAuthorisation
| handler-callback-api.yaml
|
| Return reasons | A Handler, about a station’s events and envelope | Unsigned, WrongParty, WrongDigest, UnknownKey, DoesNotVerify, ChainBroken
| return-reason.schema.json
|
None of these is an outcome word except as the table says, and none replaces one: a refused return ends its attempt Failed, a rejected descriptor is Rejected.
15. Station API
Normative definition: station-visit-api.yaml (Appendix B: Normative artefacts). Base path: the station’s dispatch
endpoint. Authentication: § 17 Security.
| Operation | Purpose | Responses |
|---|---|---|
GET /
| Self-description, as JSON-LD or Turtle ([FDT-METADATA]): memberships, dispatch endpoint and protocol, dispatch modes, key set, publication base. | 200 · 404 no metadata published here |
GET /keys
| The station’s key set ([FDT-METADATA]): for discovery, never trust. | 200 · 404 no metadata published here |
GET /catalogue
| The DCAT catalogue — datasets, parts, offers, distributions, what each conforms to, and the station’s own self-description statements, which is what a registry harvests. Publishing it grants nothing. | 200 (Turtle, JSON-LD) · 404 no metadata published here · 406 |
GET /shapes
| The SHACL shapes the station’s data conforms to — what makes station selection answerable. | 200 · 404 no metadata published here · 406 |
POST /visits
| Push a visit (§ 6.1 Push dispatch). Body: a signed visit descriptor. | 202 + Location · 200 (replay) · 400 Rejected · 401 · 403 Refused · 409 declined, no outcome · 415
|
GET /visits/{visitId}
| Current VisitStatus. | 200 · 404 |
GET /visits/{visitId}/events
| Ordered events with sequence > after, each as emitted and chained; SSE with Accept: text/event-stream.
| 200 |
GET /visits/{visitId}/result
| The latest station-signed visit-result envelope once terminal. | 200 · 409 not yet terminal |
GET /visits/{visitId}/artifacts/{name}
| An artefact released by PEP 3; Digest header carries its SHA-256.
| 200 |
POST /visits/{visitId}/cancel
| Withdraw or stop (§ 13.1 Cancellation). Body: reason ✱, cause.
| 200 current status |
POST /visits/{visitId}/agreement/signature
| The Handler signs the assignee’s side for the consumer (§ 8.4.3 The exchange, in two shapes, push shape). Body: AgreementSignature. | 200 active and queued · 404 nothing awaiting a signature · 409 already signed · 422 refused, naming which of the four |
GET /agreements/{agreementId}
| An agreement the caller is party to, as JSON-LD or Turtle, with a Digest header; read-only.
| 200 · 403 · 404 |
visitId is the URL-safe form of the visit IRI; percent-encoding of the full IRI is the default
and a station documents its encoding.
The four metadata operations are open (security: []) and are served beneath the station’s
publication base (§ 6.2 Poll dispatch); where a station publishes no metadata at this base they answer
404 with a Problem saying so and naming the publication base where there is one. Every other
operation requires the dispatch credential (§ 17.1 Credentials).
The station’s operator surface, station-admin-api.yaml, is not part of this protocol, but the
audit records this protocol requires are read there, under declared security: the document’s default
is the operator’s credential (adminToken); the reads of visits and events (GET /admin/visits,
GET /admin/visits/{visitId}/events, GET /admin/events) admit the operator or an auditor
(auditorToken, ADR-039); GET /admin/decision-mode and its history are open, since a station’s
decision posture is public; and PUT /admin/decision-mode admits the operator only.
16. Handler API — the station-facing surface
Normative definition: handler-callback-api.yaml (Appendix B: Normative artefacts). This document is defined by its
audience: everything a station reads or writes at a Handler is declared here, and nothing a
consumer’s console reads is — a station operator must never be able to see a whole run, because a
run is other controllers' decisions about other people’s data. Everything here is reachable with
the per-visit callback token or the station operator’s own credential and is scoped to one
station’s own traffic.
| Operation | Purpose | Responses |
|---|---|---|
GET /stations/{stationId}/pending-visits
| Poll dispatch: the descriptors waiting for this station, one entry per attempt, each removed only by the acknowledgement naming its visit and attempt; wait long-polls up to 60 s.
| 200 (possibly empty) |
POST /visits/{visitId}/ack
| The station has taken the attempt, or answers it. Body: the first event, or an AcknowledgementProblem. | 204 (also a re-delivery) · 409 withdrawn or superseded — do not start · 422 not taken, entry stays pending: no attempt named, does not conform, an attempt never offered, or ReturnRefused ChainBroken
|
POST /visits/{visitId}/events
| Push one or more chained events; at-least-once. | 204 (also a re-delivery) · 404 · 410 withdrawn — stop at the next checkpoint · 422 none of the batch stored: an attempt never offered, does not conform, or ReturnRefused ChainBroken
|
PUT /visits/{visitId}/result
| Deliver the station-signed envelope, or re-issue it; idempotent per visit and attempt. | 204 · 422 not stored: does not conform (record-level content, missing outcome, reason or attempt), an attempt never offered, or ReturnRefused
|
PUT /visits/{visitId}/artifacts/{name}
| Upload an artefact (poll mode); digest verified against the envelope. | 204 · 409 digest mismatch |
GET /visits/{visitId}/plan
| The redacted plan for this visit (§ 14.9 Redacted plan). | 200 · 403 caller does not hold this visit · 404 |
POST /visits/{visitId}/agreement
| Poll-dispatch signature exchange: the station hands over the agreement it derived and signed; the Handler signs the other side in the same response. Body: CountersignatureRequest. | 201 Countersignature · 404 · 409 already countersigned · 422 CountersignatureRefused, one of five words |
17. Security
17.1. Credentials
Version 1 uses OpenID Connect bearer tokens [OPENID-CONNECT-CORE]. A station MUST verify a
visit’s token against the identity providers it trusts for the visit’s network (ADR-017), and
MUST answer 401 — not an outcome word — when the token is missing or untrusted, since nothing has
been decided about a caller whose identity was not established.
The Handler visits under its own credential (ADR-044). Nothing forwards a consumer’s credential to a station: a token minted for a Handler’s audience and presented to a station would be a confused deputy. Who dispatched the run reaches the station two ways, and the station records which it got:
-
the descriptor’s
consumer.presentationcarries the credential presentation of § 14.6 Presentation verbatim, and is always there; -
where the network’s identity provider performs RFC 8693 token exchange [RFC8693], the descriptor also carries
consumer.exchangedToken, which the station verifies against the network’s trusted issuer and which ties the visit cryptographically to the person named. An exchanged token establishes which person dispatched the run — the token’s subject and actor — and nothing else; a station MUST NOT treat any further claim in it as evidence in the negotiation and MUST NOT record one.
A station MUST record which of the two it got in every event’s requester.assurance —presented-and-verified, with the exchange it established, or presented-only. Grading is the
station’s act and nobody else’s: a descriptor whose presentation carries assurance or
exchange MUST be rejected, because a Handler writing verified about a credential presented to it
would be certifying its own assertion. A network without exchange is recorded, not broken, and a
console MUST render the two states as two states.
Callbacks use the per-visit capability token in the descriptor. A poll-dispatch station authenticates at the Handler with the OIDC client credentials of its operator, trusted by the Handler for the network.
A credential and a signature answer different questions and neither stands in for the other: the credential says who called; the descriptor’s signature says which Handler sent these parameters to this station; the run authorisation’s says what the consumer asked for (§ 7 The run authorisation and the signed descriptor). A station checks the credential first and the signatures after it.
17.2. Transport and integrity
All traffic between the parties MUST be over TLS, and the schemas say so wherever a location is
written down: handOver.url and artifacts[].url are https only. Integrity is by sha256:
digests end to end — the train’s offer, the descriptor, the arrival check, the agreement’s pins,
the released artefacts and the hand-over — and by signatures over every document that crosses
between the parties: the run authorisation (its consumer), the descriptor (its Handler), the
agreement (both sides) and the envelope (its station), which closes the chain of the station’s
events. Signing keys are published as JWK sets by their owners and distributed out of band:
| Who holds | whose public keys | to verify |
|---|---|---|
| A station | The Handlers it accepts visits from (its Handler list) | Descriptors; the assignee’s side of its agreements |
| A station | The parties it grants standing to (its party list) | Run authorisations |
| A station | The creators whose trains it may run | Creators' signatures over trains (STA-46) |
| A Handler | The stations it dispatches to, and any controller who signs an assigner’s side with their own key | The assigner’s side of agreements; a station’s envelopes |
How a Handler accepts a run authorisation before it dispatches anything, and the keys it holds to do
so, are the Handler’s consumer-facing contract ([FDT-ARCHITECTURE], handler-api.yaml).
Version 2 is planned to replace bearer tokens with credential presentations and to bind negotiation to the Dataspace Protocol (§ 18 Relationship to the Dataspace Protocol).
18. Relationship to the Dataspace Protocol
This section is non-normative.
The agreement and visit lifecycles map onto the Dataspace Protocol’s Contract Negotiation and
Transfer Process [DSP]; in version 1 the mapping is documentation and a version 2 binding would
implement it (ADR-019). The mapping is lossy in one place and the loss must not survive the
crossing: DSP ends badly in exactly one way — TERMINATED with a reason — while this protocol
distinguishes Refused, Rejected, TimedOut, Failed and Revoked and keeps Skipped outside the protocol
altogether. A binding carries this protocol’s outcome word in every TERMINATED reason, verbatim;
a binding that emits TERMINATED without it has implemented the part of the mapping that DSP could
express.
| Agreement state | DSP Contract Negotiation |
|---|---|
requested
| REQUESTED |
matched
| OFFERED, or straight to AGREED (there are no counter-offers) |
pending approval
| a provider-side wait before AGREED; DSP has no state for a person deciding |
awaiting signature
| AGREED — the provider has sent the agreement and the consumer has not yet verified |
active
| VERIFIED → FINALIZED |
| never concluded | TERMINATED, carrying Refused, TimedOut or Rejected as the case is |
suspended, revoked, expired, fulfilled
| after FINALIZED; DSP 2025-1 does not model them, and revocation after FINALIZED is a gap to raise |
| Visit state | DSP Transfer Process |
|---|---|
| Queued, Checking, PendingApproval | REQUESTED (SUSPENDED if already started) |
| Running, Inspecting | STARTED |
| Delivered | COMPLETED |
| Refused, Rejected, TimedOut, Failed, Revoked | TERMINATED, reason carrying the word |
| Skipped | no Transfer Process is ever created: nothing was requested of this station |
Not covered by DSP and therefore this protocol’s own: progress and compliance events, checkpoint decisions and justifications, pending approval, onward-state hand-over and provenance.
19. Open points
This section is non-normative.
The following are recorded in the reference implementation’s question register with a default every implementation follows until the question is decided.
-
Q27 — what outcome a station records when the assignee never signs. Default: none; the visit rests until withdrawn, and the consumer’s run reports Failed when its Handler stops waiting (§ 8.4.5 When the assignee does not sign).
-
Q61 — whether a network’s trust anchors may vouch for signing keys, instead of out-of-band configuration. Default: configuration;
UnknownKeyotherwise. -
Q141 — whether a run’s event feed must place every outcome in time. For the outcomes a station decided, its signed envelope and the chain it closes make that checkable (§ 12 What a station returns is signed); for the Handler’s own outcomes it is open.
-
Q149 — station persistence has no work package. A station that keeps each agreement’s run authorisation in memory cannot, after a restart, countersign an agreement in flight or accept a presented agreement: the pin is on the agreement, and the authorisation it pins is what a presented descriptor and the Handler’s signature are checked against. Until it persists them, a restart turns a presented agreement into a rejection or a
404, and a station should say which rather than appear to have judged the visit. -
Q150 — a decision record cannot say that a delegate took it. Default: no contract change; the fact travels in the audit row’s
context.auditDetail.decidedUnder(station-admin-api.yaml). -
Q151 — an auditor’s reads have no event kind and no contracted surface; the technical-failure family of
auditDetailis shown to the station’s operator only; and the404station-visit-api.yamldeclares onGET /agreements/{agreementId}cannot be reached, because no such agreement and not yours must be indistinguishable to the caller — a conformance test MUST NOT expect it. -
Q158 — answered by ADR-059: a station verifies the creator’s signature (STA-46). Its cost — every station configured with every creator’s key — waits on Q61.
-
Q169 — answered: a Handler’s run reads require the dispatch credential. "Dispatched under it" is read narrowly by the conservative default — the same party and, for a credential naming a person, the same acting person; widening it to the party is not decided (§ 12.4 The Handler serves what it accepted verbatim).
-
Q95 — how an operator registers a station that no registry can harvest: a poll-dispatch station with no publication base (§ 6.2 Poll dispatch). Nothing is promised.
-
Q164 — format keywords are not enforced by any component, and no document says they are checked.
-
Q114 — whether onward state needs a permission of its own or travels on the permission for the action that produced it; an agreement with no
fdt-p:deliverResultpermission admits nothing and constrains nothing, and PEP 3’s class check then passes vacuously. -
Q127 — whether
justification.decisiondescribes what the rules said or what happened to the visit (§ 14.4 Visit event). -
Q130 / Q133 — whether a station that cannot verify a hand-over’s bytes must refuse at PEP 1 or may run and report the result unverifiable.
-
Q135 — a hop with two inputs: one
handOverper descriptor today;precededBycan name both. -
Q136 — who may fetch a hand-over from the station that holds it, under which credential, and how long the artefact lives.
-
Owed, without a register entry of their own — carrying the producing envelope’s signature with a hand-over; serving every envelope a station issued to a reader that pulls; revoking a run authorisation (§ 12.5 What this establishes, and what it does not, § 7.7 What these signatures do not establish).
-
Draft 2 — a JSON-LD context for descriptors and events; the exact SSE framing; artefact size limits and resumable downloads; station-to-station forwarding; the DSP binding.
Appendix A: Examples
This appendix is non-normative.
Every example in this document is a published fixture of fdt-commons, copied verbatim from the
commit named in Appendix B: Normative artefacts; the reference implementation’s validators check each against its
schema and the station’s and Handler’s test suites run against them. The parties in them are
fictional. Besides those shown inline: visit-events-gd-m1-refused.json and
visit-result-gd-m1-refused.json (a controller’s refusal — five events, ending Refused with the
controller’s words), visit-events-gd-m1-failed.json and visit-result-gd-m1-failed.json (a
station that broke after a grant — the same five events, ending Failed, and the collision Q127
is about), visit-descriptor-ttg-hop3.json (a descriptor carrying a hand-over, with the lineage
rule of § 10.2 What arrives satisfied) and poll-countersign-ask-gd-m1.json (the full
CountersignatureRequest, document included). The refused and failed streams were captured from the
reference station and are chained and signed by it; the descriptors they answer are not published,
so their chains' anchors cannot be checked from the published corpus, while that of
visit-events-gd-m1.json can.
In fdt-commons but not copied here: run-authorisation-gd-m1.json and four more published
authorisations; ack-visit-received-gd-m1-poll.json, ack-rejected-at-pep1-gd-m1-poll.json and
ack-declined-different-descriptor-gd-m1-poll.json, the three forms of a poll acknowledgement
captured from the reference station; visit-result-ttg-hop1-at-delivery.json and
visit-result-ttg-hop1.json, an envelope and its re-issue after obligation.scheduled; and the
counter-examples of examples/protocol/invalid/, among them those of returns/.
visit-result-gd-m1-refused.json: an empty result, the outcome, where it ended, and the controller’s reason verbatim.
{ "protocol" : "https://w3id.org/fdt/visit-protocol/v1" , "visit" : "https://example.org/fdt/visit/m1-v6" , "station" : "https://example.org/fdt/station/ut" , "hop" : 1 , "phase" : 1 , "attempt" : 1 , "train" : "https://example.org/fdt/train/gene-disease" , "state" : "refused" , "checkpoint" : "NEG" , "result" : {}, "events" : "https://station.ut.example/fdt/v1/visits/https%3A%2F%2Fexample.org%2Ffdt%2Fvisit%2Fm1-v6/events" , "run" : "https://example.org/fdt/run/gd-m1-01" , "requester" : { "form" : "person-credential" , "party" : "https://example.org/fdt/party/eu-cardionet-like" , "agent" : "m.devries@cardionet.example" , "affiliation" : "https://example.org/fdt/party/eu-cardionet-like" , "issuer" : "https://idp.example.org/ls-aai-like" , "affiliationClaim" : "affiliation" , "assurance" : "presented-only" , "assuranceNote" : "this station verifies no RFC 8693 exchanged token (nothing in this ecosystem performs the exchange yet), so the acting person named above stands on the Handler's assertion and was not verified here (ADR-044 \u00a75: recorded, not broken)" }, "reason" : "This cohort is under embargo until the consortium's own analysis is published, and the committee does not release it early for any purpose." , "lastEventDigest" : "sha256:b4dfbe2615da098a79b33bfff8f4bf2c5d92dae1ae7cc8f6f0505ebe6cafd778" , "signature" : { "signedBy" : "https://example.org/fdt/station/ut" , "keyId" : "https://station.ut.example/fdt/v1/keys/1" , "algorithm" : "EdDSA" , "signedDigest" : "sha256:61d3a8d1d4dbc5d0e9113f2280684135ad341e3054a457b40afc6f747d797dbf" , "value" : "bpJFJh6rLnY7pcr_7KAke_T8q4Rp_3vsqmmS8GfQ2ZulaiYdZq2eTFyE8d-n8HUiCwcAdZ4HLCgDYRcuairWBg" } }
Appendix B: Normative artefacts
The following artefacts in fdt-commons [FDT-COMMONS] are normative for this version, pinned
to commit abf0e3d432d1ee000530747f17ca79bec0460c18 (VERSION 0.92.1). Where this document and an
artefact disagree, the artefact governs and this document has an error to be reported.
| Artefact | Identifier | Location |
|---|---|---|
| Visit descriptor | https://w3id.org/fdt/schemas/visit-descriptor.schema.json
| schemas/visit-descriptor.schema.json
|
| Visit event | https://w3id.org/fdt/schemas/visit-event.schema.json
| schemas/visit-event.schema.json
|
| Visit-result envelope | https://w3id.org/fdt/schemas/visit-result.schema.json
| schemas/visit-result.schema.json
|
| Run authorisation | https://w3id.org/fdt/schemas/run-authorisation.schema.json
| schemas/run-authorisation.schema.json
|
| Signature object | https://w3id.org/fdt/schemas/signature.schema.json
| schemas/signature.schema.json
|
| Rejection reasons | https://w3id.org/fdt/schemas/rejection-reason.schema.json
| schemas/rejection-reason.schema.json
|
| Return reasons | https://w3id.org/fdt/schemas/return-reason.schema.json
| schemas/return-reason.schema.json
|
| Presentation | https://w3id.org/fdt/schemas/presentation.schema.json
| schemas/presentation.schema.json
|
| Redacted plan | — | schemas/redacted-plan.schema.json
|
| Station API | OpenAPI 3.1 [OPENAPI], 0.92.1
| protocol/openapi/station-visit-api.yaml
|
| Handler API, station-facing | OpenAPI 3.1, 0.92.1
| protocol/openapi/handler-callback-api.yaml
|
| ODRL profile and shapes | https://w3id.org/fdt/profile
| vocab/fdt-profile.ttl, shapes/policy.shapes.ttl (fdts-policy:RequestShape, fdts-policy:AgreementShape, fdts-policy:SignatureShape)
|
| Run vocabulary | https://w3id.org/fdt/run#
| vocab/fdt-run.ttl
|
| Agreement derivation (rule and checker) | — | protocol/agreement-derivation.md, tools/derivation.py
|
| Result inspection (rule and checker) | — | protocol/result-inspection.md, tools/inspection.py
|
| Dispatch credential | — | protocol/dispatch-credential.md
|
| Signatures, the binding and the chain (the one implementation) | — | tools/descriptor.py; the protocol note protocol/visit-protocol.md §3.0, §6.1
|
| Operator audit surface (turned-away records, audit rows) | — | protocol/openapi/station-admin-api.yaml
|
| Canonical form | — | tools/canonical.py, cross-checked against the RDF Dataset Canonicalization reference implementation
|
| DSP mapping | — | mapping/state-machines.md
|
| Fixtures | — | examples/protocol/
|
The https://w3id.org/fdt/… identifiers are the names these artefacts carry in the contracts.
Their redirects are not yet published; until they are, the locations above are where the artefacts
resolve.
Appendix C: Change history
This appendix is non-normative.
- 30 November 2026 — signed in both directions (release 0.3.0)
-
Brought level with
fdt-commons0.92.1, commitabf0e3d(ADR-056 to ADR-061, Q169). A station or Handler that conforms to the draft of 16 October 2026 does not conform to this one. The protocol identifier is unchanged.-
A descriptor is signed by the Handler that sends it, addressed (
station) and dated (issuedAt,expiresAt), and carries by value the run authorisation its consumer signed once per run at their own agent; a station verifies both against two separately configured key lists and the binding between them, in a stated order, with twenty-one rejection words (§ 7 The run authorisation and the signed descriptor). Nothing in a descriptor is acted on until they hold: a descriptor turned away before then calls no callback, takes no visit IRI and is recorded as a presentation; a replay is recognised only after verification, by the digest the station computes. -
A visit agreement pins the run authorisation it was concluded under; its assignee’s side is signed by the Handler with its own operator key, for the consumer, and no longer with a key of the consumer’s held by the Handler. A presented agreement must carry the authorisation it pins (
AgreementUnderAnotherAuthorisation); a Handler refusing to countersign has a fifth word,WrongAuthorisation. A station does not judge takes (WrongTakeis the Handler’s). -
Every message a station sends about a visit names its
attempt; a station declines an attempt with409and no outcome, which the Handler ends Failed; Skipped gains the causeOutsideAuthorisation. -
A presented agreement is resolved on arrival: its faults are Rejected at PEP 1 (they were at PEP 2), and a revoked or suspended one is Refused at NEG with the controller’s reason (it said PEP 2). A rejection word travels in the Problem’s top-level
reason. -
A station verifies the creator’s signature over the train at PEP 1, before the payload digest, with five more rejection words (ADR-059; built in the reference station). A station’s self-description states its dispatch endpoint, dispatch modes and key set; every party publishes its key set, for discovery and never for trust; both are specified in the new [FDT-METADATA].
-
Every event a station returns is chained (
previous), every attempt it took ends in an envelope it signs, closing the chain (lastEventDigest) and re-issued after later events; a Handler verifies, refuses with six return reasons, stores nothing refused and serves what it accepted verbatim (§ 12 What a station returns is signed). What carries no station signature, and the hand-over check that is the Handler’s alone, are stated. -
Criteria: STA-1, STA-3, STA-5, STA-16, STA-19, STA-26, STA-27, STA-30, STA-38, PUSH-2, PUSH-3, POLL-2, POLL-4, HND-2, HND-6, HND-7, HND-8, HND-10, HND-11 and HND-16 changed; STA-34 to STA-46, POLL-7 and HND-19 to HND-25 added. No criterion was renumbered or removed.
-
A retired key (
exp) verifies only documents dated before it retired, each document by its own time — an agreement by itsdspace:timestamp; later ones are theUnknownKeyfamily. A station’s metadata is served open beneath its publication base, which a poll-only station must name, and answers404where it publishes none. A Handler’s run reads require the dispatch credential (Q169). The station’s admin API declares its security. -
The examples are re-copied from
fdt-commons0.92.1 (abf0e3d); the push and poll sequence diagrams say who signs what.
-
- 16 October 2026 — state classes, not "non-personal"
-
What may reach a Handler is described by state class —
Aggregate,Pseudonym,RecordLevel— and no longer as "non-personal": an aggregate can be personal and a record need not be, and the contracts never used the word. The rule itself (ADR-015) is unchanged. - 16 October 2026 — no station types
-
The protocol never had a station type for identifier translation, but it spoke of "a linkage station" as though it did. It now says what it meant: an ordinary station hosting a translation service, named in the descriptor’s
linkageStation(§ 10.1 What leaves). The member nameslinkageandlinkageStationare contract names and are unchanged. - 16 October 2026 — conformance criteria
-
§ 2 Conformance gains the numbered criteria of § 2.3 Criteria — STA for every station, PUSH and POLL for the two dispatch classes, HND for the Handler — each naming the section that states it and the fixture, checker or harness that checks it; the optional features; and the form of a conformance statement.
GET /agreements/{agreementId}is now listed among the operations a push-dispatch station implements, which the signature exchange already required. No normative requirement changed; one indicative sentence (§ 4 Parties and identifiers, the self-description advertisement) now carries the key word it was always read with. - 16 October 2026 — version 1, editors' draft
-
First publication as a specification, written against
fdt-commons0.75.0 and the running reference implementation. Relative to the draft-1 protocol note of 12 September 2026 insidefdt-commons: both parties sign the agreement (ADR-038) and the exchange has a poll-dispatch shape (Q52); the dispatch credential is graded (ADR-044); a station may read the redacted plan (ADR-047); hand-over has an inbound direction, named by location and digest (Q124), with the lineage rule andhttps-only locations; the agreement lifecycle has anawaiting signaturestate; and the derivation rule binds the agreement’s parties to the offer’s and the request’s.