# OIP-0024 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-0006 for its two
sensing-API bindings; the patches are made against the current tree and apply to it on their own (acceptance order in the
proposal).

| File | What it changes on acceptance |
|---|---|
| [`OIP-0024.md`](OIP-0024.md) | the proposal |
| `patches/spec.patch` | §6: one paragraph after the wire-bindings table naming the four bindings (no key word, so no requirement id changes) |
| `patches/bindings-common.patch` | `tests/binding_sources.py` (the schema registry and the OIP-0006 source documents the sensing bindings share), the demo-binding helper of `tests/test_validate.py` made independent of the shipped bindings, and `tests/test_runner_service.py` given the attestations of its example set |
| `patches/bindings-cloudevents.patch` | `bindings/cloudevents/` (profile, manifest, `mapping.yaml`, `cloudevent.schema.json`, four data schemas, five positive and twelve negative examples), `tests/test_cloudevents_binding.py` |
| `patches/bindings-grpc.patch` | `schemas/proto/obsp/v1/services.proto`, `bindings/grpc/` (profile, manifest, `mapping.yaml` with the service and status-code tables, five positive and nine negative examples), `tests/test_grpc_binding.py` |
| `patches/bindings-sensorthings.patch` | `bindings/sensorthings/` (profile, manifest, `mapping.yaml`, `sta-profile.schema.json`, five positive and eleven negative examples), `tests/test_sensorthings_binding.py` |
| `patches/bindings-connected-systems.patch` | `bindings/connected-systems/` (profile, manifest, `mapping.yaml` with the class table, `cs-profile.schema.json`, eight positive and twelve negative examples), `tests/test_connected_systems_binding.py` |
| `patches/registers.patch` | `relations.yaml`: `EXT-STA` gains `schemas` and `artefacts`; new rows `EXT-OGCCS` after it, `EXT-GRPC` and `EXT-CLOUDEVENTS` after `EXT-PROTOBUF`; `implements-edges.json` regenerated (44 edges); `requirements.yaml` regenerated |
| `patches/cases.patch` | cases CT-NODE-110, CT-NODE-111, CT-GRID-110 to CT-GRID-113, CT-CONSUMER-110 and CT-CONSUMER-111. CT-NODE-110 and CT-GRID-110 (CloudEvents) are automated (kind `invariant`): `sdk/python/src/obsp/inv_oip0024.py` registers `binding-cloudevents-node` and `binding-cloudevents-grid` (`obsp.golden.schema_docs`: each event validates against `cloudevent.schema.json` and is compared with the record it carries, attribute by attribute; the grid case needs one event of every type), hooked in `conformance.py`, with the events as evidence in the OBSP-NODE (and its negative) and OBSP-GRID sets and `sdk/python/tests/test_inv_oip0024.py` (every negative example reports its requirement). The other six stay manual, attested in the OBSP-NODE, OBSP-GRID and OBSP-CONSUMER sets |

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

Overlaps with other drafts (each proposal applies on its own; whichever is accepted second resolves these):
`registers.patch` regenerates `implements-edges.json` (the `count` line) and `requirements.yaml` as other drafts do
(append the rows, then `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`, which OIP-0001 and OIP-0009 also create, and
appends to the OBSP-NODE and OBSP-CONSUMER attestation files; the `EXT-STA` row is also read by OIP-0006's register edit
of the line above it.

## What stays manual

- CT-NODE-111 and CT-GRID-111 (gRPC): a running service: the TLS 1.3 mutual-authentication channel and the refusal of plaintext, a request
  without a RequestContext rejected, `Challenge`/`Verify` expiry, health checking.
- CT-GRID-112 and CT-GRID-113 (SensorThings, Connected Systems): a running service whose create, update and delete requests are refused;
  their documents are checked by `tests/test_sensorthings_binding.py` and `tests/test_connected_systems_binding.py` only.
- CT-CONSUMER-110 and CT-CONSUMER-111: the behaviour of an application (a duplicate is absorbed, a missing value is not shown as zero).
- Inside the two automated cases, not checked by the suite: that the request context attributes equal the RequestContext the event was
  published under, that a relayed event keeps the original source and id, and the HTTP structured content mode.

## On acceptance after the drafts it builds on

`Prove` follows the live `proof-receipt`. Once OIP-0002 is accepted, `ChallengeResponse` gains `Document
proof_challenge = 5` (the signed `proof-challenge`; nonce and times repeat its members) and `VerifyResponse` gains
`Document verification_report = 4`; BND-GRPC-08 then reads: the result is EXPIRED for a challenge past its expiry and
otherwise the verdict of the verification report returned with it. The examples gain `verify.valid.json` and the negative
`verify-result-not-the-report-verdict.json`, and the transcripts use the OIP-0002 fixtures. The 0.5 integration series
does this at step 25.

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: CloudEvents 1.0.2 core spec and JSON event format (github cloudevents/spec); OGC SensorThings 1.1 (18-088) for clause numbers and entities; OGC API Connected Systems Part 1 (23-001) and Part 2 (23-002) tables of contents.
- `bindings/cloudevents/mapping.yaml`: 11 of 11 rows `opened`. The HTTP protocol binding was not read.
- `bindings/sensorthings/mapping.yaml`: 4 of 18 rows `opened` (the Observation `parameters` rows); clause numbers 8.2.1 to 8.2.8 and 12 added to every row. Member names inside the entity tables were not readable and stay `not checked`.
- `bindings/connected-systems/mapping.yaml`: 0 of 20 rows opened; clause numbers added (Part 1 clauses 9, 11, 14, 15; Part 2 clauses 9.2 and 9.7). Member names unread.
- `bindings/grpc/mapping.yaml`: not touched (0 of 9).
