redline evidence

Show the measurement behind this repository's rung, and record a new one.

A repository starts at the observe rung, where the gate reports findings but blocks only on the security floor. To move up, it needs recorded evidence that the reviewer is accurate. evidence shows what is recorded and what the next rung asks for. evidence record writes a new measurement into .redline.json, with its source. Once eligible, raise the rung with redline init --rung.

Where it runs: Inside the product repository, through the copy pinned in its devDependencies. It reads and writes the checkout only. The figures themselves come from the metrics dashboard.

Synopsis

synopsis
redline evidence [--json]
redline evidence record --source <where> [--seed-recall <0..1>] [--acted-on-rate <0..1>]
                        [--sample-size <n>] [--false-positives <n>]

Flags

FlagDefaultWhat it does
--source <where>required for recordWhere the figures came from: a workflow run, a dashboard, a report.
--seed-recall <0..1>noneShare of seeded-corpus BLOCKERs the reviewer caught for this stack. A value outside 0..1 is refused.
--acted-on-rate <0..1>noneShare of findings acted on over the window.
--sample-size <n>0Pull requests the rate is computed from.
--false-positives <n>noneFindings raised on the clean corpus. Any at all blocks a blocking rung.
--jsonoffThe whole report as JSON on stdout.

--help prints the same list from the CLI you have installed.

Examples

Nothing recorded yet

terminal
$ pnpm redline evidence

rung         observe
evidence     none recorded — nothing can raise the rung until something does

not yet eligible for block-blocker:
  - 20 reviewed pull requests are needed and 0 have been recorded — a perfect rate over a handful is a coincidence, not evidence
  - the seeded corpus has never been scored for this stack, so there is no evidence the reviewer catches known defects at all
  - the clean corpus has never been scored, so nothing shows the reviewer stays quiet on correct code
  - too few findings have fired to compute an acted-on rate

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

Record a measurement

terminal
$ pnpm redline evidence record --source <dashboard-url> --seed-recall 1 --acted-on-rate 0.72 --sample-size 40 --false-positives 0

Exit codes

CodeMeaning
0Reported or recorded. Not eligible is an answer, not a failure.
2The repository is not onboarded, a figure is not a number or out of range, or --source is missing.