notification-service — Planned SMS/Email Notification Hub (Not Yet Functional)

By Engineering Team•October 10, 2026•4 min read

Responsibility

notification-service is the intended future owner of outbound customer notifications — today it is not a working service. Its own CLAUDE.md is a byte-for-byte copy of user-secure-engine’s CLAUDE.md, and its Rust source is a copy-paste of the same service’s bootstrap files, not a genuine scaffold for this domain.

Current state — confirmed non-functional

  • main.rs declares nine modules (app_config, transport, domain, infra, message_receiver, migration, repository, service, state), but only app_config, domain, infra, and state actually exist as files. transport, message_receiver, migration, repository, and service are referenced and do not exist anywhere in the tree — the code as it stands cannot compile.
  • app_config.rs’s start() function is user-secure-engine’s own startup code verbatim: it sets service_name = "user-secure-engine" and wires UserModule/OtpModule/AuthModule/ConsentModule/AppCheckModule/TokenModule/UserServiceHandler — none of which are notification concerns.
  • domain/mod.rs declares auth, otp, otp_verify_audit, token_verification, user submodules — none of these files exist either.
  • Cargo.toml’s package name is literally "user-secure-engine", and its dependency list (axum, tonic, mongodb, sea-orm, jsonwebtoken) is inherited from the copied source — there is no SMS/email-provider SDK, no templating library, and no dependency that points toward this service’s intended domain.
  • There is zero genuine notification-domain business logic anywhere in this service today — no templates, no provider integration, no masking logic, no mobile-facing API.

Planned scope — not implemented, documented here only to avoid re-discovering the same requirement later

Per the originating feature request, once rebuilt this service is intended to:

  • Define notification templates for SMS, email, and voice-call channels.
  • Integrate with an SMS provider, an email provider, and a call/voice provider, and dispatch a notification to a customer’s phone or email through them.
  • Mask PII information inside the template content for auditing purposes before any audit record is persisted — this is a distinct masking concern from document-service’s existing audit-trail masking (PII_KEYS in documentaudit_masking.rs), since that pipeline masks a publisher’s raw request/response JSON, not rendered notification-template content; whether this service reuses that masking approach or needs its own is an open design question, not yet decided.
  • Expose an API for the mobile app to view past notifications (ui-application’s notification inbox/history screen has no backing service today).

None of this exists yet. Per this site’s Engineering Doc Pipeline, this scope has not progressed past being a stated requirement — no BRD, SR, ADR, or architecture doc exists for it, and none should be written until the actual implementation begins; this page exists to record what’s real (nothing) and what’s intended (the bullets above), not to document a design that hasn’t been made yet.

Tech Stack

Concern Choice
Language Rust (inherited, unverified — no notification-specific dependency has been added)
What actually runs Nothing — main.rs cannot compile due to five missing modules
Intended data stores, messaging, providers Not yet decided

Implementation Notes

  • This is not an early, legitimate scaffold left mid-build — it is a copy-paste artifact. Every file that exists (app_config.rs, domain/mod.rs, infra/*.rs, state.rs) is user-secure-engine’s own code, unmodified apart from presumably the copy operation itself.
  • The root CLAUDE.md’s own Monorepo Layout table discloses this: notification-service/CLAUDE.md “was accidentally overwritten with a copy of user-secure-engine/CLAUDE.md in a past commit” (commit c5ff891) — the source code copy appears to be the same incident, not a separate one.
  • pii-service’s own doc lists notification-service as a real consumer with a working UserService gRPC client and a hardcoded caller_service value still reading "user-secure-engine" in every audit-log entry it produces — see pii-service’s Implementation Notes and TD-00008, TD-02. That client code is itself part of the same copy-paste — it authenticates and calls pii-service exactly as user-secure-engine does, under user-secure-engine’s own identity, not a notification-specific integration.
  • Before any real implementation starts here: fix the module tree (remove references to nonexistent modules or actually author them), rename the package in Cargo.toml, and replace the inherited app_config.rs/domain/mod.rs with code that reflects this service’s actual domain (templates, provider clients, masking, notification history) rather than editing the copied identity service’s files in place.
  • user-secure-engine — the service this one’s current source was copy-pasted from
  • pii-service — already has a (misattributed) client integration from this service’s copied code
  • document-service — existing PII-masking-for-audit precedent, relevant to this service’s planned masking requirement

Full module reference: notification-service/CLAUDE.md (currently a placeholder — see the root CLAUDE.md’s Monorepo Layout table).