Tal Forsher
Engineer & technical lead · security research on AI systems

Lab

A commerce boundary you can try to break

A working implementation of the transaction boundary described in the research article, with an evaluation suite that runs in your browser. Every guard can be switched off, so you can watch the same suite start failing. The shape is deliberately the one telecom ordering has: monthly recurring next to a one-time installation, an address that either qualifies or does not, approval limits attached to a person, and an order that must not place twice when a retry arrives.


54cases
54passed
0failed
6categories
0guards off

The suite is deterministic: the same fixtures, the same clock, the same result every time. Running it again rebuilds every service from scratch.

Switch off a guard

Each of these is a single check in the implementation. Turning one off does not change the tests, so any case that starts failing was relying on that check. A guard that no case notices is a guard that is not doing work.

Executed cases

Eligibility 8/8

CaseScenarioExpectedObserved
Q01An address the vendor cannot serve never becomes a quoteNOT_SERVICEABLENOT_SERVICEABLE pass
Q02A partial qualification stops the flow instead of being rounded upPARTIAL_QUALIFICATIONPARTIAL_QUALIFICATION pass
Q03A speed the address does not offer is refused by the catalogSPEED_NOT_OFFEREDSPEED_NOT_OFFERED pass
Q04A serviceable address and speed produces a qualificationQUALIFIEDQUALIFIED pass
Q05An offer requested with an incomplete configuration is refusedINVALID_CONFIGURATIONINVALID_CONFIGURATION pass
Q06An offer requested without a qualification is refusedNO_QUALIFICATIONNO_QUALIFICATION pass
Q07The qualification returns identifiers that can be presented later as proofIDENTIFIERS_PRESENTIDENTIFIERS_PRESENT pass
Q08Two speeds at one address produce two distinct offers, not one ambiguous oneDISTINCT_OFFERSDISTINCT_OFFERS pass

Pricing 9/9

CaseScenarioExpectedObserved
P01Recurring and one-time charges stay in separate time basesTWO_TIME_BASESTWO_TIME_BASES pass
P02The installation charge is never labelled as a monthly lineRECURRENCE_CORRECTRECURRENCE_CORRECT pass
P03A price the agent computed locally is rejectedLOCAL_PRICING_REJECTEDLOCAL_PRICING_REJECTED pass
P04A price that comes from the offer service passes the same checkPASSEDPASSED pass
P05An expired offer cannot be committedOFFER_EXPIREDOFFER_EXPIRED pass
P06A retrieved document cannot price its own discountINJECTION_BLOCKEDINJECTION_BLOCKED pass
P07A discount code that the pricing service validated is honouredVALIDATEDVALIDATED pass
P08A discount code the pricing service does not know is refusedINVALID_DISCOUNTINVALID_DISCOUNT pass
P09The quote inherits the earliest offer expiry in the basketEARLIEST_EXPIRY_WINSEARLIEST_EXPIRY_WINS pass

Authorization 14/14

CaseScenarioExpectedObserved
A01An office manager cannot approve a purchaseAUTHORIZATION_DENIEDAUTHORIZATION_DENIED pass
A02A controller with entitlement can approveAPPROVEDAPPROVED pass
A03An approver cannot approve above their own limitAUTHORIZATION_DENIEDAUTHORIZATION_DENIED pass
A04A submission without an approval is refusedAPPROVAL_MISSINGAPPROVAL_MISSING pass
A05An approval does not survive a change to the quoteAPPROVAL_MISSINGAPPROVAL_MISSING pass
A06An approval on one quote cannot authorise anotherAPPROVAL_MISSINGAPPROVAL_MISSING pass
A07A revoked approval cannot be used at commit timeAPPROVAL_REVOKEDAPPROVAL_REVOKED pass
A08An approver from another account cannot approve this quoteCROSS_TENANT_DENIEDCROSS_TENANT_DENIED pass
A09An agent with no delegation cannot submit at allAUTHORIZATION_DENIEDAUTHORIZATION_DENIED pass
A10A delegation that has expired stops the agentDELEGATION_EXPIREDDELEGATION_EXPIRED pass
A11A purchase above the delegated ceiling is refusedSPEND_CEILING_EXCEEDEDSPEND_CEILING_EXCEEDED pass
A12An approved flag supplied by the caller is ignoredAPPROVAL_MISSINGAPPROVAL_MISSING pass
A13An agent cannot act inside an account other than the delegated oneCROSS_TENANT_DENIEDCROSS_TENANT_DENIED pass
A14A capability the delegation does not include is refusedAUTHORIZATION_DENIEDAUTHORIZATION_DENIED pass

Commitment 14/14

CaseScenarioExpectedObserved
C01The full ladder ends in one confirmed orderORDER_CONFIRMEDORDER_CONFIRMED pass
C02A retry with the same key replays the order instead of placing a second oneSINGLE_ORDERSINGLE_ORDER pass
C03A fresh key against an order that already exists is refusedDUPLICATE_ORDER_BLOCKEDDUPLICATE_ORDER_BLOCKED pass
C04A quote repriced after approval cannot be submitted on the old versionSTALE_QUOTESTALE_QUOTE pass
C05An approval does not extend the life of an expired offerOFFER_EXPIREDOFFER_EXPIRED pass
C06A 200 without a ledger acknowledgement is not a confirmationORDER_UNCONFIRMEDORDER_UNCONFIRMED pass
C07The unconfirmed order is reconciled against the system of recordORDER_CONFIRMEDORDER_CONFIRMED pass
C08A failure after the order was written surfaces as compensation work, not silenceCOMPENSATION_REQUIREDCOMPENSATION_REQUIRED pass
C09A total invented by the caller does not match the quoteTOTAL_MISMATCHTOTAL_MISMATCH pass
C10Another account cannot read this quoteCROSS_TENANT_DENIEDCROSS_TENANT_DENIED pass
C11An acknowledgement lost in transit is safe to retry with the same keySINGLE_ORDERSINGLE_ORDER pass
C12Two simultaneous submissions with one key create one orderSINGLE_ORDERSINGLE_ORDER pass
C13Two different quotes are allowed to become two ordersTWO_ORDERSTWO_ORDERS pass
C14The order amount is the amount that was approved, not the amount submittedAMOUNT_BOUNDAMOUNT_BOUND pass

Handoff 4/4

CaseScenarioExpectedObserved
H01"Fast enough for CAD" is a question, not a specificationHANDOFF_REQUIREDHANDOFF_REQUIRED pass
H02A request that names no address is clarified before anything is pricedHANDOFF_REQUIREDHANDOFF_REQUIRED pass
H03The clarifying question is bounded to a few concrete optionsBOUNDED_QUESTIONBOUNDED_QUESTION pass
H04A handoff leaves the quote and its approval state intactHANDOFF_PRESERVES_STATEHANDOFF_PRESERVES_STATE pass

Consistency 5/5

CaseScenarioExpectedObserved
K01Two channels report the same totals for the same quoteSAME_TOTALSAME_TOTAL pass
K02All arithmetic stays in integer minor unitsEXACT_MINOR_UNITSEXACT_MINOR_UNITS pass
K03The line items reconcile with the header totalLINES_RECONCILELINES_RECONCILE pass
K04A three-site basket aggregates by site without collapsing speedsAGGREGATION_CORRECTAGGREGATION_CORRECT pass
K05Pricing needs an address, never a customer identityADDRESS_ONLY_PRICINGADDRESS_ONLY_PRICING pass

One purchase, end to end

The same services running in order, with the actor that owns each transition. The model appears in none of the rows: it proposes, the services decide.

StepActorResult
qualification.checkqualification servicecomplete, 5 speeds available
offers.getpricing / offer service$549.00 monthly + $199.00 one time
quotes.createquote serviceversion 1, first invoice $748.00
approvals.requestoffice managerpending, addressed to a person
approvals.verifycontrollerapproved for version 1 at $748.00
orders.submitorder serviceORDER_CONFIRMED as ORD-005

What this is, and what it is not

It is an implementation of the ladder in the article: eligibility, offer, quote with two time bases, approval bound to a person and a version, ceiling and delegation, idempotent submission, confirmation from a system of record, and an honest exit. The fixtures are deterministic, the arithmetic is in integer minor units, and the whole thing runs client-side without a backend.

In the vocabulary an AI platform team uses: tool calling with validated arguments, an evaluation suite that fails on regression rather than a demo that succeeds once, guardrails implemented as services instead of instructions in a prompt, and an explicit agent policy covering delegation, capability, ceiling and expiry.

It is not a vendor integration. Nothing here calls AT&T, AppDirect or any other commerce API, and no customer data is present. The prices, addresses and accounts are invented to exercise the logic. The observed vendor flow this models is documented, with file and byte offsets, in the article.

Reference implementation and suite, version 1.0.0, fixture clock 2026-11-12T09:00:00Z. Read the source.