Repository navigation
fix(roadmap): refine skips an item that changed during the write - #5392
Conversation
A refine round in the Service failed when a person or another job changed an item between the read and the write. The store refused the write with RoadmapItemChangedError (ADR 0002), the round counted the item as a failed write, and the Service logged an ERROR with a traceback for a normal event. RefineWriter.settle now catches RoadmapItemChangedError before the other write errors. It logs one INFO line, and does not count the item as written or as failed. The body check of _apply_refined gives the same result: before, the round logged the next step of a body that refine did not write and counted the item as written. The next round reads the item again. A write that fails for another reason stays a failure. A changed item writes no job result line, as an alternatives check whose body changed writes none (docs/roadmap/job-success.md), so the job grade counts the race neither as a success nor as a failure. The issue asked for result=skipped success=true on the claim that intake counts skipped as intended; intake does not, and #5166 plans no line for intake too. The CLI path (apply_refine) does not change.
The skip line said that refine wrote nothing, but refine can file the deferred parts of an item before the store refuses the main write. The line now says that refine did not write the item. The scenarios of the spec use the form of the other scenarios.
Move the change folder to the archive and merge its requirements into the roadmap-refine/writes spec.
|
Evidence and checks for this pull request. Premise (Loki, Fail-to-pass ( Local checks.
Render diff. The branch changes no path under Acceptance. The issue asks for Release. A release is needed. The roadmap Service runs this code from the released image, so the fix reaches the Service after release-please makes the patch release and Argo CD rolls the new image. No manual cluster step. Known limits, not changed here. When a race stops the main write after refine filed the deferred parts of an item, the next round can file them again, as after any failed write before. Intake still logs this race as |
🤖 I have created a release *beep* *boop* --- ## [0.127.1](v0.127.0...v0.127.1) (2026-11-13) ### Bug Fixes * **ci:** alarm at 360 s, one P0 issue, shards by recorded time ([#5377](#5377)) ([2abd6ff](2abd6ff)) * **github:** read the plan diff and the release files from the merge base ([#5401](#5401)) ([c54e14c](c54e14c)) * **infra:** turn off the Ansible color of every playbook run ([#5381](#5381)) ([5bafb1a](5bafb1a)), closes [#5352](#5352) * install-tools --check passes an older openspec binary ([#5355](#5355)) ([625c89d](625c89d)) * **k8s:** allow only the Ingress origins in Open WebUI ([#5357](#5357)) ([fdab229](fdab229)) * **pr:** count only the latest run of each check ([#5393](#5393)) ([634dc91](634dc91)) * **review:** drop the fixed gateway URL of the review dry run ([#5399](#5399)) ([0666d3d](0666d3d)) * **review:** review a pull request at the merge base of its base branch ([#5387](#5387)) ([351ba2a](351ba2a)), closes [#5346](#5346) * **roadmap:** end fix-plan at a time budget with a result line ([#5380](#5380)) ([20468f4](20468f4)), closes [#5363](#5363) * **roadmap:** refine skips an item that changed during the write ([#5392](#5392)) ([a863dda](a863dda)) * **roadmap:** stage writes RENAMED and REMOVED spec deltas ([#5367](#5367)) ([4abbbd2](4abbbd2)) * **roadmap:** title the delivery by the summary of its plan ([#5376](#5376)) ([10e1069](10e1069)) --- 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>
A refine round in the Service failed when a person or another job changed an item between the read and the write. The store refused the write with
RoadmapItemChangedError(ADR 0002), the round counted a failed write withclass=head_moved, and the Service logged an ERROR with a traceback for a normal race.RefineWriter.settlenow catchesRoadmapItemChangedError. It logs one INFO line, writes no result line, and counts the item neither as written nor as failed. The body check of_apply_refinedgives the same result. Before, it logged the next step of a body that refine did not write. The next round reads the item again. A write that fails for another reason stays a failure.devops roadmap refine --confirmdoes not change.A changed item writes no result line, as
docs/roadmap/job-success.mdsays for alternatives, notskipped success=true.Closes #5299
Change:
openspec/changes/archive/2026-11-13-5299-refine-skips-an-item-that-changed/