Skip to content

ADR-0001: Keep product, Core and channel responsibilities separate

  • Status: proposed
  • Date: 2026-11-05

NotiFi must support a useful first product without embedding visitor incident rules or SMS-provider details into reusable communication primitives.

NotiFi has three layers:

  1. NotiFi Core owns tenants, resources, recipients, active links, recipient snapshots, messages, dispatches, deliveries and the delivery ledger.
  2. Visitor Incident Management owns visitor registration, presence, incidents, operational UX, exports and business rules.
  3. Channels implement a small, versioned contract for transport. SMS is the only v1 channel and owns provider integration, number normalization, callbacks, reconciliation and transport retries.

An incident is a product concept, not a Core concept. Core does not know about SMS segments, provider error codes or provider callback payloads.

Core stays small and can serve later products. The first product and SMS adapter need explicit integration boundaries rather than reaching into each other’s models.

Core services must not depend on product code, concrete channel implementations, or delivery test infrastructure. Products select and authorize resources and pass channel-specific collaborators into generic operations; composition occurs outside Core. Existing experimental simulations and polling live under DeliveryTesting, not in Core. A proposed generic production transport contract is not yet implemented; test adapters do not establish that contract.