spec(contributor-scan): close the deferred decisions 4.1 and 4.2 on the maintainer's record

Task 4.1 (Req 7.1), decided 2026-11-24: "C memory-safety beyond string-function misuse
is out of scope. Record that, and say so per corpus slice." The decision is recorded in
the spec's amendment record, the steering overview and roadmap, and the user docs; the
pair corpus README states it per slice (vfc, sast, local). The maintainer stated no
reason, so the records name the evidence that was on record and label it as such: the
memory family models calls, not arithmetic; no execution tier is adopted, since
Rung.EXECUTION_CONFIRMED has no producer; of the 176 vfc pairs none is labelled as going
through a string API the family models (129 carry no sink label, counted 2026-11-24).

With it, task 5.3 (the C harvest of Req 9.2) and task 2.13 are withdrawn, and task 2.15
closes on its recorded-decision branch. Req 9.2 is left unmet and its text stands. The
entailment at contrib/examples/iccfrompng.c:124, libpng's last one by task 2.13's
account, now has nothing that removes it; that is recorded as to be re-measured.

Task 4.2 (Req 7.2), decided 2026-11-24: "Keep both, record why. No output change for
JSON, SARIF or MCP consumers. Record the reason in the spec and docs, and revisit when
detection-core revises its consumer contract." rung is the model ladder's verdict;
evidence_level is the pattern and overlay pipeline's vocabulary, which the overlay raises
only to static_corroboration. Folding one into the other would present a text match as a
model verdict or change the JSON, SARIF and MCP output. No code changes.

Reviewed in four adversarial rounds; the fourth approved both records.
This commit is contained in:
Marius Ciepluch
2026-11-24 14:17:30 +01:00
parent 89d08e01d3
commit ab2f55d8ae
9 changed files with 140 additions and 16 deletions
+19
View File
@@ -161,6 +161,13 @@ A frontend is the Joern parser that turns one language into a CPG.
| Java | `javasrc2cpg` | |
| C, C++ | `c2cpg` | Adds `c_bounds_arithmetic_unmodeled`; the `memory` family models calls, not arithmetic (`ruleset/families.toml:91`). |
C memory-safety beyond string-function misuse is out of scope (maintainer decision, 2026-11-24;
contributor-scan task 4.1). The `memory` family stays scoped to the string and format APIs it
names, and makes no claim about arithmetic overflows: an index, a pointer offset or a computed
`memcpy` size. No execution tier is adopted to reach them. The labels on record, counted on
2026-11-24: of the 176 pairs in the real-world `vfc` slice, none is labelled as going through a
string API the family models, and 129 carry no sink label.
Joern is pinned at `v4.0.625` in the image (`Dockerfile:14`, `docker-compose.yml:15`,
`ops/joern.py`), on `eclipse-temurin:21-jre-noble` (`Dockerfile:12`). The pin stayed there after
the graph fix. That decision is recorded in `2026-09-20-php-runtime-after-graph-fix.json`
@@ -727,3 +734,15 @@ The three representations are kept separate on purpose. A finding carries the ru
degradations of the representation that produced it. So a reader can tell a flow the graph
entailed from a statement a regex matched. A reader can also tell "did not look" from "looked
and found nothing".
`evidence_level` is kept beside `rung` for the same reason (decided 2026-11-24: both stay;
contributor-scan task 4.2). They are not two names for one thing. `rung` is the model ladder's
verdict (`model/ladder.py`): suspicion, `model_corroborated`, `model_entailed`,
`execution_confirmed`, raised only by the arbiter and only with a verdict behind it.
`evidence_level` is the pattern and overlay pipeline's own vocabulary (`verification.py`,
`EvidenceLevel`): suspicion, `static_corroboration`, `crash_reproduced`,
`root_cause_explained`, `exploit_demonstrated`, `patch_validated`. The verification records
read it, ranking reads it, and the report uses it to group pattern-only matches. Folding one
vocabulary into the other would either present a text match as a model verdict or change the
JSON, SARIF and MCP output and the `min_evidence_level` declared on all 52 rules. A reader
must never take `static_corroboration` as `model_corroborated`.