Enforcement ladder

A repository starts by measuring its findings, and moves up to blocking merges only when recorded evidence shows those findings are right.

Why a ladder

Every reviewer, model or checker, is sometimes wrong. A finding on correct code is a false positive. When findings only report, a false positive costs a minute to read and dismiss. When findings block, it stops a correct change from merging. After a few of those, the team stops trusting the gate and works around it.

Blocking everywhere on day one turns every false positive into a blocked merge. Never blocking means no repository is actually held to the standard. The ladder sits between the two: each repository moves to blocking when its own evidence says its findings are worth blocking on.

The rungs

A rung is a repository's enforcement level. It decides which findings turn the gate red.

RungA failing process checkDeterministic policy fails on
observe (the default)shows red on its own line; the gate still passes, with a warninga BLOCKER
block-blockerfails the gatea BLOCKER
block-highfails the gatea BLOCKER or a HIGH

observe is not “off”. Findings are still produced, commented and recorded; they just do not stop a merge. The rung is recorded in .redline.json and in the gate's caller workflow, and the local-agent hook reads it the same way.

The rung is not the blocking switch

Two settings, easy to confuse. The rung decides whether the gate turns red. pnpm redline init --blocking decides whether a red gate stops the merge, by making redline-gate / gate a required check. Together:

Gate not required (default)Gate required (--blocking)
observenothing stops a merge; red is a signal onlyonly the security floor stops a merge
block-blocker / block-highthe gate goes red on a finding, and the merge button still worksthe security floor, or a failing process check with no exemption, stops a merge

Learn step 07 turns on blocking.

The evidence

Moving up a rung needs recorded evidence that the reviewer is right. There are four figures:

FigureWhat it answersblock-blockerblock-high
Sample sizeHow many reviewed pull requests the figures come from. A perfect rate over three is a coincidence.at least 20at least 50
Acted-on rateDo people agree with the findings? The share whose review thread was resolved. See Telemetry.at least 60%at least 80%
Seed BLOCKER recallDoes the reviewer catch real defects? The share of BLOCKERs planted in the seeded corpus that it found.100%100%
False positivesDoes it stay quiet on correct code? Findings on the corpus's clean files.00

block-high asks for more agreement because blocking on a HIGH means blocking on judgement calls. Recall and false positives are absolute at both rungs: a reviewer that misses known defects, or flags correct code, must not be given a veto.

Recording evidence

The figures come from the metrics plane, which sees review outcomes across the organisation over time; see Telemetry & value. The CLI records them in .redline.json, with where they came from, so the record is reviewed in a pull request like any other change:

terminal
$ pnpm redline evidence record --source "dashboard, last 30 days; seed score of PR #4" --sample-size 34 --acted-on-rate 0.72 --seed-recall 0.8 --false-positives 0

recorded.

rung         observe
seed recall  80%
acted on     72%
sample       34 pull request(s)
false pos.   0
recorded     <today> (0 day(s) ago) — dashboard, last 30 days; seed score of PR #4

not yet eligible for block-blocker:
  - seed BLOCKER recall is 80% and 100% is required — a reviewer that misses known defects must not be given a veto

what block-blocker asks for:
  sample size      >= 20 reviewed pull requests
  seed recall      >= 100%
  acted-on rate    >= 60%
  false positives  <= 0
  measured within  90 days

Rates are fractions from 0 to 1. --source is required: a figure with no source is an assertion, not evidence. pnpm redline evidence prints the same report at any time without recording anything.

Promotion

A repository promotes itself, with no approval from anyone, once its recorded evidence meets the bar:

terminal
$ pnpm redline init --rung block-blocker

  ▲ enforcement stays at observe — cannot move to block-blocker:
  ▲ seed BLOCKER recall is 80% and 100% is required — a reviewer that misses
    known defects must not be given a veto
  • A refusal names what is missing, as above, and the rest of init still runs.
  • One rung at a time. observe cannot jump to block-high: the rung it would skip is where the evidence for the next one is gathered.
  • Evidence expires after 90 days. Rules, reviewer and codebase have all moved since; record a fresh measurement.

Learn step 09 records real evidence, is refused, and tries a blocking rung on a practice branch.

Demotion

Moving down never needs evidence or approval. A team whose gate is misfiring at 3am must be able to step back straight away. A ladder that made that hard would get switched off entirely.

terminal
$ pnpm redline init --rung observe

What the ladder does not govern

The security floor. Dependency review and the secret scan fail the gate at every rung, observe included, and no exemption waives them. The ladder decides how strictly a repository's own standards are enforced, never whether the organisation's security minimum applies. See The merge gate.

Reading it across the organisation

The dashboard's Enforcing tile shows the share of onboarded repositories on a blocking rung. That is the question the ladder exists to answer, and no single repository can show it.