# OIP-0012 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; they do not need OIP-0006's patches, although the proposal requires OIP-0006 to be
accepted first.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0012.md`](OIP-0012.md) | the proposal |
| `patches/spec.patch` | §4.2 row ModelRun, §7.1 row `OBSP-MODEL-OBSERVER`, new §7.3 with MOD-1 to MOD-8 and the labelling note; `registers/requirements.yaml` regenerated (78 requirements) |
| `patches/registers.patch` | profile `OBSP-MODEL-OBSERVER` (describe, observe, qualify, prove); `qualify` and `prove` objects gain `model-run`; external relation `EXT-CYCLONEDX`; `implements-edges.json` regenerated (42 edges); `conformance/suite.yaml` and the Makefile `PROFILES` list the profile |
| `patches/schemas-fixtures.patch` | new schema `model-run`; the profile id added to the `conformance-claim`, `conformance-report` and `participant-manifest` enumerations; 5 positive and 24 negative fixtures; the example set `conformance/examples/OBSP-MODEL-OBSERVER/` |
| `patches/cases-invariants.patch` | cases CT-MODEL-001 to CT-MODEL-006; six invariants in `sdk/python/src/obsp/model_runs.py`, merged into the suite's table by `conformance.py`; 22 unit tests in `sdk/python/tests/test_model_run.py` |

Apply all four patches, in the order of the table, before running `make check`. Acceptance removes `patches/`.
With these patches applied, every patch of OIP-0001, OIP-0005, OIP-0006, OIP-0007 and OIP-0008 still applies except
the `"count"` line of `registers/implements-edges.json` (OIP-0005, OIP-0006 and OIP-0008 `registers.patch`); that file
is generated, so the proposal accepted second regenerates it, as it does `registers/requirements.yaml`. OIP-0013 adds
another profile at the same lines (profile register, suite, Makefile, enumerations, §7.1, §7.3/§7.4), so whichever of
the two is accepted second is rebased on the first.

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