# OIP-0026 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 bindings of DCAT, PROV-O and C2PA need
nothing else; the HXL binding needs OIP-0020 and OIP-0005 accepted first. The patches are made against the current tree
and apply to it on their own.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0026.md`](OIP-0026.md) | the proposal |
| `patches/spec.patch` | §6: one paragraph after the wire-bindings table naming the four export bindings (no key word, so no requirement id changes) |
| `patches/bindings-dcat.patch` | `bindings/dcat/` (profile, manifest, `dataset.schema.json`, `context.jsonld`, `mapping.yaml`, four positive and six negative examples), `tests/test_dcat_binding.py` |
| `patches/bindings-prov-o.patch` | `bindings/prov-o/` (profile, manifest, `graph.schema.json`, `context.jsonld`, `mapping.yaml`, three positive and eight negative examples), `tests/test_provo_binding.py` (with the round trip) |
| `patches/bindings-hxl.patch` | `bindings/hxl/` (profile, manifest, `mapping.yaml` with the columns of both tables, two positive and seven negative CSV examples), `tests/test_hxl_binding.py` |
| `patches/bindings-c2pa.patch` | `bindings/c2pa/` (profile, manifest, `assertion.schema.json`, `outline.schema.json`, `mapping.yaml`, three positive and seven negative examples), `tests/test_c2pa_binding.py` |
| `patches/crosswalks.patch` | `crosswalks/dcat.yaml` (product and source manifests), `crosswalks/prov-o.yaml` (provenance) and their round-trip examples under `crosswalks/examples/` |
| `patches/registers.patch` | `relations.yaml`: `EXT-PROV` and `EXT-DCAT` gain `exchange`, profiles and artefacts; new rows `EXT-HXL` and `EXT-C2PA` at the end of `external`; `implements-edges.json` regenerated (43 edges); `requirements.yaml` regenerated (the section 5.10, 5.3 and 6 requirements gain the new cases) |
| `patches/cases.patch` | cases CT-GRID-130 to CT-GRID-133, CT-PROVIDER-130, CT-CONSUMER-130 and CT-CONSUMER-131. CT-GRID-130 (DCAT), CT-GRID-133 (C2PA) and CT-PROVIDER-130 (both, for a provider's source and images) are automated (kind `invariant`): `sdk/python/src/obsp/inv_oip0026.py` registers `binding-dcat-dataset`, `binding-dcat-source` and `binding-c2pa-image` (`obsp.golden.schema_docs`: the document validates against the binding's schema and is compared with the manifest, provenance bundle and receipts it was made from), hooked in `conformance.py`, with example evidence in the OBSP-GRID and OBSP-PROVIDER sets and `sdk/python/tests/test_inv_oip0026.py` (every negative example of the two bindings reports its requirement). CT-GRID-131, CT-GRID-132, CT-CONSUMER-130 and CT-CONSUMER-131 stay manual, attested in the OBSP-GRID and OBSP-CONSUMER sets |
| `patches/tests-common.patch` | `tests/test_validate.py`: the demo binding and crosswalk helpers made independent of the shipped bindings and crosswalks; `services/conformance-runner/tests/test_runner_service.py`: the offline run passes the attestations of the provider example set |

Apply all nine patches together (in any order): the registers name the binding folders and crosswalk files, the
bindings name the cases, and the crosswalk and binding tests read each other's examples. Acceptance removes `patches/`.

Overlaps with other drafts (each proposal applies on its own; whichever is accepted second resolves these): `cases.patch`
creates `conformance/examples/OBSP-GRID/attestations.yaml` (as OIP-0001 and OIP-0009 do) and
appends to the OBSP-CONSUMER one (no provider attestation remains);
`registers.patch` regenerates `implements-edges.json` and `requirements.yaml`: append the rows, then run
`python3 tools/build_edges.py` and `python3 tools/requirements.py`; the §6 paragraph of `spec.patch` sits after the same
table as OIP-0009's. `tests-common.patch` carries the demo-binding helper that OIP-0009 and OIP-0019 also carry, in a
form that also strips the shipped crosswalks and uses the `EXT-SLSA` row for the demo crosswalk (the shipped rows of
`EXT-PROV` and `EXT-DCAT` now name artefacts); the second one accepted keeps one copy. The crosswalk count line is the
same change OIP-0006 makes.

## What stays manual

- CT-GRID-131 (PROV-O): the conversion of a graph back to its bundle as a set of statements, which the implementer runs
  (`tests/test_provo_binding.py` shows the method).
- CT-GRID-132 (HXL): the tables are CSV, and the case asks for the people to whom the tables were handed, a human fact.
- CT-CONSUMER-130 and CT-CONSUMER-131: the behaviour of an application (a mismatching description is discarded, a missing licence is
  shown as unknown, an exercise row is not shown as an alert, a valid C2PA signature is not shown as proof of trust).
- Inside the three automated cases, not checked by the suite: that a withdrawn or recalled product is not exported as current and a
  superseded one names its successor, that the image carries a signed manifest (the outline is read, not the image bytes), and that a
  re-rendered image declares the earlier one as an ingredient.

## On acceptance after the drafts it builds on

The DCAT binding reads a product's licence from the extension key `export.licence`. Once OIP-0001 is accepted, the
licence is the manifest's `licence` field (required there): its `uri`, else the SPDX License List address of a single
SPDX identifier, and none for an SPDX expression; `export.licence` stays only for a source manifest. The examples, the
negative examples and the DCAT crosswalk example are re-derived. The 0.5 integration series does this at step 27.

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: W3C PROV-O (REC 2013-04-30) sections 3.1 to 3.3 and tables; W3C DCAT 3 (REC 2024-08-22) classes and properties.
- `crosswalks/prov-o.yaml`: 23 of 36 rows `opened` (the rest are `none` rows). Correction: `prov:generatedAtTime` is in 3.2 Expanded Terms (the row said 3.1).
- `bindings/prov-o/mapping.yaml`: 14 of 16 rows `opened` (the two `obsp:` rows have no PROV-O term).
- `crosswalks/dcat.yaml`: 8 of 27 rows `opened` (clauses 6.4.6, 6.4.10, 6.4.11, 6.4.19, 6.6.1). `bindings/dcat/mapping.yaml`: 13 of 24. Finding: `dct:source` and `dct:provenance` are not listed in DCAT 3 and stay `not checked`; DCAT-AP was not read. `tests/test_dcat_binding.py` now accepts `opened`.
- `bindings/c2pa/mapping.yaml` (0 of 12) and `bindings/hxl/mapping.yaml` (0 of 42): not touched.
