Skip to content

refactor(harness-config): simplify audit-automation-gaps state and inventory scripts - #15421

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-14494-43084201153-1
Nov 11, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #14494

Summary

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

Simplified findings-state.sh and inventory.sh without changing their behavior. In findings-state.sh: merged the three cleanup removes into one loop, replaced empty-check blocks with parameter-expansion defaults, folded the run-id resolution in write and read, started the suffix loop from the bare id instead of branching on suffix 1, collected orphan files into one array instead of globbing twice, merged consecutive printf calls, and condensed the long rationale comments. In inventory.sh: rewrote json_status and dir_status as single if/elif chains, dropped a redundant return and a separate initialization, and shortened several comments. The sed targets findings-state.test.sh mutates are kept verbatim. Design choice: some comment condensation was rolled back so the change stays within the issue's 400 changed-line cap (388 lines in the scripts plus the 7-line fragment).

Not verified

  • findings-state.test.sh and inventory.test.sh were not run: this lane cannot invoke bash or a test runner, so they are left to the PR's CI
  • ci-status green is a PR CI check, left to the PR's CI
  • Tidy skipped: the change is 395 changed lines, over the 300-line tidy cutoff
  • Shellcheck and shfmt were not run here (no shell access beyond the wrappers); the CI lint jobs cover them

Fix

  • plugins/harness-config/skills/audit-automation-gaps/scripts/findings-state.sh: code simplifications (cleanup loop, ${1:-default} resolvers, run-id defaults, suffix loop, single-glob orphan listing, merged printf output) and condensed comments; outputs, exit codes, messages and flags unchanged
  • plugins/harness-config/skills/audit-automation-gaps/scripts/inventory.sh: json_status and dir_status as if/elif chains, redundant return and assignment removed, several comments shortened; output unchanged
  • .changes/harness-config/work-resolve-issue-issue-14494-43084201153-1-650f75d1.md: patch fragment, '### Changed' with 'Internal simplification, no behavior change.'

Verification

The runner ran each check from the base copy against 37ed30d:

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

The run reports:

  • check-changelog-fragments: all 109 fragments valid
  • check-changed-skills: audit-automation-gaps PASS, 0 errors, 3 warnings, all about SKILL.md size and description length, which this change does not touch
  • check-affected: 13 passed, 6 skipped, 0 failed
  • git-read diff --numstat HEAD: 116 added and 272 removed lines across the two scripts (388), plus the 7-line untracked fragment, so 395 changed lines over 3 files
  • Grep of findings-state.sh: the four sed targets used by findings-state.test.sh are still present, each on its own line (must not contain '..': $id; BASE_DIR="$PLUGIN_DATA/$COMPONENT/$STATE_KEY"; c.plan | type) != "object"; validate_run_id "$run_id" only in the read path)
  • Fresh-context subagent review of the full diff: no behavior differences found (cleanup trap, resolvers, run-id paths, suffix order and cap, orphan listing, printf bytes, json_status/dir_status branches under set -u and bash 3.2). One comment it said could be misread was reworded
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43084201153

Left out: the items under Not verified.

Related

#14494

Merge-Risk: max=LOW demote=false head=19fa8842bed016ccc0a3e5dfd67ee456922f7bc5 rubric=8.4.5 rater=claude-opus-5-5 checker=claude-opus-5-5

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

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #15421, head 19fa884 (incremental since 37ed30d)

This review found no security issues.

Scope. This was an incremental review of the 1 file listed for this push, plugins/harness-config/skills/audit-automation-gaps/scripts/findings-state.sh. I read its one hunk in full. It was blocking only, because this lane already reviewed head 37ed30d, so only CRITICAL and IMPORTANT findings would be reported.

What changed. At line 613, one comment in cmd_read changes "unparseable" to "unparsable". It is a spelling fix in a comment. No code, no condition and no instruction to the model changed. The file matches none of the trusted-path globs, and it is not a trust control, a merge hold, a plugin manifest or an instruction surface. The run-id validation, the --plugin-data checks and the exclusive-create suffix loop are the same as at 37ed30d, where this lane checked them and found nothing.

Prior findings. This lane's only earlier post is its summary comment at 37ed30d, which reported 0 findings. Nothing from it needs to be restated.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #15421, incremental since 37ed30d5

No findings. I read the one hunk in the only file that changed since the last review, plugins/harness-config/skills/audit-automation-gaps/scripts/findings-state.sh. That file matches no trusted-path glob.

What changed

A comment in cmd_read (line 613 at head) changes "unparseable" to "unparsable" so that the typos check accepts it. No code changed, so the script behaves exactly as it did before. None of the four lines that findings-state.test.sh edits with sed is this comment, so the mutation tests are unaffected.

Closing issue #14494

The earlier review's assessment still holds, since this push only edits a comment inside a listed file:

  • Behavior unchanged: met.
  • Edits only the listed files plus a changelog fragment: met.
  • Within 400 changed lines: met.
  • Fragment requirement: met.
  • ci-status green: depends on CI and is not checked here. I ran no tests or linters.

Scope

  • This lane had already reviewed an earlier head, so this review reported blocking findings only.
  • The one earlier summary comment from this lane reported no findings, so nothing is repeated here.
  • The pull request context has no embedded instructions aimed at this lane.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 19fa8842bed016ccc0a3e5dfd67ee456922f7bc5. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

lint-repo's typos gate failed on the comment the simplification added
at findings-state.sh:613.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 19fa884

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-15421-19fa8842bed016ccc0a3e5dfd67ee456922f7bc5, expires on 2026-12-11.

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit cba7589 Nov 11, 2026
59 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14494-43084201153-1 branch November 11, 2026 22:34
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/harness-config/skills/audit-automation-gaps/scripts/findings-state.sh 4 0 0 0 0 0
plugins/harness-config/skills/audit-automation-gaps/scripts/inventory.sh 2 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/harness-config/skills/audit-automation-gaps/scripts/inventory.sh:243 LCR 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 cba7589ba104b513c820e55075f78396a8b928e6; 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.

Simplify the audit-automation-gaps harness-config plugin code

1 participant