feat(FN-5196): return 410 Gone for hard-archived task deletions

Implement the hard-archived delete contract: add a typed `ArchivedTaskDeleteError`, map hard-archived task deletes to HTTP 410 Gone at both the store and routes layers, and document the invariant in the soft-delete verification matrix.

Fusion-Task-Id: FN-5196
This commit is contained in:
Fusion (runfusion.ai)
2026-05-22 02:04:04 -07:00
committed by gsxdsm
parent 6289d4a60b
commit 9a09498397
8 changed files with 188 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
FN-5196: pin the archived-task delete contract. `deleteTask` on a hard-archived task now throws the typed `TaskAlreadyHardArchivedError`; the dashboard delete route maps this to HTTP 410 Gone with `code: "TASK_ALREADY_HARD_ARCHIVED"`. No silent no-op.