Repository navigation
Description
Phase 4 of the boris-routines-adoption plan. Depends on #2680; blocks the first new detector.
Written from what the pilot observed. Must land before the second detector adopts the convention.
What this closes
Acceptance criterion 2 of the plan's Brief: "Every detector emits machine-computed severity, not prose routed through an LLM crosswalk. No crosswalk row exists for a deterministic surface today; that is contract work."
The trap: plugins/review/context/severity.md:7 defines tiers by tests, not examples — "The test decides the tier". CRITICAL is "you can name a concrete input, caller, or subsequent otherwise-correct change that the defect makes produce a wrong result". A bare threshold cannot evaluate that predicate, so a threshold-to-tier table without the test is nominal closure, not real.
Work items
- Rule-id to severity-tier crosswalk, with the test each mapping asserts. A rule whose tier cannot be argued from the test is not admitted.
- Rule/threshold vocabulary: every finding names the rule id and the threshold that fired, so severity is auditable without re-reading the code.
- Bind suppression to
docs/conventions/finding-suppression/— including its derivedfinding_id— rather than inventing a second suppression surface. - Cite
REVIEW.mdas the consumer-precedence override overseverity.md:3; the plugin file is the fallback baseline. - Record the gating consequence: a finding is auto-appliable only when single-file, high-confidence, and not architectural-judgment-shaped (
fix-pass-mode.md:58). Layering and abstraction detectors are therefore designed to inform a human, not to feed an autonomous apply loop — the contract's intent, not a limitation to engineer around. - Decide the shared-emitter question. Emitting a conforming file requires resolving
memory_dirwith its fallback ladder, computing<branch-slug>, running the self-ignore guard, relativizing paths, escaping cells, and formatting a colon-free UTC timestamp. feat(mutation-testing): persist survivors as a conforming findings file behind a flag #2680 is the second implementation; the detector phase would be the third. Either declare a shared-source cluster inscripts/cross-plugin-source-registry.txt(drift-checked byscripts/check-cross-plugin-source-drift.sh, registered atPLUGIN-PHILOSOPHY.md:479), or record why three implementations are accepted and how drift is caught.
Sanity checks
-
grep -c "finding-suppression" docs/conventions/detector-findings/README.md>= 1 andgrep -c "REVIEW.md" .../README.md>= 1. - No crosswalk row has an empty test cell —
awk -F'|' '/^\| rule-/ { gsub(/ /,"",$4); if ($4=="") exit 1 }' docs/conventions/detector-findings/README.mdexits 0, and the count of^| rule-rows equals the rule count. (A baregrep -c "^| .* | .* |"also matches header and separator rows, so it can never equal the rule count.) -
scripts/check-cross-plugin-source-drift.shexits 0, whichever branch of the shared-emitter decision was taken.
Activity
docs: generalize the maintenance-routine pattern — ADR 0010, phase is…
kyle-sexton commentedon Aug 15, 2026
Empirical input for this phase — the scope fence has no disposition for a finding whose remediation is elsewhere
Found by running the #2680 pilot's two-producer merge for real, not by reading the contract. Recording
it here because this issue is explicitly "written from what the pilot observed", and this is the
sharpest thing the pilot observed.
The situation
A
mutation-testing:auditsurvivor finding is located at the production script that the survivingmutant lives in. Its remediation is in the test file — you fix a survivor by strengthening the
test, not by editing the code under test. So
Locationand the remediation site are different files,by the nature of the detector.
Why that is unresolvable under the current consumer contract
Three facts compose into a dead end:
fix-pass-mode.mdStep 4 fences each fix to its finding'sLocation— "touch only that filefor that finding".
Locationnames the production script.Rank,Tier,Confidence,Location,Surface(s),Finding,Action) cannot express "detected here, fixthere". The fence structurally cannot read the
Actioncell.low-confidence, needs-architectural-judgment, and high-blast-radius. The pilot's three rows are
high-confidence, mechanically contained, and low blast radius — none of them fire. So the clause
does not authorize surfacing on fence-conflict grounds.
A fixer executing Step 4 is therefore left choosing between breaching its own fence and
inventing a justification to surface. Neither is a disposition the contract offers.
Naming the remediation site in the
Actionprose — which the pilot tried — does not fix this. Itconverts an ambiguity into an explicit contradiction: the cell now instructs the fixer, in prose, to
violate its governing rule. Verified that the named targets exist and are not phantom paths
(
scripts/check-changelog-parity.test.sh,scripts/check-skill-leaf-names.test.sh,scripts/check-docs-only.test.sh), so this is not a quality problem with the producer's output.Why it belongs to this phase rather than to #2680 or #2690
The remedy is in the consumer contract, not in producer prose — either a remediation-target
column, or a rule that
Locationnames the file to be edited with the detection site recordedelsewhere. Both are contract changes with fleet-wide blast radius, and both want the crosswalk work
this issue already owns. #2680 should not invent a column; #2690 is closing on the coexistence
defect it was opened for.
This also generalizes past mutation testing. Any detector whose finding site and fix site differ hits
it — a coverage gap, a missing test for a changed function, a contract violation detected at the
caller but fixed at the callee. The can't-fail test detector in #2684 is the next one to land on it.
Related, from the same pilot run
both files with per-file
tier:, and emits theSurfaces (union)line. feat(review): merge findings across producers and mark consumption explicitly (ADR 0010) #2678's gate is proven insitu rather than by fixture.
default-mode.mdand omittable infix-pass-mode.mdStep 1 — is routed to feat(review): merge findings across producers and mark consumption explicitly #2690, which owns both files.date:, different content) wouldbe silently subtracted under name-based matching. feat(review): merge findings across producers and mark consumption explicitly #2690's content-digest identity closes this; the
pilot was testing an older base.
kyle-sexton commentedon Aug 15, 2026
Second empirical input from the pilot — an equivalence disposition has nowhere structured to live
Also found by running #2680's pilot for real, and it is adjacent to the crosswalk this issue owns.
What happened
The pilot's mutation run produced two survivors. One was productive (a genuine oracle gap — the
test suite never exercises the argument parser, so the mutant survives and the proposed test kills
it). The other was judged equivalent with cited differential evidence (
break-removal from aside-effect-free match loop: eight differential cases identical on stdout, exit and stderr;
$prefixdead after the loop; no iteration counter;matched=1idempotent).The equivalent one correctly emits no
## Findingsrow — an equivalent mutant is not a defect,and a row would route it into
fix-pass-mode.mdStep 4 for a remediation that must not be written.So the disposition was recorded in
## Surfacesprose instead.The gap
"Equivalent" has no structured field anywhere in the findings shape. The 7-column table has
Rank,Tier,Confidence,Location,Surface(s),Finding,Action— none of which can carry"examined, judged not-a-defect, here is the evidence". So the disposition lives in free prose in a
reconciliation line, with three consequences:
evidence, which is exactly the discipline the pilot imposed on itself voluntarily
(equivalence-without-evidence stays unclassified and emits a row). A rule nothing can check is
a rule the next producer may quietly drop.
## Surfaces. The union across producers already carries ran/returned-nothingper surface; folding per-mutant equivalence rationales into it makes the plan header long and
mixes two different kinds of statement.
precision over time, and it currently cannot be extracted from a conforming file.
Why it belongs to this phase
This issue already owns the rule/threshold vocabulary — "every finding names the rule id and the
threshold that fired, so severity is auditable without re-reading the code". A disposition
vocabulary is the same shape of problem one step along: the crosswalk says how a rule maps to a
tier, and this asks how a non-finding is recorded conformantly.
It also generalizes past mutation testing. Any detector with an examined-but-not-reportable outcome
hits it — a suppressed finding, a rule that fired below threshold, a candidate the detector
deliberately declined.
docs/conventions/finding-suppression/(which this issue already binds) isthe nearest existing surface and may be where the answer lives rather than in a new field.
Deliberately not fixed in the pilot
#2680 was told not to invent a field. Its
## Surfacesplacement was independently reviewed andjudged correct given the current shape — the section's own clause is "Returned no result: [...]
(with cause when known)", and no consumer mishandles it (the fix action derives its finding count
from parsed rows, never from a survivor count). So this is a shape limitation surfaced by the pilot,
not a defect in the pilot.
Related
docs/conventions/finding-suppression/— candidate home for the answerdocs(conventions): add the detector-findings owner doc (#2692)
docs(conventions): qualify rule ids, ground the non-emitting rows, an…
docs(conventions): fix the crosswalk's determinism claim at its premise
fix(scripts): accept a correctly escaped pipe in a crosswalk cell
docs(conventions): close the arid boundary the fail-safe criterion le…
docs(mutation-testing): propagate the arid evidence bar through the p…
fix(mutation-testing): move the withholding evidence bar to classific…
docs(conventions): bind the fall-through to an outcome, not a phase
fix(mutation-testing): sweep the statements upstream of the moved evi…
feat(mutation-testing): persist survivors as a conforming findings fi…
docs(conventions): harden detector-findings with the rule-id to sever…
fix(mutation-testing): grade the node-kind bar and stop stating aridi…
fix(mutation-testing): restore four guard-conditioning statements a m…
fix(mutation-testing): grade the node-kind bar and stop stating aridi…
fix(topic-docs): the self-ignore guard does not run where no checkout…