CLAUDE.md@demo ยท diff
git:20260923.45dec42 to git:20260923.e090a59
8 added, 8 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.
# Shop API
## Architecture
- - Route handlers must not touch the database directly. Go through a repository in `src/repo`.
- - Use the shared `apiFetch` wrapper for outbound HTTP. Never call `fetch` or an HTTP library directly.
- - Never add a new npm dependency. Use what is already in package.json.
+ - Route handlers must not touch the database. Use a repository in `src/repo`.
+ - Use the `apiFetch` wrapper. Never call `fetch` or an HTTP library directly.
+ - Never add an npm dependency. Use what is already in package.json.
## Data
- - Money is always an integer number of cents. Never use a float for money.
- - Migrations are append-only. Never edit an existing migration file.
+ - Money is integer cents. Never use a float for money.
+ - Migrations are append-only. Never edit an existing migration.
## Security
- - Every endpoint that reads user data must check the caller's authorization first.
- - Never log request bodies, tokens, or anything from the `Authorization` header.
+ - Every endpoint reading user data must check authorization first.
+ - Never log request bodies, tokens, or the `Authorization` header.
## Tests
- - Never skip, delete, or weaken a failing test to make the suite pass. Fix the cause.
+ - Never skip or weaken a failing test to get green. Fix the cause.
- Never cast to `any` to silence a type error.