mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-03 05:08:53 +00:00
#340/#356 made expected_rev mandatory for config/set and layout/set over a non-empty store — an honest protection the release notes sold only as a stale-tab guard. A third-party script writing plans directly cannot infer from "protects from stale tabs" that it must now read the revision first. Both changelogs gain an explicit breaking-for-external-writers entry with the read-then-write recipe; ARCHITECTURE.md's WS contract section extends the #340 paragraph with the cycle external clients must follow (get rev → send expected_rev → on conflict re-read and retry); and both conflict messages now carry the actionable hint for scripts — "include expected_rev from houseplan/config/get / layout/get" — alongside the tab-oriented "reload" advice. The backend tests pin only the "revision is required" substring and stay untouched. Issue: #368 User-Visible: yes