The CRA status page overclaims. evidence/compliance.rs:85-90 shows "no violation found" for any covered control once the target was scanned. It does not check whether a rule for that control ran on the target's languages.
On a C-only repo, cra-ai-1, 7, 10 and 14 read "no violation found" although only Python/JS rules exist for them (control-map/data/cra_control_map.json, compliance-agent/rules/cra_semgrep.yaml). A C customer would read that as a clean result for controls we never checked.
Decision (2026-09-25)
Show "nicht bewertet" (not assessed), with a reason, unless a rule bound to the control actually applies to the scanned code.
Done when
Each scan binding in the control map declares the languages or target kinds it covers (ScanBinding, control-map/src/lib.rs).
The status is "no violation found" only when at least one binding matches the target's detected languages and its tool ran. Otherwise it is not assessed, with the reason ("keine Prüfregel für C").
Tests: a C-only target, a Python target, and a mixed one.
Part of #338.
## Problem
The CRA status page overclaims. `evidence/compliance.rs:85-90` shows **"no violation found"** for any `covered` control once the target was scanned. It does not check whether a rule for that control ran on the target's languages.
On a C-only repo, cra-ai-1, 7, 10 and 14 read "no violation found" although only Python/JS rules exist for them (`control-map/data/cra_control_map.json`, `compliance-agent/rules/cra_semgrep.yaml`). A C customer would read that as a clean result for controls we never checked.
## Decision (2026-09-25)
Show **"nicht bewertet"** (not assessed), with a reason, unless a rule bound to the control actually applies to the scanned code.
## Done when
- Each scan binding in the control map declares the languages or target kinds it covers (`ScanBinding`, `control-map/src/lib.rs`).
- The status is "no violation found" only when at least one binding matches the target's detected languages and its tool ran. Otherwise it is not assessed, with the reason ("keine Prüfregel für C").
- Tests: a C-only target, a Python target, and a mixed one.
sharang
added this to the Production MVP milestone 2026-09-25 07:59:04 +00:00
sharang
added the bughigh labels 2026-09-25 07:59:04 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #338.
Problem
The CRA status page overclaims.
evidence/compliance.rs:85-90shows "no violation found" for anycoveredcontrol once the target was scanned. It does not check whether a rule for that control ran on the target's languages.On a C-only repo, cra-ai-1, 7, 10 and 14 read "no violation found" although only Python/JS rules exist for them (
control-map/data/cra_control_map.json,compliance-agent/rules/cra_semgrep.yaml). A C customer would read that as a clean result for controls we never checked.Decision (2026-09-25)
Show "nicht bewertet" (not assessed), with a reason, unless a rule bound to the control actually applies to the scanned code.
Done when
ScanBinding,control-map/src/lib.rs).