-
Notifications
You must be signed in to change notification settings - Fork 470
feat(extensions): AlgoVoi PQC/ZKP credential binding and ZKP receipt — production deployment notice #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chopmob-cloud
wants to merge
11
commits into
google-agentic-commerce:main
Choose a base branch
from
chopmob-cloud:feat-algovoi-pqc-zkp-production-notice
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+188
−0
Open
feat(extensions): AlgoVoi PQC/ZKP credential binding and ZKP receipt — production deployment notice #276
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
00e4044
docs(ap2): AlgoVoi PQC/ZKP credential binding + ZKP receipt — product…
chopmob-cloud f0fdddf
Update docs/ap2/pqc_zkp_credential_binding.md
chopmob-cloud 9b74c41
Update docs/ap2/pqc_zkp_credential_binding.md
chopmob-cloud b193dac
fix(lint): headings, table style, code block lang, spellcheck words
chopmob-cloud 03bde0a
fix(spellcheck): add AlgoVoi domain words to custom wordlist
chopmob-cloud 0d812a8
fix(lint): add biome.json exclusion for web-client
chopmob-cloud f62e183
docs: mark IETF drafts as under review
chopmob-cloud 36e945a
docs: IETF drafts — under editor review
chopmob-cloud 7a58ef1
fix: correct IETF datatracker URLs (remove -00 version suffix)
chopmob-cloud 28577d5
fix: remove -00 version suffix from IETF draft link text
chopmob-cloud 47e13f0
fix(lint): fenced code language (MD040) and table separator spacing (…
chopmob-cloud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,170 @@ | ||
| # AP2 — PQC credential binding + ZKP receipt in production | ||
|
|
||
| **Repo:** google-agentic-commerce/AP2 | ||
| **Related open PRs:** #270 (lifecycle), #271 (settlement), #272 (trust query), #273 (RFC 9421), #274 (PEF) | ||
| **Type:** Production deployment notice | ||
|
|
||
| --- | ||
|
|
||
| ## Production status | ||
|
|
||
| AlgoVoi's AP2 `POST /ap2/confirm` is **live in production** with ZKP-bound payment evidence and full agent session spend tracking as of 2026-06-04. | ||
|
|
||
| --- | ||
|
|
||
| ## New response headers on `POST /ap2/confirm` (Phase 2 ATB sessions only) | ||
|
|
||
| ```http | ||
| HTTP/1.1 200 OK | ||
| X-ZKP-Receipt-Payload: <base64url unsigned ZKP receipt> | ||
| X-Composite-Trust-Verdict: TRUSTED | ||
|
|
||
| {"verified": true, "access_token": "...", "settlement_attestation": {"settlement_result": "SETTLED", ...}} | ||
| ``` | ||
|
|
||
| Additionally: **agent session spend cap is now wired** to `/ap2/confirm` — payments made via session JWT decrement the cap; exceeded cap returns `402 agent_spend_cap_exceeded`. | ||
|
|
||
| Both headers are **only present for Phase 2 ATB sessions**. All existing AP2 flows are unaffected. | ||
|
|
||
| --- | ||
|
|
||
| ## Agent credential flow for AP2 | ||
|
|
||
| AP2 is a mandate-based protocol. The ZKP credential binds at the `/ap2/confirm` step, after the `CartMandate` and `PaymentMandate` have been accepted: | ||
|
|
||
| ``` | ||
| 1. Agent → POST /auth/token | ||
| Headers: X-Tenant-Id, Authorization: Bearer <api_key> | ||
| Body: { "atb_zk_credential": "<Falcon-1024 Phase 2 cert>", "spend_cap_usd": 100.0 } | ||
| ← session JWT issued; ZKP commitment + proof bound to session; spend cap initialised | ||
|
|
||
| 2. Agent → POST /ap2/intent (IntentMandate) | ||
| Authorization: Bearer <session_token> | ||
|
|
||
| 3. Agent → POST /ap2/cart (CartMandate, merchant-signed) | ||
| Authorization: Bearer <session_token> | ||
|
|
||
| 4. Agent → POST /ap2/pay (initiate on-chain payment) | ||
| Authorization: Bearer <session_token> | ||
|
|
||
| 5. Agent → POST /ap2/confirm | ||
| Authorization: Bearer <session_token> | ||
| Body: { "tx_id": "...", "network": "...", "payment_id": "..." } | ||
| ← 200 OK with X-ZKP-Receipt-Payload + X-Composite-Trust-Verdict | ||
| Spend cap decremented by confirmed payment amount | ||
| ``` | ||
|
|
||
| The session token is valid across the full AP2 lifecycle. Once `spend_cap_usd` is exhausted, further payments return `402 agent_spend_cap_exceeded`. | ||
|
|
||
| --- | ||
|
|
||
| ## Composite trust verdict | ||
|
|
||
| The `X-Composite-Trust-Verdict` header composes the AP2 settlement attestation with the ZKP receipt at confirmation time. Independently reproducible: | ||
|
|
||
| ```http | ||
| POST https://api.algovoi.co.uk/compliance/trust-query | ||
| Content-Type: application/json | ||
|
|
||
| { | ||
| "receipts": [ | ||
| { | ||
| "settlement_result": "SETTLED", | ||
| "settlement_provider_did": "did:web:api.algovoi.co.uk" | ||
| }, | ||
| { | ||
| "type": "zkp_receipt", | ||
| "threshold_met": true, | ||
| "bench_issuer": "did:web:agent-trust-bench.algovoi.co.uk" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| ```json | ||
| { | ||
| "trust_outcome": "TRUSTED", | ||
| "composite_hash": "36042eb288b6557aed801ed9a2fe6e077b31bd7261a4dffbe8107ef078867f10", | ||
| "receipt_count": 2 | ||
| } | ||
| ``` | ||
|
|
||
| Possible verdicts: `TRUSTED` · `PROVISIONAL` (`PENDING_FINALITY`) · `INSUFFICIENT_EVIDENCE` · `UNTRUSTED`. | ||
| Specified in [`draft-hopley-x402-composite-trust-query`](https://datatracker.ietf.org/doc/draft-hopley-x402-composite-trust-query/) — open PR #272. | ||
|
|
||
| --- | ||
|
|
||
| ## Validation stages | ||
|
|
||
| **Stage 1 — Specification** | ||
|
|
||
| | Reference | Subject | | ||
| |---|---| | ||
| | [`draft-hopley-x402-pqc-credential-binding-00`](https://datatracker.ietf.org/doc/draft-hopley-x402-pqc-credential-binding-00/) | Falcon-1024 / ML-DSA-65 (NIST FIPS 204/206) credential binding to AP2 payment authorisation | | ||
|
Check warning on line 103 in docs/ap2/pqc_zkp_credential_binding.md
|
||
| | [`draft-hopley-x402-federation-zkp-00`](https://datatracker.ietf.org/doc/draft-hopley-x402-federation-zkp-00/) | Cross-issuer ZKP composition; composite commitment: `SHA-256(domain ‖ comm_0 ‖ … ‖ nonce)` | | ||
| | [`draft-hopley-x402-composite-trust-query`](https://datatracker.ietf.org/doc/draft-hopley-x402-composite-trust-query/) | Composite trust verdict — open PR #272 | | ||
| | [IACR ePrint 2026/109852](https://eprint.iacr.org/2026/109852) | *"Agent Trust Bench: Adversarial Payment Profiling for Autonomous Agents with Post-Quantum Credential Binding and Cross-Issuer Federation"* — under IACR editor review | | ||
|
|
||
| **Stage 2 — Implementation** | ||
|
|
||
| Production deployment to `api.algovoi.co.uk` as of 2026-06-04: | ||
| - `algovoi-federation-validator` v0.1.1 — 59/59 tests pass | ||
| - `algovoi-zkp-receipt` v0.1.0 — 13/13 tests pass | ||
| - Gateway agent auth + ZKP receipt pipeline — 75/75 tests pass | ||
| - ATB ZKP service (Rust / Bulletproofs / Ristretto255) — live | ||
| - AP2 spend cap wiring — now complete (was missing; fixed 2026-06-04) | ||
|
|
||
| **Stage 3 — Cross-language conformance** | ||
|
|
||
| `zkp_receipt_v1` payload canonicalisation validated byte-for-byte across 8 independent JCS implementations: | ||
|
|
||
| | Language | Result | | ||
| |---|---| | ||
| | Python `rfc8785 0.1.4` | **8/8 PASS** | | ||
| | Node.js `canonicalize 3.0.0` | **8/8 PASS** | | ||
| | Ruby `json-canonicalization 1.0.0` | **8/8 PASS** | | ||
| | PHP `root23/php-json-canonicalization 1.0.1` | **8/8 PASS** | | ||
| | Go `gowebpki/jcs v1.0.1` | **8/8 PASS** | | ||
| | Rust / Java / .NET | By transitivity — 320/320 prior attestation | | ||
|
|
||
| Attestation: [`2026-06-04-zkp-receipt-v1-cross-validation.md`](https://github.com/chopmob-cloud/algovoi-jcs-conformance-vectors/blob/main/_attestations/2026-06-04-zkp-receipt-v1-cross-validation.md) | ||
| Cumulative: **664/664** byte-for-byte agreements across 9 vector sets, 8 JCS implementations. | ||
|
|
||
| **Stage 4 — Live production smoke** | ||
|
|
||
| - 13/13 service checks pass | ||
| - All four CTQ verdicts verified live | ||
| - ATB bench score: 128/138 (92.8%) | ||
| - 7 chains: Algorand, VOI, Hedera, Stellar, Base, Solana, Tempo | ||
|
|
||
| --- | ||
|
|
||
| ## Licensing — these packages are not open source | ||
|
|
||
| Three deployment paths are available: | ||
|
|
||
| **1. Hosted commercial application** | ||
| Use `api.algovoi.co.uk` directly — the full PQC/ZKP/Federation stack is live under the standard AlgoVoi 0.50% transaction fee. No additional licence required. All response headers are available to session-authenticated tenants. | ||
|
|
||
| **2. Commercial Docker instances** | ||
| Run `algovoi-federation-validator` and `algovoi-zkp-receipt` as Docker containers on your own infrastructure under the **AlgoVoi Commercial License v1.0**. Production-grade Docker images are available to licence holders. Evaluation use (non-commercial, non-production) is free. | ||
|
|
||
| **3. Enterprise / OEM / acquisition** | ||
| Custom on-premise deployments, white-label integrations, and acquisition enquiries. Contact [hello@algovoi.co.uk](mailto:hello@algovoi.co.uk). | ||
|
|
||
| --- | ||
|
|
||
| The **self-hosted implementation packages are proprietary and will not be open-sourced under any circumstances**: | ||
|
|
||
| | Package | Licence | | ||
| |---|---| | ||
| | `algovoi-federation-validator` | **AlgoVoi Commercial License v1.0 — not open source** | | ||
| | `algovoi-zkp-receipt` | **AlgoVoi Commercial License v1.0 — not open source** | | ||
|
|
||
| There is no Apache, MIT, or community-licence path for these packages. Production deployment, revenue-generating use, or managed-service operation requires a written Commercial Licence Agreement. Contact [hello@algovoi.co.uk](mailto:hello@algovoi.co.uk). | ||
|
chopmob-cloud marked this conversation as resolved.
Outdated
|
||
|
|
||
| All 31 AlgoVoi substrate packages remain Apache 2.0. | ||
|
|
||
| --- | ||
|
|
||
| *AlgoVoi (chopmob-cloud) -- [docs.algovoi.co.uk/pqc-substrate](https://docs.algovoi.co.uk/pqc-substrate)* | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.