# OIP-0002 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 to it without any other draft. The proposal requires OIP-0008; the acceptance order and the
rebase steps are in the proposal (Compatibility).

| File | What it changes on acceptance |
|---|---|
| [`OIP-0002.md`](OIP-0002.md) | the proposal |
| `patches/spec.patch` | §3 Verifier row; §4.2 row ProofChallenge, VerificationReport; §5.11 rewritten (exchange, proof types, PRV-1 to PRV-11); §9 row G-PROVE-1 removed |
| `patches/registers.patch` | `registers/functions.yaml` (`prove`: objects `proof-challenge`, `proof-receipt`, `verification-report`, `time-quality`; maturity `CONTRACTED`; gap G-PROVE-1 removed); `registers/requirements.yaml` regenerated (PRV-1 to PRV-11); `tests/test_validate.py` gap test moved to G-FED-1 |
| `patches/schemas-fixtures.patch` | `proof-receipt` revision 2; new schemas `proof-challenge` and `verification-report`; 10 positive and 31 negative fixtures (`proof-receipt.missing-evidence` rewritten, `proof-receipt.valid` replaced); OBSP-SITE and OBSP-GRID example sets: `proof-receipt.example.json` replaced by four challenge, receipt and report exchanges |
| `patches/cases-invariants.patch` | cases CT-SITE-020 to CT-SITE-028 and CT-GRID-020; eight invariants in the new module `sdk/python/src/obsp/prove.py`, registered in `conformance.py`; 12 unit tests in `sdk/python/tests/test_prove.py`; attestations for the two manual cases (new `attestations.yaml` in OBSP-SITE and OBSP-GRID) |

Apply all four patches together (the regenerated requirements index names the new cases). Acceptance removes `patches/`.

Overlaps with other drafts, resolved by rebasing whichever proposal is accepted second: §4.2 rows (OIP-0005,
OIP-0008), §9 rows (OIP-0001), `conformance/examples/OBSP-GRID/attestations.yaml` (OIP-0001, OIP-0008: merge the
entries), `conformance/examples/OBSP-SITE/attestations.yaml` (OIP-0008: merge the entries) and
`registers/requirements.yaml` (regenerate with `python3 tools/requirements.py`).

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