Skip to content

fix(roadmap): check the premise before the first step - #5886

Merged
dan-petty merged 2 commits into
mainfrom
fix/5881-premise-check-before-first-step
Nov 15, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5881-premise-check-before-first-step

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement job checked the premise of a behavior group at the start of that group. A false premise of a late group thus came after the earlier groups passed. The return removed their commits from the branch, and the job closed the pull request. Item #3453 lost 53 minutes of work this way, in pull request #5873.

The job now checks every open behavior group once, before the first step of the run. A false premise thus costs no model request and loses no work. The comment of this return says that the run made no model request.

A return to New now keeps implement.spend, so the Service report writes the real tokens of the run in the roadmap job result line. The report then clears the spend and its count.

The prose rule of added_guard stays: #3453 replaces it with an Adds: line.

Closes #5881

Change: openspec/changes/archive/2026-11-15-5881-premise-check-before-first-step/

The implement job checks every open behavior group once, before the first step of the run, so a false premise costs no model request and loses no group that passed. A return to New keeps the spend for the report of its Job, which logs the real tokens and then clears the spend. Refs #5881.
@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 15, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 20:41
@dan-petty

Copy link
Copy Markdown
Owner Author

Vet: SAFE. One check now runs before the first step, over the open behavior groups only. A return keeps the spend for the report, and the report clears it. The checks pass, and the branch holds origin/main.

Known limit, not new in this change: a continuation Job reads wip_base, which holds the groups that an earlier Job passed. So a task of an open group that names a guard that an earlier group of the same plan added can still return the item, and _withdraw removes the kept groups. The base of the check could be the merge base with the default branch. This is a follow-up, not a blocker.

@dan-petty
dan-petty merged commit 1b12e5c into main Nov 15, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5881-premise-check-before-first-step branch November 15, 2026 22:56
dan-petty pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.159.0](v0.158.0...v0.159.0)
(2026-11-15)


### Features

* **ai:** Record the cost of Jev calls
([#5879](#5879))
([d1ac8ca](d1ac8ca))
* **ci:** add OpenTofu 1.13.9 to images and CI
([#5862](#5862))
([ca62d6a](ca62d6a))
* **roadmap:** Require the contract test of a workflow change
([#5877](#5877))
([f81f4b9](f81f4b9))


### Bug Fixes

* **ai:** do not classify gateway endpoint as local backend
([#5874](#5874))
([8c09c33](8c09c33))
* **k8s:** Name the collector service that exists
([#5895](#5895))
([a20c801](a20c801))
* **monitoring:** Drop the caller labels from the gateway series
([#5896](#5896))
([d0929e1](d0929e1))
* **roadmap:** check the premise before the first step
([#5886](#5886))
([1b12e5c](1b12e5c))
* **roadmap:** handle git grep timeout in refine context collection
([#5872](#5872))
([0eecb65](0eecb65))
* **roadmap:** Judge no criterion in the paths gate
([#5875](#5875))
([ca88553](ca88553))
* **roadmap:** plan drift keeps other needs-fix labels
([#5888](#5888))
([93e57ed](93e57ed))
* **roadmap:** refine designs against an alert without its rule text
([#5882](#5882))
([cbd8bf7](cbd8bf7))
* **roadmap:** the refine proposal caps its context with a job constant
([#5878](#5878))
([25fca43](25fca43))


### Performance Improvements

* **roadmap:** File a new candidate with one request
([#5894](#5894))
([5fea092](5fea092))


### Code Refactoring

* **github:** one pull request verdict for all monitors
([#5889](#5889))
([d93b753](d93b753)),
closes [#5021](#5021)
* **roadmap:** one open step for every pull request
([#5870](#5870))
([6e9f577](6e9f577)),
closes [#5020](#5020)

---
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 late premise return drops passed groups

1 participant