Repository navigation
docs(pr-reviews): mark WAIT-001 fixed in the PR 2584 audit - #2599
Merged
josecelano merged 3 commits intoOct 21, 2026
Merged
Conversation
PR torrust#2596 merged the poller spec fix for Copilot finding WAIT-001. Change the disposition from FOLLOW_UP to FIXED, cite the fix commit subject and the follow-up PR, and log the closure. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The audit reflects the merged specification fix, with only a non-blocking log-placement correction remaining.
1 open issue
What changed in this PR
Updates the PR #2584 review audit to record WAIT-001 as fixed by merged PR #2596. No runtime behavior changes.
Changes:
- Changes WAIT-001 from
FOLLOW_UPtoFIXED, retainingNON_RESOLVABLE. - Records the fix reference, follow-up PR, and updated verification evidence.
- Adds a dated closure event.
| File | Description |
|---|---|
| docs/pr-reviews/pr-2584-review/PR-REVIEW.md | Records WAIT-001’s resolution and supporting evidence. |
Review effort: Balanced
… Log The closure entry was appended after the Completion Rules section, so readers of the Processing Log missed it. Place it after the existing log entries, before the append-only notice, and leave earlier entries unchanged. Co-authored-by: Copilot <[email protected]>
Record Copilot review 5597905213 (AUDIT-001, Nit) with its fix, reply, and thread resolution. Co-authored-by: Copilot <[email protected]>
Member
Author
|
ACK ae26e2c |
This was referenced Oct 21, 2026
josecelano
added a commit
that referenced
this pull request
Oct 21, 2026
…d-fix subject fix dca0cd6 docs(pr-reviews): record the review audit for PR 2607 (Jose Celano) 7d1469f docs(issues): update local develop separately in the #2606 M2 scenario (Jose Celano) 6f55bb5 docs(issues): require test-design review gates in the #2606 plan (Jose Celano) 2dbe0d8 docs(issues): record the #2606 reproduction evidence before spec review (Jose Celano) a18cd04 docs(issues): add issue specification for #2606 (Jose Celano) Pull request description: ## Summary Spec-only PR for #2606. `validate-audit-record.py` requires each `FIXED` resolution reference to be a commit subject in `<base>..HEAD`. With an up-to-date base, a merged fix is outside that range, so valid audits fail. With the default local `develop`, they pass only when that branch is stale. ## Evidence Reproduced on 2026-10-21 at `torrust/develop` = `6da62f0ee`: `--base torrust/develop` fails 3 rows of the PR #2584 audit (F1, F2, WAIT-001) and 1 row of the PR #2599 audit (AUDIT-001). WAIT-001's fix merged in PR #2596, not #2584. ## Proposed fix Valid subjects come from `<base>..HEAD`, the audited PR's commits, and the commits of every PR in a `Follow-up PR URL` field (`gh api .../pulls/<n>/commits`). The script is 227 lines and the faulty check is one function, so the spec sizes this as a small fix and not a Rust migration. ## Correction The description of #2599 said the default `--base develop` fails on merged audits. That was wrong: I had tested `--base d21282a^1`. The spec records the accurate behaviour. ## Validation `linter all` and the pre-commit and pre-push hooks passed. Spec only: no script or skill changes. ## Related Related to #2606 (EPIC #2278), #2584, #2596 and #2599. ACKs for top commit: josecelano: ACK dca0cd6 Tree-SHA512: 62daafe95dece3470e619ff64cb283e14fc4dc0e64be329d50e5b61b3755cc554e604801179cffbfb79f9999af5837629080695cbc10e072d26ebba4566949ac
josecelano
added a commit
that referenced
this pull request
Oct 25, 2026
…de the local commit range 453c6fa docs(issues): [#2606] cite the checked commit by subject in the evidence (Jose Celano) 1e249e2 docs(issues): [#2606] correct the completion review stamp (Jose Celano) 3e3df26 docs(issues): [#2606] mark the implementation tasks, checks, and criteria done (Jose Celano) 298370c docs(issues): [#2606] record the final recheck, V3, and the existing-audit rerun (Jose Celano) c888ca0 docs(pr-reviews): [#2606] describe the three commit-subject sources of validate-audit-record (Jose Celano) b6daa32 fix(pr-reviews): [#2606] exit 2 naming the endpoint when listing PR commits fails (Jose Celano) ceebff0 test(pr-reviews): [#2606] reject unknown subjects and report gh failures as usage errors (Jose Celano) 097a86f fix(pr-reviews): [#2606] accept fix subjects from follow-up PRs named in the audit (Jose Celano) bf9928b test(pr-reviews): [#2606] accept a fix subject found only in a follow-up PR's commits (Jose Celano) 1e28a2c fix(pr-reviews): [#2606] accept fix subjects from the audited PR's commits (Jose Celano) f42bf3e test(pr-reviews): [#2606] accept a fix subject found only in the audited PR's commits (Jose Celano) 445fa35 docs(issues): [#2606] record maintainer decisions and follow-up URL parsing in the spec (Jose Celano) Pull request description: ## Summary `validate-audit-record.py` required every `Resolution reference` commit subject to exist in `<base>..HEAD`. With an up-to-date base, a merged fix is no longer in that range, so valid audits failed (`--base torrust/develop` failed 3 rows of the PR #2584 audit and 1 row of the PR #2599 audit). With the default base, a stale local `develop` made the same audits pass by accident. A fix can also merge in another pull request, as the WAIT-001 fix of the PR #2584 audit did in PR #2596. The valid subjects now come from three sources: the commits of the audited pull request, the commits of every pull request named in a `Follow-up PR URL` field (both fetched with `gh api repos/<owner>/<repo>/pulls/<n>/commits --paginate`, which works after merge), and `<base>..HEAD` for commits not pushed yet. A failed `gh` call while listing commits exits 2 and names the endpoint; it never falls back to `<base>..HEAD`. The script stays a Python prototype. Closes #2606 ## Files touched - `.github/skills/dev/pr-reviews/process-pr-review/scripts/validate-audit-record.py`: `valid_subjects` replaces `branch_subjects`, new `pulls_to_check`, usage-error exit, help text. - `.github/skills/dev/pr-reviews/process-pr-review/scripts/test_validate_audit_record.py`: new standard-library `unittest` module with `git` and `gh` faked at the process boundary (7 tests). - `.github/skills/dev/pr-reviews/process-pr-review/SKILL.md`: the "Validation Script" section describes the three sources. - `docs/issues/open/2606-2278-validate-audit-record-merged-fix-subjects/`: spec progress, `manual-verification-evidence.md`, and the new `test-design-review.md`. ## Validation - `python3 -m unittest discover -s .github/skills/dev/pr-reviews/process-pr-review/scripts`: 7 tests pass. Each test increment has its red run and prose-first design review in `test-design-review.md`. - `linter all` exits 0, and the pre-push hook (nightly checks and the full stable test suite) passed. - M1: with `--base torrust/develop`, the PR #2584 and PR #2599 audits pass (4 failures before the fix). - M2: the result is identical with a stale and a current local `develop`, with `HEAD` unchanged. - M3: an audit copy with a subject that exists in no commit still fails with exit 1. - Rerun of the 157 audits that have a `FIXED` row: 146 pass; the other 11 also fail with the unmodified script (with more subject failures), for reasons in their own content, so nothing regresses. - A transient GitHub HTTP 502 during the rerun produced the designed exit 2 naming the endpoint. The commands, runtime versions, and output are in `manual-verification-evidence.md`. Two `pulls_to_check` tests go beyond the spec's case list; they pin the follow-up URL parsing rule recorded in the spec. The branch was not rebased onto the latest `torrust/develop`. ACKs for top commit: da2ce7: ACK 453c6fa — the three-source subject check, its seven faked-process tests and the #2606 records were recomputed at this head. josecelano: ACK 453c6fa Tree-SHA512: 7fb11856234bf229b672985f2558dc467c8dc9c71f3ef506bb4165b4d1fdf57cde3e4f9784de3a515e8e3b2980105a32fb06ee871a0792dc20c1b0e07c3eda0a
Contributor
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: It changed only two review records under docs/pr-reviews, with no source, manifest or workflow change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Closes the loop on Copilot finding
WAIT-001(review-finding:pr-2584-wait-001), step 6 of the post-merge workflow in theprocess-pr-reviewskill. PR #2596 merged the spec fix (merge commitd21282aa4, 2026-10-21 09:33:59 UTC).Changes
FOLLOW_UP->FIXED; resolution reference is the fix commit subject; follow-up PR URL is docs(issues): count unresolved threads over the whole PR in the poller exit condition #2596; current-tree verification re-derived ondevelopatd21282aa4.NON_RESOLVABLE(review-body finding, no thread). No GitHub thread to resolve.Validation
validate-audit-record.py --pr-number 2584 --base fcd78975c^1: ok, 0 failures. With the default--base developthe validator cannot see commit subjects of an already merged fix, so a wider base was used; F1 and F2 fail with the default for the same reason.linter alland the pre-commit and pre-push hooks passed.Related
Related to #2581, #2584 and #2596.