{"version":1,"ok":true,"mode":"demo-store","notice":"Demo Store — nothing charged or shipped.","simulated":true,"moneyMoved":false,"fulfillment":"none","catalog":"/api/demo/store","authoredSource":"https://aidenid.com/store-catalog.json","executor":"/api/demo/execute","provenance":{"catalogHash":"3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc","authoredAt":"2026-10-27T21:14:23.000Z","sourceKind":"repository-authored-demo"},"instructions":["Read the authored demo catalog. Prices and quantities are fictional examples, not live merchant inventory.","Every action is a simulation. No money moves and no item is reserved, charged, shipped or fulfilled.","Use variant IDs and integer quantities only. The server computes totals from the currently bundled catalog.","Preserve the catalog hash. After checkout_preview, explicitly confirm that preview before place_order.","No payment details, address, email or other personal data are accepted.","Hashes bind simulation evidence only; they are not identity, delegation or payment authorization.","The same canonical cart and preview produce the same DEMO- order number on retries; no order is persisted."],"contractVersion":"2.0.0","operations":{"catalog":{"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."}},"add_to_cart":{"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."}},"checkout_preview":{"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."}},"place_order":{"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."}}},"capabilityIndex":"/api/demo/capabilities","schemaValidation":"JSON Schema describes wire shape; runtimeGuards describe additional execution requirements.","limits":{"bodyBytes":4096,"lines":12,"perVariant":10,"totalQuantity":50,"requestsPerMinutePerIp":30,"bodyDeadlineMs":3000,"bodyChunks":128},"examples":{"add_to_cart":{"version":1,"capability":"add_to_cart","params":{"catalogHash":"3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc","items":[],"variantId":"orbit-lamp-ivory","quantity":1}},"checkout_preview":{"version":1,"capability":"checkout_preview","params":{"catalogHash":"3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc","items":[{"variantId":"orbit-lamp-ivory","quantity":1}]}},"place_order":{"version":1,"capability":"place_order","params":{"catalogHash":"3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc","items":[{"variantId":"orbit-lamp-ivory","quantity":1}],"previewHash":"<copy checkout.previewHash>","confirmed":true}}}}