Master's thesis · 2025-2026
Agentic retail, end to end.
A conversational shopping system that joins GPT-4o, RFID inventory and the Universal Commerce Protocol. You describe what you want, it finds what is physically on the shelf, and nothing is bought until you say so.

01 — The problem
Today's commerce protocols let an AI place an order. They say nothing about whether the item exists, or whether the person wants it. TRACE closes three gaps.
Gap 01
Storefronts are built for humans, so an agent can't turn an abstract intent into one specific SKU.
Gap 02
Protocols reason about logical inventory. Nothing checks that the item is actually on the shelf.
Gap 03
People won't hand a financial decision to a process they can't see.
02 — Architecture
Each layer can be understood and evaluated on its own. The protocol only touches the bottom one, so swapping the calling agent never changes the AI or the inventory logic.
Layer 1
GPT-4o reads the request, decides which tool to call and drives the conversation. LangChain runs the tool-use loop.
Layer 2
Semantic retrieval over the whole catalogue, then a physical check that the chosen item has an EPC on a shelf.
Layer 3
Standardised agentic checkout. Any UCP-compatible agent can discover and buy here without platform approval.
Layers 1 and 2 are unchanged, whichever agent calls TRACE.
Any UCP agent
Gemini, Copilot or a custom agent
03 — Purchase Flow
Five steps, and the last one belongs to the human.
1
Discover
search_products
Semantic search returns the top three matches as product cards.
2
Place order
place_order
The agent looks up product, colour and size, and gets the EPC.
3
Verify
GET /trace/epc/:epc
The EPC is checked against inventory. Unverified means no checkout.
4
Open session
POST /checkouts
A UCP checkout session is created with the verification embedded.
5
Authorize
POST /checkouts/:id/complete
Only after the person clicks Authorize & Pay.
EPC verified
Shelf B-04 · RFID-UHF303ac8e9c1745419d8b6347bGuardrailCard
04 — Protocol Extensions
Custom fields live under the reverse-domain namespace com.trace.*. A standard UCP agent ignores what it does not know, so compliance holds by design.
com.trace.epc_verification
Grounds the digital transaction in physical inventory.
"com.trace.epc_verification": { "epc": "303ac8e9c1745419d8b6347b", "verified": true, "location": "Shelf B-04", "signal": "RFID-UHF", "lastSeen": "2026-03-19T14:33:09Z" }
com.trace.human_guardrail
Requires explicit human authorization before the sale completes.
"com.trace.human_guardrail": { "required": true, "status": "pending_authorization" } // after the person authorizes "status": "authorized"
05 — Choosing a Protocol
TRACE can sit under any of the three agentic protocols. Each changes who can talk to it and how much of the design survives.
| Compared | ACP | TRACE todayUCP | MCP |
|---|---|---|---|
| Discovery | Platform-mediated by OpenAI | Decentralised via /.well-known/ucp | Client config or MCP Registry |
| Who connects | ChatGPT only | Any UCP-compatible agent | Any MCP client: Claude, ChatGPT, Cursor |
| Payment | Stripe SharedPaymentToken, mandatory | Google Pay, Shop Pay, any PSP | Out of scope |
| Extensions | No custom mechanism | Reverse-domain namespace | Custom tools and resources |
| Human in the loop | Not natively supported | Via a custom extension | Native elicitation |
| Verdict | An OpenAI-dependent shop. | An open, self-sovereign backend. | Infrastructure for any AI. |
06 — Results
Two-level testing against validity conditions defined before testing: Postman-driven API sequences, plus the full user-facing flow.
3/3
Hypotheses validated
13/15
Conversation scenarios passed fully
15/15
Functional checklist areas passed
Two scenarios passed only partially — open-ended, emotional queries like “treat myself to something nice” didn't map cleanly to product embeddings. See Limitations.
07 — API Snapshot
Discovery, catalogue, checkout and the full post-purchase lifecycle, all over plain REST.
Discovery & catalogue
Checkout
Orders
POST /checkouts · response
{
"id": "cs_1773094023975",
"status": "ready_for_complete",
"currency": "eur",
"totals": [{ "type": "total", "amount": 1999 }],
"com.trace.epc_verification": {
"verified": true,
"location": "Shelf B-04"
},
"com.trace.human_guardrail": {
"required": true,
"status": "pending_authorization"
}
}08 — Limits & Next Steps
TRACE is a research prototype. These are the known edges and where I would take it next.
Ask for a sweater, watch the shelf check run, then authorize the purchase.