Skip to content

docs(issues): add specifications for the wait-for-pr-review bugs and the CLI output contract decision - #2716

Merged
josecelano merged 9 commits into
torrust:developfrom
josecelano:2712-wait-for-pr-review-bug-and-adr-specs-spec
Nov 4, 2026
Merged

josecelano merged 9 commits into
torrust:developfrom
josecelano:2712-wait-for-pr-review-bug-and-adr-specs-spec

Conversation

@josecelano

Copy link
Copy Markdown
Member

Related to #2712, #2713, #2714 and #2715

Adds the specifications of four issues opened after the wait-for-pr-review poller (issue #2581) merged. This is a spec-only pull request: it adds documents and two disposable reproduction scripts, and changes no code. All four issues stay open when it merges.

The specifications

Each bug specification follows the fix-bug template: the plain-language explanation, the reproduction outcome recorded in manual-verification-evidence.md, the regression-test boundary and the fix options with a recommendation, for the maintainer to decide. Nothing is implemented.

Changes

Validation

  • Pre-commit passed, including linter all, and the pre-push hook passed on push.
  • frontmatter-validator passes on the four folders, and shellcheck passes on the two scripts.
  • The specifications cite only commits that are on develop, and the branch is rebased on the current develop.
  • The reproductions were run on develop at f7fecdf14 with rustc 1.99.1, and their output is recorded in each evidence file.

…ust#2714 and torrust#2715

Three bug specifications for the wait-for-pr-review poller, each with a
reproduction on the real binary, and a decision specification about the
scope and the exit-code policy of the global CLI output contract.

Co-authored-by: Copilot <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

9 open issues
What changed in this PR

Adds spec documentation for four follow-up issues discovered after merging the wait-for-pr-review poller, plus an ADR-decision task around CLI output contract scope/exit-code policy.

Changes:

  • Added three bug specifications (#2712–#2714) with accompanying manual verification evidence and disposable reproduction scripts (where applicable).
  • Added one task specification (#2715) to drive an ADR decision on CLI output contract scope and exit-code policy.
  • Documented reproduction outcomes, regression test boundaries, and fix options without implementing code changes.
File Description
docs/​issues/​open/​2715-cli-output-contract-scope-and-exit-code-policy/​ISSUE.md Adds task spec for deciding CLI output contract scope + exit-code policy via ADR.
docs/​issues/​open/​2714-2003-wait-for-pr-review-head-race-between-requests/​ISSUE.md Adds bug spec for head-vs-feedback race across sequential gh calls.
docs/​issues/​open/​2714-2003-wait-for-pr-review-head-race-between-requests/​manual-verification-evidence.md Records scripted reproduction evidence for #2714.
docs/​issues/​open/​2714-2003-wait-for-pr-review-head-race-between-requests/​evidence/​fake-gh-head-race.sh Disposable fake gh script to reproduce the #2714 interleaving.
docs/​issues/​open/​2713-2003-wait-for-pr-review-timeout-overflow-panic/​ISSUE.md Adds bug spec for --timeout-seconds overflow/panic and contract violation.
docs/​issues/​open/​2713-2003-wait-for-pr-review-timeout-overflow-panic/​manual-verification-evidence.md Records real-binary evidence for #2713 timeout overflow panic behavior.
docs/​issues/​open/​2712-2003-wait-for-pr-review-pipe-wait-after-exit/​ISSUE.md Adds bug spec for unbounded pipe-wait after successful gh exit.
docs/​issues/​open/​2712-2003-wait-for-pr-review-pipe-wait-after-exit/​manual-verification-evidence.md Records real-binary evidence for #2712 pipe wait / timeout + SIGTERM delay.
docs/​issues/​open/​2712-2003-wait-for-pr-review-pipe-wait-after-exit/​evidence/​fake-gh-leaves-pipe-open.sh Disposable fake gh script reproducing pipes held open by a descendant.

Review effort: Lite

Copilot stopped reviewing on behalf of josecelano due to an error November 4, 2026 12:38
josecelano and others added 2 commits November 4, 2026 13:07
The drafting entries in the progress logs carried stamps (12:00 to 12:30)
that were written before the reproduction and lint commands ran (11:49 to
11:56 UTC), and the 2714 and 2715 logs were out of order. Keep the earlier
entries, append a correction entry to each log and set last-updated-utc to
the time of the edit.

Co-authored-by: Copilot <[email protected]>
The manual scenarios M1 and M2 cited sections of a manual-verification-evidence.md
that this specification-only pull request does not add. Replace the references
with TBD; the file is written when the scenarios run.

Co-authored-by: Copilot <[email protected]>
Record the nine findings of Copilot's review 5768334587 with their
dispositions, reply URLs and processing log.

Co-authored-by: Copilot <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

4 open issues
9 resolved since last review

Review effort: Lite

josecelano and others added 2 commits November 4, 2026 13:41
…2715 specs

The drafting entries carry a wrong stamp that sorts after the approval entry,
although the file order matches the order of the events. Mark them OUT-OF-ORDER
instead of reordering, and record the marking in a new log entry.

Co-authored-by: Copilot <[email protected]>
The script keeps the pull request head at A for every read and uses B only as
the commit a review names, so HEAD_B was misleading. Rename it to
REVIEW_COMMIT_B.

Co-authored-by: Copilot <[email protected]>
…e PR 2716 audit

Record findings F10 to F13 of review 5769278008 with their dispositions,
reply URLs and processing log entries.

Co-authored-by: Copilot <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The fake always returns head A, preventing the post-feedback read from observing head B and causing the recommended fix to fail the required V2 recheck.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Fake must return head B after the second review-list response

docs/​issues/​open/​2714-2003-wait-for-pr-review-head-race-between-requests/​evidence/​fake-gh-head-race.sh:28

The fake always returns head A, so the recommended fix—reading the head again after feedback—still fails the required V2 recheck after receiving review B. Return B once the second review-list response has been served, so the unfixed reader still sees A while the post-feedback read observes the push.

4 resolved since last review

Review effort: Balanced

…the feedback calls

The fake gh always reported head A, so a fix that reads the head again after
the feedback calls could not pass the M2 recheck. Report head B for a
pull-request read made after the second review-list response, keep the first
read of each snapshot at A, and record the rerun of the unfixed build.

Co-authored-by: Copilot <[email protected]>
@josecelano

Copy link
Copy Markdown
Member Author

Response to the review-body finding of Copilot review 5770062493 (F14 in the audit, docs/pr-reviews/pr-2716-review/PR-REVIEW.md): the fake gh in evidence/fake-gh-head-race.sh always returned head A, so a fix that reads the head again after the feedback calls could not pass the M2 recheck.

Valid. Fixed in docs(issues): let the 2714 reproduction script report the push after the feedback calls: the first pull-request read of every snapshot still reports head A, and a read after the second review-list response reports head B. I ran the unfixed poller against the new script (head_sha aaaa…, review of bbbb…, the same result as V1) and the pre-commit checks.

… PR 2716 audit

Record finding F14 of review 5770062493, which has no inline thread, with its
disposition, conversation reply URL and processing log entries.

Co-authored-by: Copilot <[email protected]>
@josecelano

Copy link
Copy Markdown
Member Author

ACK ce97c76

@josecelano
josecelano merged commit 15da3a9 into torrust:develop Nov 4, 2026
20 of 22 checks passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
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 added issue specifications and their evidence under docs/issues/, including two disposable reproduction scripts that no build or CI job runs, so it has no executable effect.

This branch was previously deployed

1 inactive deployment
coverage — ce97c761 Deployed Nov 4, 2026 by josecelano via Generate Coverage Report #2924
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants