# OIP-0006 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 each applies on its own.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0006.md`](OIP-0006.md) | the proposal |
| `patches/spec.patch` | header and §10 (`observation-record` at `4.0.0`), §4.2 row Observer, Deployment, FeatureOfInterest, §5.5 sub-list "Observation records" (OBS-1 to OBS-7), §5.6 sub-list "Uncertainty and flag schemes" (QUAL-1, QUAL-2) with the flag-scheme mapping table |
| `patches/registers.patch` | `describe` and `observe` objects gain `observer`, `deployment`, `feature-of-interest`; `EXT-SOSA` revised (functions, schemas, artefact `crosswalks/sosa-ssn.yaml`); new external rows `EXT-OMS`, `EXT-UCUM`, `EXT-GUM`, `EXT-QCFLAGS`, `EXT-OGCCRS`; `implements-edges.json` regenerated (46 edges) |
| `patches/schemas-fixtures.patch` | `observation-record` 4.0.0; new schemas `observer`, `deployment`, `feature-of-interest`; `quality-flag` named scheme; 14 positive and 44 negative fixtures (four existing ones migrated); the OBSP-NODE, OBSP-SITE, OBSP-GRID and negative OBSP-NODE example sets migrated and extended |
| `patches/cases-invariants.patch` | cases CT-NODE-010 to CT-NODE-016; seven invariants and the flag-scheme table in the SDK, with unit tests; one assertion of `tests/test_validate.py` made independent of the number of shipped crosswalks |
| `patches/crosswalks.patch` | `crosswalks/oms.yaml`, `crosswalks/sosa-ssn.yaml`, their round-trip examples, and the round-trip method in `crosswalks/README.md` |
| `patches/register-properties.patch` | the observed-property register `registers/observed-properties.yaml`, written separately by its own author; the schemas here check only the id pattern `obsp:prop:<id>` and do not depend on it |

Apply the patches in the order of the table. Acceptance removes `patches/`. With these patches applied, every patch of
OIP-0001 and OIP-0005 still applies except the `"count"` line of `registers/implements-edges.json` in OIP-0005
`registers.patch`; that file is generated, so the proposal accepted second regenerates it (`python3 tools/build_edges.py`).

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