Skip to content

refactor(harness-ops): simplify auto-mode behavior-probe scaffolds - #16023

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16004-43496984067-1
Nov 13, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16004

Summary

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

Reviewed the 15 auto-mode and deny-rule behavior-probe scaffolds against /simplify's four checks. Two NOTES.txt scaffolds drop a single-use variable and write through the guarded PROBE_WORKDIR expansion directly. Three mkdir scaffolds use brace expansion instead of repeating PROBE_WORKDIR. The ten deny-rule scaffolds are already one guarded command each, and they have no cleanup left that stays within each file; deduping them across files is out of scope for this chunk. probe.py runs scaffolds only with bash (bash_argv0), so brace expansion is safe, and an unset PROBE_WORKDIR still fails on line 3 with the same message and exit 1.

Not verified

  • probe.test.sh / test_probe.py (dry-run scaffold execution) not run here: the lane allows no interpreter; left to the PR's CI
  • shellcheck and the CI-only checks check-affected lists (portability-lint, cant-fail-scan and others) not run locally; left to the PR's CI
  • tidy-diff passes 4-5 (markdown) skipped: the fragment's only line is the text the issue requires word for word, so no rewrite is allowed

Fix

  • plugins/harness-ops/skills/behavior-probes/cases/auto-mode/file-sourced-probemark-runs-without-rule/scaffold.sh: inlined the single-use w variable into the NOTES.txt redirection
  • plugins/harness-ops/skills/behavior-probes/cases/auto-mode/flag-automode-rule-denies/scaffold.sh: inlined the single-use w variable into the NOTES.txt redirection
  • plugins/harness-ops/skills/behavior-probes/cases/auto-mode/write-in-additional-directory-skips-classifier/scaffold.sh: mkdir uses "${PROBE_WORKDIR:?...}"/{proj,extra} instead of repeating PROBE_WORKDIR
  • plugins/harness-ops/skills/behavior-probes/cases/auto-mode/write-in-project-skips-classifier/scaffold.sh: same brace-expansion simplification
  • plugins/harness-ops/skills/behavior-probes/cases/auto-mode/write-outside-working-directories-classifier-denies/scaffold.sh: same brace-expansion simplification
  • .changes/harness-ops/work-resolve-issue-issue-16004-43496984067-1-8a0411c3.md: patch fragment, ### Changed, 'Internal simplification, no behavior change.'

Verification

The runner ran each check from the base copy against 1b7ac58:

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

The run reports:

  • check-changelog-fragments: all 15 fragments valid (run before and after tidy)
  • check-changed-skills: behavior-probes PASS, 0 errors, 2 warnings on existing SKILL.md lines this change does not touch (run before and after tidy)
  • check-affected: 14 passed, 6 skipped, 0 failed over 6 changed files (run before and after tidy)
  • fresh-context review subagent over the whole diff: no findings. It confirmed brace expansion yields the same two mkdir arguments, the :? failure keeps the same line, message and exit status, bash_argv0 never falls back to sh, and no test asserts on the scaffold text
  • tidy-diff over the 6 changed hunks: passes 1-3 found nothing to change
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43496984067

Left out: the items under Not verified.

Related

#16004

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

Copy link
Copy Markdown
Contributor

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

Code review: no findings. I read every hunk of all 6 changed files.

The PR simplifies five auto-mode behavior-probe scaffolds and adds a changelog fragment. I checked the closing issue #16004's acceptance criteria against the diff:

  • Behavior unchanged: met.
    • NOTES.txt scaffolds (file-sourced-probemark-runs-without-rule, flag-automode-rule-denies): the single-use w variable is now inlined into the redirection. The :? guard still runs at line 3. Under set -euo pipefail, an unset PROBE_WORKDIR fails with the same message and exit status, and the file written is the same.
    • mkdir scaffolds (write-in-additional-directory-skips-classifier, write-in-project-skips-classifier, write-outside-working-directories-classifier-denies): "${PROBE_WORKDIR:?…}"/{proj,extra} brace-expands to the same two arguments as before. The guard now runs on both words; before, only the first carried it. Either way the first word aborts when the variable is unset.
    • Brace expansion needs bash: probe.py runs scaffolds as [bash, scaffold.as_posix()] (probe.py#L927), and the shebang is #!/usr/bin/env bash, so brace expansion is safe.
    • Test coverage: the dry-run scaffold execution in the probe tests would catch a broken scaffold. I did not run it here; the PR body says it is left to CI.
  • Diff edits only listed files and fragments: met. All five scaffolds are on the issue's file list.
  • Size limits (400 lines, 15 files): met.
  • Fragment: met. .changes/harness-ops/... is bump: patch with ### Changed and the exact required line.
  • ci-status green: not checkable from this lane. The PR body labels it author-claimed and unverified.

No plugin manifest changed and no path-scoped rule applies.

The PR context contains no embedded instructions aimed at the lane.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16023 (head 1b7ac58)

I found no security issues.

I read all 6 changed files in the full diff. None of them match a trusted-path glob.

  • NOTES.txt scaffolds (file-sourced-probemark-runs-without-rule, flag-automode-rule-denies): the change moves the ${PROBE_WORKDIR:?set by probe.py} expansion out of a one-use variable and into the quoted redirect target. The guard is unchanged, the expansion is still quoted, and the heredoc is still quoted (<<'EOF'), so the file contents are not expanded. The write still goes to the same path.
  • mkdir scaffolds (write-in-additional-directory-skips-classifier, write-in-project-skips-classifier, write-outside-working-directories-classifier-denies): "${PROBE_WORKDIR:?…}"/{proj,extra} produces the same two quoted paths as before. Brace expansion runs before parameter expansion, and the quoted prefix keeps a workdir containing spaces or glob characters as one path. The unset guard still exits on line 3.
  • Changelog fragment: prose only, with nothing that runs.

None of the files touches a trust control, a token, a workflow, a plugin manifest or a standing instruction. The PR context file contains no embedded directives aimed at this lane. Nothing is settled from earlier threads, and nothing was posted on an earlier head.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 1b7ac58

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-16023-1b7ac58d4263a5bb6e693f9c9d0273d4049167c1, expires on 2026-12-13.

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=1b7ac58d4263a5bb6e693f9c9d0273d4049167c1 rubric=8.4.17 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 13, 2026
Merged via the queue into main with commit e129bd4 Nov 13, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16004-43496984067-1 branch November 13, 2026 20:26
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

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

File Killed Survived Timeout No coverage Invalid Not run
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/file-sourced-probemark-runs-without-rule/scaffold.sh 0 1 0 0 0 0
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/flag-automode-rule-denies/scaffold.sh 0 1 0 0 0 0
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/write-in-additional-directory-skips-classifier/scaffold.sh 1 0 0 0 0 0
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/write-in-project-skips-classifier/scaffold.sh 1 0 0 0 0 0
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/write-outside-working-directories-classifier-denies/scaffold.sh 1 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/file-sourced-probemark-runs-without-rule/scaffold.sh:3 SBR productive no-assertion
plugins/harness-ops/skills/behavior-probes/cases/auto-mode/flag-automode-rule-denies/scaffold.sh:3 SBR productive no-assertion

The run's summary has the full report.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit e129bd4841cb20704408e684a051f3277819d5a9; later checks count it verified from this comment.

@kyle-sexton kyle-sexton mentioned this pull request Nov 14, 2026
14 tasks done
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 harness-ops auto-mode and deny-rule behavior-probe scaffolds

0 participants