Skip to content

fix(intake): carry host-run to split parts and refuse a split no part can build - #16506

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16503-43806600519-1
Nov 16, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #16503

Summary

Opened by the work-resolve-issue lane. The run's own summary, updated for the review fix:

applySizeSplit in .github/scripts/intake-triage/refine.mjs now files each sub-issue with the parent's host-run and attended labels (ROUTING_LABELS), and a retry adds them to a part it reuses. Before filing a line split it refuses, with a new unbuilt decline and nothing filed, a split whose part checks a plugin the default branch lacks when no line of that part, or of a part the order puts before it, creates that plugin (unbuiltPart). How it decides, chosen from the code: refine-select checks out all of main (intake-triage.yml refine-select), so --select records size_split.absent, the plugins the task lines name that main lacks (baseHolds: the plugins/<name> path, or any file or directory with that stem, so a leading node-or-skip counts as held). --apply's checkout is sparse, so it reads that list from the hash-checked context. A line names a plugin as a plugins/<name> path, a backticked name next to the word plugin, or a bare kebab-case word before the word plugin or leading the line when the issue writes that word in backticks somewhere. That quoted gate matches #16437/#16439, whose body quoted plugin-diagnostics while the done-when line wrote it bare, and keeps a check line such as 'No third-party plugin is loaded' from naming a plugin no part could create. A line creates what it names when it uses a creating verb (CREATES) and checks it otherwise. The check covers plugins only, not single files: a part's own run can create a file its line names, and the review showed path-shaped spans (/dev/null, origin/main, plugin-relative paths) would wrongly refuse sound splits.

Not verified

  • The refine.test.mjs suite (node --test) did not run here, because the lane runs no interpreter. check-affected does not show whether it ran that suite, so the PR's CI runs it. The new tests and the updated fake were traced by hand only, by me and by the review subagent.
  • The size-split model prompt in .github/workflows/intake-triage.yml still says nothing about size_split.absent or that a part checking an absent plugin needs an order pair from the part that creates it. The lane may not change workflow files. Without that line the model can return a parallel split…
  • Known limits of the heuristic: a check line naming a third-party plugin (eslint plugin) or writing a hyphenated word before 'plugin' (a read-only plugin) can read as an absent plugin and refuse the split. A plugin the issue never quotes and names only as a bare leading word is not detected.
  • Tidy did not run: the change touches .github/ and docs/conventions/, which are listed shared paths.
  • verify (build and tests) skipped: no interpreter or test runner is allowed in this lane; left to the PR's CI.

Fix

  • .github/scripts/intake-triage/refine.mjs: ROUTING_LABELS copied onto each filed part, and added to a reused part that lacks them; namedUnits, quotedNames, baseHolds and unbuiltPart added; selectSizeSplit records size_split.absent; applySizeSplit refuses a line split unbuiltPart flags, with the new unbuilt decline. A bare kebab-case word before the word plugin (BARE) counts only when the issue quotes it, like the leading word.
  • .github/scripts/intake-triage/refine.test.mjs: tests for host-run on every filed part (and labels on a reused part), the unbuilt refusal, a creating part 1 with part 2 after it filing both (and the same parts unordered refused), namedUnits (including unquoted 'x-y plugin' and 'third-party plugin' naming none), baseHolds over a temp tree, select recording absent, and a split with a 'third-party plugin' check line being filed.
  • docs/conventions/pr-pipeline/README.md: the size-split paragraph lists the unbuilt decline, how a line names and creates a plugin (a bare word before plugin only when quoted), and the carried routing labels
  • .changes/pr-pipeline/work-resolve-issue-issue-16503-43806600519-1-7e7172b2.md: patch fragment describing both fixes

Verification

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

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 64 fragments valid
  • .lane/checks/bin/check-changed-skills: no changed skills, nothing to gate
  • .lane/checks/bin/check-affected: 12 passed, 6 skipped. The first run failed changelog-fragments and changelog-parity because I had edited the fragment-mode CHANGELOG.md; I reverted that edit, added a fragment, and the rerun passed
  • fresh-context review subagent over the whole diff: it found no failing logic and confirmed by hand trace that the new and existing tests pass. It raised false-positive risks (unquoted hyphenated leading words, non-repository backticked paths, bare create names not read, reused parts not…
  • read https: //github.com/melodic-software/claude-code-plugins/issues /16439: its one done-when line is 'plugin-diagnostics launches node only through node-or-skip on the prerequisites row', with the plugin name unquoted
  • read https: //github.com/melodic-software/claude-code-plugins/issues /16437: the body writes plugin-diagnostics and session-telemetry in backticks, and its task lines check them without creating them
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43806600519

Left out: the items under Not verified.

Related

#16503

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

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16506, incremental (fdcee81 → 23b3077)

I found no security issues in this push. I read every hunk of the three files in the incremental scope:

  • .github/scripts/intake-triage/refine.mjs
  • .github/scripts/intake-triage/refine.test.mjs
  • docs/conventions/pr-pipeline/README.md

None of them is on the trusted-path list, and the push touches no trust control, token request, kill switch or merge hold. A lane had already reviewed an earlier head, so this review was blocking only and reports CRITICAL and IMPORTANT findings only.

What changed and what I checked:

  • namedUnits (BARE). The pattern that reads a bare kebab-case word before the word "plugin" moves out of PLUGIN_PATTERNS into its own BARE regex (refine.mjs#L299-L300). Its matches now count only when the issue also writes that name in backticks (refine.mjs#L323-L327).
    • It only narrows. Fewer words now count as plugins, so the unbuilt decline fires less often. That decline can only refuse a split and file nothing, as the earlier review found.
    • No new input. The regex body is unchanged, so it adds no backtracking risk. Unit names still match the kebab-case character class, which has no / or ., so the baseHolds path join still cannot leave BASE_PATH.
  • Tests and README. The test changes add assertions and one split case. The README edit describes the narrowed rule. Neither has a security surface.
  • PR context. The description contains no text aimed at the review lane.

Spend: none beyond the usual intake-triage runs.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on fdcee81278723c408268f2eee6c1194a1a2492f4; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: #16506, incremental (fdcee81 → 23b3077)

This lane already reviewed an earlier head, so this review reports blocking findings only. I read every hunk of the 3 changed files in .claude-lane/incremental.diff: refine.mjs, refine.test.mjs and docs/conventions/pr-pipeline/README.md. I also read the unchanged callers of namedUnits in refine.mjs, which are unbuiltPart, the --select selection and the applySizeSplit check.

The earlier finding is fixed. It said the bare <kebab-word> plugin pattern refused sound splits.

Tests.

  • The updated assertions cover the bare-word form both quoted and unquoted, plus No third-party plugin is loaded (refine.test.mjs:1480-1482).
  • The new split test (refine.test.mjs:1521-1524) gives a third-party plugin check line together with absent: ["plugins/third-party"], and expects the split to be filed.
  • That test would have failed before this fix: the line would have named plugins/third-party, and unbuiltPart would then have declined the split. So it actually covers the regression.
  • I could not run the suite. The PR's statement that the tests pass is the author's claim, unverified here.

Docs. The README paragraph now matches the code: a bare word before "plugin" names a plugin only when the issue writes it in backticks somewhere.

Closing issue #16503. The fix commit does not affect the done-when criteria; their status is as the earlier review reported. "The existing refine tests still pass" is still the author's claim and depends on CI.

Settled threads. The resolved thread on refine.mjs:299 stays settled, and nothing in this push reopens it.

No new findings. No subagent verifier ran: there were no candidates to check.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Verification evidence for 23b3077

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-16506-23b307736f96a876319adaf69a4ed70891f2eceb, expires on 2026-12-16.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=fdcee81278723c408268f2eee6c1194a1a2492f4 rubric=9.5.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43809440451

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63yl_4
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 23b3077
Run 43809440451

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 23b3077.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43809440451

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 16, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=23b307736f96a876319adaf69a4ed70891f2eceb rubric=9.5.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit eaf8662 Nov 16, 2026
68 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16503-43806600519-1 branch November 16, 2026 05:56
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 71%; mutation score 71%.

File Killed Survived Timeout No coverage Invalid Not run
.github/scripts/intake-triage/refine.mjs 5 2 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
.github/scripts/intake-triage/refine.mjs:377 SBR productive input-gap
.github/scripts/intake-triage/refine.mjs:384 other productive input-gap

The run's summary has the full report.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

fix(intake): carry host-run to split parts and refuse a split no part can build

0 participants