Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions agentscore_commerce/discovery/llms_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,27 @@ def llms_txt_identity_section(input: LlmsTxtIdentitySectionInput) -> str:
compliance_note = f"\n\nCompliance: {', '.join(parts)}."
return (
"## Choose your identity header\n\n"
"AgentScore provides cross-merchant identity one KYC works for every AgentScore-gated endpoint, "
"AgentScore provides cross-merchant identity: one KYC works for every AgentScore-gated endpoint, "
"no re-verification per site. Pick the right header based on how you plan to pay:\n\n"
"- **Wallet-auth** (preferred for agents with a stable crypto wallet): send `X-Wallet-Address: 0x...`. "
"Only works on rails that carry a wallet signature Tempo MPP and x402 EIP-3009. "
"Only works on rails that carry a wallet signature (Tempo MPP and x402 EIP-3009). "
"The wallet you claim MUST sign the payment; we verify that the payment signer resolves to the same "
"operator as the claimed wallet. No TTL, no rotation.\n"
"- **Operator-token** (works for every rail): send `X-Operator-Token: opc_...`. Required when paying "
"with Stripe SPT or card (those rails have no wallet signer). Reusable across every AgentScore "
"merchant until the token expires.\n"
"- **Neither**: you'll get 403 with `verify_url` + `poll_secret` complete the session flow once, "
"- **Neither**: you'll get 403 with `verify_url` + `poll_secret`; complete the session flow once, "
"then reuse the credential (or any wallet that pays under it) forever.\n\n"
"If you reach another AgentScore-gated endpoint in the future, the same credential and/or any "
"linked wallet already works skip the session flow.\n\n"
"linked wallet already works; skip the session flow.\n\n"
"## Memory contract\n\n"
"First-encounter 403 responses (and the POST /v1/sessions success body) include an `agent_memory` "
"block describing how AgentScore identity works across merchants. LLM-hosted agents should persist "
"its contents (the pattern, never secrets) so subsequent AgentScore-gated endpoints become "
f"returning-customer encounters.{compliance_note}"
"AgentScore-gated merchants emit an `agent_memory` block in their 200 success bodies "
"describing how AgentScore identity works across merchants. The AgentScore API's "
"POST /v1/sessions, POST /v1/credentials, and POST /v1/credentials/wallets first-mint "
"success bodies also include it. LLM-hosted agents should persist its contents (the "
"pattern, never secrets) so subsequent AgentScore-gated endpoints become returning-"
"customer encounters. The operator_token or linked wallet you use here is reusable "
f"everywhere.{compliance_note}"
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "agentscore-commerce"
version = "1.3.4"
version = "1.3.5"
description = "Agent commerce SDK for Python — identity middleware (FastAPI, Flask, Django, AIOHTTP, Sanic, ASGI) + payment helpers + 402 builders + discovery + Stripe multichain. The full merchant-side toolkit for AgentScore-powered agent commerce."
readme = "README.md"
license = "MIT"
Expand Down
22 changes: 11 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading