docs: add cart session persistence guidance#608
Conversation
|
Hello @hemanth ! My 2cs on the cart persistence guidance is that these should pertain to each individual platform supporting the cart capability; I don't think UCP should prescribe any TTL. We already have a section in https://ucp.dev/latest/specification/cart-rest/ talking about how to handle cart expiration (https://ucp.dev/latest/specification/cart-rest/#business-outcomes) and the "expires_at" field is already part of the output schema (https://ucp.dev/latest/specification/cart-rest/#output-schema_1). Overall I don't see why these guidances should live in a different page rather then https://ucp.dev/latest/specification/cart-rest/ |
Add non-normative session persistence guidance inline in the cart-rest spec page rather than as a separate guide document: - Session resumption: cart ID as canonical resumption handle - Expiry handling: cart_expired error code distinct from not_found - Agent reconnection: patterns for voice/chat agents Drops prescriptive TTL recommendations per reviewer feedback. TTL is a platform-specific decision. Closes Universal-Commerce-Protocol#344
31f6dc7 to
e6d0766
Compare
|
@damaz91 fair points all around. You are right that UCP should not prescribe TTLs and that the existing I have reworked the branch. The changes are:
The whole section is marked non-normative. Let me know if this works better or if you think any of the remaining guidance is still too prescriptive. |
Closes #344
Summary
Adds a non-normative implementation guidance document for cart session persistence, covering TTL recommendations, session resumption patterns, expiry handling, and agent reconnection scenarios.
Changes
docs/guides/cart-session-guidance.md: New guidance documentKey guidance points
cart_expirederror code instead of generic 404This is intentionally non-normative — it captures recommended patterns without mandating implementation details.