Skip to content
Drainproof
Demo mode. These reports are fixtures generated by running the Drainproof CLI against the bundled example policies. They are not results from your project.

← Scenario library

Reusing an idempotency key for a different payment is rejected

idempotency-key-conflict

high

Description

An idempotency key already bound to a 5 USDC payment cannot be reused for a 6 USDC payment.

state-concurrency · required · ../../packages/cli/templates/scenarios/state-concurrency/idempotency-key-conflict.yaml

Outcomes across stored runs

  • Pass 3
  • Fail 1
  • Error 0
  • Skipped 0

Execution history

Most recent steps

  1. #1proposepassed
    Expected
    {
      "decision": "ALLOW",
      "reason_codes": [],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "ALLOW",
      "reason_codes": []
    }
  2. #2proposefailedexpected BLOCK, observed ALLOW
    Expected
    {
      "decision": "BLOCK",
      "reason_codes": [
        "IDEMPOTENCY_KEY_CONFLICT"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "ALLOW"
    }