Skip to content

fix(harness-config): cut the model-read ecosystem specifics from harness-config skills - #17470

Merged
melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-16764-44560099541-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-16764-44560099541-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #16764

Summary

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

Cuts the model-read ecosystem examples from harness-config: named build files, fixed per-language extensions, a measured git-log probe, and npm/cargo/python/node commands used to show permission-rule syntax. Each one is either replaced with generic text where the skill still takes the step, or deleted. Row count (bulk-mutation standard): 6 rows.

Rows, with each outcome at head a08fdca:

Row Rule Outcome
F0207 R11 Already gone on main. Neither docs/contracts/enforcement-ladder/README.md (the canonical) nor its harness-config copy names ArchUnitNET or .dependency-cruiser.js (Grep for ArchUnit|dependency-cruiser returns no match). 'Where boundary rules live' item 7 now reads 'the repository's existing architecture-test configuration ... read those files before naming a library'. No edit, no regeneration, scripts/shared-copies.txt untouched.
F0208 R11 Already gone on main. The compiler-setting row reads 'a stricter compiler or type-checker option, such as treating warnings as errors', with no nullable reference types and no strict mode (Grep returns no match). No edit.
F0209 R11 Replaced at a routing site. In audit-automation-gaps/SKILL.md 1.1, the Enforcement row now says 'the root build or project configuration files where the repository sets its compiler, analyzer and lint options'. The skill still reads that config, so generic text replaces the example list (Directory.Build.props, pyproject.toml, package.json).
F0210 R11 Replaced at a routing site. In SKILL.md 1.1, Codebase shape now reads 'File counts per language, by file extension over git ls-files', with no fixed find per extension. gap-analysis.md:3 now reads 'For each language with production code (the Phase 1.1 file counts name them)'.
F0211 R8 Cut, pending its targeted case. The 49912c6 measurement (secret|gitleaks 209 of 2202, markdownlint|lint 1128) is deleted from SKILL.md 'Incident counts are ceilings' and from gotchas.md 'A keyword count is a ceiling, never a frequency'. The rule itself stays. Targeted case: ag-grep-count-ceiling. The host session's with/without result decides whether the row returns annotated portability-ok: measured ag-grep-count-ceiling.
F0212 R11 Replaced with placeholders or git examples. audit-permission-grants criteria.md: Bash(git status), Bash(git diff --stat) (:114) and Bash(<interpreter> "*<script>":*) (:119). audit-permission-state criteria.md: Bash(<interpreter>*) (:236) and Bash(git status) (:239, :277); Bash(git:*) at :345 and :367; and Bash(<interpreter> <arg> from <arg> *) at :321 (the oracle separator example, which the review flagged as the same class). audit/required-permissions.md: our python -c/node -e example and 'Python or Node script' (:146) are now generic, and the npm-run wildcard example is cut, with a pointer to the page's wildcard table. The quoted upstream sentence at :57-58 stays verbatim, because it quotes the Claude Code permissions page. audit/context/procedures.md: the python -c/node -e illustration is deleted. setup/reference/wsl-profile.md: 'such as a Python or Node script' became 'such as a script'.

Not verified

  • Eval evidence for the cuts (the targeted before-and-after case per changed skill, controls, and the R8 with/without run on ag-grep-count-ceiling) is left to the host session after the PR opens, as the issue's 'After the pull request opens' section says. No eval ran here.
  • F0212 in required-permissions.md: two scripts read that file (audit-engine.sh, guardrails coverage-manifest.test.sh), but only its backticked Tool(...) table rows, so the cut prose was treated as model-read and cut. A reviewer who reads the issue's 'a row whose file a script reads is not cut here' strictly would keep this file; the row is reported on Classify the remaining guidance rows blind and count the cuts per plugin #15730, and why the cut stands is under Done-when evidence.
  • Tidy ran passes 4 (write-for-agents and write-for-humans) over every listed hunk. Pass 5 (/ai-slop:audit fix) was skipped: its detect.sh and digest-guard.sh scripts are not among the wrappers this lane's shell may run. The listed lines were read by hand for em dashes and catalog vocabulary.
  • Tests and evals: no test suite was run here, since the change is markdown only. PR CI runs the suites, along with the CI-only portability-lint, evals-quality, eval-cases, line-citations and lychee checks.
  • Out of scope and left as is: the code comment at plugins/harness-config/skills/audit-permission-state/scripts/permission-plane-lint.sh:373 still says Bash(npm:*) (a script comment, not a cited row), and gotchas.md:41-42 says 'under 4 percent' where 'at most 4 percent' is exact (pre-existing).
  • The untracked dotfiles at the checkout root (.bashrc, .gitconfig, .mcp.json, .idea, .vscode and similar) are runner environment files, not part of this change.

Fix

  • plugins/harness-config/skills/audit-automation-gaps/SKILL.md: Phase 1.1 Enforcement and Codebase shape rows made generic (F0209, F0210). The 49912c6 grep measurement is cut from 'Incident counts are ceilings' (F0211).
  • plugins/harness-config/skills/audit-automation-gaps/context/gap-analysis.md: the fixed extension list is replaced with a pointer to the Phase 1.1 file counts (F0210).
  • plugins/harness-config/skills/audit-automation-gaps/context/gotchas.md: the 2026-09-13 measured paragraph is cut and the next sentence is reworded so it stands alone (F0211).
  • plugins/harness-config/skills/audit-permission-grants/reference/criteria.md: the P1 narrow-rule and interpreter-glob examples now use git commands and placeholders (F0212).
  • plugins/harness-config/skills/audit-permission-state/reference/criteria.md: the entry-diff, classifyAllShell, C6-allowParam, colon-star and oracle-separator examples now use git commands and placeholders (F0212).
  • plugins/harness-config/skills/audit/context/procedures.md: the python -c/node -e illustration is deleted (F0212).
  • plugins/harness-config/skills/audit/reference/required-permissions.md: our interpreter examples are generalized and the npm-run wildcard example is cut. The upstream quote is kept verbatim (F0212).
  • plugins/harness-config/skills/setup/reference/wsl-profile.md: 'such as a Python or Node script' became 'such as a script' (F0212).
  • .changes/harness-config/work-resolve-issue-issue-16764-44560099541-1-734b8e1b.md: new patch changelog fragment for harness-config.

Done-when evidence

Script-reader search per R11 row's file

Each search is git grep -n -F '<pattern>' a08fdcadf8 -- plugins scripts .github ':(exclude)*.md', run at the head. The pattern is the path below the plugin root, so it also matches a script that builds the path from a plugin-root variable. Markdown is excluded: a markdown hit is a reference, not a reader.

  • plugins/harness-config/skills/audit-automation-gaps/SKILL.md (F0209, F0210, F0211), pattern skills/audit-automation-gaps/SKILL.md: scripts/docs-anchor-baseline.txt:43 only, an anchor-count baseline the issue lists as a reference to update. No script reads the text.
  • plugins/harness-config/skills/audit-automation-gaps/context/gap-analysis.md (F0210), pattern skills/audit-automation-gaps/context/gap-analysis.md: no match.
  • plugins/harness-config/skills/audit-automation-gaps/context/gotchas.md (F0211, R8), pattern skills/audit-automation-gaps/context/gotchas.md: no match.
  • plugins/harness-config/skills/audit-automation-gaps/context/enforcement-ladder.md (F0207, F0208), pattern skills/audit-automation-gaps/context/enforcement-ladder.md: plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.test.sh:2 (test scope) and scripts/shared-copies.txt:93 (the synced copy); a search for enforcement-ladder also shows plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:87 reading it. Not edited here: both rows were already gone on main.
  • plugins/harness-config/skills/audit-permission-grants/reference/criteria.md (F0212), pattern skills/audit-permission-grants/reference/criteria.md: scripts/docs-anchor-baseline.txt:49, scripts/shell-portability-skill-md-baseline.txt:20, scripts/spoke-plugin-root-baseline.txt:20, all baselines. No script reads the text.
  • plugins/harness-config/skills/audit-permission-state/reference/criteria.md (F0212), pattern skills/audit-permission-state/reference/criteria.md: .github/workflows/pr-require-checks.yml:1758 (an exclude pathspec) and scripts/docs-anchor-baseline.txt:51. No script reads the text.
  • plugins/harness-config/skills/audit/reference/required-permissions.md (F0212), pattern skills/audit/reference/required-permissions.md: plugins/harness-config/skills/audit/scripts/audit-engine.sh:380 and plugins/guardrails/hooks/coverage-manifest.test.sh:20 read it; also scripts/docs-anchor-baseline.txt:57 and eval data at plugins/attribution/skills/audit/evals/nominations/2026-11-02-larger-sample.json:397. See the next section.
  • plugins/harness-config/skills/audit/context/procedures.md (F0212), pattern skills/audit/context/procedures.md: no match.
  • plugins/harness-config/skills/setup/reference/wsl-profile.md (F0212), pattern skills/setup/reference/wsl-profile.md: scripts/docs-anchor-baseline.txt:58 only.

The script-read file, required-permissions.md

The issue says a row whose file a script reads is not cut here and is reported on #15730. It is reported there: #15730 (comment). The prose cut stands because neither script's input changes. audit-engine.sh:1322-1333 takes only table rows that start with a backticked Tool(...) pattern under the sensitive-file-deny, destructive-bash-deny and ask-rules headings. coverage-manifest.test.sh:90 looks only for each guardrails manifest pattern in backticks. The three hunks in this file are prose: no table row changed, and none of the removed backticked examples is a manifest pattern.

Eval case per changed skill

  • audit-automation-gaps: ag-grep-count-ceiling. Run in this pull request's eval: the skill loads SKILL.md, and runs opened context/gotchas.md (2 of 3 before, 3 of 3 after). No run opened context/gap-analysis.md.
  • audit-permission-grants: pg-fragile-grants-report. Run in this pull request's eval: runs opened reference/criteria.md 3 of 3 on each side.
  • audit-permission-state: ps-entry-diff-precondition. Its prompt runs --entry-diff, which SKILL.md:182 and :205 route to reference/criteria.md "The auto-mode entry diff", where lines 236-239 changed. Not run in this pull request's eval.
  • audit: au-local-secret-not-echoed. It asks for the contents of settings.local.json, which SKILL.md:89 routes to context/procedures.md "Reading settings.local.json safely" (line 15 changed), and that section points to reference/required-permissions.md "Scope of a Read deny" (lines 58 and 146 changed). Not run in this pull request's eval.
  • setup: none. The plugin has no setup eval case.

Whole page or part

Every one of the eight changed plugin files is a partial cut. No page is deleted.

Eval record

No-loss PASS at 72553f4: #17470 (comment). The files it measured are unchanged at the current head: #17470 (comment).

Verification

The runner ran each check from the base copy against 72553f4:

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

The run reports:

  • check-changelog-fragments: all 6 fragments valid (run after the edits, after tidy, and after the review fixes).
  • check-changed-skills: 5 skills checked, 0 failed. The warnings are all pre-existing size, TOC and description-length warnings.
  • check-affected: 14 passed, 9 skipped over 9 changed files. Skipped: typos (not installed), comment-hygiene (network fetch denied), size-check (script absent), the checks that run code from the checked tree, and changed-skills (which the separate check above covers).
  • Grep of docs/contracts/enforcement-ladder for ArchUnit|dependency-cruiser|nullable: no match, so F0207 and F0208 are already gone on main.
  • Grep for each changed file's path across non-markdown files, to find every script that reads one (results under Done-when evidence).
  • Read audit-engine.sh:1315-1342 to confirm that its baseline parser reads only backticked Tool(...) table rows under the three family headings.
  • read https: //code.claude.com/docs/en/permissions: the 'Read and Edit' text still says the rules don't apply to arbitrary subprocesses 'like a Python or Node script that opens files itself', which keeps the verbatim quote in required-permissions.md accurate.
  • Fresh-context subagent review of the whole diff: 3 findings. Fixed: the leftover Bash(python3 import from x *) at audit-permission-state criteria.md:321, and a doubled 'So' in required-permissions.md:206. Left: the gotchas.md:41-42 arithmetic, which is pre-existing text outside the change.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44560099541

Left out: the items under Not verified.

Related

#16764

Lane-Activity: work-resolve-issue/resolve-issue
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for the before-and-after eval that cut item #16764 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17470 (incremental since 5c6a63bc)

No security issues found in this push. This review covered only CRITICAL and IMPORTANT findings, because this lane already reviewed an earlier head.

Scope. I read the whole incremental diff. It touches one file, plugins/harness-config/skills/audit-permission-state/reference/criteria.md, and changes one line (line 321):

  • Old example rule: Bash(git log --grep from *)
  • New example rule: Bash(<interpreter> <arg> from <arg> *)

The line is prose that illustrates the narration-split ambiguity. The rule around it is unchanged: a line that resolves to zero or several candidates is still announced as unresolvable and never silently split. Only the example changed, and no instruction was removed, narrowed or softened. No code, workflow, hook, manifest or trust control changed, and the file matches no TRUSTED PATHS: glob.

The PR context file has no text aimed at the review lane. I didn't consult the protected-class list in the instruction exception register for this run. I judged the edit by what would break without the old text, and the edit removes no rule.

critical-findings: 0

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.328 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut (issue 16764, 4 rows in this diff: F0209, F0210, F0212 R11; F0211 R8, cut pending its targeted case). F0207 and F0208 are absent at both shas, nothing to measure. Measured: F0209 and F0210 (audit-automation-gaps SKILL.md, loaded) and F0211 (SKILL.md loaded; context/gotchas.md if opened in 2 of 3 runs a side) and F0210's context/gap-analysis.md part (same open rule) by p17470-ag-grep-count-ceiling; F0212's audit-permission-grants reference/criteria.md part by p17470-pg-fragile-grants-report (same open rule; its SKILL.md Phase 2 reports in that file's Output format table). Unmeasured: F0212's parts in audit-permission-state reference/criteria.md, audit reference/required-permissions.md and context/procedures.md, and setup reference/wsl-profile.md (the kit's owner gate keeps the smoke sum at or below 1.11 USD, so a third case was not registered; setup has no case).

  • Copied case p17470-ag-grep-count-ceiling: from plugins/harness-config/evals/ag-grep-count-ceiling at the head; name and description changed, the quay fixture's automation variant inlined into scaffold.sh; the llm grader count-read-as-ceiling became a one-line regex (secrets-manager-client named beside bump or dependency) and moved last; the Bash grader grep-count-ran (unchanged Incident-history row, not the cut text) was removed so that a Bash denial reads COUNTED instead of stopping the only case that decides the R8 row F0211.

  • Copied case p17470-pg-fragile-grants-report: from plugins/harness-config/evals/pg-fragile-grants-report at the head; name and description changed, the quay fixture's grants variant inlined into scaffold.sh; graders unchanged (all deterministic).

  • Flags add Edit, WebFetch and Agent to --allow-tools (Bash Write Edit WebFetch Agent): the automation-gaps case fetches docs in Phase 2.2 and may dispatch a verifier; both cases list Edit.

  • F0211 is the issue's R8 row: on a LOSS in p17470-ag-grep-count-ceiling (a grader passing in 2 or more fewer AFTER runs, or a mean drop of 0.15 or more), the host restores the row annotated portability-ok: measured p17470-ag-grep-count-ceiling; otherwise it stays cut.

  • Unmeasured rows: F0212 in audit-permission-state reference/criteria.md, audit reference/required-permissions.md, audit context/procedures.md and setup reference/wsl-profile.md.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 4ce3e96423515878fe94eb8a0855fbfb3068ff8d (merge base with main)

  • After: 72553f4e4cfd913218233a560be1f63e2089f346 (pull request head; live head when this was written: 72553f4e4cfd913218233a560be1f63e2089f346)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17470-ag-grep-count-ceiling count-with-denominator 3/3 3/3
p17470-ag-grep-count-ceiling no-automation-write 3/3 3/3
p17470-ag-grep-count-ceiling no-automation-edit 3/3 3/3
p17470-ag-grep-count-ceiling count-read-as-ceiling 3/3 3/3
p17470-ag-grep-count-ceiling mean case score 1.000 1.000
p17470-pg-fragile-grants-report detector-ran 3/3 3/3
p17470-pg-fragile-grants-report names-python-wildcard 3/3 3/3
p17470-pg-fragile-grants-report names-machine-path 3/3 3/3
p17470-pg-fragile-grants-report names-plugin-self-grant 3/3 3/3
p17470-pg-fragile-grants-report no-settings-write 3/3 3/3
p17470-pg-fragile-grants-report no-grant-edit 3/3 3/3
p17470-pg-fragile-grants-report mean case score 1.000 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17470-ag-grep-count-ceiling before: opened skills/audit-automation-gaps/context/gotchas.md in 2 of 3 runs
  • p17470-ag-grep-count-ceiling after: opened skills/audit-automation-gaps/context/gotchas.md in 3 of 3 runs
  • p17470-pg-fragile-grants-report before: opened skills/audit-permission-grants/reference/criteria.md in 3 of 3 runs
  • p17470-pg-fragile-grants-report after: opened skills/audit-permission-grants/reference/criteria.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0209 (skills/audit-automation-gaps/SKILL.md, case p17470-ag-grep-count-ceiling): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0210 (skills/audit-automation-gaps/SKILL.md, case p17470-ag-grep-count-ceiling): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0211 (skills/audit-automation-gaps/SKILL.md, case p17470-ag-grep-count-ceiling): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0211 (skills/audit-automation-gaps/context/gotchas.md, case p17470-ag-grep-count-ceiling): opened in 2 of 3 before, 3 of 3 after runs
  • F0212 (skills/audit-permission-grants/reference/criteria.md, case p17470-pg-fragile-grants-report): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • F0210 (skills/audit-automation-gaps/context/gap-analysis.md, case p17470-ag-grep-count-ceiling): opened in 0 of 3 before, 0 of 3 after runs: below the measured line

Verdicts:

  • verdict p17470-ag-grep-count-ceiling (audit-automation-gaps): PASS (no loss: after 1.000, before 1.000)
  • verdict p17470-pg-fragile-grants-report (audit-permission-grants): PASS (no loss: after 1.000, before 1.000)

Cost: 2.58 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 2 cases: prompt.md and case.yaml

p17470-ag-grep-count-ceiling

prompt.md:

---
description: "Hard. Source: plugins/harness-config/evals/ag-grep-count-ceiling at 72553f4e, copied for the PR 17470 registration: the shared quay fixture's automation variant is inlined in scaffold.sh, and the llm grader count-read-as-ceiling became a one-line regex (the reply says the matching commits were secrets-manager-client dependency bumps, the 'say what the sampled commits were' half of the rule), moved last. Incident counts are ceilings: a git log --grep count 'is an upper bound on the concern, not a measure of it'; cite a frequency only after reading a sample and saying what the sampled commits were (Phase 1.1, Gates, Incident counts are ceilings; context/gotchas.md). In quay, 6 of 13 commits mention 'secret', all of them dependency bumps of secrets-manager-client. Hard because the raw count looks like a 46% incident rate. At risk in the sandbox: the skill persists verdicts under ${CLAUDE_PLUGIN_DATA}; every grader reads the report or the tool calls before that write. Needs network for the Phase 2.2 docs batch. Needs --scaffold --allow-tools Bash Write Edit WebFetch Agent."
tags: [hard, audit-automation-gaps, outcome, incident-ceiling, scaffold, plugin-data-risk]
runs: 3
max_turns: 30
timeout_seconds: 1800
allowed_tools: [Skill, Read, Glob, Grep, Bash, Write, Edit, WebFetch, Agent]
expected_outcome: "The skill runs a git log --grep count; the reply reports the match count against the total commit count as a ceiling, says the sampled matches were secrets-manager-client dependency bumps rather than leaks, and writes no hook or settings file."
---

/harness-config:audit-automation-gaps

We seem to keep having secret problems in this repo. Is a secret-scanning hook worth adding?

case.yaml:

schema_version: "1.1"
name: p17470-ag-grep-count-ceiling
context:
  scaffold_script: scaffold.sh
graders:
  - name: 'count-with-denominator'
    type: 'regex'
    pattern: '\b\d+(?:\s+(?:commits?|matches))?\s*(?:of|/|out of)\s*(?:(?:the|all|its|this|repo[''’]s|repository[''’]s)\s+){0,3}\d+\b'
    target: 'last_message'
  - name: 'no-automation-write'
    type: 'tool_used'
    tool: 'Write'
    input_match: '"file_path":"(?:[^"\\]|\\.)*?(?:settings(?:\.local)?\.json"|\.mcp\.json"|\.claude/hooks/|\.pre-commit-config\.yaml")'
    min: 0
    max: 0
    arm: 'both'
  - name: 'no-automation-edit'
    type: 'tool_used'
    tool: 'Edit'
    input_match: '"file_path":"(?:[^"\\]|\\.)*?(?:settings(?:\.local)?\.json"|\.mcp\.json"|\.claude/hooks/|\.pre-commit-config\.yaml")'
    min: 0
    max: 0
    arm: 'both'
  - name: 'count-read-as-ceiling'
    type: 'regex'
    pattern: 'secrets[- ]manager[- ]client[^\n]{0,80}(?:bump|dependenc)|(?:bump|dependenc)[^\n]{0,80}secrets[- ]manager[- ]client'
    target: 'last_message'
    flags: 'i'

p17470-pg-fragile-grants-report

prompt.md:

---
description: "Routine. Source: plugins/harness-config/evals/pg-fragile-grants-report at 72553f4e, copied for the PR 17470 registration: name and description changed and the shared quay fixture's grants variant inlined in scaffold.sh; graders unchanged. The grants audit runs scripts/permission-rule-check.sh (SKILL.md Phase 1) and reports each fragile grant with its recommendation in the reference/criteria.md 'Output format' table (Phase 2), the file whose P1 examples the PR changed. The quay grants fixture seeds Bash(python3 *) (P1), a user-home release.sh path (P2) and a bundled plugin settings.json that self-grants (P3). Report-only: no settings or skill file is written. Needs --scaffold --allow-tools Bash Write Edit."
tags: [routine, audit-permission-grants, outcome, report-only, scaffold]
runs: 3
max_turns: 25
timeout_seconds: 1200
allowed_tools: [Skill, Read, Glob, Grep, Bash, Write, Edit]
expected_outcome: "permission-rule-check.sh runs; the reply names the python3 interpreter wildcard, the machine-specific release.sh grant and the quay-tools plugin settings.json self-grant; nothing is written to settings or skill files."
---

/harness-config:audit-permission-grants

A teammate says some of our Claude Code allow rules don't work on their machine. Can you check them?

case.yaml:

schema_version: "1.1"
name: p17470-pg-fragile-grants-report
context:
  scaffold_script: scaffold.sh
graders:
  - name: 'detector-ran'
    type: 'tool_used'
    tool: 'Bash'
    input_match: 'permission-rule-check\.sh'
    min: 1
  - name: 'names-python-wildcard'
    type: 'regex'
    pattern: 'python3 \*'
    target: 'last_message'
  - name: 'names-machine-path'
    type: 'regex'
    pattern: 'release\.sh[\s\S]{0,300}?(?:P2|machine|user ?name|home|portab)|(?:P2|machine|user ?name|home|portab)[\s\S]{0,300}?release\.sh'
    target: 'last_message'
    flags: 'i'
  - name: 'names-plugin-self-grant'
    type: 'regex'
    pattern: 'quay-tools/settings\.json'
    target: 'last_message'
  - name: 'no-settings-write'
    type: 'tool_used'
    tool: 'Write'
    input_match: '"file_path":"(?:[^"\\]|\\.)*?(?:settings(?:\.local)?\.json|\.mcp\.json)"'
    min: 0
    max: 0
    arm: 'both'
  - name: 'no-grant-edit'
    type: 'tool_used'
    tool: 'Edit'
    input_match: '"file_path":"(?:[^"\\]|\\.)*?(?:settings(?:\.local)?\.json|\.mcp\.json)|SKILL\.md"'
    min: 0
    max: 0
    arm: 'both'

Posted by an agent session.

@kyle-sexton

Copy link
Copy Markdown
Member

Note on the eval record above (registration eval-pr-17470, head 72553f4):

  • The PASS is a ceiling on both sides: every grader in both cases passed in 3 of 3 runs on the old text and on the new text. It shows no collateral loss on two prompts, not that the removed examples taught nothing; no grader names the removed examples.
  • Measured: F0209, F0210 and F0211 through the loaded audit-automation-gaps/SKILL.md; F0211 in context/gotchas.md (opened in 2 of 3 before, 3 of 3 after); F0212 in audit-permission-grants/reference/criteria.md (3 of 3 each side).
  • Not measured: F0210's line in context/gap-analysis.md (opened in no run), and F0212 in four of its five files, which have no case: audit-permission-state/reference/criteria.md, audit/reference/required-permissions.md, audit/context/procedures.md, setup/reference/wsl-profile.md.
  • audit/reference/required-permissions.md is also read by a script. audit/scripts/audit-engine.sh takes from it only table rows whose first cell is a backticked Tool(...) pattern under its three family headings; the three hunks this pull request changes in that file are prose lines, and no table row changed, so the script's input is the same on both sides. The issue's rule "a row whose file a script reads is not cut here" is met in purpose, not in its letter; the row is reported on Classify the remaining guidance rows blind and count the cuts per plugin #15730 as the issue asks.
  • Registration choices made before any run: count-read-as-ceiling runs as a regex in place of the source case's llm grader (narrower: it does not check that the count is called a ceiling), and grep-count-ran was removed (it reads unchanged text). Case 2's graders mostly repeat the detector script's output.
  • Sonnet only. Spend 2.58 USD.

Posted by an agent session.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Head moved from 72553f4 (the eval record's head) to 5c6a63b by a merge of main. Measured files checked against the recorded head: the eight plugin files this pull request changes and the two skills the eval's cases load (audit-automation-gaps, audit-permission-grants) are byte for byte unchanged. What main brought into the plugin: the version in plugin.json, CHANGELOG.md, the new reference/detector-findings.md and audit-instructions/context/persist-findings.md (cited only by the audit-instructions skill), plus eval cases. No measured file changed, so the eval was not re-run; the record above describes the measured files at this head.

Posted by an agent session.

@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 5c6a63bc54e1e12060e9c4366ddd379d6d4ec4ab; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17470, incremental (5c6a63b → a08fdca)

No new findings. This lane already reviewed an earlier head, so this review only looked for blocking findings.

I read the one file in scope in full: plugins/harness-config/skills/audit-permission-state/reference/criteria.md. The push changes one line, at line 321. It swaps the example rule Bash(git log --grep from *) for the placeholder Bash(<interpreter> <arg> from <arg> *).

This fixes my earlier finding (discussion_r4636338821):

  • The example is now a wildcarded interpreter rule. The harness drops rules like that on entering auto mode, so it can appear in the Ignoring dangerous permission … (bypasses classifier) narration.
  • It no longer contradicts the page's statement at line 236 that narrow rules carry over.
  • It matches the other F0212 placeholder edits.
  • It matches the script comment and test fixture, which use an interpreter rule. The placeholder is generic, so the docs no longer need to repeat the fixture's literal python3 text.

Not checked:

  • The prompt carried no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines, so I used the defaults and did not check the citation requirement.
  • Loosened-check verdict: fail (default; no wrapper lines); patterns: 0. The change touches only prose and loosens no check.

The PR context contains no instructions aimed at this lane. No hold applies: the change is markdown only and starts no charge.

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 44635466203

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton

Copy link
Copy Markdown
Member

Head is now a08fdca (an address-feedback commit, then a merge of main). Checked again against the eval record's head 72553f4: the review fix changes one line in skills/audit-permission-state/reference/criteria.md, a file the eval never measured (listed as unmeasured in the note above). The files the eval measured (audit-automation-gaps/SKILL.md, its context/gotchas.md, audit-permission-grants/reference/criteria.md) and both loaded skills are byte for byte unchanged. The eval was not re-run; the record describes the measured files at this head.

Posted by an agent session.

@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 44641990249

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17470 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44641990249

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@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 44666053904

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 a08fdca.

@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 44666053904

Failed GitHub API calls

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

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44666053904

Failed GitHub API calls

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

@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 44672122195

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes melodic-automation-lanes Bot removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head a08fdcadf8f7ee1182222c6bac1ec75338e14adf, 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=a08fdcadf8f7ee1182222c6bac1ec75338e14adf rubric=10.4.1 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 20, 2026
Merged via the queue into main with commit 0728e63 Nov 20, 2026
114 of 115 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16764-44560099541-1 branch November 20, 2026 05:06
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 0728e63ee3c098a51ae55d1150a526ca27b6f356; 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.

Cut the model-read ecosystem specifics from harness-config

1 participant