Skip to content

feat(harness-config): report fix-cmd as the formatter rung in the rule inventory - #17797

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16931-44866358397-1
Nov 21, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #16931

Summary

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

The audit-automation-gaps rule inventory now turns each fix-cmd command line of an ecosystem record into its own row, <name> fix-cmd: <cmd>, with the ecosystem file as enforcer and rung formatter at tier 2, which is where the bundled ladder copy lists that rung (enforcement-ladder.md:53 and :61). This follows the recorded decision on the issue. The test's 'fix-cmd is not a check' assertion is replaced by an assertion on the exact formatter row, plus one that no analyzer-pack-rule row carries fix-cmd. The local review found that the ecosystem-commands contract examples put a trailing YAML comment on fix-cmd (docs/contracts/ecosystem-commands/examples/bash.yaml:7, go.yaml:8, python.yaml:8). The command reader now drops a trailing comment that sits outside quotes, so those rows read cleanly and build-cmd: null # ... records nothing.

Not verified

  • rule-inventory.test.sh was not executed: the lane's Bash runs only the named wrappers, so the test suite is left to the PR's CI. Its expected results were checked by reading only.
  • tidy pass 5 (ai-slop:audit fix) did not run its deterministic detector (detect.sh), because the lane's Bash refuses it; only the rubric read ran on the changelog fragment.
  • check-affected skipped typos (not installed), comment-hygiene (fetch of its action failed in the sandbox) and size-check (script absent in the lane checks tree); CI runs them.
  • verify (build and tests) step skipped: no build applies to a shell script, and the test run is left to CI as above.

Fix

  • plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh: maps fix-cmd to the formatter rung in the rung case and the awk key match; the ecosystem reader drops a trailing YAML comment outside quotes, and treats a comment-only value (fix-cmd: # none) as empty, so it records no row; the usage text and the no-record note now name the format command.
  • plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.test.sh: case D asserts the exact formatter row for the fixture's fix-cmd: shfmt -w <files> and that no analyzer-pack-rule row carries fix-cmd; the fixture's fix-cmd and build-cmd: null lines carry trailing comments, and a second fixture record, docs.yaml, holds a comment-only fix-cmd that must record nothing.
  • .changes/harness-config/work-resolve-issue-issue-16931-44866358397-1-38b40044.md: new minor changelog fragment (Added: formatter rows; Fixed: trailing comments in recorded commands).

Verification

The runner ran each check from the base copy against 2332aaa:

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

The run reports:

  • check-changelog-fragments: all 5 fragments under .changes/ valid
  • check-changed-skills: audit-automation-gaps PASS, 0 errors, 3 warnings about existing SKILL.md size and description length (SKILL.md not changed by this run)
  • check-affected: 15 passed, 8 skipped (typos not installed; comment-hygiene could not fetch its action; size-check script absent in the lane; validate-plugins subchecks and changed-skills that run checked-tree code)
  • review: a fresh-context subagent read the diff, the ladder copy and the whole test file. It found no correctness bugs and confirmed by reading that the formatter rung parses to tier 2 and the new D assertions match the fixture. It raised two low findings, a trailing YAML comment on fix-cmd and…
  • tidy-diff: passes 1-4 made no edit; pass 5 (ai-slop) ran the rubric read only
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44866358397

Left out: the items under Not verified.

Related

#16931

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

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17797 (incremental, blocking only)

I found no security issues in the change since 2332aaa7. This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings only.

What changed.

  • rule-inventory.sh: the ecosystem reader's awk block now treats a command value that is only a comment (fix-cmd: # ...) as empty. That value then takes the existing v == "" skip, so the script records no row for it.
  • rule-inventory.test.sh: adds a docs.yaml fixture with a comment-only fix-cmd and asserts that no docs fix-cmd row is emitted.

What I checked.

  • No new path to a shell. The new line is plain awk regex matching and assignment, with no system(), pipe or getline. Command values are still only printed as inventory text and never run, as the earlier review checked at rule-inventory.sh#L123-L134.
  • The test change is safe. It writes its fixture with a quoted heredoc (<<'EOF') into the test's temporary directory, so the shell expands nothing in it.
  • Trust surface. Neither changed file matches a trusted path. Neither is a trust control, merge hold, plugin manifest or instruction surface, and the change removes no guardrail.

Cost. Nothing in this change can cause a charge.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 2332aaa7edbb9addd7f16ea99ab8943bace4bca2; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): comment-only command values

This round covers only the push since 2332aaa7: rule-inventory.sh and rule-inventory.test.sh. I found no new blocking findings. This lane already reviewed an earlier head, so this review reported blocking findings only.

The earlier finding is fixed. It was that a comment-only value still becomes a command row (thread r4650608746, now resolved).

  • rule-inventory.sh:272 now sets a value that starts with # to empty. val() has already trimmed it, so the empty value reaches the v == "" skip on :275 and no row is printed.
  • A quoted value never starts with #, so the trailing-comment strip and the quote handling on :273 and :276-278 work as before.
  • The new docs.yaml fixture (fix-cmd: # no formatter wired, rule-inventory.test.sh:142-145) and assert_no ... "docs fix-cmd" (:189) would fail on the old code, which printed a docs fix-cmd: # no formatter wired row.

The second fixture record breaks no other case D check. No test checks the number of records read (ecosystems: N record(s) read). Every other D check is either tied to shell.yaml or counts instruction and test-file rows, which docs.yaml does not add to.

Tests: I did not run rule-inventory.test.sh. I had no shell, and the PR says the lane did not run it either, so it is left to CI. Everything above comes from reading the code.

Loosened checks: the push loosens no check; it adds a fixture and one assertion. The prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used fail with no consumer entries. It also had no loosened_check_decision_record: line, so I did not check the citation requirement.
Loosened checks would be marked: fail (plugin default); patterns: 0

Spend: none.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44867992386

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 2332aaa7edbb9addd7f16ea99ab8943bace4bca2, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=2332aaa7edbb9addd7f16ea99ab8943bace4bca2 rubric=10.4.3 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM66R1F1
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed c1f8516
Run 44867992386

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on c1f8516.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44867992386

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head c1f8516aab660cacf8fe2d00ebb4c4e949aad02d, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=c1f8516aab660cacf8fe2d00ebb4c4e949aad02d rubric=10.4.3 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 21, 2026
Merged via the queue into main with commit 8311f28 Nov 21, 2026
64 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16931-44866358397-1 branch November 21, 2026 05:58
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.

harness-config: rule inventory cannot report the formatter rung

0 participants