Repository navigation
fix(roadmap): the Status writer guards an equal label - #5116
Conversation
When the label equals the derived Status, `write_status` writes only the marks and the body of its caller with `set_marks`. `set_marks` had no ADR 0002 guard, so refine wrote its marks, its body and its Ready comment for an item whose Status another writer changed during the model call, and the lost write was silent. `set_marks` gets the keyword `unchanged`. The store compares the field of its read before the write with the value that it read, as `set_field` does, and raises `RoadmapItemChangedError` before any write. The writer gives `unchanged=ItemField.STATUS` on the equal path. It still writes no label and records no Status there, and it sends no new request.
|
Evidence for the fix of #5114 (found by the review of #5109).
All four pass on the head. Covering tests on the head: The Service runs this code, so this pull request waits for the owner's "safe and vetted" call before it merges. |
🤖 I have created a release *beep* *boop* --- ## [0.120.0](v0.119.0...v0.120.0) (2026-11-12) ### Features * **agents:** remote agent sessions install the git hooks ([#5126](#5126)) ([a04e7a9](a04e7a9)) ### Bug Fixes * **k8s:** give the ollama-16gib tier a memory limit ([#5117](#5117)) ([22176a0](22176a0)) * **roadmap:** the Status writer guards an equal label ([#5116](#5116)) ([aaf3eaf](aaf3eaf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
When the label equals the derived Status,
write_statuswrites only the marks and the body of its caller withset_marks, which had no ADR 0002 guard. So refine, which calls a model for minutes between its read and its write, wrote its marks, its body and its Ready comment for an item whose Status another writer changed in that time. Before #5109,set_fieldrefused that write.set_marksgets the keywordunchanged. The store compares that field at its read before the write with the value that it read, asset_fielddoes, and raisesRoadmapItemChangedErrorbefore any write.write_statusgivesunchanged=ItemField.STATUSon the equal path. That path still writes no label and records no Status, and the guard sends no new request.Both stores implement the guard, and the store contract test runs it on both.
Closes #5114
Change:
openspec/changes/archive/2026-11-12-5114-the-status-writer-guards-an-equal/