git:20260331.a8cec9f to git:20260401.b1f912e

34 added, 42 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
- name: "serverpod"
- description: "Serverpod backend framework for full-stack Dart development with PostgreSQL, Redis, and Docker. Use when building type-safe API endpoints, configuring Serverpod auth, or deploying Dart backend infrastructure."
+ name: "developing-serverpod-backend"
+ description: "Develops full-stack Dart backends using the Serverpod framework with PostgreSQL, Redis, and Docker. Use when building type-safe API endpoints, defining YAML data models, configuring Serverpod auth, writing server-side tests, running database migrations, deploying to Docker/AWS/GCP, or using Serverpod Mini for database-less BFF proxy endpoints."
metadata:
- last_modified: "2026-03-12 11:18:17 (GMT+8)"
+ last_modified: "2026-04-01 14:35:00 (GMT+8)"
---
# Serverpod Architecture & Development Guide
## Overview
- Design and construct robust full-stack architectures utilizing Serverpod. The immaculate quality characterizing a Serverpod implementation is measured heavily by its absolute native type safety, backend scalability, security handling protocols, and seamless universal client integration traversals.
+ Serverpod splits projects into three modules: `server`, `client`, and `shared`. Models defined in `.spy.yaml` files generate type-safe Dart classes and database migrations via `serverpod generate`.
---
# Process
- ## ๐Ÿš€ High-Level Workflow
-
- Creating an elite enterprise-grade Serverpod application involves three primary phases:
+ ## High-Level Workflow
- ### Phase 1: Deep Research and Core Modeling
+ ### Phase 1: Research & Modeling
- #### 1.1 Understand Serverpod Project Structure
- Discover comprehensively how Serverpod splits source code orchestrating distinct `server`, `client`, and `shared` modules. Maintain strict overarching separation of concerns, ensuring core endpoint internal logic universally never leaks exposing vulnerabilities externally.
+ #### 1.1 Understand Project Structure
+ Serverpod separates code into `server`, `client`, and `shared` modules. Endpoint logic lives in `server`; generated client code goes into `client`.
- #### 1.2 Define Structural Data Models
- **YAML Schema Definition:**
- Craft strictly typed pristine database models deploying `.spy.yaml` configurations. Generate pure Dart classes traversing bridging database schemas automatically executing `serverpod generate` routines. Ensure relational database tables strictly deploy proper explicit foreign keys mappings.
- - [๐Ÿ—๏ธ Core Architecture & Models Guide](./references/core-and-models.md) - Designing initial classes arrays and structuring project hierarchies securely.
+ #### 1.2 Define Data Models
+ Define database models using `.spy.yaml` files, then run `serverpod generate` to produce Dart classes and database migrations. Use explicit foreign key mappings for relational tables.
+ - [Core Architecture & Models Guide](./references/core-and-models.md) - YAML model definitions, project structure, and relationship mapping.
---
- ### Phase 2: Implementation & Endpoint Formulations
+ ### Phase 2: Implementation
#### 2.1 Develop Endpoints
- Author business logic completely securely housed inside autonomous endpoint classes natively. Capitalize significantly embracing persistent session parameters, massive caching integrations, and exploiting Serverpod's profound native JSON continuous serialization protocols efficiently.
- - [๐Ÿ”Œ Endpoints & Database Guide](./references/endpoints-and-database.md) - Composing complex relational queries executing robust data-integrity transactions properly.
+ Implement business logic inside endpoint classes. Use session parameters for authentication context, built-in caching, and native JSON serialization.
+ - [Endpoints & Database Guide](./references/endpoints-and-database.md) - Typed ORM queries, transactions, and API endpoint patterns.
- #### 2.2 Implement Authentication and Concurrency Scaling
- **Identity Management:**
- Implement unbreachable token-based authentication seamlessly operating via the native autonomous Serverpod Auth structural module natively.
- **Redis Caching Protocol Deployments:**
- Aggressively offload repetitive redundant brute-force database polling queries exploiting Redis configurations enabling monumental massive instantaneous concurrency scaling properties globally.
- - [๐Ÿ” Authentication & Caching Guide](./references/auth-and-caching.md) - Integrating rigorous comprehensive security and Redis caching implementations dynamically.
+ #### 2.2 Authentication & Caching
+ Use the `serverpod_auth` module for token-based authentication. Configure Redis for caching to reduce repeated database queries.
+ - [Authentication & Caching Guide](./references/auth-and-caching.md) - `serverpod_auth` setup, endpoint protection, and Redis caching.
- #### 2.3 Explore Database-less Backend Solutions (BFF Protocols)
- If solely necessitating securing intermediary proxy endpoints (Backend-For-Frontend) without mandating hosting extensive persistent PostgreSQL databases arrays comprehensively, forcefully deploy Serverpod Mini integrations gracefully.
- - [โšก Serverpod Mini Guide](./references/serverpod-mini.md) - Establishing wildly lightweight database-less autonomous API generational architectures dynamically securely!
+ #### 2.3 Database-less Backends (Serverpod Mini)
+ Use Serverpod Mini when you only need proxy/BFF endpoints without a PostgreSQL database.
+ - [Serverpod Mini Guide](./references/serverpod-mini.md) - Lightweight API routing without database dependencies.
---
- ### Phase 3: Deployment & Operations
+ ### Phase 3: Deployment
- #### 3.1 Dockerization and Orchestration Matrices
- Confidently transition bridging local developmental instances scaling directly hitting ultimate production architectures. Establish massive `docker-compose` clusters orchestrating environment instances governing strictly secure password encryption handing procedures natively.
- - [๐Ÿณ Deployment & Docker Guide](./references/deployment-and-docker.md) - Composing elite production-ready operational configurations securing exhaustive containerization protocols successfully.
+ #### 3.1 Docker & Production
+ Use `docker-compose` to orchestrate local and production environments. Configure environment variables for credentials and connection strings.
+ - [Deployment & Docker Guide](./references/deployment-and-docker.md) - Production Dockerfiles, AWS/GCP deployment, environment configuration.
---
# Reference Files
- ## ๐Ÿ“š Documentation Library
-
- Extract mapping referencing these resources actively throughout your entire developmental lifecycle:
+ ## Documentation Library
### Core Framework (Load First)
- - [๐Ÿ“– Serverpod Overview](./references/overview.md) - Acquiring fundamental universal conceptual understandings, core setup environmental instructions, and resolving high-level major architectural blueprint decisions properly.
+ - [Serverpod Overview](./references/overview.md) - Setup, project structure, and architecture decisions.
- ### Schema and Logic Development (Load During Phase 1/2)
- - [๐Ÿ—๏ธ Core Architecture & Models Guide](./references/core-and-models.md) - Engineering YAML protocol models, charting exact structural relationships, and deeply decoding the primordial directory architecture map exclusively.
- - [๐Ÿ”Œ Endpoints & Database Guide](./references/endpoints-and-database.md) - Exploiting advanced strictly typed Object-Relational Mapping (ORM) and formulating impeccable interactive API structural endpoints natively.
- - [โšก Serverpod Mini Guide](./references/serverpod-mini.md) - Engineering secure proxy routing endpoints completely bypassing managing internal Postgres databases focusing entirely traversing independent logical configurations solely securely!
+ ### Schema and Logic (Load During Phase 1/2)
+ - [Core Architecture & Models Guide](./references/core-and-models.md) - YAML models, database schema, directory structure.
+ - [Endpoints & Database Guide](./references/endpoints-and-database.md) - ORM, typed queries, API endpoints.
+ - [Serverpod Mini Guide](./references/serverpod-mini.md) - Database-less proxy routing.
- ### Security, Scaling & Testing Orchestrations (Load During Phase 2/3)
- - [๐Ÿ” Authentication & Caching Guide](./references/auth-and-caching.md) - Harmonizing integrating natively deploying the `serverpod_auth` module array, locking down endpoints defensively, and dramatically scaling caching loads via profound Redis integrations effectively natively.
- - [๐Ÿณ Deployment & Docker Guide](./references/deployment-and-docker.md) - Migrating traversing comprehensive deployment infrastructures encompassing AWS/GCP, comprehensively managing environment configurations securely, and programming impregnable production Dockerfiles uniformly explicitly.
- - [๐Ÿงช Testing Guide](./references/serverpod-testing.md) - Establishing exhaustive isolated containerized database interactions invoking absolute functional endpoint simulations leveraging native auto-generated exact matching test protocols precisely gracefully seamlessly!
+ ### Security, Scaling & Testing (Load During Phase 2/3)
+ - [Authentication & Caching Guide](./references/auth-and-caching.md) - `serverpod_auth`, endpoint protection, Redis caching.
+ - [Deployment & Docker Guide](./references/deployment-and-docker.md) - AWS/GCP, Docker, environment management.
+ - [Testing Guide](./references/serverpod-testing.md) - Isolated database testing, endpoint simulation, auto-generated test utilities.