From 38c038414db3355fbf104cfaba97f2a79c34721d Mon Sep 17 00:00:00 2001 From: KutluhanETH Date: Wed, 25 Nov 2026 16:50:13 +0000 Subject: [PATCH 1/2] docs(ack-pay): optional listing verification preflight pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document a small discover → verify_listing → pay/act flow so agents can refuse stale or unsupported listing claims before spending. ACK stays vendor-neutral; no required verifier dependency. Fixes #170 --- .../listing-verification-preflight.mdx | 63 +++++++++++++++++++ docs/docs.json | 7 ++- 2 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 docs/ack-pay/listing-verification-preflight.mdx diff --git a/docs/ack-pay/listing-verification-preflight.mdx b/docs/ack-pay/listing-verification-preflight.mdx new file mode 100644 index 00000000..23cd48cd --- /dev/null +++ b/docs/ack-pay/listing-verification-preflight.mdx @@ -0,0 +1,63 @@ +--- +title: "Listing verification preflight" +description: "Optional third-party check that a discovered product or listing still supports the claim before an agent pays or acts." +--- + +Agent commerce often has a reliability gap between **discovery** and **action**: + +1. Search or discovery returns a marketplace, classified, auction, or retail URL. +2. The agent is about to recommend, purchase, or otherwise rely on that listing. +3. Meanwhile the listing may be stale, removed, blocked, repriced, or otherwise unable to support the claim. + +ACK does not require a built-in listing verifier. It does benefit from a small, optional **preflight** hop so agents refuse to invent facts when the source no longer supports them. + +## Suggested flow + +``` +discover / search + → obtain candidate listing URL + claim + → call verify_listing (optional third-party) + → if supported: continue the commerce / payment workflow + → if removed / blocked / unreachable / insufficient: do not rely on the stale claim +``` + +This sits **before** payment or other irreversible agent actions. It complements human-in-the-loop controls described in [Human Oversight Integration](/ack-pay/hitl); it does not replace ACK-Pay receipt verification. + +## What a verifier should return + +A useful verifier returns **source-supported** listing information when retrievable, or an explicit non-success state such as: + +- `removed` +- `blocked` +- `unreachable` +- `unsupported` +- `insufficient_evidence` + +The important rule: **do not invent a fact** when verification fails. Prefer an explicit failure state over a guessed price, availability, or title. + +## Integration shape + +Keep the ACK-facing surface small and optional: + +- Input: public listing URL + the claim being checked (for example price, SKU, or availability). +- Output: structured support status and any retrieved fields the source still backs. +- Transport: any HTTP / MCP / A2A endpoint the agent already knows how to call; x402-style paid verification is fine but not required by ACK. + +ACK should not take a hard dependency on any one verifier. An example integration may show how to plug in a third-party service; production agents choose their own provider or skip the hop. + +## Relation to ACK-Pay + +| Step | Role | +| --- | --- | +| Discovery | Outside ACK (search, catalogs, other agents) | +| Listing preflight | Optional third-party check (this pattern) | +| Payment | ACK-Pay request / paywall / receipt | +| Oversight | HITL thresholds as needed | + +Use preflight when the agent's next action would assert or spend against an external listing. Skip it for flows that already hold a fresh, trusted quote from the merchant. + +## See also + +- [Human Oversight Integration](/ack-pay/hitl) +- [Core Payment Sequences](/ack-pay/core-payment-sequences) +- Issue discussion: [#170](https://github.com/agentcommercekit/ack/issues/170) diff --git a/docs/docs.json b/docs/docs.json index 2f6da923..b13c8960 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -67,9 +67,10 @@ "ack-pay/payment-service", "ack-pay/payment-request-payload", "ack-pay/receipt-verification", - "ack-pay/hitl", - "ack-pay/operational-considerations", - "ack-pay/summary" + "ack-pay/hitl", + "ack-pay/listing-verification-preflight", + "ack-pay/operational-considerations", + "ack-pay/summary" ] }, { From 4e979da360c3d455257c145574f0d55783b4ecf7 Mon Sep 17 00:00:00 2001 From: KutluhanETH Date: Wed, 25 Nov 2026 18:13:43 +0000 Subject: [PATCH 2/2] docs(ack-pay): add vendor-neutral listing preflight example --- .../listing-verification-preflight.mdx | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/ack-pay/listing-verification-preflight.mdx b/docs/ack-pay/listing-verification-preflight.mdx index 23cd48cd..9df1cf3f 100644 --- a/docs/ack-pay/listing-verification-preflight.mdx +++ b/docs/ack-pay/listing-verification-preflight.mdx @@ -45,6 +45,47 @@ Keep the ACK-facing surface small and optional: ACK should not take a hard dependency on any one verifier. An example integration may show how to plug in a third-party service; production agents choose their own provider or skip the hop. +## Example agent hop + +This is a vendor-neutral sketch. Swap in any HTTP / MCP / A2A verifier you trust, or skip the hop. + +**Candidate** + +- Listing URL: `https://example-market.test/listings/42` +- Claim to check: price is `19.00 USDC` + +**Supported response (continue)** + +```json +{ + "status": "supported", + "listing_url": "https://example-market.test/listings/42", + "fields": { + "price": "19.00", + "currency": "USDC", + "title": "Example listing" + }, + "source": "https://example-market.test/listings/42" +} +``` + +The agent may proceed into the commerce / ACK-Pay flow using only fields the verifier still backs. + +**Removed response (stop relying on the claim)** + +```json +{ + "status": "removed", + "listing_url": "https://example-market.test/listings/42", + "fields": {}, + "reason": "listing no longer published at source" +} +``` + +Do not invent a replacement price or availability. Prefer an explicit non-success status and halt or escalate (for example HITL) instead of paying against a stale claim. + +A third-party verifier endpoint is one optional way to implement this hop. ACK does not require any specific provider. + ## Relation to ACK-Pay | Step | Role |