Skip to content

fix: Simplify .github: clear-escalations.mjs - #14320

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14119-42530378801-1
Nov 9, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #14119

Summary

Opened by the work-resolve-issue lane from work-resolve-issue/issue-14119-42530378801-1, which an earlier run left with commits and no report. The model did not run again, and the earlier run's outcome could not be read, so this body carries none of its text.

Fix

The diff shows the changes.

Files the branch changes, from the compare listing; a denied path, which the merge lane refuses, is marked and listed first:

  • .github/scripts/pr-merge/clear-escalations.mjs

Verification

The earlier run reported no checks here.

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

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

The runner's leak scan read everything the branch changes since its merge base with the default branch and found nothing credential-shaped.

Left out: every check; ci-status, pr-verify and the security review lane check the head before it merges.

Related

#14119

Merge-Risk: max=HIGH demote=true head=db3e4b135ab13146d9d53e16010b32b390b57701 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 9, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #14320 (simplify clear-escalations.mjs)

I read the whole diff for the one changed file, .github/scripts/pr-merge/clear-escalations.mjs, which is a trusted path. I compared each change with the code it replaces. Everything looks like a refactor that keeps behavior the same. No findings.

What I checked:

  • checkRuns helper, used by headFailing and checksHeld:
    • The old headFailing loop returned false in two cases: a page that was not an array, or a full page at CHECK_PAGES. The helper returns null in both, and headFailing turns null into false.
    • Exceptions still reach the same try/catch.
    • checksHeld still sends null to ?? [].
  • CRITICAL_COUNT removed. CRITICAL_FINDINGS (L518) is the same regex with the same /gm flags. matchAll copies the regex, so sharing the global regex leaks no lastIndex state.
  • REPO (L234) is the same pattern as the inline regex it replaces in recheckStaleHold.
  • recheckStaleHold speaker check. reviewActivity (L1462) makes the same two paginate calls with the same since - 1000 parameter.
    • The new if (stop === null) block keeps the old ?? short-circuit, so nothing is fetched when standingStop already stops.
    • Applying the written filter after the fetch gives the same result as before.
  • lastWrite, commitHold, notOpenHeld, labeledPulls and the client factory each match the code they replace, return the same reason strings and keep the order of checks.
  • escapeCommand gives the same output as the inline replaceAll calls it replaces.
  • Exports, printed messages and exit codes are unchanged. The re-indented cleared(...) array is a whitespace-only change.

Closing issue #14119 acceptance criteria:

  • Behavior unchanged: met, by my reading of the diff. I did not run any tests. The existing clear-escalations*.test.mjs suites cover these paths.
  • Only the listed file edited: met.
  • Within 400 changed lines: met.
  • ci-status green: not checked by this lane. The PR body says this is left to ci-status.

The PR body's verification lines (check-changelog-fragments.sh and check-changed-skills.sh passed) come from the author and I could not confirm them.

Security findings are out of scope here because a separate security lane runs.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #14320, .github/scripts/pr-merge/clear-escalations.mjs

I read every hunk of the single changed file. It is a trusted path and a merge-hold control (clear-escalations.mjs), so I checked each refactor against the code it replaces to see whether any hold is weakened or narrowed. I found no security issues. The change is a behavior-preserving deduplication, and no hold is widened or narrowed.

What I checked:

  • checkRuns helper (L11-L24): it returns null when a page does not read and when CHECK_PAGES full pages may have cut the listing short. headFailing still maps null to false, the same as the old early returns, and the old page === CHECK_PAGES exit still counts as "not failing". checksHeld gets the same body it had inline.
  • CRITICAL_COUNT → CRITICAL_FINDINGS: the existing regex at L518 is the same pattern with the same gm flags, so matchAll still works. The security lane's critical-findings: 0 check in findingsHeld reads exactly as before.
  • REPO regex (L234): it is the same pattern as the inline literal it replaces in recheckStaleHold.
  • recheckStaleHold stop logic: the old standingStop(...) ?? … became if (stop === null). standingStop can only return a string or null (L1241-L1253), so the two are equivalent. reviewActivity (L1462-L1466) reads the same comments endpoint (since - 1000) and the same reviews endpoint. The written filter is still applied to both, and the reads still run only when no standing stop applies.
  • commitHold / notOpenHeld: they keep the same checks, in the same order and with the same reasons, as the inline blocks they replace in standingStop, staleReviewHold and verdict.
  • lastWrite, labeledPulls, client, escapeCommand reuse: each is an exact extraction of the expression it replaces.

The change does not touch who is trusted, any token scope, the kill switch, or what untrusted text reaches a lane. The PR context holds no instruction aimed at this lane.

This was a full review (blocking only: no). No earlier findings from this lane exist on this pull request.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for db3e4b1

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-14320-db3e4b135ab13146d9d53e16010b32b390b57701, expires on 2026-12-09.

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 9, 2026
Merged via the queue into main with commit 8be08ad Nov 9, 2026
66 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14119-42530378801-1 branch November 9, 2026 05:17
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 8be08ad52ebd1b2c110b053ddf24e09333286a5d; 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

Assignees

Couldn't load assignees.