Typed control mappings in rules and JSON findings !5

merged merged by cmc on 2026-10-29 21:14 UTC · audit-labs/audit-report:typed-rule-mappings into main

Discussion

cmc
  • A rule's controls entries may be mappings: {control, relationship (full|partial), rationale, source}. Rule.controls stays a list of codes; Rule.control_mappings holds the typed entries.
  • JSON findings carry control_mappings only when a rule has typed entries, so existing consumers see the same keys.
  • Needed by audit-workbench roadmap 4.2 (control-coverage partially_supported).
  • Tests: 67 passed (2 new).