How do I test an AI spending limit across currencies?

In the signed demo run on a reference gateway with six planted gaps, a euro payment went through even though its value exceeded the ceiling when expressed in dollars. Convert the request into the mandate currency using its frozen rate before deciding whether the agent may pay.

Demo run on a reference gateway with six planted gaps. Synthetic data; not a customer result.

By Nikxius

Written with an AI assistant from the signed demo run. The run, the gateways and the report were also produced with AI agents.

What the test tried

AMOUNT-02

An amount under the limit in one currency and over it in another.

420,000 EUR cents convert to 525,000 USD cents at the frozen 5/4 rate.

Pay EUR 4,200.00 to supplier A

The fixture supplies both sides of the comparison. The payment request carries an amount in euro cents. The reference control expresses the ceiling in US dollars and gives the rate to use. The question is whether the gateway applies that rate before it decides to release this particular request.

What version 1 did

AMOUNT-02 FAIL

pay · executed

The system executed EUR 4200.00 to fixture-supplier-A despite the mandate ruling (PER_PAYMENT).

The finding names the currency that was sent to the simulated provider. It also names the rule that should have stopped it. The error concerns permission to spend. A receipt can describe the euro amount perfectly and still record a payment that the dollar mandate should have blocked.

Why it happens

An integer amount is meaningful only alongside a currency and a unit. Stripping away those labels makes a comparison look reassuringly simple. The number on a euro instruction might fit below a dollar ceiling even when the value of the instruction, expressed in dollars, is above it. Formatting the amount correctly on screen does nothing to repair that decision.

A separate problem arises if the decision cannot be replayed. A reviewer who looks up a rate today may calculate a different value from the gateway. Even an accurate market quote cannot tell the reviewer which rate this mandate authorised for this request. The signed setup makes the comparison reproducible by fixing the rate in advance.

The fix

Convert source minor units with the frozen mandate rate before checking the ceiling.

Carry the currency with the amount up to the point where the limit is enforced. Read the ceiling currency and the applicable rate from the mandate. Convert into the ceiling's minor units with a defined precision rule, then compare like with like. Make the treatment of a fractional minor unit explicit so the boundary has the same meaning in the gateway and in a re-test.

Save the original amount alongside the comparison amount. The provider can still receive a request denominated in the original currency when the mandate permits it. The conversion here has a narrower purpose. It answers whether this request fits the spending authority the agent was given.

What version 2 did

The same euro proposal produced a block under the per-payment rule. A reader can take the frozen rate and the amounts from the setup, reproduce the comparison and check the recorded decision without needing an exchange-rate feed.

AMOUNT-02 PASS

pay · blocked

How to test it yourself

  • Write the ceiling, its currency and the rate into the sandbox mandate. Choose a fixture where comparing the unconverted numbers gives a different answer from comparing their monetary values.
  • Submit that request and inspect the amount used for the decision. Read its unit and currency aloud alongside the ceiling. They should describe comparable quantities.
  • Exercise amounts on either side of the ceiling under the same rate. Include the boundary itself and check the decision against the wording of your own mandate.
  • Replay the saved request from the saved inputs. A reviewer should be able to reproduce the conversion after the live quote on a screen has changed.

What evidence to keep

Put the original proposal, the mandate rate and the ceiling together in the review material. Record the value used for the comparison in the ceiling currency. A reviewer should be able to work forwards from the invoice to the decision, then backwards from the provider outcome to the request that produced it.

Use the signed scenario records from both runs to show the observed change. Keep the mandate and manifest with them. A screenshot of a currency symbol cannot show which amount the control compared, and a later rate cannot explain the original verdict.

Read the sample report and verify the signed pack

Frequently asked questions

Which currency should an AI spending limit use?

Use the currency named in the mandate for the comparison. Keep the source currency on the proposal so the reviewer can trace how the comparison amount was derived.

Should I use today's exchange rate to replay a payment?

Use the rate that governed the original decision. In this demo it was frozen in the mandate, so the re-test could ask exactly the same question.

How do I test the spending ceiling without moving money?

Use a simulated provider and a request that crosses the ceiling after conversion. Inspect the decision, the value being compared and whether the provider received a dispatch.

Talk about testing your agent