feat(FN-4482): complete Step 2 — add plan-only scope leak guard

Fusion-Task-Id: FN-4482
Fusion-Task-Lineage: 5850cda2-ded5-42ac-a206-396839580748
This commit is contained in:
Fusion
2026-05-14 14:10:16 -07:00
committed by gsxdsm
parent 23bb578ae4
commit ffd274d646
4 changed files with 242 additions and 4 deletions

View File

@@ -229,6 +229,7 @@ export const DEFAULT_PROJECT_SETTINGS = {
mergeAuditAutoRecovery: "ai-assisted",
workflowStepTimeoutMs: 360_000,
workflowStepScopeEnforcement: "block",
planOnlyScopeLeakEnforcement: "warn",
workflowRevisionForkOnScopeMismatch: true,
strictScopeEnforcement: false,
buildRetryCount: 0,

View File

@@ -2434,6 +2434,11 @@ export interface ProjectSettings {
* - "warn": log off-scope writes but allow the step to pass
* - "off": disable workflow-step scope enforcement and keep legacy behavior */
workflowStepScopeEnforcement?: "block" | "warn" | "off";
/** Executor-side scope-leak policy at fn_task_done time for plan-only tasks (review level 1).
* - "off": disable guard
* - "warn" (default): log [scope-leak] activity but allow completion
* - "block": refuse fn_task_done when off-scope files are detected */
planOnlyScopeLeakEnforcement?: "off" | "warn" | "block";
/** When true (default), workflow revision feedback that explicitly names files
* outside the task's declared File Scope is forked into a dependent follow-up
* task instead of being appended to the original PROMPT.md. Set to false to