Skip to content

refactor(testing): move the gate_test suite-runner pattern into this repo's testing config - #16231

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16062-43638578914-1
Nov 14, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16062-43638578914-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16062

Summary

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

Removed the gate_test::run_suite delegation pattern from the shipped /testing:audit bash-harness adapter. It now appears once, in this repository's docs/conventions/testing.yaml under extend.bash-harness.delegation, because that runner belongs to the knowledge plugin's gate tests and not to every consumer. I replaced the scanner test's old shipped-pattern case with two cases: a negative one showing the shipped adapter alone reports the runner call as zero-assertion, and a positive one where an extend fixture makes it delegation. I chose extend over a consumer adapter because the issue names extend and the adapter's delegation field is already an extendable list.

Not verified

  • cant-fail-scan.test.sh itself was not run: this lane cannot run a test suite. That includes the new negative case's 1-finding expectation, which is derived from the adapter's patterns and confirmed by the reviewer but not executed. Left to the PR's CI.
  • Tidy skipped: the change touches docs/conventions/, a listed shared path, and spans two areas (plugins/testing and docs/conventions), over the 1-area cutoff.
  • Checks that check-affected marks CI-only (including the cant-fail-scan base diff and fixture-git-isolation) or skipped (typos not installed, validate-plugins sub-checks) are left to the PR's CI.
  • The changes are left uncommitted in the working tree, as the runner's prompt directs, instead of being committed as ci-mode step 3 says.
  • git status inside the sandbox lists untracked root dotfiles (.bashrc, .gitconfig, .mcp.json, .idea, .vscode and others). They do not exist on disk (Read finds no .bashrc) and are not part of this change.

Fix

  • plugins/testing/skills/audit/adapters/bash-harness.yaml: removed the gate_test::run_suite delegation entry.
  • docs/conventions/testing.yaml: added extend.bash-harness.delegation: \['gate_test::run_suite'\] with a one-line comment naming the knowledge gate tests as the users.
  • plugins/testing/skills/audit/scripts/cant-fail-scan.test.sh: replaced the shipped-pattern case with a self-contained fixture (own git repo, empty HOME, CLAUDE_PROJECT_DIR unset). With no config the shipped adapter gives 1 finding. With an extend.bash-harness.delegation fixture it gives 0, and the…
  • .changes/testing/work-resolve-issue-issue-16062-43638578914-1-7f0f10b8.md: patch changelog fragment (Changed).

Verification

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

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

The run reports:

  • cant-fail-scan over the whole repository before and after the change (dogfood): 120 findings both times over 2404 test files, and none of the eight gate_test::run_suite test files (plugins/knowledge) has a finding in either run.
  • cant-fail-scan --file on a scratch fixture holding gate_test::run_suite "$DIR" test_x.py, with this repository's config: 0 findings, 1 file examined, 1 config layer read, so the extend entry is applied.
  • cant-fail-scan --file --check on the edited cant-fail-scan.test.sh: PASS, no gating findings. The one report-only source-text-read finding at line 2218 was there before this change.
  • Grep for gate_test / run_suite under plugins/testing: the pattern is gone from the shipped adapter and appears only in the scanner test fixture. docs/conventions/testing.yaml holds it once.
  • Local review by a fresh-context subagent: no correctness bug. It made two suggestions (assert that the positive scan ran, and make the fixture its own git repo so CFG_ROOT cannot resolve to an enclosing repository), and both are applied.
  • check-changelog-fragments: all 6 fragments valid.
  • check-changed-skills: plugins/testing/skills/audit PASS, 0 errors (3 size warnings, already there before this change).
  • check-affected: 15 passed, 6 skipped, 0 failed.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43638578914

Left out: the items under Not verified.

Related

#16062

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

Copy link
Copy Markdown
Contributor

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

Security review: PR #16231

I found no security issues.

I read all four changed files in full. None of them matches a trusted-path glob. The change moves the gate_test::run_suite delegation pattern out of the shipped /testing:audit bash-harness adapter and into this repository's docs/conventions/testing.yaml under extend.bash-harness.delegation. It also updates the scanner test and adds a changelog fragment.

  • What the change does to the scanner: The shipped adapter now has one fewer delegation pattern. For consumers, that makes the zero-assertion scanner stricter, not looser: a gate_test::run_suite call is reported unless a repository opts in through extend. This repository opts back in through its own convention file, so its behaviour stays the same. No trust control, merge hold, token scope or kill switch is touched.
  • Test fixture (cant-fail-scan.test.sh): The new case builds its own git repository and an empty HOME under $TMP_ROOT, unsets CLAUDE_PROJECT_DIR, and runs the scanner on a fixed file it creates. No untrusted input reaches a shell string, and nothing runs with credentials.
  • Instruction-surface lens: Nothing is removed from a standing instruction, hook allowlist or block list. The deleted line is a pattern in the audit adapter's data file, and removing it narrows what the scanner accepts as delegation.
  • Plugin manifests: No plugin.json or marketplace.json changed.
  • PR context: The description and the closing issue hold no embedded directives aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings.

The change moves the gate_test::run_suite delegation pattern out of the bash-harness adapter that ships with /testing:audit. It now lives in this repository's docs/conventions/testing.yaml under extend.bash-harness.delegation.

Closing issue #16062. Its one criterion is met: "The suite-runner pattern is gone from the shipped bash-harness adapter and present once in this repository's testing convention file."

  • The pattern is now gone from plugins/testing except for the test fixtures.
  • docs/conventions/testing.yaml holds it once.
  • The new negative test case would fail if the pattern came back to the shipped adapter. It expects one finding from the shipped adapter alone.

Wiring checked by reading the code:

  • cant-fail-scan.sh passes extend.* config keys to the adapter loader.
  • delegation is a list that a config can extend, so the extend entry reaches the adapter.
  • The test fixture is its own git repository, runs with an empty HOME and with CLAUDE_PROJECT_DIR unset. Its config therefore resolves only to the fixture's own .claude/testing.yaml, and the negative case cannot pick up this repository's config.
  • The 9 files in plugins/knowledge that call gate_test::run_suite are covered by the new extend entry in the repository config.

Changelog. The bump: patch fragment fits: the removed pattern belonged to this one repository. No plugin manifest changed, so the diff has no manifest items to check.

Not verified by this review. The author's test and scan results are their own claims. This lane could not run cant-fail-scan.test.sh or the dogfood scan.

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 d2811c7323fb8a53fb0edacd5bc2b811dcc496e5, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for d2811c7

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-16231-d2811c7323fb8a53fb0edacd5bc2b811dcc496e5, expires on 2026-12-14.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=d2811c7323fb8a53fb0edacd5bc2b811dcc496e5 rubric=9.2.0 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 14, 2026
Merged via the queue into main with commit 59d6f9d Nov 14, 2026
51 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16062-43638578914-1 branch November 14, 2026 21:22
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

Accept any recorded or inferred ecosystem id and any mutation tool value - part 3 of 4

0 participants