Files
fusion/.changeset/fn-4072-diff-volume-gate.md
Fusion 8b037e4c7e feat(FN-4072): add diff volume gate to merger
Added a diff volume gate to the merger that blocks or warns on large diffs before merge completes. The feature includes a new `merger-diff-volume-gate` module wired into the merger, configurable via project settings, with tests covering all gate paths. Also updated docs and the changeset for the `@r

Fusion-Task-Id: FN-4072
2026-05-12 18:26:58 -07:00

476 B

@runfusion/fusion
@runfusion/fusion
patch

Add a pre-commit diff-volume gate for auto-resolved squash merges. Fusion now compares each file's staged squash delta against the branch's net delta and blocks the merge in in-review when a non-allowlisted file silently loses too much branch content.

Add three new project settings for tuning the gate: mergeDiffVolumeMinLines (default 20), mergeDiffVolumeThreshold (default 0.2), and mergeDiffVolumeAllowlist (default []).