# OIP-0025 draft folder

The proposal and, under `patches/`, the exact edits acceptance would make. Nothing here changes the protocol until the
editors accept the proposal and its patches are applied in the same change. The proposal requires OIP-0004, OIP-0014 and
OIP-0018 for the stand-in documents of its bindings; the patches are made against the current tree and apply to it on
their own.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0025.md`](OIP-0025.md) | the proposal |
| `patches/spec.patch` | §6: one paragraph after the heading naming the three bindings (no key word, so no requirement id changes) |
| `patches/bindings-common.patch` | the demo-binding helper of `tests/test_validate.py` made independent of the shipped bindings; the API test of the conformance runner service passes the example set's attestations |
| `patches/bindings-dataspace.patch` | `bindings/dataspace/` (profile, manifest, `dsp-obsp.schema.json`, `mapping.yaml` with the state tables, six positive and thirteen negative examples), `tests/test_dataspace_binding.py` |
| `patches/bindings-bpv7.patch` | `bindings/bpv7/` (profile, manifest, `mapping.yaml` with the field and block tables, three positive examples including a seven-day disruption, twelve negative), `tests/test_bpv7_binding.py` |
| `patches/bindings-ogc-processes.patch` | `bindings/ogc-processes/` (profile, manifest, `obsp-processes.schema.json`, the two process descriptions, `mapping.yaml`, seven positive and thirteen negative examples), `tests/test_ogcprocesses_binding.py` |
| `patches/registers.patch` | `relations.yaml`: new rows `EXT-DSP`, `EXT-BPV7`, `EXT-OGCPROC` at the end of `external`; `implements-edges.json` regenerated (44 edges); `requirements.yaml` regenerated (the §5.5, §5.7, §5.10 and §5.11 requirements gain the cases) |
| `patches/cases.patch` | cases CT-GRID-120 to CT-GRID-122, CT-NODE-120, CT-CONSUMER-120 and CT-CONSUMER-121. CT-GRID-121, CT-GRID-122 and CT-NODE-120 are automated (kind `invariant`): `sdk/python/src/obsp/inv_oip0025.py` registers `binding-replay-bpv7-gateway`, `-bpv7-node` and `-ogc-processes-processes` (`obsp.golden.replay`: the implementer supplies the digest of the output it produced for each golden example the case covers; positive outputs must equal the golden output, a negative example's claimed output must not be produced), hooked in `conformance.py`, with replay evidence in the OBSP-GRID and OBSP-NODE sets (and the OBSP-NODE negative set) and `sdk/python/tests/test_inv_oip0025.py`. CT-GRID-120, CT-CONSUMER-120 and CT-CONSUMER-121 stay manual, attested in the OBSP-GRID and OBSP-CONSUMER sets |

Apply all seven patches together (in any order): the registers name the binding folders, the bindings name the cases, and
the binding tests need the `tests/test_validate.py` hunk. Acceptance removes `patches/`.

Overlaps with other drafts (each proposal applies on its own; whichever is accepted later resolves these): `registers.patch`
regenerates `implements-edges.json` and `requirements.yaml`, as OIP-0005, OIP-0006, OIP-0008, OIP-0009 and OIP-0019 do, and
appends to the end of `relations.yaml`: append the rows and run `python3 tools/build_edges.py` and
`python3 tools/requirements.py`. The `tests/test_validate.py` hunk of `bindings-common.patch` is the same text as OIP-0009's
and OIP-0019's (the later one drops it). `cases.patch` creates `conformance/examples/OBSP-GRID/attestations.yaml` (CT-GRID-120
only), which OIP-0001, OIP-0002 and OIP-0009 also create, and appends to the OBSP-CONSUMER file's end: append the entries. The spec paragraph sits directly under the §6 heading, a place no other draft edits.
Any proposal that adds a manual case to OBSP-NODE needs the runner-service hunk (it is the same one).

## What stays manual

- CT-GRID-120 (Dataspace Protocol): a negotiation to FINALIZED and to TERMINATED and a transfer between a provider and a counterparty,
  with the state table observed on the messages as they happen.
- CT-CONSUMER-120 and CT-CONSUMER-121: the behaviour of an application (it does not show or request a withdrawn product, it shows
  INCONCLUSIVE and INSUFFICIENT_EVIDENCE as neither a pass nor a failure).
- Inside the three automated cases, not checked by the suite: behaviour on inputs other than the golden examples (the replay compares
  the output for each golden input), and that a node sends nothing while it has no link.

## On acceptance after the drafts it builds on

`obsp-evaluate-trigger` describes the trigger definition and evaluation as OIP-0018 names them (a stand-in). Once
OIP-0018 is accepted, the definition and the evaluation are its objects (the artefact's shapes name their required
members; the evaluation is signed by the service as its evaluator), the request gains the optional input `timeQuality`
(the time-quality records the records name, TRG-3), the examples use the OBSP-GRID definition over `4.0.0` records, and
the test reproduces each evaluation with the reference evaluator. The 0.5 integration series does this at step 26.

Check that every patch still applies to the current tree: `python3 -m unittest tests.test_validate -k draft_patches`.

## Verification

Checked against the public texts on 2026-11-21 so that rows say `checked: opened` only where the term and clause were read. Rows not listed stay `checked: not checked`.

- Sources read: RFC 9171 (BPv7) and RFC 9172 (BPSec).
- `bindings/bpv7/mapping.yaml`: 11 of 15 rows `opened`. Corrections: lifetime is in section 4.3.1 (the row said 4.2.6, which is DTN time); the payload block is 4.3.2 (the row said 4.3.1); the dtn scheme is 4.2.5.1.1; the integrity block is RFC 9172 section 3.7 (the row said 3.6). The RFC gives no percent-encoding rule for dtn names. Not opened: the DTN time epoch row and RFC 9173.
- `bindings/ogc-processes/mapping.yaml` (0 of 14) and `bindings/dataspace/mapping.yaml` (0 of 20): not touched.
