agent-evidence-vectors v0.39.0

Contract agent-audit-record/v1

Contract identifier: https://probityai.github.io/agent-evidence-vectors/contract/agent-audit-record/v1

Corpus: corpora/vectors-agent-audit-record. Carried in release v0.39.0.


Agent audit record conformance vectors

The conformance corpus of the Internet-Draft draft-gilda-audit-agent-audit-record-00, Appendix B, published member for member and in the table's order. Every row of that table is one member here, and each MANIFEST.json entry carries the row's identifier in draftId (A1, F3b, R4, ...) and its from column in parentDraftId. After the last row come seven members for sentences of Section 5.4 that Appendix B has no row for; each carries draftSection and continues the identifier series beside it (FR13b, FR16, FR17a to FR17c, FR18, EV14). The last members are rows of revision 01 of the draft: TI6, V4, V5, FR14 and FR15, then CS1 to CS40, which bind consumption state with an operation key, then the rows written for revision 02: A21 (an api-key agent authentication), SQ1 to SQ5 (the sequence member and record identity) and R10 to R16 (OpenTimestamps anchors and the delegation root), then the rows written for revision 03: IS1 and IS2, a record issued before its interval was sealed, and PS1 and PS2, principal standing under the v2 predicate type URI (below), then the rows written for revision 04: CS41 to CS49, the payee and the settled terms of a paid call, and PR1 to PR27, the authenticated principal, its identity provider and its issuer key pin (proposed text), and DS1 to DS10, whose data a call touched and for what purpose (proposed text), and PS3 to PS5, principal standing established from a published commitment (below). Each carries draftRevision and the identifier the draft prints. After them come X1 to X18, each an existing member with one field changed that reaches a refusal code no earlier member produced: the JSON profile (X1, X2), issuedAt without an offset (X3), the statement and predicate types (X4, X5), consumption shape and the operation key (X6, X7), the first subject (X8), an envelope and a statement that cannot be read (X9, X10), a retention entry that is malformed or names another envelope or an unexpected or unreadable delegation root (X11 to X14), a retained member whose record or entry cannot be read (X15, X16), and a set that cannot be read or whose records are malformed (X17, X18). INDEX.md lists every member beside its file.

Checked with Probity

Which text each member tests

Every member is published or proposed. A published member carries draftRevision, always a revision the IETF has published (the manifest lists them under publishedRevisions, with the SHA-256 of each text): for a row, the first revision whose Appendix B prints it; for a member carrying draftSection, the revision whose section first states its rule, which keeps that revision when a later Appendix B also prints the row (X2, X3 and X8 to X16 are -03 members that -04 prints). A proposed member carries proposed, naming the next revision its rule is proposed for and the proposed text under docs/proposals/, and no draftRevision, because no published revision states the rule it tests. textCounts gives the split: 235 published and 0 proposed at this commit.

Revision 04 was published on 19 November 2026, and its Appendix B prints all 68 members that were proposed for it: CS18 to CS54, PS3 to PS5, PR1 to PR11, DS1 to DS10, and X1, X4, X5, X6, X7, X17 and X18. They carry draftRevision -04, and the pages under docs/proposals/ that held their text are the record of it before publication. A verifier conforms to -04 when it reaches the manifest verdict on every member whose draftRevision is -04 or earlier. The generator derives each label from the published texts vendored under spec-vendored/ and refuses a member that is published and proposed at once, a label naming a section the revision does not carry, a section entry that names no revision earlier than the Appendix B that prints the row, and a proposed member whose text is missing.

Which revision this tests

Release Draft revision the corpus tests Members
v0.38.0 draft-gilda-audit-agent-audit-record-04 all 235 members: every member the row below lists, with the 68 rows -04 first prints labelled -04
After v0.28.0, before v0.38.0 draft-gilda-audit-agent-audit-record-03, and rows of -04 every member the v0.28.0 row lists, rows IS1, IS2, PS1 and PS2 of -03 and the open member PS1b beside them, and rows CS41 to CS54 written for -04
v0.28.0 draft-gilda-audit-agent-audit-record-02 the 99 Appendix B rows of -00, 7 Section 5.4 members, 22 rows of -01 and 13 rows of -02
v0.27.0 draft-gilda-audit-agent-audit-record-00, and 22 rows of -01 the 99 Appendix B rows, 7 Section 5.4 members and 22 rows of -01
v0.26.0 to v0.26.2 draft-gilda-audit-agent-audit-record-00, and five rows of -01 the 99 Appendix B rows, 7 Section 5.4 members and 5 rows of -01
v0.17.0 to v0.25.0 draft-gilda-wimse-agent-audit-record-02 68 at v0.18.1, 71 at v0.25.0

Draft -02 freezes the predicate URI: the URI that every signed payload in this corpus carries does not change after -02, and a change to it would be a breaking release under RELEASING.md.

A record under revision 02 carries no evaluation.inputs, which Section 5.4 of -00 requires under both statuses, so every member of v0.25.0 and earlier is malformed under -00 (EV13). A run of an earlier release checks the previous revision and is not a conformance claim for -00. To test -00, pin v0.26.0 or later. Every member keeps its Appendix B identifier; the file identifiers are digests of member bytes and moved where a member gained its inputs. ID-MAP.json maps each draftId to its file identifier at v0.18.1, v0.25.0, v0.26.0, v0.27.0 and v0.28.0 and says what changed.

Each member is a DSSE envelope whose payload is an in-toto Statement carrying one agent audit record, except R1 to R16: each of those is a retained record, a JSON object carrying the envelope beside its retention entry (Section 4.7). What a conforming verifier must reach is in the manifest, never in the file, so a member cannot be scored without being read.

Running it

# The reference reader, from the published package. Prints one line per
# failing member and exits 0 when every member behaves as the manifest says.
uvx agent-evidence-vectors==0.28.0 --corpus vectors-agent-audit-record

# From a checkout: rebuild every member (byte-identical on every machine),
# then judge the committed bytes, verify every signature with a second
# Ed25519 library, and sweep every rule for load-bearing effect.
uv run --extra generators python vectors-agent-audit-record/gen_vectors.py
uv run --extra generators python vectors-agent-audit-record/check_vectors.py

To score your own verifier, run it over each statements/<id>.json with the observer public key from keys.observer.publicKey, configured to accept the manifest's predicateType, or the member's own predicateType where the member carries one (PS1, PS1b and PS3 to PS5 carry the v2 URI), then score each verdict:

agent_evidence_vectors.auditrecord.conforming_verdicts(entry) returns that set for any manifest entry, so a scorer does not have to restate the rule:

from agent_evidence_vectors.auditrecord import conforming_verdicts

conforms = my_verdict in conforming_verdicts(entry)

expected.codes are the reference reader's names for its first refusal. The draft does not define codes, so a verifier is scored on the verdict alone; the codes are published so two implementations can compare where they stopped.

The external-verifier contract

A named verifier runs over this corpus through the harness and the GitHub Action:

uvx agent-evidence-vectors==<release> --corpus vectors-agent-audit-record \
  --verifier "<your verifier>" --report report.json
- uses: probityai/agent-evidence-vectors@<release tag>
  with:
    corpus: vectors-agent-audit-record
    verifier: <your verifier>

The contract, identifier https://probityai.github.io/agent-evidence-vectors/contract/agent-audit-record/v1:

The reference reader answers under the same contract, so it can stand in for your verifier when you wire the job:

agent-evidence-vectors --corpus vectors-agent-audit-record \
  --verifier "python3 -m agent_evidence_vectors.auditrecord"

Independent runs

The first reader from outside this repository is Mayur Agnihotri's agent-audit-record-reader, written from the draft, RFC 8785, RFC 7493 and DSSE and sharing no code with the reference reader. It agreed on 47 of 47 members of v0.16.0, the revision 01 corpus. Our rerun of it, pinned by digest, is in interop/wimse-agent-audit-record-reader-2026-10-01. Lars Kersten Kroehl of MolTrust ran all 68 members of v0.18.1, the revision 02 corpus, with the reference reader and reproduced every declared verdict (AUDIT list, 21 October 2026). He also pointed out that the corpus still tested revision 02 while -00 had replaced it; v0.26.0 is the regenerated corpus. No outside reader has run the -00 corpus yet.

Replaying the write chain

Section 5.3 requires the ordered writes to reproduce afterRoot from beforeRoot. The replay is four comparisons: a running root starts at beforeRoot; each write in effect.writes, in array order and whatever its attribution or inScope, carries a preStateDigest equal to the running root, and its postStateDigest becomes the running root; the root after the last write equals afterRoot; and a record with no write carries equal roots. Each comparison has its own reject member: E4 breaks only the start, E2 a link between two writes, E5 only the end, and E6 is the empty case. Appendix B has a row for E2 only, so E4, E5 and E6 are Section 5.3 members. scripts/write-chain-replay-test.py drops each comparison from the reference reader in turn and requires the judge to catch exactly that member.

Could not evaluate, and the human act behind a permit

A2 and A10 are one record twice. Both report a deny beside no effect, so both derive agreement of agree. A2 says the decision point evaluated the request; A10 says it could not, because its standing source was unavailable, and denied anyway. Under revision 01 there was no member to say which, so a verifier that lost its input wrote a record identical to a correctly enforced denial. Revision 02 carries evaluation.status and evaluation.unavailableInput beside the decision and leaves decision.reported and the agreement table as they were. EV1 to EV4 refuse the shapes that would blur the two, and EV3 is a revision 01 record: it has no evaluation member, and no member has a default, so it is malformed. -00 closes the member: EV11 refuses a status outside the closed set and EV12 a free-text reason beside it.

-00 adds policy-source to the inputs and says what decision.policyDigest names when the policy itself was the input the decision point could not obtain: the fallback it enforced. A18 is a permit under the allow-all fallback, a decision point failing open; A20 a deny under the deny-all fallback, from a decision point that does not hold the profile the request names; and A19 is A3, a deny that leaked, recorded during an outage of two inputs, which still derives disagree because evaluation is not an input to agreement.

A11 carries the optional oversight member: the kind of act a person took behind the permit (observation, check, decision or release) and the digest of the overseer's own signed record. OV1 and OV2 refuse an act outside that set and a member the draft does not define.

Rows that began as section members

Revision 02's accept rows carried one value of each closed set: A10 named standing-source and A11 named check. A reader that knew only those two values scored every row, and so did one that skipped several sentences of Sections 5.4 and 5.5. An outside reader written from the section text found this (draft-ietf-wimse-aims#157), and these members closed it. Each is a row of -00's Appendix B:

check_vectors.py holds each of these to the sentence it tests: it weakens the reference reader one sentence at a time and requires the corpus to fail on exactly that sentence's members, so a member that stopped forcing its sentence would be caught.

Freshness: Section 5.4

Every evaluation carries inputs, one entry per input the decision depended on, each with input, lastResult and maxAge. An entry's age runs from lastResult to decision.reportedAt, never to issuedAt; an age equal to maxAge is fresh; lastResult of none is never established; and a lastResult more than the 300-second skew tolerance after reportedAt is malformed. The unavailable inputs are derived from the entries: under evaluated they must be none, and under not-evaluated unavailableInput must name exactly them. Every member carries entries that agree with it, so a record shaped for revision 02, with no inputs, is refused (EV13).

A verifier cannot tell from the bytes which entry was forwarded: FR1, FR3 and FR4 fix that the age runs from the carried lastResult, which is all a forwarded entry can be held to. FR16 to FR18, FR13b and EV14 are proposed rows for a later revision of the draft. PR #248 first numbered them FR14, FR15a to FR15c and FR16, before any release carried them; they moved so that FR14 and FR15 name the rows revision 01 prints (below), and ID-MAP.json records each move.

Rows of revision 01

Revision 01 of the draft changes two rules, and five members test the change. Each carries draftRevision of draft-gilda-audit-agent-audit-record-01 and the identifier -01 prints in its Appendix B. Restoring the -00 coverage rules fails TI6, V4 and V5; restoring the -00 producer aggregation fails FR14's aggregation check. The record-only outcomes of FR14 and FR15 do not distinguish the revisions: the former is valid and the latter malformed under both. The -01 sentences each member tests are pinned by SHA-256 in REVISION-01-PIN.json.

check_vectors.py proves both changes are load-bearing: restoring the -00 coverage clause fails exactly TI6, V4 and V5, and restoring independent minima in aggregate_values fails FR14's aggregation check.

Consumption state and the operation key: CS1 to CS54

A cumulative limit, such as a delegated spending limit, makes a permit correct only if what is already consumed, plus what is held for earlier permits that have not settled, plus this call's amount, is within the limit. A consumption-state entry of evaluation.inputs may therefore carry a consumption member (limitDigest, unit, limit, consumed, reserved, requested, held and stateRevision), and decision.operationKey is the agent's identifier for one intended operation, taken from its signed request. The key is required whenever a consumption member is present. The design and its worked case (limit 50000 pence, 30000 consumed, one 12000 payment held) are in #213.

An x402 EVM upto permit that settles 0 sends no transaction, so settled.transaction is the empty string there and nowhere else: valid at amount 0 recorded with source chain (CS50), consumption-value-invalid at any other amount (CS51). The permit's nonce is still unspent, so its facilitator can settle up to the maximum until the permit's deadline (vendrell46's zero-settlement case on #307). The record keeps the operation key in held, with its amount and a deadline written as the record writes instants; without one it is consumption-value-invalid (CS52). The hold ends only when a later record of the ledger is dated at or after that deadline (CS54) or a record of the operation shows occurred: a later record dated before it that no longer holds the key is consumption-set-release-unshown, even though the zero settlement's own record shows none (CS53). This is the EVM scheme only; SVM upto runs on payment channels.

check_vectors.py drops each sentence of the rule and each set check in turn and requires the corpus to fail on exactly the members that test it; a retry keyed on the request digest fails CS10 and CS12, dropping the set checks fails CS7, CS8, CS17, CS20, CS21, CS30 to CS32, CS38 and CS39, reading the set checks per limitDigest fails CS20, CS21 and CS30, keying the claim by the limit document fails CS32 alone, reading it without its scope fails CS33, letting none not end a claim fails CS28, and matching an asset by its id alone fails CS39, dropping each payee and settled check fails CS42, CS44, CS45 and CS46, CS47 and CS49 in turn, counting the held amount rather than the settled one fails CS48 and CS54, refusing an empty transaction at an amount of 0 fails CS50, CS53 and CS54, accepting one at any other amount fails CS51, not requiring the deadline fails CS52, dropping the hold's set check fails CS53 alone, ending the hold only after the deadline, not at it, fails CS54, and allowing no skew tolerance on the issue or the expiry side of a principal's token fails PR13 or PR12. The Go rail in corpora/ runs the same sweep.

Principal standing and the v2 URI: PS1, PS2 and PS1b

Revision 03 adds principal-standing-source to the closed input set of Section 5.4: the source the standing of the principal the agent acts for is established from, kept apart from standing-source, the source of issuer standing. A closed set grows only under a new predicate type URI, so revision 03 publishes the extended set under the URI that ends in v2 (Section 8), and the set under the v1 URI is unchanged. Wes Jackson, editor of draft-jackson-wimse-evaluation-05, contributed both rows in #412, and the generator reproduces his bytes and file identifiers.

check_vectors.py holds both sides: a reader that applies the extended set under the v1 URI as well fails exactly PS2, and a reader that accepts the v2 URI with the v1 set fails exactly PS1 and PS3 to PS5 (below).

Principal standing from a published commitment: PS3 to PS5

Some deployments establish principal standing without a lookup by identifier: the source publishes a signed standing commitment, the presenter proves standing against it, and the relying party pins the publisher and a maximum age. The principal-standing-source entry then carries the as-of time of the commitment the decision point held as lastResult, and the pinned maximum age as maxAge. The three members are rows written for revision 04, from #402; each is built on PS1 and judged under the v2 URI.

check_vectors.py holds PS3 to the sentence that a lastResult of none is never established, beside A18, A20 and FR4.

Retained records and the dating check: Section 4.7

A signature says who signed a record and nothing about when. R1 to R16 are the record A1 (or, for R13 to R15, A1 carrying delegation.rootDigest) beside the retention entry a retaining party keeps for it. The envelope is valid in every one, and what each row tests is the dating check of Section 4.7.1, which the manifest carries in expected.dating beside the verdict and which never changes it:

Every anchor in these members is a transparency-log anchor that validates as a hash commitment, the one kind a verifier can check offline with a hash function alone. Its proof is the base64 of an RFC 9162 TransItem of type inclusion_proof_v2 (Section 4.12 of RFC 9162), the logged entry is the 32 bytes of envelopeDigest, so the leaf hash is SHA-256(0x00 || envelopeDigest), and the path recomputes by Section 2.1.3.2 of RFC 9162 to a tree head the verifier already holds. The manifest publishes those heads under anchorTrust.treeHeads, each with the log identifier, size, root and timestamp; a head held this way, rather than by its signature, is what makes the anchor a hash commitment under Section 4.7.2, and the head's timestamp is the anchor's time. envelopeDigest is the SHA-256 of the RFC 8785 bytes of the envelope object as the file carries it.

R10 to R12 and R16 carry opentimestamps anchors. The proof is a DetachedTimestampFile over envelopeDigest, and it validates only against an 80-byte Bitcoin block header the verifier already holds; the manifest pins those under anchorTrust.blockHeaders (height, header), and the anchor's time is the header's time field. Because a block time can trail the moment it commits to, a comparison of an OpenTimestamps time against receivedAt or anchorWithin allows 7200 seconds (R10 inside it, R11 one second past it). A pending attestation dates nothing, and an upgraded proof of the same digest dates the record at its block (R12); two OpenTimestamps anchors order by block height. R16 runs the path through a Merkle tree the retaining party built itself, which still validates because only the header is trusted.

expected.dating.delegationRoot is present on every retained member. A delegation-root element of the retention entry carries the key set whose digest the record's delegation.rootDigest names: equal digests establish the root (R13), an omitted element leaves it not-established and never a pass (R14), and an element whose digest differs is entry-delegation-root-mismatch (R15). R1 to R12 and R16 carry no rootDigest and report not-established.

The sequence member and record identity: SQ1 to SQ5

sequence (boundary, seq) numbers the records of one series from 1. SQ1 is the first record of a series; a member the draft does not define (SQ2) or a seq of 0 (SQ3) is malformed. SQ4 and SQ5 are files in sets/: a series holding 1 and 3 names 2 as issued and not received (SQ4, expected.set.missing), and two records with the same boundary and seq but different identities fail the set check (SQ5). A record's identity is the SHA-256 of its decoded DSSE payload bytes; Ed25519 is deterministic, so equal payloads under one key give equal envelopes, and a re-sent record is never counted as a conflict.

A21 is A1 with agent.authentication of api-key: a bearer secret presented with the request that is not an OAuth access token. It is valid, and authentication sits outside the request digest.

What the members are built from

Every reject member is its from member with the one mutation its row names. Where the mutation moves a value another member is a function of, the dependent value moves with it (the rows that say "roots and chain moved to match"). The keys are published test keys derived from fixed seeds in gen_vectors.py: the observer key signs every envelope, and the agent key signs nothing and is the key agent.signers names.

Four readings the draft leaves to the corpus, stated so they can be checked:

What the rule sweep reports

check_vectors.py disables one rule of the reader at a time. Four Appendix B rows are still refused when their own rule is off, by a later check: S1 and I1r (the subject-interval rule), F1 (membership), E3 (the empty-tree constant, whose mutation also breaks the commitment digest), and V2 (the glob rule, whose scope also puts the write out of scope). The verdict holds in each case. The sweep prints these as notes, and they are candidates for isolating members in a later revision of the draft.

It then disables each rule of the dating check in turn, including anchor validation and the choice of the earliest anchor, and requires each to move some retained member off its declared dating result without moving its verdict. The check that an entry's envelopeDigest names the envelope beside it has no row and is the one dating rule the sweep exempts.