Skip to content

test(source-control): test the merge-queue pass lookup by behaviour, not source text - #11165

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-9471-41008081619-1
Oct 30, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-9471-41008081619-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #9471

Summary

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

Item 3 of #9471, the part the recorded decision left active. TheQueueCheckAndTheGateAgree.test_the_lookup_names_and_origin_are_the_gate_s asserted substrings of pr-require-checks.yml's merge-queue pass lookup. It is replaced by three tests that pull the lookup's own bash lines out of the workflow (the head-ref digest, the lookup by exact name that stops at a counted pass, and the counted pass's artifact selection) and run them under bash -e against a stubbed read_api and artifact listing, the way scripts/ci-lanes-pr-hold.test.sh runs the step. They feed in the gate suite's run records (FORGERIES and UNFINISHED) and compare the lookup's allow and refuse answers, through merge-holds.mjs verdictHold, with the gate's. Items 1 and 2 are deferred to the hardening pass by the owner's recorded decision.

Remaining work

  • Items 1 and 2 (deferred to the hardening pass by the 2026-10-30 recorded decision): confirm live whether ci-status's GITHUB_TOKEN can disarm auto-merge on a push to an armed lanes App pull request. If it cannot, drop the disarm step or move it to a job with a token that can disarm.

Not verified

  • The changed Python test suite was not executed. This lane runs no interpreter, so test_verify_rules_sync.py (it needs python3, node, bash, jq and sha256sum) is left to the PR's CI.
  • tidy: the simplify, comment and write-for-humans passes ran (one edit, to the changelog fragment). The ai-slop pass did not run its deterministic detector (detect.sh), because the lane runs only the named wrappers. Its rubric was applied by reading the one-paragraph fragment, and nothing was found.
  • typos was not installed, and check-affected skipped it. The CI-only checks check-affected lists (actionlint, editorconfig, silent-skips, discriminating-test-skips and the rest) are left to the PR's CI.

Fix

  • plugins/source-control/skills/babysit-prs/scripts/tests/test_verify_rules_sync.py: removed the source-text test. Added queue_lookup_script (extracts the workflow's lookup lines), queue_lookup (runs them under bash -e with stub reads in a temp dir) and queue_allows (verdictHold over the kept records)
  • .changes/source-control/test-9471-queue-lookup-behaviour-5c2e8a17.md: new bump: none fragment (test only). Written by hand because new-changelog-fragment refuses a detached HEAD.

Verification

The runner ran each check from the base copy against 36de57f:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: All 29 changelog fragment(s) under .changes/ are valid (run after the change, after tidy, and after the review fix)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped over 2 changed files (run after the change, after tidy, and after the review fix)
  • fresh-context review subagent over the whole diff: no correctness bugs. It hand-traced the line extraction against the workflow (lines 5809-5947) and every assertion against the RUNS fixtures, verdictHold and the jq filters. It also confirmed ruff.toml selects only E4/E7/E9/F and that no imports are
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41008081619

Left out: the items under Not verified.

Related

#9471

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

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed efb69c8f422383e680984887598a0a1da682c4e3: 0 finding(s), 0 as inline comments.

Incremental review of .changes/source-control/test-9471-queue-lookup-behavior-5c2e8a17.md. The only change since the last review is a rename of this file, from behaviour to behavior in the filename. The content is a bump: none changelog fragment containing prose only. It has no executable content and touches no trust control, manifest or instruction surface. I found no security issues.

The rest of the pull request is unchanged since the last review. I used the full diff only for context. It adds a test-only change to test_verify_rules_sync.py that runs the workflow's lookup lines under bash against stubbed files in a temp directory. It reads pr-require-checks.yml and does not modify it, so it widens no hold, token scope or trusted actor.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed efb69c8f422383e680984887598a0a1da682c4e3: 0 finding(s), 0 as inline comments.

Incremental review of the one file changed since 36de57f: .changes/source-control/test-9471-queue-lookup-behavior-5c2e8a17.md. The change is a rename from behaviour to behavior in the filename. I read the file at the head commit.

  • The content is a valid bump: none fragment for a test-only change. It describes the PR accurately: the queue lookup test now runs against stubbed reads instead of checking source text.
  • A bump: none fragment is right when no shipped skill, script or reference changes.
  • The old behaviour fragment name no longer exists, so there is no duplicate fragment.
  • The rest of the PR is unchanged since the last review and was reviewed then.
  • This PR spends no billed resources, so there is no cost hold.

No findings.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 543166d Oct 30, 2026
44 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-9471-41008081619-1 branch October 30, 2026 06:39
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.

1 participant