D36 · The nightly rehearsal runs in GitHub Actions, and may climb to L2
Accepted · 2026-10-14 · zuki · Closes OQ4 and CR1
Decision: The nightly rehearsal (the SQL migration, the photo copy, smoke tests and the report) runs in GitHub Actions. Jobs that live inside the database use pg_cron or Supabase Edge Functions. The report goes to Slack if that costs nothing extra; if it does, to email. The rehearsal may reach L2 (automated) once zuki has logged clean L0 and L1 runs: it may read v1 production through the read-only user for the snapshot, and it may wipe and rebuild staging.
Why: Without CR1 the ladder's "anything that touches v1 production" stays L0 for good, so no nightly job could exist, against D2 and D11. zuki accepted the proposals on #48 and #30.
Consequences:
- The automation ladder changes: reading v1 production through the read-only user, and rebuilding staging, can climb. Writes to v1 production, deleting production data, pushing to production, rotating keys and the cutover run stay L0 for good.
- The rehearsal holds staging and the read-only v1 credentials only, as secrets of a GitHub environment like the one TL-M0-20 makes, and never production's.
- Data-phase row 7 is met, so the TL steps for the read-only v1 user and the rehearsal job can be written.
- The report channel is a Slack incoming webhook kept as an environment secret; the step that adds it checks the plan's cost first.