# OIP-0009 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-0001; the
patches are made against the current tree and apply to it on their own.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0009.md`](OIP-0009.md) | the proposal |
| `patches/spec.patch` | §6: new table "Exchange bindings" after the wire-bindings table, and its one requirement (the Exchange row OIP-0001 and OIP-0005 edit is not touched) |
| `patches/registers.patch` | `relations.yaml`: `EXT-STAC` gains `exchange`, `provenance` and `artefacts: [bindings/stac/]`; new rows `EXT-WIS2` and `EXT-OGCAPI` after it; `implements-edges.json` regenerated (43 edges); `requirements.yaml` regenerated (the §6 requirement and the new cases) |
| `patches/bindings-wis2.patch` | `bindings/wis2/` (profile, manifest, `wnm-obsp.schema.json`, `mapping.yaml`, three positive and five negative examples), `tests/test_wis2_binding.py`, and the demo-binding helper of `tests/test_validate.py` made independent of the shipped bindings |
| `patches/bindings-stac.patch` | `bindings/stac/` (profile, manifest, `obsp-extension.schema.json`, `mapping.yaml`, three positive and four negative examples), `tests/test_stac_binding.py` |
| `patches/bindings-ogcapi.patch` | `bindings/ogc-api/` (profile, manifest, `mapping.yaml`, four positive and four negative examples), `schemas/openapi/obsp-exchange.openapi.yaml`, `tests/test_ogcapi_binding.py` |
| `patches/cases.patch` | cases CT-GRID-040 to CT-GRID-043, CT-CONSUMER-040 and CT-CONSUMER-041; CT-GRID-040 (WIS 2.0) and CT-GRID-041 (STAC) are automated (kind `invariant`): `sdk/python/src/obsp/inv_oip0009.py` registers `binding-wis2-notification` and `binding-stac-description` (`obsp.golden.schema_docs`: the document validates against the binding's schema and is compared with the record it announces or the provenance it links), hooked in `conformance.py`, with their example evidence in the OBSP-GRID set and `sdk/python/tests/test_inv_oip0009.py` (every negative example of the two bindings reports its requirement); the other four stay manual, with their attestations in the OBSP-GRID and OBSP-CONSUMER example sets |

Apply all six patches together (in any order): the registers name the binding folders, and the bindings name the cases.
Acceptance removes `patches/`.

Overlaps with other drafts: `cases.patch` creates `conformance/examples/OBSP-GRID/attestations.yaml`, which OIP-0001's
`cases-invariants.patch` also creates, and `registers.patch` regenerates `implements-edges.json`, as other drafts do.
Whichever proposal is accepted second appends its attestation entries to the file and regenerates the edges
(`python3 tools/build_edges.py`) and the requirements index (`python3 tools/requirements.py`). The OBSP-CONSUMER
attestations are inserted before the existing entry, and the `tests/test_validate.py` and `relations.yaml` hunks touch no
line another draft edits or uses as context.

## What stays manual

- CT-GRID-042 and CT-GRID-043 (OGC API): a running endpoint decides them (only read operations answer, `/conformance` declares the
  classes, position, area and cube queries return the same features as the items path).
- CT-CONSUMER-040 and CT-CONSUMER-041: the behaviour of an application on screen (a withdrawn product is not shown as current, a
  missing value is not shown as zero).
- Inside the two automated cases, not checked by the suite: that a withdrawn or recalled record is announced only by its correction
  notice (BND-WIS2-11), that a successor link resolves, and that a STAC document's licence, quality and upstream term equal the
  manifest (the manifest is not part of the evidence).

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: STAC 1.1.0 Item Spec, Collection Spec and Common Metadata (github radiantearth/stac-spec v1.1.0); OGC API Features Part 1 (17-069r4), EDR (19-086r6), Records Part 1 (20-004r1) on docs.ogc.org; WIS2 Notification Message normative text (github wmo-im/wis2-notification-message, main).
- `bindings/stac/mapping.yaml`: 7 of 16 rows `opened` (Item id, properties and datetime, Collection id, title, license). Link Object (commons/links.md) and the extension mechanism not read. Correction: `successor-version` is not named in the STAC text (RFC 5829 relation); the section text now says so.
- `bindings/ogc-api/mapping.yaml`: 17 of 36 entries `opened` (editions, the four conformance class URIs, the six Features paths with clause numbers 7.2, 7.4, 7.13 to 7.16, the EDR queries 8.2.1, 8.2.3, 8.2.4). The protocol-field rows are not opened. Corrections: EDR area is 8.2.3 (8.2.2 is radius); the Records class is `record-core`.
- `bindings/wis2/mapping.yaml`: 9 of 16 rows `opened` (data_id, integrity with its preferred methods and base64 value, datetime, start and end datetime, geometry). Correction: `wigos_station_identifier` is an additional property (clause 1.18), not a core member. Not settled: the WMO-No. (the draft says 1061; a search result names 1060) and the edition in force; WNM `links` relations (`canonical` appears only in examples; no `license` or `deletion` relation is defined).
