Skip to content

fix(roadmap): give stage and implement the item comments - #6182

Merged
dan-petty merged 5 commits into
mainfrom
fix/6167-give-jobs-item-comments
Nov 17, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/6167-give-jobs-item-comments

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage and implement jobs now give their model every comment of the item that a person with write access or the Service App wrote, oldest first, with its author and time: the decisions of persons and the reports of the roadmap jobs. No comment is cut. The newest come whole within a token budget, each older one gets an index line, and the new tool read_comment reads any comment whole or lists them all. The comments of the first stage request take the room that the body leaves under its cap, then at most 6,144 tokens of the context cap, so the request is no larger than before. An implement step says when the plan merged, and its comments never take it over its window. The comment of a staged item and the comment of an implement run name each comment that the input held whole.

Closes #6167

Change: openspec/changes/archive/2026-11-17-6167-give-jobs-item-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 17, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for the review (agent):

  • Local tests: tests/roadmap/stage, tests/roadmap/implement, tests/roadmap/stores and the new modules passed (5,271 passed before the count fixes; the 33 failures were tool counts and test doubles, now updated). The tests that cover the changed shared modules passed: 12,057 passed, 1 failed (test_roadmap_limit_classes, now fixed: the four new constants have a class). After the rebase on c8ee55803, 392 tests of the touched modules passed.
  • Static rows: uv run devops ci --check --only lint,format,constructs,test-tree,startup-imports,swallowed-failures,domain,openspec,test-settings passed; uv run devops ci docs passed; mypy on the 12 changed modules passed.
  • Window: with code at its caps, the first stage request counts 47,863 tokens with the new tool and 47,023 tokens with 41 comments. The limit with the headroom of fix(roadmap): The first stage request overflows its window #6103 is 48,640 tokens.
  • Collapse: the jobs collapse no comment and leave out no job marker. The only filter is trusted_replies (write access or the Service App), the security control that refine also uses.
  • Prompt: roadmap_stage_change.md does not change, so the stage eval rule of devops pr ready does not apply. roadmap_stage_tools.md names read_comment.

@dan-petty
dan-petty force-pushed the fix/6167-give-jobs-item-comments branch from 6b71782 to de0a9d9 Compare November 17, 2026 15:53
The stage and implement jobs now give their model every trusted comment
of the item, oldest first, with no cut: the newest whole, the older ones
in an index, and the tool read_comment reads any comment whole (#6167).
@dan-petty
dan-petty force-pushed the fix/6167-give-jobs-item-comments branch from de0a9d9 to b2079e5 Compare November 17, 2026 16:12
@dan-petty

Copy link
Copy Markdown
Owner Author

Review fixes (agent), head b2079e558:

  • Plan key: PlanFiles.key now holds only the comments of persons (HeldComment.by_person: no [bot] login and no roadmap job marker), without the comment number, which a job comment shifts. A stage job comment after a kept plan keeps the key, and a comment of a person changes it (test_a_stage_job_comment_after_a_kept_plan_keeps_its_key_and_a_person_comment_changes_it). The model input still gives every comment.
  • Implement fallback: when no section of the comments fits, the step input holds one line, for example "This item has 2 comments that did not fit the input (1 after the plan merged); read them with read_comment." Both branches have a test: the room too small for the section, and a section that the join takes over the limit. The line stays out only when it would take the inputs over the limit itself.

@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 16:25
@dan-petty
dan-petty merged commit b5bd396 into main Nov 17, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/6167-give-jobs-item-comments branch November 17, 2026 16:26
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.173.2](v0.173.1...v0.173.2)
(2026-11-17)


### Bug Fixes

* **ai:** Omit sampling parameters that Anthropic SDK 2 refuses
([#6184](#6184))
([1774ebf](1774ebf))
* **pr:** Wait for the closing issue before setting its status
([#6179](#6179))
([383a20b](383a20b))
* **roadmap:** Confirm a rejection unless a chosen option names the tool
([#6186](#6186))
([95b60e7](95b60e7))
* **roadmap:** give stage and implement the item comments
([#6182](#6182))
([b5bd396](b5bd396))

---
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): Give stage and implement the person comments

1 participant