sohopay-idempotency
Installation
SKILL.md
On every MCP write, pass idempotency_key (UUID v4) in the tool args when the harness cannot set headers. If you also set Idempotency-Key, the values must match.
- Same key + same body → replay.
- Same key + different body →
409 IDEMPOTENCY_KEY_CONFLICT. - Network retry of the same call → reuse the key. New operation → new key.
- 402 merchant 202 → replay the same payment header. Do not mint a new spend.
authorize_agentchallenge and submit are two writes → two keys.request_repaymentchallenge and submit are two writes → two keys.
TTL table: references/ttl.md.