# OIP-0023 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.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0023.md`](OIP-0023.md) | the proposal |
| `patches/spec.patch` | §7.2: the level chain gains `PEER_TESTED`; three requirements (REQ-7.2-1 to REQ-7.2-3); `docs/guides/conformance.md` level row; `docs/glossary.md` |
| `patches/registers.patch` | `registers/conformance-profiles.yaml` level `PEER_TESTED`; `registers/requirements.yaml` regenerated (73 requirements) |
| `patches/schemas-fixtures.patch` | new schema `plugfest-result`; `conformance-claim` level enum, `plugfestResultDigest` and its rule; 2 positive and 7 negative fixtures; a plugfest record and a `PEER_TESTED` claim in the OBSP-PROVIDER example set |
| `patches/cases-invariants.patch` | `sdk/python/src/obsp/peer.py` (run levels, two invariants), merged into `conformance.py` after the `Case` class; `obsp conformance run --level`; level check in `check-suite`; 13 unit tests in `sdk/python/tests/test_peer_level.py`; cases CT-PROVIDER-100, CT-PROVIDER-101; `conformance/README.md` (the `level` field) |

Apply the patches in the order of the table. Acceptance removes `patches/`, retires the draft schema copy in
`conformance/plugfest/` and points `conformance/plugfest/matrix.py` at `schemas/json/plugfest-result.schema.json`.

With these patches applied, every patch of the other drafts still applies except the hunks of OIP-0009 to OIP-0015 in `registers/requirements.yaml` (the case lists of the `admit` and `describe` requirements,
where CT-PROVIDER-100 and CT-PROVIDER-101 sort next to other drafts' cases, and the rows after §7.2); the same holds for
step 01 of the integration series. That file is generated, so the proposal accepted second regenerates it with
`python3 tools/requirements.py`. The specification change leaves the three lines that OIP-0010 to OIP-0013 use as context
for their §7.3 untouched, and `conformance.py` is changed only between lines no other draft touches.

## On acceptance after the drafts it builds on

Once OIP-0008's algorithm register is in the tree, `plugfest-result` joins object class `receipt` (it carries the
authority of a PEER_TESTED level) as `signatureMember: planned`: the result has no signature member yet, and a later
proposal adds one signed by the witnesses. The 0.5 integration series does this at step 24.

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