{
  "schema": "aidenid.agent-skills/1",
  "version": 1,
  "locale": "en",
  "generatorVersion": "1.1.0",
  "source": {
    "contract": "https://aidenid.com/api/demo/store/contract",
    "contractVersion": "2.0.0",
    "sourceHash": "bbc0d390a3e0fd911a0040f2c03d08ff66307c48a5093a79e38d5d00c909833e",
    "catalog": "https://aidenid.com/api/demo/store",
    "catalogHash": "3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc"
  },
  "notice": "Public task map and implemented Demo Store operations. Describing a task does not authorize it. Demo Store — nothing charged or shipped. Read the current catalog and obtain authorization before confirming a simulation. Contact requires a separate authorized email send; Traffic remains human-only.",
  "effects": {
    "scope": "demo-store-operations",
    "simulated": true,
    "moneyMoved": false,
    "fulfillment": "none",
    "persistedOrder": false
  },
  "capabilities": [
    {
      "id": "read",
      "title": "Read about AIdenID",
      "description": "Read the public site story and documentation without JavaScript or an account.",
      "url": "https://aidenid.com/for-agents/browse/",
      "method": "GET",
      "prerequisites": [],
      "returns": "Public explanatory HTML and linked Markdown pages; reading performs no action.",
      "operationIds": [],
      "sourceUrls": [
        "https://aidenid.com/",
        "https://aidenid.com/docs"
      ],
      "guideUrl": "https://aidenid.com/for-agents/browse/"
    },
    {
      "id": "browse_products",
      "title": "Browse demo products",
      "description": "Read fictional products, variants, prices and authored stock in the current Demo Store catalog.",
      "url": "https://aidenid.com/api/demo/store",
      "method": "GET",
      "prerequisites": [],
      "returns": "JSON catalog, variant IDs, prices, availability and the current catalog hash. No cart or order is created.",
      "operationIds": [
        "catalog"
      ],
      "sourceUrls": [
        "https://aidenid.com/store",
        "https://aidenid.com/api/demo/store/contract"
      ],
      "guideUrl": "https://aidenid.com/api/demo/store"
    },
    {
      "id": "buy",
      "title": "Complete a simulated purchase",
      "description": "Preview a selected cart, then confirm the same matching preview only when the person authorized the simulation.",
      "url": "https://aidenid.com/api/demo/execute",
      "method": "POST",
      "prerequisites": [
        {
          "id": "current_catalog",
          "when": "Before previewing a cart."
        },
        {
          "id": "shopping_goal",
          "when": "Before choosing items and before confirmation."
        },
        {
          "id": "json_client",
          "when": "For each preview or confirmation request."
        },
        {
          "id": "simulation_authorization",
          "when": "Before confirmation."
        },
        {
          "id": "matching_preview",
          "when": "Before confirmation."
        },
        {
          "id": "routing_choice",
          "when": "Only if the service requires a purpose decision."
        }
      ],
      "returns": "A preview, then a simulated order and unsigned receipt after valid confirmation. Nothing is charged, persisted, reserved or shipped.",
      "operationIds": [
        "checkout_preview",
        "place_order"
      ],
      "sourceUrls": [
        "https://aidenid.com/store",
        "https://aidenid.com/api/demo/store/contract"
      ],
      "guideUrl": "https://aidenid.com/store"
    },
    {
      "id": "assisted_checkout",
      "title": "Use guided demo checkout",
      "description": "Open the guided shopping page, then follow its forms to select products, review the cart and explicitly confirm an authorized simulation.",
      "url": "https://aidenid.com/api/demo/shop",
      "method": "GET",
      "prerequisites": [
        {
          "id": "form_client",
          "when": "To continue beyond the introductory GET page."
        },
        {
          "id": "shopping_goal",
          "when": "When selecting products and reviewing the cart."
        },
        {
          "id": "returned_context",
          "when": "When continuing or confirming a cart after context is returned."
        },
        {
          "id": "simulation_authorization",
          "when": "Before the confirmation form is submitted."
        },
        {
          "id": "matching_preview",
          "when": "Before confirmation."
        },
        {
          "id": "routing_choice",
          "when": "Only if a form POST requires a purpose decision."
        }
      ],
      "returns": "Introductory HTML and forms when the service is available. Later form POSTs can return a simulated order after confirmation; the entry GET cannot. Optional model names are self-reported.",
      "operationIds": [],
      "sourceUrls": [
        "https://aidenid.com/store",
        "https://aidenid.com/api/demo/shop"
      ],
      "guideUrl": "https://aidenid.com/api/demo/shop"
    },
    {
      "id": "install",
      "title": "Plan your site setup",
      "description": "Read the setup instructions and browser intake flow. Opening this page does not install software, verify a mailbox or change a site.",
      "url": "https://aidenid.com/install",
      "method": "GET",
      "prerequisites": [
        {
          "id": "install_intake",
          "when": "Only to continue the interactive intake beyond reading."
        }
      ],
      "returns": "Public instructions and intake UI. Further steps depend on verification and service availability; no completed installation is promised.",
      "operationIds": [],
      "sourceUrls": [
        "https://aidenid.com/install",
        "https://aidenid.com/report"
      ],
      "guideUrl": "https://aidenid.com/install"
    },
    {
      "id": "contact",
      "title": "Contact the team",
      "description": "Open the published contact address in your email client and compose a message.",
      "url": "mailto:help@plexaura.io",
      "method": "MAILTO",
      "prerequisites": [
        {
          "id": "email_client",
          "when": "To open a draft."
        },
        {
          "id": "send_authorization",
          "when": "Before sending a message."
        }
      ],
      "returns": "A client-side email draft when a mail client is available. Sending is a separate authorized client action; there is no site email-send API.",
      "operationIds": [],
      "sourceUrls": [
        "https://aidenid.com/",
        "mailto:help@plexaura.io"
      ],
      "guideUrl": "mailto:help@plexaura.io"
    },
    {
      "id": "view_traffic",
      "title": "Read Traffic access requirements",
      "description": "Read the public access explanation. Only an admitted human browser can continue to the Traffic dashboard.",
      "url": "https://aidenid.com/traffic-access",
      "method": "GET",
      "prerequisites": [
        {
          "id": "human_admission",
          "when": "Before viewing the dashboard, not before reading the access explanation."
        }
      ],
      "returns": "The public human-access page. After admission a human may open Traffic; agents receive no dashboard-data capability or access bypass.",
      "operationIds": [],
      "sourceUrls": [
        "https://aidenid.com/traffic-access",
        "https://aidenid.com/traffic"
      ],
      "guideUrl": "https://aidenid.com/traffic-access"
    }
  ],
  "prerequisites": [
    {
      "id": "current_catalog",
      "title": "Current catalog",
      "description": "Read the current fictional catalog and use its catalog hash, exact variant IDs and authored availability.",
      "url": "https://aidenid.com/api/demo/store"
    },
    {
      "id": "shopping_goal",
      "title": "Product and budget",
      "description": "Know the requested product, variant, quantity, currency and budget; check the returned cart against that goal.",
      "url": "https://aidenid.com/store"
    },
    {
      "id": "json_client",
      "title": "JSON POST client",
      "description": "Use a POST-capable client and the published JSON request schemas and size limits. A GET request cannot confirm a simulation.",
      "url": "https://aidenid.com/api/demo/store/contract"
    },
    {
      "id": "simulation_authorization",
      "title": "Authorization for simulation",
      "description": "Obtain the person’s authorization before confirming a simulated order. A declared agent name or purpose supplies no such authority.",
      "url": "https://aidenid.com/store"
    },
    {
      "id": "matching_preview",
      "title": "Matching reviewed preview",
      "description": "Review the exact cart and total; confirm only the same current catalog, items and preview hash.",
      "url": "https://aidenid.com/api/demo/store/contract"
    },
    {
      "id": "routing_choice",
      "title": "Purpose choice if requested",
      "description": "If the service returns intent_required, complete the offered purpose flow before trying again. Do not automatically replay a refused action.",
      "url": "https://aidenid.com/agent-intent"
    },
    {
      "id": "form_client",
      "title": "HTML form client",
      "description": "Use a browser or client that can submit the returned HTML forms as application/x-www-form-urlencoded POST requests.",
      "url": "https://aidenid.com/api/demo/shop"
    },
    {
      "id": "returned_context",
      "title": "Returned cart context",
      "description": "Carry the returned shopping context unchanged when continuing a cart. Re-review when context expires or the catalog changes.",
      "url": "https://aidenid.com/api/demo/shop"
    },
    {
      "id": "install_intake",
      "title": "Browser intake and verification",
      "description": "To continue beyond reading: use the canonical install page in a supported JavaScript browser, an available intake service, the human check, a work email and public hostname, then mailbox verification. Follow the returned instructions; setup is not automatic.",
      "url": "https://aidenid.com/install"
    },
    {
      "id": "email_client",
      "title": "Email client",
      "description": "Use an available email client for the published mailto address.",
      "url": "mailto:help@plexaura.io"
    },
    {
      "id": "send_authorization",
      "title": "Authorization to send",
      "description": "Obtain explicit authorization to send the message. Opening a contact link does not send email or guarantee a reply.",
      "url": "mailto:help@plexaura.io"
    },
    {
      "id": "human_admission",
      "title": "Human browser admission",
      "description": "A human must open the access page in a supported JavaScript browser and complete its admission check. Agent identity or a purpose declaration does not grant dashboard access.",
      "url": "https://aidenid.com/traffic-access"
    }
  ],
  "edges": [
    {
      "from": "buy",
      "to": "current_catalog",
      "relation": "requires",
      "when": "Before previewing a cart."
    },
    {
      "from": "buy",
      "to": "shopping_goal",
      "relation": "requires",
      "when": "Before choosing items and before confirmation."
    },
    {
      "from": "buy",
      "to": "json_client",
      "relation": "requires",
      "when": "For each preview or confirmation request."
    },
    {
      "from": "buy",
      "to": "simulation_authorization",
      "relation": "requires",
      "when": "Before confirmation."
    },
    {
      "from": "buy",
      "to": "matching_preview",
      "relation": "requires",
      "when": "Before confirmation."
    },
    {
      "from": "buy",
      "to": "routing_choice",
      "relation": "requires",
      "when": "Only if the service requires a purpose decision."
    },
    {
      "from": "assisted_checkout",
      "to": "form_client",
      "relation": "requires",
      "when": "To continue beyond the introductory GET page."
    },
    {
      "from": "assisted_checkout",
      "to": "shopping_goal",
      "relation": "requires",
      "when": "When selecting products and reviewing the cart."
    },
    {
      "from": "assisted_checkout",
      "to": "returned_context",
      "relation": "requires",
      "when": "When continuing or confirming a cart after context is returned."
    },
    {
      "from": "assisted_checkout",
      "to": "simulation_authorization",
      "relation": "requires",
      "when": "Before the confirmation form is submitted."
    },
    {
      "from": "assisted_checkout",
      "to": "matching_preview",
      "relation": "requires",
      "when": "Before confirmation."
    },
    {
      "from": "assisted_checkout",
      "to": "routing_choice",
      "relation": "requires",
      "when": "Only if a form POST requires a purpose decision."
    },
    {
      "from": "install",
      "to": "install_intake",
      "relation": "requires",
      "when": "Only to continue the interactive intake beyond reading."
    },
    {
      "from": "contact",
      "to": "email_client",
      "relation": "requires",
      "when": "To open a draft."
    },
    {
      "from": "contact",
      "to": "send_authorization",
      "relation": "requires",
      "when": "Before sending a message."
    },
    {
      "from": "view_traffic",
      "to": "human_admission",
      "relation": "requires",
      "when": "Before viewing the dashboard, not before reading the access explanation."
    }
  ],
  "operations": [
    {
      "id": "catalog",
      "dependsOn": [],
      "contract": {
        "capability": "catalog",
        "version": "catalog@2.0.0",
        "title": "Read Demo Store catalog",
        "purpose": "Read current bundled fictional variants, integer USD prices and authored stock.",
        "operationKind": "read",
        "inputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": false
        },
        "outputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": true
            },
            "mode": {
              "const": "demo-store"
            },
            "simulated": {
              "const": true
            },
            "moneyMoved": {
              "const": false
            },
            "fulfillment": {
              "const": "none"
            },
            "notice": {
              "const": "Demo Store — nothing charged or shipped."
            },
            "catalog": {
              "type": "object",
              "properties": {
                "hash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "authoredAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                },
                "currency": {
                  "const": "USD"
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "const": "repository-authored-demo"
                    },
                    "url": {
                      "const": "https://aidenid.com/store-catalog.json"
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "networkFetched": {
                      "const": false
                    }
                  },
                  "required": [
                    "kind",
                    "url",
                    "sha256",
                    "networkFetched"
                  ],
                  "additionalProperties": false
                },
                "products": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      },
                      "imageKey": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "variants": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,95}$"
                            },
                            "sku": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "options": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "color"
                              ],
                              "additionalProperties": false
                            },
                            "price": {
                              "type": "object",
                              "properties": {
                                "amountMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 5000000
                                },
                                "currency": {
                                  "const": "USD"
                                }
                              },
                              "required": [
                                "amountMinor",
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "availability": {
                              "enum": [
                                "in_stock",
                                "out_of_stock"
                              ]
                            },
                            "availableQuantity": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100
                            }
                          },
                          "required": [
                            "id",
                            "sku",
                            "title",
                            "options",
                            "price",
                            "availability",
                            "availableQuantity"
                          ],
                          "additionalProperties": false
                        },
                        "minItems": 2,
                        "maxItems": 2
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "description",
                      "category",
                      "imageKey",
                      "variants"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 6,
                  "maxItems": 6
                }
              },
              "required": [
                "hash",
                "authoredAt",
                "currency",
                "source",
                "products"
              ],
              "additionalProperties": false
            },
            "delivery": {
              "type": "object",
              "properties": {
                "label": {
                  "const": "Simulated delivery estimate"
                },
                "minDays": {
                  "const": 3
                },
                "maxDays": {
                  "const": 5
                }
              },
              "required": [
                "label",
                "minDays",
                "maxDays"
              ],
              "additionalProperties": false
            },
            "capabilities": {
              "type": "array",
              "items": {
                "enum": [
                  "add_to_cart",
                  "checkout_preview",
                  "place_order"
                ]
              },
              "minItems": 3,
              "maxItems": 3,
              "uniqueItems": true
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "authoredAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "mode",
            "simulated",
            "moneyMoved",
            "fulfillment",
            "notice",
            "catalog",
            "delivery",
            "capabilities",
            "provenance"
          ],
          "additionalProperties": false
        },
        "errorSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": false
            },
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "enum": [
                    "origin_not_allowed",
                    "method_not_allowed",
                    "demo_unavailable"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "authoredAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "error",
            "provenance"
          ],
          "additionalProperties": false
        },
        "errors": [
          {
            "status": 403,
            "code": "origin_not_allowed",
            "condition": "An Origin header is present and is not https://aidenid.com or https://www.aidenid.com."
          },
          {
            "status": 405,
            "code": "method_not_allowed",
            "condition": "The HTTP method does not match the route."
          },
          {
            "status": 503,
            "code": "demo_unavailable",
            "condition": "The required Store artifact is invalid or the handler is unavailable."
          }
        ],
        "http": {
          "method": "GET",
          "operationKind": "read",
          "path": "/api/demo/store",
          "queryParameters": false,
          "requestBody": "none",
          "successStatus": 200,
          "responseContentType": "application/json",
          "cacheControl": "no-store",
          "allowedOrigins": [
            "https://aidenid.com",
            "https://www.aidenid.com"
          ],
          "originHeaderRequired": false,
          "preflight": {
            "method": "OPTIONS",
            "status": 204,
            "allowMethods": [
              "GET",
              "POST",
              "OPTIONS"
            ],
            "allowHeaders": [
              "Content-Type"
            ]
          },
          "unrecognizedResponse": {
            "status": 404,
            "contentType": "text/plain; charset=utf-8",
            "body": "Not found",
            "appliesTo": "Unknown routes, query strings, and unrecognized capabilities are outside the operation contract and return an ordinary missing-page response."
          }
        },
        "runtimeGuards": [
          "GET has no parameters or body; unknown query parameters are rejected.",
          "A valid Store artifact is required. Authored stock is not a live merchant observation."
        ],
        "scope": "read",
        "sideEffects": "none",
        "requiresConfirmation": false,
        "confirmation": null,
        "semantics": {
          "physicalEffects": "none",
          "persistence": "none",
          "reservation": "none",
          "payment": "none",
          "fulfillment": "none",
          "egress": "none",
          "source": "repository-authored-demo",
          "liveMerchantState": false,
          "authority": "Anonymous public simulation only; caller-supplied principal, identity or authority fields are rejected.",
          "evidence": "Unsigned hashes bind catalog/cart/preview values; they do not prove identity, delegation, consent, chronology or physical effects.",
          "replay": "Canonical values yield stable cart/preview hashes, receipt IDs and DEMO order numbers. performedAt changes on each response; no order is persisted."
        }
      }
    },
    {
      "id": "add_to_cart",
      "dependsOn": [
        "catalog"
      ],
      "contract": {
        "capability": "add_to_cart",
        "version": "add_to_cart@2.0.0",
        "title": "Simulate cart addition",
        "purpose": "Return a computed cart after adding units to caller-supplied lines; no server cart is stored.",
        "operationKind": "action",
        "inputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "capability": {
              "const": "add_to_cart"
            },
            "params": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "variantId": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "variantId",
                      "quantity"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 0,
                  "maxItems": 12
                },
                "variantId": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9-]{0,95}$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 10
                }
              },
              "required": [
                "catalogHash",
                "items",
                "variantId",
                "quantity"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "capability",
            "params"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": true
            },
            "mode": {
              "const": "demo-store"
            },
            "cart": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "variantId": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      },
                      "title": {
                        "type": "string"
                      },
                      "variantTitle": {
                        "type": "string"
                      },
                      "unitPrice": {
                        "type": "object",
                        "properties": {
                          "amountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000000
                          },
                          "currency": {
                            "const": "USD"
                          }
                        },
                        "required": [
                          "amountMinor",
                          "currency"
                        ],
                        "additionalProperties": false
                      },
                      "lineTotal": {
                        "type": "object",
                        "properties": {
                          "amountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000000
                          },
                          "currency": {
                            "const": "USD"
                          }
                        },
                        "required": [
                          "amountMinor",
                          "currency"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "variantId",
                      "quantity",
                      "title",
                      "variantTitle",
                      "unitPrice",
                      "lineTotal"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 1,
                  "maxItems": 12
                },
                "subtotal": {
                  "type": "object",
                  "properties": {
                    "amountMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 5000000
                    },
                    "currency": {
                      "const": "USD"
                    }
                  },
                  "required": [
                    "amountMinor",
                    "currency"
                  ],
                  "additionalProperties": false
                },
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "cartHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "items",
                "subtotal",
                "catalogHash",
                "cartHash"
              ],
              "additionalProperties": false
            },
            "receipt": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^demo_[a-f0-9]{32}$"
                },
                "operation": {
                  "const": "add_to_cart"
                },
                "simulated": {
                  "const": true
                },
                "moneyMoved": {
                  "const": false
                },
                "fulfillment": {
                  "const": "none"
                },
                "cryptographicallyVerified": {
                  "const": false
                },
                "evidence": {
                  "type": "object",
                  "properties": {
                    "catalogHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "cartHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "sourceHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "catalogHash",
                    "cartHash",
                    "sourceHash"
                  ],
                  "additionalProperties": false
                },
                "performedAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                }
              },
              "required": [
                "id",
                "operation",
                "simulated",
                "moneyMoved",
                "fulfillment",
                "cryptographicallyVerified",
                "evidence",
                "performedAt"
              ],
              "additionalProperties": false
            },
            "notice": {
              "const": "Demo Store — nothing charged or shipped."
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "authoredAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "mode",
            "cart",
            "receipt",
            "notice",
            "provenance"
          ],
          "additionalProperties": false
        },
        "errorSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": false
            },
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "enum": [
                    "origin_not_allowed",
                    "method_not_allowed",
                    "demo_unavailable",
                    "invalid_request",
                    "body_too_large",
                    "unsupported_media_type",
                    "rate_limited",
                    "variant_not_found",
                    "stock_unavailable",
                    "catalog_changed",
                    "intent_required"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "authoredAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "error",
            "provenance"
          ],
          "additionalProperties": false
        },
        "errors": [
          {
            "status": 403,
            "code": "origin_not_allowed",
            "condition": "An Origin header is present and is not https://aidenid.com or https://www.aidenid.com."
          },
          {
            "status": 405,
            "code": "method_not_allowed",
            "condition": "The HTTP method does not match the route."
          },
          {
            "status": 503,
            "code": "demo_unavailable",
            "condition": "The required Store artifact is invalid or the handler is unavailable."
          },
          {
            "status": 400,
            "code": "invalid_request",
            "condition": "Malformed UTF-8/JSON, unknown/missing fields, invalid values, duplicate variant IDs, cart limits or body read timeout."
          },
          {
            "status": 413,
            "code": "body_too_large",
            "condition": "Declared or streamed body exceeds 4096 bytes, declared length is invalid, or body stream limits are exceeded."
          },
          {
            "status": 415,
            "code": "unsupported_media_type",
            "condition": "Content-Type is not application/json, or Content-Encoding is present and not exactly identity."
          },
          {
            "status": 429,
            "code": "rate_limited",
            "condition": "The execution limiter is exhausted; Retry-After is 60 seconds."
          },
          {
            "status": 404,
            "code": "variant_not_found",
            "condition": "A variant ID does not exist in the currently bundled catalog."
          },
          {
            "status": 409,
            "code": "stock_unavailable",
            "condition": "A requested variant is out of stock or quantity exceeds authored availability."
          },
          {
            "status": 409,
            "code": "catalog_changed",
            "condition": "catalogHash does not equal the currently bundled catalog hash."
          },
          {
            "status": 409,
            "code": "intent_required",
            "condition": "An active browser check requires a declaration at /agent-intent before this request can execute. Review and submit again afterward; no request is replayed."
          }
        ],
        "http": {
          "method": "POST",
          "operationKind": "action",
          "path": "/api/demo/execute",
          "queryParameters": false,
          "requestBody": "json",
          "contentType": "application/json",
          "charset": "UTF-8",
          "contentEncoding": "absent or identity",
          "bodyBytes": 4096,
          "bodyDeadlineMs": 3000,
          "bodyChunks": 128,
          "rateLimit": {
            "requests": 30,
            "periodSeconds": 60,
            "key": "trusted client IP",
            "sharedWith": [
              "/api/demo/execute"
            ]
          },
          "successStatus": 200,
          "responseContentType": "application/json",
          "cacheControl": "no-store",
          "allowedOrigins": [
            "https://aidenid.com",
            "https://www.aidenid.com"
          ],
          "originHeaderRequired": false,
          "preflight": {
            "method": "OPTIONS",
            "status": 204,
            "allowMethods": [
              "GET",
              "POST",
              "OPTIONS"
            ],
            "allowHeaders": [
              "Content-Type"
            ]
          },
          "unrecognizedResponse": {
            "status": 404,
            "contentType": "text/plain; charset=utf-8",
            "body": "Not found",
            "appliesTo": "Unknown routes, query strings, and unrecognized capabilities are outside the operation contract and return an ordinary missing-page response."
          }
        },
        "runtimeGuards": [
          "The current validated catalog is required for execution.",
          "Variant IDs must be distinct and total input quantity must not exceed 50. JSON Schema alone does not express these cross-line constraints.",
          "catalogHash must equal the current bundled catalog hash; variant existence, stock and server-computed prices are checked at execution.",
          "Cart lines are canonicalized by variant ID. No client-supplied prices, budget, identity or payment data are accepted.",
          "The server has no budget guard: an immutable goal and budget must be checked by the calling procedure.",
          "After merging the addition, the resulting cart must still have at most 12 lines, 10 units per variant and 50 units total.",
          "When the browser gate is on, the edge service must authorize this request before execution. An unavailable browser check returns demo_unavailable. A declaration or check result creates no shopping authority."
        ],
        "scope": "read",
        "sideEffects": "simulated",
        "requiresConfirmation": false,
        "confirmation": null,
        "semantics": {
          "physicalEffects": "none",
          "persistence": "none",
          "reservation": "none",
          "payment": "none",
          "fulfillment": "none",
          "egress": "When the browser gate is on, internal edge authorization reads before body parsing and execution; no product, task or checkout body is forwarded.",
          "source": "repository-authored-demo",
          "liveMerchantState": false,
          "authority": "Anonymous public simulation only; caller-supplied principal, identity or authority fields are rejected.",
          "evidence": "Unsigned hashes bind catalog/cart/preview values; they do not prove identity, delegation, consent, chronology or physical effects.",
          "replay": "Canonical values yield stable cart/preview hashes, receipt IDs and DEMO order numbers. performedAt changes on each response; no order is persisted."
        }
      }
    },
    {
      "id": "checkout_preview",
      "dependsOn": [
        "catalog"
      ],
      "contract": {
        "capability": "checkout_preview",
        "version": "checkout_preview@2.0.0",
        "title": "Preview simulated checkout",
        "purpose": "Compute the canonical cart total, fictional delivery estimate and value-bound preview hash.",
        "operationKind": "action",
        "inputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "capability": {
              "const": "checkout_preview"
            },
            "params": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "variantId": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "variantId",
                      "quantity"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 0,
                  "maxItems": 12
                }
              },
              "required": [
                "catalogHash",
                "items"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "capability",
            "params"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": true
            },
            "mode": {
              "const": "demo-store"
            },
            "cart": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "variantId": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      },
                      "title": {
                        "type": "string"
                      },
                      "variantTitle": {
                        "type": "string"
                      },
                      "unitPrice": {
                        "type": "object",
                        "properties": {
                          "amountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000000
                          },
                          "currency": {
                            "const": "USD"
                          }
                        },
                        "required": [
                          "amountMinor",
                          "currency"
                        ],
                        "additionalProperties": false
                      },
                      "lineTotal": {
                        "type": "object",
                        "properties": {
                          "amountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000000
                          },
                          "currency": {
                            "const": "USD"
                          }
                        },
                        "required": [
                          "amountMinor",
                          "currency"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "variantId",
                      "quantity",
                      "title",
                      "variantTitle",
                      "unitPrice",
                      "lineTotal"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 1,
                  "maxItems": 12
                },
                "subtotal": {
                  "type": "object",
                  "properties": {
                    "amountMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 5000000
                    },
                    "currency": {
                      "const": "USD"
                    }
                  },
                  "required": [
                    "amountMinor",
                    "currency"
                  ],
                  "additionalProperties": false
                },
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "cartHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "items",
                "subtotal",
                "catalogHash",
                "cartHash"
              ],
              "additionalProperties": false
            },
            "receipt": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^demo_[a-f0-9]{32}$"
                },
                "operation": {
                  "const": "checkout_preview"
                },
                "simulated": {
                  "const": true
                },
                "moneyMoved": {
                  "const": false
                },
                "fulfillment": {
                  "const": "none"
                },
                "cryptographicallyVerified": {
                  "const": false
                },
                "evidence": {
                  "type": "object",
                  "properties": {
                    "catalogHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "cartHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "sourceHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "catalogHash",
                    "cartHash",
                    "sourceHash"
                  ],
                  "additionalProperties": false
                },
                "performedAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                }
              },
              "required": [
                "id",
                "operation",
                "simulated",
                "moneyMoved",
                "fulfillment",
                "cryptographicallyVerified",
                "evidence",
                "performedAt"
              ],
              "additionalProperties": false
            },
            "notice": {
              "const": "Demo Store — nothing charged or shipped."
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "authoredAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            },
            "checkout": {
              "type": "object",
              "properties": {
                "previewHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "total": {
                  "type": "object",
                  "properties": {
                    "amountMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 5000000
                    },
                    "currency": {
                      "const": "USD"
                    }
                  },
                  "required": [
                    "amountMinor",
                    "currency"
                  ],
                  "additionalProperties": false
                },
                "delivery": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "const": "Simulated delivery estimate"
                    },
                    "minDays": {
                      "const": 3
                    },
                    "maxDays": {
                      "const": 5
                    }
                  },
                  "required": [
                    "label",
                    "minDays",
                    "maxDays"
                  ],
                  "additionalProperties": false
                },
                "requiresConfirmation": {
                  "const": true
                }
              },
              "required": [
                "previewHash",
                "total",
                "delivery",
                "requiresConfirmation"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "mode",
            "cart",
            "receipt",
            "notice",
            "provenance",
            "checkout"
          ],
          "additionalProperties": false
        },
        "errorSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": false
            },
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "enum": [
                    "origin_not_allowed",
                    "method_not_allowed",
                    "demo_unavailable",
                    "invalid_request",
                    "body_too_large",
                    "unsupported_media_type",
                    "rate_limited",
                    "variant_not_found",
                    "stock_unavailable",
                    "catalog_changed",
                    "empty_cart",
                    "intent_required"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "authoredAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "error",
            "provenance"
          ],
          "additionalProperties": false
        },
        "errors": [
          {
            "status": 403,
            "code": "origin_not_allowed",
            "condition": "An Origin header is present and is not https://aidenid.com or https://www.aidenid.com."
          },
          {
            "status": 405,
            "code": "method_not_allowed",
            "condition": "The HTTP method does not match the route."
          },
          {
            "status": 503,
            "code": "demo_unavailable",
            "condition": "The required Store artifact is invalid or the handler is unavailable."
          },
          {
            "status": 400,
            "code": "invalid_request",
            "condition": "Malformed UTF-8/JSON, unknown/missing fields, invalid values, duplicate variant IDs, cart limits or body read timeout."
          },
          {
            "status": 413,
            "code": "body_too_large",
            "condition": "Declared or streamed body exceeds 4096 bytes, declared length is invalid, or body stream limits are exceeded."
          },
          {
            "status": 415,
            "code": "unsupported_media_type",
            "condition": "Content-Type is not application/json, or Content-Encoding is present and not exactly identity."
          },
          {
            "status": 429,
            "code": "rate_limited",
            "condition": "The execution limiter is exhausted; Retry-After is 60 seconds."
          },
          {
            "status": 404,
            "code": "variant_not_found",
            "condition": "A variant ID does not exist in the currently bundled catalog."
          },
          {
            "status": 409,
            "code": "stock_unavailable",
            "condition": "A requested variant is out of stock or quantity exceeds authored availability."
          },
          {
            "status": 409,
            "code": "catalog_changed",
            "condition": "catalogHash does not equal the currently bundled catalog hash."
          },
          {
            "status": 400,
            "code": "empty_cart",
            "condition": "The preview cart is empty."
          },
          {
            "status": 409,
            "code": "intent_required",
            "condition": "An active browser check requires a declaration at /agent-intent before this request can execute. Review and submit again afterward; no request is replayed."
          }
        ],
        "http": {
          "method": "POST",
          "operationKind": "action",
          "path": "/api/demo/execute",
          "queryParameters": false,
          "requestBody": "json",
          "contentType": "application/json",
          "charset": "UTF-8",
          "contentEncoding": "absent or identity",
          "bodyBytes": 4096,
          "bodyDeadlineMs": 3000,
          "bodyChunks": 128,
          "rateLimit": {
            "requests": 30,
            "periodSeconds": 60,
            "key": "trusted client IP",
            "sharedWith": [
              "/api/demo/execute"
            ]
          },
          "successStatus": 200,
          "responseContentType": "application/json",
          "cacheControl": "no-store",
          "allowedOrigins": [
            "https://aidenid.com",
            "https://www.aidenid.com"
          ],
          "originHeaderRequired": false,
          "preflight": {
            "method": "OPTIONS",
            "status": 204,
            "allowMethods": [
              "GET",
              "POST",
              "OPTIONS"
            ],
            "allowHeaders": [
              "Content-Type"
            ]
          },
          "unrecognizedResponse": {
            "status": 404,
            "contentType": "text/plain; charset=utf-8",
            "body": "Not found",
            "appliesTo": "Unknown routes, query strings, and unrecognized capabilities are outside the operation contract and return an ordinary missing-page response."
          }
        },
        "runtimeGuards": [
          "The current validated catalog is required for execution.",
          "Variant IDs must be distinct and total input quantity must not exceed 50. JSON Schema alone does not express these cross-line constraints.",
          "catalogHash must equal the current bundled catalog hash; variant existence, stock and server-computed prices are checked at execution.",
          "Cart lines are canonicalized by variant ID. No client-supplied prices, budget, identity or payment data are accepted.",
          "The server has no budget guard: an immutable goal and budget must be checked by the calling procedure.",
          "A preview needs at least one cart line; empty arrays pass shape validation and fail this execution guard.",
          "When the browser gate is on, the edge service must authorize this request before execution. An unavailable browser check returns demo_unavailable. A declaration or check result creates no shopping authority."
        ],
        "scope": "read",
        "sideEffects": "simulated",
        "requiresConfirmation": false,
        "confirmation": null,
        "semantics": {
          "physicalEffects": "none",
          "persistence": "none",
          "reservation": "none",
          "payment": "none",
          "fulfillment": "none",
          "egress": "When the browser gate is on, internal edge authorization reads before body parsing and execution; no product, task or checkout body is forwarded.",
          "source": "repository-authored-demo",
          "liveMerchantState": false,
          "authority": "Anonymous public simulation only; caller-supplied principal, identity or authority fields are rejected.",
          "evidence": "Unsigned hashes bind catalog/cart/preview values; they do not prove identity, delegation, consent, chronology or physical effects.",
          "replay": "Canonical values yield stable cart/preview hashes, receipt IDs and DEMO order numbers. performedAt changes on each response; no order is persisted."
        }
      }
    },
    {
      "id": "place_order",
      "dependsOn": [
        "checkout_preview"
      ],
      "contract": {
        "capability": "place_order",
        "version": "place_order@2.0.0",
        "title": "Confirm simulated order",
        "purpose": "Return a stable DEMO order number for an explicitly confirmed matching preview; nothing is charged or shipped.",
        "operationKind": "action",
        "inputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "capability": {
              "const": "place_order"
            },
            "params": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "variantId": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      }
                    },
                    "required": [
                      "variantId",
                      "quantity"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 0,
                  "maxItems": 12
                },
                "previewHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "confirmed": {
                  "type": "boolean"
                }
              },
              "required": [
                "catalogHash",
                "items",
                "previewHash",
                "confirmed"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "capability",
            "params"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": true
            },
            "mode": {
              "const": "demo-store"
            },
            "cart": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "variantId": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9-]{0,95}$"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                      },
                      "title": {
                        "type": "string"
                      },
                      "variantTitle": {
                        "type": "string"
                      },
                      "unitPrice": {
                        "type": "object",
                        "properties": {
                          "amountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000000
                          },
                          "currency": {
                            "const": "USD"
                          }
                        },
                        "required": [
                          "amountMinor",
                          "currency"
                        ],
                        "additionalProperties": false
                      },
                      "lineTotal": {
                        "type": "object",
                        "properties": {
                          "amountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000000
                          },
                          "currency": {
                            "const": "USD"
                          }
                        },
                        "required": [
                          "amountMinor",
                          "currency"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "variantId",
                      "quantity",
                      "title",
                      "variantTitle",
                      "unitPrice",
                      "lineTotal"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 1,
                  "maxItems": 12
                },
                "subtotal": {
                  "type": "object",
                  "properties": {
                    "amountMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 5000000
                    },
                    "currency": {
                      "const": "USD"
                    }
                  },
                  "required": [
                    "amountMinor",
                    "currency"
                  ],
                  "additionalProperties": false
                },
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "cartHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "items",
                "subtotal",
                "catalogHash",
                "cartHash"
              ],
              "additionalProperties": false
            },
            "receipt": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^demo_[a-f0-9]{32}$"
                },
                "operation": {
                  "const": "place_order"
                },
                "simulated": {
                  "const": true
                },
                "moneyMoved": {
                  "const": false
                },
                "fulfillment": {
                  "const": "none"
                },
                "cryptographicallyVerified": {
                  "const": false
                },
                "evidence": {
                  "type": "object",
                  "properties": {
                    "catalogHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "cartHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "sourceHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "catalogHash",
                    "cartHash",
                    "sourceHash"
                  ],
                  "additionalProperties": false
                },
                "performedAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                }
              },
              "required": [
                "id",
                "operation",
                "simulated",
                "moneyMoved",
                "fulfillment",
                "cryptographicallyVerified",
                "evidence",
                "performedAt"
              ],
              "additionalProperties": false
            },
            "notice": {
              "const": "Demo Store — nothing charged or shipped."
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "authoredAt": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            },
            "order": {
              "type": "object",
              "properties": {
                "number": {
                  "type": "string",
                  "pattern": "^DEMO-[A-F0-9]{12}$"
                },
                "status": {
                  "const": "simulated_confirmed"
                },
                "total": {
                  "type": "object",
                  "properties": {
                    "amountMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 5000000
                    },
                    "currency": {
                      "const": "USD"
                    }
                  },
                  "required": [
                    "amountMinor",
                    "currency"
                  ],
                  "additionalProperties": false
                },
                "delivery": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "const": "Simulated delivery estimate"
                    },
                    "minDays": {
                      "const": 3
                    },
                    "maxDays": {
                      "const": 5
                    }
                  },
                  "required": [
                    "label",
                    "minDays",
                    "maxDays"
                  ],
                  "additionalProperties": false
                },
                "fulfillment": {
                  "const": "none"
                }
              },
              "required": [
                "number",
                "status",
                "total",
                "delivery",
                "fulfillment"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "mode",
            "cart",
            "receipt",
            "notice",
            "provenance",
            "order"
          ],
          "additionalProperties": false
        },
        "errorSchema": {
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "properties": {
            "version": {
              "const": 1
            },
            "ok": {
              "const": false
            },
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "enum": [
                    "origin_not_allowed",
                    "method_not_allowed",
                    "demo_unavailable",
                    "invalid_request",
                    "body_too_large",
                    "unsupported_media_type",
                    "rate_limited",
                    "variant_not_found",
                    "stock_unavailable",
                    "catalog_changed",
                    "empty_cart",
                    "confirmation_required",
                    "preview_changed",
                    "intent_required"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            },
            "provenance": {
              "type": "object",
              "properties": {
                "catalogHash": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "authoredAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sourceKind": {
                  "const": "repository-authored-demo"
                }
              },
              "required": [
                "catalogHash",
                "authoredAt",
                "sourceKind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "ok",
            "error",
            "provenance"
          ],
          "additionalProperties": false
        },
        "errors": [
          {
            "status": 403,
            "code": "origin_not_allowed",
            "condition": "An Origin header is present and is not https://aidenid.com or https://www.aidenid.com."
          },
          {
            "status": 405,
            "code": "method_not_allowed",
            "condition": "The HTTP method does not match the route."
          },
          {
            "status": 503,
            "code": "demo_unavailable",
            "condition": "The required Store artifact is invalid or the handler is unavailable."
          },
          {
            "status": 400,
            "code": "invalid_request",
            "condition": "Malformed UTF-8/JSON, unknown/missing fields, invalid values, duplicate variant IDs, cart limits or body read timeout."
          },
          {
            "status": 413,
            "code": "body_too_large",
            "condition": "Declared or streamed body exceeds 4096 bytes, declared length is invalid, or body stream limits are exceeded."
          },
          {
            "status": 415,
            "code": "unsupported_media_type",
            "condition": "Content-Type is not application/json, or Content-Encoding is present and not exactly identity."
          },
          {
            "status": 429,
            "code": "rate_limited",
            "condition": "The execution limiter is exhausted; Retry-After is 60 seconds."
          },
          {
            "status": 404,
            "code": "variant_not_found",
            "condition": "A variant ID does not exist in the currently bundled catalog."
          },
          {
            "status": 409,
            "code": "stock_unavailable",
            "condition": "A requested variant is out of stock or quantity exceeds authored availability."
          },
          {
            "status": 409,
            "code": "catalog_changed",
            "condition": "catalogHash does not equal the currently bundled catalog hash."
          },
          {
            "status": 400,
            "code": "empty_cart",
            "condition": "The order cart is empty."
          },
          {
            "status": 400,
            "code": "confirmation_required",
            "condition": "confirmed is false; only explicit true permits the simulation."
          },
          {
            "status": 409,
            "code": "preview_changed",
            "condition": "previewHash differs from the hash recomputed from current catalog, canonical cart, total and delivery."
          },
          {
            "status": 409,
            "code": "intent_required",
            "condition": "An active browser check requires a declaration at /agent-intent before this request can execute. Review and submit again afterward; no request is replayed."
          }
        ],
        "http": {
          "method": "POST",
          "operationKind": "action",
          "path": "/api/demo/execute",
          "queryParameters": false,
          "requestBody": "json",
          "contentType": "application/json",
          "charset": "UTF-8",
          "contentEncoding": "absent or identity",
          "bodyBytes": 4096,
          "bodyDeadlineMs": 3000,
          "bodyChunks": 128,
          "rateLimit": {
            "requests": 30,
            "periodSeconds": 60,
            "key": "trusted client IP",
            "sharedWith": [
              "/api/demo/execute"
            ]
          },
          "successStatus": 200,
          "responseContentType": "application/json",
          "cacheControl": "no-store",
          "allowedOrigins": [
            "https://aidenid.com",
            "https://www.aidenid.com"
          ],
          "originHeaderRequired": false,
          "preflight": {
            "method": "OPTIONS",
            "status": 204,
            "allowMethods": [
              "GET",
              "POST",
              "OPTIONS"
            ],
            "allowHeaders": [
              "Content-Type"
            ]
          },
          "unrecognizedResponse": {
            "status": 404,
            "contentType": "text/plain; charset=utf-8",
            "body": "Not found",
            "appliesTo": "Unknown routes, query strings, and unrecognized capabilities are outside the operation contract and return an ordinary missing-page response."
          }
        },
        "runtimeGuards": [
          "The current validated catalog is required for execution.",
          "Variant IDs must be distinct and total input quantity must not exceed 50. JSON Schema alone does not express these cross-line constraints.",
          "catalogHash must equal the current bundled catalog hash; variant existence, stock and server-computed prices are checked at execution.",
          "Cart lines are canonicalized by variant ID. No client-supplied prices, budget, identity or payment data are accepted.",
          "The server has no budget guard: an immutable goal and budget must be checked by the calling procedure.",
          "confirmed must be true and the cart must not be empty; both are runtime guards beyond input shape.",
          "previewHash is recomputed for equality. A matching hash does not prove that checkout_preview ran earlier or establish user consent.",
          "When the browser gate is on, the edge service must authorize this request before execution. An unavailable browser check returns demo_unavailable. A declaration or check result creates no shopping authority."
        ],
        "scope": "read",
        "sideEffects": "simulated",
        "requiresConfirmation": true,
        "confirmation": {
          "field": "params.confirmed",
          "acceptedValue": true,
          "meaning": "Caller asserts simulated confirmation; no separate server approval or historical preview record exists."
        },
        "semantics": {
          "physicalEffects": "none",
          "persistence": "none",
          "reservation": "none",
          "payment": "none",
          "fulfillment": "none",
          "egress": "When the browser gate is on, internal edge authorization reads before body parsing and execution; no product, task or checkout body is forwarded.",
          "source": "repository-authored-demo",
          "liveMerchantState": false,
          "authority": "Anonymous public simulation only; caller-supplied principal, identity or authority fields are rejected.",
          "evidence": "Unsigned hashes bind catalog/cart/preview values; they do not prove identity, delegation, consent, chronology or physical effects.",
          "replay": "Canonical values yield stable cart/preview hashes, receipt IDs and DEMO order numbers. performedAt changes on each response; no order is persisted."
        }
      }
    }
  ],
  "links": {
    "browse": "https://aidenid.com/for-agents/browse/",
    "buy": "https://aidenid.com/for-agents/buy/",
    "catalog": "https://aidenid.com/api/demo/store",
    "contract": "https://aidenid.com/api/demo/store/contract",
    "assistedShopping": "https://aidenid.com/api/demo/shop"
  }
}
