Skip to content

refactor(pr-unblock): import trackerBindingText from merge-holds in address-feedback - #15489

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-15432-43138025564-1
Nov 12, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-15432-43138025564-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #15432

Summary

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

address-feedback.mjs now imports trackerBindingText from ../pr-merge/merge-holds.mjs and its identical local copy is removed, so the function exists once. The copy's stated reason no longer held: collect-base-activity stages merge-holds.mjs into $RUNNER_TEMP/pr-merge beside every script copy (action.yml:155-161), every other run site uses a full .base checkout, and the only sparse checkout carrying address-feedback (pr-require-checks.yml) already lists merge-holds.mjs. The identical-copy test goes, and publish-feedback's staged-layout test now stages merge-holds.mjs as address-feedback.test.mjs already does. Behavior is unchanged: the removed body matched merge-holds' byte for byte.

Not verified

  • Node suites of .github/scripts/pr-unblock/ and .github/scripts/pr-merge/, .github/actions/resolve-config/callers.test.mjs, test_merge_holds_sync.py and test_babysit_risk.py were not run: this lane runs no interpreter or test runner. Left to the PR's CI.
  • python3 -I scripts/sync-hold-floor.py --check was not run: no interpreter in this lane. No floor row changes, since address-feedback's import closure already included merge-holds through its lazy import. Left to the PR's CI.
  • ci-status is green: a PR check, left to the PR's CI.
  • Tidy not run: the change is under .github/, a listed shared path.
  • verify (build/test) skipped: no interpreter or test runner in this lane; the PR's CI runs the suites.
  • Out of scope, noted by the review: the lazy import("../pr-merge/merge-holds.mjs") in address-feedback.mjs listActivity is now redundant, and the comment at collect-base-activity/action.yml:155-157 still names only listActivity as merge-holds' consumer. The issue excludes other duplication and…

Fix

  • .github/scripts/pr-unblock/address-feedback.mjs: removed the local trackerBindingText copy and its comment; added a static import of trackerBindingText from ../pr-merge/merge-holds.mjs. humanGatedLabelFrom calls it unchanged.
  • .github/scripts/pr-merge/merge-holds.test.mjs: removed the test that asserted address-feedback kept an identical copy.
  • .github/scripts/pr-unblock/publish-feedback.test.mjs: the staged-layout test also copies pr-merge/merge-holds.mjs beside the script copy, and its name and comment say so.

Verification

The runner ran each check from the base copy against 383c59a:

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

The run reports:

  • Read both trackerBindingText bodies (address-feedback.mjs:689-700 before the edit, merge-holds.mjs:1617-1628): identical, so outputs, errors and messages are unchanged.
  • Grep for trackerBindingText across the repo: no remaining importer takes it from address-feedback.mjs; dispatch.mjs, report-outcome.mjs and label-holds.mjs already import it from merge-holds.mjs.
  • Grep of merge-holds.mjs imports: node: built-ins only, so the new static import makes no cycle.
  • Grep of tests that copy the pr-unblock directory (address-feedback.test.mjs, publish-feedback.test.mjs) and of workflow sparse checkouts and collect-base-activity/action.yml: every layout that loads address-feedback has ../pr-merge/merge-holds.mjs.
  • check-changelog-fragments: all 5 fragments valid.
  • check-changed-skills: no changed skills, nothing to gate.
  • check-affected: 8 passed, 8 skipped over 3 changed files.
  • Fresh-context review subagent over the diff: no correctness problems found.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43138025564

Left out: the items under Not verified.

Related

#15432

Merge-Risk: max=MEDIUM demote=false head=7ba1464c050eaff89add731287918429e1c4bc96 rubric=8.4.8 rater=claude-opus-5-5 checker=claude-opus-5-5

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

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #15489 (head 7ba1464)

No security issues found. This review covered blocking findings only, because this lane already reviewed the earlier head 383c59a3. The new head is a merge from main, and the PR diff is the same as before.

This PR deletes the local copy of trackerBindingText in .github/scripts/pr-unblock/address-feedback.mjs (a trusted path). The file now imports the function statically from ../pr-merge/merge-holds.mjs. Two tests change to match.

What I checked at this head:

  • Behaviour is the same. I compared the deleted body with merge-holds.mjs#L1619-L1630 line by line. These all match:

    • the file read
    • the .yaml check
    • the yq call with fixed arguments and no shell
    • the error text and the ENOENT behaviour

    humanGatedLabelFrom (address-feedback.mjs#L705) still calls it, so the human-gated label check does not change.

  • The import has no side effects and adds no cycle. merge-holds.mjs imports only node: built-ins (L83-L88). Its main() runs only behind the entry-point guard at L1836.

  • No new place to load code from. address-feedback.mjs already loaded the same relative module through the lazy import at L1641. If a layout lacks the file, the module fails to load and the lane stops. That fails closed and does not weaken any merge hold.

  • Tests. One test that checked the two copies matched is deleted, since there is only one copy now. The staged-layout test now also copies merge-holds.mjs. Neither test touches a control.

Trust controls: this PR does not widen the trusted-trigger check, the token scope, the kill switch or the broker, and it does not weaken any merge hold. It changes no plugin manifests and removes no standing instructions. The PR context has no embedded directives.

Prior finding: the earlier summary at #15489 (comment) reported 0 findings, so nothing carries over.

Spend: none.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #15489, blocking only

No blocking findings. I read every hunk of all 3 changed files in the full diff. This lane already reviewed an earlier head (383c59a3), so this pass reports blocking findings only. Advisory findings are dropped.

The new head 7ba1464c adds a merge of main to the change. The diff is the same three-file refactor as before. I checked it against the merged tree:

  • trackerBindingText exists once. It is defined only at merge-holds.mjs#L1619.
    • address-feedback.mjs imports it statically at L53, and humanGatedLabelFrom calls it at L705.
    • No file under pr-unblock still defines it or imports it from address-feedback.mjs. dispatch.mjs:59 imports it from merge-holds.
  • No import cycle. merge-holds.mjs imports only Node built-ins (L83-88).
  • The test's imports are complete. The updated staged-layout test in publish-feedback.test.mjs calls mkdirSync, which the file already imports at L3. Like address-feedback.test.mjs:1395, the test copies pr-merge/merge-holds.mjs into the staged layout.

Closing issue #15432:

  • Met:
    • The function exists once and is imported.
    • It behaves the same, since the removed body matched the merge-holds one.
    • Only the listed files change.
    • The change stays within the line and file limits.
  • Not verified by me: sync-hold-floor.py --check, the node and python suites, and ci-status. The PR leaves these to CI, and this lane runs no interpreter.

No embedded instructions in the PR context or prior-findings files. Spend: none.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Verification evidence for 7ba1464

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-15489-7ba1464c050eaff89add731287918429e1c4bc96, expires on 2026-12-12.

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 12, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 12, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 12, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 12, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: the merge queue removed head 383c59a3b5f607916b7a21c70ba9fefab45c8c55 2 times for failed checks, so the pr-merge lane will not enqueue it again. A push resets the count.

Failing merge_group runs:

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 4e47f138dabb9c7891bd7f510e32adbcfd163cb5. No person needs to act: a lane clears this reason, and 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 7ba1464c050eaff89add731287918429e1c4bc96, the head its arming checks judged.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 12, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 12, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 52d5121 Nov 12, 2026
64 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15432-43138025564-1 branch November 12, 2026 06:15
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 52d5121e1c94133457c21e1cc08b95afc9c1887a; 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.

Drop address-feedback's copy of trackerBindingText

1 participant