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
+2 -1
View File
@@ -266,7 +266,8 @@ each; everything past exhaustion counted into `regions_unjudged`.
2. **Scale it (Req 3, 4).** Budget and ranking, then the first run against a pinned known-vulnerable
checkout, the measurement that has never been taken and can reshape the rest.
3. **Ship it (Req 5, 6).** Contributor output; build and verify the image that is currently only defined.
4. **Close the deferred (Req 7).** The memory decision; retire `evidence_level`.
4. **Close the deferred (Req 7).** The memory decision; retire `evidence_level`. *(Decided 2026-11-24: both
are recorded and `evidence_level` is kept; see the amendment record in requirements.md.)*
5. **Grow the corpus (Req 9).** PHP/WordPress first: the families the model arbitrates best. C CVEs only
after 7.1.
6. **Regression baselines (Req 10).**
@@ -240,3 +240,48 @@ reasoned claim. Task 2.17 carries that half.
stopped free work visible at all.
* **Req 11.2's byte-identical gates held through every one of nine defect fixes**, which says the same thing
from the other side: the corpus could not have caught any of them.
## Amendment record, deferred decisions (approved 2026-11-24)
The maintainer closed the two deferred decisions of Requirement 7 on 2026-11-24. Neither decision rewrites a
numbered acceptance criterion above. The decisions are quoted verbatim. The evidence listed under each is what
was on record when the choice was made, not a reason the maintainer stated.
| decision | discharges | consequence |
| --- | --- | --- |
| "C memory-safety beyond string-function misuse is out of scope. Record that, and say so per corpus slice." | Req 7.1 | Task 4.1 closes on the record. Task 5.3, the harvest of Req 9.2 that was gated on Req 7.1, is withdrawn. Task 2.13 is withdrawn with it. Task 2.15 closes on its recorded-decision branch. |
| "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." | Req 7.2 | Task 4.2 closes on the record. The scope line above, "retiring `evidence_level`", and design step 4, "retire `evidence_level`", are discharged by this record, not by a retirement. |
**What the first decision means here.** In task 2.15's words: `c/memory` is scoped to string-function misuse
and makes no claim about arithmetic overflows. Nothing beyond that scope is built or adopted for C. The pair
corpus README says so for each slice that holds C pairs: `vfc`, `sast` and `local`. Requirement 9.2, the
real-world C library CVEs, is left unmet by the withdrawal of task 5.3; its text stands.
**The evidence on record for it.**
- The `memory` family models calls, not arithmetic, and says so in its own `limits` (`ruleset/families.toml`).
- `c/memory` has produced zero true positives and three classes of false positive; libpng is the one
measured C checkout.
- No execution tier is adopted: `Rung.EXECUTION_CONFIRMED` has no producer in `src/`.
- Labels, counted from `benchmarks/pairs/vfc/catalog.toml` on 2026-11-24: of the 176 pairs, 129 carry no sink
label, and none of the 16 distinct named sinks (across 47 pairs) is one the `memory` family models: `gets`,
`strcpy`, `strcat`, `sprintf` or a non-literal format string.
**Why 2.13 is withdrawn.** 2.13 would stop `c/memory` entailing a `strcpy` into a destination allocated to
fit, which is inside the scope that stays. Its Observable needs a second C checkout with a genuine CWE-121,
because a rule extended until one checkout is clean is the overfitting Req 8 exists to prevent, and it depends
on 5.3 for that checkout. With the harvest withdrawn there is no second checkout, so the rule is not extended.
By task 2.13's own account the entailment at `contrib/examples/iccfrompng.c:124` was libpng's last one
(`benchmarks/measurements/2026-09-09-repo-libpng-bounds.json`). Nothing removes it now, so the roadmap's
second release criterion, zero known-false entailed findings on every pinned checkout, is not expected to
hold on libpng. That is to be re-measured, not assumed.
**Why both vocabularies are kept.** They are not two names for one thing. `rung` is the model ladder's
verdict, raised only by the arbiter with a verdict behind it. `evidence_level` is the pattern and overlay
pipeline's own vocabulary (`verification.py`, `EvidenceLevel`). The overlay assigns only `suspicion` and
`static_corroboration` today, so the difference a reader meets is `static_corroboration` against
`model_corroborated`: a text match must not be presented as a model verdict. The verification records and the
ranker read `evidence_level`, the report uses it to group pattern-only matches, and 52 rule keys declare
`min_evidence_level`. Removing the field would change the JSON, SARIF and MCP output, which the decision rules
out. A single vocabulary is a consumer-contract change and belongs to detection-core; the decision is
revisited when detection-core revises that contract.
+6 -1
View File
@@ -1,7 +1,7 @@
{
"feature_name": "contributor-scan",
"created_at": "2026-09-08T20:00:00Z",
"updated_at": "2026-09-14T06:10:56.975614+00:00",
"updated_at": "2026-11-24T10:41:15.412732+00:00",
"language": "en",
"phase": "implementation",
"approvals": {
@@ -51,6 +51,11 @@
"at": "2026-09-14T05:58:44.810694+00:00",
"source": "ok",
"action": "Accepted the proposed shared engine/census/context follow-up after group 8 NO-GO. Task 2.19 covers the confirmed missing Gruntfile and honest census-completeness repair; runtime and independent qualification gates remain unchanged."
},
{
"at": "2026-11-24T10:05:00+00:00",
"source": "approved",
"action": "Closed the memory-family decision (task 4.1): \"C memory-safety beyond string-function misuse is out of scope. Record that, and say so per corpus slice.\" Task 5.3 and task 2.13 are withdrawn; task 2.15 closes on its recorded-decision branch. Kept evidence_level beside rung (task 4.2): \"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.\""
}
],
"implementation_verification": {
+24 -5
View File
@@ -235,7 +235,7 @@
- _Requirements: 8.1, 8.2_
- _Depends: 2.9_
- [ ] 2.13 A destination allocated to size is bounded too
- [x] 2.13 A destination allocated to size is bounded too
- 2.12's remainder, and libpng's last entailed finding: `strcpy(output + len, ".icc")` at
contrib/examples/iccfrompng.c:124, where `output = malloc(len + 5)` and a five-byte copy lands at offset
`len`. It fits exactly. There is no comparison anywhere, so the bound rule cannot see it -- the
@@ -248,6 +248,9 @@
Without the second half this task should not be closed.
- _Requirements: 8.1, 8.2_
- _Depends: 2.12, 5.3_
- _Withdrawn 2026-11-24, with task 5.3._ Its Observable needs a second C checkout with a genuine CWE-121,
which 5.3 was to supply. The maintainer's decision on task 4.1 withdrew that harvest, so the rule is not
extended and the entailment at `contrib/examples/iccfrompng.c:124` stands until it is re-measured.
- [ ] 2.14 Control dependence is not populated, and two arbiters want it
- Measured, not assumed: **0 of 13,184 calls in the libpng CPG and 0 of 1,152 in the vampi CPG have a
@@ -265,7 +268,7 @@
- _Requirements: 4.2, 8.1_
- _Depends: 2.12_
- [ ] 2.15 A C checkout whose CVE goes through a sink we model
- [x] 2.15 A C checkout whose CVE goes through a sink we model
- libpng cannot demonstrate a C true positive, and pinning an older vulnerable commit would not change
that. **Every one of the twelve files using `strcpy`/`strcat`/`sprintf`/`gets` is under `contrib/`; the
library itself uses none of them.** Its overflows are array and pointer arithmetic and `memcpy` sizing,
@@ -293,6 +296,9 @@
leave it implying it covers a class it cannot see.
- _Requirements: 4.1, 4.4_
- _Depends: 2.12_
- _Closed 2026-11-24 on its recorded-decision branch._ The decision that `c/memory` is scoped to
string-function misuse and makes no claim about arithmetic overflows is recorded under task 4.1 and in
the amendment record at the end of `requirements.md`. No such checkout was pinned.
- [x] 2.16 Say what `c/memory` actually covers, or retire it
- Its score so far is zero true positives and every finding a false one: 26 from a substring match, 3 from
@@ -375,19 +381,30 @@
## Group 4 — Close the deferred decisions
- [ ] 4.1 The memory-family decision
- [x] 4.1 The memory-family decision
- Either reach `memory` through an adopted execution tier, or record explicitly that C memory-safety is out
of scope. 173 of the 176 real-world CVE pairs sit idle behind a stub; the decision gates Req 9.2.
- Observable: the decision and its reason are recorded where a later reader finds them; if out of scope,
the corpus says so per slice.
- _Requirements: 7.1, 7.3_
- _Closed 2026-11-24 on the out-of-scope branch._ Maintainer decision, verbatim: "C memory-safety beyond
string-function misuse is out of scope. Record that, and say so per corpus slice." The evidence on record
for it, which is not a reason the maintainer stated, is in the amendment record at the end of
`requirements.md`, in the steering overview and roadmap, and in `docs/detection-techniques.md`.
`benchmarks/pairs/README.md` says so per slice, for `vfc`, `sast` and `local`. Req 9.2 is left unmet by
the withdrawal of task 5.3; its text stands.
- [ ] 4.2 Retire `evidence_level`
- [x] 4.2 Retire `evidence_level`
- It duplicates `rung` in intent. Retire it, or record why both are kept. Note the legacy value
`static_corroboration` comes from the flat-IR overlay, which Req 4.4 of the predecessor demotes to the
suspicion band — so a straight rename would overstate it.
- Observable: one vocabulary, or a recorded reason for two; SARIF and JSON consumers considered.
- _Requirements: 7.2, 7.3_
- _Closed 2026-11-24 on the recorded-reason branch._ Maintainer decision, verbatim: "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." The reason is in the amendment record at the
end of `requirements.md`, in `docs/detection-techniques.md` and in `docs/architecture.md`. JSON, SARIF
and MCP output are unchanged.
## Group 5 — Grow the corpus
@@ -431,11 +448,13 @@
- The slice where the stated audience works, currently 35 pairs. Same read-check discipline.
- _Requirements: 9.3, 9.4, 9.5, 9.6, 9.7_
- [ ] 5.3 Real-world C library CVEs
- [x] 5.3 Real-world C library CVEs
- libpng and the image libraries, OpenSSH, libpam, kernel modules. **Gated on 4.1**: until the memory
decision closes these would join 173 idle pairs.
- _Requirements: 9.2, 9.4, 9.5, 9.6_
- _Depends: 4.1_
- _Withdrawn 2026-11-24._ The maintainer's decision on task 4.1 put C memory-safety beyond string-function
misuse out of scope, so this harvest would only add idle pairs. Req 9.2 is left unmet; its text stands.
- [x] 5.4 WordPress entry points, and the one-verdict-per-region limit
- Two things stand between the PHP facts and a WordPress result, and the second was found by running the