# OIP-0030 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, in the order of the table.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0030.md`](OIP-0030.md) | the proposal |
| `patches/schemas-fixtures.patch` | new `schemas/json/admission-record.schema.json` and `admission-batch.schema.json`; 13 positive and 38 negative fixtures; the OBSP-GRID example set gains two observation records, a source release, three admission records and two admission batches |
| `patches/spec.patch` | §4.2 (one row); new §5.10.1 "Admission to a risk index" (ADM-1 to ADM-10); `docs/ecosystem/risk-index.md` (the "It is offered" row and the boundary rule on classes) |
| `patches/cases-invariants.patch` | cases CT-GRID-300 to CT-GRID-304; reference functions `sdk/python/src/obsp/admission.py`; invariants `sdk/python/src/obsp/admission_invariants.py`, hooked in `conformance.py`; `sdk/python/tests/test_admission.py`; `registers/requirements.yaml` regenerated |
| `patches/crosswalk.patch` | new `crosswalks/risk-index-intake.yaml` (53 rows, requirements XW-RIX-01 to XW-RIX-04) and `crosswalks/examples/risk-index-intake/`; relation row `EXT-RISK-INDEX-INTAKE` in `registers/relations.yaml` (under `relations`, so `implements-edges.json` is unchanged); one assertion of `tests/test_validate.py` made independent of the number of shipped crosswalks (the same edit as OIP-0006, OIP-0013 and OIP-0029) |

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

With these patches applied, other drafts whose patches regenerate `registers/requirements.yaml`, edit §5.10 or the same
test line no longer apply as they stand, 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.

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

## Verification

The crosswalk rows that say `checked: opened` were checked on 2026-11-21 against the intake event schemas of the index
intake profile (event catalogue v1: the envelope, `source.landed`, `observation.committed`, `observation.corrected`).
The `none` rows say `not checked` as the crosswalk schema's convention has it. The class vocabulary of the mapping table
was read from the index's own description of its four-way class (observed, declared, modelled, derived; derived means
computed by the index; mapping never upgrades).
