Skip to content
Alpha

This site is an alpha version and is still being developed in the open - your feedback will help us improve it. See the roadmap. Last updated: 14 October 2026.

Version in force: 0.3.0 (6 October 2026).

Guardrails

Guardrails are opinionated, good-practice defaults for designing, building and running services in Defra. They exist so teams can make good decisions quickly, without waiting for permission.

Why guardrails

Defra delivers hundreds of services across the core department and its arm's length bodies. Without shared defaults, every team solves the same problems again - hosting, identity, logging, payments - at extra cost and risk. Guardrails:

  • speed teams up by answering common questions once
  • make governance lighter - a design that stays inside the guardrails can be self-assured and needs no board
  • make Defra easier to work with - delivery partners know what we expect before they start
  • reduce risk by building in security, accessibility, data protection and sustainability from the start

Guardrails are not a gate.

Not the same as business analysis guardrails

The business analysis guardrails in the Defra Digital Service Manual are a separate quality framework for business analysis work. The guardrails on this site are architecture guardrails. They are the road with the barriers at the edge: you can drive as fast as you like in the middle.

What the guardrails apply to

The guardrails apply to digital services and products that Defra builds, buys or runs. Some, such as GR-IAM-02, name software as a service explicitly.

To be confirmed

TODO: which guardrails apply to commercial off-the-shelf products and to data and reporting platforms. The architecture guidance in the Defra Digital Service Manual says it may not apply to deploying commercial off-the-shelf software or building a data or reporting platform.

Arm's length bodies

To be confirmed

TODO: whether the guardrails apply to Defra's arm's length bodies as well as the core department, and any differences by area. Each area page links here until its applicability is confirmed; record the answer in that page's applicability front matter.

How to read a guardrail

Each guardrail has an identifier, a level, a short rationale and a way to show you meet it.

Level Means If you cannot meet it
Must A requirement from law or mandatory government policy, a baseline security control, or a DDTS doctrine non-negotiable. We keep these few. You need an approved exception from the Technical Design Authority.
Should The strong default. There may be good reasons to differ. Record why in an architecture decision record and share it with your solution design authority.
Could Recommended good practice. No action needed, but we would like to know what worked better.

Identifiers (for example GR-HOST-01) are stable so they can be referenced in decision records, assessments, contracts and statements of work. We never renumber, rename or delete an identifier: a guardrail that is no longer needed is marked deprecated and points to its replacement.

Under each guardrail, Phases, evidence and status shows:

  • status - draft, endorsed by the Technology Governance Board, or deprecated
  • phases - when it applies: discovery, alpha, beta or live
  • evidence - what to show an assessor or your solution design authority to prove you meet it, phase by phase: in discovery the intent or constraint you identified, in alpha the design or plan, in beta what you built and tested, and in live how you operate and review it
  • led by - the roles that make sure the team meets it, such as content designer or technical architect - see guardrails by role
  • automated check - whether it can be checked by a tool, or needs a person
  • the Service Standard, Technology Code of Practice and Secure by Design points it helps you meet, and the DDTS doctrine it applies

The same data is published as guardrails.json for tools and dashboards.

The guardrails

Search them all in the guardrail library, or browse by area:

Area What it covers
Architecture principles The eight principles every other guardrail derives from
Choosing technology Reuse, buy or build; SaaS; avoiding lock-in; exit plans
Hosting and platforms Cloud first, the Core Delivery Platform, environments, infrastructure as code
Software development Languages, source control, CI/CD, testing, dependencies
APIs and integration API first, open standards, events and messaging
Identity and access Customer and staff identity, authorisation, secrets
Data Ownership, authoritative sources, standards, sharing, retention
Security Secure by Design, threat modelling, vulnerability management
Observability and operations Logging, monitoring, alerting, resilience and support
Front end and accessibility GOV.UK design system, WCAG 2.2 AA, progressive enhancement
Open source and working in the open Coding in the open, licensing, publishing safely
Artificial intelligence Safe, lawful and transparent use of AI, including AI agents and supplier use of AI coding assistants
Sustainability Greening government ICT and efficient design
Products and platforms (draft) Long-lived product teams, ownership, contributing to platforms, retiring products
Digital first and end-to-end services (draft) Challenging paper processes, designing across boundaries, assisted digital
Field working and devices (draft) Devices suited to the job, offline working, device security

Self-assure in 10 minutes

Use this checklist at the end of discovery, at each phase gate and before any significant change. If you can tick every box you are inside the guardrails and can proceed with your solution design authority.

  • The service maps to one or more business capabilities and we have checked the technology capabilities for something to reuse
  • We are hosting on a strategic platform (GR-HOST-01) or have an agreed exception
  • Code is in a Defra GitHub organisation and public unless there is a recorded reason (GR-OPEN-01)
  • We use the strategic identity services for customers and staff (GR-IAM-01, GR-IAM-02)
  • Our APIs are documented with OpenAPI or AsyncAPI (GR-API-02)
  • We know who owns each data set we create or use, and we use authoritative sources (GR-DATA-01, GR-DATA-02)
  • We have a current threat model (GR-SEC-02) and a DPIA where personal data is involved (GR-DATA-06)
  • Logs, metrics and alerts flow to the platform's observability tooling (GR-OPS-01)
  • The service meets WCAG 2.2 AA and uses the GOV.UK Design System (GR-FE-01, GR-FE-02)
  • Significant decisions are recorded as ADRs (GR-DEV-09)

Ticked every box? Great - carry on, and record it. Not sure, or found a gap? Use the decision check to find the right route.

How guardrails change

Guardrails are owned by the architecture team, reviewed by the Technical Design Authority and approved by the Technology Governance Board. Anyone can propose a change:

  1. Open an issue or pull request in the repository describing the change and why.
  2. The architecture team triages it within two weeks.
  3. Minor clarifications are merged directly. New or changed Must guardrails go to the TDA for review and to the TGB for approval.
  4. Changes are listed in what's new.

Repeated exceptions are a signal

If several teams need the same exception, the guardrail is probably wrong. We review exceptions every quarter and change guardrails when they get in the way.