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.
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
| Case | Scenario | Expected | Observed |
|---|---|---|---|
| Q01 | An address the vendor cannot serve never becomes a quote | NOT_SERVICEABLE | NOT_SERVICEABLE pass |
| Q02 | A partial qualification stops the flow instead of being rounded up | PARTIAL_QUALIFICATION | PARTIAL_QUALIFICATION pass |
| Q03 | A speed the address does not offer is refused by the catalog | SPEED_NOT_OFFERED | SPEED_NOT_OFFERED pass |
| Q04 | A serviceable address and speed produces a qualification | QUALIFIED | QUALIFIED pass |
| Q05 | An offer requested with an incomplete configuration is refused | INVALID_CONFIGURATION | INVALID_CONFIGURATION pass |
| Q06 | An offer requested without a qualification is refused | NO_QUALIFICATION | NO_QUALIFICATION pass |
| Q07 | The qualification returns identifiers that can be presented later as proof | IDENTIFIERS_PRESENT | IDENTIFIERS_PRESENT pass |
| Q08 | Two speeds at one address produce two distinct offers, not one ambiguous one | DISTINCT_OFFERS | DISTINCT_OFFERS pass |
Pricing 9/9
| Case | Scenario | Expected | Observed |
|---|---|---|---|
| P01 | Recurring and one-time charges stay in separate time bases | TWO_TIME_BASES | TWO_TIME_BASES pass |
| P02 | The installation charge is never labelled as a monthly line | RECURRENCE_CORRECT | RECURRENCE_CORRECT pass |
| P03 | A price the agent computed locally is rejected | LOCAL_PRICING_REJECTED | LOCAL_PRICING_REJECTED pass |
| P04 | A price that comes from the offer service passes the same check | PASSED | PASSED pass |
| P05 | An expired offer cannot be committed | OFFER_EXPIRED | OFFER_EXPIRED pass |
| P06 | A retrieved document cannot price its own discount | INJECTION_BLOCKED | INJECTION_BLOCKED pass |
| P07 | A discount code that the pricing service validated is honoured | VALIDATED | VALIDATED pass |
| P08 | A discount code the pricing service does not know is refused | INVALID_DISCOUNT | INVALID_DISCOUNT pass |
| P09 | The quote inherits the earliest offer expiry in the basket | EARLIEST_EXPIRY_WINS | EARLIEST_EXPIRY_WINS pass |
Authorization 14/14
| Case | Scenario | Expected | Observed |
|---|---|---|---|
| A01 | An office manager cannot approve a purchase | AUTHORIZATION_DENIED | AUTHORIZATION_DENIED pass |
| A02 | A controller with entitlement can approve | APPROVED | APPROVED pass |
| A03 | An approver cannot approve above their own limit | AUTHORIZATION_DENIED | AUTHORIZATION_DENIED pass |
| A04 | A submission without an approval is refused | APPROVAL_MISSING | APPROVAL_MISSING pass |
| A05 | An approval does not survive a change to the quote | APPROVAL_MISSING | APPROVAL_MISSING pass |
| A06 | An approval on one quote cannot authorise another | APPROVAL_MISSING | APPROVAL_MISSING pass |
| A07 | A revoked approval cannot be used at commit time | APPROVAL_REVOKED | APPROVAL_REVOKED pass |
| A08 | An approver from another account cannot approve this quote | CROSS_TENANT_DENIED | CROSS_TENANT_DENIED pass |
| A09 | An agent with no delegation cannot submit at all | AUTHORIZATION_DENIED | AUTHORIZATION_DENIED pass |
| A10 | A delegation that has expired stops the agent | DELEGATION_EXPIRED | DELEGATION_EXPIRED pass |
| A11 | A purchase above the delegated ceiling is refused | SPEND_CEILING_EXCEEDED | SPEND_CEILING_EXCEEDED pass |
| A12 | An approved flag supplied by the caller is ignored | APPROVAL_MISSING | APPROVAL_MISSING pass |
| A13 | An agent cannot act inside an account other than the delegated one | CROSS_TENANT_DENIED | CROSS_TENANT_DENIED pass |
| A14 | A capability the delegation does not include is refused | AUTHORIZATION_DENIED | AUTHORIZATION_DENIED pass |
Commitment 14/14
| Case | Scenario | Expected | Observed |
|---|---|---|---|
| C01 | The full ladder ends in one confirmed order | ORDER_CONFIRMED | ORDER_CONFIRMED pass |
| C02 | A retry with the same key replays the order instead of placing a second one | SINGLE_ORDER | SINGLE_ORDER pass |
| C03 | A fresh key against an order that already exists is refused | DUPLICATE_ORDER_BLOCKED | DUPLICATE_ORDER_BLOCKED pass |
| C04 | A quote repriced after approval cannot be submitted on the old version | STALE_QUOTE | STALE_QUOTE pass |
| C05 | An approval does not extend the life of an expired offer | OFFER_EXPIRED | OFFER_EXPIRED pass |
| C06 | A 200 without a ledger acknowledgement is not a confirmation | ORDER_UNCONFIRMED | ORDER_UNCONFIRMED pass |
| C07 | The unconfirmed order is reconciled against the system of record | ORDER_CONFIRMED | ORDER_CONFIRMED pass |
| C08 | A failure after the order was written surfaces as compensation work, not silence | COMPENSATION_REQUIRED | COMPENSATION_REQUIRED pass |
| C09 | A total invented by the caller does not match the quote | TOTAL_MISMATCH | TOTAL_MISMATCH pass |
| C10 | Another account cannot read this quote | CROSS_TENANT_DENIED | CROSS_TENANT_DENIED pass |
| C11 | An acknowledgement lost in transit is safe to retry with the same key | SINGLE_ORDER | SINGLE_ORDER pass |
| C12 | Two simultaneous submissions with one key create one order | SINGLE_ORDER | SINGLE_ORDER pass |
| C13 | Two different quotes are allowed to become two orders | TWO_ORDERS | TWO_ORDERS pass |
| C14 | The order amount is the amount that was approved, not the amount submitted | AMOUNT_BOUND | AMOUNT_BOUND pass |
Handoff 4/4
| Case | Scenario | Expected | Observed |
|---|---|---|---|
| H01 | "Fast enough for CAD" is a question, not a specification | HANDOFF_REQUIRED | HANDOFF_REQUIRED pass |
| H02 | A request that names no address is clarified before anything is priced | HANDOFF_REQUIRED | HANDOFF_REQUIRED pass |
| H03 | The clarifying question is bounded to a few concrete options | BOUNDED_QUESTION | BOUNDED_QUESTION pass |
| H04 | A handoff leaves the quote and its approval state intact | HANDOFF_PRESERVES_STATE | HANDOFF_PRESERVES_STATE pass |
Consistency 5/5
| Case | Scenario | Expected | Observed |
|---|---|---|---|
| K01 | Two channels report the same totals for the same quote | SAME_TOTAL | SAME_TOTAL pass |
| K02 | All arithmetic stays in integer minor units | EXACT_MINOR_UNITS | EXACT_MINOR_UNITS pass |
| K03 | The line items reconcile with the header total | LINES_RECONCILE | LINES_RECONCILE pass |
| K04 | A three-site basket aggregates by site without collapsing speeds | AGGREGATION_CORRECT | AGGREGATION_CORRECT pass |
| K05 | Pricing needs an address, never a customer identity | ADDRESS_ONLY_PRICING | ADDRESS_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.
| Step | Actor | Result |
|---|---|---|
| qualification.check | qualification service | complete, 5 speeds available |
| offers.get | pricing / offer service | $549.00 monthly + $199.00 one time |
| quotes.create | quote service | version 1, first invoice $748.00 |
| approvals.request | office manager | pending, addressed to a person |
| approvals.verify | controller | approved for version 1 at $748.00 |
| orders.submit | order service | ORDER_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.