# Guard tests (APPS_PLATFORM D-17) Tests that protect platform-wide rules rather than one feature. They must stay green; if one fails, fix the code, not the guard. Changing a guard's rule is a design decision: record it in APPS_PLATFORM ยง2 first. | File | Rule | Filled in | |---|---|---| | `test_migrations.py` | Models and Alembic revisions don't drift; the schema is built only by Alembic; v1 databases are refused | step 1.0 | | `test_no_naive_datetimes.py` | No `datetime.utcnow`, argument-less `now()` / `.astimezone()`, or `Column(DateTime` in backend code | step 1.1 (placeholder until then) | | `test_route_access.py` | Every route declares `require(...)`, `require_device(...)` or `public()` | step 1.5 (placeholder until then) |