Skip to content

feat(pr-pipeline): show a thread's outdated state in address-feedback list output - #10225

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-8434-40284706872-1
Oct 27, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-8434-40284706872-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8434

Summary

Opened by the work-resolve-issue lane. The run's own summary:

address-feedback's select step now requests GitHub's isOutdated on each review thread and writes a boolean is_outdated beside review_commit on each kept thread. feedback-thread.sh list already prints the thread file's threads unchanged, so the lane now sees both. comments-ci.md documents the two fields and says an outdated thread's line may be stale. Edit scope still depends only on paths: thread-scope.mjs, feedback-thread.sh allowed() and apply-patch.mjs keptThreadsFrom do not read the new field.

Not verified

  • This lane can only run the named wrappers, so I couldn't run node --test on address-feedback.test.mjs or bash feedback-thread.test.sh directly. check-affected reported 10 passed but doesn't name the suites it ran, so the PR's CI test run is the confirmation
  • check-affected listed many checks as CI-only (actionlint, editorconfig, line-citations, comment-hygiene and others) and skipped typos (not installed); those are left to the PR's CI
  • The changelog-fragment script refuses a detached HEAD, so I named the two fragments by hand; check-changelog-fragments validated them

Fix

  • .github/scripts/pr-unblock/address-feedback.mjs: THREADS_QUERY requests isOutdated; keepThreads sets is_outdated on each kept thread, true only when isOutdated === true
  • .github/scripts/pr-unblock/address-feedback.test.mjs: the thread-file deepEqual now includes is_outdated: false; new case checks that isOutdated true, false, missing and the string "true" give true, false, false and false
  • plugins/source-control/skills/pull-request/scripts/feedback-thread.test.sh: the fixture threads carry is_outdated (one outdated, on an earlier review commit); list asserts it prints each thread's review_commit and is_outdated
  • plugins/source-control/skills/pull-request/reference/comments-ci.md: list now names review_commit and is_outdated, says an outdated thread's line may be stale, and says to find the named code in the current checkout
  • .changes/pr-pipeline/feat-8434-thread-outdated-state-7c3e1a90.md: minor fragment for the pr-pipeline convention (the release turns it into the docs/conventions/pr-pipeline/CHANGELOG.md entry)
  • .changes/source-control/feat-8434-thread-outdated-state-2d9b4f61.md: patch fragment for source-control's comments-ci.md doc change

Verification

The runner ran each check from the base copy against 6347221:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //docs.github.com/en/graphql/reference/pulls: PullRequestReviewThread.isOutdated is Boolean!, "Indicates whether this thread was outdated by newer changes."
  • .lane/checks/bin/check-changelog-fragments: all 4 changelog fragments under .changes/ are valid
  • .lane/checks/bin/check-affected: 10 passed, 6 skipped (validate-plugins sub-checks that run checked-tree code, ruff with no .py changed, typos not installed, changed-skills) over 6 changed files
  • cant-fail-scan --file .github/scripts/pr-unblock/address-feedback.test.mjs --check: PASS, 81 test blocks, no gating findings
  • cant-fail-scan --file plugins/source-control/skills/pull-request/scripts/feedback-thread.test.sh --check: PASS, no gating findings
  • fresh-context review subagent over the whole diff: no correctness bugs; no other test deepEquals a whole kept thread; runRecord, publish-feedback parseRun, adjudicate-feedback, fix-ci-context and keptThreadsFrom ignore the new field. One cosmetic finding (an overlong unwrapped line in comments-ci.md
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40284706872

Left out: the items under Not verified.

Related

#8434

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 63472219951d02284478549c6c273aa727b9a710: 0 finding(s), 0 as inline comments.

No blocking findings. I read the full diff (6 files) and the PR context. I ran no tests or checks. The PR's "Verification" claims are the author's and I did not confirm them.

  • address-feedback.mjs: THREADS_QUERY now requests isOutdated. keepThreads writes is_outdated: thread.isOutdated === true, so a missing or non-boolean value gives false. The variable thread is the loop variable at line 397, so the reference resolves.
  • Edit scope: nothing in the diff reads the new field, and feedback-thread.sh cmd_list prints .threads unchanged. The change does not widen what the lane may edit, which matches pr-pipeline: show a thread's review commit and outdated state in address-feedback list output #8434.
  • Closing issue pr-pipeline: show a thread's review commit and outdated state in address-feedback list output #8434: it states no acceptance criteria beyond showing review commit and outdated state in list output. Both are now in the thread file and list prints them. The new tests could fail if either broke: the deepEqual for is_outdated, the true/false/missing/"true" case, and the two list asserts in feedback-thread.test.sh.
  • Bump levels: the pr-pipeline fragment is minor for a new field, and the source-control fragment is patch for a doc change. Both fit.
  • Trusted path: address-feedback.mjs matches a trusted-path glob and I read its whole change. The change is read-only metadata and does not touch the gating logic.
  • Cosmetic, not counted: the reflowed comments-ci.md bullet leaves one long unwrapped line at line 92. The author already noted this.
  • Spend: none of the change spends credits or incurs a charge.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 63472219951d02284478549c6c273aa727b9a710: 0 finding(s), 0 as inline comments.

No security issues found in this pull request.

critical-findings: 0

What I checked. .github/scripts/pr-unblock/address-feedback.mjs is a trusted path, so I read its whole change and the code it feeds.

  • THREADS_QUERY now also requests isOutdated, a read-only Boolean! on the review thread.
  • keepThreads writes is_outdated: thread.isOutdated === true. Only a literal boolean true gives true, and a missing, string or other value gives false. No attacker-controlled text reaches the thread file through this field.
  • The keep/skip decision is unchanged. It still depends on isResolved, the comment cap, threadAuthors, the review author and the marker-confirmed heads. Nothing in keepThreads or in select reads is_outdated, so no merge hold, trusted-actor check or edit-scope rule is widened or narrowed. A grep of .github found no other reader of the field.
  • The other changes are test fixtures, two changelog fragments, and the comments-ci.md text that tells the lane to find the code a finding names in the current checkout when a thread is outdated. That text does not remove or soften any standing rule.
  • I found no changed plugin manifests, so there are no manifest <field> lines.

Spend. None. No billing, plan or lane-budget settings change.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 63472219951d02284478549c6c273aa727b9a710. A person must clear this reason, so the pr-merge lane added the needs-human label: fix the reason, then remove the label, and the next scheduled run judges it again.

it changes .github/scripts/pr-unblock/address-feedback.mjs, a hold path

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 26, 2026
@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 26, 2026

@kyle-sexton kyle-sexton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Owner decision 2026-10-26 ~22:3xZ in the hub session: merge the PRs currently held for the owner, security-flagged or otherwise. Approving head 6347221 under that decision, which lifts its hold path (pr-unblock/address-feedback.mjs) per merge-holds.mjs.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit d35bffa Oct 27, 2026
81 of 84 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-8434-40284706872-1 branch October 27, 2026 00:38
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.

pr-pipeline: show a thread's review commit and outdated state in address-feedback list output

1 participant