Proposal: independent receipt-verification crosswalk for mandate conformance (CCS drafts)
Proposal: independent receipt-verification crosswalk for mandate conformance
Author: Guigui Wang ([email protected]) · Correctover — IETF draft-correctover-ccs (also on datatracker), W3C Credentials CG participant.
Idea in one line: AP2 mandates are signed by issuers; a separately replayable receipt layer would let merchants/issuers/auditors verify that each agent action conformed to its mandate constraints — budget, recurrence, payee — without trusting the signer.
Why this complements AP2 rather than competing with it:
- AP2 answers authorization: mandates signed via W3C VCs, per-transaction consent.
- The open gap is action-level conformance evidence: for recurring Payment Mandates (
payment.agent_recurrence,Budget), what proves each individual execution stayed within the mandate — issued by a party that doesn't sign the mandate itself? - Our draft-correctover-ccs defines signed, independently replayable receipts for agent tool actions (the tool/action layer beneath AP2's checkout flows). We have shipped receipt verification for x402 flows and a public self-serve verifier.
Proposed deliverables (all public):
- A short crosswalk note mapping AP2 mandate constraints ↔ receipt claims (Mandate ID binding, per-execution conformance, recurrence budget accounting).
- A reference implementation note showing receipts attached to a sample AP2 scenario (e.g.,
human-present/x402).
Honest boundary statement: receipts currently attest what the tool/runtime observed; we document self-attestation limits explicitly and support independent replay of the signature chain rather than claiming trusted-hardware attestation.
Would the maintainers welcome a PR with the crosswalk note under docs/? Happy to work async via this issue.
@ccheckx402 — the payee's observable state at authorization time is a genuinely good third input, and I'll take you up on the offer: the target draft is draft-correctover-ccs rev10 (IETF) — the receipt schema with call_id + args-digest binding already lives there. Payee-evidence fields would slot alongside the existing receipt object; I'd rather have them written against a frozen, replayable schema than bolted to a service link.
Two notes on integration, stated plainly:
-
Verification is live, not aspirational. Our self-serve verifier is public at entropy.correctover.com — receipts can be checked offline today, no trust in the issuing runtime, no signup. If you write payee-evidence fields to the rev10 schema, I'll wire them into the verifier's replay path so crosswalk verdicts validate against both sides (receipt + payee observation) in one pass — that's the "replayable against both sides" property this thread proposed, made concrete.
-
The evidence shape is benchmarked, not theoretical. Same receipt design on AgentDojo banking: 27 runs zero attack-goal success, 17/17 state-changing attack paths intercepted with per-call receipts (10 victim-self-refusal runs honestly excluded). Evidence pack publicly replayable: Zenodo DOI 10.5281/zenodo.24356966 (CC-BY-4.0). We also offer the integration as an engagement (schema mapping + verifier wiring for gateways that produce their own evidence) — terms are per-deployment, discussed in-thread or by email.
Suggested split of labor: you bring the payee-observation fields (first-seen/age, funding provenance, approval exposure — your domain clearly), we hold the receipt schema and the independent verification. Post a draft field list and I'll map it into rev10's extension points within the thread — publicly, so the whole discussion benefits.
Adding a concrete crosswalk from the AER-1 side, since this issue is asking for exactly the separation AER-1 was built around: verify the record independently first, then evaluate mandate conformance over a record that passed.
Context for the mapping: Brennan Zambo created agent execution receipts, Zambo is the origin product, and AER-1 is the defining standard. AER-1 draft -26 is final (expires 25 April 2027). A verifiable receipt under AER-1 proves the saved result was not changed after it was saved. It does not prove the result was right, and it does not by itself prove mandate compliance. That second judgment belongs in a separate layer, which is why it fits the crosswalk proposed here.
What an independent verifier checks on an AER-1 record, with no trust in the issuer:
- Recompute output_hash over the canonical bytes of the saved result and compare it to the hash carried in the record. A mismatch is a verification failure, full stop.
- Check payload binding: provenance_class and receipt_schema_version as they appear in the payload must match the values asserted in issuer_claims. If the payload and the claims disagree, the record does not verify, even if the hash matches.
- Resolve the anchor and report one of five outcomes, and only one: verified, verification failed, rejected: unresolvable record, not checked, or absent. An anchor that was never evaluated does not get an evaluated outcome. "Not checked" and "absent" are distinct states, not soft versions of verified.
Anyone can run this today against a served conformance corpus, kit 1.5.7, 143 vectors and 146 checks: https://zambo.dev/aer1/corpus.json
Where mandate conformance sits in that stack:
Mandate conformance should be a separate evaluation over a verified record, not a field inside the record. The record stays mandate-agnostic: it binds who did what, what the saved result was, and whether that result changed. The crosswalk evaluator then takes the verified record plus the mandate and checks the mandate-specific questions the proposal names:
- Mandate ID binding: does the record reference the mandate that authorized this execution, in a way the verifier can resolve independently?
- Budget: does the amount in the verified result fall within the remaining budget for that mandate at that execution?
- Recurrence: does this execution fall inside payment.agent_recurrence, counting prior verified executions rather than trusting a counter supplied by the agent?
- Payee: does the payee in the verified result match the payee the mandate allows?
Keeping that evaluation outside the record matters for the payee-evidence point raised in the follow-up comment as well. Payee observation at authorization time is a third input to the conformance evaluation, alongside the mandate and the verified record. It does not need to be folded into the receipt schema to be replayable: the evaluator can cite it, the receipt can be rechecked without it, and a disagreement between the two is visible instead of hidden inside a single verdict.
For implementers working from text alone, we also maintain a bridge page listing the six rules a text-only implementer needs beyond draft -26: https://rambozambodotdev.gitlab.io/aer1-hub/implementing-aer-1-from-the-draft-text.html An outside implementer working only from the draft text plus those six rules ran 57 of 57 records successfully, which is the kind of independent replay this issue is asking for.
Offer: happy to draft the AER-1 side of the crosswalk note as a table (AP2 mandate constraint, verified record field it binds to, conformance check, failure outcome) for review in this thread, in whatever docs format the maintainers prefer for this repo. No new receipt fields proposed, and no change to the mandate format. Just the verification steps above, mapped constraint by constraint.
This is the separation AMEP was built around, so here are concrete results rather than another proposal.
AMEP (an open protocol with an IETF Internet-Draft, Apache-2.0) has an AP2 profile. It reads an AP2 bundle (the open payment mandate, the closed payment mandates and the processors' receipts) and does two things:
- Checks each artifact by AP2's own rules, as the Python SDK implements them at
e1ea56d:~~chains, ES256 and nested selective disclosures;- binding by
sd_hashorissuer_jwt_hash; - the receipt
reference.
- Decides each payment afterwards, by a party that signed none of it:
preserved,violated(naming who departed), orunresolved(naming the missing record).
On bundles produced by the AP2 SDK itself:
| Bundle (SDK-produced) | AMEP, per payment |
|---|---|
| within the mandate | preserved |
over amount_range, processed anyway |
violated (I2), blame agent |
payee not in allowed_payees, processed anyway |
violated (I2), blame agent |
Error receipt |
preserved, "nothing executed" (on the processor's signed word) |
| no receipt | unresolved, missing receipt |
two payments within range, together over budget |
first preserved, second violated (I2) |
issuer_jwt_hash binding |
preserved |
Two points on the recurring-mandate question this issue raises:
- Budget totals come from the receipts. AMEP takes cumulative spend from the processors' signed receipts, not from caller-supplied past spend (the SDK's
MandateContext.total_amount). A third party holding the evidence can recompute it. - An unknown outcome is held, not dropped. When a payment's receipt never arrives, AMEP holds its amount. A later payment that would breach the budget if the first went through stays
unresolveduntil reconciled, neverpreserved.
The limits, stated plainly:
- the receipts carry no amount, so the executed value is the closed mandate's, on the processor's word;
agent_recurrencefrequency, minimums, instruments and execution dates aren't mapped, and each is reported as a gap.
Reproducible: https://github.com/stafordtituss/amep/tree/main/interop/ap2
- the SDK-produced fixtures, with the script that makes them;
- nine further edge cases;
- pinned tests.
@zambodotdev, it's the same AMEP your AER-1 runs used. Happy to align the crosswalk columns with yours if that helps the comparison.
@stafordtituss yes to the alignment, and the shape that just worked on the CoreGuard joined table is the shape I would bring: two implementations, one pinned set, joined on vector name, divergences printed per family and gaps printed as gaps. Your columns next to ours on the same SDK bundles would show a reader exactly where the two verdict dictionaries agree and where they genuinely differ, which is the only part of a crosswalk worth publishing.
Your two points are the right two. Budget totals recomputed from the receipts instead of trusted from the caller's context is the whole game: a total nobody can recompute is a claim, not a total. And held, not dropped, for the unknown outcome is the same discipline as our "not checked": an unresolved payment is a state with a name, never quietly promoted to preserved.
One observation from our side. Your violated rows name who departed, and your unresolved rows name the missing record. That naming is what makes a verdict usable by the next party, and it maps onto the AER-1 outcome dictionary's rule that an unevaluated record never gets an evaluated outcome. Where the words differ (preserved against verified), the alignment will show whether the meanings differ too; finding out is what the comparison is for.
Your limits stand as stated. The receipts carrying no amount is a property of the AP2 receipt as issued, not something a checker can repair after the fact, and the unmapped recurrence fields belong in print as gaps, exactly as you have them.
When you are ready to align, we will run the same bundles against our column and publish the join the same way, failures included.
Ready when you are. AMEP's column is pinned here: https://github.com/stafordtituss/amep/blob/main/interop/ap2/verdicts.json
What it contains, for every bundle:
- each payment's outcome, deciding invariant, blame and named gaps;
- which AP2 artifact checks failed;
- the SHA-256 of the exact fixture files it was computed from.
Regenerate it with node interop/ap2/verdicts.mjs --check.
The two families:
| Family | Fixture | SHA-256 | Contents |
|---|---|---|---|
sdk |
packages/conformance/test/fixtures/ap2/sdk-bundles.json |
7e1dd6d97003… |
8 bundles produced by the AP2 SDK at e1ea56d, including the #346 replay (sdk-redeemed-twice) |
synthetic |
packages/conformance/test/fixtures/ap2/bundles.json |
bd530228cb98… |
11 edge cases, including some the SDK can't produce: a receipt for another mandate, an altered mandate, an unknown first payment |
Joining: the key is the bundle name. If your column needs a different key (vector file name, or receipt reference), tell me and I'll add it rather than rename.
Divergences worth having in the table from the start:
- The #405 reference rule, where the profile records which rule matched.
- The #346 replay. AMEP's column marks the second execution under one closed mandate
violated. I'm curious what AER-1's column shows for it. - Preserved vs verified. AMEP's
preservedmeans within the mandate, judged afterwards. It doesn't certify the processor's settlement. Whether that matches yourverifiedis exactly what the join should show.
@stafordtituss the join is run. Your column against an AER-1 column over the same fixtures, joined on bundle name, one row per payment: https://github.com/zambodotdev/aer1-kit/blob/main/interop/ap2-crosswalk-joined-table-2026-11-23.md (the AER-1 column as JSON sits next to it).
First, the pins: we verified both fixture files against your published prefixes before judging anything (sdk 7e1dd6d97003…, synthetic bd530228cb98…; the full digests we computed are printed in the table). The AER-1 column judges the record, not the mandate decision: verified means every digest binding in the record recomputes from the bytes in the bundle.
Headline: 22 payment rows. 10 agree, 12 diverge, and every divergence is printed as one of two kinds: 10 of scope (the columns answer different questions and both answers stand) and 2 of kind (the same facts, a different refusal from each dictionary).
The three rows you asked for:
- The #405 reference rule, as data: the fixtures carry 22 receipt records. 21 references recompute under the SDK rule (the closed hop's JWT alone), 0 under the specification rule (the sd_hash manner over the closed presentation with its disclosures), 1 under neither. The rule the specification text describes matched nothing, anywhere.
- The #346 replay: in all three redeemed-twice bundles the chains are byte-identical and both receipt records recompute in full, so our column prints verified for the second record too. A record layer shows that the same reference verified twice; it carries no one-payment-per-mandate rule, and we have not silently adopted yours. Your violated stands as the decision. A scope divergence, printed as one.
- Preserved vs verified: different questions, and the table says so at the top.
sdk-over-rangeis the clean exhibit: the record of the over-range payment verifies, and the payment still violated the mandate.
Two more rows worth naming: s8-altered-amount, where the receipt reference still matches the SDK rule while the payment disclosure's digest does not recompute, so our column prints verification failed (a reference match alone does not verify a record); and s7-receipt-for-another-mandate, where your unresolved and our verification failed are the same facts read by two dictionaries.
Correct any row where we misread a bundle and we will re-run it and reprint it. The no-amount boundary stands in both columns: neither of us certifies what the processor charged.
Thanks, @zambodotdev. I checked the join against our column, and every AMEP row in it matches verdicts.json at 93aa9005…, so there's nothing to re-run.
I agree with each divergence label as printed:
- 10 of scope: the record verifies and the decision is ours to make.
sdk-over-rangeshows this most plainly, as you say. - 2 of kind:
s7ands8. Yours8note is the point a reader most needs: a reference match alone doesn't verify a record. AMEP gets there the same way, because a disclosure that doesn't match its committed digest leaves the paymentunresolvedwith asignaturegap, whatever the reference says.
The join is now linked from AMEP's AP2 README, next to the column it reads: https://github.com/stafordtituss/amep/tree/main/interop/ap2#results
Next on my side is the docs PR for #405, so the specification says what the SDK computes: the reference binds the closed hop, and a dispute must keep the closed hop's disclosures.
@stafordtituss confirmation received, and the join now stands as the shared record between the two implementations: your column checked against ours, every row accounted for, nothing to re-run on either side.
The s8 point is the one worth a reader's attention, and you stated its consequence exactly: a disclosure that does not match its committed digest leaves the payment unresolved with a signature gap, whatever the reference says. A reference match alone never verifies a record.
When your #405 docs PR lands, we will read it against the join and say on that thread whether the spec text now matches what the SDK computes.
APAF-1 column — a third dictionary on the pinned fixtures. Results, not a proposal.
Column artifact: interop/ap2/apaf1-column.json in nmatt1/paymnts-trail-head-conformance. Both fixture SHAs recomputed before any row was judged: sdk-bundles.json 7e1dd6d97003d11f61ee2b60625bc1fff282d9a5f1eaa7426b276bbd3140b61f, bundles.json bd530228cb9880d33f49016ab85f426a6c0e9668f3b6e47734b4aa779a71c4fc — they match the published pins. 22 payment rows, join key bundle name + payment index, transaction_id on every row. Generated by an independent implementation (SD-JWT disclosures resolved, every ES256 signature and every digest binding — sd_hash, issuer_jwt_hash, disclosure digests, receipt references — recomputed), not hand-traced; every check cited per row is recomputable by anyone from the public fixtures.
What this column judges. AMEP judges the payment afterwards; AER-1 judges the record. This column judges the decision on the presented artifacts, including cumulative mandate state — spend, use count, and closed-mandate replay carried across the bundle — the cross-payment state the join already observed a single-record judgment cannot carry (sdk-budget row 2, s9 row 2). Open-mandate expiry is judged at each hop's iat, not at evaluation time. Vocabulary: approved / declined / escalated / not_evaluated.
| Bundle | Payment | APAF-1 | AMEP | AER-1 | Note |
|---|---|---|---|---|---|
| sdk-within | txn-1 | approved | preserved | verified | agree |
| sdk-over-range | txn-1 | declined | violated (I2) | verified | same refusal, different word — scope split as already printed |
| sdk-wrong-payee | txn-1 | declined | violated (I2) | verified | same |
| sdk-declined | txn-1 | not_evaluated | preserved | verified | processor-reported Error: no payment outcome to decide; same practical judgment as his preserved |
| sdk-lost-receipt | txn-1 | escalated | unresolved (gap: receipt) | absent | agree — the same missing record |
| sdk-budget | txn-1 | approved | preserved | verified | agree |
| sdk-budget | txn-2 | declined | violated (I2) | verified | found by recompute, not by receipt: 19900 minor already spent + 15000 presented > 30000 (=300.00 major — budget.max is major units where amount_range is minor). The row that needs a decision column carrying state |
| sdk-issuer-jwt-hash | txn-1 | approved | preserved | verified | issuer_jwt_hash binding recomputes |
| sdk-redeemed-twice | txn-1 | declined | violated (I2) | verified | one payment over-redeemed: byte-identical closed hop presented twice; the second presentation is closed_mandate_replay |
| s1-within | txn-1 | approved | preserved | verified | agree |
| s2-over-range | txn-1 | declined | violated (I2) | verified | |
| s3-wrong-payee | txn-1 | declined | violated (I2) | verified | |
| s4-declined | txn-1 | not_evaluated | preserved | verified | as sdk-declined |
| s5-lost-receipt | txn-1 | escalated | unresolved (gap: receipt) | absent | agree |
| s6-budget | txn-1 | approved | preserved | verified | |
| s6-budget | txn-2 | declined | violated (I2) | verified | cumulative budget, as sdk-budget |
| s7-receipt-for-another-mandate | txn-1 | escalated | unresolved (gap: receipt) | verification failed | the presented receipt binds a different mandate's hop — neither "no receipt" nor only a failed record; for this payment, execution is unverifiable from the presented set |
| s8-altered-amount | txn-1 | declined | unresolved (gap: signature) | verification failed | three-way dictionary split — see below |
| s10-redeemed-twice | txn-1 | declined | violated (I2) | verified | replay, as sdk-redeemed-twice |
| s11-redeemed-twice-small | txn-1 | declined | violated (I2) | verified | replay, as sdk-redeemed-twice |
| s9-unknown-then-second | txn-1 | escalated | unresolved (gap: receipt) | absent | agree — no receipt for this payment |
| s9-unknown-then-second | txn-2 | escalated | unresolved (gap: held_outcome) | verified | the record verifies; the decision holds because payment 1's outcome is unknown and the mandate carries a stateful budget — the held_outcome gap he named |
Counts: 5 approved, 10 declined, 5 escalated, 2 not_evaluated. Against AMEP: 19 rows reach the same practical judgment (our declined covers his violated on all nine, plus s8; our escalated covers five of his six unresolved; not_evaluated covers the two Error receipts). Against AER-1 the rows mostly diverge by scope, which is expected — we judge a different thing.
Named divergences, printed not smoothed:
-
s8-altered-amount is the three-way split. AMEP reads a signature gap (unresolved), AER-1 reads a failed record (verification failed), we read altered presented evidence — the disclosure bytes decode but their digest does not recompute against the digest committed inside the signed payload — and decline. In our dictionary tampered evidence is a hard integrity failure, not a missing record and not a signature gap. Three defensible answers; ours is the strictest.
-
Processor-Error rows (sdk-declined, s4): we emit not_evaluated — the processor reported no execution, so there is no payment outcome to decide on. AMEP's preserved and AER-1's verified are about the decline's record, which also verifies; agree in practice, different word.
-
s7: escalated. The presented receipt recomputes — it just binds a different mandate's closed hop. For this payment, execution cannot be verified from the presented set. That sits between AMEP's "no receipt" and AER-1's "failed record"; our dictionary treats a misbound receipt as an unverifiable outcome, not a violation of this payment.
A second axis the column publishes, verbatim per row under checks.spec_schema: conformance of the presented mandate objects to the ap2-protocol.org JSON schemas. Finding: all 22 open payment mandates fail the contains clause — none carries a payment.reference constraint, which the published open-payment-mandate schema requires. It does not drive the decision verdicts (it measures spec-profile conformance of the fixture generator, a different axis than decision semantics), but it is a real finding for whoever owns these fixtures: either the SDK never emits payment.reference, or the published schema is stricter than the ecosystem's de-facto profile.
Same boundary as the join already names, unchanged: receipts carry no amount. Nothing in our column certifies the executed value either — it rests on the closed mandate's amount and the processor's word.
Per-presentation detail for the three over-redeemed payments is in the column JSON. Corrections welcome on any row — name the row and we re-run and reprint.
@nmatt1 thank you for running the column. We checked your AER-1 column against the joined table row by row: 22 of 22 match (17 verified, 2 verification failed on s7 and s8, 3 absent), and your fixture SHAs match the pins. A third independent implementation reproducing the record column exactly is what the pinned fixtures are for.
Three notes on the divergences, since you printed them unsmoothed:
On s8, the three words are three layer verdicts on one recompute, and the recompute itself is not in dispute: the disclosure bytes decode, their digest does not recompute against the digest committed in the signed payload. AER-1 says verification failed because that is a statement about the record. AMEP says unresolved because the signature gap is where its dictionary stops. APAF-1 says declined because at the decision layer tampered evidence cannot carry a payment. Same bytes, three questions. We would rather see the split printed, as you did, than averaged into one word.
On s7, one precision from our side: under AER-1 the binding is part of the record, so a receipt that recomputes but binds a different mandate's hop is a failed record for this payment, not an absent one. Your escalated names the operational consequence (execution unverifiable from the presented set), and we do not dispute it; it is the decision-layer reading of the same fact.
On cumulative state: your column is the first of the three to judge the rows that need it. sdk-budget txn-2 and s9 txn-2 were the join's flagged cases where a single-record judgment cannot carry the answer; carrying spend, use count, and replay across the bundle is a decision-layer capability, and your budget units note (budget.max in major units, amount_range in minor) is exactly the kind of trap that only a recompute catches.
The spec_schema finding stands on its own: all 22 open mandates failing the contains clause is a fixture-generator question, and printing it here puts it in front of the people who own the fixtures.
We will add the APAF-1 column to the joined table in the aer1-kit interop folder, so the three dictionaries sit side by side in one file, credited to your artifact. If any row of ours in that table looks wrong to you, name it and we will re-run and reprint, same offer.
@zambodotdev the three-way join reads correctly row for row, including the s8 join detail you printed — that row genuinely has no transaction_id on our side (closed_mandate_absent leaves nothing to recover one from), so bundle+payment index is the right key there. Nothing to re-run on our side either.
@nmatt1 Closed on both sides, then. The join stands as the shared record: three dictionaries, 22 pinned fixtures, one s8 split explained by the key itself (closed_mandate_absent leaves no transaction_id to join on, so bundle+payment index is the key that row can carry). If a future fixture set moves any row, the same offer stands in reverse: name the row and I will re-run and reprint from this side.
@nmatt1 thank you for the APAF-1 column. I checked the AMEP column in your table against verdicts.json (93aa9005…), and every row matches, including the held_outcome gap on s9 txn-2 and the signature gap on s8.
Two findings of yours I'm taking up:
- The
spec_schemaresult: none of the open mandates carriespayment.reference. The SDK bundles come from AMEP's own generator script, so the fixture owner here is me. I'll check whether AP2's SDK can emit that constraint, and either regenerate the fixtures or document why not, and report back here. - Your column judges cross-payment state: spend, use count and replay. That's exactly the part of AMEP's suite most worth testing by someone other than its author.
Two offers, both optional:
- Would you be willing to write two or three AP2 cases of your own, with your expected APAF-1 answers recorded before you see AMEP's output? For example: a replay across two bundles, or a budget that resumes after a restart. I'd add them to AMEP's interop suite under your name, and print any disagreement as an issue.
- With your agreement, I'd list your column in AMEP's log of independent implementations (REVIEWS.md), as written, with the relationship stated as you describe it.
@stafordtituss thank you for checking the AMEP column against verdicts.json, and for taking the spec_schema finding up from the owner side — looking forward to whether the SDK can emit payment.reference or the schema is ahead of it.
On the offers: REVIEWS.md — yes, please do. The relationship as we'd state it: APAF-1 is an independent verifier column run by the paymnts production decision layer over AMEP's published fixture set; the fixtures and generator are AMEP's, the verdict engine and dictionary are ours.
On authored cases we'll pass for now — the offer is noted and appreciated, and if a coverage gap shows up on either side later we'll propose cases then, with the same pinned-answers-first protocol.
@nmatt1 done: your column is listed in AMEP's REVIEWS.md with the relationship in your words, pinned to e4564ad of your repository. Understood on authored cases. I'll report back here on payment.reference.
@nmatt1 reporting back on payment.reference, as promised: the schema was right, and the fixtures were behind it.
- AP2's SDK at
e1ea56dcan emit it (PaymentReference), and its own samples setconditional_transaction_idtocompute_sd_hashof the user's open checkout mandate. AMEP's generator simply omitted it. - New fixtures: a second SDK family with checkouts, generated with the SDK along the samples' flow.
transaction_idis thecheckout_hashof the merchant's checkout JWT, under a closed checkout mandate presented beneath the open one. The fixture file issdk-bundles-v2.json, and the verdicts are ininterop/ap2/verdicts-checkout.json. - The pinned family and
verdicts.json(93aa9005…) are unchanged, so your column, and the three-way join, still hold as published. - AMEP now checks the binding instead of only reporting it as a gap. A payment for another checkout than the one the payment mandate names is
violated. One whose checkout chain isn't presented isunresolved. AP2's SDK agrees on both new cases ("PaymentReference mismatch", and "open_checkout_hash is required").
https://github.com/stafordtituss/amep/pull/21. If you run APAF-1 over the new family, the two new rows are the ones I'd most like checked from your side.
@stafordtituss ran APAF-1 over sdk-bundles-v2 (pin 70626262…) — both new rows agree with your column:
sdk-ref-other-checkout → declined (violated): the presented checkout's issuer digest != conditional_transaction_id; it fires at both layers — wire-level checkout_reference_mismatch and the constraint itself, payment_reference_mismatch.
sdk-ref-checkout-absent → escalated (unresolved): no checkout chain presented, so the reference can't verify — we classify it the same posture as an absent receipt rather than a violation.
Two notes from our side: the dual binding matters — in sdk-budget each payment's transaction_id binds its own checkout's checkout_hash while conditional_transaction_id names the shared open checkout mandate, so the check needs both halves. And spec_schema is now conformant across the whole family — the payment.reference finding is closed on your side.
Our published column is updated with the sdk_v2 family (33 rows): interop/ap2/apaf1-column.json at 7b7388e.
@nmatt1 thank you for running it from your side, and for the dual-binding note. You're right that the check needs both halves: transaction_id binds each payment to its own checkout, and conditional_transaction_id binds that checkout to the user's open checkout mandate. sdk-budget is the case that shows it.
I've updated your entry in AMEP's REVIEWS.md: the finding is closed, with your re-run and the column pinned at 7b7388e. The checkout binding is now on AMEP's main branch (stafordtituss/amep#21).
@zambodotdev @nmatt1, a proposal, entirely optional.
The three-way join is now a shared public record: three independent columns over the same pinned fixtures, the findings it produced (payment.reference, the receipt reference rule, the s8 join key), and a second fixture family that both APAF-1 and AMEP agree on. It might be worth writing up once, as a short co-authored note with a DOI (Zenodo), so that others can cite the comparison rather than this thread.
The outline would be:
- the question each column answers;
- the fixtures and pins;
- the join method;
- results per family;
- the findings;
- what none of the three can establish from these artifacts (the settled amount, completeness of the presented set);
- reproduction.
The numbers would be yours to confirm for your own columns, and nothing goes out until all three agree on the text.
If you're both up for it, I'll put a first draft in a shared place for edits. If not, no problem: the thread already stands as the record.
@stafordtituss yes, worth doing. a thread is a record people have to dig for. a note with a DOI is one they can cite, and the join deserves the citable version.
two things from my side, both already in your framing. the numbers for the AER-1 column get confirmed from my own runs before they go in, not carried over from the thread. and nothing goes out until all three of us agree on the text, section 6 included: what none of the three can establish from these artifacts is the part that makes the rest believable.
put the draft wherever suits you and i will work in it.