Incident domain flows
This page describes how the key incident flows behave over time. It references the commands, events, and states defined in the domain model.
Incident lifecycle
The lifecycle is driven by three actors: Sentinel ingestion creates and keeps the
incident current, automation moves it through AutomatedInvestigation into active
handling, and change-feed-driven updates (ticket/customer signals) can reopen a
Closed incident or archive it. Reopening is modelled as an accepted status update
away from Closed, not a dedicated reopen command.
- Ingest metadata.
UpsertIonSecurityIncidentCommandcreates a new stream or emits only changed attributes. - Evaluate context.
UpsertIonSecurityIncidentSentinelContextCommandrecords alert changes and produces scoped, filtered, or context-added outcomes. - Enrich and coordinate. Commands update comments, ratings, entities, tags, ticket linkage, service level, and other incident attributes.
- Work or wait. Status commands move the incident through active states.
- Close.
CloseIonSecurityIncidentCommandrecords classification, reason, and comment inIonSecurityIncidentClosedEvent. - Archive. Ticket archival updates the incident to
Archivedand adds a public explanatory comment.
Context evaluation outcomes
When provider context is evaluated, the incident can be narrowed or suppressed before it reaches an analyst:
Once a ticket exists, or an incident is non-AAA, later context evaluation can no longer reclassify it as scoped or filtered.
Waiting-for-customer scheduling
When an incident enters WaitingForCustomer, at most one transition is scheduled:
- A critical incident returns to
Newafter inactivity. - Other severities auto-close as
Undeterminedafter inactivity. - An active escalation suppresses scheduling entirely.
An unsolicited customer reply (routed from Customer Collaboration) can also move the
incident back to New, subject to the status preconditions in the model.
Cross-domain handoffs
| Trigger | Target domain | Effect |
|---|---|---|
| Incident attribute/lifecycle change | Ticket | Patched to the external ticket |
| Ticket state/closure/archival | Incident | Status, classification, or archival applied via command |
| Customer-contact intent | Customer Collaboration | Contact request dispatched |
| Unsolicited customer reply | Incident | Conditional move to New |
| Incident context | Investigation | Investigation journal records linkage |