# OIP-0029 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 patches are made against the current
tree and apply on their own.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0029.md`](OIP-0029.md) | the proposal |
| `patches/crosswalks.patch` | `crosswalks/cf-conventions.yaml`, `wigos-metadata.yaml`, `senml.yaml`, `iso19115.yaml`, `odrl.yaml`, `ucum.yaml` and their examples; `crosswalks/README.md` (layout rows); `tests/test_crosswalk_examples.py` (the round-trip check); one assertion of `tests/test_validate.py` made independent of the number of shipped crosswalks (the same edit as OIP-0006 and OIP-0013) |
| `patches/cases.patch` | cases CT-PROVIDER-160 to CT-PROVIDER-164 and CT-CONSUMER-160 to CT-CONSUMER-163 changed from manual to automated (kind `invariant`): `sdk/python/src/obsp/inv_oip0029.py` registers one `crosswalk-<id>-<label>` invariant per case (`obsp.golden.crosswalk_roundtrip`: the implementer supplies the text of its mapping and its source documents; the suite validates the sources, checks that every exact two-way row survives, and applies the crosswalk's rules on the text: no conformance result, no constraint from rightsState, no permission from rightsState, policy digest as annotation, one of v, vs and vb, no invented station identifier or siting class, units carried unchanged), hooked in `conformance.py`; the crosswalks' own example mappings as evidence in the OBSP-PROVIDER and OBSP-CONSUMER sets; `sdk/python/tests/test_inv_oip0029.py`. No attestations and no change to the conformance-runner service test |
| `patches/registers.patch` | relations `EXT-CFCONV`, `EXT-WMDS`, `EXT-SENML`, `EXT-ISO19115`, `EXT-ODRL`, `EXT-UCUM`, each naming its crosswalk in `artefacts`; `registers/implements-edges.json` regenerated (47 edges); `registers/requirements.yaml` regenerated |

Apply the patches in the order of the table, then run `make check`. Acceptance removes `patches/`.

With these patches applied, the draft patches listed in the rebase table of `OIP-0029.md` no longer apply as they stand
(they touch the generated registers and one test line this proposal also edits), so
`tests.test_validate -k draft_patches` and the integration series test fail in a tree that holds both until those
drafts are rebased. In a tree without draft patches (`rm -rf oips/drafts/*/patches`, as in `make integration`) `make
check` exits 0.

## What stays manual

Nothing of the nine cases is left to attestation, but some clauses are not checked by the suite because a function cannot decide
them on the mapped text; each case's `procedure` names them: the UDUNITS form and the fill value with its status variable (XW-CF-01,
XW-CF-02), the CF standard name table, which the suite does not hold (XW-CF-03), featureType (XW-CF-04), the SenML units registry and
base fields (XW-SENML-03, 04), the lineage of evidence references (XW-ISO19115-04), the commercial purpose profile (XW-ODRL-02,
second sentence), that an output is not called a complete WIGOS record (XW-WMDS-04), and silent unit conversion and unparsable
codes (XW-UCUM-02, 03). Where an implementer needs them witnessed, the editors can add manual cases for them.

## On acceptance after the drafts it builds on

The relation row `EXT-CFCONV` and OIP-0013's `EXT-CF` name the same standard. When both are accepted they become one
row, `EXT-CF` (OIP-0013's place), with the functions, schemas and artefacts of both, and `crosswalks/cf-conventions.yaml`
names `relation: EXT-CF`. The 0.5 integration series does this at step 30.

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: CF Conventions 1.11 (table of contents, chapters 2 to 4, 9); UCUM 2.2 (ucum.org/ucum); RFC 8428 (SenML); W3C ODRL Information Model 2.2 and ODRL Vocabulary 2.2.
- `crosswalks/cf-conventions.yaml`: 27 of 61 rows `opened` (the rest are `none` rows, plus `/result`). Correction: "9.5 Time series data" does not exist; 9.5 is Coordinates and metadata (cf_role), featureType is 9.1 and 9.4.
- `crosswalks/senml.yaml`: 11 of 14 (all term rows; clause numbers 4.1 and 4.2 confirmed). `crosswalks/odrl.yaml`: 9 of 29. Corrections: the Information Model has Policy 2.1, Asset 2.2, Party 2.3, Action 2.4, Constraint 2.5, Rule 2.6 (the rows had 2.2, 2.3, 2.5, 2.4, 2.7); `purpose` and `spatial` are in the Vocabulary (4.5.19, 4.5.26), not the Model. `rdfs:comment` is not an ODRL Model term; that row stays `not checked`.
- `crosswalks/ucum.yaml`: 7 of 49 rows (the rest `none` rows); edition corrected from 2.1 to 2.2.
- `crosswalks/iso19115.yaml` (0 of 24) and `crosswalks/wigos-metadata.yaml` (0 of 60): not opened (paywalled or unread).
