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 two forces are now pulling against each other:
The question this Playbook answers is: how do we allow those teams to safely deliver features within a shared ecosystem?
The answer is not “let everyone commit to the same repositories and hope for the best.” Nor is it “funnel every change through the NHS App team and accept the bottleneck.” It is a third path: a defined platform model with clear ownership, automated guardrails, and a social contract that protects the 13 million people who use this service while enabling the teams who want to contribute to it.
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, IG (data protection), and InfoSec 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 feature activation | ✅ 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, the NHS App team 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.
How we track this at scale: At the scale this platform is targeting, a manual audit cadence is not sufficient. See Feature Lifecycle Tracking for the software catalog and scorecard model that automates this process — including tooling options and how each signal maps to a machine-readable rule.
This checklist operates at the feature level, not the story or PR level. Individual stories and pull requests are gated by the automated pipeline (see Part 2), which enforces the conventional story-level checks: tests pass, linting clean, peer review approved (i.e. definition of done). Those checks happen continuously throughout development and are not listed here.
This checklist is the gate before the feature flag is flipped and the feature becomes visible to users. A feature may be fully deployed to production — across many PRs and many sprints — while this checklist remains incomplete. That is expected and correct. Deployment and activation are separate acts (see §5.1).
A feature is ready to activate 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. This checklist is the service wrapper — it is what separates a safely activated 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 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 team intervention when all of the following are true:
Why this matters: Human review by the NHS App 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.
What makes a test suite trustworthy: “All tests pass” is a necessary condition, not a sufficient one. A suite with no meaningful assertions will pass every time. The platform enforces branch coverage thresholds, mutation scores, and contract tests for integration boundaries as hard pipeline gates. See Test Coverage Quality for the full model — including tooling, minimum thresholds, and ownership.
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.
Note: The rules below describe the target architecture for web channel tenant delivery. The NHS App web application is currently a monolithic Vue application, not a micro-frontend architecture. The migration from monolith to micro-frontends is in progress. Tenant teams onboarding before that migration is complete will follow an interim delivery path agreed during initial engagement. See Micro-frontends: Direction of Travel for a full explanation of what micro-frontends are, why they are the right architecture for this model, the migration plan, and what to expect during the transition.
The target architecture is a Vue-based micro-frontend architecture. Tenant teams will 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 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 feature 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.
Open question: The capabilities below reflect the current centralised compute model — all services run within the NHS Azure tenant on NHS App-provisioned infrastructure. There is a potential case for tenant teams owning their own compute, either within NHS Azure or on their own infrastructure, but that decision carries significant knock-on impacts for IG, observability, the BFF architecture, and security posture. This has not yet been resolved. See Tenant Compute: Options and Tensions for a full analysis, and Appendix A, item A10 for the open question.
| 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.
Identity propagation: The BFF does not terminate identity — tenant backend services will typically need to know who is making a request in order to serve the correct data. The BFF is responsible for propagating the authenticated user’s identity to downstream services in a verified, tamper-proof form. The mechanism for doing this (forwarding the original NHS Login JWT, exchanging it for a service-scoped token, or issuing a signed internal identity assertion) is not yet defined and is a significant design decision. See Appendix A, item A11.
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.
APIs use major-version-only versioning. The version is surfaced in the URL path (e.g. /v1/, /v2/) or as a request header. Only breaking changes produce a new major version — a breaking change is any change that could cause a correctly-built client to fail. Non-breaking additions (new fields, new optional parameters) do not require a version increment. When a new major version is introduced, the prior major version enters a deprecation period with a stated end-of-life date before support is withdrawn. Full SemVer (MAJOR.MINOR.PATCH) is not applied to APIs — minor and patch increments are internal implementation details invisible to consumers.
Libraries and binaries (the design system component library, shared web utilities, native SDK components) follow Semantic Versioning (SemVer). All three version parts carry meaning for consumers: breaking changes increment the major version, backwards-compatible additions increment the minor version, and fixes increment the patch version. Breaking changes are preceded by a deprecation period before the prior major version is withdrawn.
Native SDK components follow SemVer with the additional constraint that breaking changes must account for App Store review cycle timelines when calculating the minimum deprecation window — a build submission is required before a tenant can adopt a breaking SDK change, and that submission takes time.
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.
Implementation note: These four resources are most naturally delivered as features of an Internal Developer Portal (IDP) rather than as independently-built artefacts. The API discovery catalogue, ownership maps, and design system playground are first-class capabilities of platforms like Backstage — the same investment that automates feature lifecycle tracking also delivers discoverability. See Feature Lifecycle Tracking for the full tooling discussion.
-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.
Continuous deployment in practice: NHS England is not yet a continuous deployment organisation, and the journey there requires more than a pipeline rule. See Continuous Deployment: Practices and Coping Strategies for pragmatic approaches — including feature flags as a safety valve, short-lived branches, release cadences for teams not yet at full CD, and branch-by-abstraction for structural changes.
The native channels have additional constraints that the web does not:
Every discrete section of the user interface — in both web and native channels — has a named owning team. Ownership is maintained through two complementary mechanisms that serve different purposes:
CODEOWNERS (in each tenant repository) — maps file paths to teams for automatic PR review assignment. It answers: “who reviews changes to this code?”catalog-info.yaml (in each tenant repository, aggregated by the IDP) — declares the owning team, on-call contact, lifecycle state, and the UI routes the feature owns (via a nhs-app/ui-routes annotation). Aggregated across all tenant repos, this becomes the live, queryable ownership map for the entire platform. It answers: “who do I contact when /prescriptions is broken in production?”The practical consequence is that the ownership map is not a document the NHS App team maintains centrally — it is a live view derived from metadata that tenant teams own in their own repositories. A missing or stale catalog-info.yaml is a pipeline failure, not a compliance reminder. There is no separate update SLA; ownership is updated as part of the PR that changes it.
See the tooling section of Feature Lifecycle Tracking for the IDP options that serve as the aggregation layer.
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 |
| Deactivate a tenant feature | The tenant team or the NHS App team |
| Emergency deactivation of any feature on any channel | The NHS App team — always, without prior notice or consultation |
The NHS App team 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.
The NHS App team 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.
Current state — Service Journey Rules (SJRs): Feature rollout today is controlled through a bespoke, hand-coded system called Service Journey Rules. SJRs currently support targeting by ODS code and are being extended to support additional user attributes. They are the mechanism through which content entitlement (which users see which content) and feature activation (whether a feature is on or off) are currently managed.
SJRs are a known constraint:
All SJRs must be visible to all tenants through a platform-provided dashboard. This is a current gap and a known risk — no tenant should be surprised by another tenant’s entitlement configuration affecting their feature’s behaviour.
Target state — OpenFeature: The long-term target is a feature flagging system built on the OpenFeature standard. OpenFeature is a CNCF project that defines a vendor-neutral API for feature flagging, allowing the underlying flag evaluation engine to be swapped without changing application code. The benefits for this platform are significant:
Tension to resolve: The migration from SJRs to an OpenFeature-compatible system is not yet planned. Tenant teams onboarding now will build against the SJR model. The platform will need a migration path that does not require tenants to re-implement their rollout logic when the underlying system changes. See Appendix A, item A12.
The native channels have fundamentally different release mechanics and require a different set of planning assumptions:
The Feature Activation Criteria in §1.5 define what must be true before any feature is activated. This table is the channel-specific expression of those criteria — it shows which gates apply to which delivery channel and, for native, at which point in the submission process they must be satisfied.
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 | ✅ | ✅ | ✅ |
Phase 0 runs two streams in parallel:
Running these streams in parallel is deliberate. Internal dogfooding surfaces the gaps that the authors cannot see because they built the process; the external pilot surfaces the gaps that only someone new to it will hit. Neither stream alone is sufficient.
The external pilot team is not a guinea pig — they are a close collaborator with skin in the game. They have a real feature to deliver and real users to serve; the platform has to actually work for them, not just in theory. They will receive a level of direct support that will not be available to subsequent tenant cohorts. In return, they are expected to be candid about every point of friction, confusion, or missing tooling they encounter.
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 will surface problems at the worst possible moment. Dogfooding catches the obvious issues; a real external team catches the ones that feel obvious to insiders but aren’t. The first broader cohort should arrive at an onboarding experience that has already been improved by at least two complete pilot runs.
The following capabilities and responsibilities are owned by the NHS App team permanently. They will not be delegated to tenant teams.
All features are expected to deliver across all three channels — Web, iOS, and Android. The onboarding process reflects this: every team goes through both the Web track and the Native track.
Delivering on a single channel only — for example, piloting on web before building native — requires an explicit, time-bound exception agreed with the NHS App platform team at initial engagement. An exception is not a permanent position; it must include a committed plan and timeline for reaching full channel coverage.
-latestCODEOWNERS file populated with current team membersNote: “Going live” means feature activation — flipping the flag so users can see the feature. It does not mean the first deployment. Code must be deployed to staging behind a feature flag that defaults to off from the very first commit. By the time a team reaches this checklist, the feature has been deployed and running hidden in production for some time. These steps govern the decision to make it visible.
| 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 — compute, storage, and any data transfer attributable to their services.
Note: The commercial position here depends on an architectural question that is not yet fully resolved: whether tenant backend services run on NHS App-provisioned infrastructure within the NHS Azure tenant, on tenant-owned infrastructure within NHS Azure, or on tenant-owned infrastructure outside NHS Azure. Each model has a different cost attribution structure. See Tenant Compute: Options and Tensions and Appendix A, item A10 for the full analysis. The principle below holds regardless of which model is adopted — tenant teams pay for their own services — but the mechanism for attributing and settling those costs will differ by model.
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 configuring or modifying shared platform infrastructure | Giving tenants access to shared infrastructure (Kubernetes cluster config, pipeline templates, observability platform) leads to inconsistency, security fragmentation, and incident blast radius that crosses tenant boundaries. This is distinct from a tenant team owning and operating their own backend infrastructure — which may be the right model depending on the compute decision (see Appendix A, item A10 and Tenant Compute: Options and Tensions). |
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 |
| A9 | Pipeline templates — constraint or enabler? Standardised CI/CD pipeline templates guarantee a minimum bar of risk management and help teams move quickly from a standing start. But they also constrain capable teams who may have legitimate reasons to do things differently, and risk becoming a ceiling rather than a floor. Should the template model be strictly enforced (teams must use the template, period), or should there be a formal mechanism for a team to propose and adopt alternate pipeline implementations that demonstrably meet or exceed the template’s quality and risk management guarantees — without requiring a full exemption process? | Technical Guardrails, Team Evolution | NHS App architecture, senior tenant engineering leads |
| A10 | Tenant compute model: should the platform mandate that all tenant services run on NHS App-provisioned compute within NHS Azure (current position), allow tenant teams to operate their own compute within NHS Azure, or allow tenant compute outside NHS Azure entirely? The decision has direct knock-on effects on IG and data governance, the BFF architecture and threat model, observability continuity, platform pen testing scope, and tenant onboarding speed. Micro-frontend bundle hosting (static assets, no patient data) may warrant a separate decision from backend service compute. See Tenant Compute: Options and Tensions for full analysis. | Platform Subsidy, Architecture, IG | NHS App architecture, NHS App IG lead, NHS England SIRO office |
| A11 | Identity propagation through the BFF: the BFF validates NHS Login sessions at the platform boundary, but tenant backend services will typically need verified user identity to serve the correct data. What is the standard mechanism for propagating identity from the BFF to tenant backends — forward the original NHS Login JWT, perform a token exchange for a service-scoped token, or issue a signed internal identity assertion? Each option has different security, coupling, and operational implications. This decision needs to be made before the first tenant backend integration is built and must be consistent across all tenants. | Architecture, InfoSec | NHS App architecture, NHS Login team |
| A12 | Feature flagging system migration: the platform currently uses Service Journey Rules (SJRs) — a bespoke, hand-coded system for content entitlement and feature activation. The target is a system built on the OpenFeature standard, which provides a vendor-neutral SDK API and decouples tenant code from the underlying flag evaluation engine. What is the migration path? How do tenants onboarding during the SJR era avoid being required to re-implement their rollout logic when the platform migrates? Should OpenFeature be adopted incrementally (new features use it from day one) or via a full platform cut-over? | Platform evolution, Tenant onboarding | NHS App platform team, senior tenant engineering leads |