nti-spec

RFC 0001 — Authorization Receipts

Summary

Define an authorization receipt as a normative NTI-1 object, and require that it be produced by the same operation that produces the authorization verdict.

Today the reference engine returns a verdict without any durable, signed record of it. A caller — or a log — can assert any verdict it likes after the fact, and no NTI verifier can tell the difference. That gap means the strongest available claim about an agent action is “this record exists”, not “this is the decision the engine made”.

The receipt format already exists and is already verified independently; see the next section. This RFC does not create a receipt. It makes one required property true: that the thing which gets signed is the engine’s verdict, produced by the same call, rather than a payload chosen by the caller.

Existing receipt machinery (extend this, do not reinvent it)

conformance/vate-recovery/ already implements most of a receipt ecosystem, and it is good work:

So the hard parts are done: domain separation, length-prefixed signing input, identifier binding, Merkle inclusion, out-of-band key pinning, and negative cases. What is missing is narrower and sharper than “no receipts exist”, and it is the whole of this RFC.

The receipt binds an action payload chosen by the caller. It does not bind a verdict produced by the engine. action_payload carries action_id, type, contract, actor, resource, files, nonce, requested_at — and no decision, capability, policy or reason. The producer is a fixture generator holding a disposable key, not TrustEngine, and the fixture labels itself SYNTHETIC … not production evidence.

That is why the invariant still has to be specified: a receipt proves that NTI signed this action payload. It does not yet prove that the engine allowed it.

This RFC closes the gap by making the verdict and its evidence one object with one producer.

Motivation

The reason to adopt NTI is to answer one question after the fact:

Was this agent authorized to do this, and has that answer been altered since?

Answering it needs three properties at once:

  1. Binding. The recorded verdict is the verdict the engine computed for that exact request.
  2. Non-repudiation. The record is signed by the engine that made the decision, not by whoever is writing the log.
  3. Tamper-evidence. Changing any field of the record, or removing one, is detectable.

A plain log satisfies none of these. A signature over a log entry satisfies (2) and (3) but not (1): it proves the log writer said so, which is exactly the party whose honesty is in question.

The binding property is the one that cannot be retrofitted. If receipts are sealed after the fact by a wrapper, the wrapper holds the authority, and a receipt proves only that the wrapper was willing to sign. It must be impossible to obtain a receipt for a verdict the engine did not produce.

Detailed Design

The object

{
  "nti": "1.0",
  "receipt_id": "6f1c0a52-2d5b-4c0e-9b2f-3f9a1b7c8d40",
  "request": { "id": "r-42", "actor": "agent-1", "capability": "tool:search", "action": "invoke", "input": { "q": "x" } },
  "decision": "Allow",
  "reason": "granted",
  "engine": { "impl": "ube-foundation", "version": "0.2.1" },
  "issued_at": "2026-11-26T10:04:11Z",
  "prev_receipt_hash": "sha256:9d5c…",
  "receipt_hash": "sha256:41ab…",
  "signature": "ml-dsa-87:5e8c…"
}
Field Meaning
request The exact request as evaluated, canonically serialized.
decision Allow or Deny.
reason The engine’s reason code for that decision.
engine Implementation and version that produced the verdict, so a verifier can re-run it.
prev_receipt_hash Hash of the issuer’s previous receipt, or null for the first.
receipt_hash sha256 over the canonical form of every other field except signature.
signature ML-DSA-87 signature by the issuer over receipt_hash bytes.

Normative requirements

Verification, in order

  1. Parse the receipt; reject unknown top-level fields.
  2. Recompute receipt_hash from the canonical form. Compare in constant time.
  3. Verify signature against the issuer public key registered for engine.impl.
  4. If prev_receipt_hash is present, confirm it equals the receipt_hash of the receipt the issuer published immediately before this one.
  5. Re-evaluate request on engine.version. Confirm the decision matches.
  6. Only then treat the receipt as evidence.

Step 5 is what separates a receipt from a signed log line, and it is why engine is inside the hash: a verifier that cannot reproduce the decision cannot accept the claim.

Relationship to existing audit state

audit_inclusion_proof already proves that a leaf is included in a Merkle batch. Receipts become those leaves: receipt_hash is the leaf value. This RFC does not change the Merkle construction; it defines what is being hashed.

Drawbacks

Alternatives

Reference implementation status

Implemented. The receipt format (nti-receipt/1.0), an independent verifier (verify_receipt.py), a producer (generate_fixture.py), the RFC 6962 delegation Merkle tree, inclusion proofs, domain-separated signing payloads, out-of-band key pinning, and tamper negatives.

Not implemented. The binding. TrustEngine.evaluate() returns { "decision", "reason" } and emits nothing. There is no receipt field carrying decision, capability, policy or reason, and no engine method that returns a signed receipt at all. The only producer is a fixture generator with a disposable key, which is why its own output is labelled SYNTHETIC … not production evidence.

Work required before this RFC can be marked Accepted, in order:

  1. Extend the receipt payload (or define an authorization receipt profile) with decision, capability, policy and reason, hashed under the same domain-separated signing payload the verifier already implements.
  2. Add TrustEngine.evaluate_receipt() returning the verdict and the receipt from one call, and no API that accepts a caller-supplied verdict.
  3. Give the engine a persisted issuer key and a published issuer public key, so a receipt can be pinned out of band the way verify_receipt.py --public-key already supports.
  4. Add vectors for R5: altered decision, altered capability, receipt signed by an actor key instead of the issuer key, and a receipt whose embedded request no longer reproduces the verdict.
  5. Extend conformance/validate.py to run R5 end to end.

Until then, integrators must describe what they emit as tamper-evident records of observed decisions, not as NTI authorization receipts. The distinction is not pedantry: the first claim is defensible in front of an auditor, and the second is not.