Repository navigation
Description
Problem
apply_alternatives posts a comment and a block for every check, also when the verdict and the tool are the same as in the last check. A recheck every 30 days (DEFAULT_ROADMAP_ALTERNATIVES_RECHECK_DAYS) adds a comment with no news. The comment thread of a long-lived item fills with the same text.
Expected
In apply_alternatives, compare the new verdict and tool with the recorded alternatives.verdict and alternatives.tool.
- Write the comment only when one of them changed.
- Update the block and the marks (the date) in both cases.
The order rule of #2951 does not change. A recheck with the same result still updates alternatives.checked_at, so the item is not due again before the recheck days pass.
Acceptance criteria
-
uv run pytest tests/roadmap/test_roadmap_alternatives_recheck.py -k same_verdict- a recheck with the same verdict and tool posts no second comment. It updates the date. -
uv run pytest tests/roadmap/test_roadmap_alternatives_recheck.py -k changed_verdict- a recheck with a new verdict, or with a new tool, posts one comment. -
uv run pytest tests/roadmap/test_roadmap_alternatives_recheck.py -k first_check- a first check, with no recorded verdict, posts its comment.
Every command above fails on the unchanged code. The pull request cites the fail-to-pass run (devops ci fail-to-pass --base <ref>).
Feasibility
I read alternatives.py (apply_alternatives, _is_due, AlternativesRecordKey) at origin/main. The recorded keys alternatives.verdict and alternatives.tool are written in apply_alternatives. I did not run the code.
Existing tool considered
The item record marks that exist. No library is needed.
Cost
Build: about 15k tokens and 1 h. Keep: about 1k tokens per quarter. Fix: about 5k tokens and 0.3 h.
Related
Part of #3027. #2951. Order: after the issue #4049 (both change alternatives.py).
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.Duplicate comments reduce thread readability over time but do not block any workflow or break functionality.Users see fewer redundant comments in long-lived issue threads, which improves readability without adding new capability.The change adds a comparison of two recorded values before posting; the candidate estimates about 1 hour of work.Both items change the alternatives comment behaviour, but #2944 adds content to the comment while the candidate suppresses the comment when the verdict is unchanged.