Skip to content

feat: add "enrich audit" function#4283

Draft
eric-intuitem wants to merge 2 commits into
mainfrom
improve-mapping
Draft

feat: add "enrich audit" function#4283
eric-intuitem wants to merge 2 commits into
mainfrom
improve-mapping

Conversation

@eric-intuitem
Copy link
Copy Markdown
Collaborator

@eric-intuitem eric-intuitem commented Jun 7, 2026

What & why

Add "Enrich from source" for compliance audits.
Merge mapped assessment data from a selected source audit into an existing target audit, reusing the mapping engine (inverse of "Apply Mapping"). Same-framework sources copy 1:1; cross-framework sources map (incl. multi-hop), with a preview-before-apply step.

Merge rules: full coverage copies, partial coverage only fills blanks and adds controls, observations are appended idempotently, M2M links are unioned, and source defaults never clobber existing values.

Fix mapping-engine coverage: compute multi-hop coverage as weakest-link (previously kept the first hop's coverage), and base the copy decision only on the source audit's own requirements, not intermediate frameworks.

Also: clamp negative score-progress that crashed the tree view, full localization (25 locales), tests, and documentation.

Add "Enrich from source" for compliance audits.
Merge mapped assessment data from a selected source audit into an existing target audit, reusing the mapping engine (inverse of "Apply Mapping"). Same-framework sources copy 1:1; cross-framework sources map (incl. multi-hop), with a preview-before-apply step.

Merge rules: full coverage copies, partial coverage only fills blanks and adds controls, observations are appended idempotently, M2M links are unioned, and source defaults never clobber existing values.

Fix mapping-engine coverage: compute multi-hop coverage as weakest-link (previously kept the first hop's coverage), and base the copy decision only on the source audit's own requirements, not intermediate frameworks.

Also: clamp negative score-progress that crashed the tree view, full localization (25 locales), tests, and documentation.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 7, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 082513c5-8995-4429-b1a1-f2a98d08bb4d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch improve-mapping

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant