Skip to content

fix(roadmap): refine looks again at a wait that older rules set - #4919

Merged
dan-petty merged 3 commits into
mainfrom
fix/4795-refine-rule-version
Nov 12, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4795-refine-rule-version

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Before #3632, a proposal that failed a form check, or that kept an open question with no "(a person decides)" mark, made the item wait on a person. #3632 made these a job failure but kept the old waits, so 18 New items still waited on a person for a form failure.

  • CONST_ROADMAP_REFINE_RULES_SINCE is the version of the rules that set the next step of refine: the time from which they hold (the release 0.72.0).
  • A round that writes a proposal records the version as refine.rules.
  • A wait on a person that older rules set gets one new round, with no reply and no body edit. A record with no version is dated by refine's last comment, so a wait that the current rules set gets no new round.
  • A change to a rule that sets a next step sets a later time in the constant.

Closes #4795

Change: openspec/changes/archive/2026-11-12-4795-refine-looks-again-at-a-wait/

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

Copy link
Copy Markdown
Owner Author

Measurements

The census of 2026-11-11 (the job records of the 439 open issues) gives these numbers. I applied the new selection rule to each record that holds the step person: the recorded refine.rules, else refine.commented_at, compared with 2026-11-06T19:25:37Z.

Person waits of New items Count
All 96
Set by older rules: one new round 50
Of these, form failures (the 18 items of #4795) 18
Of these, with no "(a person decides)" question 41
Of these, with a "(a person decides)" question 9
Set by the current rules: no new round 46
Of these, with a "(a person decides)" question 36
  • Under the current rules, a new proposal that fails a form check, or that keeps an unmarked open question, is a job failure. Thus up to 41 of the 50 old waits leave the inbox class refine (97 items in the census). They go to Ready, to retry, or after 3 tries to the class failed.
  • The 9 old waits with a "(a person decides)" question can ask again. Each one gets at most one new comment.
  • The 36 newer waits with a "(a person decides)" question get no second comment. An integer version with no fallback to the comment time would have given them a new round too.
  • With the defaults (a round every 17 minutes, a limit of 7 items), the 50 old waits need at least 8 rounds. They share the limit with the other New items, so the round makes no more model calls than before.

Fail to pass

uv run devops ci fail-to-pass --base origin/main: 4 failed on base and pass on the branch (the 2 cases of test_a_person_wait_that_older_rules_set_gets_one_new_look_on_an_unchanged_body and the 2 cases of test_a_person_wait_that_the_current_rules_set_gets_no_new_look). The 7 other tests of tests/roadmap/refine/test_roadmap_refine_person_wait.py pass on base and on the branch. The 2 cases of the second test fail on base only because the constant is new: the base already keeps those waits.

Local test runs

  • tests/roadmap (before the last rebase): 6716 passed, 1 skipped, 1 failed. The failed test is tests/roadmap/project_review/test_review_facts.py::test_the_facts_of_a_version_window. It also fails on main in a venv with no review extra, because the module lizard is not installed. CI installs all extras.
  • tests/roadmap/refine and tests/invariants/test_roadmap_workflow_doc.py after the rebase: 531 passed.
  • uv run devops ci --check --only typecheck,docs and uv run devops openspec check: pass.

Live steps

None. The change needs no ConfigMap, Secret or cluster change. After the release reaches the Service:

  1. Run uv run devops roadmap inbox and read the class refine. The 18 form failures (feat(k8s): Read homelab config from in-cluster Gitea, drop overrides #1291, feat(roadmap): several implement Jobs can run at once, on disjoint files #3064, feat(roadmap): an agent that needs a decision asks on the issue and waits #3077, feat(roadmap): Export eval fixtures as Harbor tasks with N trials #3104, feat(roadmap): Give the implement agent read-only code tools #3148, refactor(roadmap): split the roadmap commands by kind #3186, feat(roadmap): Add requirement text to the stage context #3246, feat(roadmap): Require a rejected alternative with a fact #3257, feat(roadmap): audit command lists and checks test registry declarations #3332, feat(roadmap): the stage eval records the constants that a plan cites #3390, fix(roadmap): the stage plan cites an open change's proposal as evidence #3465, fix(roadmap): a return request leaves room for the planner tools #3529, fix(hardening): defect PR #3526 missing declared surface hardening #3531, perf(cli): cut the CPU time of the startup-import row by half #3550, dan-petty/homelab#331, feat(roadmap): compare the toolsets of the implement and review jobs #3605, feat(roadmap): Give the model verification pass the requirement list #3610, test(roadmap): verify the consolidation dry run on the live board #3635) leave it after the rounds that take them.
  2. Run uv run devops roadmap explain <number> on one of them before its round. It says that refine takes the item.

Before #3632, a proposal that failed a form check, or that kept an open
question with no "(a person decides)" mark, made the item wait on a
person. #3632 made these a job failure but kept the old waits, so 18
form failures still waited on a person.

A round that writes a proposal now records the version of its rules as
`refine.rules`. The version is the time from which the rules hold
(`CONST_ROADMAP_REFINE_RULES_SINCE`, the release 0.72.0). A wait on a
person that older rules set gets one new round with no reply and no
body edit. A record with no version is dated by refine's last comment.
Change: `openspec/changes/archive/2026-11-12-4795-refine-looks-again-at-a-wait/`
@dan-petty
dan-petty force-pushed the fix/4795-refine-rule-version branch from 3e58956 to 63352b5 Compare November 12, 2026 04:22
@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 04:32
@dan-petty
dan-petty merged commit e6f7cb9 into main Nov 12, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/4795-refine-rule-version branch November 12, 2026 04:32
@dan-petty

Copy link
Copy Markdown
Owner Author

The first CI run failed the diff coverage floor (83% of the changed lines, floor 90%). The branch for a recorded version that is no time, and the branch for a version with no zone, had no test. The commit test(roadmap): a recorded rules version that is no time or has no zone adds test_a_recorded_version_that_is_no_time_counts_as_none_and_one_with_no_zone_as_utc. Both cases pass locally (13 passed in tests/roadmap/refine/test_roadmap_refine_person_wait.py), and every check of CI now passes.

dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.116.0](v0.115.0...v0.116.0)
(2026-11-12)


### Features

* **gh:** name the gh groups issue, run, label and secret
([#4923](#4923))
([2dd4c97](2dd4c97))


### Bug Fixes

* **ci:** set job timeouts from the measured run times
([#4892](#4892))
([e26dde5](e26dde5))
* **design:** check the design test bound and source hex values
([#4922](#4922))
([e2c1a5a](e2c1a5a))
* **k8s:** check the credential sync context as a kubeconfig name
([#4916](#4916))
([8797c88](8797c88))
* **roadmap:** bound the stage gate returns and start no return in a
drain ([#4925](#4925))
([77eed38](77eed38))
* **roadmap:** count each implement outcome once with its repo
([#4903](#4903))
([c17f71f](c17f71f))
* **roadmap:** refine looks again at a wait that older rules set
([#4919](#4919))
([e6f7cb9](e6f7cb9))


### Performance Improvements

* **k8s:** put the dependencies in their own image layers
([#4872](#4872))
([48dc866](48dc866))

---
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): refine looks again at a wait that an old rule set

1 participant