ADR-0001: Keep product, Core and channel responsibilities separate
- Status: proposed
- Date: 2026-11-05
Context
Section titled “Context”NotiFi must support a useful first product without embedding visitor incident rules or SMS-provider details into reusable communication primitives.
Decision
Section titled “Decision”NotiFi has three layers:
- NotiFi Core owns tenants, resources, recipients, active links, recipient snapshots, messages, dispatches, deliveries and the delivery ledger.
- Visitor Incident Management owns visitor registration, presence, incidents, operational UX, exports and business rules.
- 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.
Consequences
Section titled “Consequences”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.
Current implementation note
Section titled “Current implementation note”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.