Adopting Redline
A gate that blocks before anyone trusts it gets routed around. A gate that never blocks protects nothing. This page is the path between the two: what happens in order, and when to start blocking merges. The short answer: later than you think, and on evidence rather than a date.
Redline is deliberately unenforcing on day one. Every stage below ends where the evidence for the next one is gathered — the same rule the enforcement ladder applies mechanically, said in prose. For one repository, start with Onboard a repository; this page is about a team, and then an estate.
Day one — One repository, nothing blocked
What you do
- Run redline init on a single repository — ideally one with real traffic, not a sandbox.
- Merge the onboarding pull request.
- Leave the rung at observe.
What you get
- The standard rendered into whatever AI tools that repository already uses.
- The merge gate reporting on every pull request, blocking nothing.
- The security floor on and blocking: dependency review and the secret scan.
Resist promoting here. You have no evidence yet, and a gate that blocks before anyone trusts it is a gate someone routes around.
Week one — Find out whether the findings are any good
What you do
- Read the findings on real pull requests. Are they right? Are they worth the interruption?
- Score the reviewer against the seeded corpus on a pilot repository with redline metrics score-seeds.
- Raise anything that fires constantly on code you have deliberately decided to allow.
What you get
- Seed recall and false-positive numbers — evidence, rather than an impression.
- A sense of which rules earn their place in your codebase specifically.
A rule that fires constantly and is always dismissed is a rule to cut, not a team to train. That conversation is what rule ids exist for.
Week two to four — Onboard the rest, still watching
What you do
- Onboard the repositories that matter. redline init is idempotent, so batching is safe.
- Let the nightly redline registry run in the source repository add them to the register.
- Schedule redline metrics collect in your metrics repository, so the acted-on rate starts accumulating.
What you get
- A derived register, and a coverage figure that is instrumented-against-onboarded rather than a raw count.
- The weekly drift sweep, so a repository whose gate quietly stops publishing gets noticed.
- A pull request on every registered repository whenever the standard changes: the platform team runs redline sync from the Redline source repository. A repository outside the register updates itself by bumping redlinegate and re-running init.
Month two — Start blocking, where the evidence supports it
What you do
- Promote the repositories whose numbers clear the bar to block-blocker.
- Leave the rest where they are. The ladder refuses a promotion the evidence does not support, and says which number is short.
What you get
- A guarantee you can actually state about a named set of repositories.
- A dashboard figure for how much of the estate is enforcing rather than watching.
Demotion never needs evidence. If a gate misfires, step it back the same day and investigate afterwards — that is what makes promoting safe.
Ongoing — Price it, and tune it
What you do
- Build the cost page with redline metrics roi before a budget conversation.
- Read the tuning queue: rules that fire often and are acted on rarely.
- Ingest whatever scanners the estate already runs, so the picture is whole.
What you get
- Cost per BLOCKER caught — a figure no cost tool and no DORA tool can compute.
- One severity contract across LLM review and static analysis.
Is any of it being used?
When: after a few weeks of merged pull requests. Who: the platform team, not a repository owner — the commands behind this act on an organisation and are meaningless in a product repo (Who runs what).
The hero number is findings acted on, and beside it the dashboard carries the rule tuning queue — the standard's own to-do list, and the thing to work through before anyone writes a new rule. Telemetry & validation has the tiles, what each one reads like when it is healthy, and the weekly canary that proves the reviewer is still catching things.
The quiet failure: a dashboard that looks calm because nothing reached it. A figure Redline could not compute says why instead of defaulting to zero — a measurement plane that fills gaps with zeros reports a stalled collector as a quiet week.
The end state — earning the right to block
Success is not a blocking gate on day one. A repository climbs the enforcement ladder on recorded evidence — seed recall, false positives and acted-on rate, the same figures the dashboard reads — and the thresholds are deliberately hard because a reviewer that flags correct code cannot be given a veto. Promotion is refused without the evidence and names the figure that is short; demotion never needs any. Until the evidence exists, a repository is legitimately at observe.
Which command answers which question
The first four run in a product repository, through its own pinned copy of the CLI. The rest act on the estate and run where the table says — registry from a checkout of the Redline source repository.
| Question | Command | Where |
|---|---|---|
| What is installed here? | redline status | your repo, no credential |
| Does the host agree? | redline verify | your repo |
| What does this finding mean? | redline explain <id> | anywhere |
| Would this diff pass? | redline review | your repo, before you push |
| Who is onboarded? | redline registry | source repo, nightly |
| What happened to the findings? | redline metrics collect | metrics repo, on a schedule |
| Is review being acted on? | redline metrics dashboard | metrics repo |
| Does it still catch defects? | redline metrics score-seeds | against a pull request carrying the corpus |
| What did it cost? | redline metrics roi | metrics repo |
Two things to decide early
- Who owns the standard. A rule change is a production change: it reaches every onboarded repository as a pull request. Somebody has to be able to say yes to one.
- Who can turn the gate off. Stepping down to
observeneeds no evidence: it isredline init --rung observe, merged as a pull request. Before any repository blocks, write down who can approve that pull request out of hours. A control nobody can release is one people work around.
What does not change
No repository is asked to change which scanners it runs, which assistant it uses, or how it deploys. Redline governs the change while it is still a diff — see what it is and is not.