Files
fusion/.changeset/FN-5171-cli-near-duplicate.md
Fusion (runfusion.ai) b7ddfc9d20 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
2026-05-20 00:41:33 -07:00

526 B

@runfusion/fusion
@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).