[needs-human] feat: Scholarmancy SMS toll-free compliance (relay + consent) - #28
Merged
Merged
Conversation
- Guarded SMS send with consent records, relay client, and brand prefix - Relay inbound webhook signatures; STOP/START/HELP/YES and 21610 handling - Opt-in UI on register/settings; privacy/terms updates; co-parent YES flow Co-authored-by: Ricardo Vega <github@noctusoft.com>
Co-authored-by: Ricardo Vega <github@noctusoft.com>
Co-authored-by: Ricardo Vega <github@noctusoft.com>
Member
Author
Review (Claude Code, against the Noctusoft relay contract)Passes on the security-critical parts:
Deploy order (required, or inbound texts break):
The |
Co-authored-by: Ricardo Vega <github@noctusoft.com>
rvegajr
marked this pull request as ready for review
October 2, 2026 01:53
|
Auto-merge is off for this PR — a human must merge it. title is marked [needs-human]
Why: a green PR deploys to production and OTA-publishes to the TestFlight preview channel. Those are fine unattended. Changes to CI/deploy workflows, EAS config, native/app config, dependencies, Dockerfiles, Railway config, or the agent guardrails can trigger EAS builds (which burn build credits) or change where code ships, so they wait for a person. Review, then merge manually. |
Co-authored-by: Ricardo Vega <github@noctusoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Scholarmancy toll-free SMS compliance per the attached plan: Noctusoft relay outbound (
NOCTUSOFT_API_KEY),sms_consentsgate, relay-signed inbound webhooks (STOP/START/HELP/YES +OptOutType, status21610), web opt-in + legal pages, co-parent double opt-in, and Scholarmancy branding on SMS copy.Highlights
smsCompliance.ts— brand, purpose, webhook URLs,SMS_OPT_IN_TEXT_VERSION,ISmsConsentRecordSmsConsentRepository+ indexesNoctusoftSmsRelayClient,GuardedSmsSender,createSmsStack,libphonenumber-jsnormalizePhoneE164,smsSendSurfaceguardMagicLinkSender→ guarded SMSGuardedSmsSender; no Twilio SDKSmsOptInCheckbox, register/settings, privacy/terms + testsCI fix (latest commit)
CI / BuildandE2E Tests / Playwright E2Eboth failed atpackages/apitsc --buildwith TS2352 inrelay-signature.middleware.ts(castingRequeststraight to{ rawBody: string }). The fix readsrawBodythroughRequest & { rawBody?: unknown }and narrows it withtypeof. This error was missed locally becausepnpm type-checkstopped at an earlier workers failure before it reached api.Verified
Pre-existing on
origin/main(not fixed here)pnpm -r lintfails inpackages/scraper-core(prettier/eslint).packages/connectortest Jest heap OOM aftercontractsbuild.Gate
Touches
pnpm-lock.yamlandpackage.json→ human merge /needs-humanper repo policy (owner-approvedlibphonenumber-js).Not verified here
pnpm -r test