summaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-08-24 18:21:55 +0200
committersalmonik <salmonik@tuta.io>2026-08-24 18:21:55 +0200
commitf1c6aa015baac7474cfb5a24fe2a04bf430ab5f2 (patch)
treee4287e49d7ac0d323181642fd73bf80a8432d125 /AGENTS.md
parentFix balance: only credit winnings, not refund the bet on every spin (diff)
downloadzagan-bet-f1c6aa015baac7474cfb5a24fe2a04bf430ab5f2.tar.gz
zagan-bet-f1c6aa015baac7474cfb5a24fe2a04bf430ab5f2.zip
Client: read PLAY_START response before animating; show error immediately on insufficient balance. Add versioning to AGENTS.md.
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index c5139d5..f7f0d2b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -54,3 +54,20 @@
54 certificate's SPKI, not the whole certificate. 54 certificate's SPKI, not the whole certificate.
55- `save_host` must not wipe the fingerprint column. Use `ON CONFLICT ... 55- `save_host` must not wipe the fingerprint column. Use `ON CONFLICT ...
56 DO UPDATE SET last_used` — never `INSERT OR REPLACE`. 56 DO UPDATE SET last_used` — never `INSERT OR REPLACE`.
57
58## Versioning
59
60Use semantic versioning (`MAJOR.MINOR.PATCH`) in `Cargo.toml`.
61
62- **MAJOR** — breaking protocol changes (wire format, TLS trust model,
63 database schema migration that can't auto-upgrade). Clients and servers
64 at different MAJOR versions are incompatible.
65- **MINOR** — new features, new game types, new commands. Backwards
66 compatible: old clients work with new servers, new clients work with
67 old servers (they just don't see the new feature).
68- **PATCH** — bug fixes, payout corrections, refactors that don't change
69 observable behavior.
70
71Bump the version in `Cargo.toml` as the **last** step before committing
72a release-worthy change. The commit message should contain the new version
73number (e.g. `v0.2.0`).