feat(FN-5171): add near-duplicate task guard to CLI create command

Adds a near-duplicate guard to the CLI task creation command (FN-5171), preventing creation of tasks with titles that are visually or semantically identical to existing ones, with 262 new test cases covering the detection logic and the standard changeset entry.

Fusion-Task-Id: FN-5171
This commit is contained in:
Fusion (runfusion.ai)
2026-05-20 00:35:21 -07:00
committed by gsxdsm
parent f4039266e2
commit b7ddfc9d20
4 changed files with 389 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
---
"@runfusion/fusion": patch
---
Layer FN-5152's near-duplicate intent guard onto the CLI `fn task create`
direct-store path. Aligned thresholds (≥2 shared high-signal tokens AND
title-token Jaccard ≥ 0.30 within a 7-day window), `--no-dedup` bypass,
`source.sourceMetadata.intentSignature` stamping, and fail-open semantics
match the dashboard `POST /api/tasks` gate. Non-TTY runs refuse with exit
1; TTY runs prompt before creating. GitHub-import and AI-planning paths
intentionally skip the gate (FN-5060 contract).