Skip to content

Core overview

Core supplies shared resource and recipient concepts for NotiFi products. Visitor owns visits, check-in/out, presence rules and incidents. Core must not depend on Visitor’s workflows. Channel-specific code owns provider integration and destination normalization. See product boundaries.

  • Tenant and resource records, membership-backed application authorization and PostgreSQL row-level tenant isolation.
  • Core::Resources for resource lookup, creation and renaming; Core::RecipientLinks for recipient and resource-link operations.
  • Recipient selection across explicit resources.
  • An additive contact destination model with a channel-neutral Core boundary and an initial email normalizer.
  • Core::ProvisionOrganization for trusted operator provisioning, not a public self-service API.

These are internal Ruby services in a Rails monolith. They do not themselves establish product-level authorization; see security. Their interfaces may change while this foundation is developed.

DeliveryTesting contains the existing simulated snapshots, test queue and pollers. They are experimental, not a Core dispatch API. The Visitor simulation passes its SMS normalizer explicitly; Core recipient selection and preview do not load Visitor or a concrete channel. The test delivery infrastructure is allowed to depend on Core and on test adapters, not the reverse.

Production dispatches, delivery policies, deliveries, an append-only ledger and message channels. No Core API currently sends messages. The planned dispatch design is a proposal rather than a contract.

The Ruby files under app/services/core must not directly reference Visitor, Channels or DeliveryTesting. The boundary test checks direct Ruby constants in those services; it is a guardrail, not proof against dynamic or transitive coupling. Tenant, Resource, Recipient and ResourceLink are currently shared models at the root of app/models, not a standalone gem. Core remains in this Rails application and shares its database and lifecycle with Visitor; no public or stable API is promised.

The legacy Core recipient selection still exposes telephone-specific fields; the additive DestinationSelection reads explicit channel destinations instead. Injecting a normalizer makes preview independent of a concrete SMS adapter, but does not yet make the recipient data model a general multi-channel contact model. This needs explicit design before a second product or webhook delivery uses it. There is no production channel adapter contract here yet. The DeliveryTesting namespace can use concrete test adapters while exercising its isolated experiments; it must not be used as evidence of a finished generic queue, delivery ledger or production integration boundary.