Capstone requirements and architecture
What you need to know
The enterprise capstone combines public learning content, private member progress and editorial workflow. Begin by writing route, data and trust contracts before choosing infrastructure.
By the end, you can: define trust boundaries and routes; compare two deployment variants.
Trust boundary and data flow
Public browser -> public catalog page -> published projectionMember browser -> session verification -> scoped DAL -> progress transactionEditor -> permission check -> publication transaction -> invalidation outboxRuntime -> redacted logs; database remains privateExpected behavior: Every private operation crosses a verified identity and permission boundary. Public paths never query draft content.
How it works
River Learning is a fictional learning platform. Anyone may read the published catalog. A verified member may read and update only their own progress for published lessons in their tenant. An editor may preview and publish tenant drafts only through authorized operations. The core lab implements the public catalog and progress service, with editorial publishing as a tested SQLite workflow and a staged integration extension. A public lesson response contains title, slug and summary only. The dashboard exposes progress, not raw account or audit fields. Use English-only routes and metadata; reserve future locale expansion but do not claim nonexistent translations. For simplicity use App Router, Cache Components disabled, public catalog prerendered from reviewed fixtures, private dashboard request-time, and no shared private cache. A managed Next.js host can reduce server maintenance, but verify cache, database, runtime and pricing contracts. A standalone Node/container variant gives more infrastructure control and requires proxy, shared cache coordination, health and rollout work. Neither is automatically cheaper or more reliable. No real account or data is needed.
Route ownership and freshness
{ "/": "public", "/learn/[slug]": "public published only", "/dashboard": "verified member, no shared cache", "/api/progress": "verified member, scoped mutation", "/editor": "authorized preview extension", "/sitemap.xml": "published English URLs only"}Expected behavior: Each route has a separate data and authorization contract. The editor UI is an extension, not a completed runtime feature.
Common mistake
Do not force multilingual content, payments, microservices or Cache Components into a project whose core requirements do not need them. Keep mock identity isolated from deployment.
Practice and verification
Use the capstone requirements document to define measurable acceptance criteria. Choose managed or standalone hosting, and justify the choice using operations, consistency, cost assumptions and rollback responsibilities.
Scope: Proposed Next.js 16.x / React 19; App Router, Cache Components disabled unless noted. Framework and browser examples are staged, not executed. No exact patched dependency release or live deployment verified.