Before you merge
1
Review
- The pull request has a description, a test plan and at least one approving review.
- CI is green (
verify.ymland the PR run ofdeploy-cloudflare.ymlfor the API;ci.ymlfor the arena). - No secrets,
.envcontent or production identifiers in the diff.
2
Compatibility
- Public response shapes are unchanged, or the arena, admin panel, Telegram bot and docs are updated in step.
- Database changes are applied to production before the code that needs them is merged.
- New models have
model_leaderboardrows; new providers have their Worker secrets andproviders/ai_modelsrows, and are routed in code.
3
Dry run
-
npx wrangler deploy --dry-runpasses for every Worker you change. - Docs:
mint validateandmint broken-linkspass.
Right after it ships
If something is wrong
- Roll back first (
npx wrangler rollbackfor Workers, or revert the merge for the API), then investigate. - Note the
X-Correlation-Idof a failing request and tail logs withnpx wrangler tail dualmind-api. - Write down what happened and what changed in the changelog once it’s fixed.