Skip to content

fix(roadmap): the intake reason comment states only new facts - #4955

Merged
dan-petty merged 2 commits into
mainfrom
fix/4836-intake-comment-new-facts
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4836-intake-comment-new-facts

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The intake reason comment stated again the type, scope, Priority, Value and Effort that the labels of the item show, under a header line that was the same on each item. A reader read about 870 characters to find the one or two new facts.

Now the comment gives only the facts that the labels do not show: a scope with no declared label, the reason of a Priority other than P2-Medium or of a P0 decision on evidence, the possible original and the related item. It does not name the milestone. With no such fact, intake posts no comment and reads no comments of the issue. The checked proposal drops the type, Value and Effort reasons of the model, which nothing reads now. The reply schema of the model does not change.

Closes #4836

Change: openspec/changes/archive/2026-11-12-4836-the-intake-reason-comment-states-only/

The intake reason comment gives only the facts that the labels do not show: a scope with no declared label, the reason of a Priority other than P2-Medium or of a P0 decision on evidence, the possible original and the related item. It does not state the type, scope, Value, Effort or milestone again. With no such fact, intake posts no comment and reads no comments of the issue.
@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

dan-petty commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner Author

Measurements

Source: the 700 intake reason comments posted since 2026-11-06 (devops gh api 'repos/{owner}/{repo}/issues/comments?since=2026-11-06T00:00:00Z' --paginate, the first intake comment of each issue). I applied the new rule to the lines of each comment.

All 700 comments 286 on the open items of the census of 2026-11-11
Characters before (total) 606,335 245,567
Characters after (total) 169,120 68,109
Text removed 72% 72%
Median length before, after 865, 222 859, 222
Items that still get a comment 696 (99%) 285 (100%)
Items with no comment 4 (1%) 1

Lines in the 700 old comments: Type 688, Scope 688, Priority 700, Value 700, Effort 700, Related 687, Possible duplicate 8. The new rule keeps the Priority line on 140 comments (P1-High, P3-Low or a P0 decision on evidence; 14 have a P0 decision) and drops the other 560.

Census of 2026-11-11: 433 open items have an intake comment. Their Priority is P2-Medium on 366, P3-Low on 50 and P1-High on 17, so P2-Medium is the usual Priority.

Effect on the roadmap jobs

  • The alternatives job sends the intake reason comment to its model as a person reply: on its first run on an item, replies holds every trusted comment, and the intake comment is trusted (fix(roadmap): alternatives skips the comments of other jobs #4960 removes the comments of other jobs there). This change makes that reply 72% shorter (median 865 to 222 characters, about 160 tokens less on each first alternatives request) and removes the label lines that look like a person's answer. The census holds 220 alternatives comments on open items. Refine, stage and retitle already remove the comments of other jobs, so their model input does not change.
  • Each item is about 640 characters shorter for each person and agent that reads its issue.
  • Most items still get a comment, because the model names a related item for 98% of the candidates. A separate item can make the "related" verdict stricter.
  • Retitle treats a title change with no earlier job comment as a person's change (person_changed_title). On the 1% of items with no intake comment, retitle now leaves a title that was changed before intake ran. Before this change, the intake comment came after such a change and retitle shortened the title.
  • One GitHub read less (the comments of the issue) for each candidate with no new fact.

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main: 6 failed on base, 29 passed. All 35 pass on the head.

  • test_roadmap_intake_reason_comment.py: the three new tests.
  • test_roadmap_intake_placement.py: test_a_candidate_with_a_value_a_person_set_gets_only_its_empty_fields, test_a_milestone_a_person_set_stands_at_intake.
  • test_roadmap_intake_github_requests.py: test_a_value_a_person_sets_between_the_plan_and_its_write_stays_and_the_next_run_finishes.

Other checks

  • 44 test files that use intake: 586 passed.
  • mypy on src/devops_cli/roadmap/intake/intake.py: no issues. ruff check and ruff format --check: clean. devops openspec check: passed.

Live steps

None. The Service uses the new rule when its image rolls. No setting, ConfigMap or Secret changes. The comments already on the issues do not change.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 07:26
@dan-petty
dan-petty merged commit 6cdd653 into main Nov 12, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/4836-intake-comment-new-facts branch November 12, 2026 07:27
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.117.1](v0.117.0...v0.117.1)
(2026-11-12)


### Bug Fixes

* **roadmap:** repair skips the comments of other jobs
([#4958](#4958))
([91041b2](91041b2))
* **roadmap:** the intake reason comment states only new facts
([#4955](#4955))
([6cdd653](6cdd653))

---
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): the intake reason comment states only new facts

1 participant