Before anything else, the discussions that shaped this Playbook produced four litmus tests. Apply them whenever a rule in this document feels wrong, incomplete, or outdated. If a rule fails one of these tests, raise it — the Playbook is a living document.
| # | Test | The question to ask |
|---|---|---|
| 1 | Reversibility | Is this decision reversible? If not, are we comfortable making it now? |
| 2 | Cognitive load | Does this rule make a tenant team’s job easier or harder? |
| 3 | User experience | Does this protect or endanger the experience of 13 million monthly active users? |
| 4 | Automation | Can this be automated? If not, why not — and when might it be? |
These are referred to throughout as the Epilogue criteria.
The NHS App is used by over 13 million people every month. It is one of the most critical digital touchpoints in the NHS. Every change to it carries real clinical and reputational risk.
For most of its life, the NHS App has been built and maintained by a single, tightly-controlled engineering team. That model has served the service well: it produced a consistent, safe, and reliable product. But it has a ceiling. The number of teams across NHS England who want to deliver functionality through the NHS App is growing — and a single builder team cannot scale to meet that demand without sacrificing the quality and reliability that 13 million people depend on.
This Playbook describes how we evolve from that model.
We use the Landlord-Tenant metaphor to reason about the new model. It is a starting point for clear thinking, not a mandate cast in stone.
The Landlord does not build the shops for tenants. The Landlord defines the building regulations that all shops must comply with, provides the shared utilities, and enforces standards that protect every customer who walks through the door.
This evolution means the NHS App team shifts from feature factory to enabling platform. That shift is not primarily a structural decision — it is an engineering and cultural one. This Playbook is the bridge.
This document is written for two audiences simultaneously:
Rules are stated directly and prescriptively. Where a rule might feel arbitrary or restrictive, a Why this matters explanation follows. Understanding the “why” is as important as following the rule — because context enables good judgement in the situations this Playbook does not yet cover.
The NHS App spans three delivery channels — Web (the NHS App web application), iOS, and Android. Where rules differ by channel, they are called out explicitly under a channel heading. A rule that appears without a channel qualifier applies to all three.
The Social Contract defines who owns what, who is accountable for what, and what happens when things go wrong or when project funding runs out.
The following table defines the split between Landlord and Tenant responsibilities. Where this table is silent, the Landlord’s position is that the Landlord owns it until explicitly agreed otherwise.
| Domain | Landlord (NHS App team) | Tenant (service team) |
|---|---|---|
| Navigation, authentication, shell, design system | ✅ Owns | Must not modify |
| Shared infrastructure and pipelines | ✅ Owns | Uses; does not configure independently |
| Feature flagging infrastructure | ✅ Owns | Controls their own flags via agreed interfaces |
| Observability and analytics platforms | ✅ Owns | Instruments their code against agreed standards |
| Clinical assurance coordination | ✅ Owns process | Provides evidence, attends, and signs off |
| Tenant feature code | Provides guardrails | ✅ Owns |
| Tenant backend services | Provides platform | ✅ Owns |
| Tenant incident resolution | Coordinates | ✅ First responder |
| Tenant test coverage | Sets minimum bar | ✅ Owns |
| Tenant runbooks and knowledge base entries | Gate at Definition of Done | ✅ Produces |
Why this matters: Unclear ownership is how features get abandoned, incidents escalate past their owner, and costs accumulate without accountability. This table is the starting point for any disagreement about who should act.
A team that ships a feature to the NHS App accepts ongoing ownership of that feature for its entire lifecycle. There is no mechanism to hand a feature back to the NHS App team once it is live.
This is a non-negotiable condition of entry to the platform. It applies even if:
Why this matters: The NHS App cannot become a dumping ground for unmaintained services. Authoritative ownership of every technical artefact — from code to runbooks to data stores — must trace back to an identifiable team at all times. The NHS App team is not resourced to absorb orphaned features, and doing so would degrade the service for everyone.
When a tenant feature causes or contributes to an incident:
#alerts-high, #highsev-incident-updates, in-app messaging via N&M).The NHS App team is not responsible for diagnosing or fixing tenant features. If a tenant feature is causing a P1 incident and the tenant team is unresponsive, R&M will deactivate the feature. The tenant will fix the underlying fault before reactivation is considered.
Why this matters: The current model of 24/7 on-call coverage embedded in every squad is not scalable. Centralised coordination with distributed ownership is. But that only works if lines of responsibility are unambiguous before an incident — not during one.
Every feature has a lifecycle: Proposed → In development → In review → Active → Maintained → Retired.
Teams are expected to actively manage their features through this lifecycle. The NHS App team will, on a regular cadence, audit active features and flag those that appear unmaintained — indicated by: no recent deployments, open security advisories without a remediation plan, unresolved accessibility issues, or no active owning team identifiable.
Flagged features follow this escalation process:
Retirement is not a failure. It is responsible portfolio management. Teams should plan for it from day one.
Why this matters: Every NHS England team has inherited dead systems that persist indefinitely because no clear process exists to remove them. We are not repeating that pattern in the NHS App.
A feature is not complete when code is merged. It is complete when all of the following are true:
Why this matters: A feature without a runbook costs the NHS App team incident response time diagnosing a system their engineers did not build. A feature without monitoring is invisible until it breaks publicly. The Definition of Done is the service wrapper — it is what separates a shipped feature from a future liability.
The NHS England Engineering Redlines (available at https://nhs.sharepoint.com/sites/X26_EngineeringCOE/SitePages/Red-lines.aspx) are hard, non-negotiable rules. Every rule in this Playbook sits above that baseline. Where this Playbook is silent, the Redlines apply. Where a Redline appears to conflict with your use case, you must request a formal exemption — there are no informal workarounds.
The goal of the technical guardrails is to allow tenant teams to ship changes to 13 million monthly active users without requiring human review from the NHS App Core team for every change. That is only possible if tenant code is trustworthy by default — and trustworthiness is built through automation, not through review gates.
A change is safe to ship without NHS App Core team intervention when all of the following are true:
Why this matters: Human review by the NHS App Core team at this scale is a bottleneck that will break the model. The answer to “how do we know this is safe?” must be automation, not gatekeeping. This does not mean quality is lower — it means quality is enforced differently, and earlier.
Problems caught at design time cost one conversation. Problems caught at PR review cost a day. Problems caught in production cost an incident, a potential clinical risk, and possible patient harm.
The expectation is that design and technical alignment discussions happen before a line of code is written, not at PR review.
The NHS App team provides design review checkpoints as part of onboarding (see Part 6). Use them. A PR that introduces a fundamental design disagreement will be rejected at review. Raising that same disagreement at a design checkpoint will resolve it in hours.
The required shift-left practices are:
For every feature, the tenant team must maintain a living risk register that forms a traceable chain:
Requirements → Identified risks → Controls linked to each risk → Automated tests that verify each control → Reporting on gaps
This is not a document exercise. It is a traceable, automated chain. The quality gates in the CI/CD pipeline must be traceable back to controls in the risk register. A gap in automated test coverage for a control is a known, unmitigated risk being shipped to 13 million people. Report it; do not obscure it.
Why this matters: Risk management without traceability to automation is theatre. The Playbook requires that compliance is continuously verifiable, not periodically asserted.
All tenant code must comply with the NHS Digital Software Engineering Quality Framework. Compliance is enforced by automated tooling in the CI/CD pipeline. Human review does not substitute for a failing automated check.
In addition:
CODEOWNERS files must be populated and kept current at all times; stale CODEOWNERS entries are a pipeline failureIf your team has a review bottleneck, the answer is smaller PRs merged more frequently — not larger PRs reviewed less often.
The web application is a Vue-based micro-frontend architecture. Tenant teams deliver web features as micro-frontends.
-latest on all curated internal dependencies (design system, shared utilities). Pinning to a fixed version is not permitted without a time-bound exception granted by the NHS App Core teamWhy this matters: The web application must present a coherent, consistent user experience regardless of which team contributed each part. A tenant pinning to an old design system version and deferring updates is user experience debt that eventually costs the whole platform — including tenants other than the one deferring.
The native applications have fundamentally different delivery mechanics from the web. They must be treated as a separate channel with separate constraints.
Why this matters: A defect in a web micro-frontend can be fixed in a deployment that takes minutes. A defect in a native build that has passed App Store review requires a new submission, a new review cycle, and a period during which the broken version is live with no ability to force an update. The higher bar for native automation and kill-switch readiness reflects that asymmetry directly.
“Why would a team want to work with us rather than building their own channel?” The answer is the Platform Subsidy: the capabilities, infrastructure, and services that the NHS App provides to every tenant, which would cost a standalone team significant time and money to replicate.
| Capability | What you get |
|---|---|
| Compute | Standardised Kubernetes (k8s) clusters within the NHS Azure tenant |
| CI/CD | Standardised pipeline templates; build, test, and deploy to staging automated from day one |
| Observability | Splunk for log aggregation, search, and alerting; dashboards provisioned per feature area |
| Analytics | Databricks for data analysis; Adobe Analytics for user behaviour; broad access to population-level data, not just the tenant’s own feature slice |
| Feature flagging | Centralised feature flag infrastructure with kill-switch capability, cohort-based rollout, and a full audit trail |
| Design system | NHS App Design System component library for web; native design system components for iOS and Android |
| Client-side logging | Standardised logging framework (web: Sentry-equivalent; native: equivalent mobile tooling) |
| Security testing | Platform-level penetration testing on a regular cadence; results shared across all tenants |
| Staging environments | Shared staging environment for integration testing before production release |
| Onboarding support | Documented onboarding path, reference implementations, cookbooks, and access to the NHS App engineering community |
The following are not negotiable. Tenants may not substitute their own alternatives without a formally approved, time-bound exemption.
| Category | Rule | Reason |
|---|---|---|
| Analytics tooling | You must use the platform analytics stack (Databricks, Adobe Analytics) | Adding new data processors requires IG/GDPR review and creates new InfoSec attack surface. The review burden consistently outweighs any benefit |
| Compute | All services must run within the NHS Azure tenant | Data sovereignty, InfoSec posture, and contractual obligations require this without exception |
| Client-side logging | You must use the platform logging framework | Fragmented logging makes incident investigation across tenant boundaries impossible at scale |
| Observability | You must use Splunk | Provides cross-tenant service health visibility for R&M; also consistent with the logging requirement above |
If you have a genuine exceptional need to deviate, raise it formally with the NHS App platform team. The answer will usually be no. If the answer is yes, it will be a documented, reviewed, time-bound exemption — not an ad-hoc workaround that later becomes architectural debt.
Tenant backend services must communicate with NHS App front ends through an Adapter/BFF (Backend for Frontend) pattern. The BFF is a secure adapter layer that lives within the NHS Azure tenant and mediates all communication between the NHS App front end and tenant backend systems.
Why this matters: Direct front-end to backend connections across tenant boundaries create unpredictable latency, brittle coupling, and an InfoSec exposure that is difficult to audit. The BFF pattern enforces a clear, auditable integration boundary with a single point of security control.
See Appendix A, item A6 for an open question about BFF ownership.
Every tenant feature is assigned a performance budget at onboarding. This covers:
A tenant feature whose production metrics consistently breach its SLO will be flagged for investigation. If not remediated within the agreed timeline, the feature will be disabled.
Why this matters: A slow or unreliable tenant feature degrades the perceived quality of the entire NHS App for all users — not just the users of that specific feature. Your SLO is effectively a contract with all 13 million people who use this service, not just your own users.
At scale, one of the largest ongoing engineering costs is not building new things — it is finding out what already exists and staying synchronised with how it changes. This section defines how the NHS App team communicates platform changes, and how tenant teams can discover what the platform already offers.
The NHS App team follows this model for all platform changes that affect tenant teams:
Why this matters: “We didn’t know about the change” is not an acceptable explanation for a tenant feature breaking in production. The NHS App team owns the communication; tenant teams own the adoption.
Before building anything, tenant teams must check whether the capability already exists on the platform. Building something that already exists is wasted effort and creates fragmentation the platform team then has to manage.
| Resource | What it provides | Audience |
|---|---|---|
| Design system playground | Interactive catalogue of all web and native UI components with usage examples | All tenant teams |
| API discovery catalogue | Searchable registry of all platform APIs, with versioning, ownership, and status | All tenant teams |
| Reference implementations / cookbooks | End-to-end examples of common integration patterns for web and native | All tenant teams |
| Platform capability map | Complete inventory of available platform capabilities and tooling | NHS App engineers and tenants |
These resources are owned and maintained by the NHS App team. If they are out of date or missing content that tenant teams need, that is a platform failure — raise it.
-latest on all curated internal dependencies (see Part 2.5); pinning is not permittedWhy this matters: A design system that has diverged across ten tenant implementations is not a design system — it is ten separate implementations that happen to start from the same point. Continuous tracking prevents incremental drift from becoming an unrecoverable gap.
The native channels have additional constraints that the web does not:
The NHS App team maintains two explicit ownership maps: one for web sections, one for native sections. Every discrete section of the user interface in both channels has a named owning team.
These maps are:
The NHS App serves a clinical population. The stakes of a bad release are not just user dissatisfaction — they include potential patient harm. Release choreography is how we ship confidently at scale while managing that risk explicitly.
Deployment is the act of placing code into an environment. Release is the act of making that code visible and active for users.
These two operations must be explicitly separated in every tenant integration. Code can be deployed to production but remain hidden behind a feature flag. The decision to release — to flip the flag — is a separate act, governed separately, and requires its own set of gates to be satisfied.
This separation is critical in the context of clinical workflows, where clinical assurance sign-off must be completed before release, not before deployment.
Why this matters: The ability to deploy without releasing means that release decisions are calm, deliberate, and reversible — not rushed because code is in a half-deployed state that must either go forward or be rolled back under pressure. The separation of deployment from release is one of the highest-leverage practices available on this platform.
| Action | Authority |
|---|---|
| Activate a tenant feature for rollout | The tenant team, after all release gates are passed |
| Activate a platform-wide change | The NHS App team (R&M) |
| Deactivate a tenant feature | The tenant team or the NHS App team (R&M) |
| Emergency deactivation of any feature on any channel | R&M — always, without prior notice or consultation |
The NHS App team (R&M) always retains the unconditional right to deactivate any feature, on any channel, at any time. This is not a statement of distrust toward tenant teams — it is a requirement of operating a platform used by 13 million people, some of whom may be in clinical settings when a failure occurs.
R&M are the people who are called when something is broken. They are the most motivated party to ensure that activations are safe, and they are the ones who bear the operational consequences of a bad release. Their unconditional deactivation authority reflects that accountability.
The native channels have fundamentally different release mechanics and require a different set of planning assumptions:
No feature on any channel releases without satisfying all applicable gates. These are not advisory checkboxes — they are hard gates. A missing gate is a blocker.
| Gate | Web | iOS | Android |
|---|---|---|---|
| All automated tests passing | ✅ | ✅ | ✅ |
| Accessibility audit (WCAG 2.2 AA) | ✅ | ✅ | ✅ |
| Information Security sign-off | ✅ | ✅ | ✅ |
| Information Governance sign-off | ✅ | ✅ | ✅ |
| Clinical assurance (where applicable) | ✅ | ✅ pre-submission | ✅ pre-submission |
| Performance SLO baseline established | ✅ | ✅ | ✅ |
| Kill-switch tested end-to-end | ✅ | ✅ | ✅ |
| Runbook published to knowledge base | ✅ | ✅ | ✅ |
Before any external team follows this Playbook, the NHS App team will run a full internal pilot using the exact process described here. An NHS App internal team will act as the first tenant — going through every step from initial engagement through to a feature live in production — using only the tooling, documentation, and support structures this Playbook describes.
The internal pilot is not a dress rehearsal. It is a quality gate. The Playbook and its supporting infrastructure are not ready for external teams until they have been proven to work end-to-end internally.
Required outputs of Phase 0:
Why this matters: Asking external teams to follow a process the NHS App team has never followed themselves is disrespectful of their time and is very likely to fail publicly. Dogfooding consistently surfaces issues that design reviews do not. The first external tenant should arrive at an onboarding experience that has already been improved by at least one complete pilot run.
The following capabilities and responsibilities are owned by the NHS App team permanently. They will not be delegated to tenant teams.
The onboarding process has two tracks — Web and Native. Choose the track that matches your delivery channel. If you are delivering across both web and native, you go through both tracks in parallel or in sequence as agreed with the NHS App platform team.
-latestCODEOWNERS file populated with current team members| Situation | Contact |
|---|---|
| A Playbook rule that seems wrong or inapplicable to your context | NHS App platform team — raise it formally; rules that fail the Epilogue criteria should be challenged |
| CI/CD pipeline or access problem | NHS App infrastructure team (infrastructure support channel) |
| Design system question | Design system team (design channel) |
| IG or InfoSec query | NHSE InfoSec / SIRO office via the standard route |
| Clinical assurance query | NHS App clinical safety officer |
| Performance or observability question | NHS App platform engineering (observability channel) |
| Escalation — blocked with no response after a reasonable period | Principal Systems Engineer, NHS App |
The commercial model underpinning this platform matters because the wrong model produces the wrong behaviours. This section states our positions clearly.
The NHS App platform team is funded centrally as an enabling platform. It does not charge tenant teams for platform usage. The platform team’s mandate is to make tenant teams successful — not to operate as a cost centre recovering spend from those it serves.
Why this matters: A platform team that charges per deployment, per API call, or per feature hosted creates adversarial incentives. Tenant teams cut corners on monitoring, delay updates, and find reasons to resist standards when every engineering decision has a price tag attached. The platform and the tenant teams are on the same side.
Each tenant team is responsible for the running costs of their own backend services within the NHS Azure tenant — compute, storage, and any data transfer attributable to their services.
This keeps the commercial model clean: the platform team’s costs are for the platform; the tenant team’s costs are for their service. When a service is shut down or a project ends, the shutdown is clean and the costs stop with it.
Why this matters: Central ownership of all infrastructure costs creates a situation where abandoned features and abandoned services continue to generate cost with no owner motivated to challenge it. Distributed cost ownership is a natural forcing function for feature lifecycle management — a team whose budget is paying for a running service has a direct incentive to either maintain it or shut it down.
The following funding and commercial arrangements are not compatible with this model. Teams or contracts that exhibit these patterns will be asked to change them before onboarding proceeds.
| Anti-pattern | Why it is harmful |
|---|---|
| Fixed-scope, fixed-cost contracts for tenant features | Forces delivery of the agreed scope regardless of whether that is the right thing to build. Quality and adaptability take second place to contract compliance. |
| Loaning centralised NHS App specialist capacity to tenant teams | Creates dependency rather than building tenant team capability. Does not set areas up for long-term self-sufficiency. |
| Per-deployment or per-feature platform charges | Creates adversarial incentives between the platform team and the teams it is supposed to enable. |
| Tenant teams managing their own shared infrastructure | Leads to duplication, inconsistency, and security fragmentation across the platform. |
When a tenant team’s project funding ends or is redirected:
Why this matters: The NHS App team should never be in the position of operating a feature they did not build and have no runbook for. Good portfolio management at programme level means making the decision about a feature’s future before the team responsible for it has already left.
The following items arose during the discussions that shaped this Playbook. They require explicit decisions before the Playbook can be considered final for external onboarding.
| # | Question | Area | Suggested owners |
|---|---|---|---|
| A1 | What is the formal process and authority for retiring an unmaintained feature, including the notice period and who holds the “delete button” at portfolio (P&P) level? | Social Contract | NHS App leadership, P&P |
| A2 | What service tier (currently Silver+) applies to tenant-owned features in production? Does any tenant feature require Platinum tier, and if so, what triggers that assessment? | Service management | NHS App, SIRO |
| A3 | Do tenant teams have any formal out-of-hours on-call obligation? If a tenant feature causes an out-of-hours P1 and the tenant team is unreachable, what is R&M’s escalation protocol? | Social Contract, Incident | R&M, NHS App |
| A4 | Analytics: is there a viable “new aggregation layer” exception for tenants with specific analytics requirements, and if so, what is the formal process for requesting and reviewing it? | Platform Subsidy | NHS App, IG |
| A5 | When multiple tenant teams are queued for deployment or release activation, what is the prioritisation process and who arbitrates conflicts? | Release Choreography | NHS App (R&M) |
| A6 | BFF ownership: does each tenant team own and operate their own BFF service, or do all requests go through a single NHS App-owned BFF? What are the security, performance, and operational ownership implications of each approach? | Architecture | NHS App architecture |
| A7 | Release gate authority: who holds the authority to grant or refuse a release gate waiver — is this always the NHS App platform team, or can that authority be delegated to senior members of a tenant team? How federated can this become without losing coherence? | Release Choreography | NHS App |
| A8 | Cost attribution: even with central platform funding, what cost attribution reporting should exist so that programme-level decisions can be made about the value of a tenant feature relative to its running cost? | Commercials | NHS App, Finance |