TL;DR: Lay out the signed chain and compare each link with the next: the user's open mandate (what was allowed), the agent's closed mandate (what it chose), the merchant's signed checkout (what was offered), the payment bound to that checkout by hash, and the merchant's fulfilment record (what was shipped). The first link that does not match the one before it identifies the party at fault. Logs help explain why; signatures decide what happened.
How to approach it
Treat it as an investigation with a fixed order. Collect the evidence each party holds, verify signatures, then compare adjacent links. Finish with what the product should change so the same dispute is cheaper next time.
A strong answer
The chain and what each link proves.
| Link | Signed by | Proves |
|---|---|---|
| Open mandate | User | What the agent was allowed to buy |
| Closed mandate | Agent (key named by the user) | What the agent chose |
| Signed checkout | Merchant | What the merchant offered at that price |
| Payment mandate | Agent, bound by hash to the checkout | That the payment was for that checkout |
| Fulfilment record | Merchant | What was shipped |
Compare adjacent links.
def first_break(chain):
"""Each link may add detail, but must not contradict the link before it."""
pairs = [("open", "closed", "agent chose outside the user's limits"),
("closed", "checkout", "merchant offered something else"),
("checkout", "shipped", "merchant shipped something else")]
for a, b, finding in pairs:
if any(chain[a].get(k) not in (None, v) for k, v in chain[b].items()):
return finding
return "the user received what they allowed"
chain = {"open": {"category": "running shoes", "size": 43},
"closed": {"category": "running shoes", "size": 43, "sku": "RS-43-BLU"},
"checkout": {"category": "running shoes", "size": 43, "sku": "RS-43-BLU"},
"shipped": {"category": "running shoes", "size": 44, "sku": "RS-44-BLU"}}
print(first_break(chain)) # => merchant shipped something else
Here the agent stayed inside the user's limits and the merchant offered size 43, then shipped 44: a fulfilment error, the merchant's to fix. If the closed mandate had said size 44, the agent chose wrongly within the merchant's correct offer, and the fault sits with the agent platform. If the user's mandate had said "running shoes" with no size, the user's instruction was ambiguous, and the product should have asked.
Before comparing, verify. Check every signature and the hash binding. A missing or failing signature is itself a finding: a purchase without a valid chain should never have been honoured.
Use logs for the why. Once the link is identified, the agent's trace explains the decision: which page it read, whether it saw a size chart, whether a product page contained instructions. That is input for fixing the agent, not for deciding liability.
What the product should change.
- If the agent erred: add the missed constraint to the mandate's structure (size as a field, not free text) and an evaluation case from the trace.
- If the instruction was ambiguous: ask before signing a mandate with an unresolved required attribute.
- Notify the user after each purchase with the item details, so mismatches are caught before delivery.
What interviewers probe next
"What if there is no mandate, just a card on file?" Then there is no evidence of what the user allowed, and the dispute falls back to the card network's rules, usually against the merchant or platform. That is the argument for mandates.
"Can the merchant claim the agent's closed mandate was forged?" Only if the agent's key is compromised, which is why the key lives in a signing service with rotation and revocation.
How it's scored
Weak: Reads the agent's logs and decides who seems at fault.
Hire: Lists the signed objects and compares them in order.
Strong Hire: Verifies signatures and hash binding first, compares adjacent links to find the first break, separates liability (signatures) from explanation (traces), and proposes structural fixes such as typed constraints and pre-delivery notification.
Common mistakes
- Deciding from logs any party could have edited.
- Skipping signature verification and comparing contents only.
- Blaming the model by default.
- Treating ambiguity in the user's instruction as nobody's problem.