By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
The claims assistant finished its pilot review with a clean scorecard. Accuracy on the 200-case test set was 91%. The average response time was 2.4 seconds. Three weeks into live running, operations escalated.
The nightly batch of 4,800 claims arrives at 02:00. By 02:20 the reviewer queue holds 9,000 items, because an index rebuild left the retrieval service returning stale policy sections. The security review then found that the retrieval service account could read every claim in the group, not only the open ones.
None of those failures was a model failure. Each was an architecture failure that a 200-case demo is built to hide. In this lesson you will review a system on four flows, three lenses, and one question: which component fails first?
An end-to-end review needs four flows: input, processing, output and feedback. Most architecture diagrams stop at output. The feedback flow is where the system learns, and it is the flow most often left without an owner.
| Flow | What you must be able to name | Typical gap |
|---|---|---|
| Input | Source systems, field contracts, arrival pattern and peak | A batch that lands in one burst at 02:00 |
| Processing | Each hop, the state it holds and how it fails | A retry that re-runs a paid extraction |
| Output | The system of record, the format and the delay | A write with no idempotency key |
| Feedback | Who reads outcomes, and how corrections reach the test set | No owner for appeals and denials |
Scalability, maintainability and access control are the three lenses the exam applies. Each has one question that produces a useful answer quickly.
| Lens | The question | A weak answer sounds like |
|---|---|---|
| Scalability | Which component has fixed capacity, and where do requests contend? | 'We can autoscale the API layer' while the index is single-node |
| Maintainability | Who can change the prompt, and how do you roll the change back? | 'It ships with the code' for a prompt the business edits weekly |
| Access control | Which identity runs each hop, and what can it reach? | 'The service account has read access' with no scope |
For maintainability, the test is a behaviour rollback, not a code rollback. You need a versioned prompt, a versioned model choice and a record of which version produced which decision. Without that record a regression is invisible, so it cannot be reverted.
For access control, draw the identity at every hop. A retrieval service that reads every document in the group breaks least privilege even when the model never sees a name. A poisoned document is a trust condition, not a performance condition: one bad policy upload can change a thousand decisions.
You do not need a load test to reason about the first failure. Give every component two numbers: its capacity in the peak unit, and the demand it shares with other components. Then multiply demand by three and follow the queue that grows fastest.
Northwind runs 4,800 claims in the nightly window with a 20% exception rate. That is 960 reviews at five minutes each, or 80 assessor hours. Eighteen assessors provide 36 hours inside a two-hour window. The reviewer queue needs more than twice the available time, so it saturates before any technical component.
Name the trust condition separately. A load test measures throughput. A trust condition measures what happens when a component is wrong or over-privileged. A stale index, a widened service account and an injected instruction inside an uploaded document are all trust conditions, and each needs its own first-failure analysis.
A compliance review tool handles 1,500 cases a day, with a 30% exception rate. Five reviewers spend four minutes per exception inside an eight-hour day. Volume is about to double. Use the capacity table below.
| Component | Capacity | Demand after the doubling |
|---|---|---|
| Retrieval index | 9,000 queries a day at p95 250 ms | 3,000 queries a day |
| Claude calls | 40 requests a second, burst 200 | 6,000 calls in a 4-hour peak |
| Reviewer queue | 5 people x 8 hours = 40 hours | 900 reviews x 4 minutes = 60 hours |
| Audit log | Write-only, 90-day retention | 2.5 million rows a day |
Write four lines: the component that fails first, the single change that buys the most headroom, the trust condition you would test before launch, and the one number you would put on the executive dashboard. Adding a reviewer is a hiring decision; widening the auto-band is a design decision that needs evidence.
Key takeaways
Review four flows: input, processing, output and feedback. Most diagrams stop at output.
Name the identity at every hop; least privilege fails outside the model too.
Find the first failure by comparing fixed capacity with shared demand at three times load. It is rarely the model.
Human review is a component with fixed capacity, and a 20% exception rate can saturate it.
Report p95 and breach counts; the average hides the tail customers feel.
Stale data, over-privileged accounts and poisoned documents are trust conditions with their own first failure.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.