Skip to content

fix(roadmap): a stage plan reads back with the same criteria - #5957

Merged
dan-petty merged 1 commit into
mainfrom
fix/5952-plan-read-back-criteria
Nov 16, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5952-plan-read-back-criteria

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage read-back failed 4 of 9 attempts on 2026-11-16. A round trip with no model of the issue criteria shows the causes:

  • A group entry with a reason ("" or text) read back with none, because a Group <n>: line has no reason. StageCriterion now keeps no reason for a group and folds its texts with the fold of the writer.
  • A case-first group whose work names uv run devops docs generate read back cut at that command. The reader now takes the second task as the work, and cuts the documents step only from the end of a documents task that the writer gives one.

The stage Job log and the error details now give, for each fact, the place of the first difference and both values, masked and cut to 200 characters. The message keeps only the fact names.

Closes #5952

Change: openspec/changes/archive/2026-11-16-5952-plan-read-back-criteria/

The stage read-back failed 4 of 9 attempts on 2026-11-16 (#2202, #3655,
#3671 on criteria; #3666 on group 4 implementation). A round trip with
no model of the issue criteria shows the causes:

- A group entry with a reason ("" or text) reads back with none: the
  `Group <n>:` line has no reason. `StageCriterion` now keeps no reason
  for a group and folds its texts with the fold of the writer.
- A case-first group whose work names `uv run devops docs generate`
  read back cut at that command. The reader takes the second task as
  the work, and cuts the documents step only from the end of a
  documents task that the writer gives one.

The stage Job log and the error details now give, for each fact, the
place of the first difference and both values, masked and cut to 200
characters. The message keeps only the fact names.

Closes #5952

Change:
`openspec/changes/archive/2026-11-16-5952-plan-read-back-criteria/`
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 16, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 16, 2026 07:27
@dan-petty

Copy link
Copy Markdown
Owner Author

Vet: SAFE. The criteria fix is at the input of the writer: a criterion mapped to a group keeps no reason, and its text uses the writer's own fold, so "" against None and folded whitespace no longer differ. The reader takes the whole second task as the work and cuts the documents step only from a documents task that the writer gave one, so a work that names uv run devops docs generate reads back the same; an older plan that appended the step to its work only keeps that one instruction in the work text. read_back_problems compares as strictly as before, and each difference now goes to the Job log masked and cut to 200 characters (fact=criteria place=[1].reason written='' read=None). The cut pending-person criterion is #5956.

@dan-petty
dan-petty merged commit 167451f into main Nov 16, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5952-plan-read-back-criteria branch November 16, 2026 11:37
dan-petty-release Bot added a commit that referenced this pull request Nov 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.162.0](v0.161.0...v0.162.0)
(2026-11-16)


### Features

* **roadmap:** a refused alternatives reply goes back once
([#5955](#5955))
([bb9e908](bb9e908))
* **roadmap:** stage limits changed files per task group
([#5944](#5944))
([181f85e](181f85e))


### Bug Fixes

* **roadmap:** a stage plan reads back with the same criteria
([#5957](#5957))
([167451f](167451f))
* **roadmap:** the strength check fits in the runner home volume
([#5961](#5961))
([09c9107](09c9107)),
closes [#5960](#5960)

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): a stage plan reads back with other criteria

1 participant