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.
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:
- an accept or reject member conforms when your verdict equals
expected.verdict; - the indeterminate member
PS1bis open between two drafts (below): your verifier conforms on it withvalidormalformed, and the reference reader takesmalformed; - the indeterminate member
N2is a row the draft leaves open. It carries noexpected.verdict, and your verifier conforms on it when its verdict is any one listed underreadings:validorindeterminate. The reference reader takesvalid.N1had two readings under revision 02; -00 gives it one,valid, because the anchor incorrelation.externalAnchordates nothing by itself; - a retained member (
R1toR16) is scored twice: the envelope's verdict againstexpected.verdict, and your dating check againstexpected.dating(below).
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:
- Invocation.
<verifier> <corpus-dir>/<member file> --json, once per member. The file is understatements/,sets/orretained/. The verifier takes the observer key (keys.observer.publicKey), the accepted predicate type and the anchor trust (anchorTrust) from theMANIFEST.jsonabove the member file, and reads nothing underexpected. - Output. The last nonempty stdout line is one JSON object.
verdictisvalidormalformed, andcodesis an array of strings. Exit status 0 meansvalidand 1 meansmalformed. Any other status, or a status that disagrees withverdict, counts as a disagreement. - Members that declare more. A valid answer carries
derivedTierwhere the entry declares one. A member declaringwithinLimitneedswithinLimit. A set member (sets/) needsset:verdict,codes, andmissingandwithinLimitwhere declared. A retained member (retained/) needsdating:entry,codes,datedAtandreceipt(absent where the entry has none), anddelegationRoot.result, plusdelegationRoot.algorithmwhere declared. - Scoring. The verdict must be one of
conforming_verdicts(entry). The tier,withinLimit, thesetverdict,missingandwithinLimit, and thedatingentry,datedAt,receiptanddelegationRootmust equal what the entry declares. No code array is scored: the record'scodes, and the code arrays insidesetanddating(compared as sets), are reported underreasonParityNotes, because the draft defines verdicts and results and not codes. Only published members are scored. On a proposed member (see "Which text each member tests") a difference is a note, the row readsdiffers-from-proposed, andtotals.proposedDiffercounts it. Each member'saggregationblock and the corpus-level claims (counts, digests, text labels) are checked by the harness whatever verifier runs.
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:
A12,A13andA14namekey-source,consumption-state, and all three inputs at once, each once and in neither the draft's order nor sorted order.A15,A16andA17carry the actsobservation,decisionandrelease;A16also leaves outrecordDigest, which Section 5.5 makes optional.EV5,EV6andEV7refuse a not-evaluatedunavailableInputthat is empty, that names one input twice, and that is a string rather than an array.EV8,EV9andEV10refuse an evaluated record carryingunavailableInputasnull, the empty array and the empty string: the "in any spelling" of Section 5.4, whichEV2tests only in its canonical spelling.OV3refuses an oversight member with noact, which Section 5.5 requires.
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).
FR1toFR13are Appendix B rows.FR2sits on the boundary and on the reference time at once: its age is exactlymaxAgeatreportedAtand nine seconds past it atissuedAt.FR13bandEV14isolate two sentences the rows reach only through a later check: a negativemaxAgestales its entry, soFR13is refused by the derived set as well, andFR13bnames that entry so only the sign refuses it;EV14is an all-fresh record markednot-evaluatedwith an emptyunavailableInput, which matches the empty derived set and is refused only becausenot-evaluatednames at least one input.FR16refuses a record with nodecision.reportedAt, the time every age is measured to.FR18puts alastResultexactly the skew tolerance afterreportedAtand is accepted, so a verifier allowing no skew is caught.FR17atoFR17care one forwarded value judged at two hops. The first hop reads standing at 10:00:00 under its ownmaxAgeof 7200 and evaluates. The second copies the source'slastResultunchanged, applies its ownmaxAgeof 3600, finds the value 3842 seconds old, and must recordnot-evaluated(FR17b); recordingevaluated, the first hop's verdict, is malformed (FR17c). A verifier sees only each record's own entries, so each hop's verdict follows from its ownmaxAgeandreportedAt.
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.
- Section 5.4: where a decision depended on several values of one input, the
entry takes
lastResultandmaxAgefrom one value, the one whoselastResultplusmaxAgeis earliest.FR14isA2judging two delegation paths whose two values ofstanding-sourceare both fresh: 30 seconds old under 60, and 3600 under 7200. The entry carries the first value's pair, and the record is valid.FR15carries the pair -00 wrote, the oldestlastResultbeside the smallestmaxAge(age 3600 under 60), still recorded asevaluated, and is malformed. A verifier holding only the record cannot recover the two values, soFR14's manifest entry lists them underaggregation, and the judge requiresagent_evidence_vectors.auditrecord.aggregate_valuesover them to yield the entry the record carries. A producer tests its own aggregation the same way: feed it the listed values and compare. Reported by Mikhail Sergeev, #249. - Section 5.7: a gap inside
pathScopebesidescopeCompleteoftrueis malformed at any tier (V4onA1, authoritative;V5onA5, voluntary), and the tier's coverage clause isscopeCompleteoftrue. -00's clause, "complete, or every gap outsidepathScope", passedTI6: authoritative withscopeCompleteoffalseand gaps naming only paths outside the scope.TI4(falsebeside a gap inside the scope) is refused under both revisions, andA1(authoritative,true, no gaps) is the valid control. Reported by Mikhail Sergeev, #250.
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.
- Retry identity is the operation key, scoped by
limitDigest. A call whose key is held is a retry: itsrequestDigestand amount must be the held entry's (CS10refuses one key reused for another request), and it is not counted twice (CS4). A call whose key is not held is a new operation and is counted even when itsrequestDigestequals a held entry's (CS11,CS12). ArequestDigestis a content digest over action, arguments and resource, so two identical intended payments share one; only the key tells them apart. - A verifier derives
withinLimit, and the manifest carries it inexpected.withinLimitthe way it carriesagreement. A permit beyond the limit is valid and findable (CS2,CS12), never rejected. reservedis the sum of the held amounts (CS3), held keys are distinct (CS13), amounts are non-negative integers (CS5),consumptionsits only on aconsumption-stateentry (CS6),stateRevisionis required (CS9) and so is the operation key (CS14).limitDigestmay differ fromdelegation.authorityDigestwhen the limit sits in another document (CS15) and equals it when the authority states the limit (CS16).-
CS7,CS8andCS17are files insets/of several records under onelimitDigest(CS18toCS22andCS25are such files across a replacement or a boundary, below). Each record is judged on its own, then the records together underexpected.set: a permit that read an olderstateRevisionand omits a held operation key spent one limit twice (CS7), and a held permit released with no record of that operation showingnoneis unexplained (CS8).CS17is the control: two operations with identicalrequestDigestand distinct keys, so a check keyed on the request digest passes where the operation key fails. -
A limit document can be replaced while a permit is held (
CS18toCS25).consumption.supersedesis optional: the digest of the limit document that this record'slimitDigestreplaced. It must be a digest (consumption-value-invalid,CS24) and must differ fromlimitDigest(consumption-supersedes-self,CS23). A retry is still the operation key and never the limit: a call whose key is inheldis a retry of that entry under the replacement too, itsrequestDigestand amount the held entry's, not counted twice, andwithinLimitis derived as before, so a cut can make a retry's recordwithinLimitfalse, valid and findable (CS18raise,CS19cut). The set checks group records into ledgers, not singlelimitDigestvalues: twolimitDigestvalues are one ledger when any record in the set names one as the other'ssupersedes, transitively, andstateRevisionorders the whole ledger. A held permit therefore has to appear inheldof every later record of the ledger until a record of its operation showsnoneoroccurred(CS20omits it and is malformed withconsumption-set-release-unshown,CS22adds the record that releases it and is valid), and a record that read an olderstateRevisionthan a record holding an unsettled permit and omits it is stale across the replacement (CS21,consumption-set-stale-revision). Records whoselimitDigestvalues nosupersedeslinks are separate ledgers: a verifier cannot tell a limit document that replaced another from an unrelated one without the link, so the ledger checks do not judge across that boundary: a held permit under one limit document and a later record under another that nosupersedeslinks, omitting the held call, is two valid records and a valid set (CS25). -
A held claim is not a ledger's: it is keyed by the principal (
delegation.subject), the agent key (agent.signers) and the operation key, never by the limit document (CS26toCS33, from the enforcement answer on modelcontextprotocol/financial-services-interest-group#17). A call refused before its tool ran, or whose tool reported nothing sent, leaves no claim, so its retry is new under the limit then in force: a raise admits it (CS26), a cut refuses it (CS27), and a record of the operation showingnoneends a claim that was held (CS28). Any other call keeps its claim across a replacement: an unknown outcome is carried over (CS29) and cannot be dropped (CS30,consumption-set-release-unshown). A permit whose operation key a record of the same scope holds, and which does not hold that key itself, presents a retry as a new operation and the set is malformed withconsumption-set-retry-as-new, whether the new limit document names the old one insupersedes(CS31) or not (CS32); the original call, at a lowerstateRevisionof the same ledger, is not. The same operation key under another principal and agent key is another claim (CS33). -
consumption.assetnames the exact asset when no ISO 4217 code does (CS34toCS40, from the same thread): an object of exactlyid, a CAIP-19 asset id that names the chain and the token contract, anddecimals, the count of decimal places of the smallest subunit every amount is in, at most 255. A record carriesunitorasset, never both (consumption-unit-ambiguous,CS37); a ticker that is not a CAIP-19 id (CS35) or decimals out of range (CS36) isconsumption-value-invalid.CS34counts in USDC on Base, and every record carrying only an ISO 4217unit(CS1and the rest) is unchanged. One ledger counts one denomination: USDC on Base and USDC on Solana under one limit (CS38) and one asset id at two decimals values (CS39) are malformed withconsumption-set-asset-mismatch, and two assets under two unlinked limit documents are two ledgers (CS40). -
A paid tool call settled in a stablecoin carries its payee and its settled terms (
CS41toCS49, from vendrell46's case on #307, written against the messages x402 sends over MCP).consumption.payee, andpayeeon each held entry, is the SHA-256 digest of the payee's CAIP-10 account id, the address written as its namespace profile produces it (EIP-55 case foreip155). A retry pays the held entry's payee (CS41); a payment signed again to another payee inside one call carries the same operation key and request digest, and isconsumption-key-reused(CS42).consumption.settledcarries exactlyamount,asset,payee,sourceandtransaction: the terms the call settled on, read from the chain through the transaction the server returned (sourceofchain), beside the approved terms thatrequested,assetandpayeecarry from the signed payment. An x402uptopermit that settles below its authorized maximum is valid (CS43); a settled amount aboverequestedisconsumption-settled-exceeds(CS44), another asset or payee isconsumption-settled-differs(CS45,CS46), and terms read from the signed payload areconsumption-value-invalid(CS47).consumedtakes the settled amount, so the rest of the hold stays available: a later record of the ledger that no longer holds the call counts at least the consumed the settling record read plus the settled amount (CS48), and one that counts less isconsumption-set-settled-uncounted(CS49). It may count more, since other calls can settle between the two records.
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.
PS1isA10under thev2URI: issuer standing is fresh, principal standing could not be established within itsmaxAge, and the record isnot-evaluatednamingprincipal-standing-source. Under -05 that is a transient refusal (Sections 3, 3.6 and 5). It carriespredicateType, and is judged by a verifier configured for thev2URI: valid.PS2is the same record under thev1URI, judged by a verifier configured for that URI, where the value is outside the set: malformed (value-outside-vocabulary). A reader that extends thev1set along with thev2set passesPS1and failsPS2.PS1b, Girish Konda's boundary case, isPS1with principal standing exactly at itsmaxAgeand the source not answering. -05 Section 3 forbids using an input "at or past its horizon", so the record it requires is this one,not-evaluated. Section 5.4 of -03 as filed says "an age equal to maxAge is fresh" (FR2), so the derived unavailable set is empty and the record fails the recompute of Section 4.6. No record satisfies both texts, so the member is indeterminate with two readings,validandmalformed, until the two drafts carry one boundary: either -03 adopts -05's (fresh when the age is less thanmaxAge, soFR2becomes malformed andFR8moves to "equal to"), or -05 adopts -03's ("past its horizon" in place of "at or past"). The reference reader keeps -03's boundary and takesmalformed(evaluation-inconsistent). The two drafts also measure at different instants: -05 judges the horizon at the evaluation instant and -03 measures age atdecision.reportedAt; both members assume the decision point reports when it evaluates.
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.
PS3: no commitment held.lastResultisnone, so the input was never established, and the record isnot-evaluatednamingprincipal-standing-source: a transient refusal, not a deny. A commitment held past its maximum age isPS1, and one exactly at it isPS1b, which stays open between the two drafts (above).PS4: the commitment is current and the proof against it shows the standing withdrawn. Every entry is fresh, the record isevaluated, and the decision isdeny.PS5: the commitment is current and the proof is missing or does not verify against it. The commitment does not establish standing, and the relying party cannot tell this from a withdrawal, so the record isevaluatedwithdeny, asPS4, and its entry is the commitment's as-of time. It is nevernot-evaluated: the input the decision depended on was current, and a record naming it unavailable fails the recompute of Section 4.6. No member of the record says why a decision denied, soPS5differs fromPS4in the case it states and in its ownrecordId, not in the shape a verifier checks.
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:
datedAtis the time of the earliest anchor, of either origin, that validates overenvelopeDigest; it is absent when none validates (R8). No issuance time the record states dates it, soR2is dated by the sender's own anchor at 11:04:20, earlier than the retaining party's.entryiswell-formedormalformed, andcodesnames the reference reader's first refusal: a received record with no anchor of originretainer(R4), areceivedAtmore than the 300-second skew tolerance beforeissuedAt(R6) or after the retaining party's earliest anchor (R3), a retaining party's first anchor later thananchorWithinplus the tolerance (R7), andreceivedAtbesidereceivedoffalse(R9).receiptis present for a received record with a well-formed entry, and it is alwaysasserted-consistent, never established:R5anchors the digest six seconds before the stated receipt, and nothing in the entry can tell.
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:
T2is signed over its declaration-order bytes. A verifier that checks the signature over the carried bytes accepts it; one that derives the RFC 8785 bytes itself, as the draft requires, refuses it.F5reaches "beacon-anchored with externalAnchor removed" by changingtimeBasisonA1, which carriesassertedand no anchor.N1isA1with an anchor carried underbeacon-anchored, soA1itself raises no anchor question.priorCommitment.sigis carried and not checked: the draft names the member and defines no preimage for it.- The retention entry's
validationDatacarries the observer's key set (application/jwk-set+json) for the envelope and nothing for the anchors, which are hash commitments and need no path. The draft says what the member carries and does not make it required, so no member omits it.
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.