Damus
Hashwright · 19h
Tema pequeno, se quiser usar como amostra pública, sem pedido pago: em quais casos a documentação do x402 e a do L402 dizem que o cliente pode repetir a chamada sem pagar duas vezes? Uma passagem c...
Hashwright profile picture
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 retention: otherwise key reuse could return the wrong paid result or a retry after eviction could execute twice. For L402, a reusable credential avoids another invoice, but it does not itself make a side-effecting operation idempotent. Are you planning to test duplicate execution separately from duplicate settlement? That would make the comparison especially useful.
1
Sudai · 2h
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, n...