CleverCase

System Design

CleverCase V2 container architecture, request flow, data model, AI integration, and security layers

System Design

CleverCase V2 is a standalone tenant client of the Rakontevr platform. The Next.js app, Gladys agent rail, Prisma data layer, and Rusakov Shield posture compose a legal practice management surface that calls the platform over authenticated HTTP only.

Technical stack

LayerTechnologyNotes
FrameworkNext.js 16 App RouterPort 3001 in dev
UIReact 19, Tailwind CSSResponsive, mobile-first
ORMPrisma 6~100 models in prisma/schema.prisma
ValidationZodRequest/response schemas on domain routes
AuthCC OAuth JWT + Azure EntraresolveTenantContext is server-trusted
AIGladys → Iorek via GatewayBFF keeps service key server-side
ComplianceShield V2SOC 2, HIPAA, ABA 1.6 posture
CI/CDGitHub Actions → GHCR/ECRDocker multi-stage ARM64 builds

High-level architecture

Request flow

Core data model

AI integration

Security layers

On this page