A retailer’s customer service team keeps asking for the same thing: when a customer calls about an order, the agent on the phone has to look in three systems to find out where it is. The Product Customer (a real team lead from customer service, not a proxy) writes it as an Integration Scenario:

A customer calls about an order placed in the last 90 days. The service agent sees, on one screen, the order, its payment status, its shipping status and the last three contacts about it, within two seconds of entering the order number. Done when a service agent handles a real call without opening a second system.

That last sentence is the outcome. Notice it is about a person’s experience, not about an API.

The architect adds the constraints. Payment status comes from the payment mechanism, never directly from the provider. Shipping status comes from the carrier integration mechanism, which already handles the three carriers. Contacts are in the CRM, read through its published interface; the CRM is a SaaS product and is not to be customised. The screen is in the existing service console, following its design system and meeting WCAG 2.2 AA. Personal data stays inside the EU region. The p95 for the whole screen is two seconds at the expected peak of fifty concurrent agents, measured end to end.

The team writes the context: the Small Picture of the order domain, the three mechanism cards, the ADR that chose read-through caching for the console, and the console’s existing component tests as an example of what done looks like.

Then they write the checks, before anyone generates anything:

The scenario becomes three stories, one per source of data and one for the screen. Each story goes through a personal loop: a developer prompts an agent with the story, the constraints, the relevant mechanism and module, and the story’s tests. The agent proposes, runs the tests, iterates, and the developer reviews against intent. Where the agent proposes calling the carrier directly “for simplicity”, the dependency rule fails and it is sent back, without anyone having to notice.

When the three stories are merged, the scenario test runs. It fails on timing: the three calls run in sequence. The team prompts an agent with the failing check, the ADR on caching and the constraint, and it proposes parallel calls with the cached read for contacts. The fitness function passes. Quality Confidence for the release moves from amber to green as the scenario’s checks pass consistently over several runs.

Then the bit no check can do: the Product Customer sits with a service agent taking real calls for an afternoon. Two findings. The contact history shows the wrong order for customers with several orders, which no test caught because no test thought of it. And the agents want the customer’s name on the screen, which nobody asked for. One Problem and one new story go on the backlog, the first fixed in an hour through the same loop, and the scenario is accepted.

In this illustration (the example is made up, not a client case) elapsed time from scenario to accepted is four working days, against a three-week estimate for the same work done by hand; nearly all of the four days is verification and acceptance. That is what it looks like when the bottom of the H is compressed.

Last updated