Skip to content

refactor(actions): simplify check-wip-cap, collect-base-activity and download-full-history - #14221

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-14096-42514597905-1
Nov 8, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-14096-42514597905-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #14096

Summary

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

Simplified three of the four listed files with behavior unchanged. check-wip-cap.mjs folds its three notice-plus-step-summary blocks into one announce helper, resolves BASE_PATH once, lowers label names once in isQueued and drops an unreachable return. collect-base-activity's skill step merges the identical merge-base and review-threads case arms (the message is built from $PREPARE, which those patterns fix to the same literal) and moves the web-access host list validation, written out twice, into one read_web_domains function. download-full-history's description loses a history-narration clause and an em dash. check-wip-cap/action.yml was left as is: its description and single step had nothing to remove without changing what it documents.

Not verified

  • Test suites (collect-base-activity.test.mjs, check-wip-cap.test.mjs, write-runner-never-rules.test.sh, callers.test.mjs) not executed here: the lane runs no test runner; left to the PR's CI
  • ci-status is green: a PR CI check, left to the PR's CI
  • tidy skipped: the change sits under .github/, a listed shared path
  • build/test step (pipeline/verify) skipped: no build or test runner is available to this lane

Fix

  • .github/actions/check-wip-cap/check-wip-cap.mjs: announce(title, line) helper replaces three copies of log ::notice + step-summary append; basePath computed once in main(); isQueued lowers names once; unreachable trailing return null in list() removed
  • .github/actions/collect-base-activity/action.yml: merge-base and review-threads case arms merged with a "$PREPARE: ..." message (byte-identical output); read_web_domains function replaces the duplicated jq host-list read and host-name check in the run-claude-cli and claude-code-action paths, with…
  • .github/actions/download-full-history/action.yml: description reworded to drop the 'used to be copied' history clause and an em dash

Verification

The runner ran each check from the base copy against 847d827:

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

The run reports:

  • check-changelog-fragments: all 1 changelog fragment(s) under .changes/ are valid (no plugin changed, so no fragment is owed)
  • check-changed-skills: no changed skills, nothing to gate
  • check-affected: 9 passed, 7 skipped over 3 changed files; actionlint, zizmor and other workflow checks are CI-only
  • fresh-context review subagent over the full diff: no behavior difference found (set -e with local + || fail, IFS unchanged so ${arr[*]} joins like paste -sd ' ', merged case arm prints identical text, removed return was unreachable, notice and summary order unchanged) and no text assertion broken…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42514597905

Left out: the items under Not verified.

Related

#14096

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

Code review: PR #14221, incremental (847d827 → 08fd2ec), no findings

This pass covered only the one file changed since the last review: .github/scripts/maintenance-monitor-signals/signals.test.mjs. I read its whole change. This lane has reviewed an earlier head of this PR, so this review reports blocking findings only.

What changed. The regex in the signal-13 test that pulls the WIP cap hold template out of check-wip-cap.mjs used to require const line = in front of the template. It now matches only the backtick template literal itself (signals.test.mjs:606).

Why it is right. The earlier commit folded the notice blocks into announce(title, line). Since then the template has been passed inline as an argument at check-wip-cap.mjs:474, so the old const line = anchor could no longer match: .exec() would return null, and [1] would throw. The new pattern captures the same text as before, WIP cap hold: ${unread}, so the pause is unknown …. It is the only backtick literal in the script that starts WIP cap hold: ${unread}, so the capture is unambiguous. The script.includes(...) checks for both unread causes and the parseHold assertions are unchanged. The test still ties the producer to the parser, as it did before.

Acceptance criteria (#14096). The criterion "The diff edits only the listed files, the lines of a test that assert on them when the change breaks that assertion…" is met. This is a one-line edit to a test assertion that reads check-wip-cap.mjs, and the refactor in this PR is what broke it. The other criteria are as assessed in the earlier review. Whether ci-status is green is left to the PR's CI; I did not run the tests.

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #14221 (incremental, head 08fd2ec)

No security issues found. This review covers only the change since 847d827c, which touches one listed file. I read its only hunk.

critical-findings: 0

This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings. There were none.

What I checked

.github/scripts/maintenance-monitor-signals/signals.test.mjs (L606):

  • What changed. A test regex was loosened. It used to require the WIP cap hold template to be assigned to const line = …. Now it matches the template literal `WIP cap hold: ${unread}…` wherever check-wip-cap.mjs writes it. This follows the earlier commit's move of that text into the announce helper call.
  • Test only. The script it reads is a fixed in-repo path. Nothing here runs in a credentialed lane, takes outside input or controls any gate.

Trust controls

This file matches none of the listed trusted paths. The change does not touch the trusted-actor checks, the token scope, the kill switch, the merge holds, any standing instruction or any plugin manifest.

Earlier findings

My earlier post on this PR (summary only, 0 findings) has nothing to restate.

Not run

I ran no tests: this lane has no shell.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 847d827c6552278a940c5b71cf639a89e52da494. 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)

…written

The refactor inlined the template into the announce call, so a match
anchored on `const line =` found nothing and the test crashed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8Cr2dajhz5ZGuNtWJDN
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 08fd2ec

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-14221-08fd2ec4b11c34e2b32e16ba5c90c8fe244b1a5c, 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 4c6becd Nov 8, 2026
78 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14096-42514597905-1 branch November 8, 2026 21:08
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 4c6becd569cc4d9818a8415f89a6674ee939dd2f; 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 the check-wip-cap, collect-base-activity and download-full-history actions

1 participant