mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 13:27:45 +00:00
The Claude review workflow posted long, padded inline comments, and every force push produced a fresh batch of new findings on code that had not changed. Both make authors stop reading the reviews. Add a comment style section to the prompt that limits each comment to the problem and the obvious fix, and truncate anything over 1000 characters in the post job. Track the number of completed reviews and the last reviewed head in a hidden state line in the tracking comment. Each successful review narrows the severities that may be posted: everything on the first review, no nits on the second, and only must-fix findings from the third on. The post job enforces the policy so it holds even if the model ignores the prompt, and reviewers are told to range-diff against the previous head and skip non-must-fix findings on unchanged code. Commenting "@claude review full" resets the count for that run.