Skip to content

fix(roadmap): accept a null reason on a stage reference - #4215

Merged
dan-petty merged 3 commits into
mainfrom
fix/4214-stage-reference-null-reason
Nov 9, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4214-stage-reference-null-reason

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A reply that follows the stage prompt gives reason null for a changed reference. StageReference.reason was a non-null string, so the reply failed with string_type. The field now accepts null, so the prompt and the schema agree. A prompt-rule test builds a reply from the prompt text and validates it with StageProposal, so they cannot drift again.

Closes #4214

Change: openspec/changes/archive/2026-11-09-4214-the-stage-schema-refuses-a-null/

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

Copy link
Copy Markdown
Owner Author

Test record.

fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 3 tests fail on base and pass on the branch.

  • test_schema_accepts_a_null_reason_for_a_changed_reference: fails on base with ValidationError string_type.
  • test_a_reply_that_follows_the_references_key_of_the_prompt_passes_the_schema: fails on base with ValidationError string_type (builds the reply from the prompt text, validates it with StageProposal).
  • test_schema_refuses_unchanged_reference_with_a_null_reason: fails on base because the error does not name the path.

Full uv run devops ci on the final code, before the archive commit: exit 0, all 25 rows pass. The test row took 10 minutes, over the 5 minute budget (known issue #3593, not caused here). No new setting, so no ConfigMap rollout.

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 06:06
@dan-petty
dan-petty merged commit ce96397 into main Nov 9, 2026
63 of 77 checks passed
@dan-petty
dan-petty deleted the fix/4214-stage-reference-null-reason branch November 9, 2026 09:45
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.100.0](v0.99.0...v0.100.0)
(2026-11-09)


### Features

* **roadmap:** record the reference hits of a stage case in the replay
([#4211](#4211))
([06a7251](06a7251))


### Bug Fixes

* **roadmap:** accept a null reason on a stage reference
([#4215](#4215))
([ce96397](ce96397))
* **roadmap:** count the tokens of each implement Job once
([#4213](#4213))
([a243c25](a243c25))
* **roadmap:** send tool choice auto to Claude and count answers
([#4216](#4216))
([5c4cabf](5c4cabf))

---
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>
dan-petty added a commit that referenced this pull request Nov 9, 2026
…4260)

The stage job kept only the last problem of a refused reply and kept no
refused reply, so a failed plan could not be read. A reply of
placeholders in every text also used the second request and gave the
same reply. The job now logs each refused reply with the request number,
the input tokens and the tool offer, keeps the first and second refused
reply with their problems in a file beside the plan file until the item
is staged, and ends a placeholder reply at once as the new result
degenerate (metric and stage eval). Other changes removed the causes of
the placeholder replies: #4215, #4216, #4224, #4238 and #4243.

Closes #4204

Change:
`openspec/changes/archive/2026-11-09-4204-keep-refused-stage-reply/`
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): the stage schema refuses a null reference reason

1 participant