feat(FN-4810): complete Step 6 — finalize truncation docs and changeset
Fusion-Task-Id: FN-4810 Fusion-Task-Lineage: b7080f83-96b0-4106-9742-e14b20afeab1
This commit is contained in:
committed by
gsxdsm
parent
bd1c585b05
commit
7cd5554641
5
.changeset/fn-4810-truncate-scope-leak-output.md
Normal file
5
.changeset/fn-4810-truncate-scope-leak-output.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Truncate Plan-Only scope-leak activity-log entries and `fn_task_done` blocking refusal messages to the first 10 off-scope and declared-scope entries with a `… (+N more)` suffix and explicit `total off-scope=` / `total scope=` counters, so large tasks no longer flood the activity log.
|
||||||
@@ -228,9 +228,9 @@ Fusion also enforces a completion-time scope-leak check in the executor `fn_task
|
|||||||
- Applies to tasks with declared `## File Scope`.
|
- Applies to tasks with declared `## File Scope`.
|
||||||
- Uses touched files from branch committed delta plus uncommitted working-tree edits at completion time.
|
- 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.
|
- Emits `[scope-leak]` activity-log entries when touched files are off-scope.
|
||||||
- Scope-leak list rendering is capped to the first 10 entries for both off-scope touched files and declared scope, with a `… (+N more)` suffix when truncated.
|
- Off-scope touched-file and declared-scope lists are truncated to the first 10 entries with `… (+N more)` when longer.
|
||||||
- Activity entries include explicit `total off-scope=` and `total scope=` counters so full list sizes remain visible when previews are truncated.
|
- Log entries include `total off-scope=` and `total scope=` counters so full list sizes remain explicit.
|
||||||
- In `"block"` mode, the `fn_task_done` refusal text uses the same truncated off-scope preview (`… (+N more)` when applicable) and keeps the remediation hint intact.
|
- In `"block"` mode, the `fn_task_done` refusal message uses the same truncated off-scope preview.
|
||||||
- Honors `task.scopeOverride === true` as an explicit bypass.
|
- Honors `task.scopeOverride === true` as an explicit bypass.
|
||||||
|
|
||||||
`planOnlyScopeLeakEnforcement` controls Review Level 1 behavior:
|
`planOnlyScopeLeakEnforcement` controls Review Level 1 behavior:
|
||||||
|
|||||||
Reference in New Issue
Block a user