fix(findings): bare semgrep rule ids, real umlauts in control titles (#463) #473

Merged
sharang merged 1 commits from fix/463-rule-id-prefix into main 2026-10-05 23:07:15 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 20e68b6d3f fix(findings): bare semgrep rule ids, real umlauts in control titles (#463)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m19s
semgrep prefixes a rule's id with its config's directory, relative to its
working directory; our packs are staged in the temp directory, so findings
showed rule ids like tmp.cra-ai-20-csharp-xxe. The scanner now stores the
bare id of our rules. The fingerprint keeps hashing the id with the fixed
"tmp." prefix it was stored with, so findings already stored keep their
fingerprint, triage, status and tracker issues, and a rescan finds nothing
new; the prefix no longer depends on where the temp directory is.

The CRA catalog spells umlauts out ("Integritaetspruefung"). Its titles and
statement prose are now spelled right when the catalog is loaded, from a
word list (a rule would break "aktuell", "neue", "Quelle"). Prod serves the
snapshot it was seeded with, so the fix cannot rely on the corrected
shipped snapshot alone; that one is corrected too.

At start the agent rewrites stored findings once (idempotent): semgrep
rule ids lose their prefix (fingerprints from an older prefix move to what
a scan computes, unless taken), and control-check titles and descriptions
get their umlauts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 00:50:55 +02:00