feat(FN-4810): complete Step 4 — document scope-leak truncation

Fusion-Task-Id: FN-4810
Fusion-Task-Lineage: b7080f83-96b0-4106-9742-e14b20afeab1
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 18:41:55 -07:00
committed by gsxdsm
parent ea6501bed7
commit e68b448ce3

View File

@@ -228,6 +228,9 @@ Fusion also enforces a completion-time scope-leak check in the executor `fn_task
- Applies to tasks with declared `## File Scope`.
- Uses touched files from branch committed delta plus uncommitted working-tree edits at completion time.
- Emits `[scope-leak]` activity-log entries when touched files are off-scope.
- Off-scope touched-file and declared-scope lists are truncated to the first 10 entries with `… (+N more)` when longer.
- Log entries include `total off-scope=` and `total scope=` counters so full list sizes remain explicit.
- In `"block"` mode, the `fn_task_done` refusal message uses the same truncated off-scope preview.
- Honors `task.scopeOverride === true` as an explicit bypass.
`planOnlyScopeLeakEnforcement` controls Review Level 1 behavior: