Skip to content

refactor(sms): remove dead pkg/sms (#293) - #363

Merged
scttfrdmn merged 2 commits into
mainfrom
refactor/293-remove-pkg-sms
Jul 15, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
refactor/293-remove-pkg-sms

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Removes pkg/sms, the last dead-code item from the 2026-07 audit.

Why it's safe

  • Zero importers inside spawn — the whole package was dead within this repo.
  • Its inbound-reply surface (PendingKey/PendingNotification/PendingTable) was used only cross-repo by spore-host/lambda/rest-api. That consumer now keeps its own local copies of the three types (companion change in the spore-host repo), mirroring what spore-host/lambda/spore-bot/sms_notify.go already does.
  • Its outbound helpers (Send/StorePending/BuildMessage/ProjectNumber) had no callers anywhere — spore-bot carries its own copy.

Coordination

The rest-api consumer is being updated in the spore-host repo in lockstep (local types + spawn pin bump). Consumers pinned to an older spawn are unaffected — they keep the version of pkg/sms they already reference.

go build ./... clean; no spawn tests referenced it.

Closes #293.

pkg/sms had zero importers within spawn — its inbound half (PendingKey/
PendingNotification/PendingTable) was used only cross-repo by
spore-host/lambda/rest-api, and its outbound half (Send/StorePending/
BuildMessage/ProjectNumber) was dead everywhere (spore-bot keeps its own local
copy). rest-api now owns local copies of the three types it needs, so pkg/sms
is deleted here.

Closes #293.
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit b59089f into main Jul 15, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the refactor/293-remove-pkg-sms branch July 15, 2026 21:15
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.

[audit] Dead code (cross-repo): plan coordinated removal of pkg/sms — it is a PUBLIC API imported by spore-host/lambda/rest-api

1 participant