Investigation domain implementation
This page describes how the Investigation domain model is realized at runtime: the read side, operational status, code references, write atomicity, and the current-vs-target scope. The generic V3 event-sourcing pattern it builds on is documented in Data and events; this page covers only the investigation-specific specifics.
Read side and operational status
| Component | Current status |
|---|---|
| Investigation API | Returns raw event documents for an investigation |
| Default projector | Health-check stub |
| SQL read model | Dummy run_log table only |
| Orchestrator | Health-check stub |
The repository therefore has no operational aggregate projection to serve as the current investigation state, and no implemented workflow orchestrator in this bounded context.
Atomicity and non-atomic writes
The command and event writes use separate containers and are not atomic. A command can remain stored when the event write fails. Service Bus sessions order published events but do not provide aggregate concurrency control.
Code references
The primary implementation is boundedctx-investigations.
Write and publication path:
Execution model definitions:
Review and analysis artifacts:
Command and event unions:
Read side:
Target and reference scope
The following belong to the richer target/reference model, not the current implementation described above:
- versioned investigation and system triage plans;
- plan coverage and latest-plan evaluation;
- hypothesis executions with classification, confidence, and conclusion;
- investigation graph nodes and edges;
- recommendations and executable recommended actions;
- evaluator and remediator decision rules;
- Temporal response playbooks, tasks, approvals, retries, and signals;
- investigation merge and incident-driven de-merge behavior.
These concepts remain useful requirements, but a V3 implementation must introduce commands, events, state reconstruction, transition rules, and projections before they can be described as operational behavior.