| Internet-Draft | Agent Action Receipts | November 2026 |
| Sahu | Expires 2 June 2027 | [Page] |
This document specifies a format for action receipts: compact, individually signed JSON records that state that a specific AI agent attempted a specific action at a specific time, under a specific policy decision, and what the outcome was. Receipts are linked into an append-only hash chain so that deletion, insertion, reordering, or modification of any previously recorded receipt is detectable by a verifier that holds only the records and the signer's public key.¶
The format is deliberately small and self-contained. Verification requires no network access, no service operated by the producer of the receipts, and no state beyond the records themselves and a trust anchor obtained out of band. This document specifies the record fields, the canonical byte sequence that is signed, the chain linkage rule, an optional per-chain sequence number, the verification procedure, a signed head assertion for deployments that can anchor one, and test vectors.¶
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 2 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 built on large language models now take consequential actions on behalf of organizations: they deploy code, modify databases, send messages, install dependencies, and initiate payments. Organizations deploying such agents are increasingly required to answer, after the fact, a narrow and concrete question: what did this agent do, under whose authority, and can that answer be checked by someone who does not trust the party providing it.¶
Existing telemetry does not answer that question. Application logs, distributed traces, and vendor audit consoles are written by, and mutable by, the same operator whose conduct is in question. A record that the operator can silently edit is evidence of intent, not evidence of fact. Regulatory instruments increasingly assume the existence of something stronger: [EU-AI-ACT] requires automatic recording of events over the lifetime of high-risk systems, and [ISO24970] specifies an information model for AI system logging, but neither prescribes an interoperable record format with integrity properties, and neither can be satisfied by a format that only its author can check.¶
This document specifies such a format. It has three properties, in ascending order of what they cost to provide:¶
The third property is the design constraint that shapes the rest of the format. Deployments in regulated, disconnected, or air-gapped environments cannot rely on a transparency service being reachable, and auditors in adversarial settings cannot rely on one being honest. This document therefore specifies a format whose base verification is self-contained, and identifies (in Section 15) how external anchoring composes with it where such anchoring is available.¶
Signed records of agent actions are an active area with a substantial body of concurrent independent work. Neither hash-chaining such records, nor signing them with Ed25519, nor verifying them offline is novel to this document, and this section states plainly what is shared and what is not.¶
Records that are individually signed and linked to their predecessor are specified in [I-D.farley-acta-signed-receipts] (optionally, as a commitment mode) and required in [I-D.marques-asqav-compliance-receipts], which profiles it for regulatory use. [I-D.msebenzi-evidence-action] specifies an append-only chained evidence record recomputable without trusting the producing runtime, and [I-D.sharif-agent-audit-trail] specifies a newline-delimited JSON audit record with an equivalent linkage member. [I-D.noa-scitt-ai-agent-receipt] and [I-D.mih-scitt-agent-action-capsule] specify richer records that may be registered with a transparency service while retaining an offline verification mode, and [I-D.emirdag-scitt-ai-agent-execution] specifies a per-record chain with sequence numbers alongside an independent custodian of the log.¶
Against that body of work this document is distinguished by one construction and one constraint. The construction: the chain link is the digest of the previous record as transmitted, over its exact octets including its signature and including any member the verifier does not recognize (Section 6). In the revisions cited here, every other linkage digests a re-canonicalization of the previous record, or of that record with its signature removed. Digesting the transmitted octets means chain verification is independent of agreement about canonicalization, requires no canonicalizer at all, and covers extension members that a re-canonicalized digest would exclude. The constraint: base verification is specified as a pure function of the records and a trust anchor, with no anchor, log, service, or timestamp authority anywhere in the required path, because the deployments this format serves may have none.¶
This document specifies a record format, not an audit architecture. [I-D.kuehlewind-audit-architecture] describes an architecture for auditing agent delegation and interaction without specifying a wire format; the format here is intended to be usable as one concrete realization of records within such an architecture.¶
[I-D.he-agentproto-verifier-evidence] addresses a complementary question: not what a record states, but what a verifier checked and did not check when it reports a verdict from such records, including whether a completeness claim has any basis beyond the party that produced the records. Section 11 of this document states that the chain shows that no recorded receipt was removed, and says nothing about actions the signer declined to record; [I-D.he-agentproto-verifier-evidence] is the verifier-side statement of the same limit.¶
[RFC9943] specifies an architecture for supply-chain integrity, transparency, and trust, including transparency services that issue receipts for registered signed statements. That architecture and this format are complementary: the records specified here are self-anchored by default, and a transparency service can additionally anchor chain heads where one is available and trusted. Section 15 discusses this.¶
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.¶
The following terms are used:¶
A receipt is a JSON object [RFC8259]. The following members are defined.¶
| Member | Type | Presence | Description |
|---|---|---|---|
| step_id | string | REQUIRED | Identifier for this action, unique within the log. |
| action_id | string | REQUIRED | Identifier for the kind of action, for example a tool name or a namespaced decision identifier. |
| params | any JSON value | REQUIRED | Structured detail about the action. See Section 12. |
| success | boolean | REQUIRED | Whether the action succeeded. |
| ts_ms | number | REQUIRED | Time of the action as an integer count of milliseconds since 1970-01-01T00:00:00Z, host-asserted. |
| seq | number | OPTIONAL | Per-chain sequence number, as specified in Section 7. |
| actor | object | OPTIONAL | Attribution, with members agent (string) and user (string), in that order. |
| prev_hash | string | OPTIONAL | Chain link, as specified in Section 6. Absent on the first receipt of a log. |
| public_key | string | REQUIRED | The signer's Ed25519 public key, 32 octets, lowercase base16 [RFC4648]. |
| signature | string | REQUIRED | Detached Ed25519 signature, 64 octets, lowercase base16 [RFC4648]. |
A receipt MAY contain additional members. A verifier MUST ignore members it does not recognize, and MUST NOT include them in the signed byte sequence. This rule is what permits the format to be extended without invalidating deployed verifiers; an example extension is given in Section 10.¶
The members public_key and signature are carried in the receipt but are not themselves part of the signed byte sequence, for the obvious reason.¶
The signature is computed over a canonical byte sequence derived from the receipt. The sequence is the UTF-8 encoding of a compact JSON serialization (no whitespace between tokens) of an object containing exactly the signed members, constructed as follows.¶
The signed members appear in this fixed order, which is NOT lexicographic:¶
Within params, and recursively within every JSON object nested inside params, member names MUST be sorted in ascending order by their Unicode code points. Array element order is semantic and MUST be preserved. Within actor, the members appear in the fixed order agent, then user; they are NOT sorted.¶
Omission is total: an absent seq, actor, or prev_hash contributes no member name, no value, and no separator. A receipt with no actor therefore signs identically to how it would have signed had the member never been defined.¶
Numbers MUST be serialized without exponent, without a leading plus sign, and without insignificant trailing zeros. Strings MUST be serialized using the shortest form permitted by [RFC8259], escaping only those characters that [RFC8259] requires to be escaped, using lowercase hexadecimal in \uXXXX escapes.¶
Note on two constructions. The outer member order above is fixed and non-lexicographic, while params is sorted. This asymmetry reflects deployed practice rather than aesthetics, and it is stated normatively here so that independent implementations agree byte-for-byte.¶
This document does not adopt [RFC8785] (JCS), and states that as a decision rather than an open question. The construction above permits a signer to emit a record in one pass without a canonicalizer; it is what deployed implementations sign, and what two independently written implementations have verified byte-for-byte against the published vectors (Section 14); and adopting JCS would invalidate every receipt already in the field in exchange for no change in security properties. The choice affects only the signature: chain linkage per Section 6 is computed over transmitted octets and requires no canonicalization under either construction.¶
Implementations that construct or verify the canonical sequence MUST be able to reproduce these cases identically, and deployments SHOULD avoid the two constructions below until a future revision resolves them:¶
The signature is a detached Ed25519 signature as specified in [RFC8032], computed over the canonical byte sequence of Section 4, encoded as 128 lowercase base16 characters [RFC4648]. The public key is encoded as 64 lowercase base16 characters. A verifier MUST reject a receipt whose public_key or signature is not of the exact expected length or contains characters outside the set 0-9 and a-f.¶
Ed25519 is deterministic, so a receipt signed by any conforming implementation produces byte-identical signature octets. A verifier therefore need not know which cryptographic module produced a receipt in order to verify it.¶
A receipt log is a sequence of receipts serialized as newline-delimited JSON: one receipt per line, no line containing an unescaped newline.¶
The first receipt of a log MUST NOT contain prev_hash. Every subsequent receipt MUST contain prev_hash, whose value is the SHA-256 digest [RFC6234] of the exact octets of the immediately preceding line, excluding its terminating newline, encoded as 64 lowercase base16 characters [RFC4648].¶
The digest is computed over the octets as serialized, including public_key and signature and including any member a verifier does not recognize. A verifier MUST NOT re-serialize, reformat, or normalize a line before computing its digest; doing so defeats the check.¶
Because prev_hash is part of the canonical byte sequence, each signature transitively commits to every earlier line in the log.¶
A receipt MAY carry a seq member: a non-negative integer, part of the signed byte sequence at the position specified in Section 4. Sequence numbers are a per-log profile: if any receipt in a log carries seq, every receipt in that log MUST carry it. The first receipt of a log using the profile MUST carry the value 0, and each subsequent receipt MUST carry a value exactly one greater than its predecessor.¶
Sequence numbers answer a question that linkage cannot. The chain proves that the presented lines are exactly what was written, in the order written; it says nothing about whether the writer assigned each record the position it claims. Two records claiming the same position (a fork rendered sequential), or a numbering that skips a position, are well-formed and validly linked as far as the chain is concerned. With seq in the signed set, each receipt commits to its position, so a verifier detects a gap and a duplicate position as distinct, determinate conditions, and records carry an order that survives being separated from their file.¶
Repetition of an action and repetition of a record are likewise distinct. An action genuinely performed twice yields two receipts with distinct step_id values and consecutive seq values. A record replayed at the source yields a repeated step_id (reported per Section 8) or a repeated seq, or both. The two signals are independent and a verifier evaluates both.¶
A verifier implementing only the signed set of revision -00 of this document will reconstruct the canonical byte sequence of a seq-bearing receipt without its seq member, and will therefore report a signature failure. This is the intended failure direction: a receipt whose position claim cannot be checked is reported, never silently accepted with that claim unprotected.¶
Given a receipt log and a trust anchor, a verifier performs the following. The procedure requires no network access and no state beyond its inputs.¶
For each line, in order:¶
If any receipt in the log carries seq, additionally check the conditions of Section 7: the profile is in use on every line, the first value is 0, and each value increments by exactly one. A gap and a repeated position MUST be reported as distinct conditions, each at a determinate line.¶
A verifier MUST report a failure at a determinate position rather than discarding the offending line, and MUST NOT report an overall success if any line failed. A line that is not a well-formed receipt MUST surface as a failure and MUST NOT be silently skipped: an unparseable or unsigned line inserted into a log is precisely the event the format exists to make visible.¶
Step 7 is not optional. Steps 1 through 6 prove that a log is internally consistent and was produced by the holder of some key; only step 7 connects that key to an identity the verifier cares about. See Section 11.¶
A chain can be truncated at its head: removing the most recent N receipts leaves a shorter but internally consistent log (Section 11). Detecting this requires state outside the log. This section specifies the minimal such state as a signed object, the head assertion, for deployments that have somewhere to anchor one. Base verification per Section 8 remains self-contained and does not require it.¶
A head assertion is a JSON object with the following members, serialized in this order:¶
| Member | Type | Description |
|---|---|---|
| chain_id | string | SHA-256 digest of the exact octets of the log's first line, 64 lowercase base16 characters. The identifier is derived, not assigned: any holder of the log computes it, and no registry or coordination exists. |
| count | number | The number of receipts in the log at the time of assertion. |
| head_hash | string | SHA-256 digest of the exact octets of the log's last line, 64 lowercase base16 characters. |
| asserted_ts_ms | number | Time of the assertion, host-asserted, with the caveats of Section 11. |
| public_key | string | As in Section 3. Not part of the signed bytes. |
| signature | string | As in Section 3. Not part of the signed bytes. |
The signature is a detached Ed25519 signature over the UTF-8 encoding of the ASCII prefix "agent-receipt-head-v1:" followed immediately by the compact JSON serialization of an object containing exactly chain_id, count, head_hash, and asserted_ts_ms, in that order, under the serialization rules of Section 4. The prefix is a domain separation tag: bytes signed as a head assertion begin with a literal that no receipt's canonical byte sequence can begin with, so a signature can never be valid as both.¶
The assertion MAY be signed by the chain's own signer, in which case it states "my log had this head and this count at this moment", or counter-signed by an independent party, in which case it additionally witnesses that state. Either way its value lies entirely in where it is kept: an assertion stored alongside the log truncates with it. It may be bound to a timestamp token [RFC3161], committed to an external ledger [I-D.fassbender-scitt-time-anchor], registered with a transparency service [RFC9943], or exchanged with a counterparty; comparable constructions for append-only logs appear in [I-D.melegassi-opsawg-mvps-logging]. This document does not specify the anchoring transport.¶
To check an assertion against a log, a verifier recomputes chain_id from the first line and head_hash from the last line, compares count against the number of lines, verifies the signature over the prefixed bytes, and checks the key against a trust anchor. A verifier holding an assertion with count N detects every presentation of that chain truncated below N.¶
Additional members MAY be added to a receipt. Members that are not in the signed set of Section 4 are ignored by verifiers implementing this document, which allows deployments to carry correlation identifiers, source labels, or transport metadata without coordination.¶
A member that must be integrity-protected cannot be added this way; it requires a profile that extends the signed set, and such a profile MUST specify its position in the canonical order.¶
An example of an extension that requires no change to the signed set is a second signature over the same canonical bytes using a different algorithm, carried in additional members alongside the Ed25519 signature. A verifier that does not implement the second algorithm ignores those members and still obtains a correct Ed25519 verdict; a verifier that does implement it MUST reject a receipt in which those members are present but incomplete or inconsistent, since a partially-present second signature is indistinguishable from an attempt to strip it.¶
This format provides tamper-evidence, not tamper-proofing. The distinction is load-bearing and implementers are cautioned against describing it otherwise.¶
A compromised signer can produce arbitrary receipts. The private key signs whatever it is given. An adversary who obtains the key, or who executes code with the signer's privileges, can produce a well-formed log of events that never happened, or re-sign an edited history from any point forward. Nothing in this document detects that. What the format provides is that such an adversary must possess the key: a party who holds only the records cannot alter them undetectably.¶
Actions that were never recorded leave no trace. The chain proves that no recorded receipt was removed. It says nothing about actions the signer declined to record, whether by omission, misconfiguration, or suppression before signing. Claims of the form "this log shows everything the agent did" are not supported by this format; claims of the form "this log has not been altered since it was written" are.¶
A log can be truncated at its end. Removing the most recent N receipts leaves a shorter but internally consistent chain, and no property of the presented records reveals the omission. This is a general limit of self-anchored chains rather than a property of this format: detecting head truncation requires state outside the log. The minimal such state is the signed head assertion specified in Section 9. Deployments that require truncation detection MUST anchor head assertions outside the log. This document deliberately does not make them part of base verification, because the deployments it targets may have no reachable anchor at all.¶
Key binding is out of scope. A valid signature proves the record was signed by the holder of the key in public_key, and nothing more. A verifier that omits step 6 of Section 8 verifies only that an adversary is internally consistent. Trust anchors MUST be obtained through a channel independent of the log.¶
Timestamps are asserted, not attested. The ts_ms member is the signer's clock reading. It is not evidence of time and MUST NOT be relied on where an adversary controls the host. Where bounded time is required, an external timestamp token [RFC3161] over chain heads provides an upper bound.¶
One writer per chain. The linkage rule assumes a single writer appending to one log. Concurrent writers produce forks that verify individually but break the chain. Each signer SHOULD maintain its own log; merging across signers is a verifier-side concern and MUST NOT be done by rewriting lines.¶
Canonicalization is an attack surface. An implementation that reconstructs the canonical sequence differently from the signer will report spurious failures; one that is lenient where the signer is strict may accept two distinct receipts as equivalent. The constraints in Section 4 exist for this reason and implementations SHOULD test against the vectors in Appendix A.¶
Keys are separated by use, not by tag. The canonical byte sequence of a receipt carries no domain separation prefix, a compatibility constraint inherited from deployed records; the head assertion of Section 9, which has no deployed base, carries one. A receipt's canonical bytes always form a JSON object whose first member is step_id, which no other construction in this document can produce, but that is an incidental property and not a defense against an unrelated protocol that signs attacker-influenced JSON with the same key. A key used to sign receipts MUST NOT be used to sign anything other than receipts and head assertions as specified here. A future incompatible revision may introduce an explicit prefix for receipt signatures.¶
Sequence numbers are the signer's claims about its own ordering. A compromised signer numbers fabricated records perfectly. What seq detects is narrower and still useful: source-side replay or misnumbering by a recorder that is honest but wrong, forks rendered sequential, and loss of order when records are separated from their file. It does not strengthen the trust model of this section.¶
The params member is the one most likely to carry sensitive content, and deployments control what it contains. Receipts are evidence that an action occurred and how it was decided; they need not, and generally SHOULD NOT, contain the content the action operated on. Deployments SHOULD record identifiers, digests, counts, and decisions rather than payloads, prompts, message bodies, file contents, credentials, or personal data.¶
This is not merely advice about hygiene. Receipts are designed to be retained for long periods, exported to auditors, and verified by parties outside the organization that produced them, so content placed in params propagates further and lives longer than content in ordinary logs. Where a receipt must commit to content, it SHOULD carry a digest of that content rather than the content itself.¶
Where a deployment must retain a value rather than replace it with a digest, and disclose it to some verifiers but not others, a per-field selective-disclosure construction such as [I-D.mih-scitt-agent-action-capsule-sel-disc] can be applied to the params value. Such a construction changes the value of params and not the set of signed members, so it composes with this format without altering the signature or the chain: the chain link is computed over the transmitted octets whatever those octets contain. Chain linkage members MUST NOT be made concealable by any such profile.¶
The actor member attributes an action to a named agent and user. Unless bound to an external identity system, these values are self-asserted by the signer and constitute attribution, not authentication. Deployments SHOULD treat them accordingly, and MAY omit actor entirely where attribution is not required.¶
This document requests registration of the following media type in the "Media Types" registry.¶
Whether the action_id member warrants an IANA registry of namespaces is left open; see Section 15.¶
[[RFC Editor: please remove this entire section, and the reference to RFC 7942, before publication.]]¶
This section records the implementation status of the format at the time of writing, in the spirit of [RFC7942].¶
The format is implemented and deployed in commercially available software for macOS that records governed agent actions on end-user devices and in enterprise fleets. Four verifier implementations exist within that product line: a compiled implementation used by the producing software and by a standalone command-line auditor that holds no keys and makes no network calls; a second implementation in TypeScript using platform cryptography, used for browser-side verification; a self-contained HTML export that re-verifies its own embedded receipts with no network access; and the command-line auditor's bundle and range verification modes.¶
A public conformance vector suite accompanies this document at https://github.com/governex/agent-action-receipts-vectors: sixteen receipt logs and a signed head assertion, each with machine-checkable expected outcomes stated in a manifest. The vectors were generated by the shipping implementation and verified by an independently written Python implementation maintained with the suite.¶
The original thirteen vectors of that suite have additionally been verified by an implementation from a second organization. Aleksei Safonov, Independent Researcher and Maintainer of T-Trace/OpenPoC, ran a from-scratch verifier against the suite at a pinned commit and reported thirteen of thirteen in agreement, no disagreements, and no unsupported cases, including both boundary cases: the deliberately clean verification of the truncated chain, and the receipt whose signatures all pass while the chain over transmitted octets breaks. The continuous-integration workflow for that verification checks out only the pinned manifest and vector data and does not import or execute any code from the suite, which makes it a second implementation rather than a second execution of the first. The compatibility report (https://github.com/safal207/T-Trace/blob/main/docs/governex-action-receipts-compatibility.md), verifier source (https://github.com/safal207/T-Trace/blob/main/openpoc/action_receipt_compat.py), workflow (https://github.com/safal207/T-Trace/actions/workflows/governex-action-receipts.yml), and review record (https://github.com/safal207/T-Trace/pull/18) are public. In the implementer's own words, the result is interoperability evidence only: it does not prove this specification correct, does not prove capture completeness, and does not imply endorsement in either direction.¶
The head assertion of Section 9 has also been built, independently, by Zhang Jialiang (TLotU), maintainer of an open-source agent-behavior audit layer (https://github.com/TLotU-lab/cyberseccat-fence). Jialiang reported, by email on 2026-10-01, a signed head assertion constructed from this document's text and anchored externally with an OpenTimestamps calendar submission, and an independent verifier run against two constructed hostile bundles: a truncated bundle (one receipt dropped) that failed head-assertion recomputation, and an injected bundle (an unrecognized field added to one receipt) whose own signature stayed valid while the following receipt's chain linkage broke, with the two checks kept separable in the verifier's output. Two limits were stated alongside the report: a controlled signing key can forge assertions, a ceiling this document's Section 11 already states; and the completeness claims of that implementation hold only for network egress. This report is not yet backed by a public artifact; kriya native has asked for the sample bundle and verifier output to be published, and this paragraph is to be updated with those links once they arrive.¶
This section is intended to be removed before publication as an RFC.¶
The vectors inline here are illustrative. The full machine-checkable suite - sixteen receipt logs and a signed head assertion, with a manifest of expected outcomes covering tampering, reordering, interior deletion, replayed records, sequence-number gaps and repeats, and the deliberately clean truncated chain - is published at https://github.com/governex/agent-action-receipts-vectors and is generated with the same test key.¶
The signing key below is a test key and MUST NOT be used for any other purpose. It is a 32-octet Ed25519 seed consisting of the octet 0x01 repeated 32 times.¶
seed: 0101010101010101010101010101010101010101010101010101010101010101 public_key: 8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c¶
Canonical byte sequence (UTF-8, no trailing newline; line-wrapped here for presentation only):¶
{"step_id":"01J8Z7QX9K","action_id":"kriya.gate.decision","params"
:{"class":"publish","rule_id":"npm-publish","tier":"approve"},"suc
cess":true,"ts_ms":1755300000000,"actor":{"agent":"claude-code","u
ser":"alice"}}
¶
Note that params appears sorted (class, rule_id, tier) in the canonical sequence while the serialized line below carries the members in their original order, and that prev_hash is absent entirely.¶
Serialized line:¶
{"step_id":"01J8Z7QX9K","action_id":"kriya.gate.decision","params"
:{"rule_id":"npm-publish","tier":"approve","class":"publish"},"suc
cess":true,"ts_ms":1755300000000,"actor":{"agent":"claude-code","u
ser":"alice"},"public_key":"8a88e3dd7409f195fd52db2d3cba5d72ca6709
bf1d94121bf3748801b40f6f5c","signature":"ab6afa750440d38f72dc5601f
45b1df918de60049b2accbb438dd909222f42755a534ee67e2eb1397f9d3ca6bd0
bf67f1ec078ecc60c08c92438acd2b7dc5802"}
¶
SHA-256 of that line's octets, which is the prev_hash of vector 2:¶
18a2a79ac5e4dcc31172783a0f33efc1518d426c5cf0ccd24982d41c9aa3ee4c¶
Canonical byte sequence:¶
{"step_id":"01J8Z7QXB2","action_id":"kriya.gate.approval","params"
:{"approver":"alice","decision":"approved","rule_id":"npm-publish"
},"success":true,"ts_ms":1755300012000,"actor":{"agent":"claude-co
de","user":"alice"},"prev_hash":"18a2a79ac5e4dcc31172783a0f33efc15
18d426c5cf0ccd24982d41c9aa3ee4c"}
¶
Serialized line:¶
{"step_id":"01J8Z7QXB2","action_id":"kriya.gate.approval","params"
:{"rule_id":"npm-publish","approver":"alice","decision":"approved"
},"success":true,"ts_ms":1755300012000,"actor":{"agent":"claude-co
de","user":"alice"},"prev_hash":"18a2a79ac5e4dcc31172783a0f33efc15
18d426c5cf0ccd24982d41c9aa3ee4c","public_key":"8a88e3dd7409f195fd5
2db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c","signature":"891dc8
8a6dc93507faca8d52eceb0baf107f325a1b3bb5c60e3e357cac86d6ccfd2a0bcf
3cee3b7237040483fe1b8c4f049fa72c6a59eb97a22d2c7e97d2cc02"}
¶
Replacing the string alice with mallory in the actor.user member of vector 1 produces a line whose signature verification fails, and whose SHA-256 digest no longer equals the prev_hash of vector 2. A conforming verifier reports a signature failure at line 1 and a chain break at line 2.¶
A head assertion (Section 9) over the two-receipt log formed by vectors 1 and 2. chain_id is the digest of vector 1's line, already shown above; head_hash is the digest of vector 2's line. The signed bytes are the ASCII prefix agent-receipt-head-v1: followed by the compact payload (line-wrapped here for presentation only):¶
agent-receipt-head-v1:{"chain_id":"18a2a79ac5e4dcc31172783a0f33e
fc1518d426c5cf0ccd24982d41c9aa3ee4c","count":2,"head_hash":"1501
9c01ea498da5b1a9fe74f871db45036543559682017ff4179a9b8d7864d2","a
sserted_ts_ms":1755300020000}
¶
Serialized assertion:¶
{"chain_id":"18a2a79ac5e4dcc31172783a0f33efc1518d426c5cf0ccd2498
2d41c9aa3ee4c","count":2,"head_hash":"15019c01ea498da5b1a9fe74f8
71db45036543559682017ff4179a9b8d7864d2","asserted_ts_ms":1755300
020000,"public_key":"8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d9
4121bf3748801b40f6f5c","signature":"b89d68f915257bf8ec21b4a3eaa0
34fb5b865135ae3b060467b6119926ede589b9c72c50bf097a1f4e6cf69127ff
773b3bd0e6b515c0498852f67545c4f3ea0c"}
¶
Truncating the log to vector 1 alone leaves a chain that verifies clean, which is the limit stated in Section 11; against this assertion the count and the head digest both fail to match, which is the detection.¶
This section is to be removed before publication as an RFC.¶
A considerable body of concurrent independent work established signed records of agent actions as a subject worth specifying, and sharpened the problem statement this document responds to. The author thanks the authors of that work, cited throughout and surveyed in Section 1.1, and notes that the convergence of several unrelated efforts on similar constructions is itself evidence that the requirement is real. The author additionally thanks Aleksei Safonov for the independent verification recorded in Section 14 and for raising the ordering-versus-repetition question that Section 7 resolves.¶