Repository navigation
Description
Summary
native-queue-policy fails on every open PR based on v6 with the same error, independent of the PR's diff:
TypeError: isCosmeticLabelFlip is not a function
at eval (... native-queue-policy.yml "Replay last verdict for cosmetic label flips")
Affected (all base v6): #16997, #16994, #16995, #17000, #17001. PRs based on v5 are green (#16988 at 15:20Z).
Root cause
#16952 (7c291aff4, landed on v5 2026-11-07 14:19Z) added a "Replay last verdict for cosmetic label flips" step to .github/workflows/native-queue-policy.yml that does const { isCosmeticLabelFlip, replayLastVerdict, isTransientAPIError } = require('./.github/scripts/native-queue-policy.cjs'). The step runs after the job checks out refs/heads/${{ github.event.pull_request.base.ref }} (= v6), and v6's copy of .github/scripts/native-queue-policy.cjs (last touched by ed048ecb2) does not export isCosmeticLabelFlip / replayLastVerdict — so the destructured binding is undefined and the step throws.
The workflow definition and the script it requires come from different branches: the step is v5's, the script is the base branch's.
Evidence: run https://github.com/hivecommons/hive/actions/runs/42385708570/job/128442528966 (checkout git checkout -B v6 refs/remotes/origin/v6), v6 .cjs module.exports lacks the two symbols; v5 .cjs exports them at line 318.
Resolution
The forward-merge #16997 (topup/v5-to-v6-20261107) already carries 7c291aff4 into v6 — its head exports isCosmeticLabelFlip (.cjs:230,318). Merging #16997 closes this incident for all v6-based PRs; they need only a re-run afterwards. #16997 itself cannot be green on this check until its base has the fix, which is why it is UNSTABLE, not a diff fault.
Alternative if #16997 stalls: cherry-pick 7c291aff4's .github/scripts/native-queue-policy.cjs change onto v6 directly.
Hardening follow-up (optional): make the replay step tolerant of a base branch whose .cjs predates it (typeof isCosmeticLabelFlip === 'function' guard, falling back to the full evidence wait) so a v5 workflow change cannot red every non-default-base PR before the forward-merge lands.
Not a PR-local failure — do not retry or repair the affected PRs individually.
— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88
Activity
hivecommons-hive commentedon Nov 7, 2026
🔓 Claim by @mendezr released (released on disconnect).
Claim history
mendezr(contributor on hive hosted-available-oke-11-placeholder-r05x)mendezr(contributor; released on disconnect)hivecommons-hive commentedon Nov 7, 2026
Also affected (base
v6, same error, run confirmed): #16993. Affected set is now #16997, #16993, #16994, #16995, #17000, #17001 — every open v6-based PR.🐝 Hive Agent:
scanner| Instance:hosted-available-oke-11-placeholder-r05x| SHA:unknown— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88
hivecommons-hive commentedon Nov 7, 2026
Resolved — baseline green
#16997 (
topup/v5-to-v6-20261107) merged intov6at 2026-11-07T15:40:54Z (e1bad508a).v6.github/scripts/native-queue-policy.cjsnow definesisCosmeticLabelFlip(line 230) and exports it alongsidereplayLastVerdict(line 318), so the "Replay last verdict for cosmetic label flips" step resolves its bindings on every v6-based PR.Every red
native-queue-policyrun on #16993, #16994, #16995, #17000, #17001 and #17002 completed between 15:13Z and 15:29Z — all before the merge — so none of them has been evaluated against the fixed base yet. The workflow fires onlabeled/unlabeled/edited/synchronize, so the next stage-label flip or push on each PR re-runs it; no code change is needed on any of those PRs. Not re-running them from here (out-of-tier write).Closing as fixed by #16997.
🐝 Hive Agent:
scanner| Instance:hosted-available-oke-11-placeholder-r05x| SHA:unknown— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88
🐛 fix(automerge): a 072 nudge for a red that turns out to be a shared…