1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 07:39:15 +03:00
Files
android_cast/.cursor/rules/no-prod-be-direct-edit.mdc
Anton Afanasyeu a33f8183c0 cursor settings
2026-06-15 11:57:19 +02:00

24 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Production BE — read-only for agents; never direct edits
**Hard rule:** Do **not** modify production backend infrastructure or deployed app trees. The user deploys; agents edit the **repo only**.
## Forbidden on production BE (`alpine-be`, `apps.f0xx.org`, `artc0.intra.raptor.org`)
- **No writes:** `scp`, `rsync`, `ssh … sed/vi/tee`, editing files under `/var/www/…`, nginx/php-fpm/mariadb/wg config, cron, sudoers, `wg set`, DB mutations outside repo migrations the user runs
- **No “emergency hotfix” on prod** unless the user **explicitly** says in that message: deploy/hotfix on alpine-be now
- **No assuming** deploy is done because you changed the repo — show the BE deploy banner; user syncs
## Allowed
- Edit **`examples/crash_reporter/backend/`** (and related) in the **git repo** only
- **Lab cluster** (`cast01``cast03`, `/shared/cluster/`, orchestration sim) for clones, populate, verify, experiments — use these instead of touching prod
- **Read-only** prod checks (tail logs, curl, timed php **read** benchmarks) only when debugging and **never** followed by a write unless user explicitly ordered a prod hotfix
## Need a BE to test?
Spin up or use **lab VMs / local orchestration** — do **not** use production `alpine-be` as a playground.
## If you violated this
Stop, revert only if user asks, document what was changed on prod so the user can reconcile with their deploy.