Repository navigation
feat(dev-tools): [#2318] port review-thread scripts to Rust - #2322
josecelano merged 18 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved CLI compatibility, TTY documentation, parity diagnostics, and executable fixture coverage issues remain.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (4)
What changed in this PR
Ports the review-thread shell helpers to a Rust developer tool with workflow, container, fixture, and documentation updates.
Changes:
- Adds
fetch,list,show, andreply-statuscommands. - Replaces legacy Bash helpers and updates review skills.
- Adds fixtures, workspace integration, ADR registration, and verification evidence.
| File | Description |
|---|---|
docs/issues/open/2318-2278-port-review-thread-scripts-to-rust/manual-verification-evidence.md |
Records manual validation |
docs/issues/open/2318-2278-port-review-thread-scripts-to-rust/ISSUE.md |
Tracks implementation status |
docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/EPIC.md |
Updates EPIC progress |
docs/adrs/20260519000000_define_global_cli_output_contract.md |
Registers the CLI contract |
contrib/dev-tools/github/github-review-threads/tests/fixtures/review-threads.json |
Adds GraphQL fixture data |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/show-unresolved.txt |
Defines show output |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/reply-status.stdout |
Defines reply-status stdout |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/reply-status.stderr |
Defines reply-status stderr |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/reply-status.exit-status |
Defines reply-status exit status |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/list-unresolved.jsonl |
Defines list output |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/fetch.stdout |
Defines fetch stdout |
contrib/dev-tools/github/github-review-threads/tests/fixtures/expected/fetch.stderr |
Defines fetch stderr |
contrib/dev-tools/github/github-review-threads/src/main.rs |
Implements CLI commands |
contrib/dev-tools/github/github-review-threads/src/lib.rs |
Implements fetching and projections |
contrib/dev-tools/github/github-review-threads/Cargo.toml |
Defines the crate |
Containerfile |
Integrates container builds |
Cargo.toml |
Registers the workspace member |
Cargo.lock |
Locks dependencies |
.github/skills/dev/pr-reviews/resolve-review-threads/SKILL.md |
Updates resolution workflow |
.github/skills/dev/pr-reviews/process-pr-review/SKILL.md |
Updates review tooling references |
.github/skills/dev/pr-reviews/fetch-review-threads/SKILL.md |
Documents the new tool |
.github/skills/dev/pr-reviews/fetch-review-threads/scripts/show-unresolved-thread-bodies.sh |
Removes legacy helper |
.github/skills/dev/pr-reviews/fetch-review-threads/scripts/list-unresolved-threads.sh |
Removes legacy helper |
.github/skills/dev/pr-reviews/fetch-review-threads/scripts/get-pr-review-threads.sh |
Removes legacy helper |
.github/skills/dev/pr-reviews/fetch-review-threads/scripts/check-thread-reply-status.sh |
Removes legacy helper |
.dockerignore |
Supports container integration |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at a96036562858aa8823894f7e09a3ff50f134ab92 (round 1). Recomputed from the bytes at this head.
Eight commits over ef234623 (test, feat x2, refactor, build, docs x3), 26 files, +954/-391: a new non-published workspace member contrib/dev-tools/github/github-review-threads (lib.rs 463 lines, main.rs 142, one GraphQL fixture plus seven recorded shell outputs), the four fetch-review-threads Bash/jq helpers deleted, the three review skills repointed at cargo run --package github-review-threads, an ADR classification row, Containerfile and .dockerignore cargo-chef registration, and the #2318 spec plus issue-local evidence. The port keeps the GraphQL call behind a ThreadSource trait and reproduces the retired projections as pure functions over the response.
Parity, recomputed subcommand by subcommand against the base scripts (git show ef234623:...). fetch - identical: query fields, first: 100 / first: 20, the three -F variables, the torrust / torrust-tracker defaults and the /tmp/pr_threads_<n>.json default all match, and the raw response bytes are written unaltered, so resolve-all-unresolved-threads.sh still reads .data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | .id from it (AC2 holds). list - data identical, format changed and documented: {id, isOutdated, path, url} in the same order with the first-comment URL or null; one JSON array replaces the jq -c lines, stated in fetch-review-threads/SKILL.md. show - data identical, format changed and documented: every comment of every unresolved thread with url/author/body; the text block becomes JSON, recorded in the spec's Architectural Decisions. reply-status - changed, partly undocumented: the has_reply rule, the counts and the exit codes match and --login is now required (documented in resolve-review-threads/SKILL.md), but the per-thread payload is dropped on the missing-reply path (F1) and the thread_id key is renamed (F4).
All four retired script names were grepped at head: the surviving hits are historical records (docs/pr-reviews/, docs/copilot-pr-reviews/, docs/issues/closed/) and the #2318 spec's own narrative. No live skill, script, workflow or template still names them.
Copilot was requested at 15:12:20Z but has not reviewed at capture, so there are no review threads to reconcile.
Findings
- [Major][F1]
reply-statuswrites nothing to stdout and names no thread when a reply is missing, so the operator cannot tell which thread to answer; AC3 and the committedexpected/reply-status.stdout/.exit-statusfixtures say otherwise. - [Minor][F2]
tests/fixtures/expected/is read by no test, and four of its seven files record output this binary cannot produce. - [Minor][F3]
listandshowemit a top-level JSON array where ADR section 1 requires exactly one JSON object, under an[x]AC4 compliance claim. - [Minor][F4]
reply-statusrenamesthread_idtoidand drops the summary marker line without recording the deviation. - [Minor][F7] The spec's Workflow Checkpoints (lines 169-173) contradict the task table, the acceptance criteria and the evidence file in the same head.
- [Suggestion][F5] No test exercises the CLI layer: exit codes, stream split, TTY refusal,
--help. - [Suggestion][F6]
emit_json's failure path exits 1 with no stderr diagnostic and possibly partial stdout.
Checked, no finding
GraphQL query field by field and variable binding (owner/repo/number never interpolated into the query); raw-byte fetch and the resolver's jq contract; fetch refuses to write a non-JSON body and leaves no file behind; a missing gh binary and a non-zero gh exit both map to Error::Source and exit 1 (the shell redirect truncated the target file even on failure, so this is strictly better); empty comments.nodes, author: null, resolved-thread filtering and the first-comment url fallback all match the retired jq; the first: 100 / first: 20 caps are unchanged and named in the spec's Out of Scope; the five unit tests can each fail and each pins a distinct projection, with tempfile directories dropped; the manifest follows the package-coverage-check and clippy-allow-reasons precedent (publish = false, [lints] workspace = true, workspace authors/edition/rust-version), and Cargo.lock adds only the package entry because clap 4.6.7, serde 1.0.229, serde_json 1.0.151 and tempfile 3.27.0 were already resolved; the member line sits in path order; the Containerfile treats the crate exactly as its four sibling dev-tools (manifest COPY, src stub for lib.rs and main.rs, --exclude on all four cargo nextest archive invocations) and the .dockerignore un-ignore answers the /contrib/dev-tools/ rule above it; the TTY refusal record matches the ADR's example verbatim; every sha cited in the evidence resolves and f071e20e still carries all four scripts, so V1 and V2 reproduce, and every evidence command is runnable as written (the recipe and test_debug stages exist); EPIC row 3 IN_PROGRESS with its log line is consistent with an open PR; commit subjects are Conventional with ordered timestamps and no attribution trailers; git merge-tree against ef234623 is clean.
CI at this head (orchestrator's step): 18 check-runs at a9603656 — 14 success, 2 skipped, 2 still in progress at posting (Security Scan, Test (Docker) release), none failed. Orchestrator gate on the head (pre-commit: cargo machete, linter all, doc tests; plus clippy-allow-reasons against ef234623): rc 0 in 41 s, tree clean; cargo test --package github-review-threads 5 passed; cargo clippy --package github-review-threads --all-targets -- -D warnings clean; cargo check --workspace --all-targets rc 0. F1 was recomputed independently from src/main.rs:108-119 against the retired script's loop. Copilot's review (four comments) was submitted after this lane's evidence capture at 15:21Z; its two Major items on the documented cargo run commands leaving stdout on a terminal, which the binary refuses, overlap this review's skill-friction note and are not re-argued here.
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 0f0ad34543003fc2ea5a2ed7ae1b7112d89462fe (round 2, delta from a9603656). Recomputed from the bytes at this head.
Seven commits, +485/-46 over 16 paths: two fix(dev-tools) commits wrap list/show in {"threads":[...]}, restore thread_id, attach the per-thread rows to the missing_reply record and buffer emit_json; test(dev-tools) renames tests/fixtures/expected/ to tests/fixtures/retired-scripts/ (seven pure 100% renames, no content change) with a README and a new tests/cli.rs (124 lines, five process-level tests over the built binary); docs(pr-reviews) pipes every skill example; docs(issues) records the deviations and checks the five completed checkpoints; and two docs(pr-reviews) commits add the pr-2322-review/PR-REVIEW.md audit and its closing thread-resolution log line. Every reply's review-finding:pr-2322-* anchor now resolves. Renames, subjects, bodies, timestamps and the merge into current develop all check out.
| Finding | Addressed? | Recomputed evidence |
|---|---|---|
Copilot F1 (Minor) numeric related-pr |
fixed | ISSUE.md:11 is related-pr: 2322 |
Copilot F2 (Major) piped fetch/show/list examples |
fixed | fetch-review-threads/SKILL.md:75,79,83 end in | jq ., | jq '.threads[]', | jq -c '.threads[]'; lines 64-67 state the TTY refusal and the --help behaviour |
| Copilot F3 (Major) redirected gate example | fixed | resolve-review-threads/SKILL.md:75 ends in > /dev/null; 65-70 explain why |
Copilot PR2322-003 (Minor) required --login |
fixed | the comment offered "retain the fallback or explicitly record and justify"; ISSUE.md:115-117 records the deviation with its rationale, so FIXED is accurate for what was asked |
| F1 (Major) missing-reply rows | fixed | main.rs:66-73,123-128: MissingReplyDiagnostic flattens the whole ReplyStatus, so threads and summary ride the stderr record; stdout stays empty, exit stays 1; tests/cli.rs:78-96 compares the rows with retired-scripts/reply-status.stdout and the code with .exit-status |
| F2 (Minor) inert captures | fixed | tests/cli.rs:8-11 include_str!s four captures; retired-scripts/README.md names each source script and marks fetch.stdout/fetch.stderr unread because fetch needs gh |
| F3 (Minor) top-level array | fixed | lib.rs:218 and lib.rs:234 add ListedThreads/ShownThreads; both subcommands now emit one object, as ADR section 1 requires |
F4 (Minor) thread_id |
fixed | lib.rs:193,280 serialize thread_id; key for key the row is thread_id, path, url, has_reply as the retired script printed; the nested summary is recorded as a deviation at ISSUE.md:111-114 |
| F5 (Suggestion) CLI tests | fixed | tests/cli.rs runs env!("CARGO_BIN_EXE_github-review-threads") in five tests covering exit 0/1/2, both streams and --help; TTY refusal still needs a pty and stays on manual evidence V4, stated in the audit |
F6 (Suggestion) emit_json |
fixed | main.rs:141-152 serializes to a buffer, appends the newline, writes once, and maps both failures to an output_error stderr record with exit 1 |
| F7 (Minor) checkpoints | fixed | the five completed checkpoints are [x]; exactly four remain open (ISSUE.md:188-191), all legitimately pending |
Each of the eleven author replies describes its change accurately; every Source URL is a root comment in the captured review comments, every Reply URL is the author's reply on that same thread, the severities match the source brackets, and each Resolution reference is a real commit subject in this range whose diff carries the described fix. The audit's ID remap (its F4-F10 to the round-1 F1,F2,F3,F4,F7,F5,F6) matches the comment order exactly, and all eleven threads are resolved.
Findings
- [Major][F8] The mandatory
linter allgate fails at this head: fourclippy::assert_is_emptyerrors in the newtests/cli.rs, which is byte-identical to the previous head. - [Minor][F9] The audit record's closing log entry and
last-updated-utcare stamped six minutes after the commit that carries them.
Checked, no finding
The GraphQL query, fetch, GhCli and the resolver contract are untouched by this delta; the seven renames are byte-identical; the projections still match the retired jq field for field; Cargo.toml, Cargo.lock, Containerfile, .dockerignore and the ADR row are unchanged since round 1; cargo machete still sees every declared dependency used; all fifteen commits carry Conventional subjects with ordered timestamps and no attribution trailer; no banned token in any changed file; git merge-tree against current develop is clean.
CI and gate (orchestrator)
CI at 0f0ad345: Unit (nightly) failed in the Run All Linters step (job 107296135286) with the same four clippy::assert_is_empty errors at tests/cli.rs:46:5, :89:5, :109:5, :122:5 (could not compile github-review-threads (test "cli") due to 4 previous errors), which is F8 reproduced by the workflow; Unit (stable) was cancelled by that failure; the six OS Compatibility builds, Docs Lint, Layer Boundary Bans, Documented Clippy Allows, Discover Package Coverage, Generate Coverage Report and Package Coverage Regression passed; Docker E2E was skipped; Security Scan and Test (Docker) (release) were still in progress at posting. No startup_failure or action_required run.
Loop gate on a worktree at 0f0ad345 (nightly): cargo test --package github-review-threads rc 0 (5 + 5 tests pass, 1 s warm); cargo clippy --all-targets -- -D warnings rc 101 (the four assert_is_empty errors above, 1 s); cargo check --workspace --all-targets rc 0 (11 s); the repository gate script rc 1 (36 s), documented-allows check rc 0, diff check clean. The contrib/ tree is byte-identical to f0c1db68, so the failure is unchanged since the previous head.
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 28009b4b1ed09c052c1f4a3874c618425810b38f (round 3, delta from 0f0ad345). Recomputed from the bytes at this head.
Three commits, +44/-5 over two files. fix(dev-tools): satisfy nightly clippy assert_is_empty in CLI tests adds fn text(bytes: &[u8]) -> String (tests/cli.rs:24) and replaces the four assert!(….is_empty()) calls with assert_eq!(text(&output.<stream>), ""). docs(pr-reviews): correct the PR #2322 audit timeline appends the F11/F12 rows and detail entries, a sentence on the finding-id collision, and four Processing Log entries. docs(pr-reviews): record PR #2322 round-2 resolution closes the record with one more entry (PR-REVIEW.md:234) and last-updated-utc: "2026-09-23 18:03". Subjects Conventional, author time equals committer time on all three, no attribution trailer, no banned token, and git merge-tree against current develop is clean. The range base is still ef234623 (git merge-base develop-a110200d 28009b4b), unchanged since round 1 because the branch has not merged develop.
| Finding | Addressed? | Recomputed evidence |
|---|---|---|
loop F8 (Major) clippy::assert_is_empty fails linter all |
fixed | grep -n is_empty tests/cli.rs returns nothing; the four sites are now assert_eq!(text(&output.stderr), "") at tests/cli.rs:50,113 and assert_eq!(text(&output.stdout), "") at :93,126. The assertion is exactly equivalent for a byte stream: String::from_utf8_lossy maps the empty slice to "" and any non-empty slice to at least one character (an invalid byte becomes U+FFFD), so it still fails on any output - and now prints what arrived. The helper is private, takes a slice, and is used four times, so I see no further pedantic exposure in the source. The gate result is the orchestrator's to report |
| loop F9 (Minor) misdated audit log entries | fixed | The two estimated entries are left in place and a correction entry is appended (PR-REVIEW.md:232), naming both and listing recovered event times. Every entry added since (17:41, 17:54, 17:59, 17:59 under a commit authored 18:02:20Z; 18:03 under a commit authored 18:05:01Z) is at or before the commit that carries it, and last-updated-utc tracks it - the test the previous heads failed. process-pr-review/SKILL.md:79-81 requires restoring prior entries and appending a correction rather than rewriting the record, which is what happened |
Each recovered time in the correction entry holds against the captures: fix commits "pushed 17:11" - earliest check run at 4583c156 is 17:11:58Z; "eleven replies 17:12-17:13" - exactly eleven replies, 17:12:39Z to 17:13:03Z; "audit committed 17:16" - f0c1db68 authored 17:16:40Z; "commit made 17:18 UTC and pushed 17:19" - 0f0ad345 authored 17:18:49Z, earliest check run 17:19:54Z; "17:41" - review 5294619694 submitted 17:41:30Z; "17:54 … pushed at 17:57" - 71fb4152 authored 17:54:33Z, earliest check run 17:57:58Z; "17:59 replies" - 17:59:08Z and 17:59:10Z; and the closing "18:03 … Pushed the audit correction" - cb387f05 shows updated_at 18:03:40Z with its earliest check run at 18:03:44Z. The resolution instants are not datable rather than wrong - the captured projection carries no resolvedAt - but both round-2 threads (r4085465426, r4085465441) are isResolved: true with the author's reply already posted, the order the record's own Completion Rules require.
Rows F11 and F12 verify field by field: the roster's eight tracking columns and ten detail fields in order; Source review ID 5294619694 equals the pull_request_review_id of both source comments; Source URL → r4085465426 / r4085465441, both root comments; Reply URL → r4085623075 / r4085623327, both by the PR author with in_reply_to_id on their own thread; severities Major/Minor match the source brackets; maintainability and metadata are in the skill's category list; both Resolution reference subjects exist byte-exact in the range; Thread state RESOLVED matches all 13 threads resolved, zero unresolved; and the collision sentence is accurate - the audit already used F8 and F9 for round-1 findings. The repository's own validate-audit-record.py, run offline at this head against the captured comments, reports {"status": "ok", "rows": 12, "log_entries": 9, "failures": 0}.
Findings
None.
Checked, no finding
The crate is untouched since 71fb4152 (git diff cb387f05 28009b4b -- contrib/ is empty), so round 2's verified parity, output contract, workspace and container integration all stand; the record's Completion Rules are satisfied - every thread was replied to before being resolved and none remains unresolved; no new reviewer findings arrived; 18 commits, 29 files, +1440/-399 in the range, matching the capture exactly.
CI at this head (orchestrator's step, 18:19Z): the head was pushed at 18:06Z and its workflows are still running — Docs Lint, Build on ubuntu-latest (stable) and Discover Package Coverage have passed, Docker E2E is skipped, the remaining OS builds, Unit (nightly/stable), coverage, Security Scan and Container jobs are queued or in progress; nothing has failed and no run is in startup_failure or action_required. At the previous head 71fb4152, which carries the same crate bytes, the loop's gate already showed nightly clippy clean. Orchestrator gate on a worktree at 28009b4b against a110200d (nightly): pre-commit gate rc 0 in 72 s, documented-allows check rc 0, tree clean; cargo test --package github-review-threads rc 0 (5 + 5 tests, 1 s warm); cargo clippy --all-targets -- -D warnings rc 0 (1 s) — the four assert_is_empty errors from round 2 are gone; cargo check --workspace --all-targets rc 0 (11 s). Recomputed independently: 18 commits, 29 files, +1440/−399 in ef234623..28009b4b; the closing log entry is stamped 18:03 UTC inside a commit authored 18:05:01Z and pushed 18:06:01Z, and last-updated-utc is 18:03, so both satisfy the at-or-before test F9 asked for.
|
ACK 28009b4 — round 3: F8 closed (four assert_eq! sites, no is_empty assertion left; the gate result is the orchestrator's), F9 closed by an appended correction entry whose recovered event times match the captured metadata; audit rows F11/F12 verified against the threads and the repository validator reports 12 rows, 0 failures; final two-line log entry consistent with its commit and push times |
Return one JSON object with a threads array from list and show, as the CLI output contract requires, and keep the retired script's thread_id key in reply-status rows.
Attach the per-thread rows and summary to the missing_reply stderr record so the operator can see which threads lack a reply, and buffer result JSON so a write failure leaves stdout empty and reports a JSON diagnostic.
Rename tests/fixtures/expected to retired-scripts with a README stating its provenance, and add process-level tests that compare list, show, and reply-status output, exit codes, and stream split with the recorded shell outputs.
The binary refuses a TTY on stdout, so every documented fetch, show, list, and reply-status command now redirects or pipes stdout, the list/show result shape is described as one object with a threads array, and the help behaviour is recorded.
Use the numeric related-pr value required by the frontmatter schema, record the deliberate format deviations from the retired scripts (one-object results, thread_id and nested summary, required --login, JSON help), check the completed workflow checkpoints, and append re-verification evidence.
28009b4 to
613add1
Compare
|
ACK 613add1 |
…ssues/closed 45931e4 chore(issues): archive closed issue #2318 spec to docs/issues/closed (Jose Celano) Pull request description: Archives the spec for issue #2318 (closed on GitHub when PR #2322 merged as `d37bafd7`) from `docs/issues/open/` to `docs/issues/closed/`. - Verified issue #2318 is `CLOSED` on GitHub - Updated frontmatter (`status: done`, `spec-path`, `last-updated-utc`) in `ISSUE.md` and the issue-local `manual-verification-evidence.md` - Ticked the reviewer, committer, and closure workflow checkpoints and appended the merge and archival log entries - Marked EPIC #2278 order 3 `DONE` with the closed path and repointed the order-4 draft's prerequisite links - Remaining references to the old path are historical records (`docs/pr-reviews/pr-2322-review/PR-REVIEW.md` and the spec's own progress log), retained as the skill directs - Pre-commit hooks passed Related to #2318 and #2278. ACKs for top commit: josecelano: ACK 45931e4 Tree-SHA512: 10fb9f4f4d108d7c089c7589c437e864f8ac1ec3930d5e1dddcd9b572bc45f750269dacd76bf6b51e9aeb8273c8b5022e3e8f9c28586ad9e0b110bb96b453056
…hreads 6211188 docs(pr-reviews): record PR #2334 thread resolution (Jose Celano) 5eaadb5 docs(pr-reviews): add PR #2334 review audit (Jose Celano) 5b35f7c docs(issues): link subissue #2333 in EPIC #2278 (Jose Celano) 6207a38 docs(issues): add issue specification for #2333 (Jose Celano) Pull request description: ## 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 #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 #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 #2333 and progress log entry added. ## Validation - `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh --format=text` passed on each commit (includes `linter all`). - Pre-push checks passed. - GitHub: #2333 created with label `task` and linked as a sub-issue of #2278. Related to #2333 Related to #2278 ACKs for top commit: josecelano: ACK 6211188 Tree-SHA512: 26e8618238470d46e14db9693ec4be8c5ab49e33a4200b67f6a39d1478bf7e3270fec7d529e750c319aa506db98d55ae0c11288cd84f8b984e3501048446b967
…resolution evidence 143b0f6 docs(issues): record #2333 verification and completion evidence (Jose Celano) 94fe6c8 docs(pr-reviews): collect all review threads as self-audit evidence (Jose Celano) 2f4bd80 feat(dev-tools): return all review threads with resolution evidence (Jose Celano) Pull request description: ## Summary Implements EPIC #2278 subissue 4 (#2333), friction-register items F17, F18, and F32: the author's review-thread evidence view now includes resolved and outdated threads with who resolved them and where, while reply and resolution actions keep an explicit unresolved-only view. - `github-review-threads` requests each thread's `line` and `resolvedBy { login }`. The raw JSON file is a superset of the previous one, so `resolve-all-unresolved-threads.sh` reads it unchanged. - `list` and `show` return every thread by default and add `isResolved`, `resolvedBy`, and `line`; `--unresolved-only` selects the threads still awaiting a reply or resolution. `reply-status` is unchanged and still checks unresolved threads only, because it guards resolution. - The `fetch-review-threads` skill now collects every thread as evidence, names `resolvedBy`, `path`, and `line` as self-audit evidence (nulls are recorded as unknown, never inferred), and limits unresolved-only filtering to actions. Its inline `gh api graphql` fallback now requests exactly the tool's fields. The change extends the existing crate in place; it adds no new script or binary and does not decide the unified AI-harness placement, which stays with EPIC #2003. ## Commits - `feat(dev-tools): return all review threads with resolution evidence`: query, `ThreadSelection`, `--unresolved-only`, fixture tests, and spec/EPIC tracking for T1-T2. - `docs(pr-reviews): collect all review threads as self-audit evidence`: skill contract (T3). - `docs(issues): record #2333 verification and completion evidence`: manual evidence, acceptance review, EPIC AC2 (T4). ## Files touched - `contrib/dev-tools/github/github-review-threads/src/lib.rs`, `src/main.rs`, `tests/cli.rs` - `contrib/dev-tools/github/github-review-threads/tests/fixtures/thread-states.json` (new; one thread per state). The retired-script fixture `review-threads.json` is unchanged because its README pins it to the parity captures; it now also shows that files fetched before this change still parse, with null `resolvedBy` and `line`. - `.github/skills/dev/pr-reviews/fetch-review-threads/SKILL.md` - `docs/issues/open/2333-2278-fetch-all-review-threads/ISSUE.md` and `manual-verification-evidence.md` - `docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/EPIC.md` ## Validation - `cargo test --package github-review-threads`: 13 unit and 7 CLI tests pass (stable Rust 1.98.1). Temporarily reverting the selection filter to unresolved-only in the working tree failed 5 unit tests; the filter was restored before committing. - `cargo clippy --package github-review-threads --all-targets -- -D warnings` and `cargo +nightly fmt --all -- --check` are clean. - The pre-commit hook (including `linter all`) passed on every commit; `pre-push.sh` passed all 4 steps. - Manual scenarios M1-M4 were run read-only against merged PR #2320 (29 threads: 27 resolved, 2 unresolved, 21 outdated): all threads listed by default, resolver and line shown with explicit nulls on outdated threads, only the 2 unresolved threads in `--unresolved-only` and `reply-status`, and the bulk resolver's `--dry-run` still lists them. The fallback query returned the same data as the tool on PR #2322. ## Notes for reviewers - The skill no longer lists `canResolve` as a collected field; neither the tool's query nor the previous fallback query ever requested it. - The manual-capture survey found merged PRs that still hold unresolved threads (#2290, #2293, #2300, #2313, #2320). They were only read and are left for a maintainer decision under the post-merge review rule. Closes #2333 Related to #2278 ACKs for top commit: josecelano: ACK 143b0f6 Tree-SHA512: a37f3d9b46c4d1c92c4df242324cf81b52b441af65ab4e9522cebf77dcd75dd1c632bd69781263ef4deca01ae710e9f3d97675464456b4f7cc2530e103e743f7


Summary
github-review-threadsdeveloper tool withfetch,list,show, andreply-statussubcommands backed by the GitHub CLI.jqhelpers, and update the review workflow skills.Validation
cargo test --package github-review-threadscargo +nightly fmt --all -- --checkcargo clippy --package github-review-threads -- -D warningslinter alldocker build --target recipe --file Containerfile .docker build --target test_debug --file Containerfile .Closes #2318