Files
CatoandClaude be2f01859d docs: correct drift — evig host, /opt/evig box paths, email provider, CI smoke target (#573)
- Production host is evig.orangecat.ch everywhere a doc presents the current
  address; revampit.orangecat.ch is the retired 308 redirect.
- Box was renamed /opt/revampit -> /opt/evig (systemd evig-app, evig-cron@*,
  evig-backup, scripts/selfhost-deploy-evig.sh); docs and the Layer B list
  still named the old paths and a deploy script that no longer exists.
- CLAUDE.md claimed auth-smoke/inventory-smoke target the old host; CI now
  defaults PLAYWRIGHT_BASE_URL to evig.orangecat.ch, so the redirect has no
  CI coverage. Say so.
- Local dev DB is the Docker Postgres on 5433, not Neon.
- Email is Resend first (src/config/email.ts), not Listmonk/Brevo.
- README: no "Swiss-compliant donation receipts" while in formation; real
  test layout, eight locales, actual CI jobs.
- CONTRIBUTING / PR template / REVIEW: evig name, pnpm, Node 22.13+,
  messages/ path; no donate link to Revamp-IT.
- ARCHITECTURE_QUICK_START: drop the example that granted staff by e-mail.
- Payment setup docs: canonical webhook URLs plus a note on providers
  configured before the rename.


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 12:51:27 +02:00

1.9 KiB

REVIEW.md — evig review bar

Judge the DIFF against these gates, in order. Flag correctness and requirement gaps only — lint owns style. Global standards load via CLAUDE.md; this file is ONLY evig's scars.

Fatal invariants (one violation = block)

  1. drizzle-kit push is FORBIDDEN — schema changes go through generated SQL migrations in scripts/db/migrations/ (CI replays them against a throwaway Postgres). A push once broke CI for everyone; never again.
  2. is_revampit is a stored column (evig stock vs. P2P listing) — NEVER re-derive it, or staff status (users.is_staff), from the @revamp-it.ch email domain in queries or logic.
  3. Prod/dev DB split — no code path may point dev tooling at the prod DB; check connection-string provenance on anything touching DB_* env.
  4. Payments — lib/services/payment-webhook.ts is the highest-blast-radius money path; any change there requires its test suite green (921-line webhook test) + a manual reasoning note in the PR body.
  5. Swiss German — ß never appears in user-facing strings (ss only); real umlauts ä/ö/ü required, never ae/oe/ue. pnpm run lint:umlauts gates it.

Repo gotchas that have bitten before

  • CHECK-constraint drift between migrations and live DB — if the diff adds a constraint, confirm the migration replay job still passes.
  • i18n arrays must stay parallel across locales — the i18n audit script gates this; don't hand-edit one locale.
  • Env files: .env.example + .env.selfhost.local.example are the ONLY tracked env files. Any diff adding another .env* to git = block.

Process gates

  • verify/CI green before review (lint, tsc, build, migrations replay, e2e journeys).
  • Diff updates CLAUDE.md/docs if it changes documented structure/behavior.
  • Second fix of the same bug class ships the rule/test that ends the class.