Skip to content

harness-config: permission-rule-check and its evals match the 2.1.323 plugin settings keys and 2.1.325 --plugin-dir nested skills #17914

Description

@kyle-sexton

Refs: #15693, #16035

Split from the changelog release issue(s) above under the owner's decision of 2026-11-21 (melodic-software/architecture#148): one issue per handoff row, rows that edit the same file grouped.

Route: lane work. Basis: wording corrections to match docs/contracts/permission-rule-hygiene/README.md:166-173 and current upstream; no runtime control changes.

Problem

harness-config: permission-rule-check.sh P3 says plugin settings.json supports subagentStatusLine, removed in 2.1.323

Row 3 of #15693 (key changelog:2.1.323..2.1.323:correct:plugins/harness-config/skills/audit-permission-grants/scripts/permission-rule-check.sh). Required sentence: Component says a plugin's settings.json supports only the agent and subagentStatusLine keys (false). The release says subagentStatusLine is removed and the plugin agent key is deprecated with warnings, though it still applies (true). The inert-permissions conclusion still holds.

On main, plugins/harness-config/skills/audit-permission-grants/scripts/permission-rule-check.sh still says so at :23 (P3 header), :791 and :804 (the P3 warning users see). The contract already carries the corrected wording at docs/contracts/permission-rule-hygiene/README.md:166-173: only agent takes effect, it is deprecated, and 2.1.323 removed subagentStatusLine.

The row notes the surface audits permission grants (security-relevant). Only the wording changes, and the inert-permissions verdict is unchanged.

harness-config: audit-permission-grants eval expects the subagentStatusLine plugin setting removed in 2.1.323

Row 4 of #15693 (key changelog:2.1.323..2.1.323:correct:plugins/harness-config/skills/audit-permission-grants/evals/evals.json). Required sentence: Component says a plugin's settings.json supports only the agent and subagentStatusLine keys (false). The release says subagentStatusLine is removed and the plugin agent key is deprecated with warnings, though it still applies (true). The inert-permissions conclusion still holds.

On main, plugins/harness-config/skills/audit-permission-grants/evals/evals.json:44 expected_output still reads "a plugin settings.json supports only agent/subagentStatusLine". The corrected wording is at docs/contracts/permission-rule-hygiene/README.md:166-173. Fix this together with the permission-rule-check.sh P3 text issue.

harness-config: audit-permission-grants treats nested skills in --plugin-dir plugins as loadable (2.1.325)

Changelog 2.1.325 (item 2.1.325-106): nested .claude/skills folders inside --plugin-dir plugins no longer load from a session started above them. That is a second non-loadable location, and the audit still lists only one:

  • plugins/harness-config/skills/audit-permission-grants/reference/criteria.md:80-82: "we treat a nested one inside the user plugins directory, ${CLAUDE_CONFIG_DIR:-~/.claude}/plugins/, as non-loadable"
  • plugins/harness-config/skills/audit-permission-grants/scripts/permission-rule-check.sh:613-616: the same exclusion, for the user plugins directory only

The detector over-reports, flagging grants in skills that cannot load (the safe direction). The recheck trigger at criteria.md:76-78 ("either section changes which directories load nested skills") fires. The skills page section on discovery from parent and nested directories names no --plugin-dir exception yet (docs-lag), so the change cites the changelog entry.

Done when

  • :23, :791 and the :804 P3 message match the wording at docs/contracts/permission-rule-hygiene/README.md:166-173 (only agent takes effect, deprecated; subagentStatusLine removed in 2.1.323), and the script's tests still pass.
  • evals.json:44 expected_output matches docs/contracts/permission-rule-hygiene/README.md:166-173 (only a deprecated agent takes effect; a permissions block is inert), and the eval suite still validates.
  • criteria.md and the exclusion in permission-rule-check.sh either treat nested .claude/skills/ inside a --plugin-dir plugin root as non-loadable, citing https://code.claude.com/docs/en/changelog#2-1-325, or criteria.md says why the script cannot tell a --plugin-dir root apart and keeps the over-report.
  • A fixture test covers whichever case the change takes.

Activity

  1. added
    needs-triage
    on Nov 21, 2026
  2. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the audit-permission-grants skill in harness-config (permission-rule-check.sh messages and exclusion, criteria.md, evals.json) and its fixture tests; read by anyone running that audit.
    Reversible: yes; revert the wording, eval and exclusion edits.
    Open questions: none
    Understood: correct the P3 wording (only a deprecated agent key takes effect; subagentStatusLine removed in 2.1.323) in the script and the eval, matching the contract. Also treat nested skills in --plugin-dir plugins as non-loadable (2.1.325), or document why that can't be detected. Add a fixture test for the chosen case. The done-when items are exact and the issue picks the design. I found no duplicate among open issues and no merged PR that already fixes this.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 21, 2026
  4. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"30f9da1877ba7baa9d1daac702b4d9b9bedc2cdab1de49e56a2f71981f4b60af","body_sha256":"80f2edbc6947137735413987a0c5fa70483d6b796d9d47fa3e1d1871a94cfe2b"}

  5. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"30f9da1877ba7baa9d1daac702b4d9b9bedc2cdab1de49e56a2f71981f4b60af","body_sha256":"80f2edbc6947137735413987a0c5fa70483d6b796d9d47fa3e1d1871a94cfe2b"}

  6. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions