Learn · spec-driven delivery · free guide
Checks as code, and the Ops gate
A checklist in a document tells people what should be true. A check as code states it precisely, attaches evidence, and can be run the same way on every project. This page explains the idea, shows how discovery, architecture and operations gates can all be built from it, and gives a detailed Ops gate checklist, in categories, so a project knows what it will be tested on before it starts.
Teach first
A document says. A check proves.
Every project has a checklist somewhere: a sheet of things to confirm before go-live. Most are written once, copied from the last project, ticked by whoever is in a hurry, and never read again. The idea of a check as code is to write the same expectations in a precise, structured form, keep them with the project, and attach evidence to each.
The same expectations, written two ways. Only the second can be run, counted and trusted.
| A document checklist | A check as code | |
|---|---|---|
| Where it lives | A Word, Excel or PDF file, copied around | In a repository, next to the code |
| When it is written | Once, at the start | Continuously, with history |
| Who reads it | The author, at the end | Everyone, at every change |
| What counts as evidence | A tick by a person | Evidence attached; some checks run themselves |
| Drift | Copies diverge and old versions circulate | One source; differences are visible |
| Same for every project | Each project edits its own copy | One spec; 'applies when' rules trim it |
| Repeatability | Depends on who runs it | Same inputs, same result |
| Coverage | Unknown | Counted: passed, failed, not yet known |
| Cost of checking | Manual every time | Automatable for the checkable part |
| Weakness | Ignored once the deadline nears | Needs upfront work; can be gamed; not everything is checkable |
Spec-driven
The spec comes first. The checks follow.
In spec-driven development, a specification says what must be true, and everything else is derived from it. The same works for gates. The spec of a good discovery, a good design or a ready-to-run system is written once. The checks come from it. A gate runs the checks against evidence, and reports what is proven, failed and not yet known.
One spec, many gates. A gate is a view of the spec, not a new document.
The wider idea is on the spec-driven development pages, and for data platforms in spec-driven data platforms.
Anatomy
What one check looks like
The project review that this site already publishes works this way: 198 checks, each a small structured record, filterable by stage and role (see the checks and the open repository). The Ops gate uses the same fields.
id: OPS-REC-02 title: A restore has been tested, and the time measured question: > Has someone restored the data and configuration from backup into a clean environment, with the time measured and compared with the agreed target? why: > The backups ran for a year. The first real restore failed because the keys were not backed up. Recovery took three days instead of three hours. applies: kind: [any] components: [storage, platform] owner: operations also: [tech-anchor] evidence: docs: [recovery-document, restore-test-record] looks_like: A dated test record with the measured time and who ran it. severity: blocker due: 8 # lifecycle stage fail_fast: Ask in discovery where backups live and who has ever restored one. verify: drill
| Field | What it holds |
|---|---|
id | A stable name, such as OPS-REC-02. |
title | The check in one sentence. |
question | The question a reviewer asks. |
why | What goes wrong without it, in one story. |
applies | When it applies: kind of project, components, patterns, such as 'AI in scope'. |
owner | The role accountable for passing it. |
evidence | What must be shown: documents and what 'good' looks like. |
severity | Blocker, major, minor. |
due | The lifecycle stage by which it should be ready. |
fail_fast | The cheapest early test to know if it will pass. |
Four levels of verification
| Level | What it means | Example |
|---|---|---|
| Manual | A person looks at evidence and decides. | Is the runbook usable? Are the definitions owned? |
| Semi-automated | A script collects the evidence; a person judges it. | List all accounts that run production jobs; a person decides if each is allowed. |
| Automated | The check runs and returns pass or fail. | Did the last 30 loads alert on a deliberate failure? Is any secret in the code? |
| Drill | A rehearsal proves it works under stress. | Restore from backup. Roll back a release. Run the runbook cold. |
The gates
Each gate is a spec of checks
Seven gates. The first two are largely covered by the existing project review. The Ops gate is written out in full below.
| Gate | Stage | The question | Decides | What it checks | Status |
|---|---|---|---|---|---|
| Requirements checklist | 1 to 2 | Is the request clear enough to estimate? | BA lead, PM | A subset of the project review checks on requirements, scope and stakeholders. | Exists (subset) |
| Discovery gate | 4 | Is it worth doing, and do we know how? | Sponsor, business owner | Project review checks for discovery; the discovery document; fail-fast test results. | Exists |
| Architecture gate | 4 | Will the design work, safely, at cost, for operations? | Client architect, security, our architect | Design checks from the project review, plus the vendor and cloud review findings. | To derive from the checks |
| Build readiness | 5 | Can the team build and release from day one? | Tech Anchor, client IT | Environments, access, pipeline, standards. | To derive |
| Test gate | 7 | Are the numbers right, and proven? | Business owners, test lead | Acceptance, reconciliation, performance and recovery evidence. | To derive |
| Ops gate | 8 to 9 | Can operations run it at 3 a.m. without the builders? | Operations, with security and the business owner | The checklist below. | New, on this page |
| Project close | 10 | Were the benefits delivered, and can support change it alone? | Sponsor | Benefits report; hand-over pack. | To derive |
Requirement, discovery, architecture and close are views onto the same spec, filtered by stage and role. The project review already covers much of the first four. See also Reviews and sign-offs.
How a gate runs
No surprises at the gate
- Pre-flight. Run the checks yourself, weeks before the gate. The gate holds no surprises.
- Evidence pack. Gather the evidence for each check in one place, named by check ID.
- Gate review. Reviewers go through the report, not the whole pack. Open items only.
- Decision. Pass, conditional pass, or not yet. Written, with names and dates.
- After. Conditions tracked to closure. Lessons feed back into the spec.
Three outcomes
| Decision | When | What happens |
|---|---|---|
| Pass | No open blockers. Every category has a named owner who has signed. Majors are fixed or accepted in writing with dates. | Go to production. |
| Conditional pass | No open blockers. A short list of majors, each with an owner and a date before or soon after go-live. | Go, with conditions tracked weekly. |
| Not yet | Any open blocker, or a category with no owner. | Do not go. Fix, then re-run only the failed checks. |
The Ops gate
The final gate before production: 101 checks in 14 categories
The question: can operations run this at 3 a.m. without the builders? Operations meet the project once, at the end. If the project knows what they will test, it can prepare for months. Start with the categories. Open the checks only where you are weak.
50 of the 101 checks are blockers. The Ops gate passes when no blocker is open and every category has a named owner who has signed. Checks marked 'applies when AI or agents are in scope' can be skipped otherwise.
Ownership and support · 6 checks · owners: Operations, PM
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-OWN-01 | A named owner for the system, with a deputy | Owner register entry | Operations | blocker | manual | 5 |
| OPS-OWN-02 | Support model agreed: hours, tiers, response times, who answers | Support page signed by operations | Operations | blocker | manual | 5 |
| OPS-OWN-03 | Escalation path from first line to the build team and vendors, with names and numbers | Contact sheet, tested once | PM | major | drill | 8 |
| OPS-OWN-04 | On-call rota covers the agreed hours for the first 90 days | Rota | Operations | blocker | manual | 8 |
| OPS-OWN-05 | The support team has made one real change without the builders | Change record | PM | major | drill | 9 |
| OPS-OWN-06 | Vendor support contracts and contacts are in place | Contract and contact list | PM | major | manual | 8 |
Runbook and documentation · 7 checks · owners: BA, Operations, PM, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-RUN-01 | A runbook exists for each job: what it does, normal duration, how to rerun | Runbook | Tech Anchor | blocker | manual | 7 |
| OPS-RUN-02 | Someone who did not build it has followed the runbook and succeeded | Test note | Operations | blocker | drill | 8 |
| OPS-RUN-03 | Known failure modes and their fixes are listed | Failure list | Tech Anchor | major | manual | 8 |
| OPS-RUN-04 | The architecture picture and data flow are current | Document with a date | Tech Anchor | major | manual | 8 |
| OPS-RUN-05 | The data dictionary and metric catalogue are published | Link | BA | major | manual | 8 |
| OPS-RUN-06 | Lineage from source to report is documented | Lineage document or tool view | Tech Anchor | major | semi-automated | 8 |
| OPS-RUN-07 | The decision log and open risks are handed over | Log | PM | minor | manual | 9 |
Monitoring and alerting · 7 checks · owners: Operations, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-MON-01 | Every job failure alerts a named person, not a shared mailbox | Alert test result | Tech Anchor | blocker | automated | 7 |
| OPS-MON-02 | Late or missing data is detected and alerted (freshness) | Alert test result | Tech Anchor | blocker | automated | 7 |
| OPS-MON-03 | Data quality check failures raise an alert | Alert test result | Tech Anchor | blocker | automated | 7 |
| OPS-MON-04 | Unusual volumes (too few or too many rows) raise an alert | Alert configuration | Tech Anchor | major | automated | 7 |
| OPS-MON-05 | One operations dashboard shows pipeline health | Dashboard link | Tech Anchor | major | manual | 8 |
| OPS-MON-06 | Alerts were tested by breaking something on purpose | Test record | Operations | blocker | drill | 8 |
| OPS-MON-07 | No alert is routinely ignored; noise has been reviewed | Review note | Operations | minor | manual | 9 |
Recovery and resilience · 8 checks · owners: Operations, PM, Sponsor, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-REC-01 | A backup or recovery method exists for the data and the configuration | Recovery document | Tech Anchor | blocker | manual | 7 |
| OPS-REC-02 | A restore has been tested, and the time measured | Restore test record | Operations | blocker | drill | 8 |
| OPS-REC-03 | Recovery targets (how long, how much data loss) are agreed and met | Agreement and test result | Sponsor | major | drill | 8 |
| OPS-REC-04 | Any job can be rerun safely without double counting | Rerun test | Tech Anchor | blocker | automated | 6 |
| OPS-REC-05 | A failed night can be recovered, including catching up | Drill record | Tech Anchor | blocker | drill | 8 |
| OPS-REC-06 | Raw data is kept so the pipeline can be rebuilt from it | Design and retention setting | Tech Anchor | major | manual | 6 |
| OPS-REC-07 | Behaviour when a source is late or down is defined and tested | Document and test | Tech Anchor | major | drill | 7 |
| OPS-REC-08 | A failure drill has been held with operations | Drill report | PM | blocker | drill | 8 |
Release and deployment · 8 checks · owners: PM, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-REL-01 | Release is by pipeline, with no manual steps | Pipeline run | Tech Anchor | blocker | automated | 5 |
| OPS-REL-02 | The same code runs in test and production; settings are kept apart | Configuration review | Tech Anchor | blocker | semi-automated | 6 |
| OPS-REL-03 | Rollback has been rehearsed | Rehearsal report | Tech Anchor | blocker | drill | 8 |
| OPS-REL-04 | A cut-over plan exists, with timings and owners | Plan | PM | blocker | manual | 8 |
| OPS-REL-05 | Release notes and version tags exist | Notes | Tech Anchor | minor | manual | 8 |
| OPS-REL-06 | Secrets are in a secret store, not in code | Scan result | Tech Anchor | blocker | automated | 6 |
| OPS-REL-07 | The change approval route is agreed with client IT | Process | PM | major | manual | 5 |
| OPS-REL-08 | Test and production environments match closely enough | Comparison | Tech Anchor | major | semi-automated | 7 |
Data quality and reconciliation · 8 checks · owners: BA, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-DQ-01 | Data quality checks run on every load | Run log | Tech Anchor | blocker | automated | 6 |
| OPS-DQ-02 | Thresholds are agreed with the data owners | Threshold sheet | BA | major | manual | 5 |
| OPS-DQ-03 | Reconciliation to the trusted report is signed by finance | Signed reconciliation | BA | blocker | manual | 7 |
| OPS-DQ-04 | The plan to reconcile the first production load is agreed | Plan | BA | major | manual | 8 |
| OPS-DQ-05 | Rejected rows are counted and reviewed by a named person | Review record | BA | major | manual | 7 |
| OPS-DQ-06 | Late and corrected records give the right numbers (demonstrated) | Demo | Tech Anchor | major | automated | 7 |
| OPS-DQ-07 | Deletes at the source are reflected correctly | Test result | Tech Anchor | major | automated | 7 |
| OPS-DQ-08 | A quality scorecard is visible to the business owners | Scorecard view | BA | minor | manual | 8 |
Data operations · 6 checks · owners: BA, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-DAT-01 | The load schedule and dependencies are documented and agreed with source owners | Schedule page | Tech Anchor | blocker | manual | 6 |
| OPS-DAT-02 | A process exists for source schema changes: notice, test, release | Process page | Tech Anchor | major | manual | 7 |
| OPS-DAT-03 | A backfill and history reload procedure is written and tested | Procedure and test | Tech Anchor | major | drill | 7 |
| OPS-DAT-04 | The historical load is complete and reconciled | Reconciliation | BA | blocker | manual | 8 |
| OPS-DAT-05 | Manual steps (file uploads, approvals) are listed and owned; none are hidden | Manual steps list | Tech Anchor | major | manual | 7 |
| OPS-DAT-06 | Retention and archive jobs are scheduled | Schedule | Tech Anchor | minor | manual | 8 |
Security and access · 9 checks · owners: Client IT, Security, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-SEC-01 | Access follows least privilege, by role | Access matrix | Security | blocker | manual | 6 |
| OPS-SEC-02 | Roles have been tested with real people in each role | Test record | Tech Anchor | blocker | drill | 7 |
| OPS-SEC-03 | No shared or personal accounts run production jobs | Account review | Tech Anchor | blocker | automated | 6 |
| OPS-SEC-04 | Keys and secrets rotate, with known owners | Rotation record | Tech Anchor | major | automated | 8 |
| OPS-SEC-05 | Data is encrypted in transit and at rest | Configuration | Tech Anchor | blocker | automated | 6 |
| OPS-SEC-06 | Audit logs capture who accessed what, kept for the agreed time | Log configuration | Security | major | automated | 7 |
| OPS-SEC-07 | The security review is done and findings are closed (vulnerability scan; penetration test where required) | Report | Security | blocker | manual | 7 |
| OPS-SEC-08 | An access review process exists for joiners, movers and leavers | Process | Security | major | manual | 8 |
| OPS-SEC-09 | Network paths are approved | Approval | Client IT | blocker | manual | 6 |
Privacy and compliance · 7 checks · owners: BA, PM, Privacy, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-PRV-01 | Personal and sensitive data is classified | Classification list | BA | blocker | manual | 3 |
| OPS-PRV-02 | Lawful basis and purpose are recorded for each use | Register | Privacy | blocker | manual | 4 |
| OPS-PRV-03 | Masking is applied where roles must not see data | Test result | Tech Anchor | blocker | automated | 7 |
| OPS-PRV-04 | Retention rules are set and deletion is tested | Deletion test | Tech Anchor | blocker | drill | 7 |
| OPS-PRV-05 | Data location (residency) meets the rules | Review | Privacy | blocker | manual | 4 |
| OPS-PRV-06 | A privacy impact assessment is done where required | Assessment | Privacy | major | manual | 4 |
| OPS-PRV-07 | Third-party terms allow this use of the data | Terms summary | PM | major | manual | 4 |
Performance and capacity · 6 checks · owners: Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-PRF-01 | A run at production volume finishes inside the window, with margin | Load test | Tech Anchor | blocker | automated | 7 |
| OPS-PRF-02 | Key reports meet the agreed response times at production volume | Test result | Tech Anchor | blocker | automated | 7 |
| OPS-PRF-03 | Concurrent users have been tested to the expected peak | Test result | Tech Anchor | major | automated | 7 |
| OPS-PRF-04 | There is at least 12 months of growth headroom | Forecast | Tech Anchor | major | manual | 8 |
| OPS-PRF-05 | Peak days (month-end, year-end) have been rehearsed | Rehearsal | Tech Anchor | major | drill | 8 |
| OPS-PRF-06 | Loads have been checked not to harm the source | Test note | Tech Anchor | major | manual | 7 |
Cost and FinOps · 6 checks · owners: PM, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-CST-01 | A monthly budget exists, with an owner | Budget record | PM | blocker | manual | 4 |
| OPS-CST-02 | Cost allocation tags are on all resources | Scan result | Tech Anchor | major | automated | 6 |
| OPS-CST-03 | A cost alert fires on a jump | Alert test | Tech Anchor | major | automated | 8 |
| OPS-CST-04 | A 12-month cost forecast exists | Forecast | Tech Anchor | major | manual | 8 |
| OPS-CST-05 | Idle resources shut down automatically | Configuration | Tech Anchor | minor | automated | 8 |
| OPS-CST-06 | A monthly cost review is scheduled | Calendar entry | PM | minor | manual | 9 |
Consumer readiness · 7 checks · owners: BA, PM, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-CON-01 | Every consumer is named, with an owner and contact | Consumer register | BA | major | manual | 5 |
| OPS-CON-02 | Users have access and licences | Access check | PM | blocker | manual | 7 |
| OPS-CON-03 | User acceptance is signed by the business owners | Signed acceptance | BA | blocker | manual | 7 |
| OPS-CON-04 | Reports show when the data was last updated, and its source | Report view | Tech Anchor | major | manual | 7 |
| OPS-CON-05 | Training and a support route for users exist | Training record | PM | major | manual | 8 |
| OPS-CON-06 | Old reports have an agreed switch-off date | Agreement | BA | major | manual | 4 |
| OPS-CON-07 | Users have been told about go-live and what changes | Communication | PM | minor | manual | 8 |
Governance and sign-off · 7 checks · owners: PM, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-GOV-01 | Open defects are listed, and each is fixed or accepted in writing | Defect list | PM | blocker | manual | 8 |
| OPS-GOV-02 | The risk register is current, with owners | Register | PM | major | manual | 8 |
| OPS-GOV-03 | Design review findings are closed | Findings log | Tech Anchor | blocker | manual | 7 |
| OPS-GOV-04 | Vendor review findings are recorded as decisions | Decision log | Tech Anchor | major | manual | 7 |
| OPS-GOV-05 | Exceptions to this gate are recorded, with an owner and an expiry | Exception list | PM | major | manual | 8 |
| OPS-GOV-06 | A hypercare plan with exit criteria exists | Plan | PM | blocker | manual | 8 |
| OPS-GOV-07 | Sign-offs are collected: acceptance, security, operations | Sign-off register | PM | blocker | manual | 8 |
AI and agent operations only when AI or agents are in scope · 9 checks · owners: BA, Operations, Risk, Security, Tech Anchor
| ID | Check | Evidence | Owner | Severity | How verified | Prepare by stage |
|---|---|---|---|---|---|---|
| OPS-AIO-01 | Evaluation results meet the thresholds for this release | Evaluation report | Tech Anchor | blocker | automated | 7 |
| OPS-AIO-02 | Guardrails are tested with attack and misuse cases | Test result | Security | blocker | automated | 7 |
| OPS-AIO-03 | High-impact actions need human approval, with a queue and an owner | Design and test | BA | blocker | manual | 6 |
| OPS-AIO-04 | Model, prompt and tool versions are recorded and can be rolled back | Configuration and rollback test | Tech Anchor | blocker | drill | 7 |
| OPS-AIO-05 | Cost per task is measured and within budget | Report | Tech Anchor | major | automated | 7 |
| OPS-AIO-06 | Quality, drift and cost are monitored, with alerts | Dashboard and alert test | Tech Anchor | blocker | automated | 7 |
| OPS-AIO-07 | A Responsible AI review is done and the risk tier recorded | Review record | Risk | blocker | manual | 4 |
| OPS-AIO-08 | The incident process covers AI failures: wrong answers, injection, outage | Process and drill | Operations | major | drill | 8 |
| OPS-AIO-09 | A kill switch exists and has been tested | Test record | Tech Anchor | blocker | drill | 8 |
This is a starting spec. Trim it with 'applies when', add what your organisation needs, and keep it in the project's repository.
Prepare
Do the work early. The gate is the last check, not the first
| When | Prepare |
|---|---|
| Stage 3 to 4 | Classify sensitive data. Record lawful basis. Agree budget and owner. Agree the old-report switch-off date. Run the Responsible AI review if AI is in scope. |
| Stage 5 | Name the owner and the support model. Agree release route. Release from a pipeline from day one. Name consumers. |
| Stage 6 | Make jobs safe to rerun. Move secrets to a store. Switch on data quality checks. Tag resources. Document schedules and dependencies. |
| Stage 7 | Alerts for failure, freshness and quality. Reconciliation signed. Load and performance tests. Security review. Role tests. Test acceptance. |
| Stage 8 | Runbook followed cold by someone else. Restore tested. Rollback rehearsed. Failure drill. Cut-over plan. Hypercare plan. Collect sign-offs. |
| Gate | Run the whole checklist. Decide. |
What can go wrong
Eight ways gates fail
| What goes wrong | How it happens | What it costs | Prevention |
|---|---|---|---|
| Gate theatre | Signatures with no evidence. | Problems reach production | Evidence for each check; spot-check by a reviewer |
| Gate at the very end | Nobody sees the checklist until the week before. | A rush, then a delay | Publish at stage 2; run pre-flight at stage 5 onwards |
| Checklist bloat | Every incident adds a check and none are removed. | People stop reading it | Review the spec each quarter; remove what never fails |
| One size for every project | The same 105 checks for a small report. | Resentment and skipped checks | 'Applies when' rules; tiers by risk |
| Waivers without expiry | 'We will do it after go-live.' | It never happens | Exceptions have an owner and an expiry |
| Automating what you do not understand | A check passes because it tests the wrong thing. | False confidence | Run each automated check against a known failure |
| Gates owned by nobody | No one can say stop. | A gate that never stops anything | Name the decider, and protect them |
| Only the build team ticks | Operations see it first at go-live. | Operations reject it late | Operations own their categories from stage 5 |
FAQ
Questions people ask
What is the difference between a checklist and checks as code?
A checklist is a document that people read and tick. Checks as code are written in a structured, versioned form, so they can be applied the same way every time, reported on, and partly automated. The thinking is the same. The discipline is higher.
Do all checks need to be automated?
No. Many are judgements. The point of 'as code' is that each check is stated precisely, has evidence, an owner and a severity, and lives with the project, whether a person or a script verifies it.
Why one Ops gate instead of many?
Operations meet the project once, at the end, and decide whether to take it. A single published gate means they know what they will test, and the project knows what to prepare, months ahead.
Is 105 checks too many?
Not as a menu. Each category has a few checks and an owner, and the 'applies when' rules remove many. Use the categories to see where you stand, and open the checks only where you are weak.
How does this connect to spec-driven development?
A spec says what must be true. Checks are derived from the spec, and run against evidence. When the spec changes, the checks change with it, and the gate report shows which parts of the spec are proven.
Go further