# OIP-0028 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 on their own; no schema and no specification text changes.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0028.md`](OIP-0028.md) | the proposal |
| `patches/binding-rats.patch` | `bindings/rats/` (profile, manifest, `mapping.yaml`, eight positive and 21 negative examples) |
| `patches/binding-scitt.patch` | `bindings/scitt/` (profile, manifest, `mapping.yaml`, six positive and 14 negative examples, with real COSE_Sign1 statements and receipts made with test keys) |
| `patches/binding-suit.patch` | `bindings/suit/` (profile, manifest, `mapping.yaml`, four positive and 12 negative examples) |
| `patches/tests-tools.patch` | `tools/gen_trust_binding_examples.py` (generates and checks the examples), `tests/test_trust_bindings.py` (the checks of the three bindings), the demo-binding helper of `tests/test_validate.py` made independent of the shipped bindings |
| `patches/registers.patch` | `relations.yaml`: new rows `EXT-EAT`, `EXT-SCITT-RECEIPTS`, `EXT-SUIT` after `EXT-PTP`; `implements-edges.json` regenerated (44 edges); `requirements.yaml` regenerated (the section 5.1, 5.2, 5.8 and 5.11 requirements gain the new cases) |
| `patches/cases.patch` | cases CT-NODE-150, CT-NODE-151, CT-SITE-150 to CT-SITE-152, CT-PROVIDER-150, CT-PROVIDER-151 changed from manual to automated (kind `invariant`): `sdk/python/src/obsp/inv_oip0028.py` registers one `binding-replay-<id>-<label>` per case (`obsp.golden.replay` over the golden examples the case covers: the implementer supplies the digest of the output it produced for each; positive outputs must equal the golden output, a negative example's claimed output must not be produced), hooked in `conformance.py`; replay evidence in the OBSP-NODE, OBSP-SITE and OBSP-PROVIDER sets (and the OBSP-NODE negative set); `sdk/python/tests/test_inv_oip0028.py`. No attestations remain |

Apply all six patches together (in any order): the registers name the binding folders, the bindings name the cases, and
the checks need the generator. Acceptance removes `patches/`.

Overlaps with other drafts (each proposal applies on its own; whichever is accepted second resolves these):
`registers.patch` regenerates `implements-edges.json` and `requirements.yaml` as most drafts do, so regenerate with
`python3 tools/build_edges.py` and `python3 tools/requirements.py`, and inserts its rows after `EXT-PTP`, where
OIP-0009 uses neighbouring lines as context. `cases.patch` adds replay evidence files (no attestations are touched, so it no longer
shares `attestations.yaml` with OIP-0007, OIP-0019, OIP-0003, OIP-0008 and OIP-0002) and hooks its invariant module in
`conformance.py` beside the other drafts' hooks. The `tests/test_validate.py` hunk is the same text as OIP-0007's, OIP-0009's and
OIP-0019's; the second one drops it. The example documents of the `rats` binding are keyed to the schemas of the
current tree (`signature` summary, no envelope) and need re-signing once OIP-0008 is accepted.

With all six applied and the other drafts' `patches/` folders removed (the state of an integrated tree), `make check`
exits 0. With the other drafts' patch folders in place, the draft-patch check fails on the files named above until the
editors rebase them.

## What stays manual

Nothing: all seven cases are automated. The replay checks each implementation on the golden inputs only, which are the
examples of the three bindings; a clause that a document cannot show (a verifier that makes no network call while it checks
a receipt, BND-SCITT-04; a node that holds the highest sequence number across restarts, BND-SUIT-05) is checked on the golden
examples that show it and not otherwise.

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

## Verification

Checked against the public texts on 2026-11-21 so that rows say `checked: opened` only where the term and clause were read. Rows not listed stay `checked: not checked`.

- Sources read: RFC 9334, 9711 (EAT), 9943, 9942, 9052, 9162, 9597, 8785, 9019, 9124 (rfc-editor.org).
- `bindings/scitt/mapping.yaml`: 7 of 11 `opened`: RFC 9943 and 9942 (June 2026, titles confirmed), 9052, 9162, 8785, the CWT claims header (label 15, RFC 9597), label 395 (vds) and value 1 (RFC9162_SHA256). Labels 258 and 259 (IETF draft) not opened. `OIP-0028.md` no longer calls RFC 9943 "signed statements": it is the architecture.
- `bindings/rats/mapping.yaml`: 2 of 6 `opened` (RFC 9334; EAT is RFC 9711, April 2025). AR4SI, CMW and TPM 2.0 not opened. Finding: `secboot` is not an EAT claim in RFC 9711 (nearest is `oemboot`, 4.2.8); the row is unchanged because the examples and test use the name, and needs an editor decision.
- `bindings/suit/mapping.yaml`: 2 of 4 `opened` (RFC 9019, April 2021; RFC 9124, January 2022; both Informational). The manifest format specification not opened.
