Assets domain flows
This page describes how the key asset flows behave over time. It references the commands, events, and states defined in the domain model.
Dataset ingestion
QueueImportcreates the import stream and emitsImportQueued.- The ingestion subscriber issues
RetrieveDataset. - File imports read from the configured file source; automation imports use the configured automation data source.
- Records are validated against the projected classification catalog.
- Valid records are split into chunks of 50; invalid records are retained as skipped-record details.
InitiateImportrecords totals, then eachEnrichDataChunkemits sequentialIngestIonAssetcommands and records chunk progress.- The final chunk issues
CompleteImport. - Domain events update current counters, assets, and change logs.
Automation
A scheduled run queues imports for customers whose asset automation is enabled:
- Load live customers from Doppio.
- Check that Key Assets uses
boundedctxassets. - Obtain enabled asset automations from Themis.
- Queue one scheduled automation import per definition.
Each queued import then follows the dataset ingestion flow
with a ScheduledAutomationRun source.
Sentinel watchlist sync
- Completed imports identify customers requiring synchronization.
- Classifications with watchlist configuration select desired assets from the read model.
- The service queries the current workspace watchlist through Conveyor Archer.
- It compares desired and current rows, expanding multiple IP addresses into separate rows.
WatchlistOperationcommands upsert CSV content, delete stale items, or delete an empty watchlist.
Assets owns the desired projection and comparison. Conveyor Archer and Microsoft Sentinel own the external workspace API and stored watchlist.