You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the strict ACK and document the re-ACK after an audit-only commit #2949
Parent EPIC:#2003 - Overhaul: Automation Tools and AI Agent Guardrails
Goal
Record the decision that an ACK <hash> counts only on the commit it names, also when the commits after it change only the pull request's own review audit record, and document the re-ACK that follows such a commit as a normal step of the review process.
This issue first proposed the opposite: a rule that keeps an ACK valid after audit-only commits. The maintainer decided against it on 2026-11-19.
Problem
The review audit record lives on the pull request branch (docs/pr-reviews/pr-<N>-review/PR-REVIEW.md). merge-pull-request (Merge Readiness) and wait-for-pr-review (step 4) require the reviewer's ACK <full head commit hash> on the head. When a finding arrives with or after an ACK, the commit that records it moves the head, and the ACK goes stale. It happened on PR #2947 (2026-11-18) and earlier on PR #2363. The skills do not say what to do then.
Decision
Decided by the maintainer on 2026-11-19: the audit record stays on the pull request branch and the ACK stays strict. After an audit-only commit, the reviewer and the maintainer ACK the new head.
Rejected alternatives, with their reasons in the specification: a rule that keeps the ACK valid, audit records written after merge, a separate metadata branch folded in with a three-parent merge (proposed by da2ce7), and empty commits that carry the audit text.
Remaining work
Skill text only; the merge tool does not change:
merge-pull-request, Merge Readiness: an audit-only commit needs new ACKs, with the command that lists what the commits after the earlier ACK changed (git log --no-renames --diff-merges=first-parent --name-only --format= X..H). The waiver sentence no longer asks for a record in the review audit.
wait-for-pr-review, step 4: a pointer to that text.
process-pr-review: the author keeps the audit commit, tells the maintainer the head needs new ACKs, and never rewrites history to protect an ACK.
The root cause here is that a pull request's work and its own review audit record live on the same branch, so recording a finding moves the head that the ACK names. Relaxing what an ACK covers treats the symptom; I would rather fix the structure.
Proposal: give each pull request two tips.
Work branch: the change itself. This is what is reviewed and what ACK <hash> names. It moves only when the change moves.
Metadata branch: only docs/pr-reviews/pr-<N>-review/. The author records findings, replies and log entries here as often as needed, without touching the work tip.
At merge, the merge tool makes one commit with three parents: develop, the ACKed work tip, and the metadata tip. The metadata branch touches a folder that nothing else touches, so the merge is mechanical, and the tool can refuse it if the metadata branch changes anything outside that folder. The ACK keeps its exact meaning, and the audit history still lands on develop with the merge.
GitHub shows one head per pull request, so CI and the diff view would cover the work branch only, and the metadata branch needs its own ref convention plus validator and merge-tool support. Our merge tool already merges locally, so it can produce this merge.
I would like this weighed against the rule in #2950 before that rule is adopted.
Activity
da2ce7 commentedon Nov 18, 2026
The root cause here is that a pull request's work and its own review audit record live on the same branch, so recording a finding moves the head that the ACK names. Relaxing what an ACK covers treats the symptom; I would rather fix the structure.
Proposal: give each pull request two tips.
ACK <hash>names. It moves only when the change moves.docs/pr-reviews/pr-<N>-review/. The author records findings, replies and log entries here as often as needed, without touching the work tip.At merge, the merge tool makes one commit with three parents:
develop, the ACKed work tip, and the metadata tip. The metadata branch touches a folder that nothing else touches, so the merge is mechanical, and the tool can refuse it if the metadata branch changes anything outside that folder. The ACK keeps its exact meaning, and the audit history still lands ondevelopwith the merge.GitHub shows one head per pull request, so CI and the diff view would cover the work branch only, and the metadata branch needs its own ref convention plus validator and merge-tool support. Our merge tool already merges locally, so it can produce this merge.
I would like this weighed against the rule in #2950 before that rule is adopted.
docs(issues): [torrust#2949] compare da2ce7's metadata-branch alterna…
docs(pr-reviews): [torrust#2949] add the PR torrust#2950 review audit…
docs(issues): [torrust#2949] require --no-renames in the ACK check co…
docs(issues): [torrust#2949] name the merge-tool tests in the regress…
docs(pr-reviews): [torrust#2949] record PR torrust#2950 review round 1
docs(issues): [torrust#2949] map the regression test cases to M1 to M…
docs(pr-reviews): [torrust#2949] record PR torrust#2950 review round 2
docs(issues): [torrust#2949] cite skill sections instead of line numb…
docs(issues): [torrust#2949] state the audit-folder match as an exact…
docs(pr-reviews): [torrust#2949] record PR torrust#2950 review round 3
docs(issues): [torrust#2949] check every commit after the ACK, not on…
docs(issues): [torrust#2949] show the folder match with paths that te…
docs(issues): [torrust#2949] say the rule was proposed and reopened u…
docs(issues): [torrust#2949] add the test-development loop to Commit …
33 remaining items
docs(pr-reviews): [torrust#2949] correct two verification lines in th…
docs(pr-reviews): [torrust#2949] record PR torrust#2989 review round 3
docs(merge-pull-request): [#2949] say an ACK names one commit and how…
docs(wait-for-pr-review): [#2949] point the exit condition to the sta…
docs(process-pr-review): [#2949] keep the audit commit when it makes …
docs(issues): [#2949] name the strict-ACK decision on the EPIC's #2363 …
docs(issues): [#2949] record the implementation progress and the manu…
Merge torrust#2989: docs(skills): [torrust#2949] document the re-ACK …
docs(issues): [torrust#2949] quote the section title in EPIC row 24
docs(pr-reviews): [torrust#2949] add the PR torrust#2992 review audit…
docs(pr-reviews): [torrust#2949] record PR torrust#2992 review round …
docs(pr-reviews): [torrust#2949] keep the reviewer's ID F4 in the PR t…
chore(issues): archive closed issue #2949 spec to docs/issues/closed …
Merge #2992: chore(issues): archive closed issue #2949 spec to docs/i…