R56 Read a pull request description back against the current head
Before you ask for a review of a pull request and before you merge it, read its description back against the current head, and append to the description a line that names that head and gives each correction, or none.
Reason
A description is written over several rounds while the head moves, so a SHA, a number or a conclusion in it can describe an earlier version than the one under review or about to take effect. The facts it states are as actually looked up (Art. VII §1(2)), and what takes effect is exactly the version that was reviewed (Art. VII §3(2)); a reviewer and a merger who rely on the description need it to describe that version. The appended line shows which head the description was last checked against, and keeps both what was claimed and what holds where the next reader looks.
Verification
There are two read-backs: the author’s, before each request for a review or a re-review, against the head it asks to have reviewed; and that of whoever merges, before the merge, against the head the approving verdict names.
Each read-back compares with that head every value the description states, and every value in the comments, artifacts or links it points to for a reading:
- each commit SHA;
- each number, such as a count, a test total or a size;
- each conclusion, such as that a check passed or a claim holds.
It also checks that each narrowing accepted during the review rounds of the pull request, whoever proposed it, is stated in the description.
Each read-back appends one line to the description itself, such as Read back against <head>: <corrections, or none>; the old text stays. A correction made only in a comment, or by overwriting the old text, does not count.
Violated when a review is requested or a pull request merged and the description has no such line for the head under review or being merged, or when a value found wrong is corrected only in a comment or by overwriting the old text.