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
redline evidence [--json]
redline evidence record --source <where> [--seed-recall <0..1>] [--acted-on-rate <0..1>]
[--sample-size <n>] [--false-positives <n>]Flags
| Flag | Default | What it does |
|---|---|---|
--source <where> | required for record | Where the figures came from: a workflow run, a dashboard, a report. |
--seed-recall <0..1> | none | Share of seeded-corpus BLOCKERs the reviewer caught for this stack. A value outside 0..1 is refused. |
--acted-on-rate <0..1> | none | Share of findings acted on over the window. |
--sample-size <n> | 0 | Pull requests the rate is computed from. |
--false-positives <n> | none | Findings raised on the clean corpus. Any at all blocks a blocking rung. |
--json | off | The whole report as JSON on stdout. |
--help prints the same list from the CLI you have installed.
Examples
Nothing recorded yet
$ 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
$ npx redlinegate 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
$ yarn 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
$ bun run 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
$ pnpm redline evidence record --source <dashboard-url> --seed-recall 1 --acted-on-rate 0.72 --sample-size 40 --false-positives 0
$ npx redlinegate evidence record --source <dashboard-url> --seed-recall 1 --acted-on-rate 0.72 --sample-size 40 --false-positives 0
$ yarn redline evidence record --source <dashboard-url> --seed-recall 1 --acted-on-rate 0.72 --sample-size 40 --false-positives 0
$ bun run redline evidence record --source <dashboard-url> --seed-recall 1 --acted-on-rate 0.72 --sample-size 40 --false-positives 0
Exit codes
| Code | Meaning |
|---|---|
0 | Reported or recorded. Not eligible is an answer, not a failure. |
2 | The repository is not onboarded, a figure is not a number or out of range, or --source is missing. |
Related
- Enforcement rungs
- Telemetry and validation
- All commands and the shared exit codes
- Source:
cli/commands/evidence.ts