Skip to content

docs(issues): [#2333] add spec for fetching all review threads - #2334

Merged
josecelano merged 4 commits into
torrust:developfrom
josecelano:2333-2278-fetch-all-review-threads-spec
Sep 24, 2026
Merged

josecelano merged 4 commits into
torrust:developfrom
josecelano:2333-2278-fetch-all-review-threads-spec

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Spec-only PR for EPIC #2278 subissue 4 (#2333): make the github-review-threads tool and the fetch-review-threads skill return resolved and outdated threads with resolvedBy and line (friction-register items F17, F18, F32), keeping an explicit --unresolved-only view and the unresolved-only reply-status guard for reply and resolution actions.

The draft was written before #2318 was implemented, so it was refreshed against the merged crate (PR #2322) and re-approved:

  • Background names the delivered contrib/dev-tools/github/github-review-threads crate and the output-shape deviations from Port the review-thread shell scripts to a Rust tool #2318 that this issue inherits unchanged.
  • Scope adds aligning the skill's inline gh api graphql fallback query, which has drifted from the tool's query.
  • Design review states that the change extends the existing crate in place and does not create a new script or binary, or move the tool into a unified AI-harness binary; that placement stays an EPIC Overhaul: Automation Tools and AI Agent Guardrails #2003 decision.

Files touched

  • docs/issues/open/2333-2278-fetch-all-review-threads/ISSUE.md - spec moved from docs/issues/drafts/2278-fetch-all-review-threads/, issue number filled in, refreshed content.
  • docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/EPIC.md - order-4 row linked to Align fetch-review-threads with the author workflow #2333 and progress log entry added.

Validation

Related to #2333
Related to #2278

Copilot AI lite review requested due to automatic review settings September 24, 2026 16:13

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

Review effort: Lite
Findings: 2 High severity

Open (2)
What changed in this PR

Spec-only update for EPIC #2278 subissue #2333 to define fetching all review threads (including resolved/outdated) and to align the fetch-review-threads skill/tool contracts and queries.

Changes:

  • Update EPIC #2003/#2278 tracking to link subissue #2333 and record a progress log entry.
  • Refresh the #2333 issue specification (metadata, background/scope, acceptance criteria), including calling out query drift and the desired fallback-query alignment.
File Description
docs/​issues/​open/​2278-2003-strengthen-pr-review-author-self-audit/​EPIC.md Links order-4 subissue to #2333 + updates timestamps and progress log.
docs/​issues/​drafts/​2278-fetch-all-review-threads/​ISSUE.md Updates the spec content/metadata to reflect #2333 and expanded scope (all threads + query alignment).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano josecelano self-assigned this Sep 24, 2026
@josecelano

Copy link
Copy Markdown
Member Author

ACK 6211188

@josecelano
josecelano merged commit a39935c into torrust:develop Sep 24, 2026
1 check passed
@josecelano
josecelano deleted the 2333-2278-fetch-all-review-threads-spec branch September 24, 2026 17:14
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Sep 26, 2026
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Sep 26, 2026
josecelano added a commit that referenced this pull request Sep 27, 2026
…ings

3e89461 docs(pr-reviews): record PR #2344 round 2 thread resolution (Jose Celano)
b20eb55 docs(pr-reviews): record PR #2344 review round 2 (Jose Celano)
740f6ed docs(pr-reviews): make PR #2344 audit verifications reproducible at head (Jose Celano)
6123dea test(dev-tools): require exactly one skill fallback query block (Jose Celano)
5213cf1 docs(pr-reviews): bump process-pr-review to 1.4 for the post-merge changes (Jose Celano)
b785bad docs(pr-reviews): record PR #2344 thread resolution (Jose Celano)
fbd7c64 docs(pr-reviews): add PR #2344 review audit (Jose Celano)
ddbe1ef docs(pr-reviews): use N/A for unreassigned reviewer IDs in PR #2339 audit (Jose Celano)
c84e05b docs(issues): cite the #2333 evidence correction by its finding reference (Jose Celano)
5f3a7f3 docs(pr-reviews): point PR #2334 audit to the archived #2333 spec (Jose Celano)
b56c04e docs(pr-reviews): cover post-merge follow-ups for PRs without an audit (Jose Celano)
777faf7 test(dev-tools): document fallback-query extraction and evidence-window intent (Jose Celano)
75fa474 docs(pr-reviews): add PR #2339 post-merge review audit (Jose Celano)
c92d5b3 chore(issues): archive closed issue #2333 spec to docs/issues/closed (Jose Celano)
67496cd docs(pr-reviews): apply the post-merge workflow to findings unprocessed at merge (Jose Celano)
70e8821 docs(issues): record the exact #2333 evidence commands (Jose Celano)
79e827e test(dev-tools): pin review-thread query fields and explicit nulls (Jose Celano)

Pull request description:

  ## Summary

  Post-merge follow-up for PR #2339 (#2333, EPIC #2278 order 4). PR #2339 merged with three non-blocking inline findings from review 5310586223 still unprocessed. The maintainer approved handling them here: <#2339 (comment)>.

  - **F1** (Suggestion): no test pinned that the live query requests `line` and `resolvedBy`, so a dropped field would read back as `null`, indistinguishable from GitHub's "unknown". A new test requires both fields at thread level next to `path`, and a second test requires the `fetch-review-threads` skill's fallback query to match the tool's query token for token, so AC1's parity no longer holds only by hand.
  - **F2** (Suggestion): the two explicit-null tests indexed a `serde_json::Value`, which also yields `Null` for a missing key. They now use `Value::get(...) == Some(&Value::Null)`.
  - **F3** (Nit): evidence steps V1-V4 omitted the pipes and `jq` filters that produced their observed blocks. They now record the commands exactly as run, with a dated correction note.

  Also in this PR:

  - `process-pr-review` (version 1.4; `develop` meanwhile used 1.3 for PR #2335's changes) now states that findings submitted before merge but unprocessed when the pull request merged follow the post-merge workflow. This PR is the first case of it.
  - #2333 closure bookkeeping: its spec is archived under `docs/issues/closed/`, and EPIC #2278 marks order 4 and AC2 `DONE`, completing Phase 1.
  - The PR #2339 audit record (`docs/pr-reviews/pr-2339-review/PR-REVIEW.md`) was added after the three #2339 threads received their follow-up replies, because its rows cite those reply URLs.

  ## Commits

  - `test(dev-tools): pin review-thread query fields and explicit nulls` (F1, F2)
  - `docs(issues): record the exact #2333 evidence commands` (F3)
  - `docs(pr-reviews): apply the post-merge workflow to findings unprocessed at merge`
  - `chore(issues): archive closed issue #2333 spec to docs/issues/closed`
  - `docs(pr-reviews): add PR #2339 post-merge review audit`

  Review round 1 of this PR (Copilot review 5325624421 and da2ce7 review 5325898273; audit `docs/pr-reviews/pr-2344-review/PR-REVIEW.md`):

  - `test(dev-tools): document fallback-query extraction and evidence-window intent` (audit F1, F2)
  - `docs(pr-reviews): cover post-merge follow-ups for PRs without an audit` (audit F3)
  - `docs(pr-reviews): point PR #2334 audit to the archived #2333 spec` (audit F4)
  - `docs(issues): cite the #2333 evidence correction by its finding reference` (audit F5)
  - `docs(pr-reviews): use N/A for unreassigned reviewer IDs in PR #2339 audit` (audit F6)
  - `docs(pr-reviews): add PR #2344 review audit`
  - `docs(pr-reviews): record PR #2344 thread resolution`

  After rebasing onto `develop` with PR #2335:

  - `docs(pr-reviews): bump process-pr-review to 1.4 for the post-merge changes`

  Review round 2 of this PR (da2ce7 reviews 5326065019 and 5326267066; audit F7-F9):

  - `test(dev-tools): require exactly one skill fallback query block` (audit F7)
  - `docs(pr-reviews): make PR #2344 audit verifications reproducible at head` (audit F8, F9)
  - `docs(pr-reviews): record PR #2344 review round 2`
  - `docs(pr-reviews): record PR #2344 round 2 thread resolution`

  ## Validation

  - `cargo test --package github-review-threads`: 15 unit (was 13) and 7 CLI tests pass on stable Rust 1.98.1; clippy with `-D warnings` and nightly `rustfmt --check` are clean.
  - Mutants run in the working tree and restored before committing: dropping `line` from the tool query fails the query-field and parity tests; dropping it from the skill fallback fails the parity test; adding `skip_serializing_if` to `ShownThread`'s `resolved_by` and `line` fails both explicit-null tests.
  - The corrected V1-V4 evidence steps, re-run verbatim against PR #2320, reproduced every recorded block.
  - The pre-commit hook (including `linter all`) passed on every commit; the pre-push hook passed.

  ## After merge

  The three PR #2339 threads stay open until this PR merges, then receive replies citing the merge and are resolved, and the PR #2339 audit rows move to `FIXED`.

  Related to #2333
  Related to #2278

ACKs for top commit:
  josecelano:
    ACK 3e89461

Tree-SHA512: 4bfbcf39ca8b0af0c49dbec57f84e11350233bbd06f321aceb7c8c225c5e2caebc2ff6ccfd4dc3e635f9dae4b740f16800ecd734d88bda1d57b9326f48ab1013
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.

2 participants