Skip to content

docs(ap2): add Compliance Receipt - admission-time AlgoVoi attestation envelope bound to Payment/Cart Mandate#269

Open
chopmob-cloud wants to merge 8 commits into
google-agentic-commerce:mainfrom
chopmob-cloud:docs-ap2-compliance-receipt
Open

docs(ap2): add Compliance Receipt - admission-time AlgoVoi attestation envelope bound to Payment/Cart Mandate#269
chopmob-cloud wants to merge 8 commits into
google-agentic-commerce:mainfrom
chopmob-cloud:docs-ap2-compliance-receipt

Conversation

@chopmob-cloud
Copy link
Copy Markdown

Summary

Adds the Compliance Receipt specification to the AP2 documentation
set: the canonical AlgoVoi-authored seven-field attestation envelope
that records the admission-time compliance verdict (ALLOW / REFER /
DENY) bound to a Payment Mandate or Cart Mandate by sha256:
reference under RFC 8785 (JCS) canonicalisation.

AP2 references the format; AP2 does not redefine it. The wire format
matches the canonical AlgoVoi Compliance Receipt as specified in IETF
Internet-Draft draft-hopley-x402-compliance-receipt and documented at
docs.algovoi.co.uk/compliance-gate-v1.

Single new file at docs/ap2/compliance_receipt.md. No changes to
existing spec files. No code changes. No samples.

Why AP2 needs this

AP2 specifies the Cart Mandate and Payment Mandate primitives and the
agent-authorisation flow that produces them, but does not document the
admission-time compliance verdict format that a regulated verifying
party (Credential Provider, Network, Merchant Payment Processor) emits
before the mandate proceeds to settlement: "is this mandate permitted
to proceed?". This decision is required under SAMLA 2018 s.20, PSD2
sanctions-screening obligations, and MiCA Article 80 record-keeping.

Without a canonical format reference, every verifying party records
this verdict in a bespoke shape, breaking the property that a Shopping
Agent or downstream relying party can confirm an admission-time check
occurred by hashing a fixed-shape JSON object. This PR closes that gap
by referencing the AlgoVoi-authored format (already in production, on
IETF datatracker, with reference implementations on PyPI and npm) and
documenting how it composes with AP2's mandate primitives.

Production reference

The format is emitted in production by the AlgoVoi facilitator at
api.algovoi.co.uk/compliance/attestation,
live since 2026-05-06 across eight chain families. Documentation:
docs.algovoi.co.uk/platform/compliance-engine.
Public audit verifier: docs.algovoi.co.uk/audit-verifier.

This is not a theoretical proposal. The format described in this PR
has been emitting receipts against live settlement traffic for over
three weeks.

Authorship and substrate-author position

This PR is sole AlgoVoi authorship across the documented format,
normative seven-field shape, closed three-element verdict enumeration,
regulatory mapping, and the composition with the AlgoVoi-authored
canonicalisation pin (urn:x402:canonicalisation:jcs-rfc8785-v1 per
IETF I-D draft-hopley-x402-canonicalisation-jcs-v1).

Companion IETF Internet-Draft:
draft-hopley-x402-compliance-receipt
(Independent Submission, Informational, on IETF datatracker).

Reference implementation, AlgoVoi-authored, Apache 2.0:

The canonicalisation layer underneath the receipt is byte-for-byte
cross-validated across eight independent implementations (Python,
TypeScript, Go, Rust, Java, PHP, .NET, Ruby) per the AlgoVoi 8-impl
matrix; the receipt's content_hash reproduces byte-identical under
any of the eight. Conformance corpus:
chopmob-cloud/algovoi-jcs-conformance-vectors.

The verdict enumeration is closed by design and may be amended
only by a normative successor specification authored by AlgoVoi or
with explicit AlgoVoi co-authorship. Re-publication of the format
under a different attribution does not constitute substrate authorship
of the elements defined here.

No coalition acknowledgements. This specification does not absorb
from, depend on, or share authorship with any other party's work.

Orthogonality

This specification defines the verdict format at the admission-time
sanctions and KYC screening
layer. It is orthogonal to
counterparty-risk evidence formats, settlement-attestation formats
issued after on-chain settlement completes, post-settlement lifecycle
envelopes (covered by the sibling AlgoVoi-authored Payment Lifecycle
PR), and behavioural reputation, trust-scoring, or composable trust
evidence formats proposed elsewhere. The Compliance Receipt makes no
claims about, and depends on no fields from, any of the above.

Scope

Single new file at docs/ap2/compliance_receipt.md. No changes to
existing spec files. No code changes. No samples. No glossary additions.

-- AlgoVoi (chopmob-cloud)
https://docs.algovoi.co.uk/acquisition

…n envelope bound to Payment/Cart Mandate

Documents the canonical AlgoVoi-authored Compliance Receipt format
(seven-field JSON, closed three-element ALLOW / REFER / DENY enum,
JCS RFC 8785 canonicalisation, SHA-256 binding to Payment Mandate or
Cart Mandate). AP2 references the format; AP2 does not redefine it.
The wire format matches the canonical AlgoVoi Compliance Receipt as
specified in IETF Internet-Draft draft-hopley-x402-compliance-receipt
and documented at docs.algovoi.co.uk/compliance-gate-v1.

Single new file at docs/ap2/compliance_receipt.md. No changes to
existing spec files. No code changes. No samples.
@chopmob-cloud chopmob-cloud requested a review from a team as a code owner May 28, 2026 11:52
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new documentation file, docs/ap2/compliance_receipt.md, which specifies the Compliance Receipt format—a content-addressed attestation envelope used prior to settlement. The review feedback suggests a minor grammatical improvement to clarify a sentence fragment regarding the Apache 2.0 license.

Comment thread docs/ap2/compliance_receipt.md Outdated
- [`algovoi-substrate`](https://pypi.org/project/algovoi-substrate/) on PyPI
- [`@algovoi/substrate`](https://www.npmjs.com/package/@algovoi/substrate) on npm

Both Apache 2.0.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Improve the sentence fragment 'Both Apache 2.0.' to be grammatically complete and more professional.

Suggested change
Both Apache 2.0.
Both are licensed under Apache 2.0.

Add 'text' language tag to the audit-chain ASCII diagram fence
(docs/ap2/compliance_receipt.md:112) per markdownlint MD040.

Add 22 project-specific words to .cspell/custom-words.txt: British-
English orthography matching the AlgoVoi-authored IETF I-Ds
(canonicalisation, canonicalised, unrecognised, unauthorised,
recognised, tipping), authorship/host names (AlgoVoi, chopmob, hopley,
datatracker), and regulatory acronyms (JCS, SAMLA, MiCA, OFAC, OFSI,
RFC). Follows the same pattern as AP2#253.
canonicalise (bare verb form), Behavioural, behavioural, authorisation —
British -ise / -our forms used in the AlgoVoi-authored IETF I-Ds.
@chopmob-cloud chopmob-cloud changed the title docs(ap2): add Compliance Receipt — admission-time AlgoVoi attestation envelope bound to Payment/Cart Mandate docs(ap2): add Compliance Receipt - admission-time AlgoVoi attestation envelope bound to Payment/Cart Mandate May 28, 2026
@chopmob-cloud chopmob-cloud force-pushed the docs-ap2-compliance-receipt branch from 6be1f74 to 6750b14 Compare May 29, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant