Skip to content

chore(obsolescence-audit): drop stale commands-models.ts pattern entries (#2452)#2453

Merged
alexey-pelykh merged 1 commit intomainfrom
chore/2452-obsolescence-stale-entries
Apr 21, 2026
Merged

chore(obsolescence-audit): drop stale commands-models.ts pattern entries (#2452)#2453
alexey-pelykh merged 1 commit intomainfrom
chore/2452-obsolescence-stale-entries

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Remove both inert pattern entries (buildModelsProviderData and handleModelsCommand) from scripts/data/obsolescence-known-patterns.json. Both referenced the deleted file src/auto-reply/reply/commands-models.ts (tombstoned in gut: eliminate callers and delete ~14 EXCLUDE-STUB files in src/auto-reply/ #2373, commit c61609dc26).
  • The audit script (scripts/check-obsolescence-audit.mjs:294) treats patterns whose files don't exist as "resolved", so both entries were already inert. Removing them cleans up dead tracking data without changing audit coverage.
  • Total findings unchanged at 50 (50 stubs + 0 known patterns, baseline 134).

Root cause

The issue title names only buildModelsProviderData, but the sibling entry handleModelsCommand in the same file had the identical problem. Both entries became inert in #2373 when their referenced file was deleted. The description staleness called out in #2452 was a downstream symptom — the entries had actually been resolving to ENOENT on the audit script for weeks.

Confirmed with the reporter that both should be removed under the same PR (Option 2 from the issue).

Test plan

  • node scripts/check-obsolescence-audit.mjs → exit 0 (local)
  • Array.isArray(patterns) === true (structural check — script requires it at line 164)
  • Full-repo grep for both identifiers in src/ extensions/ ui/ → zero hits
  • No coupled changes required (single-file diff)
  • CI green: build + test + lint + obsolescence-audit-gate
  • Auto-merge enabled per project convention (squash)

Out of scope (noted, not addressed)

  • .obsolescence-baseline = 134 vs actual 50 — pre-existing drift, not caused by this PR. Audit script's "debt decreased" message is informational, not a gate failure. Belongs in a separate cleanup.
  • docs/.generated/plugin-sdk-api-baseline.json still references the deleted file for 4 exports. scripts/generate-plugin-sdk-api-baseline.ts is not wired into any npm script or CI workflow, so that artifact has drifted separately. Belongs in its own issue.

Closes #2452.

…ies (#2452)

Both `buildModelsProviderData` and `handleModelsCommand` entries referenced
`src/auto-reply/reply/commands-models.ts`, which was deleted in #2373
(commit c61609d). The audit script treats patterns whose files don't
exist as "resolved" (scripts/check-obsolescence-audit.mjs:294), so both
entries were already inert — removing them reduces dead tracking data
without changing audit coverage.

Total findings unchanged at 50 (50 stubs + 0 known patterns, baseline 134).

Sibling `handleModelsCommand` removed under the same root cause, confirmed
by user as in-scope for this cleanup even though #2452 names only
`buildModelsProviderData`.
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 21, 2026 13:19
@alexey-pelykh alexey-pelykh merged commit c14b2b8 into main Apr 21, 2026
15 checks passed
@alexey-pelykh alexey-pelykh deleted the chore/2452-obsolescence-stale-entries branch April 21, 2026 13:25
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.

cleanup(obsolescence-audit): buildModelsProviderData pattern description stale after model-picker gut

1 participant