| Internet-Draft | Cooren Authority Firewall | December 2026 |
| McLeod | Expires 4 June 2027 | [Page] |
This document describes Cooren, an architecture for placing an independently enforced authority boundary between software agents (including AI agents) that propose actions and the real systems those actions would change. Cooren generalizes any multi-party decision into six coordination operations (create a session, invite participants, submit signals, read the tally, record the decision, and announce it) governed by a gated state transition in which agreement and model confidence inform a decision but never execute it. The Authority Firewall applies this primitive to agent actions. The gate is default-off. Human-authored Constraints and Parameters let in-bounds actions proceed, and only out-of-bounds actions are offered to a human approver, who opens the gate for one decision with a single key holding decision authority and a recorded, non-empty reason. Hard constraints cannot be overridden by any approval. Authority lapses without periodic fresh human authorization, and evaluation fails closed. Decisions are written to hash-chained audit logs that attribute each link to the acting key. Decisions recorded through the coordination API are additionally committed to a signed notary chain whose heads are countersigned by an independent witness on separate hardware and anchored to RFC 3161 time-stamping authorities and OpenTimestamps. This document is published for information and to invite review.¶
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 4 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. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Software agents, and AI agents in particular, increasingly hold write access to systems with real consequences: they issue refunds, move money, deploy code, write to databases and long-term memory, and send data outside an organization. In many deployments the "human in the loop" for such actions is a prompt instruction or an application feature flag evaluated by the agent's own code. Neither is an enforced boundary. When an auditor or a customer asks how an unauthorized action is prevented, and who approved a given action, such deployments cannot answer with evidence.¶
Two distinctions motivate the architecture described here.¶
The first is between arbitration and authority. Systems that drive a group, a set of agents, or a single model toward a decision tend to conflate the computation of what should happen (votes, scores, confidence, consensus) with the authority to make it happen. Cooren keeps them separate. Signals and tallies inform; a distinct authority decides; and while the gate is closed the next state equals the current state no matter how strong the agreement or the confidence [COOREN-PAPER].¶
The second is between pre-authorization and live approval. Requiring a human to approve every action does not scale and trains approvers to click through. Cooren is therefore default-off with a dial: humans who hold authority write Constraints and Parameters (C&P) in advance, and an action that stays within them is pre-authorized and runs without a live approval. Only an action that falls outside them is offered to a human approver. A small set of hard constraints cannot be opened by anyone. In every case the action carries human authority, either through rules that humans set in advance or through an explicit human approval of the exception, and in every case the decision is recorded.¶
Because a record kept only by the system it describes can be quietly rewritten by that system's operator, the architecture also defines an evidence layer: hash-chained decision records, salted commitments that keep decision contents private, signed receipts, a witness that runs on separate hardware outside the system it checks, and anchoring of chain heads to external time-stamping services.¶
The architecture aims to provide:¶
Separation of reasoning from execution: agents may reason, signal, and propose freely, but proposals carry no execution authority.¶
Default-off execution: absent an authorization, nothing changes.¶
Human authority over every executed transition, expressed either as pre-authorization through C&P or as an explicit approval of a single out-of-bounds decision by a named human with decision authority and a recorded, non-empty reason.¶
Hard limits that bind every actor, including operators and the holder of the root key.¶
Fail-closed evaluation: a constraint that cannot be evaluated is treated as violated.¶
Liveness of human authority: authority lapses without periodic fresh human authorization, after which gates cannot be opened until it is renewed.¶
Thin enforcement points ("doors") with policy held centrally at the identity and access management (IAM) layer.¶
Tamper-evident records whose integrity can be checked by a party that does not trust the operator, without revealing the contents of the decisions.¶
This document describes an architecture, its message flows, and the data formats used by one implementation. It does not define a new transport, an approval user interface, or a policy language for C&P. It does not claim that the mechanism makes any deployment compliant with any regulation. A gate governs only the transitions routed through it; the architecture complements, and does not replace, credential hygiene, network segmentation, egress filtering, patching, and endpoint controls.¶
The decision records described here are tamper-evident, not tamper-proof: alteration is detectable, not impossible. "Notary" names a function; it does not refer to legal notarization.¶
This is an individual submission intended for Informational status. It documents a running system and its method so that others can review, compare, interoperate with, or build on it. It does not represent IETF consensus and does not ask the IETF to standardize the formats it describes. Where this document uses BCP 14 keywords, they describe what a conforming implementation of the described architecture does, not requirements imposed on the Internet at large.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This document uses the following terms. Terms from [RFC4949] are used with their usual meanings.¶
A software component, often driven by a machine-learning model, that proposes actions. An agent is a Participant with no execution authority.¶
A human or software entity admitted to a Session that may submit Signals. Each Participant holds its own participant token.¶
The container for one decision: its Options, Participants, Signals, tally, and recorded decision.¶
One candidate outcome of a Session. For agent actions, an Option is a proposed action, such as "refund order 1234 for 80 USD".¶
A Participant's response in a Session: the chosen Option and, optionally, a confidence value and a rationale.¶
The aggregate of Signals for a Session. A Tally informs a decision and determines eligibility; it never executes anything.¶
The role that may record a decision for a Session. The Authority is held by an authenticated human through an authority key or authority token that is distinct from every participant token.¶
A human who holds a key with decision authority and may open the Gate for a single decision.¶
The Authority Firewall's configured scope for one gate: its gate type, quorum, confidence floor, hard constraints, and the period after which authority lapses.¶
The binary control G(t) in {0, 1} that determines whether a proposed transition is applied. G(t) = 0 is the default.¶
The component that evaluates proposals against C&P at a single evaluation point, applies or withholds the Gate, routes escalations, and writes the audit chain.¶
Human-authored rules against which proposals are evaluated. Each constraint is classified as pre-authorizing, escalating (ESC), or hard (HARD).¶
A constraint whose violation routes the proposal to an Approver.¶
A constraint whose violation blocks the proposal. No key, including the root key, opens a Gate closed by a HARD constraint.¶
A thin enforcement point in front of a protected resource. A Door authenticates the caller against IAM and enforces the resulting decision. It holds no policy of its own.¶
The real system an approved transition changes, such as a payment gateway, a production environment, or a database.¶
The Authority Firewall's hash-chained, tamper-evident record of decisions. Each link carries the fingerprint of the acting key.¶
The service that re-verifies decision records, maintains the decision chain, and signs Receipts and Anchors.¶
A signed public object that commits to one decision record and its position in the decision chain without revealing the decision's contents.¶
A signed statement of the decision chain's head at a sequence number.¶
A party, running on hardware separate from the Notary and from the system being recorded, that verifies Anchors, appends them to its own hash-chained ledger, and countersigns them.¶
A service that issues RFC 3161 time-stamp tokens [RFC3161].¶
The architecture separates the following roles. An implementation may co-locate some roles, but the Witness MUST NOT be co-located with the Notary or with the system whose records it witnesses.¶
Participants and Agents submit Signals and proposals.¶
The Coordination Engine implements the six operations of Section 4.¶
The Authority Firewall evaluates proposals against C&P and holds the Gate.¶
IAM authenticates Approvers and Doors and holds policy.¶
Doors enforce IAM decisions in front of protected resources.¶
Approvers open the Gate for escalated decisions.¶
Execution Targets apply approved transitions.¶
The Notary, the Witness, and external TSAs and OpenTimestamps calendars together form the evidence layer.¶
Verifiers check records, either through a public verification endpoint or offline.¶
+-------------------+ proposal +---------------------------+
| Agents and other |-------------->| Authority Firewall |
| Participants | | (single evaluation pt.) |
| no execution |<--------------| C&P, set by humans |
| authority | verdict | Gate G(t), default 0 |
+-------------------+ +---+---------+---------+---+
| | |
within C&P | ESC | HARD |
(pre-auth.) | | |
| v v
| +------------+ blocked,
| | Approver | no key
| | key+reason | opens it
| +-----+------+
v | approve one
+-------------------+ one transition | | transition
| Execution Target |<------------------+--------+
+-------------------+ via a Door; Gate returns to 0
decisions recorded via the coordination API
|
v
+--------------+ entries +-----------+ countersign
| Coordination |----------->| Notary |<-------------+
| Engine | (pulled) | chain, | |
| decisions | | receipts |--anchor-->+--+------+
+--------------+ +-----+-----+ | Witness |
| | separate|
anchor digest | hardware|
v +---------+
+-------------------------+
| RFC 3161 TSAs and |
| OpenTimestamps calendars|
+-------------------------+
In the current implementation, decisions recorded through the Coordination Engine flow to the Notary. The path from the Authority Firewall's audit chain into the Notary's public chain is planned; see Section 12.¶
Three trust boundaries matter.¶
The first lies between Agents and the Authority Firewall. Everything an Agent supplies (the proposed action, its arguments, its confidence, and its rationale) is untrusted input. The Authority Firewall MUST sit outside the Agent's process and control flow, so that the Agent's own code cannot decide whether to wait for a decision.¶
The second lies between the Authority Firewall and the Execution Target. An approved transition reaches the Execution Target through a Door that authenticates against IAM. The Door holds no policy.¶
The third lies between the operator of the system and the evidence. The Notary's signing key is held apart from the host that serves the public API and verification endpoint, and the Witness runs on separate hardware under a separate key, so that an operator who controls the application host cannot rewrite history without detection.¶
Cooren models any decision, whether a household choosing dinner, a dispatcher accepting a load, or an operator gating an agent's action, with six domain-agnostic operations. The companion Cooren Signal Protocol [MCLEOD-CSP] names them as operation codes, which this document adopts:¶
| # | Operation | Effect |
|---|---|---|
| 1 | session.create | Create a Session, its Options, and its |
| authority token | ||
| 2 | participant.invite | Admit humans or agents; each receives its |
| own participant token | ||
| 3 | signal.submit | A Participant submits its choice, with an |
| optional confidence value and rationale | ||
| 4 | tally.get | Read the aggregate; no side effects |
| 5 | decision.record | The Authority records the decision with |
| its token and a reason | ||
| 6 | announcement.send | Announce the outcome to the Participants |
CSP also defines chain.verify, chain.acknowledge, and session.close, which support the audit chain and Session lifecycle and are outside the six-operation primitive. Options are loaded as part of session.create. The REST interface of the implementation exposes the same operations as HTTPS endpoints.¶
Let S(t) be the state of the governed system, I(t) the input at step t (for example, the proposed action), A the function that applies an action to a state, and G(t) the Gate. The transition is:¶
S(t+1) = G(t) * A(S(t), I(t)) + (1 - G(t)) * S(t)¶
with G(t) in {0, 1}. When the Gate is closed (G(t) = 0), the next state equals the current state. No Tally, quorum, or confidence value sets G(t) to 1. G(t) becomes 1 only through an authorization that traces to a human Authority: a pre-authorization in the current C&P, or an explicit approval of that single transition. After one authorized transition is applied, the Gate returns to 0.¶
The algebraic form is equivalent to a gating unit as used in gated recurrent networks; the contribution claimed is the interpretation, in which G is binary, default-off, and controlled from outside the system being arbitrated [COOREN-PAPER].¶
The Authority may record an Option other than the one the Tally favors. Such a decision is an override. An override MUST carry a written reason, and the reason is committed into the decision record. A tie for the top Option is not an override.¶
The flows below are abstract. The implementation carries them over HTTPS (REST) and as Model Context Protocol tools; the field names in Section 7 are those used by the implementation.¶
Agent Authority Firewall Door / Target | propose(action, | | | confidence, | | | rationale) | | |---------------------->| | | | evaluate vs C&P vN | | | HARD: none violated | | | ESC: none violated | | | => PERMIT, G=1 (once) | | |----------------------->| apply one | | authenticated via IAM| transition | |<-----------------------| | | | | | | | | | |<----------------------| G returns to 0 | | result | |
Agent Authority Firewall Approver Door / Target | propose | | | |--------------->| evaluate: ESC fired | | | | (names constraint) | | | pending | G=0 | | |<---------------| present proposal -->| | | | out of band | authenticate | | | | with key; | | |<--------------------| approve + | | | approval(reason) | written reason | | | authority, reason, | | | | hard limits, | | | | authority current | | | | G=1 for this one | | | |------------------------------------->| apply | |<-------------------------------------| | | append audit link: | | | | actor_fp, reason | | |<---------------| G returns to 0 | |
If no human records the decision, the Gate stays at 0.¶
Agent Authority Firewall | propose | |---------------------->| evaluate: HARD fired | | (or HARD unevaluable) | | G=0; no approval path offered | | outcome: block |<----------------------| | blocked (names the | | constraint) |
Creator Engine Participants Authority | create_session | | | | (title,options)| | | |--------------->|--- authority token ------------>| | add_participants | | |--------------->|-- part. tokens>| | | |<- submit_signal| | | | (token,option)| | | |<--------------------- get_tally | | |-------------------------------->| | |<---------------- record_decision| | | (auth. token, option[, reason]) | | | commit; append to chain | | |-- announce --->|--------------->|
Engine/AF Notary Witness TSAs / OTS | new chain | | | | entries | | | |------------->| recompute chain; | | | (pull) | refuse on mismatch; | | | | sign receipts | | |<-------------| | | | receipts | hourly or every 100 | | | | entries: sign anchor| | | |-- anchor to relay ->| (pull, ~60 s) | | | | verify anchor; | | | | check seq/fork;| | | | append ledger; | | |<-- witness record --| countersign | | |------------------------------------->| | | SHA-256(JCS(anchor)) digest | | |<-------------------------------------| | | RFC 3161 tokens; OTS proof | |<-------------| publish anchor, witness, tstamp |
Two record layers exist, and they differ in what protects them:¶
| Layer | Covers | Integrity | Signed | Anchored |
|---|---|---|---|---|
| AF audit chain | Authority Firewall decisions | Hash chain, actor_fp per link | No | No |
| Notary chain | Decisions recorded via the coordination API (incl. MCP) | Hash chain, salted commitments | Yes (Ed25519 receipts, anchors, witness records) | Yes (RFC 3161, OpenTimestamps) |
Authority Firewall decisions do not yet enter the notary chain.¶
The notary-chain records in this section are JSON objects canonicalized with the JSON Canonicalization Scheme [RFC8785] before hashing or signing. Only objects, arrays, strings, integers with absolute value below 2^53, booleans, and null are permitted; floating-point numbers MUST NOT appear. Hashes use SHA-256 [RFC6234] and are written as "sha256:" followed by 64 lowercase hexadecimal digits. Signatures use Ed25519 [RFC8032] (pure, no prehash, no context) and are written as "ed25519:" followed by unpadded base64url [RFC4648]. Times are UTC in the form YYYY-MM-DDTHH:MM:SSZ, a profile of [RFC3339]. A signature covers the JCS bytes of the object with its signature field removed. Every record carries a version string in the field "v".¶
In the examples, long values are shortened with "..." for readability.¶
For a decision recorded through the Coordination Engine, the engine builds a private details object immediately after the decision commits and stores its exact JCS bytes.¶
{
"v": "cn4ad-details/1",
"decision_id": "d_8f2c",
"session_id": "s_41aa",
"account_ref": "sha256:5e1d...",
"options": [
{"id": "o1", "label": "Approve refund", "sort_order": 0},
{"id": "o2", "label": "Decline", "sort_order": 1}
],
"participants": [{"ref": "sha256:1a9b..."},
{"ref": "sha256:c37e..."}],
"tally": {"o1": 1, "o2": 1},
"chosen_option_id": "o1",
"winner": "Approve refund",
"override": false,
"override_reason": null,
"authority_ref": "sha256:f0c4...",
"separation_ok": true,
"recorded_at": "2026-11-30T15:04:05Z"
}
account_ref is SHA-256 over a secret pepper concatenated with the account identifier. Participant refs are SHA-256 of participant tokens and are sorted in ascending order. authority_ref is SHA-256 of the authority token. override is true when the chosen option's count is less than the maximum count; override_reason is the Authority's written reason when override is true and null otherwise.¶
For each decision a fresh 32-byte random salt is generated and stored privately, and:¶
commit = SHA-256(salt || details_jcs)¶
Disclosing details_jcs and salt lets anyone recompute the commitment. Without them, the commitment reveals nothing about the decision. Destroying a salt makes its commitment permanently unopenable, which is the mechanism for deletion.¶
Entries are numbered from 0. The genesis predecessor is 32 zero bytes. For entry n:¶
entry_n = SHA-256("cn4ad-chain/1" || entry_(n-1) || commit_n
|| uint64_be(n))
¶
All operands are raw bytes. Appends are serialized (for example, under a row lock on a single head record) so that concurrent decisions cannot fork the chain. The record identifier rid is the first 26 characters of the lowercase, unpadded base32 encoding [RFC4648] of entry_n.¶
{
"v": "cn4ad-receipt/1",
"rid": "2iwwflxnipjkivz2ho3dprjc4c",
"commit": "sha256:3d7a...",
"entry": "sha256:d5a1...",
"kid": "notary-1",
"sig": "ed25519:Qm9v..."
}
A Receipt contains no sequence number, time, account, participant, option, or outcome.¶
The Notary signs an Anchor hourly or every 100 entries, whichever comes first:¶
{
"v": "cn4ad-anchor/1",
"seq": 44,
"head": "sha256:a0b9...",
"notary_time": "2026-11-25T14:00:00Z",
"kid": "notary-1",
"sig": "ed25519:x7Kp..."
}
After verifying an Anchor, the Witness returns:¶
{
"anchor": { "v": "cn4ad-anchor/1", "seq": 44, "...": "..." },
"bb_time": "2026-11-25T14:00:58Z",
"bb_kid": "witness-1",
"bb_sig": "ed25519:Hh3s..."
}
bb_sig covers the JCS bytes of {anchor, bb_time, bb_kid}.¶
The time-stamp record is an unsigned, self-verifying sidecar to an Anchor:¶
{
"v": "cn4ad-tstamp/1",
"anchor": { "v": "cn4ad-anchor/1", "seq": 44, "...": "..." },
"digest": "sha256:61f0...",
"rfc3161": [
{"tsa": "https://tsa.example", "tsr": "MIIM..."}
],
"ots": "AE9w..."
}
digest is SHA-256 over the JCS bytes of the Anchor including its signature. Each tsr is a complete DER-encoded TimeStampResp ([RFC3161], Section 2.4.2) whose messageImprint is digest, requested with certReq set to true. The tsa field is informative and is never trusted. ots is a standard detached OpenTimestamps proof [OTS] over digest, or null; upgrading a pending proof replaces only this field. Records hold zero to eight tokens, and each decoded token or proof is limited to 16 KiB.¶
An inclusion proof for entry n under an anchored head N is:¶
{
"from": 17,
"to": 44,
"prev": "sha256:<entry_16>",
"commits": ["sha256:<commit_18>", "...", "sha256:<commit_44>"]
}
A bundle gives one decision's holder everything needed to verify it offline:¶
{
"v": "cn4ad-bundle/2",
"seq": 17,
"details_jcs": "{\"authority_ref\":...}",
"salt": "9f1c...",
"receipt": { "v": "cn4ad-receipt/1", "...": "..." },
"inclusion": { "from": 17, "to": 44, "...": "..." },
"witness": { "anchor": { "...": "..." }, "...": "..." },
"tstamp": { "v": "cn4ad-tstamp/1", "...": "..." }
}
In version 2 bundles, witness MAY be null when tstamp is present; when both are present they MUST cover the identical Anchor, and inclusion.to MUST equal that Anchor's seq.¶
Given only a Receipt, the public verification endpoint returns exactly four booleans and no reasons:¶
{"valid": true, "authority_closed": true,
"chain_intact": true, "witnessed": true}
The Receipt's signature verifies under a published Notary key and its commit and entry match a stored chain entry.¶
The decision was recorded under the Session's authority token and separation_ok was true when the record was sealed.¶
Entries recompute from this entry to the latest covering Anchor.¶
A verified Witness record, or where enabled a verified RFC 3161 token, covers the entry.¶
Any failure returns all four values as false.¶
The Witness exists so that neither the application host nor the Notary can rewrite history unnoticed. A Witness:¶
MUST run on hardware separate from the Notary and from the system whose records it witnesses, and SHOULD be administered separately from day-to-day operations of that system.¶
MUST hold its own signing key, generated on the Witness and never copied to the Notary or the application host.¶
SHOULD operate pull-only with outbound connections only, retrieving Anchors from a relay ("mailbox") that verifies nothing and only stores and forwards.¶
MUST verify the Notary's signature on each Anchor before countersigning it.¶
MUST refuse an Anchor whose seq is lower than the last one logged.¶
MUST refuse, and raise an alert on, an Anchor with an already- logged seq but a different head (a fork).¶
MUST append every accepted Anchor to its own hash-chained ledger.¶
An entry n is witnessed when a Witness record exists whose Anchor has seq at least n, whose signatures verify, and whose head equals the head recomputed from entry n through that seq.¶
A Witness operated by the same organization as the Notary is independent in hardware and key custody but not in organizational control. External time-stamping (Section 9) addresses that residual risk.¶
Editor's Note (EN-3): Publishing the Witness ledger head on a regular schedule (for example, daily) would let third parties hold the operator to past heads. This is not built. Decide whether to describe it as a recommendation (SHOULD) or as future work.¶
For each Anchor, the Notary computes digest = SHA-256(JCS(anchor)) and:¶
requests RFC 3161 tokens from the configured TSAs, which SHOULD be run by at least two independent operators;¶
submits the digest to at least two OpenTimestamps calendars, appending a 16-byte random nonce before hashing as the reference client does;¶
verifies each token before storing or publishing it, against pinned TSA roots rather than a system trust store, and drops any token that fails;¶
publishes the record only once it holds at least one verified token or a Bitcoin attestation; and¶
upgrades pending OpenTimestamps proofs at most hourly, contacting only an allowlist of calendar URLs and never a URL taken from a proof.¶
Stamping needs no signing key. Each Anchor is stamped in the same cycle in which it is created.¶
A token is accepted when its status is granted; its messageImprint uses SHA-256 and equals digest; its CMS signature verifies; the signer's extended key usage is only id-kp-timeStamping; the signer chains to a pinned root with every certificate valid at genTime; and, where supported, the ESS signing-certificate binding [RFC5816] verifies. A Bitcoin attestation is accepted when its message equals the Merkle root of the block header at the attested height, obtained from a local node, a published headers file, or at least two independent block explorers that agree. The witness time is the earliest genTime among accepted tokens or the earliest accepted block time.¶
TSA tokens arrive within seconds; Bitcoin confirmation typically takes one to six hours. TSA trust ends if a root is distrusted, which the Bitcoin anchor covers; a single TSA is only as trustworthy as that TSA until Bitcoin confirms. Entries recorded before anchoring was enabled are witnessed as of the time their first Anchor was stamped, never earlier.¶
A verifier walks each audit layer from its first link, recomputing each link's hash and comparing it with the next link's previous-hash field. The result is "intact" or the first link at which the comparison fails; a deliberately altered copy is detected and the altered link identified. Because links are not signed, this check detects alteration that is not accompanied by recomputation of every later link; it does not by itself prove who produced the chain (Section 13.10).¶
verify_bundle(b, keys):
R = b.receipt; I = b.inclusion; W = b.witness; T = b.tstamp
d_bytes = utf8(b.details_jcs); d = parse(b.details_jcs)
require jcs(d) == d_bytes and d.v == "cn4ad-details/1"
c = sha256(unhex(b.salt) || d_bytes)
require R.commit == "sha256:" + hex(c)
e = sha256("cn4ad-chain/1" || unhex(I.prev) || c
|| uint64_be(b.seq))
require R.entry == "sha256:" + hex(e)
require R.rid == base32_26(e)
require ed25519_verify(keys[R.kid], R)
A = anchor of W (or of T)
require I.from == b.seq and I.to == A.seq
require len(I.commits) == A.seq - b.seq
h = e; k = b.seq
for ci in I.commits:
k = k + 1
h = sha256("cn4ad-chain/1" || h || unhex(ci) || uint64_be(k))
require A.head == "sha256:" + hex(h)
require ed25519_verify(keys[A.kid] (notary role), A)
if W != null: require ed25519_verify(keys[W.bb_kid], W)
if T != null: require verify_tstamp(T)
require W or T present and verified
authority_closed = is_hash(d.authority_ref)
and d.separation_ok == true
return (all requirements hold) and authority_closed
Any parse error, missing field, unknown key identifier, or exception fails verification. A Witness record that is present but invalid fails the whole bundle, even when a time-stamp record verifies. Verifiers MAY apply a stricter policy that requires a Witness record, external evidence, or Bitcoin evidence specifically.¶
Notary and Witness public keys are published at a well-known location. Keys are rotated by introducing a new key identifier; a retired key remains published with its retirement time so that receipts it signed remain verifiable. Pinned TSA roots SHOULD be published alongside the keys.¶
The Cooren Signal Protocol [MCLEOD-CSP] is the companion wire protocol. It carries the coordination operations of Section 4 in authenticated frames and is used between the implementation's key vault, key verifier, IAM, and Authority Firewall. This document does not depend on CSP; the architecture can be carried over other transports.¶
Agent authorization is an active area, and several individual drafts address parts of the problem. This section positions Cooren against the work most closely related to it; the comparisons are based on the cited revisions.¶
AADP [I-D.saha-aadp] defines a wire contract between a Policy Decision Point and Policy Enforcement Points for per-action authorization, with autonomy tiers, verdicts with reason codes, an approval lifecycle, budgets, and a kill switch. The Authority Firewall plays a role comparable to an AADP PDP, and Doors are comparable to PEPs. Cooren differs in emphasis: it treats the human Authority as structurally separate from all Participants, makes hard constraints that bind the root key an explicit class, requires a written reason for every escalated approval and override, requires periodic fresh human authorization, and defines an evidence layer with an independent Witness. An implementation could expose the Authority Firewall through AADP messages.¶
Adaptive Authorization for Agentic AI [I-D.das-agentic-adaptive-authorization] holds AI-generated operations as non-effective candidates and focuses on ensuring that the act that finally occurs is exactly the act that was evaluated. That property is complementary and addresses the binding gap described in Section 13.3.¶
SCITT [RFC9943] defines an architecture for transparency services that register signed statements, and COSE Receipts [RFC9942] prove inclusion in a verifiable data structure. Several SCITT profiles record agent actions or authorizations, including pre-execution authorization records [I-D.munoz-scitt-permit-profile], authority, approval, and outcome evidence [I-D.malhotra-scitt-oar], and hash-chained agent action receipts [I-D.noa-scitt-ai-agent-receipt]. Cooren's evidence layer predates and differs from these: it uses JSON with RFC 8785 canonicalization and Ed25519 rather than COSE, a linear hash chain with inclusion proofs rather than a Merkle tree, salted commitments so that receipts reveal no decision contents, and a four-boolean public check. Registering Cooren Anchors or decision records as SCITT signed statements is a natural future profile.¶
The Approval-Evidence Object [I-D.gunuganti-agent-approval-evidence] seals evidence of an owner's approval of agent spending, and the Agent Authorization Envelope [I-D.kroehl-agentic-trust-aae] carries mandate, constraints, and validity blocks. These are comparable to an audit chain entry and to C&P, respectively, and could serve as interchange formats for them.¶
OAuth 2.0 [RFC6749], Rich Authorization Requests [RFC9396], and Transaction Tokens [I-D.ietf-oauth-transaction-tokens] establish and propagate who may request what. OpenID CIBA [CIBA] obtains a user's out-of-band consent. Cooren operates downstream of these: it assumes authenticated callers and decides whether a specific proposed transition executes, with a record that a party outside the operator can check.¶
Certificate Transparency [RFC9162] motivates witnessing and consistency checking of append-only logs. Bitcoin-anchored time-stamping with OpenTimestamps is also described in [I-D.fassbender-scitt-time-anchor]; Cooren combines it with RFC 3161 tokens from independent TSAs.¶
This section records the status of known implementations at the time of posting, following [RFC7942], and is to be removed before publication as an RFC.¶
McLeod Interactive Group LLC.¶
The six operations run as a REST API at https://cooren.dev and as a Model Context Protocol server. The primitive was extracted from a production consumer group-decision application and also runs in microcontroller firmware [COOREN-PAPER].¶
A single-tenant appliance, deployable as one container on customer infrastructure or hosted. Running: the default-off, human-gated decision path; hard constraints that bind the operator; lapse of authority without periodic fresh human authorization; per-Session and platform-wide hash-chained audit with per-key fingerprints and an integrity check that reports the first broken link; JSON export of the audit data; the six gate types; and a hardened deployment (unprivileged service account, sandboxing, default-deny networking, no inbound port, outbound-only tunnel). Specified, not built: a signed Decision Verification Record. Roadmap: hardware-enforced isolation of the gate; off-box, write-once log shipping; automatic fail-closed shutdown on detected tampering (tampering is detected and alerted today); and encryption of the database at rest. Not present: per-action cryptographic binding of approvals, multi-approver (N-of-M) approval, and a check that the approver is not a Participant.¶
Live for decisions recorded through the Coordination Engine API, including those forwarded by the MCP server: commitments, the notary chain, Ed25519-signed receipts and anchors, an independent Witness on separate hardware with its own key, and RFC 3161 and OpenTimestamps anchoring (enabled November 2026). The public verifier is at https://cooren.dev/verify. Authority Firewall decisions do not yet enter the notary chain; that link is planned.¶
A reference implementation is published under the Apache 2.0 license; see [MCLEOD-CSP].¶
The Coordination Engine is free to use. The primitive is published under CC BY 4.0 [COOREN-PAPER].¶
smcleod@mcleodinteractivegroup.com¶
Editor's Note (EN-4): Decide whether to publish the notary specification, test vectors, and offline verifier at a public URL to cite here.¶
This section follows the guidance of [RFC3552].¶
A gate governs only the transitions routed through it. An Agent that holds credentials allowing it to reach the Execution Target directly bypasses the Authority Firewall entirely. Deployments MUST ensure that the credentials needed to perform a gated action are available only to the Door path, and SHOULD test that an Agent attempting the action by another path fails. The Authority Firewall MUST NOT run inside the Agent's process or be invoked at the Agent's discretion.¶
An Agent's rationale and confidence are attacker-influenced input. A compromised or manipulated Agent can write a persuasive rationale to induce an Approver to approve, or inflate confidence to satisfy an eligibility floor. Confidence MUST NOT confer authority. The approval interface SHOULD display the canonical proposed action and its arguments prominently and separately from the Agent's rationale, and SHOULD render rationale as untrusted text.¶
The implementation does not bind a cryptographic digest of the proposed action and its arguments into the approval. An attacker able to alter the arguments between the moment a human reviews a proposal and the moment the action executes could therefore cause an action other than the one the human understood to run, within the bounds the HARD constraints allow. Deployments should keep the path from approval to the Execution Target inside the Authority Firewall's trust boundary. A future revision may define per-action binding, for example by hashing the canonical proposal into the approval and verifying the hash at the Door before execution, together with single-use enforcement of that binding.¶
No check prevents the holder of the key that records a decision from also being a Participant in the same Session. This is a gap in the implementation, not a design decision. Implementations SHOULD reject a request to record a decision when the Approver is also a Participant in the Session.¶
Opening a Gate requires one key. Compromise of a single key with decision authority therefore allows any escalated decision within that key's scope, though not one held closed by a HARD constraint or attempted after authority has lapsed. Requiring N-of-M human approval for selected gate types is future work.¶
An attacker who can change the C&P can pre-authorize harmful actions or weaken hard constraints. Creating an Arena requires an authorized operator. Who may edit an existing Arena is not specified (EN-1); until it is, deployments should restrict such edits to authorized operators and review them.¶
Fail-closed evaluation converts faults into blocked or escalated actions. An attacker who can make a constraint unevaluable (for example, by disrupting a data source) can deny service but cannot cause an unauthorized execution. Operators should plan for this availability trade-off. Conversely, the evidence layer is intentionally fail-open with respect to execution: a Notary outage does not block authorized actions, and the resulting gaps are logged and caught up; a verifier should treat an entry with no receipt as unverified, not as valid.¶
Compromise of a key with decision authority allows opening Gates within the key's scope, but not a Gate held by a HARD constraint. Lapse of authority limits use of keys on an unattended platform but does not stop a key used while human authority is current. Records prove that a key acted, not who held it. Keys held in a hardware-backed element on the Approver's device reduce this risk.¶
Compromise of the Notary key allows forged receipts and anchors until rotation; the Witness ledger and external time-stamps date genuine heads and expose forks. The Notary key MUST NOT reside on the host that serves the public API. Compromise of the Witness key allows forged witness records, which external time-stamps and a verifier policy requiring external evidence mitigate.¶
The Authority Firewall audit chain is hash-chained but neither signed nor externally anchored. Anyone with write access to the appliance's store can rebuild the chain from an altered link onward so that it verifies as intact; the chain detects partial or careless alteration, not a deliberate rewrite by an operator. The planned signed Decision Verification Record and the planned link into the notary chain are intended to close this gap.¶
For the notary chain, an operator who controls the application host, the Notary, and the Witness could rebuild the chain from genesis. Heads already stamped by external TSAs or anchored in Bitcoin cannot be re-stamped for a past time, so such a rewrite is detectable for any head stamped before it, provided a verifier holds an earlier receipt, bundle, or published record.¶
The Coordination Engine's gate runs in the same trust domain as the API host. The evidence layer makes after-the-fact alteration detectable; it does not make the API host honest at record time.¶
TSA tokens are only as trustworthy as the TSA's key and the pinned root. Using at least two TSAs from separate operators, pinning roots rather than relying on a system trust store, and adding a Bitcoin anchor limit the impact of one TSA's compromise or distrust. Calendar servers can delay but not forge Bitcoin attestations, which are checked against block headers. The upgrade allowlist prevents a hostile proof from directing the Notary to arbitrary URLs.¶
Detecting tampering is not the same as responding to it. The described implementation alerts on detected tampering; automatic fail-closed shutdown on tamper is on its roadmap. Deployments that need an automatic response must provide one.¶
Record types are versioned through the "v" field and keys through key identifiers. A future version could change hash or signature algorithms by defining new record versions. Verifiers MUST reject unknown versions.¶
This section follows the guidance of [RFC6973].¶
Receipts carry only a commitment, a chain entry, a record identifier, a key identifier, and a signature. They reveal no participants, options, outcome, account, or time. The public verification endpoint returns four booleans and no reasons, which discloses to the holder of a receipt only that the receipt exists and whether it verifies. Verification endpoints SHOULD be rate-limited.¶
Frozen details refer to participants and authorities only by hashes of their tokens, and to accounts by a peppered hash. Details become readable only to a party given both the details and the salt. Destroying a salt makes the corresponding commitment permanently unopenable, which supports deletion without breaking the chain.¶
Written reasons and Agent rationales may contain personal data. They are held in the audit chain or in frozen details, not in public receipts. Operators should apply retention limits and access controls to the audit chain and its exports.¶
Only the SHA-256 digest of a signed Anchor is sent to TSAs and OpenTimestamps calendars, and a random nonce is added for OpenTimestamps. Anchors themselves carry no decision content.¶
The Authority Firewall sees only what an Agent submits as a proposal and the approval record; it does not proxy model traffic. When self-hosted, no decision data needs to leave the operator's environment, although external time-stamping sends anchor digests outward.¶
This document has no IANA actions.¶
Editor's Note (EN-5): If the record formats are to be exchanged across implementations, media types such as "application/cn4ad-receipt+json" could be registered in a later revision.¶
This appendix collects the editor's notes above and is to be removed before publication.¶
EN-1: Who may change the constraints of an existing Arena, and whether such changes are recorded.¶
EN-2: Whether to publish the audit JSON export format.¶
EN-3: Periodic publication of the Witness ledger head.¶
EN-4: Public location of the notary specification, vectors, and verifier.¶
EN-5: Media type registration.¶
The coordination primitive was extracted from The Dinner Decider, a group decision application by McLeod Interactive Group LLC.¶