When we talk about the software factory we talk about “validation”, and how the role of engineers is now “designing validation systems” – but what does that actually mean?
Validation is not a new part of the job of a Software Engineer. We’ve always done it, and we’ve always automated it. I think that fact is why AI has come faster for software than for other roles (although I too enjoy the drama from legal validation happening in court).
For small teams, validation means building the kind of systems that used to exist only at large orgs with a developer tooling team: multilayered systems of validation with various forms of checks and escalations. This also explains why retrofitting the software factory is so much more challenging than building it from scratch, especially for medium sized teams – aspects of this were too expensive or not worth it before, and are harder to build in now.
Here’s what validation looks like for our two person software factory. This might seem absurd – our CI bill is consistently higher than our AI bill – but we reliably ship >30 PRs a day around the clock, ~2 PRs/hour at max capacity. This is the baseline that makes validation a non-issue. Which raises the more interesting question: what does the job become?

I’ve broken this up into:
- Infrastructure – the underlying pieces that everything else builds on.
- Per-PR checks – what is required for a PR to be accepted into the factory.
- Nightly checks – checks that are particularly expensive or not needed on every PR, that run overnight.
- Epic validation – how the bigger pieces of work get validated.
- Release checks – what is required before software leaves the factory and meets humans.
Infrastructure
- Everything used in prod needs a staging version – db, auth, payments, s3…
- Every PR can have a testable deploy.
- Every merge creates a new version of staging.
- Backups + restore. Aside from having a backup (critically important) this is also useful to validate the db before changes.
- A full design system, for consistency of UX. The guards (below) enforce that consistency.
- Monitoring:
- Sentry for errors and uptime.
- PostHog for analytics and flags.
- All failures alert. We over-alert and then tune down, which is viable at our size.
Per-PR checks
- The PR has to explain itself: title matches the commit, body links the issue it closes.
- Every PR has to prove its test catches the bug: the orchestrator requires it to break the fix, show a named test fails, restore, and put that in the PR body.
- The merge queue re-checks the mutation and any other claims the PR makes, and looks for conflicts across PRs.
- Both the orchestrator and the merge queue dispatch review agents, with additional reviews as useful – e.g. adversarial security review, design review.
- Database changes need an owner’s approval.
- The full suite of validation (run by every PR) includes:
- Standard: Lint, docker build of the API.
- Code coverage: 70% on changed lines required.
- API: integration tests, not mocks. Most API tests go request → handler → database and back. CI starts a real Postgres and applies the real schema; ~900 test files run against it (each test in its own transaction), and ~730 drive the handlers over real HTTP.
- Web unit tests: ~800 test files (Vitest), plus a timezone-pinned run, because date bugs hide in the runner’s timezone.
- Components: ~600 Storybook stories, each rendered in a real browser as a test, at desktop and phone width. Accessibility (axe) is set to fail the build, not warn.
- End-to-end (browser): ~80 Playwright flow specs against a production build of the PR, whenever the PR touches the web app.
- Migrations: proven against a mirror of the schema. Destructive ones are checked against the binary currently deployed on staging, so a migration can’t break the code that’s still running.
- Repo-specific guards: dozens of rules that each started as a bug or a near miss, with the issue number in the step name. E.g: every email goes through one send path. On the web side ~20 more, including those to ensure the design system is used appropriately: mobile classes, card surfaces, a duplication ratchet, a test-file-size ratchet.
- The guards test themselves: most guard scripts have a “self-test” step that proves the guard can fail before it’s trusted to pass.
Nightly checks
- The slow things: a race detector, full-stack end-to-end runs (web + API + database together).
- Dependencies: vulnerability scans.
- Performance tests.
- Evals for AI features.
- Drift: does prod’s live schema still match what the code expects?
- Smoke tests against the deployed app.
Epic validation
- Start with a spec and slices – PRs are evaluated against matching the spec and deviations must be justified.
- Built behind a feature flag, validated on staging against a written test plan.
- Rollout plan factors in risk / scope.
Release checks
- The release pins an exact commit.
- Visual diffs (Chromatic) on the release PR: every story snapshotted against the last release, and a human accepts the changes.
- The nightly suite and the staging payments suite (real checkouts against Stripe in test mode) are re-run on the pinned commit and must be green before the cut.
- Guards that block a release if it would drop or rename a table or column that live prod code still reads, or if the code and prod’s schema don’t match in either direction.
- Migrations: rehearse on a restored copy of prod, dry-run on prod, then apply. Before applying, read-only SQL checks (~40, each tested in CI on every PR) count the rows a migration will touch, and a human reviews the counts.
- After deploy:
- Prove the new version is live. Poll until the version is the commit you pinned.
- Schema check on prod, sweep the logs for errors over the deploy window.
- A human signs in and clicks through.
What the job becomes
I opened this saying the list might seem absurd. These checks are part good practice, part scar tissue: when something failed, we hunted down the bug class and how it got through, and added a check so it couldn’t happen again.
When I was running a larger team, incidents and everything around them – time to detect, time to resolution, how we found out about them, how they happened – were one of my primary metrics for team functioning. This has not changed.

Between April and November, PRs merged went from 31 a month to 931. Hotfixes didn’t scale with them. August was our platform launch, when theoretical validation met actual users and we found our blindspots: 7 of that month’s 8 hotfixes were defects. In November, only 1 of 4 was (an analytics issue); the other 3 were urgent business changes.
I think there’s this idea that AI can fix things so quickly it’s okay to break them. I want to push back on that both as a leader – why not prevent what you can? And also as a human who uses software and is annoyed when it doesn’t work and there’s no way to report it, and no-one seems to care.
Validation at this level is the baseline – it makes output a given. So the work of software engineers moves to the “epics”: the bigger things that perhaps require changes to the factory, or more nuanced validation. That’s why “Epic validation” is the least fleshed out section: it’s the newest, and it’s where the work is now.

The factory handles the small stuff. The big stuff keeps piling up: 76 large tasks and epics open at the end of November, up from 35 in August, while we resolve 14-17 a month. This is the next bottleneck to figure out.

go deeper
Navigating the AI Shift
From anxious and reactive to genuinely capable. Build real fluency with AI — without the hype.
Leave a Reply