Files
fusion/.changeset/fn-4948-precommit-branch-identity-guard.md
Fusion (runfusion.ai) c161e626e2 feat(FN-4948): complete Steps 7-8 — finalize verification and release artifacts
Fusion-Task-Id: FN-4948
Fusion-Task-Lineage: dc622643-4c3e-4217-9219-a6a6e5424427
2026-05-17 17:29:31 -07:00

559 B

@runfusion/fusion
@runfusion/fusion
patch

Prevent cross-branch commit contamination at the source: every task worktree now installs a pre-commit hook that refuses commits when HEAD does not match the worktree's owning task branch (with an allowlist for parallel-step branches). As defense-in-depth, contamination auto-recovery now drops obviously-misrouted foreign commits whose task-id attribution and changed-path namespace unambiguously belong to another task (initial heuristic: .changeset/fn-<that-id>-*), instead of escalating them to human adjudication.