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
validate-audit-record.py rejects fixes merged outside its commit range #2606
Make validate-audit-record.py check a FIXED resolution reference against the commits of the audited pull request and its recorded follow-up pull requests, so the result no longer depends on the local --base ref or on whether the fix is already merged.
Problem
The script requires every Resolution reference commit subject to exist in <base>..HEAD, with --base defaulting to develop. With an up-to-date base, a merged fix is no longer in that range, so valid audits fail: on 2026-10-21 at torrust/develop = 6da62f0ee, --base torrust/develop fails 3 rows of the PR #2584 audit and 1 row of the PR #2599 audit. With the default, the local develop branch can be stale, so the same audits pass by accident. A fix can also live in another pull request: the WAIT-001 fix of the PR #2584 audit merged in PR #2596.
Proposed fix
Build the valid subjects from <base>..HEAD, the audited PR's commits, and the commits of every PR in a Follow-up PR URL field, fetched with gh api repos/<owner>/<repo>/pulls/<n>/commits --paginate. The change is small (the script is 227 lines and the faulty check is one function), so this issue does not migrate the script to Rust.
The full specification is in docs/issues/open/ (spec-only PR to follow).
Reopened: this issue was closed by mistake when #2613 merged. The #2613 description said "Does not close #2606", and GitHub's keyword parser matches close #2606 regardless of the negation. #2613 only added the Implementation Completion Review section to the spec. The validator fix is not implemented, so this issue stays open until its implementation PR merges.
Activity
docs(issues): record the torrust#2606 reproduction evidence before sp…
docs(issues): require test-design review gates in the torrust#2606 plan
docs(issues): update local develop separately in the torrust#2606 M2 …
docs(issues): add issue specification for #2606
Merge #2607: docs(issues): specify the validate-audit-record.py merge…
docs(issues): add the implementation completion review section to #2606
Merge torrust#2613: docs(issues): add the implementation completion r…
josecelano commentedon Oct 23, 2026
Reopened: this issue was closed by mistake when #2613 merged. The #2613 description said "Does not close #2606", and GitHub's keyword parser matches
close #2606regardless of the negation. #2613 only added the Implementation Completion Review section to the spec. The validator fix is not implemented, so this issue stays open until its implementation PR merges.Merge #2630: docs(skills): state that a negated closing keyword still…
4 remaining items
test(pr-reviews): [#2606] accept a fix subject found only in a follow…
fix(pr-reviews): [#2606] accept fix subjects from follow-up PRs named…
test(pr-reviews): [#2606] reject unknown subjects and report gh failu…
fix(pr-reviews): [#2606] exit 2 naming the endpoint when listing PR c…
docs(pr-reviews): [#2606] describe the three commit-subject sources o…
docs(issues): [#2606] record the final recheck, V3, and the existing-…
docs(issues): [#2606] mark the implementation tasks, checks, and crit…
docs(issues): [#2606] correct the completion review stamp
Merge torrust#2641: fix(pr-reviews): [torrust#2606] accept audit fixe…
chore(issues): archive closed issue torrust#2606 spec to docs/issues/…
Merge #2655: chore(issues): archive closed issue #2606 spec to docs/i…
docs(issues): [torrust#2606] count the red regression cases as two in…
docs(issues): [#2606] correct stale records and the audit count in th…
Merge #2657: fix(pr-reviews): address the unprocessed review findings…