Skip to main content

The rules

Pull requests, always

Every change goes through a pull request. No direct pushes to main or master, no force-pushes.

Review before merge

Nothing is merged or deployed without review. On DualMind_Back, merging to main deploys to production.

No secrets in git

.env files, keys and tokens stay out of commits, PR bodies and logs. Use names, not values, in docs.
Production is read-only while you develop. Point writes (battles, votes, admin changes) at http://localhost:5079 and a development Supabase project. Against https://api.dualmindlab.tech, stick to GETs on public endpoints.

Branches and commits

  • Branch from main with a short, typed name: feat/…, fix/…, docs/…, chore/….
  • Use Conventional Commits: feat(api): add topper mode to Telegram battles, fix(supabase): attach apikey header.
  • Split work into logical commits (API client, UI, tests, docs) so reviews and reverts stay small.
  • Keep PR descriptions structured: Summary, What changed, How to test, Notes.

What CI runs

Before you open a pull request

1

Build and test

dotnet test for the API, pnpm run lint && pnpm run build for the arena, npm test for the admin panel, npx mint@4.2.989 validate && npx mint@4.2.989 broken-links for docs.
2

Dry-run deploys

npx wrangler deploy --dry-run in cf-worker/, DualMind_UI or DualMind_Admin-UI. Never run a real wrangler deploy from a feature branch.
3

Stay off production data

Test against a local API and a development Supabase project. Against production, only read-only GETs to public endpoints.
4

Update the docs

If you changed a route, a DTO, a table or a deploy step, update this site in the same change (or a linked PR).
Last modified on October 18, 2026