Conflicting amount fields are rejected: expected BLOCK, observed ALLOW
2026-11-06 20:03 UTC · finding run_317318f3c81340818dff3adc20583c89:ambiguous-amount-fields
Problem
Supplying both amount and amountAtomic is ambiguous (which one would be paid?) and must be rejected.
Observed behaviour was more permissive than expected; severity is the scenario's declared risk (high).
Remediation
Review the policy and the guard implementation for the rule this scenario exercises, then re-run the scenario.
Expected behaviour
{"decision":"BLOCK","reason_codes":["AMOUNT_AMBIGUOUS"],"reason_codes_exact":false,"absent_reason_codes":[]}Observed behaviour
{"decision":"ALLOW"}Reproduce
drainproof test --scenario ambiguous-amount-fieldsScenario file: ../../packages/cli/templates/scenarios/adversarial-input/ambiguous-amount-fields.yaml (step 1 of 1: propose)
Evidence: ../../packages/cli/templates/scenarios/adversarial-input/ambiguous-amount-fields.yaml, step 1 · definition sha256:8c2817cb1cbb… · policy sha256:8a1b22fbb25b…
Scenario steps
- #1proposefailedexpected BLOCK, observed ALLOWExpected
{ "decision": "BLOCK", "reason_codes": [ "AMOUNT_AMBIGUOUS" ], "reason_codes_exact": false, "absent_reason_codes": [] }Observed{ "decision": "ALLOW" }