feat(FN-4343): complete Step 3 — enforce workflow step scope invariants

Fusion-Task-Id: FN-4343
Fusion-Task-Lineage: b880b71a-9250-4d9e-bdac-8298a73058f7
This commit is contained in:
Fusion
2026-05-13 19:24:33 -07:00
committed by gsxdsm
parent 540c5e16d8
commit a3b505e2cb
4 changed files with 156 additions and 16 deletions

View File

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

View File

@@ -2309,6 +2309,11 @@ export interface ProjectSettings {
* given one shot to retry with the configured fallback model before the
* step is reported as failed. Default: 360_000 (6 minutes). */
workflowStepTimeoutMs?: number;
/** How pre-merge prompt workflow steps enforce declared File Scope at step end.
* - "block" (default): mark the step failed/revision-requested on off-scope writes
* - "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";
/** 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