Skip to content

fix(roadmap): an unchanged refine item reads no comments - #3918

Merged
dan-petty merged 2 commits into
mainfrom
fix/3667-refine-unchanged-reads-no-comments
Nov 7, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/3667-refine-unchanged-reads-no-comments

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A refine round reads the comments of an item that waits only when the count of comments on the issue moved. Before, it read them for each waiting item in each round, the largest part of the Service GET requests (#3497).

A round that reads the comments records refine.comments_seen, refine.commented_at and refine.wait_refs in the job record. A closed blocker, a changed cited path and a closed issue or changed file that a wait names then end the wait from the record. The issue listing already carries the count, so this adds no request.

The issue proposed updated_at as the mark. It moves on every write, the write of the record included, so it never matches. The count moves only on a comment.

Two waits still cost a read in each round: an item set back to New after Ready, and an item of an account the jobs do not trust. The docstring of refine.py says so.

Closes #3667

Change: openspec/changes/archive/2026-11-07-3667-refine-unchanged-reads-no-comments/

@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

Fail-to-pass run: uv run devops ci fail-to-pass --base origin/main gave 7 failed on base and 389 passed (0 errors):

  • test_roadmap_store_contract::test_an_item_carries_the_count_of_comments_on_its_issue[memory]
  • test_roadmap_store_contract::test_an_item_carries_the_count_of_comments_on_its_issue[github]
  • test_roadmap_refine::test_the_round_that_reads_the_comments_of_a_waiting_item_records_what_they_gave
  • test_roadmap_refine::test_a_round_reads_no_comment_of_a_waiting_item_that_nothing_changed[suspected-block]
  • test_roadmap_refine::test_a_round_reads_no_comment_of_a_waiting_item_that_nothing_changed[blocked]
  • test_roadmap_refine::test_a_comment_of_another_job_costs_one_read_and_then_the_wait_is_recorded_again
  • test_roadmap_dry_runs::test_a_refine_round_plans_the_record_of_the_comments_it_read_of_a_waiting_item

Full uv run devops ci before the last doc fix: 20251 passed, 1 failed: tests/invariants/test_roadmap_workflow_doc.py (the workflow document lacked the three new record keys). I fixed the document and that test file now passes (83 passed). The test row took 9m 38s: this is the known row over 5 minutes (#3593), led by test_each_unit_tested_rule_fires_on_a_sample_and_stays_quiet_on_a_normal_series (200 s). I did not run the full gate again after the doc fix. The branch was rebased once onto origin/main (a change in rag tests only) after the full run.

@dan-petty
dan-petty force-pushed the fix/3667-refine-unchanged-reads-no-comments branch from f9b4141 to 2a0fe15 Compare November 7, 2026 04:40
@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 04:46
@dan-petty
dan-petty merged commit 38420cb into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3667-refine-unchanged-reads-no-comments branch November 7, 2026 04:46
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): an unchanged refine item reads no comments

1 participant