Case Management and Investigation Workflow

intermediate 13 min

Abstract

The Case Management System provides the organizational and procedural framework for due diligence investigations within the Prismatic Platform. It manages the lifecycle of investigation cases from creation through assignment, scoping, evidence collection, analysis, review, and final report delivery, ensuring that every investigation follows a structured, auditable, and compliant process. Cases support hierarchical organization, role-based access control, collaborative workflows, and integration with all platform subsystems including entity management, graph analysis, risk assessment, and OSINT collection. This document describes the case lifecycle, the workflow engine, collaboration features, access control model, and reporting capabilities.

Introduction

The Need for Structured Case Management

Due diligence investigations are complex, multi-step processes involving multiple analysts, dozens of data sources, hundreds of entity records, and regulatory requirements that mandate comprehensive audit trails. Without structured case management, investigations devolve into ad-hoc collections of notes, screenshots, and spreadsheets -- producing outputs that are difficult to review, impossible to audit, and vulnerable to incomplete coverage.

The Prismatic Platform's Case Management System addresses this by treating each investigation as a first-class workflow object with defined states, transitions, actors, and deliverables. Every action within an investigation -- from entity creation to source query to analyst note to risk score computation -- is captured within the case context, creating a complete record of how conclusions were reached.

Design Principles

The case management system follows principles derived from both the platform's NO MERCY, NO DOUBTS doctrine and established investigation management practices:

  1. Complete Capture: Every investigation action is recorded within the case context. No findings exist outside of a case.
  2. Structured Workflow: Investigations follow defined lifecycle stages with explicit transition criteria.
  3. Role-Based Access: Case data is accessible only to authorized users based on their role and assignment.
  4. Hierarchical Organization: Complex investigations can be decomposed into sub-cases with independent lifecycles.
  5. Regulatory Compliance: Case records satisfy the audit trail requirements of NIS2, AML/KYC, and internal compliance frameworks.

Case Lifecycle

Lifecycle States

Every case progresses through a defined set of lifecycle states:

DRAFT --> SCOPED --> COLLECTING --> ANALYZING --> REVIEWING --> COMPLETE
  |         |           |              |             |            |
  v         v           v              v             v            v
CANCELLED  CANCELLED   PAUSED        PAUSED       REJECTED     ARCHIVED
StateDescriptionResponsible ActorEntry Criteria
DRAFTCase created with initial parametersCase creatorCase creation request
SCOPEDInvestigation scope defined and approvedLead analyst + reviewerScope document approved
COLLECTINGActive OSINT collection and entity enrichmentPlatform + analystsScope approved, entities identified
ANALYZINGEvidence analysis, graph traversal, risk scoringLead analystCollection substantially complete
REVIEWINGPeer review of findings and assessmentsReviewer (senior analyst)Analysis report drafted
COMPLETEInvestigation finalized, report deliveredLead analystReview approved
ARCHIVEDCase archived for long-term retentionSystem90 days after completion
CANCELLEDCase terminated before completionCase creator or reviewerCancellation approved
PAUSEDCase temporarily suspendedLead analystPause request with justification

State Transition Rules

State transitions are governed by explicit rules that prevent premature advancement:

  • DRAFT to SCOPED: Requires scope document with defined entity targets, investigation objectives, timeline, and applicable regulatory framework
  • SCOPED to COLLECTING: Requires at least one seed entity created and approved for investigation
  • COLLECTING to ANALYZING: Requires minimum 80% of planned source queries completed with results processed
  • ANALYZING to REVIEWING: Requires risk assessment computed for all primary entities, analyst summary drafted, and all critical contradictions resolved or documented
  • REVIEWING to COMPLETE: Requires reviewer approval, all review comments addressed, and final report generated
  • Any state to CANCELLED: Requires justification and approval from case creator or designated reviewer

Workflow Engine

Task Management

Within each lifecycle state, the workflow engine manages individual tasks that must be completed before the case can advance. Tasks are generated automatically based on the case scope and can also be created manually by analysts.

Automatic Tasks (generated by the platform):

Task TypeTriggerAssignment
Entity enrichmentNew entity added to casePlatform (automated)
Source collectionEntity enrichment initiatedPlatform (per source adapter)
ValidationSource data receivedValidation engine
Risk scoringEntity validation completeRisk assessment
Contradiction reviewCross-source contradiction detectedLead analyst
Sanctions screeningNew person/company entityPlatform (automated)

Manual Tasks (created by analysts):

  • Deep-dive investigation on specific entity or finding
  • External source consultation (e.g., contacting registry directly)
  • Legal review of specific document or filing
  • Expert opinion request for specialized domain

Task Prioritization

Tasks are prioritized using a composite scoring model that considers:

FactorWeightDescription
Entity importance0.30Primary target entities receive highest priority
Risk indicator0.25Tasks related to flagged risk indicators are elevated
Deadline proximity0.20Tasks with approaching deadlines are prioritized
Dependency count0.15Tasks that block other tasks are prioritized
Analyst capacity0.10Tasks assigned to available analysts are prioritized

Parallel Execution

The workflow engine leverages Elixir/OTP concurrency to execute independent tasks in parallel. Entity enrichment across multiple OSINT sources runs concurrently, and independent entity investigations within the same case proceed simultaneously. The platform monitors task completion and triggers downstream tasks as their dependencies are satisfied.

Hierarchical Case Organization

Complex investigations, particularly M&A due diligence engagements, often involve multiple investigation targets with distinct scopes. The case management system supports hierarchical case organization:

Parent Case: M&A Due Diligence - Acquisition of Target Group
    |
    +-- Child Case: Target Company A (primary target)
    |       |-- Entity Graph: 47 entities, 128 relationships
    |       |-- Risk Assessment: B+ (720/900)
    |       |-- Status: ANALYZING
    |
    +-- Child Case: Subsidiary B (material subsidiary)
    |       |-- Entity Graph: 23 entities, 56 relationships
    |       |-- Risk Assessment: A- (810/900)
    |       |-- Status: REVIEWING
    |
    +-- Child Case: Key Person Investigation (CEO, CFO)
    |       |-- Entity Graph: 12 entities, 34 relationships
    |       |-- Risk Assessment: In progress
    |       |-- Status: COLLECTING
    |
    +-- Child Case: IP and Technology Assessment
            |-- Entity Graph: 8 entities, 15 relationships
            |-- Status: SCOPED

Parent cases aggregate risk assessments from child cases, providing a consolidated view of the overall investigation. Child cases maintain independent lifecycles and can advance through states independently of each other.

Access Control Model

Role-Based Access Control

The case management system implements RBAC with four defined roles:

RolePermissionsTypical User
Case CreatorCreate cases, define scope, assign analysts, cancel casesSenior analyst, partner
Lead AnalystFull investigation access, entity management, risk scoring, report draftingAssigned investigation lead
AnalystView case data, add notes, create manual tasks, contribute findingsTeam member
ReviewerView all case data, approve/reject transitions, add review commentsSenior analyst, compliance officer

Data Isolation

Case data is strictly isolated. An analyst assigned to Case A cannot access entity data, findings, or risk assessments from Case B unless they are also assigned to Case B. This isolation extends to:

  • Database-level row security on entity records
  • Case-scoped search indexes in Meilisearch
  • Case-filtered graph queries in KuzuDB
  • Case-scoped audit trail entries

Audit Trail

Every action within a case generates an immutable audit trail entry. The audit trail captures:

  • Who: User or system process that performed the action
  • What: Specific action taken (entity created, source queried, note added, state transition)
  • When: UTC timestamp with microsecond precision
  • Context: Case ID, entity ID, and any additional contextual data
  • Justification: For state transitions and manual overrides, the recorded justification

The audit trail is append-only and cannot be modified or deleted, satisfying regulatory requirements for investigation record-keeping.

Collaboration Features

Real-Time Collaboration

Built on Phoenix LiveView, the case management interface provides real-time collaboration features:

  • Live entity updates: When one analyst enriches an entity, all other case participants see updated data immediately
  • Concurrent note editing: Multiple analysts can add notes to the same entity simultaneously
  • Real-time status: Case dashboard shows current status, active tasks, and analyst activity
  • Notifications: Configurable notifications for state transitions, contradiction alerts, and task assignments

Investigation Notes

Analysts can attach structured notes to cases, entities, relationships, or individual findings. Notes support:

  • Rich text formatting for detailed analysis narratives
  • File attachments for supporting documents
  • Tagging for categorization and search
  • Visibility controls (private to analyst, shared with case team, shared with reviewers)
  • Threading for discussion on specific findings

Evidence Collection

The evidence collection system captures and organizes all investigative evidence:

Evidence TypeSourceStorage
Registry recordsAutomated OSINT collectionStructured entity data
DocumentsManual upload or registry downloadDocument store with metadata
ScreenshotsAnalyst-captured web evidenceImage store with annotations
NotesAnalyst observations and analysisNote database with threading
External reportsThird-party intelligence reportsDocument store with provenance

All evidence carries chain-of-custody metadata documenting who collected it, when, from what source, and how it was processed.

Reporting System

Report Types

The platform generates several report types from case data:

Report TypeAudienceFormatContent
Executive SummaryDecision-makersPDF, 2-5 pagesKey findings, risk rating, recommendation
Detailed DD ReportLegal/compliancePDF, 20-50 pagesFull investigation narrative with evidence
Risk AssessmentRisk committeePDF/HTMLDimensional risk scores with supporting data
Entity ProfileAnalystsHTML/JSONComprehensive entity data with source attribution
Compliance MappingRegulatorsPDFFindings mapped to NIS2/ZKB requirements
Graph ExportTechnical reviewJSON/GraphMLFull relationship graph for external analysis

Report Generation Pipeline

Report generation follows a defined pipeline:

  1. Data Collection: Aggregate all verified findings, risk scores, and analyst notes from the case
  2. Template Selection: Choose appropriate report template based on report type and case category
  3. Content Generation: Populate template sections with case data, including tables, charts, and graph visualizations
  4. Quality Check: Validate report completeness against checklist (all entities covered, all risk dimensions scored, all contradictions documented)
  5. Review Insertion: Include reviewer comments and sign-off section
  6. Export: Generate final report in requested format(s)

Compliance-Mapped Reporting

For regulated industries, the reporting system maps investigation findings to specific regulatory requirements. The compliance module provides mapping templates for:

  • NIS2: Supply chain security assessment requirements
  • ZKB: Czech cybersecurity regulation entity verification
  • AML/KYC: Customer due diligence and enhanced due diligence
  • GDPR: Data processing impact assessments for investigated entities

Each compliance mapping identifies which investigation findings satisfy which regulatory requirements, creating a direct link between due diligence work and regulatory compliance.

Integration Points

The case management system integrates with all major platform subsystems:

SubsystemIntegration
Entity ManagementEntities exist within case scope; case drives enrichment
Graph AnalysisGraph traversals scoped to case entities
Risk AssessmentRisk scores computed per case; aggregated in parent cases
OSINT IntegrationSource queries triggered by case workflow engine
Triple-Check ValidationValidation pipeline processes case evidence
Compliance MappingRegulatory frameworks applied to case findings

Conclusion

The Case Management System transforms due diligence from an unstructured collection of research activities into a governed, auditable, and reproducible investigation process. By enforcing structured workflows, maintaining comprehensive audit trails, supporting collaborative analysis, and generating compliance-mapped reports, the system ensures that every Prismatic due diligence investigation meets the evidentiary and procedural standards required by regulators, legal counsel, and corporate decision-makers.

References


Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL