ION v3 domains
ION V3 is divided into bounded contexts around business authority and rate of change. The contexts are not at the same implementation maturity: some are operational event-sourced domains, some are integration boundaries, and some are target designs with contracts or infrastructure only.
Domain portfolio
| Domain | Business responsibility | Current authority and persistence | Status |
|---|---|---|---|
| Incident | Accept incident facts, enforce incident lifecycle rules, and expose operational incident views | IncidentAggregate and EntityAggregate streams in Cosmos DB; blob-backed Sentinel context; SQL projections | ✅ Implemented event-sourced domain |
| Investigation | Record investigation execution and analyst-reviewed artifacts | Signed commands and directly mapped events in separate Cosmos containers, ordered by investigation ID; no reconstructed aggregate or operational projection | 🟠 Implemented journal; stateful domain model incomplete |
| Ticket | Normalize ServiceNow ticket events and synchronize ticket and incident changes | ServiceNow/Ticketing remains authoritative; boundedctx-tickets is an anti-corruption layer and process manager with no local ticket store | 🔄 Transitional integration boundary |
| Customer Collaboration | Orchestrate customer contact and correlate replies across Teams, email, phone, action cards, and comments | Pigeon operational records in Table Storage; Phoenix Graph-subscription state in Cosmos DB | ✅ Implemented operational domain; not event-sourced |
| Assets | Manage customer assets, classifications, import lifecycles, and Sentinel watchlist projections | AssetAggregate, ImportSetAggregate, and ClassificationAggregate streams in Cosmos DB; SQL projections | ✅ Implemented event-sourced domain |
| Remediation | Own remediation plans, task decisions, approval gates, deduplication, and action execution history | Typed contracts plus provisioned Cosmos and Service Bus infrastructure; runtime handlers, repositories, outbox, and projections are absent | 🧭 Target domain; runtime not implemented |
The status column is deliberate. A checked-in contract, Terraform resource, or reference model does not by itself prove that aggregate behavior is running.
Context map
Solid lines represent implemented interactions or authority flows. Dashed lines represent target integration boundaries that require further runtime implementation or validation.
What each domain owns
| Domain | Owns | Does not own |
|---|---|---|
| Incident | Accepted incident history, state transitions, comments, ratings, Sentinel context references, incident projections | ServiceNow ticket workflow, investigation execution, physical response actions |
| Investigation | Recorded investigation commands and facts by investigation ID | Incident lifecycle; currently does not enforce stateful aggregate transitions |
| Ticket | Provider translation and synchronization policy | Persisted ticket authority or a local ticket aggregate |
| Customer Collaboration | Contact requests, channel dispatch, reply correlation, thread/subscription state | The business meaning or authorization of a customer decision |
| Assets | Asset/import/classification streams and desired watchlist projection | Sentinel’s stored watchlist or source-system asset truth |
| Remediation | Target ownership of plans, task decisions, approval evidence, and execution deduplication | Incident mutation and physical Conveyor execution |
Persistence and implementation
Each domain’s persistence model, read/write split, replay posture, and primary implementation are documented on its own implementation page. Only Incident and Assets currently implement the complete event-sourced aggregate pattern of reconstruction, invariant enforcement, optimistic append, Change Feed publication, and rebuildable SQL projection. Investigation records immutable facts but does not yet reconstruct state before accepting commands.
| Domain | Implementation page |
|---|---|
| Incident | Incident implementation |
| Investigation | Investigation implementation |
| Ticket | Ticket implementation |
| Customer Collaboration | Customer Collaboration implementation |
| Assets | Assets implementation |
| Remediation | Remediation implementation |
Cross-domain rules
- Write through the owning boundary. A consumer issues a command to the owner; it never updates another domain’s store or projection directly.
- Treat provider models as external contracts. Sentinel, ServiceNow, Teams, Microsoft Graph, and Conveyor are translated at anti-corruption boundaries.
- Do not infer authority from an event name. Ticket events are normalized integration events; they do not imply a local Ticket event store.
- Separate communication from decisions. Pigeon can prove which operational request a response matched, but the receiving domain validates what that response means and whether it authorizes a transition.
- Make target behavior explicit. Investigation plans, a stateful Investigation aggregate, a local Ticket Store, a generic collaboration approval ledger, and the Remediation runtime remain incomplete or target capabilities.
- Build read models from the actual write model. Event-sourced contexts use replayable projections; operational contexts use store-specific recovery and reconciliation.
Each domain is documented in four parts — overview (README), domain model
(model.md), flows (flows.md), and implementation (implementation.md) — except
where a domain has too little content to warrant the full split. The domain pages
identify the implemented commands, events, entities, invariants, stores, and gaps.
Reference documents describe valuable requirements, but where a reference conflicts
with checked-in runtime behavior the page labels that concept as target rather than
current.