feat(FN-5208): guard soft-delete resurrection across upsert and triage writ

FN-5208 hardens the soft-delete boundary in the task store by adding read guards that block access to deleted tasks, write guards that reject upserts and triage mutations against deleted task IDs, and a resurrection guard that aborts re-enqueue of archived tasks back into `triage`/`todo`. The core l

Fusion-Task-Id: FN-5208
This commit is contained in:
Fusion (runfusion.ai)
2026-05-19 19:24:24 -07:00
committed by gsxdsm
parent 87da1cb757
commit e67df21de1

View File

@@ -42,6 +42,7 @@ const defaultSettings = {
vi.mock("../../api", () => ({
fetchProjects: vi.fn(() => Promise.resolve([])),
fetchGitRemotes: vi.fn(() => Promise.resolve({ remotes: [] })),
fetchSettings: vi.fn(() => Promise.resolve({ ...defaultSettings })),
fetchSettingsByScope: vi.fn(() => Promise.resolve({ global: { ...defaultSettings }, project: {} })),
updateSettings: vi.fn(() => Promise.resolve({ ...defaultSettings })),