| Internet-Draft | Decision Receipts for Platform-Neutral | December 2026 |
| Das | Expires 5 June 2027 | [Page] |
Network and API platforms are asked to treat all applications, vendors and operators on equal terms. Audit logs and transparency logs can prove that a decision was recorded and was not later altered. They cannot, by themselves, prove that the decision was made without favouring a platform. This document describes a decision receipt that is issued with each authorization decision and states the policy digest, the inputs considered and the excluded attributes, and it explains the conditions under which a verifier could check neutrality: fixed and attested decision rules, an input schema that omits platform identity, and registration of receipts in a SCITT-style transparency service. It reuses COSE signed statements, Merkle-tree transparency logs and remote attestation. It states that the evidence of demand for such receipts is weak in the sources reviewed, so the document is exploratory.¶
Related patent application. This document is based on international application PCT/IB2026/054453 (publication WO 2026/150381 A2), which was published at WIPO PATENTSCOPE on 16 July 2026. Full text: https://patentscope.wipo.int/search/en/detail.jsf?docId=WO2026150381 (also at https://patents.google.com/patent/WO2026150381A2/en). The application is a pending application only; nothing in this document states or implies that any patent has been granted. Check current status only on official registers (WIPO PATENTSCOPE and national patent offices).¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 5 June 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
Open API programmes such as GSMA Open Gateway certify that operators implement APIs consistently. API gateways produce audit trails of who called what. Transparency logs, as in Certificate Transparency (RFC 9162) and the IETF SCITT work, let anyone verify that an entry is in an append-only log and that the log has not been rewritten.¶
None of these proves that a particular authorization decision treated a platform neutrally. A log of inputs and outputs shows what happened. Neutrality is a property of the decision function: whether it used, or could have used, the identity or commercial relationship of the platform.¶
This document is exploratory. It sets out what would have to be true for a neutrality statement to be checkable. It does not assert that regulators or operators currently require such receipts.¶
Where any of these is missing, the receipt proves recording and integrity but not neutrality.¶
This section shows how to build decision receipts that let a third party check one narrow claim: that a decision function ran a stated version of its logic and read only a stated list of attributes. The design does not prove that outcomes are fair. It proves how a decision was made, which is a necessary base for any later fairness review. Formats are illustrative.¶
A neutrality claim about outcomes (for example "no discrimination by platform identity") is a different, stronger claim. Receipts only support it if the excluded attributes really cannot influence the decision. Section "Conditions for checkability" in this document lists what has to be true.¶
Make the function deterministic where possible:¶
decision = f(projected_input, policy_params)¶
Write the schema as data:¶
{
"schema-id": "rank-input-v4",
"allowed": ["item.relevance", "item.price", "item.rating",
"query.terms", "item.stock"],
"excluded": ["seller.platform-tier", "seller.commercial-deal",
"seller.owner-id", "item.is-first-party"],
"version": 4
}
¶
The schema is signed and its digest is part of every receipt.¶
A claim that the function read only allowed attributes needs a mechanism, not a promise.¶
The strongest practical arrangement is: projection layer and decision function in one protected environment (a TEE with attestation), where the code digest P is measured at start. The attestation then says the logic with digest P ran in that environment.¶
An illustrative receipt payload in CDDL:¶
decision-statement = {
"decision-id": bstr .size 16,
"seq": uint, ; per-function counter
"ts": uint,
"policy-digest": bstr .size 32, ; digest P
"schema-digest": bstr .size 32, ; digest of S
"input-digest": bstr .size 32, ; salted hash of projected
"output": tstr / bstr, ; the decision
"env": tstr, ; attestation handle
? "params-digest": bstr .size 32
}
¶
Details:¶
Use the architecture of the IETF SCITT work: an issuer signs a statement, a transparency service checks a registration policy, appends the statement to an append-only Merkle log and returns a receipt of inclusion.¶
A verifier (auditor, regulator, competitor with permission) does this:¶
1. Verify the transparency receipt: inclusion proof ok. 2. Verify the statement signature and the attestation of env. 3. Check that policy-digest is the digest of published code, and that code is built reproducibly from published source. 4. Check that schema-digest names a schema whose excluded list matches the public commitment. 5. For a sampled decision: obtain the salt and projected input, recompute input-digest, run f again, compare output. 6. Check seq continuity over the audited period.¶
Step 5 needs access to input data. Where data is confidential, use a trusted auditor under agreement, or run the check inside the same kind of protected environment with the auditor's code. Zero-knowledge proofs of correct evaluation are an active research area. They are not required here, and no claim is made that they are practical for a given function.¶
The operator signs and logs. Cheapest. Proves integrity of the log, not the behaviour of the function. Useful as a first step and for internal audit.¶
The receipt carries an attestation of the environment, so that the signer is shown to be the measured code. This is the minimum for the version and input claims to mean anything.¶
An independent party hosts the decision function. The operator supplies data through the projection layer. The independent party signs. Strongest separation. Highest cost and the most trust negotiation.¶
Do not receipt every decision with full detail. Receipt all with digests, and replay a random sample with full inputs. Reduces storage. Detection probability depends on sample rate, which must be stated.¶
Batch into Merkle trees for rate. Add a batch interval to the statement. Good for high-volume ranking or admission.¶
The salted input is held by an escrow that releases to an auditor on request. The operator cannot replace the input later because its digest is already committed.¶
A receipt is checkable only if all of these hold. If one does not hold, say so in the deployment description.¶
A function can satisfy every condition and still be unfair, for example by using an allowed attribute that proxies for an excluded one. Receipts do not detect that. A separate analysis of the allowed attributes is needed.¶
A projected input of `{"rel":0.9}` (canonical form, no spaces) with a salt of 16 zero bytes gives, with SHA-256 over the canonical bytes followed by the salt:¶
d8f3f596b6478ea25c7f13263b20e805876e10c88b50905be25d556108e19cb2¶
Real salts are random and kept by the operator or an escrow.¶
Q: Does a receipt prove the decision was fair? A: No. It proves which logic ran and what it was allowed to read. Fairness needs a separate analysis of the allowed attributes and the outcomes.¶
Q: What if the function is a neural network? A: Pin the weights and runtime and record the hardware class. Some models do not give bit-identical output across hardware. Record a tolerance, and have the audit compare within it.¶
Q: What if inputs are confidential? A: Keep the salted input with an escrow or inside a protected environment, and let a trusted auditor replay a sample under agreement. The log holds only digests.¶
Q: How big is the log? A: One small signed statement per decision, or one root per batch. Estimate from the decision rate and measure the real statement size.¶
Q: What stops the operator from running a different function and logging the expected one? A: Only the attested environment does. Without attestation the receipt shows what the operator says it ran. State clearly which of the two you provide.¶
Q: Who should run the log? A: A party other than the operator, or at least an operator-independent publication of checkpoints. A log held only by the operator proves little.¶
This section is repeated in each document of the series so that an engineer can build from one document without reading the others. It describes one concrete way to build an enforcement point (EP) and its surrounding parts. Names of products are examples of existing technology. Message layouts and code are illustrative sketches written for this document. They are not tested reference code, and no performance figure is claimed anywhere in this document.¶
An engineer can build the mechanism in this order. Each step can be tested alone before the next one starts.¶
requester --> [ EP ] --> token --> [ effect sink ] --> effect
| \ |
| +--> receipt log +--> replay table (jti)
v
state store (atomic consume)
^
policy bundle (signed, versioned)
[ EP key in HSM/TEE ] <-- attested by verifier (RFC 9334)
¶
The EP is the only component that can mint a token. The sink is the only component that can cause the effect. The state store is the only place where quota changes. Keep these three roles in separate failure domains if the risk justifies it.¶
An illustrative token claim set in CDDL (RFC 8610) follows. The names are not registered. A deployment can map them to registered claims where they exist.¶
capability-token = {
"iss": tstr,
"aud": tstr, ; the sink
"jti": bstr .size 16, ; single-use identifier
"nbf": uint,
"exp": uint, ; seconds, short lifetime
"cnf": { "kid": bstr }, ; proof of possession (RFC 7800)
"purpose": tstr,
"params-hash": bstr .size 32, ; hash of canonical action
"state-version": uint,
? "profile": tstr
}
receipt = {
"id": bstr .size 16,
"decision": "released" / "refused",
"ep": tstr,
"ts": uint,
"req-digest": bstr .size 32,
"policy-digest": bstr .size 32,
"state-version": uint,
? "token-jti": bstr .size 16,
? "internal-reason": tstr ; never sent to the requester
}
¶
The "internal-reason" field is for operators and auditors. The response to the requester must carry no reason, as described under uniform denial.¶
def decide(req):
ctx = authenticate(req) # who is asking
if ctx is None:
return deny()
cand = canonicalize(req.action)
h = sha256(cand)
pol = policy.load(ctx.tenant) # signed bundle
now = trusted_time()
ok = True
reasons = []
for p in pol.predicates: # evaluate all, no early exit
r = p.check(ctx, cand, now)
ok = ok and r.ok
reasons.append(r)
if not ok:
log_internal(req, reasons)
return deny()
if not store.consume(ctx.grant, 1, pol.version):
return deny()
tok = sign(make_token(ctx, h, pol.version))
log_receipt("released", tok.jti, h)
return tok
¶
Notes for the engineer:¶
The consume operation must be one indivisible step: check the quota and the state version, and decrement. Five common ways to build it follow. Pick by consistency need, not by habit.¶
Variant A: Redis with a Lua script.¶
-- KEYS[1] = grant key, ARGV[1] = expected version
local v = redis.call('HGET', KEYS[1], 'ver')
local q = tonumber(redis.call('HGET', KEYS[1], 'quota'))
if v ~= ARGV[1] or q < 1 then return 0 end
redis.call('HINCRBY', KEYS[1], 'quota', -1)
return 1
¶
The script runs atomically on one Redis node. Redis replication is asynchronous by default, so a failover can lose the last writes and allow a second use. Use this only where a rare double use is tolerable, or add replica acknowledgement (the WAIT command) and accept the latency.¶
Variant B: relational database, single statement.¶
UPDATE grants SET quota = quota - 1 WHERE grant_id = $1 AND ver = $2 AND quota > 0 AND not_after > now() RETURNING quota;¶
A returned row means the unit was consumed. Zero rows means deny. A single UPDATE takes a row lock, so concurrent callers are serialized. Use a synchronous replica or a consensus-based distributed SQL database if loss on failover is not acceptable.¶
Variant C: DynamoDB conditional update.¶
UpdateItem Key={grant_id}
UpdateExpression: SET quota = quota - :one
ConditionExpression: ver = :v AND quota >= :one
¶
A failed condition means deny. Keep the authority in one region. Multi-region replication of such tables is eventually consistent, and two regions could each consume the same unit.¶
Variant D: etcd or another Raft key-value store, compare-and-swap transaction.¶
txn: if value(grant/ver) == V and value(grant/quota) > 0 then put(grant/quota, quota-1) else fail¶
This gives linearizable consume at the cost of write latency on every release. It suits low to medium rates and high-value actions.¶
Variant E: hardware counter. A TPM 2.0 non-volatile counter or an HSM counter can hold a monotonic count. Hardware counters have limited write endurance and low rates. Use them for high-value, low-rate grants or as an anchor for a periodic checkpoint of a faster store.¶
At the sink, add a replay table keyed by jti and keep entries until the token expires. This catches a token presented twice even if the EP store had a fault.¶
Return one response for every refusal: the same status, body shape and, as far as practical, timing. Put the reason only in the internal log. Do not return which predicate failed, whether a grant exists, or how much quota remains. Rate-limit refusals per requester so that an attacker cannot use the EP as an oracle.¶
A request can time out after the sink applied the effect. The requester then does not know whether to retry. Handle it this way:¶
Every release and every refusal is a signed receipt. Options for the log, from simplest to strongest:¶
Whatever the option, publish the checkpoint to a place the operator cannot rewrite alone (a second organization, a public log, or a write-once store). Without that, the log shows what the operator chose to keep.¶
The same mechanism can be placed in five ways. Choose by where the choke point is.¶
A conformance suite for the mechanism contains at least these tests. Each is a pass or fail test, not a measurement.¶
Measure these in the engineer's own environment before making any claim. The document gives no numbers on purpose.¶
This section gives small reference sketches in Python. They show the logic in running form. They were run against unit tests in a sandbox on 2 December 2026 (Python 3.13, the "cryptography" package, SQLite) and the tests passed. They are teaching sketches. They are not hardened code and have had no security review. The SQLite store stands in for a real store. It serializes through a lock. A production system would use the storage variants in the common core.¶
Decision receipts with projection, salted input digest, gapless sequence and audit replay. Tests: audit passes, replay matches, altered input fails, a removed receipt shows as a gap, a wrong policy digest fails.¶
# Reference sketch: decision receipts, sequence, input digest.
import hashlib, json, os
from cryptography.hazmat.primitives.asymmetric.ed25519 import (
Ed25519PrivateKey,
)
def canon(o):
return json.dumps(
o, sort_keys=True, separators=(",", ":")
).encode()
class Decider:
def __init__(self, allowed, policy_src):
self.allowed = set(allowed)
self.policy_digest = hashlib.sha256(
policy_src
).hexdigest()
self.key = Ed25519PrivateKey.generate()
self.pub, self.seq, self.log = (
self.key.public_key(),
0,
[],
)
self.salts = {}
def project(self, record):
return {
k: v
for k, v in record.items()
if k in self.allowed
}
def decide(self, record, f):
x = self.project(record) # f never sees the rest
out = f(x)
salt = os.urandom(16)
self.seq += 1
st = {
"seq": self.seq,
"policy": self.policy_digest,
"input": hashlib.sha256(
canon(x) + salt
).hexdigest(),
"output": out,
}
body = canon(st)
self.log.append((body, self.key.sign(body)))
self.salts[self.seq] = salt
return out
def audit(pub, log, policy_digest):
"""Check signatures, policy digest and gapless sequence."""
expect = 1
for body, sig in log:
pub.verify(sig, body)
st = json.loads(body)
if (
st["seq"] != expect
or st["policy"] != policy_digest
):
return False
expect += 1
return True
def replay(decider, seq, x, f):
st = json.loads(decider.log[seq - 1][0])
d = hashlib.sha256(
canon(x) + decider.salts[seq]
).hexdigest()
return d == st["input"] and f(x) == st["output"]
¶
This section is repeated in each document of the series. It covers what an operator needs after the mechanism is built.¶
Threat Mitigation Residual risk
-------------------------- -------------------------- ------------
Requester forges a token Signature by EP key in Key theft
HSM/TEE; sink verifies
Requester replays a token jti replay table at sink; Table loss
short lifetime after crash
Requester alters action Token bound to action hash Hash scheme
mismatch
Stolen token used by other Proof of possession (cnf, Key theft
DPoP, mutual TLS) of holder
Compromised requester asks Predicates, quota, scope, Wrong grants
for allowed things envelope, rate limits stay wrong
Compromised EP Attestation, split key, Total loss of
federation (V5), audit guarantee
Bypass of the EP Single choke point; sink Second route
refuses without token left by error
Store rollback or fork Synchronous consensus Operator
store; counters logged error
Oracle probing of the EP Uniform denial; rate limit Timing leak
Log tampering External checkpoints Collusion
Clock manipulation Trusted time; bounds Time source
compromise
Policy mistakes Review, tests, shadow Human error
mode, signed bundles
¶
No row removes the need for judgement. The mechanism limits what a wrong decision can do and makes it visible afterwards.¶
### Signing key rotation¶
### Policy update¶
### Suspected EP compromise¶
### Store restore¶
Alert on a fail-open event every time it happens. A fail-open class that triggers often is a design problem.¶
This document gives no throughput figure. To size a deployment:¶
Roles: a policy owner (decides what is allowed), a platform team (runs the EP, store and keys), a sink owner (owns the effect and its check), a security reviewer (owns the test plan and bypass tests) and an auditor (reads receipts).¶
RFC 7519 JSON Web Token (JWT) RFC 7800 Proof-of-possession key semantics for JWTs RFC 8392 CBOR Web Token (CWT) RFC 8610 Concise Data Definition Language (CDDL) RFC 8693 OAuth 2.0 Token Exchange RFC 8785 JSON Canonicalization Scheme RFC 8949 Concise Binary Object Representation (CBOR) RFC 9052 COSE: structures and process RFC 9162 Certificate Transparency version 2.0 RFC 9334 Remote ATtestation procedureS (RATS) architecture RFC 9396 OAuth 2.0 Rich Authorization Requests RFC 9449 OAuth 2.0 Demonstrating Proof of Possession (DPoP) RFC 9711 Entity Attestation Token (EAT) RFC 5869 HMAC-based key derivation function (HKDF) RFC 4082 TESLA broadcast authentication¶
Check the current status of each document before relying on it, and read the document itself. This list is a reading aid, not a substitute.¶
This section is repeated in each document of the series.¶
Answer these questions in order. Each answer narrows the design.¶
Question If yes If no
------------------------------- ------------------- ---------------
Is the effect irreversible or Use V4 (attested EP) V2 or V3 may do
costly to other parties? and single-use tokens
Can the sink verify signatures Self-contained MAC token or
at the needed rate? signed token reference token
Is immediate revocation needed? Reference token or Short lifetime
push events is enough
Can the sink reach the EP in Per-action release Pre-issued
the time budget? window
Must two parties agree? Federated EP (V5) One EP
Must an outsider check later? Merkle log with Hash chain log
external checkpoint
Is the requester untrusted or Proof of possession Bearer token
an AI agent? plus envelope may do
Does a sweep of the target Random token, rate Normal controls
space matter? limits
¶
Where two answers conflict, choose by the cost of a wrong decision in the deployment, and write the choice down with the reason.¶
### Failure 1: the sink applies the effect but the reply is lost¶
### Failure 2: the EP crashes after consume and before returning the token¶
### Failure 3: two sinks receive the same token¶
### Failure 4: the clock of the EP is wrong¶
### Failure 5: a policy bundle with a mistake is deployed¶
Use this list before putting the mechanism into production. A "no" is a finding to resolve or to accept in writing.¶
A receipt asserting neutrality is only as strong as the attested decision function and the input filter. A compromised filter would make false neutrality statements. Proxies for excluded attributes can reintroduce bias. Receipts can reveal commercial relationships if inputs are disclosed. Transparency services must be operated or monitored by parties independent from the platform.¶
This Internet-Draft is submitted as an individual contribution. It is not an IETF standard, has no working group status and does not represent IETF consensus.¶
Intellectual property: the author is aware of the pending patent applications listed in the section "Related Patent Applications and Public Disclosures". If this draft is submitted to the IETF, the author will make the disclosure required by BCP 79 before or with submission.¶
Origin and AI assistance. The underlying invention is human-originated and is described in the PCT application named above. AI-assisted tools were used to prepare this document (summaries, mapping to existing technology and threat scenarios). It may contain errors. Readers must cross-check it against the original publicly available PCT filing and against the original sources linked in the references before drawing any conclusion.¶
Industry names. Company, product and standards names appear only to identify existing technology and the technical problems it addresses. Their appearance is not an endorsement, validation, adoption, partnership or infringement statement, and nothing here presumes patent validity, licensing obligations or technical superiority.¶
This document has no IANA actions.¶
This section lists plain, industry-standard search terms. It is an aid to prior-art searching and is not a claim construction or a statement about scope.¶
platform neutrality; non-discrimination; decision receipt; transparency log; SCITT; Certificate Transparency; COSE signed statement; Merkle tree inclusion proof; policy digest; policy as code; remote attestation; API audit; GSMA Open Gateway certification; network API compliance; verifiable audit trail; reproducible decision; fair access; API gateway; interoperability compliance; consistency proof.¶
Indicative only; not an official classification of the application. H04L 9/32 (authentication, signed statements); H04L 9/50 (hash-based ledgers); H04L 63/20 (managing security policies); H04L 41/0893 (policy-based network management); G06F 21/64 (protecting data integrity); G06F 21/57 (trusted platforms).¶
The following references identify the existing specifications and drafts against which this document should be read: [RFC9052], [RFC9162], [RFC9334], [SCITT-WG], [SPT-TXN].¶