Platform-v2 step 2.99a. After 2.6 no frontend calls these any more:
- POST /api/auth/login needs `client` (manager/waiter/terminal); the no-`client`
path with v1 rules and the `legacy_manager` single-session exception are gone.
- GET /api/setup/security-config (bootstrap's `login` replaced it in 2.6b).
- POST /api/recovery/use (a recovery code works in the normal login's
password field).
- PUT /api/waiters/{id}/permission and /reset-permissions (the permission editor
saves keys with PUT /{id}/permissions); staff create/update ignore perm_* fields.
- The v1 perm_* projection: core/access/legacy.py deleted, UserOut carries only
`permissions` (no app reads the 13 booleans, waiter included).
e2e manager login sends client "manager"; smoke_routes too. Backend 281 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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; AUTOINCREMENT survives batch rebuilds; the schema is built only by Alembic; v1 databases are refused; revision data backfills | steps 1.0, 1.1 |
test_no_naive_time.py |
No datetime.utcnow/datetime.now, date.today(), argument-less .astimezone(), tz-less fromtimestamp, or Column(DateTime outside core/timeutil.py |
step 1.1 |
test_route_access.py |
Every route declares require(...), require_device(...) or public() |
step 1.5 (placeholder until then) |