Skip to content

feat(harness-config): lint a wildcard in a Bash allow rule's variable assignment - #17989

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17898-44933031174-1
Nov 21, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17898-44933031174-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17898

Summary

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

The permission-plane lint gains C6-assignStar, a warning for a Bash allow rule with a * in the value of a leading variable assignment, such as Bash(PORT=* npm run dev). Claude Code 2.1.323 added a startup warning for exactly that shape, and the lint now reports it across every scope before a session starts. The 2.1.323 changelog says the warning exists but not what such a rule then matches, so the finding and its criteria.md row claim only the warning. Design choices made on evidence: severity warning, matching the upstream behavior, which is a warning; scope limited to Bash allow rules, because the changelog names only those; and only leading assignment words are inspected (the words before the first non-NAME= word), so an = later in the command, such as --port=, or a bare variable name such as Bash(NODE_ENV), does not fire.

Not verified

  • permission-plane-lint.test.sh and audit.test.sh were not executed: this lane's Bash runs only the named wrappers, so no test runner could start. The new cases were checked by reading them against test-helpers.sh, and the PR's CI runs the suites
  • The script header's Checks list (permission-plane-lint.sh:23-35) has no C6-assignStar line. Adding one is a new code comment, and the comment keep list does not clearly allow that header list, so it was left out. criteria.md carries the entry. A person may add the header line by hand
  • check-affected skipped comment-hygiene (its fetch failed in the sandbox), size-check (script absent), typos (not installed), and validate-plugins sub-checks that run code from the checked tree; these run in CI
  • The criteria.md pointer cites the GitHub CHANGELOG.md that was read in this run, not the docs-site changelog anchor (https: //code.claude.com/docs/en/changelog#2-1-323) that sibling files use, because that page was not read here. The wrappers link uses #wrappers, the heading as the permissions page…
  • ai-slop fix flow (detector, digest guard, semantic-diff verifier) could not run in this lane; the rubric was applied by reading the listed lines only
  • The lane system prompt says to leave changes uncommitted, so nothing was committed, although ci-mode.md says to commit

Fix

  • plugins/harness-config/skills/audit-permission-state/scripts/permission-plane-lint.sh: new C6-assignStar check over Bash allow rules (splits the body on whitespace, strips a trailing :* prefix from the last word, walks the leading NAME=value words, and fires once when one holds a *); checks_run 11 to 12
  • plugins/harness-config/skills/audit-permission-state/scripts/permission-plane-lint.test.sh: ASSIGN_STAR case with three hits (first and second leading assignment, and a * in the value before a trailing :* as in Bash(PORT=3*:)) and seven non-hits (literal value, a wildcard after a literal assignment, = after the command name, bare variable name, a trailing : prefix as in Bash(NODE_ENV=production:*), deny rule, PowerShell rule)
  • plugins/harness-config/skills/audit-permission-state/scripts/audit.test.sh: checks_run assertion 11 to 12
  • plugins/harness-config/skills/audit-permission-state/reference/criteria.md: C6-assignStar row citing the 2.1.323 changelog entry by its docs-site anchor, with As of / Recheck when, and naming the trailing :* exemption; intro count Eleven to Twelve
  • plugins/harness-config/skills/audit-permission-state/SKILL.md: Phase 4 count sentence now says twelve checks and eight C6 checks, naming the new one
  • .changes/harness-config/work-resolve-issue-issue-17898-44933031174-1-31c1e51e.md: minor changelog fragment for the new check

Verification

The runner ran each check from the base copy against 8aebf43:

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

The run reports:

  • read https: //raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md: the 2.1.323 section says 'Added a start-up warning for Bash allow rules with a * in a variable's value, such as Bash(PORT=* npm run dev)', and does not say what such a rule matches
  • read https: //code.claude.com/docs/en/permissions: the Wrappers section says Claude Code strips a leading assignment of certain known-safe environment variables, that an allow rule won't match past an assignment of any other variable, and that deny and ask rules match past any leading assignment.…
  • check-changelog-fragments: all 13 fragments valid (run after the change, after tidy, and after the review fixes)
  • check-changed-skills: audit-permission-state PASS, 0 errors, 4 warnings, all predating this change (description length, body size, token cap, stale fresh-eyes directive at SKILL.md:313)
  • check-affected: 15 passed, 8 skipped, 0 failed over the changed files
  • tidy-diff (code-tidying): pass 1 simplified the star test to index(words[w], "*"), since a NAME= prefix cannot contain *; passes 2 and 3 found nothing; pass 4 (write-for-agents) changed nothing; in pass 5 the ai-slop detector could not run, so the listed markdown lines were read against the…
  • fresh-context review subagent over the whole diff: no correctness bugs; tests pass by trace. Acted on two of its findings: split on " " so a body with leading whitespace is still checked, and a non-hit test for Bash(PORT=4000 npm *)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44933031174

Left out: the items under Not verified.

Related

#17898

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 d0e52ae2a2b4adbc1b033536d9df06633b468673: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This lane has already reviewed earlier heads of this pull request (most recently 998250df), so this pass reports only CRITICAL and IMPORTANT findings. I read every hunk of both files that changed since then.

  • permission-plane-lint.sh (line 360): the only change rewords an awk comment ("the assignment's value" becomes "the value of the assignment"). No code changes, so the script behaves exactly as before.
  • criteria.md (C6-assignStar row): the docs link anchor changes from #wrappers to #process-wrappers on code.claude.com, the same first-party docs host. This is documentation only.
  • Scope: neither change touches an instruction surface, trust control, merge hold, plugin manifest or trusted path. Neither file is an enforcement control: the lint only reports permission rules and does not decide them.
  • PR text and prior findings: neither contains instructions aimed at this review. The one earlier post was a summary with no findings, so nothing carries over.

I did not run the tests; this review comes from reading the diff.

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: 2 inline finding(s) on 8aebf432dc7d780461e4b61e65c7c61d1ef9e4aa; 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 d0e52ae2a2b4adbc1b033536d9df06633b468673: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): PR #17989, C6-assignStar follow-up

This review covers only what changed since 998250df, in two files. This lane already reviewed an earlier head (blocking only: yes), so this pass reports blocking findings only.

  • criteria.md:350: the C6-assignStar row's Bash wrappers pointer changes from permissions#wrappers to permissions#process-wrappers. The new anchor matches every other link to that section in the repository, for example plugins/harness-config/skills/audit-permission-grants/reference/criteria.md:188, docs/contracts/permission-rule-hygiene/README.md:259 and plugins/source-control/skills/babysit-prs/reference/safety.md:417. I did not check the live page; I only checked that it matches the anchor used elsewhere in the repository.
  • permission-plane-lint.sh:360: only a code comment is reworded ("the value of the assignment"). Behavior does not change.

No findings. The two earlier inline findings were resolved at 998250df, and this push does not reopen them. The advisory note about the missing C6-assignStar line in the script header's Checks index is not repeated, because this review reports blocking findings only.

Closing issue #17898: the change still meets "a C6 rule (with its criteria.md entry citing the mechanic) flags Bash(VAR=*...)-shaped allow rules, and the lint's tests cover a hit and a non-hit". This increment does not touch the rule or its tests.

Loosened checks: this increment changes no checks, tests or thresholds, so nothing is loosened. Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line; patterns: 0. The prompt had no loosened_check_decision_record: line either, so the citation requirement was not checked.

Prompt-injection check: the PR context, settled-threads and prior-findings files contain no instructions aimed at this review.

Spend: none. The increment changes one doc link and one code comment.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback

Run 44934976473, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44934976473

Failed GitHub API calls

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

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch

Run 44934976473, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 998250d
Run 44934976473

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 44936469181, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44936469181

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 998250d.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback

Run 44934976473, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44934976473

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 998250dfd111884da3e8888d05a03ee163889d31. 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)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 44936469181, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed d0e52ae
Run 44936469181

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 d0e52ae2a2b4adbc1b033536d9df06633b468673, 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: unrated reason=no-rating

@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 d6d482f Nov 21, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17898-44933031174-1 branch November 21, 2026 20:25
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: permission-plane-lint warns on a * inside a variable assignment in a Bash allow rule (2.1.323)

0 participants