# OIP-0028: Trust bindings: RATS attestation, SCITT transparency and SUIT firmware manifests

| Field | Value |
|---|---|
| Status | DRAFT |
| Function | `join` (§5.1), `orchestrate` (§5.8), `prove` (§5.11) and `admit` (§5.2); no new function (the register keeps exactly twelve) |
| Uses | OIP-0002 (the `transparencyReceipt` member of the proof receipt) and OIP-0003 (the `suitManifest` reference of a firmware target) as drafts: the bindings name their members and do not change them; OIP-0008 (the signature envelope and the algorithm register) for the algorithm and key rules. The patches apply to the current tree on their own |
| Affects | new bindings `bindings/rats/`, `bindings/scitt/`, `bindings/suit/`; `registers/relations.yaml` (new rows `EXT-EAT`, `EXT-SCITT-RECEIPTS`, `EXT-SUIT`); `registers/implements-edges.json` and `registers/requirements.yaml` regenerated; new cases CT-NODE-150 and CT-NODE-151, CT-SITE-150 to CT-SITE-152, CT-PROVIDER-150 and CT-PROVIDER-151 (automated: the golden examples each case covers replayed, `obsp.golden`) with replay evidence in the OBSP-NODE, OBSP-SITE and OBSP-PROVIDER example sets and the invariant module `sdk/python/src/obsp/inv_oip0028.py`; `tools/gen_trust_binding_examples.py` and `tests/test_trust_bindings.py`; the demo-binding helper of `tests/test_validate.py` made independent of the shipped bindings. No schema and no specification text change |
| Protocol version | obsp/0.1 |
| Last call | 30 days (bindings of existing functions, no new object) unless the editors rule otherwise |

## Problem

The specification names three external trust mechanisms and fixes none of them. §5.1 requires attestation evidence "RATS,
RFC 9334, passport model" rooted in a hardware root of trust, and the schemas `attestation-evidence` and
`attestation-result` exist, but nothing says how an Entity Attestation Token or a TPM 2.0 quote becomes that record,
which UEID may be carried, what a TEE report is, or how a trust vector yields a status and a decision. §5.8 says device
firmware SHOULD use IETF SUIT manifests, and draft OIP-0003 gives a firmware target a `suitManifest` reference, but not
what a node checks before it installs, which identifiers a manifest may carry, or how its sequence number and the plan
version stop a rollback together. The relations register lists SCITT, and the `supply-chain-receipt` schema has a
`transparency` member, and OIP-0002 a `transparencyReceipt`, but no statement format, no receipt check and no rule for
what a receipt does and does not prove. Without bindings two implementations can take different claims as identity,
affirm a debug-enabled device, install a replayed manifest, register an object instead of its digest, or show a
registration as proof that the object is right. The conformance runner also keeps a hash-chained log with Merkle
inclusion receipts, and nothing says it is not a SCITT service.

## Change

No specification text changes: §5.1, §5.8 and §5.11 already require the mechanisms; the binding requirements are the
normative content. Each binding follows `bindings/README.md` and the worked pattern of OIP-0007 and OIP-0019:
`PROFILE.md` (scope, standards, every requirement, mapping, examples, open questions), `binding.yaml`, `mapping.yaml`
(clauses and names `checked: opened` where the published text was read, else `checked: not checked`), positive and negative golden examples built by
`tools/gen_trust_binding_examples.py`, and a test (`tests/test_trust_bindings.py`) that derives each result and shows
that each negative example breaks exactly the requirement it names. Status `proposed`; no claim of conformance or
certification to any external standard.

| Binding | Standard | Function and profiles | Requirements | Examples (+/-) | Cases |
|---|---|---|---|---|---|
| `rats` | RFC 9334 roles; Entity Attestation Token, AR4SI (draft) and TPM 2.0 as inputs | join; OBSP-NODE, OBSP-SITE | BND-RATS-01 to -13 | 8 / 21 | CT-NODE-150, CT-SITE-150 |
| `scitt` | RFC 9943 (SCITT architecture) and RFC 9942 (COSE receipts), both read 2026-11-21 | prove, admit; OBSP-SITE, OBSP-PROVIDER | BND-SCITT-01 to -11 | 6 / 14 | CT-SITE-152, CT-PROVIDER-150, CT-PROVIDER-151 |
| `suit` | RFC 9019 and RFC 9124; the manifest format is not targeted | orchestrate; OBSP-NODE, OBSP-SITE | BND-SUIT-01 to -09 | 4 / 12 | CT-NODE-151, CT-SITE-151 |

### `bindings/rats/`: RATS roles, EAT claims, TPM and TEE evidence, trust-vector results

- **Roles** (BND-RATS-01): the node is the Attester, the verifier of the site cell or grid the Verifier, the identity
  issuer of the join flow the Relying Party; Endorsers and reference-value providers are named by the appraisal policy.
  A node never appraises itself.
- **EAT to the evidence record** (BND-RATS-02 to -04): `eat_nonce` is the nonce, `ueid` the claim `device.ueid`,
  `hwmodel` the claim `device.hwmodel` (the device class is resolved by policy, never taken from it), `swname` and
  `swversion` the software claims and the version of the matching measurement, `measurements` the measurement rows,
  `secboot` `secure_boot.enabled`, `dbgstat` `debug.status`, `iat` `collectedAt`. **The UEID is a non-personal device
  id**: only the random type is carried; the IMEI and IEEE EUI types name equipment that can follow a person and are
  refused; it is never the node UNI and never in a public record.
- **TPM 2.0 quote** (BND-RATS-05): `TPM2_QUOTE` with the quote digest, PCR bank and selection, attestation key digest and
  the PCR values as named measurements; the qualifying data is the nonce.
- **TEE report** (BND-RATS-06): carried with the root class its certificate chain supports (a layered chain is `DICE`);
  with no chain it is `SOFTWARE_ROOT` with reason `HARDWARE_ROOT_UNAVAILABLE`, never `TPM2` or `SECURE_ELEMENT`. This
  understates a platform and never overstates it, until a TEE class exists (open question 3).
- **Result as an AR4SI-style trust vector** (BND-RATS-07 to -12): the eight components of `trustVector` are the draft's
  trustworthiness-vector components by name and the four tiers are `AFFIRMING`, `WARNING`, `CONTRAINDICATED` and `NONE`;
  the status is the worst tier present; debug enabled never gives an affirming configuration; a measurement outside the
  reference values never gives an affirming executables component; a software root is never affirmed as hardware;
  identity issuance follows the status and the policy; the result carries the nonce, the evidence digest and an expiry
  within the policy lifetime; a relying party in the passport model accepts only a verifier in its anchors.
- **Examples**: a TPM 2.0 quote and a TEE report (a layered chain, no chain, debug enabled), each with its result. All
  values are synthetic and the files say so.

### `bindings/scitt/`: signed statements and receipts for five kinds of object

- **Statement** (BND-SCITT-01 to -03, -07): a COSE_Sign1 whose payload is the SHA-256 digest of the RFC 8785 bytes of the
  object (the COSE hash-envelope form, an IETF draft) and whose protected header names the content type of those bytes
  (`application/json`), the hash algorithm, the key id and the issuer and subject claims. The subject is
  `obsp/<kind>/<uni>@<version>` with kind `release`, `plan`, `proof`, `correction` or `ard-claim`. The object and any
  value taken from it never appear in the statement.
- **Receipt** (BND-SCITT-04, -05, -08): a COSE receipt, a signed Merkle tree root with an inclusion proof. A verifier
  checks it offline from the statement bytes, the receipt bytes and keys it already holds: statement signature, leaf,
  root from the inclusion path (RFC 9162 section 2.1.3.2), service signature over the root, service in the anchors,
  payload equal to the digest of the object. No step reads the network.
- **Into the records** (BND-SCITT-06): `transparencyReceipt` of draft OIP-0002 (`architecture` `SCITT`,
  `statement.payloadDigest`, `receipt.format` `COSE_RECEIPT`, `receipt.digest`, `serviceUni`, `registeredAt`) and the
  `transparency` member of `supply-chain-receipt` (`service` `SCITT`, `transparencyServiceUni`, `entryId`,
  `receiptDigest`, `registeredAt`); the receipt stays outside the signed object.
- **A receipt proves registration only** (BND-SCITT-09): the presented state is `REGISTERED`, never correct, current,
  approved or certified.
- **The conformance runner log is not SCITT** (BND-SCITT-10): `services/conformance-runner` keeps a hash chain with an
  RFC 9162 Merkle tree and inclusion receipts, with no signed tree head, witness, consistency proof, COSE receipt or
  statement format; its receipts are carried as evidence references of kind `reference-log-receipt`, never as a SCITT
  receipt.
- **Examples**: real COSE_Sign1 bytes for a release, a plan, a proof, a correction and an ARD claim (a stand-in object,
  OIP-0020 being a draft), made with Ed25519 test keys derived from public labels, with trust anchors of public parts
  only; the check decodes them, recomputes the root and verifies both signatures.

### `bindings/suit/`: firmware manifests behind firmware plans

- **Reference** (BND-SUIT-01): a firmware target names its manifest by the SHA-256 digest of the manifest bytes as
  conveyed, the sequence number and a location; the protocol does not parse the manifest.
- **Checks before install** (BND-SUIT-02 to -05, -07): the manifest's authentication verifies against a firmware
  authority key from the node's anchors, and the plan signatures verify too (neither replaces the other); the image
  digest equals the plan target digest and the fetched bytes; the vendor id and class id are the node's own and are
  **class-level UUIDs that never name one device** (no serial number, radio address or subscriber number); the sequence
  number is greater than the highest the node holds.
- **Plan version and sequence number** (BND-SUIT-06): a plan of a higher version never references a lower sequence
  number, nor an equal one for a different image; **a rollback is a new plan and a new manifest at a higher sequence
  number carrying the older image**, so a replayed old manifest cannot downgrade a device.
- **Report** (BND-SUIT-08, SHOULD): the applied manifest digest and sequence number go in the observed-state receipt
  under the extension `suit.manifest`.
- **Examples**: first install, update, rollback as a new manifest, and a re-issued plan that gives SKIP.

### Cases

All cases are automated (kind `invariant`, level `SELF_TESTED`): the participant supplies, for each case, the digest of the
output it produced for every golden example the case covers (`binding-<id>-<label>` evidence, `conformance/BINDING-EVIDENCE.md`), and
the suite checks that every positive output equals the golden output and that no negative example's claimed output is produced
(`obsp.golden.replay`). `tests/test_trust_bindings.py` is the repository's own check of the examples.

| Case | Function | Profile | Covers |
|---|---|---|---|
| CT-NODE-150 | join | OBSP-NODE | BND-RATS-01 to -06, -13: the node's evidence |
| CT-NODE-151 | orchestrate | OBSP-NODE | BND-SUIT-02 to -05, -07 to -09: the node's install decision |
| CT-SITE-150 | join | OBSP-SITE | BND-RATS-01, -02, -06 to -13: the verifier's appraisal and the relying party |
| CT-SITE-151 | orchestrate | OBSP-SITE | BND-SUIT-01, -03, -04, -06, -09: the issuer's plan |
| CT-SITE-152 | prove | OBSP-SITE | BND-SCITT-01 to -06, -08, -09, -11: plans, proofs and corrections |
| CT-PROVIDER-150 | admit | OBSP-PROVIDER | BND-SCITT-01 to -05, -07 to -09, -11: releases and ARD claims |
| CT-PROVIDER-151 | admit | OBSP-PROVIDER | BND-SCITT-06, -10, -11: recorded receipts and the reference log |

## Compatibility

Additive: no schema, no specification text and no existing record changes, and no participant is asked to do anything
until it names a binding. One non-normative edit: the demo-binding helper of `tests/test_validate.py` removes the
shipped bindings from its copy (the same hunk as OIP-0007, OIP-0009 and OIP-0019: whichever is accepted first keeps it). The
example sets of OBSP-NODE, OBSP-SITE and OBSP-PROVIDER gain replay evidence documents (and the OBSP-NODE negative set the two
of its profile), so no case waits for an attestation and the uploaded runs of the conformance runner stay PASS.

## Tests

- `tests/test_trust_bindings.py`: every positive example breaks no requirement and matches the derivation (the evidence
  record from the EAT or the quote, the status from the vector, the install decision from the manifest and the node's
  state, the statement and receipt from the bytes); each of the 47 negative examples breaks exactly one named
  requirement; every requirement that a golden can show has a negative example; the positive records validate against
  the schemas; the examples match their generator; the Merkle check agrees with the runner's reference log.
- The negative examples, by binding: `rats` (nonce not the issued one, EAT nonce claim differs, TPM qualifying data not
  the nonce, debug status dropped, device class not from the model, UEID of the IMEI type, PCR selection differs, TEE
  report as DICE without a chain or as TPM 2.0, self-appraised result, result bound to another nonce, lifetime over
  policy, expired result accepted, debug enabled and affirming, status better than the vector, vector differs from the
  appraisal, software root affirmed as hardware, contraindicated or warning permitting identity, unlisted measurement
  affirming, untrusted verifier accepted); `scitt` (payload is the object, content type missing, unknown kind, bad
  statement signature, network call, altered inclusion path, receipt for another statement, bad receipt signature,
  digest mismatches in the records, object in a header, service not an anchor, registration shown as correctness,
  reference log receipt claimed as SCITT); `suit` (class id mismatch installed, class id naming one device, install at or
  below the held sequence number, image differs from the manifest or the plan, no manifest authentication, no plan
  signature, manifest digest differs, no manifest reference, plan version up and sequence number down, install not in the
  report).

## Open questions

1. External facts still `checked: not checked`: the status of the AR4SI and CMW drafts; the COSE hash envelope draft and its
   header labels 258 and 259; the TPM 2.0 quote structure; the SUIT manifest format specification; the AR4SI component
   names. Read on 2026-11-21: RFC 9334, RFC 9711 (EAT), RFC 9943 and 9942 (June 2026), RFC 9052, RFC 9162, RFC 9597,
   RFC 8785. Correction found: `secboot` is not an EAT claim in RFC 9711 (nearest is `oemboot`, section 4.2.8); the
   `rats` mapping row for it needs a decision from the editors.
2. SCITT leaf rule: the vectors define a leaf as SHA-256 of 0x00 and the statement bytes; a service defines its own.
   Should the protocol name one rule for its own receipts, or publish vectors per service? The examples verify the COSE
   signatures for Ed25519 only.
3. A TEE root class: should the root-class register gain `TEE` with its own evidence members, instead of DICE or
   `SOFTWARE_ROOT`? Until then BND-RATS-06 understates the platform.
4. UEID: is a random UEID acceptable under every privacy regime the protocol meets, or does it need a per-site
   derivation so two sites cannot link a device (it would change BND-RATS-04)?
5. `suitManifest` of OIP-0003 holds digest, sequence number and location; should it also hold the vendor id and class id?
6. Receipts: should a verifier require two receipts across trust domains (OIP-0002 PRV-10 says SHOULD), and for how long
   is one relied on?
7. The relations register has `EXT-RFC9334` and `EXT-SCITT` already; the new rows `EXT-EAT` and `EXT-SCITT-RECEIPTS` carry
   the binding folders so that each folder is named by one row. The editors may merge them. OIP-0003's proposal text also
   plans an `EXT-SUIT` row; whichever is accepted second merges its schemas into the existing row.
8. The signature member of `attestation-result` is a summary today; OIP-0008 replaces it with the COSE envelope. The
   RATS examples keep the summary so that they validate on the current schemas, and will need re-signing after OIP-0008.
