How shajeeve567/custodian---client-life-cycle-management-platform works
Custodian is a client lifecycle management platform. Users authenticate and work through client portals or staff workspaces to manage engagements, next actions, conditions, readiness, documents, and interventions; reporting and audit provide oversight. The backend separates identity, workflow, documents, and audit services, with a React frontend and shared contracts/messaging. Workflow owns engagement access and lifecycle decisions; Documents checks access through Workflow. README documents event messaging from Workflow and Documents through Kafka-compatible Event Hubs to Audit. Unsampled subsystems are shown where the tree or README establishes them; dashed links mark relationships not verified in excerpts.
Main entry points: DocumentsController.cs Document operations · api.ts API client · EngagementsController.cs Engagement operations · App.tsx Application routes
Components 25
Frontend
- Application routes
frontend/src/App.tsx - Login and registration
frontend/src/pages/AuthPage.tsx - Session context
frontend/src/context/AuthContext.tsx - API client
frontend/src/services/api.ts - Client portal
frontend/src/components/ClientPortalView.tsx - Staff workspace
frontend/src/pages/WorkspacePage.tsx
Identity
- Identity endpoints
backend/src/services/Identity/Controllers/AuthController.cs - Identity and tenant data
backend/src/services/Identity/Data/UsersData/UserAccountRepository.cs
Lifecycle workflow
- Engagement operations
backend/src/services/Workflow/Controllers/EngagementsController.cs - Client actions
backend/src/services/Workflow/Controllers/ClientActionsController.cs - Next-action orchestration
backend/src/services/Workflow/Services/NextAction/NextActionService.cs - Readiness and gates
backend/src/services/Workflow/Services/ReadinessService.cs - Stall management
backend/src/services/Workflow/Services/StallDetectionService.cs - Engagement records
backend/src/services/Workflow/Data/WorkflowDbContext.cs
Documents
- Document operations
backend/src/services/Documents/Controllers/DocumentsController.cs - Compliance rules
backend/src/services/Documents/Compliance/ComplianceRuleEngine.cs - Document storage
backend/src/services/Documents/Services/BlobStorageService.cs - Document records
backend/src/services/Documents/Data/DocumentDbContext.cs
Audit and shared
- Audit event API
backend/src/services/Audit/Controllers/AuditEventsController.cs - Event ingestion
backend/src/services/Audit/Services/Kafka/KafkaAuditEventConsumer.cs - Engagement hash chain
backend/src/services/Audit/Services/HashChain/HashChainService.cs - Audit event store
backend/src/services/Audit/Data/AuditDbContext.cs - Service reports
backend/src/services/Audit/Services/Reports/ProofOfDeliveryReportService.cs
Other components
- Client or staff
- Kafka-compatible Event Hubs
Connections 27
- Client or staff → Application routes: uses
frontend/src/App.tsx - Application routes → Login and registration: routes to
frontend/src/App.tsx - Application routes → Client portal: routes to
frontend/src/App.tsx - Application routes → Staff workspace: routes to
frontend/src/App.tsx - Login and registration → Session context: uses session
frontend/src/pages/AuthPage.tsx - Session context → API client: sets unauthorized handler
frontend/src/context/AuthContext.tsx - Client portal → API client: requests data
frontend/src/components/ClientPortalView.tsx - Staff workspace → API client: requests data
- API client → Identity endpoints: logs in
frontend/src/services/api.ts - API client → Engagement operations: calls workflow
frontend/src/services/api.ts - API client → Document operations: uploads documents
frontend/src/services/api.ts - Identity endpoints → Identity and tenant data: persists accounts
- Engagement operations → Engagement records: reads engagements
backend/src/services/Workflow/Controllers/EngagementsController.cs - Engagement operations → Next-action orchestration: gets next action
backend/src/services/Workflow/Controllers/EngagementsController.cs - Engagement operations → Readiness and gates: gets readiness
backend/src/services/Workflow/Controllers/EngagementsController.cs - Client actions → Stall management: gets stall status
backend/src/services/Workflow/Controllers/ClientActionsController.cs - Document operations → Engagement records: checks engagement access
- Document operations → Document storage: stores files
backend/src/services/Documents/Controllers/DocumentsController.cs - Document operations → Compliance rules: validates compliance
- Document operations → Document records: persists metadata
- Engagement operations → Kafka-compatible Event Hubs: publishes events
- Document operations → Kafka-compatible Event Hubs: publishes events
- Kafka-compatible Event Hubs → Event ingestion: delivers events
- Event ingestion → Engagement hash chain: adds hash chain
- Engagement hash chain → Audit event store: stores chained events
- Audit event API → Audit event store: queries audit events
- Service reports → Audit event store: reads report data