Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5.5 6860cdb9ce
CI / Detect Changes (pull_request) Skipped
CI / Check (push) 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 8m6s
fix(findings): groups take over their places' human decisions (#483)
Closes #483. A group (#464/#477) started open even when a person had
marked every one of its places, one by one, a false positive, an
accepted risk or ignored; their issues stayed open and the decision was
lost on the group.

- RunFindings::write_back reads, for each group, the stored single
  findings of its rule at its places that carry such a decision. Each
  place lists its decision (Occurrence.decision; the description shows
  "file:line [marked false_positive]").
- When every place carries the same decision, the group takes it, with a
  history entry by the scan (ScanChangeKind::Inherited, "inherited from
  N grouped findings"); also on a group an earlier run stored open, so
  the groups #477 created are set right on the next scan. A decision a
  person made on the group itself is never overridden; mixed decisions
  leave the group open.
- Issues: the inherited decision closes the group's issue with a comment
  (DE/EN, reason quoted); a finding that is already decided never opens
  an issue.
- Dashboard: history wording for the inherited change.
- Tests: tests/group_decisions.rs (Mongo: all-same, mixed, earlier open
  group, decision on the group kept), unit tests for unanimity, the
  description round trip and the issue comment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-06 03:07:28 +02:00
..