# OIP-0003 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; OIP-0008 (signature envelope) is accepted first (see the
proposal, "Dependency and acceptance order").

| File | What it changes on acceptance |
|---|---|
| [`OIP-0003.md`](OIP-0003.md) | the proposal |
| `patches/spec.patch` | §5.8: signed-plan model paragraph and requirements ORCH-1 to ORCH-9 (`OBS-PLAN-0001` to `OBS-PLAN-0007`); §9: row G-ORCH-1 removed |
| `patches/registers.patch` | `registers/functions.yaml`: `orchestrate` becomes CONTRACTED, gap G-ORCH-1 removed |
| `patches/schemas-fixtures.patch` | `plan` revision 2 (version, deploymentUni, kind, issuedAt, expires, targets, updateMetadata with root, snapshot and timestamp role metadata, signatures; SUIT manifest references; tasking refused); `planBasis` in `observed-state-receipt` and `reconciliation-receipt`; one new and four revised positive fixtures, twenty new and six revised negative fixtures; the plan and receipt documents of the four example sets (version 1, version 2, a firmware plan, and the receipts of both versions) |
| `patches/cases-invariants.patch` | `sdk/python/src/obsp/plans.py` (node decision and plan checks), `plan_invariants.py` (seven invariants) and their registration in `conformance.py`; 28 unit tests in `sdk/python/tests/test_plans.py`; vectors `conformance/vectors/plans/` (test keys and thirteen vectors); `tools/gen_plan_vectors.py`; cases CT-NODE-030 to CT-NODE-036, CT-SITE-030, CT-SITE-031, CT-GRID-030 and the attestation of the manual case; `registers/requirements.yaml` regenerated (ORCH-1 to ORCH-9 covered directly) |

Apply the patches in the order of the table. Acceptance removes `patches/` and adds the relation rows `EXT-TUF` and
`EXT-SUIT` (left out here so that the drafts that regenerate `registers/implements-edges.json` still apply).

With these patches applied, every patch of OIP-0005, OIP-0006, OIP-0007 and OIP-0008 still applies. OIP-0001
`spec.patch` does not: it removes the §9 row next to G-ORCH-1, so whichever of the two is accepted second is rebased.

Check that every patch still applies to the current tree: `python3 -m unittest tests.test_validate -k draft_patches`.
Regenerate the generated documents (needs the optional `cryptography` package) with `python3 tools/gen_plan_vectors.py`.
