Part C — Platform Architecture: Colophon
⚠ STACK-DECISION CURRENCY BANNER — ADR-0003 (supersedes ADR-0002), Primary Steward verdict, 2026-06-26.
Frontend: Next.js (React) — one app, all audiences. ERP pages: Server Components (data-sovereign). Donor/Audit/Board: Client Components. Public: SSG. Backend: FastAPI · PostgreSQL · asyncpg raw SQL, no ORM (Backend Option D). Source of truth:03_PLATFORM/docs/decisions/ADR-0003-Greenfield-Stack-Decision.md.
Part C of Book II has established the constitutional substrate on which the domain model of the Vaishvika Gauranga Samaja Foundation operates. Across six chapters, it has constituted the platform from its philosophical ground to its operational envelope: the ten G8 Platform Laws and nine G9 Constitutional Technical Laws that govern every future application, screen, workflow, and federation capability; the database architecture — PostgreSQL constitutionally mandated, schema-per-domain isolation, Row-Level Security enforcing entity sovereignty, the No-Delete Trigger enforcing the permanence doctrine at the database layer, and the registry governance model eliminating free-text classification; the Hybrid Constitutional Architecture of the backend service layer, with PROHIB-001 as the single most consequential doctrine, the universal audit middleware, and the six API categories constituting the permanent constitutional contract; the frontend architecture with the Next.js App Router — Server Components + Client Components model (ADR-0003, superseding the prior HTMX + Jinja2 model of ADR-0002) — one application for all audiences: React Server Components for ERP pages (authorization enforced server-side; raw financial records never exist as client-side JavaScript state), Client Components for interactive portal sections (donor dashboard, audit data exploration), SSG for public pages; the five-layer navigation doctrine, the Universal Object Workspace, the eight-tier dashboard hierarchy, the five maturity stages governing what capabilities appear when, and the Design System Constitution with its frozen lifecycle status colors; the security and authority architecture, with AGBAC as the technical expression of REF008, the Four-Eyes Doctrine enforcing financial separation of duties at the service layer, the ten AI Constitutional Laws preserving human authorization at every stage of AI augmentation, and the adversarial audit record confirming the platform's constitutional soundness; and the deployment architecture, with five deployment levels matching infrastructure to institutional maturity (M1 topology: Nginx → Next.js frontend:3000 → FastAPI backend:8001 → PostgreSQL), the Constitutional Archive as the permanent cold-storage guarantee of institutional memory, and the self-hostability constitution affirming that no external provider may hold the entity's data sovereignty as a condition of continued operation.
Part C having established the constitutional substrate on which VGSF's domain model operates — database, API, frontend, security, authority, and deployment — Part D now turns to the module architecture: the 56 application modules that run on this platform, implementing the operational capabilities through which the certified constitutional domain model serves the institutional mission of the Vaishvika Gauranga Samaja Foundation.
Compiled by CAP-BOOK2-001 (R-ARCH) — 2026
