Repository navigation
fix(roadmap): a job posts no comment that repeats a recent one - #4978
Conversation
A store reads the comments of an issue before it posts a comment of a roadmap job. It refuses the comment when the same text, with commits, digests and run IDs left out, is in the trailing run of that job's comments and is less than 7 days old. Each refusal counts in devops_cli_roadmap_comment_repeats_refused_total by row. The implement marker joins CONST_ROADMAP_JOB_COMMENT_MARKERS, and tests/support/write_stops.py stops a job after each write and runs it again (ADR 0021).
Measurement: the guard replayed on real commentsI replayed the comments of devops-cli through the shipped
dotfiles #2: the guard refuses 46 of the 137 implement comments. The other stop comments quote log lines that differ from run to run, so their fingerprints differ. The 20 comments on open items that only the plan's rule refuses follow a person's reply (12) or a stage comment (8). This PR posts them on purpose: the job answers the reply, and Raw text finds almost no repeat: each refine comment names the commit it read, and each clear names two image digests. The fingerprint leaves these out. Effect on the success rate of the jobsThe guard changes no Status and no job result, so it does not change the success rate of a job directly. It removes about 4 comments a day (128 in 31 days) that a person had to read, and it stops refine from reading an implement comment as a person's reply (the implement marker is now a job marker): 56 implement comments sit on open items. Live stepsNone. The change adds no setting and no ConfigMap key. The Service takes it with the next release, and |
The fail-to-pass replay runs the tests of the branch on the base source. The fake store imports the repeat guard only for a job comment, so the replay loads it, and the unchanged refine and stage tests stay as on main.
5d90e2c to
44476a2
Compare
Fail-to-pass
Tests that fail on base:
The 42 errors on base are the collection of The first CI run of the replay could not run: the fake store imported the new module at load time. The fake now imports it only for a comment of a job, as |
A refused refine comment kept the start of the wait at refine's last comment. A change of a cited path or a named issue after that comment then gave a new model call in each round for up to 7 days. RoadmapStore.comment now returns whether it posted. When the store refuses a comment of refine, refine records the time of the round in refine.repeated_at, and the wait starts at the later of that time and refine's last comment. The dry-run plan lists the record.
44476a2 to
cb2a506
Compare
Review findings1. Blocking,
One part not done: the wait requirement in Live steps: none. The mark is a new job-record key, and the change adds no ConfigMap or Secret setting. |
🤖 I have created a release *beep* *boop* --- ## [0.118.0](v0.117.2...v0.118.0) (2026-11-12) ### Features * **ci:** devops ci stops its rows when timeout ends it ([#5031](#5031)) ([1fa4e9c](1fa4e9c)) * **roadmap:** keep the stage gate problems as a list with a code ([#5022](#5022)) ([5819627](5819627)) * **roadmap:** log one result line for each roadmap job attempt ([#4966](#4966)) ([2b6fe3f](2b6fe3f)) * **telemetry:** record each CLI usage error by name and kind ([#4973](#4973)) ([a179fd9](a179fd9)) ### Bug Fixes * **ai:** chat loads each persona prompt and challenger gets tools ([#5037](#5037)) ([c40b0ad](c40b0ad)) * **ai:** keep the HTTP status of a Claude reply after retries ([#4976](#4976)) ([5bf9466](5bf9466)) * **deps:** keep Renovate uv bumps green and groups on Monday ([#4987](#4987)) ([b19e153](b19e153)) * **k8s:** raise the limits that 7 d of use shows are too low ([#5030](#5030)) ([028c62b](028c62b)) * **roadmap:** a job posts no comment that repeats a recent one ([#4978](#4978)) ([fff903a](fff903a)) * **service:** alert when GitHub cannot deliver a webhook ([#5045](#5045)) ([2bfbfcb](2bfbfcb)) * **service:** delete the stream route that sends canned verified text ([#5038](#5038)) ([e9d51b5](e9d51b5)) * **telemetry:** keep one upstream status series per service ([#4986](#4986)) ([3e4ca56](3e4ca56)) * **tests:** remove the runner variable in the test floor ([#4988](#4988)) ([093aa61](093aa61)) ### Performance Improvements * **ai:** make the ast graph walk and call search faster ([#5039](#5039)) ([3b25cc6](3b25cc6)), closes [#4662](#4662) * **ci:** build the devcontainer only on its own inputs ([#4977](#4977)) ([c5b15ac](c5b15ac)) * **ci:** test each merge once, on the push to main ([#5043](#5043)) ([c6992b1](c6992b1)) * **tests:** remove fixed waste in six slow tests ([#4995](#4995)) ([1c7044e](1c7044e)) ### Code Refactoring * **ai:** delete devops ai pipeline and persona leftovers ([#5044](#5044)) ([d5fefde](d5fefde)), closes [#4827](#4827) * **openspec:** split big capabilities into nested ones ([#4981](#4981)) ([dfb09bd](dfb09bd)) * **pr:** devops pr update acts only on a failed check ([#4990](#4990)) ([aa4fa1a](aa4fa1a)) --- 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>
A roadmap job posted the same comment again when a later round found the same facts: refine at each new commit, and the implement checks with the same stop and clear.
Before a store posts a comment with a job marker, it reads the comments of the issue. It refuses the comment when the same text, with commits, digests and run IDs left out, is in the trailing run of that job's comments and is less than 7 days old. A person's reply or another job's comment ends the run. A counter counts each refusal by
row.After a refused refine comment, refine records the round time in
refine.repeated_at. The wait starts at the later of that time and refine's last comment, so one change of a cause gives one new look.tests/support/write_stops.pystops a job after each write and runs it again (ADR 0021).Closes #4793
Change:
openspec/changes/archive/2026-11-12-4793-no-repeat-job-comment/