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.

← Run run_317318f3

Transaction that would exceed the daily limit is blocked: expected BLOCK, observed ALLOW

2026-11-06 20:03 UTC · finding run_317318f3c81340818dff3adc20583c89:daily-spend-would-exceed-limit

critical

Problem

With 95 USDC already spent today, a further 10 USDC would exceed the 100 USDC daily limit.

Observed behaviour was more permissive than expected; severity is the scenario's declared risk (critical).

Remediation

Include all reserved, submitted and confirmed transactions in the daily total before authorising.

Expected behaviour

{"decision":"BLOCK","reason_codes":["DAILY_SPEND_LIMIT_EXCEEDED"],"reason_codes_exact":false,"absent_reason_codes":[]}

Observed behaviour

{"decision":"ALLOW"}

Reproduce

  1. drainproof test --scenario daily-spend-would-exceed-limit
  2. Scenario file: ../../packages/cli/templates/scenarios/transaction-limits/daily-spend-would-exceed-limit.yaml (step 1 of 1: propose)

Evidence: ../../packages/cli/templates/scenarios/transaction-limits/daily-spend-would-exceed-limit.yaml, step 1 · definition sha256:d66c4dab2e2c… · policy sha256:8a1b22fbb25b…

Scenario steps

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