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
feat(github-review-threads): [#2761] report a missing reply as a result with exit 0 - #2775
github-review-threads reply-status now prints one JSON result {kind, threads, summary} on stdout, with kindall_replied or missing_reply, and exits 0 for both: a thread without a reply is an answer, not a failure.
Could-not-answer (unreadable or unparseable threads file) stays exit 1 with empty stdout and a JSON diagnostic; usage errors and TTY refusal stay exit 2.
resolve-review-threads and fetch-review-threads skills now branch on kind (jq -e '.kind == "all_replied"') instead of the exit code. No other skill or doc cited the old exit 1, and the batch scripts do not call reply-status.
Dependency
Stacked on the spec-only PR #2771 (the first commit here is its spec commit). Rebase onto torrust/develop once #2771 merges.
Verification
cargo test -p github-review-threads passes; tests/cli.rs covers both kinds, exit 1 and exit 2.
linter all passes.
Manual scenarios M1 and M2 are recorded in docs/issues/open/2761-2758-reply-status-result/manual-verification-evidence.md.
… a result with exit 0
reply-status now prints one JSON result {kind, threads, summary} on stdout
with kind all_replied or missing_reply and exits 0 for both. Fetch and parse
failures stay exit 1, usage and TTY refusal exit 2. The two review-thread
skills branch on kind (jq -e) instead of the exit code.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The CLI tests do not isolate the required --login check and omit malformed-JSON coverage, leaving specified failure behavior insufficiently guarded against regressions.
Updates Torrust’s review-thread CLI to follow the global output contract: missing replies are successful results, not command failures. The stacked diff also includes the migration specifications from #2771.
Changes:
Adds all_replied and missing_reply JSON results with exit 0, while preserving failure and usage-error exits.
Updates CLI tests, review-thread skills, and manual verification evidence.
Includes EPIC #2758 and its eleven migration issue specifications.
The reason will be displayed to describe this comment to others. Learn more.
Follow-up (F6). docs/issues/open/2770-2758-close-out-adr-and-epic/ISSUE.md comes from the spec PR #2771 and is outside the files issue #2761 may touch. The finding is valid: when the close-out issue moves the EPIC to docs/issues/closed/, it must also repair the live related-artifacts references in the open specs. It is passed to the EPIC coordinator, to add to the #2770 scope, so the thread stays open here.
The reason will be displayed to describe this comment to others. Learn more.
Follow-up recorded (F6): the #2770 close-out spec on PR #2771 now includes repairing the child specs' references to the moved EPIC path, in commit docs(issues): [#2758] make the close-out issue repair the references to the moved EPIC spec. The thread stays open until that lands.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved documentation and verification gaps include a masked command exit status, an unsupported stdout claim, and inconsistent severity labels, follow-up links, and audit timestamps.
The log dates drafting and issue creation after GitHub's recorded creation time for #2761 (2026-11-06T16:51:44Z), and places the 17:18 implementation entry after 17:25. Correct the timestamps from event evidence, preserve published history with explicit correction entries, and record the missing review-round-1 updates.
This redirects the usage-error stdout to /dev/null, so V2 does not establish the later claim that it contained zero bytes. Please capture stdout in a file, record its byte count and the command's exit status, and update the observed evidence before marking this manual scenario complete.
Capture the producer's exit status from the pipeline
Without pipefail, $? here is cat's status, so M1 reports 0 even when package-coverage-check correctly exits 2. Capture ${PIPESTATUS[0]} immediately after the pipeline so the scenario verifies the producer's usage-error status.
- Concern: T1 was `DONE` but no prose-first Arrange-Act-Assert design review was recorded, as `write-unit-test` requires.
- Solution: Added a "Test Design Review (Prose-First AAA)" section to the spec with the comparison for each new or changed test, stating that it was done in review round 1 and not before the first commit.
- Current-tree verification: The section exists in `docs/issues/open/2761-2758-reply-status-result/ISSUE.md` and lists the five tests of `tests/cli.rs`.
- Solution: Valid, but `2770-2758-close-out-adr-and-epic/ISSUE.md` comes from spec PR #2771 and is outside the files issue #2761 may touch. The EPIC coordinator added the repair to the #2770 scope in PR #2771.
- Current-tree verification: Coordinator message: commit `docs(issues): [#2758] make the close-out issue repair the references to the moved EPIC spec` on PR #2771.
- 2026-11-06 21:05 UTC - Round 1 (Copilot review 5806236557): fixes pushed, then replies posted on all six threads (GitHub reply times 21:05:22 to 21:05:36); a second reply on F6 at 21:08:50.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed at 160f9a5534522a3f51cb60d6b3db9f3a66dffc8e. Recomputed from the bytes at this head, against the merge base 997d85416; git merge-tree against develop997d85416 is clean and its tree equals the head's tree, because develop is the merge base.
Process: create-issue, write-unit-test, commit-changes, open-pull-request, process-pr-review and resolve-review-threads govern this change. The spec commit is stacked from the unmerged spec PR, which the spec's open checkbox records.
The change against its claim: the code does what the title says. reply-status prints one {kind, threads, summary} object on stdout and exits 0 for both kinds; could-not-answer stays exit 1 with empty stdout, usage stays exit 2. I recomputed the fixture against the retired capture (author 1 of 2, reviewer 2 of 2) and ran jq -e on empty input (4), a false result (1) and a true one (0), so the skill's pipeline text holds. The defects are in the records: the audit, the evidence and the progress logs each need a correction before merge, and every one is repairable by the author, so none blocks.
Consistency: the frontmatter artifacts and spec paths resolve, nothing is moved or renamed, the dictionary is unchanged and the new words are real. The sibling specs' code claims match the tree except F9 to F11 and F16.
Hygiene: six Conventional commits with the [#N] form, author equal to committer, each with one attribution footer that no rule in the tree forbids; git diff --check is clean; the commit-id check prints one token (F1); the closing-keyword scan matches only Closes #2761 in the description, the right keyword for an implementation, and nothing in the title or commit messages.
Findings: F1 to F11 Minor; F12 to F16 Nit; F17 Suggestion.
Checked, no finding: kind and its serialization in both unit tests; the clap usage text against the new test; the audit's review ids, replies and subjects offline against the captured comments; the ten-test count; the EPIC's order, waves and subissue paths; the batch scripts do not call reply-status.
Checks
On the loop's compute node at this head, against the merge base 997d85416 (receipt server-gates-kranich-523): the repository's pre-commit gate exit 0 (dictionary, documented clippy allows, cargo machete, cargo deny check bans, nightly rustfmt, linter all, the Containerfile lint and the workspace doc tests); clippy-allow-reasons against the base exit 0, and the tree left clean; cargo test -p github-review-threads exit 0 (15 unit and 10 integration tests passed, none failed); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2775-review exit 0 (6 rows, 2 log entries, no failures), run with the pull request's commit list captured from the forge. GitHub checks at this head at posting time: "". At posting, develop is 997d85416.
Round 1: Copilot review 5806236557 on the head `e3cb61b77` (six inline findings). F1 to F5 are valid and fixed; F6 concerns a spec from PR #2771 and is a follow-up there.
The reason will be displayed to describe this comment to others. Learn more.
[Minor][F1] The audit cites a PR-branch commit by its id.
Line 31 names the reviewed head as e3cb61b77. The open-pull-request skill's commit-id check, run at this head, prints exactly that token, and both that skill and this record's Completion Rules (line 142) forbid a branch id in an audit. The description announces a rebase onto develop once the stacked spec lands, which rewrites the id, so the merged audit would name a commit that no longer exists. Cite the subject feat(github-review-threads): [#2761] report a missing reply as a result with exit 0.
The reason will be displayed to describe this comment to others. Learn more.
[Minor][F2] The evidence claims a stdout measurement that was not taken.
stdout was empty (0 bytes) in both cases, but step 2 (line 55) sends stdout to /dev/null, so only the first case has a byte count, and M2 is marked DONE on this section. Step 1 pipes into wc -c and then reads "the exit status", which without PIPESTATUS (named in V1) or pipefail is wc's 0, so the recorded exit 1 does not follow from the command as written. process-pr-review requires a record to state only what ran. Re-run with stdout captured to a file and the producer's status read, or narrow the conclusion to what was measured.
- 2026-11-06 17:10 UTC - Claude Code (Claude Sonnet 5.5) - Drafted this spec as part of EPIC #2758 from the 2026-11-06 audit.
- 2026-11-06 17:25 UTC - Claude Code (Claude Sonnet 5.5) - Maintainer approved the spec; GitHub issue #2761 created.
- 2026-11-06 17:18 UTC - Claude Code (Claude Sonnet 5.5) - Implemented: kinds `all_replied` / `missing_reply`, result `{kind, threads, summary}` (no `message`), exit 0 for both; batch scripts do not call `reply-status`; both skills updated; manual evidence recorded.
The reason will be displayed to describe this comment to others. Learn more.
[Minor][F3] The progress logs carry times the commit history contradicts.
Lines 131-132 log drafting at 17:10 and approval with issue creation at 17:25, but both arrived in 05df18196, committed 2026-11-06T16:54:41Z, so each stamp postdates the commit that carries it. The EPIC's 17:25 entry (line 144) and all ten sibling specs repeat them. This line then logs the implementation at 17:18, after the 17:25 approval, which reads as implementation before approval, and e3cb61b77, which carries it, was committed at 17:17:52Z. process-pr-review requires a stamp taken from git log, the command's output or the forge's time, and only after the event. Correct the times from those sources.
Completed on 2026-11-06 at about 21:03 UTC, in review round 1 of PR #2775 (it was not recorded before the first commit, as the `write-unit-test` skill requires; this closes that gap). For each new or changed test in `contrib/dev-tools/github/github-review-threads/tests/cli.rs` the prose Arrange, Act and Assert were written and compared with the code:
The reason will be displayed to describe this comment to others. Learn more.
[Minor][F4] Several review-round stamps postdate the commit that carries them.
This line says the design review completed at "about 21:03 UTC", and last-updated-utc here (line 12) and in the evidence file says 21:04, while b200d846f carrying them was committed at 21:02:36Z. The audit's last-updated-utc says 07:15 while 160f9a553 was committed at 07:11:45Z, and its log entry stamped 21:05 (line 124) records a reply at 21:08:50. Same rule as F3.
The reason will be displayed to describe this comment to others. Learn more.
[Minor][F5] All six rows use severities outside the record's own vocabulary.
Medium and Low are not among the values on line 23 or in the process-pr-review skill (Blocker, Major, Minor, Nit, Suggestion), and a severity derived from free prose takes (inferred); none of the six source comments states one. The validator passes because it only compares a bracket that is absent here. Reclassify the six rows.
The reason will be displayed to describe this comment to others. Learn more.
[Nit][F13] The environment block does not cover the whole file.
The range stops at 17:18 and the artifact is the pre-commit working tree, while V3 ran at 21:02 UTC on a later tree. No toolchain is named, although the spec (line 164) asks for one.
The reason will be displayed to describe this comment to others. Learn more.
[Nit][F14] This test and the next two also pass with the feature reverted.
The could-not-answer and usage paths are byte-identical at the merge base. They pin the boundary AC3 names, which is useful, so no change is needed; only the two kind tests above exercise this change, and T1's red tests can only be those.
The reason will be displayed to describe this comment to others. Learn more.
[Nit][F15] write_diagnostic no longer needs to be generic.
This change removes its only other caller, leaving emit_diagnostic as the sole user of the &impl Serialize helper at line 158, outside this diff. Folding it back removes the indirection.
Sibling issues do not edit the ADR table (only issue 1 and this one do), so the table still says some tools are non-compliant when they are done. This is the close-out PR described by the epic-coordination process: move the EPIC spec to `docs/issues/closed/`, update the Subissues table and acceptance verification. Also remove the scripts-audit follow-ups that became issues, and record leftover non-compliance with its issue.
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion][F17] has a reply reads narrower than what the code computes.
Any comment by the login counts, including the one that opened the thread, a behaviour this PR inherits. V3 records it: all_replied, 6 of 6, for a login that replied to nothing, so the gate passes for a login that only opened the threads. Say has a comment from here and in the skills, or exclude each thread's first comment.
ACK 160f9a5 — reply-status prints one {kind, threads, summary} object and exits 0 for both result kinds while could-not-answer and usage keep exits 1 and 2, recomputed at this head with no blocking finding
…ssues/closed
a7c5671 docs(issues): [#2758] use the bare DONE status for the #2761 row and move the PR number to the notes (josecelano-bot)
bf7849f docs(issues): [#2761] record in the progress log why no retrospective was needed (josecelano-bot)
c0b87c1 docs(issues): [#2761] state that reviewers ACKed in the merge commit but did not update the checkboxes (josecelano-bot)
f8dd187 docs(issues): [#2761] name both process gaps in the retrospective line (josecelano-bot)
d37d275 docs(issues): [#2761] leave the spec-only PR checkpoint unticked because it did not happen (josecelano-bot)
666421d chore(issues): archive closed issue #2761 spec to docs/issues/closed (josecelano-bot)
Pull request description:
Archives the spec for issue #2761 (closed on GitHub, implemented by #2775) from `docs/issues/open/` to `docs/issues/closed/`. Part of EPIC #2758.
- Verified issue #2761 is `CLOSED` on GitHub.
- Updated frontmatter (`status: done`, `spec-path`, `related-pr: 2775`, `last-updated-utc`) and ticked the checkpoints that are true; "Reviewer validated acceptance criteria" stays unticked because reviewers approved in the ACK lines of the merge commit but none updated the checkboxes; "Spec-only PR merged" stays unticked because the spec reached `develop` together with the implementation.
- Updated the EPIC #2758 sub-issue table row to `DONE (PR #2775)` with the new path.
- `rg 2761-2758` finds no other live reference to the old path.
- `linter all` passed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
ACKs for top commit:
da2ce7:
ACK a7c5671 — the five fixes, the facts they add and the unchanged paths recomputed at this head, with the description and audit findings non-blocking
josecelano:
ACK a7c5671
Tree-SHA512: 5f58130b854fe13182967f1cf16669bb375916f8ee8c3d52c4147115b69f4969303da6fb4aae83810c0f3911d9a3b7df959a000f332d651bbd33f223139c0468
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
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.
Closes #2761. Part of EPIC #2758.
Summary
github-review-threads reply-statusnow prints one JSON result{kind, threads, summary}on stdout, withkindall_repliedormissing_reply, and exits0for both: a thread without a reply is an answer, not a failure.1with empty stdout and a JSON diagnostic; usage errors and TTY refusal stay exit2.resolve-review-threadsandfetch-review-threadsskills now branch onkind(jq -e '.kind == "all_replied"') instead of the exit code. No other skill or doc cited the old exit1, and the batch scripts do not callreply-status.Dependency
Stacked on the spec-only PR #2771 (the first commit here is its spec commit). Rebase onto
torrust/developonce #2771 merges.Verification
cargo test -p github-review-threadspasses;tests/cli.rscovers both kinds, exit 1 and exit 2.linter allpasses.docs/issues/open/2761-2758-reply-status-result/manual-verification-evidence.md.🤖 Generated with Claude Code