gsxdsm
4f7b3ac78f
FN-6439: clear stale near-duplicate flags
Clear near-duplicate decisions when their canonical task is no longer active.
- Add a shared canonical activity helper for near-duplicate detection.
- Clear stale persisted near-duplicate metadata when canonical tasks are done, archived, or deleted.
- Prevent triage and dashboard surfaces from presenting duplicate decisions for inactive canonicals.
- Cover stale-flag cleanup and hidden dashboard affordances with regression tests.
Files changed:
docs/task-management.md | 4 +-
.../near-duplicate-stale-flag-clear.test.ts | 105 +++++++++++++++++++++
packages/core/src/__tests__/near-duplicate.test.ts | 19 +++-
packages/core/src/index.ts | 2 +
packages/core/src/near-duplicate-canonical.ts | 25 +++++
packages/core/src/near-duplicate.ts | 3 +
packages/core/src/store.ts | 102 +++++++++++++++++++-
packages/dashboard/app/App.tsx | 7 +-
packages/dashboard/app/components/Column.tsx | 10 ++
packages/dashboard/app/components/TaskCard.tsx | 12 ++-
.../dashboard/app/components/TaskDetailModal.tsx | 12 ++-
packages/dashboard/app/components/WorktreeGroup.tsx | 30 +++++-
.../app/components/__tests__/TaskCard.test.tsx | 28 ++++++
.../__tests__/TaskDetailModal.rendering.test.tsx | 26 +++++
.../near-duplicate-intake.test.ts | 24 +++++
packages/engine/src/triage.ts | 10 ++
16 files changed, 411 insertions(+), 8 deletions(-)
Fusion-Task-Id: FN-6439
Fusion-Task-Lineage: e57b80e8-36aa-4b96-ad13-53b5a431477d
2026-06-14 15:29:35 -07:00
..
2026-06-14 15:29:35 -07:00
2026-06-14 00:43:13 -07:00
2026-06-14 15:29:35 -07:00
2026-06-14 15:29:35 -07:00
2026-06-14 00:43:13 -07:00
2026-06-14 00:43:13 -07:00
2026-06-14 15:29:35 -07:00
2026-06-14 00:43:13 -07:00
2026-06-14 00:43:13 -07:00
2026-06-14 00:43:13 -07:00
2026-06-08 15:19:27 -07:00
2026-06-14 00:43:13 -07:00