Introduction
Redline is one written engineering standard for your team, checked in three places: by your AI assistant while it writes the code, on your machine before you push, and by a merge gate on every pull request. It also counts which rules people act on, so you can tell the rules that catch bugs from the ones that only make noise.
Why it exists
AI assistants write more of your code every quarter. The time people have to review that code did not grow with them.
Your team already has a bar: no secrets in code, validate what comes in from outside, no as unknown as to make the compiler stop complaining. Today that bar is enforced by whichever tool happens to look at the diff, or by nobody. Redline writes the bar down once, versions it like code, and holds every assistant and every reviewer to the same version.
What it looks like
A pull request adds this. It compiles, and the tests pass:
// @ts-ignore
return JSON.parse(raw) as unknown as UserRedline reports two findings, on your machine and again on the pull request:
Redline/BLOCKER [core/type-checker-suppression]: a type-checker suppression needs an inline explanation AND a ticket reference on the same line. Redline/BLOCKER [core/unsafe-assertion]: a double assertion overrides the type checker with no stated reason.
Each finding names its severity and a permanent rule id, so you can look up why the rule exists and the organisation can count whether anyone acted on it. A second example: a pull request that adds [email protected], a version with known high-severity vulnerabilities, fails the gate on the day you onboard.
What it is not
- Not a linter. A linter checks syntax. Many of Redline's rules are judgement a linter cannot express, such as "no customer data in error messages".
- Not a reviewer. People and the AI tools you already use still review. Redline decides what reviewed means, and holds every reviewer to the same definition.
- Not a delivery platform. Redline governs a change while it is still a diff. It does not build, deploy or roll back anything, and its data ends at merge.
There are no servers, no SaaS and no per-seat fee beyond the AI licences you already pay for. Redline works on GitHub or Azure DevOps: it detects which from your git remote, and the same commands work on both. Findings can come from Redline's own checker, your AI reviewer or another tool: Redline normalises whoever found what, and measures whether anyone acted.
Words this site uses
| Standard | The written rules: core rules that apply everywhere, plus one file per stack, versioned. Every rule has a permanent id, such as core/unsafe-assertion. See Standards. |
| Stack | A language or framework with its own rules, such as typescript or react. |
| Profile | Which stacks apply to a repository, such as javascript-typescript. A file only meets the rules of the stacks it belongs to. See Profiles. |
| Finding | One broken rule, written as Redline/<SEVERITY> [<rule-id>]: <problem>. Severity is BLOCKER, HIGH or SUGGESTION. See The output contract. |
| Deterministic rule | A rule a program decides with no model, such as "a @ts-ignore needs a ticket reference". It gives the same answer every time, so it runs in redline review and in the gate. See Deterministic rules. |
| Gate | The merge gate: the redline-gate / gate check on every pull request. It combines several jobs into one pass or fail. See The merge gate. |
| Security floor | The two gate jobs that fail the gate at every rung, with no way to waive them: dependency review and the secret scan. |
| Process checks | The other gate jobs: the pull request checklist, the ADR check and the deterministic rules. The rung decides whether they fail the gate. |
| Rung | How strict the gate is: observe (report only), block-blocker or block-high. Every repository starts at observe, and climbs on evidence. See Enforcement ladder. |
| Evidence | Recorded measurements, such as how many planted defects the reviewer caught, that justify moving a repository to a stricter rung. |
| Required gate | A separate switch from the rung: when the gate is a required check, a red gate disables the merge button. A new onboarding is not required. |
| Exemption | A recorded reason, with an end date, for merging past a failing process check. It never covers the security floor. See Exemptions. |
| ADR | An architecture decision record: a short file in docs/adr/ that explains one decision. The gate asks for one on pull requests over 300 changed lines. |
| Vendored gate | A copy of the gate workflow kept inside the repository, for a personal account or an organisation that does not host a shared gate yet. |
| Seed | A defect planted on purpose in the test corpus, marked with the rule that must catch it. Seeds are how a reviewer is scored. See Seeds. |
| Estate | Every repository an organisation has onboarded. redline sync and redline metrics work across it. |
How the pieces fit
People edit the standard in one place. Redline renders it into each repository and checks that it stays current. The numbers it collects decide which rules stay.
standards/ — humans edit one place, versioned + changelogged ↓ the CLI's renderer 4 vendor formats — Copilot · AGENTS.md (Codex) · Claude · Cursor ↓ redline init (one PR, per repo) · redline sync (to the whole estate) every onboarded repo — gated on merge, at the rung that repo has earned ↓ redline verify (locally, or across the estate weekly) drift caught early — policy, security floor, stale artifacts, pending admin work ↓ redline metrics (nightly) what was acted on — and what it cost: the number that decides which rules earn their place
What makes it different
- Findings you can count. Every finding starts with
Redline/<SEVERITY> [<rule-id>]:, so recall, precision and noise are measured, not guessed. - Advisory first. A repository climbs the enforcement ladder on recorded evidence: planted defects caught, false positives, findings acted on. It can step back down without anyone's permission.
- It refuses rather than guesses. A check that could not run reports
??, neverok. A figure it cannot measure is shown as missing, with the reason, never as zero. - Noise control is a rule. Every standard has a "what NOT to flag" section, and the clean-code corpus allows zero false positives.
- Vendor-neutral. The rules, the gate and the telemetry don't care which AI wrote a comment. The same seeded input scores Copilot, Claude or Codex with one command.
- Works without admin rights. An engineer who cannot change repository settings still gets every file-level piece. What needs an administrator is recorded in
.redline.json, not silently skipped.
Where to go next
- Learn Redline: take a small service from no Redline to a gate that blocks, one pull request per step. Start here if Redline is new to you.
- Adopting Redline: what happens in week one and month two, and when it is reasonable to start blocking.
- The output contract: how to read a finding, and what each severity asks of you.
- Standards: browse and copy the full rule set.