Customer Collaboration domain model
The Customer Collaboration domain owns how ION reaches a customer about an incident or service request, correlates the customer’s reply back to the originating request, and detects messages that arrive without an open request. It is an operational, incident-centric capability: calling domains such as Incident, Ticket, and Investigation ask it to make contact, and it returns communication outcomes for those domains to interpret.
Customer Collaboration is implemented by three services rather than one aggregate:
| Service | Implemented responsibility |
|---|---|
| Pigeon | Outbound contact, channel dispatch, request storage, reply correlation, and unsolicited-message detection |
| Phoenix | Microsoft Graph subscription lifecycle, encrypted Teams webhook ingestion, and normalized Teams reply publication |
| Pigeon Envoy | Routes unsolicited customer messages to Cyber Defenders by issuing a conditional Incident command |
Ubiquitous language
| Term | Meaning in this domain |
|---|---|
| Contact request | A CustomerContactRequest record capturing who to reach, how, with what content, and the correlation data to match a reply |
| Action card | An interactive request with a producer-supplied reference ID, correlated separately through its own queue |
| Teams thread | The mapping between an incident and its Microsoft Teams thread, used to route Teams replies |
| Teams subscription | Microsoft Graph subscription state that lets Phoenix receive encrypted Teams channel notifications |
| Correlated response | A reply matched to a stored in-progress request and returned with the original request attached |
| Unsolicited message | An incoming customer message that matches no open request and is reported for routing |
| Request types | GeneralInquiry, Notification, ActionCard |
| Methods | Teams, email, phone, automated phone, public comment |
| States | InProgress, Completed, Cancelled |
Authority and enforced invariants
| Owned here | Owned elsewhere |
|---|---|
| Requested channel, recipients, and content | Incident status, assignment, and closure |
| Contact-request status and channel audit | Investigation analysis and conclusions |
| Correlation of response to stored request | Ticket lifecycle and ServiceNow state |
| Teams thread mapping | Authorization to execute a response action |
| Graph subscription lifecycle | Meaning and validity of a customer decision |
| Detection and routing of unsolicited contact | Calling workflow continuation rules |
Pigeon owns contact orchestration and correlation. Incident, Ticket, Investigation, and other calling domains remain responsible for interpreting a response and enforcing their own business transitions.
Domain status
The current model is operational and incident-centric. There is no unified,
event-sourced CustomerCollaboration aggregate, conversation stream, or generic
approval ledger. Operational records are mutable and purgeable rather than a permanent
event-sourced audit ledger. See
Implementation for the current-vs-target
breakdown and the older
Customer Collaboration reference.
Static domain model
This page describes the static structure of the Customer Collaboration domain: the operational records it stores, their fields, request types, methods, states, the message/outcome catalog, and the invariants that are (and are not) enforced. It is intended to be technology-agnostic — see Implementation for how these records are realized on Azure Table Storage, Phoenix Cosmos DB, and the channel integrations, including partition-key mechanics.
This domain has no unified aggregate. Each record below is an independent operational structure correlated by workspace, incident, and reference data.
Contact request
CustomerContactRequest is the primary record. It captures who to reach, how, with
what content, and the correlation data used to match a later reply.
| Field group | Implemented values |
|---|---|
| Context | Workspace ID, incident name, customer short, service-request ID, ION service |
| Request type | GeneralInquiry, Notification, ActionCard |
| Method | Teams, email, phone, automated phone, public comment |
| Message | Subject, body, recipients, extension data |
| Correlation | Source routing data, optional reference ID |
| State | InProgress, Completed, Cancelled |
| Audit | Channel-specific send result and response data |
Supported service and channel combinations
| ION service | Supported contact |
|---|---|
| Incident Management | Inquiry or notification through Teams, email, phone, automated phone, or public comment; action cards |
| MVM | Teams notification |
| Service Management | Email notification |
Action-card request
An action-card request is a distinct record with its own queue and correlation path. The producer supplies a reference ID, and responses are matched by workspace, incident, and reference ID.
Action-card records may accept another response after completion because the same mechanism also supports mutable feedback scenarios. It is not an immutable, single-decision approval ledger.
The behavioral correlation steps are described in Flows.
Teams thread record
Pigeon stores the mapping between an incident and its Teams thread. Incident-collaboration and custom-detection threads use separate fields. MVM channels are not incident-scoped and do not use this tracker.
Teams subscription record
A Teams subscription captures the Microsoft Graph subscription state that lets Phoenix receive encrypted Teams channel notifications. A subscription records:
- customer/tenant;
- Team and channel IDs;
- Graph subscription ID;
- webhook URLs;
- client state;
- encryption certificate ID;
- expiry;
- reauthorization metadata.
The subscription lifecycle (creation, renewal, reauthorization, recreation, and persistence) is described in Implementation.
Conceptual ERD
Messages and outcomes
Wire types are CloudEvents carried over Service Bus.
| CloudEvent type | Role |
|---|---|
ion.pigeon.customercontact.request | Request outbound customer contact |
ion.pigeon.customercontact.cancel | Cancel matching in-progress contact work |
ion.pigeon.customercontact.response | Return a correlated response and original request |
ion.pigeon.customercontact.failed | Report channel dispatch failure |
ion.pigeon.customercontact.unsolicited | Report incoming contact without an open request |
ion.pigeon.inbound.teamsmessagereply | Carry a Phoenix-normalized Teams reply into Pigeon |
The response payload carries the original request so the caller can resume its own workflow without querying Pigeon.
Enforced invariants
- service-specific required context;
- explicit supported service/type/method combinations;
- incident-scoped Table Storage partitioning;
- action-card reference correlation;
- reply filtering and incident-thread resolution;
- method-sensitive handling of incomplete responses;
- conditional Incident update for unsolicited messages;
- Graph payload signature validation before decryption.
Not implemented as domain invariants
- one conversation aggregate per tenant/domain context;
- an append-only conversation or delivery-attempt event stream;
- idempotency for every ordinary contact request;
- exact one-to-one question/response correlation;
- generic request expiry;
- authenticated capability checks for an approver;
- one immutable approval or rejection per proposed action.