Skip to content
DigiWebscapePublic

About

Open protocol specification, JSON schemas, and compliance linter for Agent Transaction Protocol (ATP/1.0) - enabling autonomous AI shopping assistants to discover catalogs, lock ephemeral reservations, and execute settlements with zero-cookie privacy.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Agent Transaction Protocol (ATP/1.0)

License: Apache-2.0 Specification TypeScript

Agent Transaction Protocol (ATP/1.0) is an open, vendor-neutral protocol standard designed for autonomous artificial intelligence agents, LLM shopping assistants, and autonomous conversational systems to discover catalogs, negotiate guaranteed quotes, secure ephemeral reservation locks (res_*), and execute settlements with zero-cookie privacy compliance.

ATP/1.0 is authored and maintained by DigiWebscape and founder Hitender Sharma.


⚡ Quickstart

1. Audit Any Storefront's ATP Manifest

Run the compliance linter against any live or local storefront manifest:

# Audit a live domain's well-known ATP manifest
npx @digiwebscape/atp https://yourdomain.com/.well-known/atp.json

# Audit with live endpoint probing
npx @digiwebscape/atp https://yourdomain.com/.well-known/atp.json --probe

# Audit a local file before deployment
npx @digiwebscape/atp ./public/.well-known/atp.json

2. Programmatic Schema Validation in TypeScript

Install the official zero-dependency package:

npm install @digiwebscape/atp
import {
  validateManifestObject,
  validateCatalogObject,
  validateReservationObject,
  validateWebhookPayload
} from '@digiwebscape/atp';

// Validate a fetched discovery manifest
const report = validateManifestObject(manifestJson);
if (!report.valid) {
  console.error('ATP Compliance Violations:', report.issues);
} else {
  console.log('✓ Storefront conforms to ATP/1.0');
}

🏛️ Core Architecture & Protocol Lifecycle

1. Discovery      GET  /.well-known/atp.json   -> Returns manifest & endpoints
2. Query Catalog  GET  /catalog/inventory      -> Returns real-time stock & prices
3. Reserve Stock  POST /orders/reserve         -> Locks stock & freezes price (res_*, 600s TTL)
4. Settle Order   POST /orders/:id/complete    -> Confirms payment & provisions license key
5. Release Hold   POST /orders/:id/cancel      -> Immediately releases inventory hold

Key Guarantees:

  • Anti-Slippage Guarantee: Ephemeral reservation locks (res_*, 600-second TTL) guarantee that prices will not change and inventory will not be oversold during multi-step agent checkout sequences.
  • Zero-Cookie Mandate: Discovery and catalog APIs operate without browser cookies (Set-Cookie), eliminating tracking vulnerabilities and ensuring pure stateless edge execution.
  • Crawler Politeness: Conforms to RFC 9309 standards for automated discovery by AI answer engines.

📂 Repository Contents

  • RFC-0001-ATP-1.0.md: The authoritative ATP/1.0 specification document.
  • schemas/: Official JSON Schema (Draft 2020-12) validation definitions:
    • atp-manifest.schema.json: Discovery manifest schema.
    • atp-catalog.schema.json: Real-time inventory and variant schema.
    • atp-reservation.schema.json: Ephemeral quote and inventory lock schema.
    • atp-webhook.schema.json: Outbound machine webhook events schema.
  • src/: TypeScript types, validator logic, and CLI compliance linter.

📜 License & Copyright

  • Protocol Specification & Schemas: Licensed under the Apache License, Version 2.0.
  • Specification Prose: Licensed under Creative Commons Attribution 4.0 International (CC-BY 4.0).
  • Copyright: Copyright © 2026 DigiWebscape. All rights reserved.

About

Open protocol specification, JSON schemas, and compliance linter for Agent Transaction Protocol (ATP/1.0) - enabling autonomous AI shopping assistants to discover catalogs, lock ephemeral reservations, and execute settlements with zero-cookie privacy.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages