Architecture Overview
The Problem
Korea’s social service industry — child rehabilitation, welfare, education, pharmacy — still runs on fragmented legacy systems.| Reality | Consequence |
|---|---|
| Each center adopts separate solutions | Data silos, duplicate investment |
| Manual records + spreadsheets | No audit trail, compliance risk |
| AI adoption attempts | No decision provenance, trust failure |
| Voucher/policy changes | Manual updates, errors, revenue leakage |
The Solution
Cronozen is a full-stack platform with Decision Proof Unit (DPU) as its core primitive. Three design principles:- Provable Decisions — Every AI recommendation is sealed in a DPU envelope with evidence, confidence scores, risk levels, and approval chains
- One Backend, Infinite Context — Rehab centers, welfare agencies, pharmacies all run on the same infrastructure with fully isolated tenant contexts
- Policy as Runtime — National, regional, and center-level policies are automatically applied at runtime with temporal validity
Hub-and-Spoke Ecosystem
OPS Hub
The central hub manages all cross-cutting concerns:- SSO — Single sign-on via
auth.cronozen.com - Payments — Toss Payments, subscription management, billing
- Tenant Master — Center/workspace provisioning and lifecycle
- DPU — Decision Proof Unit with SHA-256 hash chains
- 7 Verticals — Rehabilitation, welfare, education, pharmacy, commerce, mentoring, interior
Spoke Services
| Service | Domain | Focus |
|---|---|---|
| LMS | learn.cronozen.com | Learning engine, HRD-Net compliance, EMON |
| CMS | blog.cronozen.com | Blog, manuals, content management |
| ERP | erp.cronozen.com | Business management (Odoo-based) |
| Docs | docs.cronozen.com | Developer documentation (Mintlify) |
7 Verticals
All verticals share the same codebase, differentiated by tenant configuration:| Code | Vertical | Description |
|---|---|---|
| Rehab | Child Rehabilitation | Voucher-based therapy session management |
| Welfare | Welfare Benefits | Benefit application, processing, settlement |
| Edu | Education Centers | Enrollment, curriculum, attendance |
| Pharmacy | Pharmacy | Prescription tracking, inventory |
| Market | Commerce | Coupons, promotions, local economy |
| Mentoring | Mentoring | Expert matching, session tracking |
| Interior | Interior | Space design, construction management |
Tech Stack
| Layer | Technology |
|---|---|
| Frontend | Next.js 16, TypeScript, Tailwind CSS |
| Backend | Next.js API Routes (134+), Prisma 6.18 |
| Database | PostgreSQL (pgvector), Redis |
| Auth | JWT, SSO, multi-tenant session |
| AI | Multi-provider (OpenAI, Claude, Gemini) |
| Infra | AWS ECS Fargate, ECR, S3, CloudFront |
| DNS/CDN | CloudFlare |
| CI/CD | GitHub Actions |
Data Flow
Deployment Strategy
| Branch | Environment | URL | Auto-deploy |
|---|---|---|---|
develop | Staging | stg.cronozen.com | Yes |
main | Production | cronozen.com | Yes |
develop → staging, main → production.
Security Architecture
- Tenant Isolation: Row-level via
center_idscoping in Prisma middleware - Auth: JWT with multi-tenant context, actor family linking
- Audit: Append-only logs, 12 event types,
basePrismausage audited - Cron: All 39 cron routes require
verifyCronSecret() - Data Access: All center access through
center_membershipsonly — no backdoor
For deep dives into specific subsystems, see Multi-Tenant Architecture, DPU Engine, and Proof Pipeline.