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.
| Rung | A failing process check | Deterministic policy fails on |
|---|---|---|
observe (the default) | shows red on its own line; the gate still passes, with a warning | a BLOCKER |
block-blocker | fails the gate | a BLOCKER |
block-high | fails the gate | a 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) | |
|---|---|---|
observe | nothing stops a merge; red is a signal only | only the security floor stops a merge |
block-blocker / block-high | the gate goes red on a finding, and the merge button still works | the 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:
| Figure | What it answers | block-blocker | block-high |
|---|---|---|---|
| Sample size | How many reviewed pull requests the figures come from. A perfect rate over three is a coincidence. | at least 20 | at least 50 |
| Acted-on rate | Do people agree with the findings? The share whose review thread was resolved. See Telemetry. | at least 60% | at least 80% |
| Seed BLOCKER recall | Does the reviewer catch real defects? The share of BLOCKERs planted in the seeded corpus that it found. | 100% | 100% |
| False positives | Does it stay quiet on correct code? Findings on the corpus's clean files. | 0 | 0 |
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:
$ 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
$ npx redlinegate 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
$ yarn 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
$ bun run 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:
$ 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
$ npx redlinegate 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
$ yarn 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
$ bun run 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
initstill runs. - One rung at a time.
observecannot jump toblock-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.
$ pnpm redline init --rung observe
$ npx redlinegate init --rung observe
$ yarn redline init --rung observe
$ bun run 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.
Related
redline evidence: every flag.- Exemptions: waiving one failing check at a blocking rung.
- Telemetry & value: where the figures come from.