← All writing

· 4 min read

A gate that exists is not a gate that enforces

What it took to make a red check stop being advice, and what is blocked now.

When I wrote this, on November 13, the payments check had been red for weeks and could merge anyway. The branch required nothing, so the checks ran, gave an opinion, and nobody listened. Two days later payments is green, the typecheck runs on every pull request that is ready for review, and the branch requires three checks.

Why it was red

There were three causes and only one was code. The account had a billing problem and many runs died before the first step. The payments harness never generated the Prisma client, so it failed for the same reason every time. And the typecheck ran before the shared package was built, so it complained about modules that did not exist yet.

I fixed the build order on the 13th. The other two were not going to fix themselves with a retry: payments now generates the client before it typechecks, and the typecheck moved to its own workflow, with no path filter, covering every package in the workspace.

What is required now

Branch protection requires point-payments, db-artifact-parity and typecheck. No bypass for admins, no force-push, no branch deletion. I also wired the relay claim test into CI: it runs against a real Postgres on every pull request that touches that code, where before it skipped itself and a regression would have turned nothing red.

A gate that exists is not a gate that enforces

The same pipeline, two days apart. Switch between them and watch what each world does with the checks.

Running checks

What I did not solve

Reviews are still not required. A required check catches broken code, not unreviewed code; that needs someone reading the diff, and today nobody is obliged to.

Docker verification and the migration rehearsal still filter by path, so requiring them today would freeze every pull request that does not touch those paths. Removing that filter is the next piece of work and I have not done it. The typecheck does not run on every push to main either: it guards the merge, it does not re-check afterwards.

What still catches errors

What actually catches errors is still what it was: a ratchet that froze 148 failing suites and brought them to 66, an independent verifier that, according to the task notes, re-runs the writer's commands, and a reviewer on my own machine, outside the repo, that has flagged tests asserting nothing. None of them is a required check.

What it costs

With no bypass, a check broken by infrastructure stops everyone until someone fixes it. Including me. That is exactly what I asked for, and it is also a door that closes: the day it breaks for a reason that is not code, nobody merges.

Read the case study →