Why these requirements matter
Functional stories say what the platform does. These requirements say how well, and under what conditions. Each has a number and a way to prove it, so it can be tested before release and watched in production. Figures are illustrative planning targets. Receivables work is bursty: the nightly invoice run, bank-file arrival and month-end close set the peaks.
Requirements by quality
| Quality | Requirement | Target | How it is verified |
|---|---|---|---|
| Performance | Nightly invoice run, 60,000 invoices including checks | Under 3 hours | Load test and run duration alert |
| Performance | Cash application, bank file to posted | Under 15 minutes for a 5,000-line file | Replay of recorded files |
| Performance | Interactive review screen, p95 response | Under 2 seconds | Synthetic checks |
| Availability | Cash application and review desk | 99.9% monthly | Synthetic transaction every minute |
| Availability | Degraded mode when a dependency fails | Work queues, nothing lost | Chaos tests per dependency |
| Scalability | Month-end volume without a latency breach | Three times a normal day | Soak and spike tests |
| Security | All model and tool traffic scanned | 100% | Scan coverage alert |
| Security | Writes authorised by basis and approval | 100% | Basis tests, contract tests |
| Privacy | Restricted data in logs and traces | None | Automated scan of telemetry and tables |
| Correctness | Applied cash equals the bank amount | 100% reconciled daily | Daily reconciliation job |
| Correctness | Applications without a stated basis | Zero | Basis audit query and release gate |
| Resilience | Recovery time objective, applications and review desk | 1 hour | Quarterly disaster recovery exercise |
| Resilience | Recovery point objective, ledger postings | Zero loss of committed postings | Outbox replay |
| Observability | A trace for every unit of work, joined across gateways | 100% of errors and blocks, 10% of others | Telemetry coverage report |
| Maintainability | Time to repoint a model alias after a passing evaluation | Under one hour | Release drill |
| Accessibility | Portal and email meet recognised accessibility guidance | Level AA | Audit before launch |
| Cost | Model and platform cost per invoice and per payment | Within budget | Cost query and monthly review |
Capacity model
The model starts from monthly volume and works down to calls per second, so each tier can be sized and its limits set on the gateway.
| Quantity | Pilot, one region | Full volume | Month-end peak |
|---|---|---|---|
| Invoices per month | 6,000 | 60,000 | n/a |
| Invoices in the nightly run | 300 | 2,800 | 9,000 on the busiest night |
| Payments per month | 4,500 | 45,000 | n/a |
| Payments on the busiest day | 600 | 6,000 | 18,000 |
| Remittance documents on the busiest day | 250 | 2,500 | 7,500 |
| Model calls per remittance | 2 | 2 | 2 |
| Model calls per invoice anomaly check | 1 | 1 | 1 |
| Model calls in the busiest hour | About 200 | About 2,000 | About 6,000 |
| Model calls per second, busiest hour | Under 1 | About 0.6 | About 1.7 |
Peak is three times the full-volume figure, for month-end and quarter-end. Batch work is spread across the window, so the call rate stays low even at the peak.
Degradation ladder
When a dependency fails, the platform gives up one capability at a time and always shows what is pending. A write path never keeps working without its checks.
| Failure | Behaviour | What people see |
|---|---|---|
| Primary model provider down | Gateway fails over to the second provider | No visible change, possibly slower |
| Both providers down | Items queue for a person; rules still match exact payments | Exact matches continue; the rest wait with a note |
| Scan service down | Fail closed on writes; reading continues | No automatic application of scored matches; clerks work from the queue |
| Clause index down | Disputes proceed without a cited clause and say so | Dispute drafts carry a banner: no clause available |
| ERP (Enterprise Resource Planning) down | Postings queue with evidence | Items show as pending; reconciliation runs after recovery |
| Tax engine down | Invoices are held, never estimated | Invoice run delayed for affected orders |
| Delivery network down | Fall back to email per customer setting | Customers receive email, portal copy remains |
The first failure is invisible. The second is visible and honest: the document waits for a person, and nothing is lost.
Recovery objectives
| Component | Recovery time | Recovery point | Approach |
|---|---|---|---|
| Orchestrator and agents | 1 hour | State to the last completed step | Stateless services, state in a replicated store |
| AI (artificial intelligence) gateway | 15 minutes | Configuration is in version control | Two regions, active and standby |
| Tool gateway | 15 minutes | Configuration is in version control | Two regions, active and standby |
| Ledger postings | Per the ERP | Zero for committed postings | Outbox replay after recovery |
| Clause index | 4 hours | Rebuilt from the source table | Rebuild job |
| Lakehouse | 8 hours | One hour | Platform replication |
How the requirements are tested
Load and soak
Replay recorded invoice runs and bank files at one, three and five times normal volume, with backends and models mocked at realistic latency.
Chaos
Turn off each dependency in turn in staging and check the degradation ladder.
Failover drills
Fail the model provider, then a region, quarterly. Measure recovery against the objectives.
Reconciliation
Every day, compare bank amounts, applications and ledger postings. A difference is an incident.
Telemetry audit
Scan traces and tables for restricted data after every release.
Build this for your business
This example is a receivables platform for a distributor, but the same pattern, deterministic financial rules, a governed gateway, runtime security, grounded evidence and measured quality, fits any back-office process that moves money. We can scope a pilot on your own systems.
Book a discovery call