1. Environment
Always run `/var/www/abtrading/perpfoundry/apps/api/venv/bin/python` with `.env` loaded before launching scripts.
2. Systemd services
abtrading-backend, abtrading-brain, abtrading-frontend, and abtrading-strategy all run with `Restart=always` and 15m timers.
3. ErrorWatcher + ticketing
`monitoring/error_watcher.py` tails backend_run_new.log and can alert Slack/SES for execution failures or depleted wallets.
4. Validation
Use `force_trade_test.py`, `verify_new_client.py`, and `/resources/live-pnl` to validate the pipeline end-to-end.