Skip to content

fix(roadmap): the plan reader reports a criterion of group 0 - #3933

Merged
dan-petty merged 2 commits into
mainfrom
fix/3591-criterion-group-zero-plan-read
Nov 7, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/3591-criterion-group-zero-plan-read

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A criterion line with Group 0 in tasks.md made StageCriterion raise a pydantic ValidationError that left read_change. plan-check and plan-recheck catch only PlanReadError, so each ended with a traceback. The reader now turns a criterion that the model refuses into a PlanReadError for tasks.md that names the line and the reason, so both commands report a read problem and go on.

Closes #3591

Change: openspec/changes/archive/2026-11-07-3591-a-criterion-of-group-0-escapes-the-plan/

@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 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence for #3591.

  • fail-to-pass run (uv run devops ci fail-to-pass --base origin/main): 3 tests fail on the base with pydantic_core.ValidationError and pass on the branch: test_a_criterion_of_group_zero_is_a_read_error_that_names_the_line (plan_read), test_a_criterion_of_group_zero_is_reported_as_a_read_problem (plan_check), test_a_criterion_of_group_zero_is_a_new_plan_with_the_reader_error (plan_recheck).
  • Full uv run devops ci on the branch before the rebase: all 24 checks pass (test 8m 21s). No known host failure appeared.
  • After the rebase onto origin/main: the three test files pass (17, 25 and 18 tests).
  • The same fix covers a Pending person: criterion that the model refuses, through the same helper.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 04:35
@dan-petty
dan-petty merged commit 8a5ca70 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3591-criterion-group-zero-plan-read branch November 7, 2026 04:45
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.77.1](v0.77.0...v0.77.1)
(2026-11-07)


### Bug Fixes

* **roadmap:** a rebase stop names the conflicted files
([#3922](#3922))
([dd0cca7](dd0cca7))
* **roadmap:** an unchanged refine item reads no comments
([#3918](#3918))
([38420cb](38420cb))
* **roadmap:** fail the plan run when the window ends the tools too soon
([#3923](#3923))
([e71144a](e71144a))
* **roadmap:** the plan reader reports a criterion of group 0
([#3933](#3933))
([8a5ca70](8a5ca70))

---
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 criterion of group 0 escapes the plan reader

1 participant