Skip to content

Remove the unreachable insights cluster and the retired comparison toggle - #799

Merged
MBombeck merged 2 commits into
mainfrom
fix/dead-code-sweep
Aug 15, 2026
Merged

Remove the unreachable insights cluster and the retired comparison toggle#799
MBombeck merged 2 commits into
mainfrom
fix/dead-code-sweep

Conversation

@MBombeck

Copy link
Copy Markdown
Owner

Maintenance, no user-visible change. Six modules that no shipped surface can reach are deleted: the recommendation card chain (card, confidence meter, feedback control, grid), the suggested-prompts strip unmounted in v1.18.7, and the comparison toggle whose absence two regression tests have pinned since v1.4.22.

Fallout the guards caught and this branch cleans up: sixteen orphaned translation keys across all six locales, one stale entry in the success-affordance register, and two entries in the Coach gate fixtures.

Deliberately kept: signals/adapters/metric-status.ts. knip flags it because only a test imports it, but that test is the registry invariant the adapter exists to prove; removing it would delete a check, not dead weight.

The production dead-code check has been documented rather than enforced
since PR #691, because its list mixed real debt with false positives.
Triaged against the shipped tree, six of them are genuinely unreachable
and go now.

Five died when their host was retired and the leaves were left behind:
the recommendation card with its confidence meter and feedback control,
the grid that mounted them, and the suggested-prompts chip strip that
left the hero band in v1.18.7. The sixth, the comparison toggle, has had
two regression tests pinning its absence since v1.4.22, because the
preference it once set is a Settings concern now.

Deleting them freed sixteen translation keys in every locale, a pinned
entry in the success-affordance register, and two entries in the Coach
gate fixtures. Each of those was found by a guard rather than by
reading, which is the point of having them.

The adapter under signals/adapters stays: knip reports it as unreachable
because only a test imports it, but that test is the registry invariant
it exists to prove, and deleting it would remove a check rather than
dead weight.
The schemas stay: the insight result still parses recommendations
through them. Only the exported aliases went unused once the card that
consumed them was removed, and the dead-code gate says so.
@MBombeck
MBombeck merged commit 9a3c1d1 into main Aug 15, 2026
23 checks passed
@MBombeck
MBombeck deleted the fix/dead-code-sweep branch August 15, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant