diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-24 18:21:55 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-24 18:21:55 +0200 |
| commit | f1c6aa015baac7474cfb5a24fe2a04bf430ab5f2 (patch) | |
| tree | e4287e49d7ac0d323181642fd73bf80a8432d125 /AGENTS.md | |
| parent | Fix balance: only credit winnings, not refund the bet on every spin (diff) | |
| download | zagan-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.md | 17 |
1 files changed, 17 insertions, 0 deletions
| @@ -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 | |||
| 60 | Use 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 | |||
| 71 | Bump the version in `Cargo.toml` as the **last** step before committing | ||
| 72 | a release-worthy change. The commit message should contain the new version | ||
| 73 | number (e.g. `v0.2.0`). | ||
