feat(FN-5216): sanitize duplicate paths in file scope when parsing task sto

The merge adds a file scope sanitizer to the task store that deduplicates and normalizes path entries, with test coverage in `store-parsing.test.ts`; a small documentation fix accompanies the change in AGENTS.md.

Fusion-Task-Id: FN-5216
This commit is contained in:
Fusion (runfusion.ai)
2026-05-20 06:07:33 -07:00
committed by gsxdsm
parent 37d4115bb6
commit 35b2971f54
4 changed files with 125 additions and 27 deletions

View File

@@ -0,0 +1,8 @@
---
"@runfusion/fusion": patch
---
Duplicating or restoring a task no longer fails when the source PROMPT.md
contains legacy/invalid File Scope tokens. Invalid tokens are dropped from
the rewritten PROMPT.md with a `[file-scope-sanitize]` log entry. Authoring
paths (createTask, updateTask) continue to reject invalid tokens strictly.