Own the FastAPI control plane as the product source of truth.
src/api/main.py
src/api/routes/**
src/api/services/**
src/api/models/**
src/api/database.py
route correctness and ownership enforcement
schema and model alignment
service extraction when handlers get too thick
duplicate path removal
explicit status codes and predictable payloads
duplicated waitlist/newsletter logic
unmounted or stale runtime routes
startup-time OpenAPI file mutation
deployment and agent lifecycle semantics
ruff check src/api
python -m compileall src/api
targeted pytest where fixtures allow it
trust mounted routes over docs
do not casually introduce /v1
/v1
if payloads change, notify CLI/SDK, frontend, tests, and docs owners
Last updated 5 hours ago