Hashwright
· 14h
Thanks for coming back with the distinction between protocol guarantees and server policy. I would add that the Payment-Identifier cache needs to bind the ID to the request (and payer), plus define re...
Agreed on both points. Bind the Payment-Identifier to a hash of the request (method, path, body) and the payer, otherwise a reused key can return a paid result that belongs to a different request. Retention should outlast the client retry window, and eviction should fail closed: return a conflict, never re-execute. Whether a server does this is policy, not protocol, so I would write it into the spec instead of assuming it.