diff --git a/docs/README.md b/docs/README.md index ece90bf..43c5854 100644 --- a/docs/README.md +++ b/docs/README.md @@ -82,7 +82,15 @@ Before writing any new code, surface any dirty working tree and deal with it fir - Log message tweaks - Doc-only commits -**6. Console API Reference is mandatory.** +**6. Every change bumps the firmware version.** +`FW_VERSION` in `src/Version.hpp` is `MAJOR.MINOR.PATCH` and is what devices report and what OTA compares, so two different builds must never share a number. +- **PATCH** (`2.4.0 → 2.4.1`) — bug fixes, internal changes, log/latency tweaks with no new API or behaviour contract. +- **MINOR** (`2.4.x → 2.5.0`) — new commands, fields, topics or features, or a change to observable behaviour (timings, QoS, defaults). +- **MAJOR** (`2.x → 3.0.0`) — breaking changes for apps/backend. **Discuss with the owner before bumping major.** + +The bump goes in the same commit as the change (or one commit covering a batch that ships together): update `FW_VERSION`, add a line to the `VERSION HISTORY` comment above it, and set the feature catalog's "Since" column to the new version. Doc-only commits don't bump. + +**7. Console API Reference is mandatory.** Any new command/API endpoint, or a change to an existing one's contents/response/errors, must be reflected in the console's live API Reference page — not just in `docs/reference/api-reference.md`. The two are separate files in separate repos and neither auto-syncs from the other; both must be updated by hand in the same change. ### Console API Reference location diff --git a/docs/features/feature-catalog.md b/docs/features/feature-catalog.md index a4aa08f..51298a2 100644 --- a/docs/features/feature-catalog.md +++ b/docs/features/feature-catalog.md @@ -83,10 +83,10 @@ Check `git log -- src/Version.hpp` for the real bump history before tagging a ne | F-068 | `loading` playback state while a melody downloads (MQTT `status/playback`), cancellable by `playback.stop`; `playback_failed` event on `control/reports` when an ACKed play never starts | v2.3.0 | Stable | | F-069 | RF remote disabled on Vesper Standard builds (`HAS_RF=0`) — no fielded unit has a receiver; `rf.*` now only on agnus | v2.3.0 | Stable | | F-070 | Richer crash reports — coredump backtrace + ELF SHA, abort() reason string, and last pre-crash heap/uptime snapshot in `boot_report` and the SD boot log | v2.3.0 | Stable | -| F-071 | MQTT self-recovery — single supervisor task replaces timer/task chain, wedge detection (stuck connect, missing heartbeat PUBACK), LWT payload fix, `mqtt.status` diagnostics | v2.3.0 | Stable | -| F-072 | Lower status/reply latency — QoS 0 for non-critical MQTT topics; WiFi modem sleep disabled | v2.3.0 | Stable | -| F-073 | Confirmed delivery for `status/playback` + `control/reports` (QoS 1, PUBACK tracked, reset + republish/resend); AsyncMqttClient vendored + patched; all dependencies pinned | v2.3.0 | Stable | -| F-074 | Fix: `mode: "infinite"` no longer flips status playing/paused every ~0.5 s | v2.3.0 | Stable | +| F-071 | MQTT self-recovery — single supervisor task replaces timer/task chain, wedge detection (stuck connect, missing heartbeat PUBACK), LWT payload fix, `mqtt.status` diagnostics | v2.4.0 | Stable | +| F-072 | Lower status/reply latency — QoS 0 for non-critical MQTT topics; WiFi modem sleep disabled | v2.4.0 | Stable | +| F-073 | Confirmed delivery for `status/playback` + `control/reports` (QoS 1, PUBACK tracked, reset + republish/resend); AsyncMqttClient vendored + patched; all dependencies pinned | v2.4.0 | Stable | +| F-074 | Fix: `mode: "infinite"` no longer flips status playing/paused every ~0.5 s | v2.4.0 | Stable | --- diff --git a/src/Version.hpp b/src/Version.hpp index cd8229c..70571f0 100644 --- a/src/Version.hpp +++ b/src/Version.hpp @@ -24,8 +24,12 @@ // v2.3.0 - Remote-app playback support: richer status/playback (pid/speed/duration/ // started_at/source/ts), republish on MQTT connect, specific playback // errors, "loading" state + playback_failed report for downloads +// v2.4.0 - MQTT reliability + latency: self-recovering supervisor, LWT fix, +// mqtt.status, confirmed QoS 1 for playback/reports (QoS 0 elsewhere), +// WiFi modem sleep off, vendored/patched AsyncMqttClient, pinned deps, +// WiFi/NTP task-retry, infinite-mode status flicker fix (F-071..F-074) // ═══════════════════════════════════════════════════════════════════════ -#define FW_VERSION "2.3.0" +#define FW_VERSION "2.4.0" // ═══════════════════════════════════════════════════════════════════════ // SemVer — lightweight 3-part version struct