Incident domain model
The Incident domain owns ION’s accepted security-incident history and operational read model. Microsoft Sentinel and other providers supply incident facts, but the bounded context decides which changes are accepted and records them as authoritative incident history.
The owning system is Watchtower.
Ubiquitous language
| Term | Meaning in this domain |
|---|---|
| Incident | An accepted security-incident record with its own lifecycle, identified by workspace and incident stream |
| Entity enrichment | Provider-supplied entity detail attached to an incident and used to derive asset tags |
| Sentinel context | The alerts, entities, relationships, and filter outcome associated with an incident |
| Comment | A private or public note on an incident, shown as investigation or activity content |
| Rating | A quality/feedback score with reasons attached to an incident |
| Asset tag | A label on an incident, applied directly or derived from entities |
| Service level | Whether an incident is handled under the AAA or nonAAA operating policy |
| Scoped / Filtered | Automation outcomes that narrow or suppress an incident based on evaluated context |
| Classification | The closure verdict and reason recorded when an incident is closed |
| Point-in-time value | A time-stamped field value used to reject stale provider updates |
Authority and boundaries
| Concern | Authority |
|---|---|
| Accepted incident state and history | Incident event stream |
| Provider observations | Sentinel or the originating provider, subject to incident acceptance rules |
| Large Sentinel alert/entity context | Context payload referenced by incident events |
| Query and API views | Rebuildable operational projection |
| Ticket workflow | Ticketing/ServiceNow; reflected through incident commands and events |
A provider update does not overwrite the read model directly. It enters as a command, is checked against the reconstructed aggregate, and produces events only when accepted.
Domain status
The incident consistency boundary and entity-enrichment boundary are implemented as event-sourced aggregates with operational projections. Merge/de-merge and incident deletion are reference-only targets. See Implementation for the full current-vs-target breakdown and the older Incident domain reference.
Static domain model
This page describes the static structure of the Incident domain: its aggregates, entities, invariants, states, commands, and events. It is intended to be technology-agnostic — see Implementation for how it is realized on Cosmos DB, blob storage, and Azure SQL.
Aggregate roots
| Aggregate root | Identity and responsibility | Held state |
|---|---|---|
IncidentAggregate | One workspace/incident stream | Point-in-time incident fields, comments, ratings, alert IDs, filter outcome, latest context reference |
EntityAggregate | Separate incident-entity stream | Entity enrichment detail and entity-derived asset tags |
EntityAggregate changes require the corresponding IncidentAggregate to exist.
Comments and ratings have identifiers, but are collections inside IncidentAggregate,
not independent aggregate roots.
Entities and value objects
| Concept | Shape |
|---|---|
| Incident fields | Title, description, owner identity, severity, status, classification, labels, MITRE tactics, product names |
| Coordination fields | Customer reference, HasTicket, escalated-to-customer, active escalation, service level, ION services |
| Comment | CommentId, content, Private or Public scope, Investigation or Activity display type |
| Rating | RatingId, value, reasons, and comment |
| Sentinel context | Alerts, entities, relationships, filter outcome, and context reference |
| Asset tags | Direct incident tags plus entity-derived tags |
| Time-aware field | PointInTimeValue<T> used to reject stale provider updates |
Domain ERD
The Incident domain sits between an external provider source and several other bounded contexts. The ERD therefore shows both the structure the aggregate owns and the relationships it holds to entities owned elsewhere.
| Related entity | Owning context | Relationship |
|---|---|---|
SentinelIncident | Microsoft Sentinel (external provider) | Exactly one upstream Sentinel incident is projected into one IncidentAggregate |
Alert, IncidentEntity | Microsoft Sentinel (external provider) | Correlated alerts and their entities, referenced through SentinelContext |
IonInvestigation | Investigation | An incident may have zero or one investigation recorded against it |
IonSecurityTicket | Ticket | An incident may be tracked by zero or one external ticket |
IonResponseAction | Remediation | An incident may drive many response actions |
Comment, Rating, SentinelContext, AssetTag, and EntityAggregate are owned
inside the Incident boundary. IonInvestigation, IonTicket, and IonResponseAction
are owned by other bounded contexts; the Incident domain only holds the reference and
never writes them directly (see cross-domain rules).
Lifecycle and states
| State | Meaning |
|---|---|
New | New or returned to the work queue |
Active | Actively handled |
AutomatedInvestigation | Automated processing is in progress |
WaitingForCustomer | Waiting for customer input; may schedule a transition |
Closed | Closed with classification data |
Archived | Archived after ticket archival |
The dynamic walkthrough of these transitions lives in Flows.
Invariants and policies
- An unseen incident already reported as
Closedis not created. - Commands other than initial upsert fail when the incident does not exist.
- Closing is a distinct event, not a normal status-update event.
- Classification and classification comment can be directly changed only while the incident is closed.
- A non-archival status transition clears classification, reason, and comment.
- Close classification and classification reason must be a valid combination.
- Provider updates to key fields are time-aware; stale changes are dropped.
- For AAA incidents, provider transitions cannot move
ActivetoNew, enter or leaveWaitingForCustomer, or move toActiveunless reopeningClosed. - Status and close commands may specify allowed current-state preconditions.
- Service level is monotonic:
AAAdoes not revert tononAAA. - Once a ticket exists, or an incident is non-AAA, later context evaluation cannot reclassify it as scoped or filtered.
- Comment and rating upserts are idempotent by identifier and content.
- Asset tags are case-insensitive and distinct.
- At most one waiting-for-customer transition is scheduled per incident. Critical
incidents return to
New; other severities auto-close asUndeterminedafter inactivity. An active escalation suppresses scheduling.
Commands
Wire types follow ion.command.securityincident.<operation>.v1.
| Family | Command types |
|---|---|
| Create and context | UpsertIonSecurityIncidentCommand, UpsertIonSecurityIncidentSentinelContextCommand |
| Lifecycle | UpdateIonSecurityIncidentStatusCommand, CloseIonSecurityIncidentCommand |
| Core attributes | UpdateIonSecurityIncidentTitleCommand, UpdateIonSecurityIncidentDescriptionCommand, UpdateIonSecurityIncidentOwnerCommand, UpdateIonSecurityIncidentSeverityCommand |
| Classification | UpdateIonSecurityIncidentClassificationCommand, UpdateIonSecurityIncidentClassificationCommentCommand |
| Coordination | UpdateIonSecurityIncidentCustomerReferenceCommand, UpdateIonSecurityIncidentHasTicketCommand, UpdateIonSecurityIncidentEscalatedToCustomerCommand, UpdateIonSecurityIncidentServiceLevelCommand, UpdateIonSecurityIncidentIonServicesCommand |
| Labels and tags | UpdateIonSecurityIncidentLabelsCommand, UpsertIonSecurityIncidentAssetTagsCommand |
| Comments and ratings | UpsertIonSecurityIncidentCommentCommand, AppendIonSecurityIncidentCommentCommand, DeleteIonSecurityIncidentCommentCommand, UpsertIonSecurityIncidentRatingCommand |
| Entity enrichment | UpsertIonSecurityIncidentEntityEnrichmentCommand |
| Operations | QueueReplayWorkspaceStreamsCommand, ReplayWorkspaceStreamsCommand, ReplayStreamCommand, PurgeIonSecurityIncidentEventCommand |
There is no MergeIncidents, DeMergeIncident, incident-delete, comment-purge, or
explicit reopen command. Reopening is represented by an accepted status update away
from Closed.
Events
Wire types follow ion.event.securityincident.<outcome>.v1.
| Family | Event types |
|---|---|
| Lifecycle and outcome | IonSecurityIncidentCreatedEvent, IonSecurityIncidentClosedEvent, IonSecurityIncidentScopedEvent, IonSecurityIncidentFilteredEvent, IonSecurityIncidentSentinelContextAddedEvent |
| Attributes | ...TitleUpdatedEvent, ...DescriptionUpdatedEvent, ...StatusUpdatedEvent, ...SeverityUpdatedEvent, ...OwnerUpdatedEvent, ...ClassificationUpdatedEvent, ...ClassificationCommentUpdatedEvent |
| Context metadata | ...LabelsUpdatedEvent, ...MitreTacticsUpdatedEvent, ...AlertProductNamesUpdatedEvent, ...AssetTagsUpdatedEvent, ...EntitiesAssetTagsUpdatedEvent |
| Coordination | ...CustomerReferenceUpdatedEvent, ...HasTicketUpdatedEvent, ...EscalatedToCustomerUpdatedEvent, ...ServiceLevelUpdatedEvent, ...IonServicesUpdatedEvent |
| Child data | ...CommentAddedEvent, ...CommentUpdatedEvent, ...CommentDeletedEvent, ...RatingAddedEvent, ...RatingUpdatedEvent, ...EntityEnrichmentUpdatedEvent |
See the V3 event model for the common envelope.