Integration Scenarios
An Integration Scenario is an end-to-end thread through several stories, often across several products, that a user or system can experience and that delivers business value on its own.
Integration Scenarios are the H-Model’s most distinctive contribution to requirements, and the one that has aged best. The gap they fill is still there in most organisations. They also turn out to be exactly the artefact the AI SDLC needs: a scenario with acceptance criteria is the natural unit of an outcome-based prompt and the natural unit of verification. That is the second half of this page. The first half is the idea as it was, because it is still right.
The gap
Features say what a product has. User stories say what one user wants from one part of it. Neither says how value actually happens, which is nearly always a path through several stories, and increasingly a path through several products owned by several teams.
When a team faces a few hundred stories, it needs something in the middle to:
- scope a Release, a product or a product family;
- show how business value is achieved across a set of stories;
- focus integration testing and acceptance;
- give context to the mass of stories, so people know why each one exists;
- hang governance milestones on.
Most organisations fill this gap by abusing epics: hierarchies of epics with child stories with child tasks, sometimes several levels deep. That is a work breakdown structure wearing agile clothes. It obscures the backlog, double counts progress, and tells nobody how value happens. Integration Scenarios fill the gap without the hierarchy.
An Integration Scenario is the story across stories. It tells you why the stories exist.
What one looks like
In a single delivery team, an Integration Scenario (sometimes called an Integration Story in that context) threads together the stories that, between them, let a user get something done. In a team of teams delivering a product family, it lives on the programme backlog rather than any one product backlog, because the stories it threads are implemented by different products in the context of a solution architecture.
Scenarios are described firmly in terms of real delivery, not abstractly, so that it is possible to identify the stories each contributing team will build. Those stories trace up to the scenario, which gives lightweight traceability and a view of release progress based on contributing stories done. Like stories, scenarios have acceptance criteria, which clarify their definition of done and carry their non-functional aspects.
The sketch
The 2017 edition drew its Integration Scenarios by hand: a stick-figure user on the left, a stick-figure system on the right, and between them a flow of rough screen mock-ups joined by arrows, with a decision diamond where the path forks and the story identifiers written beside the nodes. The style was deliberate. A hand-drawn flow of sketchy screens cannot be mistaken for a design, so nobody argues about button placement, and nobody thinks the work is done because they have seen a picture of it. The communication is the point, not the notation.
We still recommend this form for user-facing products. The rules: a meaningful title (never “Integration Scenario”); a user perspective; a focus on the value at the end; links to the stories and systems covered; and rich pictures over standard notation wherever they communicate better. Do not be constrained by a formal modelling language.
The narrative
For back-end services, integrations and anything without screens, a textual scenario works better: a narrative of a couple of paragraphs that describes the interactions between users, systems and the product across a number of features and stories, with links to the contributing stories. Alternative and exceptional flows can be added in the style use cases made popular, but if there is a lot of flow logic a diagram beats convoluted text. A short non-functional section lists the constraints that apply across the whole thread.
Keep them short. A couple of paragraphs is normal; two or three pages with alternates and non-functionals is the upper limit. The detail belongs in the stories or the UX storyboards below. The scenario is about the dynamics between requirements, not the requirements themselves.
The elided form and the flipside
When a scenario is used inside another picture (a scoping diagram, a value stream map, a release plan) the full form is too big. Use the elided form: a title and the list of stories it covers, indicative rather than exhaustive. This zoomed-out card is also useful on its own, as the simplest way to gather a handful of stories into a chunk for release planning.
The flipside of the card holds the acceptance criteria. In a work-tracking tool that is another tab or field. We recommend writing criteria as tests wherever possible, so that the list of criteria is also a list of links to test information. That recommendation from 2017 is the hinge on which the AI SDLC section below turns.
What scenarios are for
Scoping Releases
A Release should be scoped to one or two Integration Scenarios. If there are more, and they are not too interdependent, split them into separate Releases and get feedback sooner, even if some are internal rather than deployed to customers. Elaborating the scenarios for the next Release before development starts, with customer and team representation, is the best way we know to align everybody’s understanding of scope, release by release. Elaborating a large set of scenarios before any development is waterfall by another name and a very bad idea.
Because scenarios thread stories from several teams, they are delivered by Releases, not by sprints, and they are rarely accepted as done until late in a Release (once they are done, you are finished). Milestones for programme and portfolio governance hang on scenarios, which gives the Big 4+1 questions something real to point at.
Do not put story points on scenarios. It double counts the constituent stories in release burn-ups and gives a false view of progress across teams. Progress is contributing stories done, to the relevant level of the Definitions of Done stack.
Driving integration testing and acceptance
A scenario is a narrative, so scenario-based testing applies directly: walk the thread end to end, across the products, and check the criteria. That is integration testing with a purpose, rather than “test that the interfaces work”. It is also acceptance: the Product Customer accepts a scenario, because a scenario is something a user can experience, in a way they cannot accept “story 47”. The levels of done above product testing (integration tested, business accepted, value achieved) are defined in terms of scenarios for that reason. Scenarios are built across Integration Streams and delivered in Releases; this is how the left side of the H meets the right.
Carrying non-functional requirements
Most NFRs cut across stories. Putting them on a scenario’s flipside, as acceptance criteria, keeps them on the backlog, explicitly tested and marked done during integration, without inventing fake stories to hold them. A performance limit on the end-to-end thread, an accessibility criterion on every user-facing step, a privacy criterion on the data the thread touches: these belong to the scenario, not to any one story. Where an NFR area carries enough risk, a non-functional scenario in its own right is the honest way to plan for it. See Requirements for the embedded-versus-cross-cutting split.
Finding architecture
Scenarios are the best starting point for understanding solution architecture in a product family, and system architecture in a product: they indicate structure and reveal the architectural mechanisms that will be needed. There is a risk of letting scenario structure dictate architectural structure, which is usually wrong; the Architecture pages discuss that. Used with judgement, though, a handful of scenarios tells an architect more about what a system has to be good at than any list of Features.
A common currency
By aligning Integration Scenarios with Integration Streams, delivering them in Releases and tracking them with simple milestones, the views of portfolio, programme, project, architecture, delivery, quality, deployment, acceptance and business change all converge on Releases at the centre of the H. Scenarios de-conflict business management and technical delivery: the business can talk about a thread of value, the teams can talk about the stories that make it, and both are talking about the same thing.
How they differ from the neighbours
User Story Mapping
User Story Mapping (Patton, 2014) is the technique readers are most likely to think of as “the same thing”. It is not, but the overlap is real and worth being precise about.
A story map arranges stories along a backbone of user activities, left to right in the order a user does them, with detail going down, and then slices the map horizontally into releases. It is excellent at what it does: showing the whole of one product’s user journey on one wall, exposing gaps, and making release slicing a visible, collaborative act.
| Story map | Integration Scenario | |
|---|---|---|
| Scope | One product, one user journey, all of it | One thread of value, often across several products |
| Form | A grid of cards on a wall or board | A sketch, a narrative or a card, with a flipside of criteria |
| Release scoping | A horizontal slice across the whole map | One or two scenarios per Release |
| Acceptance | Per story | Per scenario, end to end, plus per story |
| NFRs | Not addressed | Carried as cross-cutting criteria |
| Programme use | Awkward across teams | Native: lives on the programme backlog |
| Governance | None | Milestones hang on scenarios |
The two work well together. A story map is a good way to discover scenarios for one product: each slice of the backbone that delivers value is a candidate. The scenario is what survives when the wall is cleared, what crosses the product boundary, and what carries the criteria. If you only build one product with one team, a story map may be all the middle layer you need. If you build a product family, you need scenarios.
Epics
Epics are big stories. The word has drifted to mean “a container for stories”, and from there to “a level in a hierarchy”, which is where the damage happens. A scenario is not a container and not a parent. The same story can contribute to two scenarios; a scenario is a path, not a folder. Scenarios are described from the user’s point of view and must end in value; an epic is usually described from the backlog’s point of view and need not end in anything. If your tool only has epics, use an epic to hold a scenario, write the scenario in its description, put the criteria on it, and refuse to nest.
Use cases
Scenarios owe a debt to use cases, especially the alternate-flow idea and the discipline of describing a goal from the actor’s side. They differ in weight (a couple of paragraphs, not a document), in scope (a thread across use cases is a scenario, not a use case) and in the refusal to be tied to a notation.
Gherkin scenarios
BDD’s “scenario” is a Given, When, Then example that executes as a test. It is a format for acceptance criteria, and a good one. An Integration Scenario is the thing the criteria belong to. The natural relationship: the flipside of an Integration Scenario is written, in whole or in part, as Gherkin. Do not confuse the two words; do use them together.
Scenarios as executable specifications
Here is the part that is new. In the AI SDLC, agents generate code, tests and infrastructure from a statement of intent, and the right-hand side of the H verifies what they produce. The question every organisation adopting this now faces is: what is the unit of intent, and what is the unit of verification? Prompts written per task are too small; they lose the value thread and produce locally correct, globally incoherent systems. Strategic goals are too big. The answer is the artefact we already have.
A scenario with acceptance criteria is an executable specification. It is the unit of an outcome-based prompt and the unit of verification, and it was already the unit of release scope.
Three things make scenarios the right size:
- They end in value, so the agent is pointed at an outcome, not an output. “Make the reorder button work” produces a button. “A returning customer re-buys a past order in under a minute” produces a thread that works.
- They carry their criteria, functional and non-functional, as tests. So verification is not an afterthought designed after the code exists; it is the same text, read the other way.
- They thread several products. An agent working from a scenario has to make the products work together, which is where generated code most often fails and where verification most often has to happen.
The outcome-based prompting page describes the prompt shape in full: intent, constraints, context. The scenario supplies the intent and most of the constraints. The team supplies the context: the codebase, the mechanisms, the decision records, the things the business knows that the code does not.
A worked example
Scenario: Reorder from history. A returning customer opens their order history, picks a past order, and re-buys it. Lines that are out of stock are flagged rather than silently dropped. Their saved payment method is used without re-entering card details. They get a confirmation and can track the delivery. Products involved: web shop, payments service, warehouse system, notifications. Stories: S12 View order history, S35 Repeat an order, S6 Apply saved payment method, S24 Confirm and track delivery.
Acceptance criteria (the flipside):
- A past order becomes a basket in one action, with its original quantities.
- Out-of-stock lines are shown as unavailable in the basket and the customer can proceed without them; nothing is removed silently.
- The saved payment method is used; no card details are typed. Payment failure returns the customer to the basket with the reason.
- End to end, from opening history to confirmation, the 95th percentile is under 60 seconds at 200 concurrent users.
- The whole path can be completed with keyboard only and passes WCAG 2.2 AA on each screen.
- No personal data from the thread appears in application logs.
The prompt it yields. Intent: the scenario text, verbatim, and the value statement. Constraints: the six criteria, verbatim, with the instruction that each must be covered by an automated check that the agent writes and that fails before the change and passes after it; the architectural constraints (the payments mechanism to use, the warehouse interface version, the existing notification contract); the Definition of Done for “product tested”. Context: the four repositories, the relevant decision records, the existing tests for S12, and the data model for orders. Scope: the four stories, in whatever order makes the thread work, and nothing else.
The checks that prove it. Criteria 1 to 3 become end-to-end scenario tests across the four products, run in the integration environment on every change. Criterion 4 becomes a load test in the pipeline against the end-to-end path, a fitness function. Criterion 5 becomes an automated accessibility scan on each screen plus a scripted keyboard walkthrough. Criterion 6 becomes a log-scanning check that runs in the integration environment after the scenario test. The scenario is done at “integration tested” when all six pass in the integrated environment, and “business accepted” when the Product Customer has walked the thread.
Notice what the people did. They wrote the scenario and the criteria, with a customer. They chose the constraints. They will accept the result. The agent wrote the code, the tests and the pipeline changes. When a check fails, the fix is to the scenario (the criterion was wrong) or to the code (the generation was wrong), never to the check.
What this changes in practice
- Write the flipside first. The criteria used to be the part teams skipped. They are now the part that does the most work, because they are both the prompt’s constraints and the verification. A scenario without criteria is not ready to be built, by anyone.
- Criteria must be checkable by a machine or by a named person. “Easy to use” is a wish. “Keyboard-only path completes in under two minutes for a first-time user in a moderated test” is a criterion with a person attached.
- Generate stories from scenarios, not the other way around. An agent can draft the stories a scenario implies, per product, for the teams to correct. That is a better use of an agent than drafting stories from nothing.
- Keep scenarios short. Agents do better with a crisp thread and a precise set of criteria than with a long document. So do people.
- One scenario per agent run is a sensible default. It is the size at which the result can be verified end to end and accepted by a person. Smaller runs lose the thread; larger ones cannot be checked.
- The scenario remains the unit of release scope and acceptance. Nothing about the AI SDLC changes that. It just means the same artefact now also drives the build.
Skemata, the modelling tool that will accompany the H-Model, will model Integration Scenarios as first-class elements, with their stories, criteria, products and checks as linked elements rather than text.
Related
- Requirements: the stack scenarios sit in, and how NFRs are handled.
- User stories and Problems: the stories a scenario threads.
- Definitions of Done: the levels a scenario is done at.
- Releases and integration: Releases scoped by scenarios, built across Integration Streams.
- Outcome-based prompting and Verification is the bottleneck: the two sides of the executable specification.