Shift left, shift right: one idea at both ends of the pipeline
“Shift left” means finding Problems before anything is built on top of them: static analysis on commit, tests written before code, contracts checked at build. “Shift right” means accepting that some things can only be learnt in production, and designing to learn them safely: canary and blue-green releases, feature flags, observability, service level objectives and error budgets, chaos experiments, and testing in production against real traffic. These are not opposites. They are the H-Model’s “push every change as high as it will go” (Verification and validation at every loop) said twice, once about the bottom of the H and once about the top.
Site reliability engineering (Google, 2016) gave shift right its vocabulary. An SLO states how reliable a service must be for its users; an error budget is the gap between that and perfection, and it is spent on change. When the budget is healthy, ship. When it is exhausted, stop shipping features and fix reliability. This is the Quality Confidence idea applied to operations: an explicit, measured balance between speed and stability instead of an argument. DORA’s 2025 report found teams adopting AI gaining throughput while instability rose; an error budget is exactly the instrument that stops that trade going unnoticed. The observability page covers the signals; the point here is that production is a level of done, and it has its own verification.
DevSecOps is shift left for security. The pipeline runs static application security testing (SAST) on code and a secrets scan on every commit; software composition analysis (SCA) on dependencies, with a software bill of materials (SBOM) produced for every release; dynamic application security testing (DAST) against an integrated stack; and policy as code against the infrastructure. These are fitness functions for security, and like any fitness function they are written once and run on every change. A security review that happens at the end, by a separate team, against a design document, is assurance of the paperwork again. Secure by Design asks for the pipeline version.
Contract testing is the integration answer to teams that cannot all run each other’s systems. Each consumer states what it needs from a provider’s interface as an executable contract; the provider runs those contracts in its own build. Combined with the versioned, backwards-compatible interfaces described in Releases and integration, it lets Product Family integration be verified continuously rather than at a big-bang integration test that always slips.
Related
- Observability: the production signals that shift right depends on
- Fitness functions: executable checks written once and run on every change
- Releases and integration: versioned, backwards-compatible interfaces