Skip to content

refactor(pr-unblock): simplify address-feedback.mjs - #14168

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14128-42496726666-1
Nov 8, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14128-42496726666-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14128

Summary

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

Simplified .github/scripts/pr-unblock/address-feedback.mjs with its behavior unchanged (62 added, 88 removed lines). The GitHub API client gets a requestData helper and an encodePath helper in place of about 20 repeated (await request(...)).data unwraps and three inline path encodings; repo moves above paginate, which now uses it. reviewedHeads and securitySignals share one reviewedHeadMarker helper, severityOf's fenced-block scan is a single map, codexRequest reuses its own untrusted helper, and the header comment is re-wrapped evenly with its words unchanged. trackerBindingText is left alone because merge-holds.test.mjs asserts its source text matches the copy in merge-holds.mjs.

Not verified

  • node --test for .github/scripts/pr-unblock (address-feedback.test.mjs and the suites that import it) not run: this lane can run no node or test runner, so it is left to the PR's CI
  • tidy skipped: the change sits under .github/, a shared path the tidy cutoffs exclude
  • lint (biome) not run: this lane cannot run it, and the repository has no root biome config covering .github
  • ci-status green on the PR: a PR CI check, left to the PR's CI

Fix

  • .github/scripts/pr-unblock/address-feedback.mjs: added requestData and encodePath helpers in createGitHubApi and moved repo above paginate; methods that only unwrapped .data became one-line async arrows; added a reviewedHeadMarker helper shared by securitySignals and reviewedHeads; rewrote the…

Verification

The runner ran each check from the base copy against 579d77b:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 7 fragments valid (no plugin changed, so no fragment is needed)
  • check-changed-skills: no changed skills, nothing to gate
  • check-affected: 8 passed, 8 skipped over 1 changed file
  • fresh-context review subagent over the whole diff: one finding, that methods turned from async into plain arrows would throw synchronously, not reject, on a non-stringable argument (unreachable from any caller); fixed by keeping those arrows async; it found every other hunk equivalent, including…
  • git-read diff --numstat HEAD: 1 file, 62 added, 88 removed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42496726666

Left out: the items under Not verified.

Related

#14128

Merge-Risk: max=HIGH demote=true head=579d77b5f67afff2e5dd68572d5b15e29ea22423 rubric=8.1.2 rater=claude-opus-5-5 checker=claude-opus-5-5

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

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 579d77b5f67afff2e5dd68572d5b15e29ea22423: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read every hunk of the single changed file, .github/scripts/pr-unblock/address-feedback.mjs. It is a trusted path that feeds the merge-hold chain through the pr-unblock module, so I checked each hunk against the base behaviour.

  • severityOf (the merge gate's severity-line parser): the loop became a map and behaves the same. The old code tested open for truthiness. The new code tests open !== undefined, which matches every case because FENCE only captures the non-empty strings ``` or ~~~. A fence still opens only when no fence is open and closes only on the same marker. The single-line rule and the rule that a fenced line doesn't count are unchanged, so a fenced or second severity-shaped line still voids the rating.
  • reviewedHeadMarker / reviewedHeads / securitySignals: both still require comment.user?.id === MARKER_AUTHOR_ID (41898282) before REVIEWED_HEAD is checked. The filter(Boolean) in reviewedHeads drops nothing real, because a matched sha is always 40 hex characters (address-feedback.mjs:72-73). Who counts as a marker author is not widened.
  • codexRequest: the inline object became the existing local untrusted helper (address-feedback.mjs:757). It returns the same { reason: "codex-request-untrusted", requester, via }, and the trusted-human / appId check is unchanged.
  • createGitHubApi: requestData passes every argument through to request. Each method keeps its safeToResend flag: closePull, blob, tree, commit and ref update stay true; createIssue, createReviewComment, replyToComment and graphqlAnswer stay unset. So the rule that a non-idempotent write is sent only once still holds. encodePath is the same split-and-encodeURIComponent encoding that getText, readBranch and updateRef used before. compare and the other paths are built from the same pieces as before. The token, headers, endpoints and permissions are unchanged.
  • Header comment: the words are the same, only re-wrapped.

Nothing in the change widens a trust control, token scope, merge hold or untrusted-text path. The PR context contains no embedded directives.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 579d77b5f67afff2e5dd68572d5b15e29ea22423: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: refactor(pr-unblock): simplify address-feedback.mjs

This review found nothing to fix. I read every hunk of the one changed file, .github/scripts/pr-unblock/address-feedback.mjs (a trusted path, so it got extra scrutiny), and checked each hunk against the unchanged code it relies on.

Behavior is unchanged in every hunk (checked by reading the code):

  • severityOf: the new single .map gives every line the same fenced value as the old loop. FENCE captures only the non-empty strings "```" or "~~~", so the new open !== undefined test matches the old truthiness test of `open`. Opening and closing a fence follow the same rules as before.
  • reviewedHeadMarker: the new helper keeps the old checks: the author must be MARKER_AUTHOR_ID, and REVIEWED_HEAD must match the comment's first line. reviewedHeads now drops empty values with .filter(Boolean). That changes nothing, because capture group 2 is [0-9a-f]{40} and is never empty. The Set's insertion order is the same as before.
  • codexRequest: the code now calls untrusted(event.actorId, event.via). The helper is in scope (address-feedback.mjs:757) and returns the same { reason, requester, via } object.
  • createGitHubApi:
    • requestData and repo are now defined before paginate. owner, name and request are all defined above them, so this works.
    • graphqlAnswer and createIssue are now plain arrows instead of async ones. They still return a rejecting promise on failure, because requestData is async and the JSON.stringify and fetch calls happen inside it.
    • encodePath does the same encoding as the three inline copies it replaces.
    • Every (await request(...)).data unwrap reads the same field as before, including .sha, .check_runs and .object.sha.
  • Header comment: only the line wrapping changed. The words are the same.

Acceptance criteria from the closing issue (#14128):

  • Behavior unchanged, exported names unchanged: met, by the reading above. No export was added, removed or renamed.
  • Edits only the listed files: met. The diff changes only address-feedback.mjs.
  • Within 400 changed lines and 15 files: met. The PR adds 62 lines and removes 88, all in one file.
  • ci-status is green: not something this lane can see. The PR body says CI and node --test were not run (the author's claim, which I did not verify). I ran no tests either.

Manifests, plugin userConfig and paved paths: the diff touches none of them.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 579d77b5f67afff2e5dd68572d5b15e29ea22423. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 579d77b5f67afff2e5dd68572d5b15e29ea22423, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 579d77b

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14168-579d77b5f67afff2e5dd68572d5b15e29ea22423, expires on 2026-12-08.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit f3d7075 Nov 8, 2026
66 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14128-42496726666-1 branch November 8, 2026 17:33
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.

Simplify .github: address-feedback.mjs

0 participants