Skip to main content

Retrieva — DORA Third-Party Risk Management Platform

Welcome to the Retrieva documentation. Retrieva is a DORA third-party ICT risk-management platform for financial entities. Its spine is an agentic, human-gated assessment workflow running over a live Register of Information — AI drafts the analysis, a human decides, and every decision lands in an auditable register. It covers the DORA third-party lifecycle end to end: building the register of contractual arrangements, assessing providers against the regulation, surfacing concentration and nth-party risk, tracking remediation, and exporting the EBA templates.

What Retrieva does​

Under DORA (Regulation EU 2022/2554 — Digital Operational Resilience Act), Retrieva gives compliance and risk teams:

  • Register of Information — a live register of ICT contractual arrangements (provider → business function → ICT service, with criticality tiers and nth-party edges). Built by AI-assisted contract intake (the model proposes an arrangement from an uploaded contract; a human confirms) and bulk estate import (CSV/Excel), governed by a versioned, CIF-keyed control library.
  • Agentic assessment runs — a deterministic LangGraph supervisor orchestrates each assessment (intake → gap → findings), delegating the gap analysis to a CrewAI crew over A2A. Runs are resumable (Postgres checkpointer), traced in Langfuse, and monitored live.
  • Human-in-the-loop governance — nothing authoritative is written without sign-off. A decision inbox (cross-arrangement AI-draft queue) and an approval center (run-gate approvals) enforce review, with separation-of-duties on resume. An approved gap is routed to the owning party (security / DPO / legal / ICT-risk), escalating to the management-body delegate on a severe critical/important finding, and the holders are notified. AI drafts, human decides.
  • Concentration & nth-party risk — model critical function → provider → sub-provider and answer "if this provider fails, which functions stop, and where are we over-concentrated?" (DORA Art 28(4)/29).
  • Register data-quality (ESA) — beyond "is the field present?", the register is validated against the ESA/EBA data-quality families it's filed against (ITS 2024/2956): LEI (ISO 17442 + ISO 7064 checksum), ISO 3166 country, and cross-template referential integrity — each finding traced to the regulation.
  • Risk register & remediation — findings derive risks with a lifecycle (open → mitigating → mitigated → accepted → closed) and management-body risk acceptance.
  • Vendor questionnaires & evidence portal — auto-generate and LLM-score security questionnaires (0–100); collect evidence from vendors against a DORA evidence checklist.
  • Compliance AI copilot — ask compliance questions in natural language; a governed RAG pipeline searches your documents and the DORA knowledge base, with citations.
  • Audit readiness — a tamper-evident, on-demand evidence pack per arrangement + a readiness dashboard (overdue reassessments, evidence freshness, register coverage, upcoming deadlines).
  • Monitoring & triggers — automated 24-hour alerts (certification expiry, contract renewal, overdue reviews, stale assessments) and event-driven reassessment: a material change on re-ingestion (subprocessor added/removed, data-residency move) reopens the arrangement for a fresh assessment.
  • Multi-tenant & multi-legal-entity — workspace + legal-entity isolation, RBAC, MFA, field-level encryption, and full LLMOps observability.

How an assessment flows​

How a Retrieva assessment flows

Build the register (AI-proposed arrangement, human-confirmed) → run the deterministic LangGraph supervisor (intake → human gate → gap analysis via a CrewAI crew over A2A → findings, resumable via a Postgres checkpointer, traced in Langfuse) → a human decides in the decision inbox / approval center (separation-of-duties, live over Socket.io) → the register projection, risk register, concentration graph and EBA RT.01–RT.04 export. The diagram is generated from code.

The multi-agent system​

Retrieva multi-agent assessment system

A supervisor/worker (hierarchical) multi-agent system — not one LLM in a loop. A deterministic LangGraph-JS supervisor (retrieva-backend, TypeScript) delegates one bounded sub-task to a collaborative CrewAI crew of three sequential agents — clause mapper → gap analyst → control scorer (retrieva-assessment-crew, Python) — over the open A2A protocol (JSON-RPC 2.0 message/send). The crew's output is proposed, never authoritative: the supervisor's interrupt() human gate decides, and halt-on-doubt blocks a low-confidence run. The diagram is generated from code; the request/response round-trip is detailed in Architecture → Agentic Assessment Orchestrator §3.2.

Key features​

Register of Information (the arrangements domain)​

The register is a first-class domain, not just an export. Arrangements link provider → business function → ICT service with criticality tiers; a live RT.02.01 projection (GET /api/v1/register) renders the EBA view on demand. Arrangements are created by AI-assisted contract intake (human-confirmed) or bulk estate import, and move through a lifecycle with periodic re-assessment cadence.

Agentic assessment orchestration​

A deterministic LangGraph StateGraph supervisor runs each assessment — deterministic routing only (no free-form ReAct/tool-calling), halt-on-doubt, and a human gate before anything authoritative. The gap-analysis node is delegated to a deployed CrewAI crew over A2A (JSON-RPC). Runs persist via a Postgres checkpointer (resumable) and emit a per-run Langfuse trace.

Human-in-the-loop governance​

Two surfaces keep a human in the loop: a decision inbox that merges AI-drafted findings and open risks into one queue (most-uncertain / most-severe first), and an approval center that gates assessment runs by runId + gate. Separation-of-duties is enforced on resume, and the run monitor streams live progress over Socket.io. When a checker approves a gap, intelligent routing assigns the remediation to the owning party by control domain (security / DPO / legal / ICT-risk) — escalating to the management-body delegate (group_risk) on a high/critical finding on a critical-or-important function — and notifies the holders of that role; the inbox is filterable by "my role".

Intelligent RAG copilot​

User Question → Query Rephrasing → Vector Retrieval → Dedup + Reranking
→ Context Compression → LLM Generation → Answer Validation (LLM judge)

DORA gap analysis​

The assessment worker analyses vendor ICT documentation against DORA articles and classifies coverage per article:

File Upload → Parse (PDF/DOCX/XLSX) → Semantic Chunking → Embed to Qdrant
→ LLM Gap Analysis per DORA Article → covered / partial / missing

Concentration & nth-party risk​

A dashboard + scoring engine over the critical function → provider → sub-provider graph (with AI-extracted sub-provider edges, human-confirmed) surfaces single-points-of-failure and over-concentration for DORA Art 28(4)/29.

Register data-quality (ESA checks)​

The register-completeness audit validates the Register of Information against the ESA/EBA data-quality families it's filed against (ITS 2024/2956), not just field presence: LEI (ISO 17442 structure + ISO 7064 mod 97-10 checksum), country (ISO 3166-1 alpha-2), and cross-template referential integrity (an arrangement's maintaining entity/provider and every nth-party edge must resolve). Each finding carries its check id + ITS reference, so a gap is traceable to the rule and the regulation.

Audit readiness​

For an auditor/regulator, Retrieva produces evidence on demand: a tamper-evident evidence pack per arrangement (GET /api/v1/reportability/audit-pack/:arrangementId) that bundles the arrangement, its reportability determinations, findings, risks, register gaps and immutable audit trail into one dossier with a content-only integrity hash (stable across re-generation); and a readiness dashboard (GET /api/v1/reportability/dashboard) of overdue reassessments, evidence freshness, register coverage and upcoming deadlines.

Automated compliance monitoring + event-driven triggers​

A BullMQ repeatable job runs every 24 hours and emails alerts to workspace owners:

  • Certification expiry — 90 / 30 / 7 day thresholds
  • Contract renewal — 60 days
  • Annual review overdue
  • No assessment in 12 months

Alongside this time-driven cadence, Retrieva also reassesses on change: when a re-ingested contract shows a material change — a subprocessor added/removed, or a data-residency move — the arrangement is reopened for a fresh assessment (the start_review change trigger), recorded in the immutable audit trail.

EBA Register of Information export​

GET /api/v1/workspaces/roi-export generates a 4-sheet XLSX workbook — the output of the arrangements domain above:

SheetContent
RT.01.01 SummaryInstitution summary + vendor counts by criticality tier
RT.02.01 ICT ProvidersOne row per vendor with contract, country, service type, tier, scores
RT.03.01 CertificationsOne row per certification per vendor
RT.04.01 Gap SummaryOne row per DORA gap from the latest complete assessment

Multi-layer security​

  • JWT-based authentication with refresh tokens + MFA
  • Workspace RBAC (owner, member, viewer) + organisation/domain roles; legal-entity (branch) isolation
  • Database-level tenant isolation (every query scoped to the caller's workspace)
  • LLM output guardrails and confidence-based hallucination blocking (+ PII scanning)
  • AES-256-GCM field-level encryption for sensitive data at rest

Tech Stack​

LayerTechnology
BackendExpress 5, Node.js 20+
AI OrchestrationLangChain (LCEL chains, prompts, parsers) + LangGraph supervisor (Postgres checkpointer)
Agent interopCrewAI assessment crew delegated over A2A (JSON-RPC)
LLMAll calls routed through the LiteLLM gateway (OpenAI-compatible /v1); the gateway owns provider routing (Ollama Cloud, Azure OpenAI, Bedrock…), key rotation, fallbacks, PII masking and budgets. Model/intent alias chosen per purpose via LLM_MODEL / LLM_<purpose>_MODEL
EmbeddingsSelf-hosted Ollama bge-m3:latest (1024-dim, 8192-token context); OpenAI text-embedding-3-small cloud fallback
Vector StoreQdrant
DatabasePostgreSQL (Drizzle ORM)
Cache / QueueRedis, BullMQ
Real-TimeSocket.io
FrontendNext.js 16, React 19, TypeScript
UI Componentsshadcn/ui, Tailwind CSS
MonitoringLangfuse (LLM traces + cost) · Prometheus / Grafana
BillingStripe
Exportxlsx (XLSX workbook generation)

Architecture Overview​

Retrieva architecture overview

Browser (SSO) → Next.js frontend → Express 5 API (JWT · RBAC · per-workspace isolation) → capability services (RAG/Copilot, Assessment orchestrator, Questionnaire, Arrangements/RoI, Concentration, Risk) and BullMQ workers (ingest, questionnaire, 24h monitoring) → datastores (Qdrant vectors · PostgreSQL · Redis). All LLM/embedding calls go through the governed LiteLLM gateway, traced in Langfuse. The diagram is generated from code so it never drifts. For the detailed C4 container view, see Architecture → Solution Architecture.

Build history​

Retrieva grew from a RAG copilot into the agentic TPRM platform above. The original four delivery phases are the foundation layer:

PhaseFeatureStatus
Phase 1DORA Copilot foundation — knowledge ingestion, vector search, conversational Q&A✅ Production
Phase 2Vendor document upload (PDF, DOCX, XLSX); DORA gap assessment UI✅ Production
Phase 3Vendor questionnaires with LLM scoring✅ Production
Phase 4Monitoring alerts + Register of Information export✅ Production
TPRM v1Arrangements/Register domain · agentic assessment runs · human-in-the-loop governance · concentration & nth-party risk · risk register · evidence portal✅ Shipped
DORA conformance (P0–P4)Pre-contract activation gate · graduated risk-acceptance delegation · intelligent finding routing · event-driven reassessment triggers · ESA register data-quality checks · audit-readiness dashboard + evidence packs✅ Shipped — see DORA workflow conformance