Skip to content

refactor(pr-unblock): simplify adjudicate-feedback and apply-dependency-verdict - #14269

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

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #14129

Summary

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

Simplified two pr-unblock scripts with behavior unchanged. adjudicate-feedback.mjs now reuses its exported isCritical helper instead of three inline CRITICAL.test(String(... ?? "")) calls, reads marketplace plugin entries through one pluginEntries helper for both the head and the base, and logs closed outcomes through one closed() helper in settleDisputes. In apply-dependency-verdict.mjs, apply() ends its rounds through one end(marker, escalationReason) helper, which replaces 13 repeated record-then-return pairs. conflict-scan-refusal.mjs is already a single short function, so it is unchanged.

Not verified

  • Node test suites (adjudicate-feedback.test.mjs, apply-dependency-verdict.test.mjs, publish-feedback.test.mjs and others importing these modules) were not run: this lane runs only the named wrappers, so they are left to the PR's CI
  • Tidy skipped: the change is under .github/, a listed shared path for the tidy cutoffs
  • Changes left uncommitted in the working tree, as the runner's instructions require; the runner turns them into a patch

Fix

  • .github/scripts/pr-unblock/adjudicate-feedback.mjs: isCritical reused in adjudicable, dependencyFlag and settleDisputes; new private pluginEntries helper replaces two copies of the marketplace parse-and-filter in hardRequire (same reads, same order); new closed() helper replaces three copies of the…
  • .github/scripts/pr-unblock/apply-dependency-verdict.mjs: new local end(marker, escalationReason) helper in apply() replaces each await record(marker, { reasons, evidence }); return { escalationReason, skipReason: "" } pair; the !run and close paths are unchanged.

Verification

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

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

The run reports:

Left out: the items under Not verified.

Related

#14129

Merge-Risk: max=MEDIUM demote=false head=dff94286110a04b9d8e4b6d0ad37771c62040604 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 dff94286110a04b9d8e4b6d0ad37771c62040604: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #14269 (refactor of two pr-unblock scripts)

No security issues found.

Both changed files are trusted paths or sit on the merge-hold path (adjudicate-feedback.mjs is listed; apply-dependency-verdict.mjs is a pr-unblock/ module on the dependency merge path). I read every hunk in both and checked whether any merge hold or CRITICAL gate behaves differently. Nothing does.

.github/scripts/pr-unblock/adjudicate-feedback.mjs

  • isCritical is (body) => CRITICAL.test(String(body ?? "")) (L91). The CRITICAL regex uses flags im with no g (L90), so lastIndex carries no state between calls. In adjudicable and settleDisputes the old code was the same String(x ?? "") wrapper, so those two calls are identical. In dependencyFlag, body is already String(root?.body ?? "") (L229), so that call is identical too. The CRITICAL exclusions that stop a person-needed finding from being adjudicated, or settled as a dependencies flag, are unchanged.
  • pluginEntries does the same parse and object filter as the two inline copies it replaces. The head and base reads still happen in the same order, and the "not an entry" and "no dependencies" refusals are unchanged.
  • closed() only formats log text.

.github/scripts/pr-unblock/apply-dependency-verdict.mjs

  • end(marker, reason) awaits record(marker, { reasons, evidence }) and then returns { escalationReason: reason, skipReason: "" }. I compared every replaced pair: each marker/escalation pairing matches the base, including fix/"" and merge/"", which are the only paths with no escalation. apply() has no try/catch between L296 and L470, so return end(...) without await still passes a record failure to the caller as before. escalateReason() (L170) is a pure template, so computing it before record instead of after changes nothing. The checks before merge are all unchanged: pin-swap, push-provenance, control citation and the security-close escalation.

No trust control is widened, no token scope or secret is touched, and the PR text contains no embedded instructions.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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

Code review: #14269 (refactor(pr-unblock): simplify adjudicate-feedback and apply-dependency-verdict)

No findings. I read every hunk of both changed files. The refactor keeps behavior the same at each changed site.

.github/scripts/pr-unblock/adjudicate-feedback.mjs

  • isCritical reuse. isCritical is defined at L91 as CRITICAL.test(String(body ?? "")).
    • In adjudicable (L128) and settleDisputes (L828) it replaces that exact expression.
    • In dependencyFlag (L236), body is already String(root?.body ?? "") (L229), so the extra coercion changes nothing.
    • CRITICAL uses the flags "im" with no g, so lastIndex carries no state from one call to the next.
  • pluginEntries. It does the same parse and filter as the two inline copies. In hardRequire the reads keep their order: the head marketplace is read after the manifest, and the base marketplace after the dependencies check.
  • closed(). It is defined inside settleDisputes before the loop, where LEFT_OPEN is in scope, and it produces the same log strings as the three ternaries it replaces.

.github/scripts/pr-unblock/apply-dependency-verdict.mjs

  • end(marker, escalationReason). It awaits record(marker, { reasons, evidence }) and then returns { escalationReason, skipReason: "" }. That is the same as each pair it replaces, and each original marker and reason pairing is kept.
    • return end(...) inside the async apply passes on rejections exactly as the inline await record(...) did.
    • The !run path and the close path are untouched.

Closing issue #14129: acceptance criteria

  • Behavior unchanged: met, per the checks above. The modules' existing test suites (adjudicate-feedback.test.mjs, apply-dependency-verdict.test.mjs) cover these paths.
  • Only listed files edited: met. Both changed files are on the issue's list. conflict-scan-refusal.mjs is left unchanged, and the PR says why.
  • Within 400 lines and 15 files: met. Two files, about 50 changed lines.
  • ci-status green: I can't check this from this lane. It's left to CI.

Verification

  • The test runs and runner checks quoted in the PR body are the author's claims, and I have not verified them.
  • I ran no tests myself. This lane has no shell.

Other checks

  • No path-scoped rule under .claude/rules/ matches these files.
  • No plugin manifest changed.
  • No prior findings or settled threads apply.
  • Both files are on the trusted-path list, so I read their whole change. Neither change touches what a gate allows: the conditions, the round markers and the escalation reasons are all the same.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for dff9428

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-14269-dff94286110a04b9d8e4b6d0ad37771c62040604, 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 84c145a Nov 8, 2026
66 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14129-42530395289-1 branch November 8, 2026 23:43
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 84c145a1423b2e741cc273882295559fc2b06088; later checks count it verified from this comment.

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: pr-unblock (1 of 6)

0 participants