Skip to content

feat(harness-config): read audit-pass suppressions from the config-cascade layers - #18095

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-18007-44974071117-1
Nov 22, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #18007

Summary

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

The audit engine now reads the audit-pass suppression record's per-user layer from the file a new file-typed userConfig option, audit_pass_suppressions_file, names (passed as --user-suppressions), and the personal layer from <home>/audit-pass.local.md. The layers are now reported as team, userConfig and personal. Placement rule: the old user-global file holds the suppressions mapping, a nested map userConfig cannot hold, so per the issue it gets one file-typed option naming the user's file, with the structure kept as it is. During the dual-read window, ~/.claude/audit-pass.md and .claude/audit-pass.local.md are still read while no new-location file supplies their layer, and new wins when both exist. Each old file prints one WARNING on stderr, also listed in suppressions.old_locations, naming the old file, the new location and /harness-config:setup apply. Setup apply now moves an old file after a preview and a yes, checks the new file resolves the same entries, then deletes the old one. The old-path reads stay, to be removed in a later change.

Not verified

  • audit-engine.test.sh was not run here (this lane runs only its wrappers); its new and edited cases are left to the PR's CI
  • Tidy skipped: the change is 11 files over 2 areas (plugins/harness-config with .changes, and docs/contracts), over the 10-file and 1-area cutoffs
  • The setup check/apply migration is skill prose run by the model; its three new eval cases (su-check-names-old-file, su-apply-no-move-without-yes, su-apply-conflict-keeps-old) exercise it but are not run here, since evals stay stopped until open issues and PRs reach zero
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run's edits and are not part of the change; they look like sandbox artifacts

Fix

  • plugins/harness-config/skills/audit/scripts/audit-engine.sh: new --user-suppressions flag (empty or an unsubstituted ${user_config.*} placeholder means unset); load_migrating_layer reads the userConfig and personal layers from their new locations, falls back to the old paths with a warning, and…
  • plugins/harness-config/skills/audit/scripts/audit-engine.test.sh: case 5 moves the personal file to docs/conventions/audit-pass.local.md and asserts the new layer names, the unset option and no warning; new case 5a covers old-only (read, one warning naming old file, new location and setup), both…
  • plugins/harness-config/.claude-plugin/plugin.json: new file-typed userConfig option audit_pass_suppressions_file
  • plugins/harness-config/README.md: Configuration prose and the generated options table name the new option and the personal override path
  • plugins/harness-config/skills/audit/SKILL.md: Phase 1 passes the option's value as --user-suppressions (read from the rendered text, never a ${user_config.*} string in the shell) and relays the old-location warnings
  • plugins/harness-config/skills/audit/context/procedures.md: names the new layers, the old-location reads and suppressions.old_locations
  • plugins/harness-config/skills/audit-pass/reference/suppression.md: names the userConfig layer and <home>/audit-pass.local.md
  • plugins/harness-config/skills/setup/SKILL.md: check reports the userConfig and personal layers at their new locations and WARNs on each old file (an old tracked personal file still FAILs); apply moves an old file after a preview and a yes, verifies through the engine, then deletes it; stale…
  • docs/contracts/config-cascade/README.md: the harness-config (audit-pass) Implementers row names the new layers and the dual-read window
  • docs/contracts/finding-suppression/README.md: the first-adopter layer table names the new layers and the old-path reads
  • plugins/harness-config/retirements.yaml: new record harness-config-r001 (kind file, action migrate) for .claude/audit-pass.local.md, whose successor names the setup apply move, verify and clean steps
  • docs/contracts/retired-conventions/README.md: the Implementers table lists harness-config with 1 record
  • plugins/harness-config/skills/setup/SKILL.md (review fix): check runs the retirement helper and reports harness-config-r001; apply follows the record's migrate steps
  • plugins/harness-config/evals/su-check-names-old-file, su-apply-no-move-without-yes, su-apply-conflict-keeps-old, plus fixtures/audit-pass-old-file.sh: eval cases for the check report, no move without a yes, and a conflicting id keeping the old file
  • .changes/harness-config/work-resolve-issue-issue-18007-44974071117-1-07567a58.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 486bf5e:

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

The run reports:

  • read https: //code.claude.com/docs/en/plugins/manifest-reference: userConfig types include file; ${user_config.KEY} is substituted in skill content; CLAUDE_PLUGIN_OPTION_<KEY> goes only to hook processes, and the variables are not in the Bash tool's environment, so the option reaches the…
  • check-changelog-fragments: all 8 fragments valid
  • check-changed-skills: audit-pass, audit and setup PASS with 0 errors (warnings only, existing size and description-length warnings)
  • check-affected: 16 passed, 8 skipped (first runs failed plugin-options-docs, which needed the README options row, and validate-plugins, whose description was over the 300-character option budget; both fixed)
  • cant-fail-scan --file audit-engine.test.sh --check: PASS, no gating findings
  • fresh-context review subagent over the whole diff: found no bash, jq or test bugs; fixed its findings (the double-quoted ${user_config.*} in the shell command, a stale deviation sentence in the config-cascade row, the old tracked personal file losing its FAIL, a verify step naming output the engine…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44974071117

Left out: the items under Not verified.

Related

#18007

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 486bf5e55b8cfe8640a52cfd569fa22de8779757. 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-refine/fix-docs

Run 44975850404, attempt 1

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

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-refine/apply-patch

Run 44975850404, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 652ab30
Run 44975850404

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18095, incremental (652ab30 → 13ab507)

Blocking only. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings.

I read every hunk in .claude-lane/incremental.diff: all 26 files on the to-read list. su-apply-no-move-without-yes/samples/no-old-file-delete.json is an identical copy of the conflict case's file, so I skipped it. None of the changed paths matches a trusted-path glob. The eval fixture writes a .claude/ file inside its scratch repository, but none of the changed paths is under .claude/.

Result: no new findings. The IMPORTANT manifest flag from the earlier review is restated below. Its earlier post had no line anchor, and plugin.json has not changed since that review. Nothing is CRITICAL and nothing is held.

What changed and what I checked

  • plugins/harness-config/retirements.yaml (new record harness-config-r001, action: migrate).
    • The record's path is fixed to .claude/audit-pass.local.md, with a content_match on suppressions:. It ships inside the plugin, so no pull-request author, consumer or other outside input chooses what --clean deletes.
    • The cleanup runs through the existing check-retirements.sh. Per the settled thread, that helper refuses --clean without --i-migrated.
  • skills/setup/SKILL.md.
    • check now runs the retirement helper. That step only reads and reports.
    • apply step 5 now deletes the repository file through --clean harness-config-r001 --i-migrated instead of a plain delete. It still comes after the preview, the yes, the conflict stop and the engine verify.
    • The machine-scope ~/.claude/audit-pass.md still gets a plain delete, as before.
    • The step that used to end with "FAIL included" still applies the personal override's gitignored-and-never-staged check above it, and that check FAILs when the file is staged or tracked. No rule is removed or softened, so the instruction-surface lens finds nothing.
  • New eval cases and the fixture (evals/su-*, fixtures/audit-pass-old-file.sh). The scaffold scripts write fixed content into the eval's scratch repository and take no outside input. The graders only add checks against writes, edits and deletes.
  • Docs and changelog (config-cascade/README.md, retired-conventions/README.md, .changes/...): wording only, with no security surface.
  • Settled threads. Both earlier lane threads (the eval coverage, and the retirement record for the dual-read window) are resolved, have an owner reply, and are marked lines changed since resolution: no. They stay settled.

Spend (not a hold): the three new eval cases use prepaid model usage when evals run (max_turns of 20–25 each). They are not running now: evals are paused until open issues and pull requests reach zero.

Manifest lines (1)

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

claude-lane: claude-review

Comment thread docs/contracts/config-cascade/README.md Resolved
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18095, incremental (652ab30 → 13ab507), blocking only

This lane already reviewed an earlier head, so this pass reports blocking findings only. I read every hunk of the incremental diff: all 26 files on the read list. su-apply-no-move-without-yes/samples/no-old-file-delete.json is an identical copy of the conflict case's file, so I read that change once. To check the new wiring I also read docs/contracts/retired-conventions/README.md, and from plugins/harness-config/lib/check-retirements.sh its clean mode and its action check. I did not run anything; this lane has no shell.

What changed, and both prior findings are addressed:

  • Retirement record. plugins/harness-config/retirements.yaml adds harness-config-r001: kind file, action migrate, with a content_match and a successor. It follows the contract's flat grammar and has every required field. plugin_version: 5.8.0 is right: the plugin is at 5.7.1 and the fragment bumps it minor.
  • Contract rows. The config-cascade row now cites the record, and puts ~/.claude/audit-pass.md outside the mechanism, as the Scope rule requires. The retired-conventions Implementers table lists harness-config | 1 | 2026-11-22.
  • Setup check. check runs the helper with --root, using the contract's fixed severity map.
  • Setup apply. Step 5 deletes the repository file through --clean harness-config-r001 --i-migrated. For a kind: file record, the helper's clean mode removes the file only when the record still matches, the root is a repository and --i-migrated was passed (check-retirements.sh L623-L662). So cleanup goes through the move, never a bare delete.
  • Eval cases. Three new cases cover the check naming the old file and the record, apply with no yes, and a conflicting id. Each case is scaffolded on a gitignored fixture: .claude/**/*.local.* and docs/conventions/**/*.local.* both cover the fixture paths. Every grader has pass and fail samples. The record id appears in a grader pattern (su-check-names-old-file reports-record), which satisfies the validator's "one eval per record" naming rule.

Both earlier threads (the untested migration criterion and the dual-read with no retirement record) are resolved by the owner's fixes at this head, and their lines have not changed since. I do not raise them again.

Closing issue #18007. The setup check/apply criterion is now tested by eval cases for the no-yes gate and the conflict stop. As the owner states, the post-write verify-mismatch path is not covered, because a headless run cannot give a mid-run yes. The other criteria are unchanged from the prior review.

Loosened checks. The prompt has no loosened_check_verdict: or loosened_check_patterns: line, so I used fail with no consumer entries. It has no loosened_check_decision_record: line either, so I did not check the citation requirement. No check in this push accepts more than before; the setup prose keeps the gitignored-and-never-staged check, including its FAIL, for an old .claude/audit-pass.local.md.

Loosened checks would be marked: fail (lane default; no loosened_check_verdict line); patterns: 0

Other criteria. This push changes no plugin manifest. The PR context, settled threads and prior-findings files hold no embedded instructions.

Spend. The three new eval cases use prepaid model usage when they run (20-25 turns each, 600-900 s timeouts). This is not a hold.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback

Run 44978958768, attempt 1

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

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

Run 44978958768, attempt 1

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

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 652ab305edae0adddcae788716ffaafea639b8b9, 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=HIGH demote=true head=652ab305edae0adddcae788716ffaafea639b8b9 rubric=10.6.0 rater=claude-opus-5-5 checker=claude-opus-5-5

…rd and eval the setup move

The config-cascade contract sanctions a dual-read window only when a
retirement record declares it, so .claude/audit-pass.local.md now has the
migrate record harness-config-r001. setup check runs the retirement helper
and reports the record; setup apply deletes that file through the record's
--clean --i-migrated cleanup after the move is verified. The machine-scope
~/.claude/audit-pass.md stays outside the mechanism, as the contract scopes
it. The config-cascade row cites the record and retired-conventions lists
harness-config as an implementer.

#18007 requires setup to name each old file and move it only after a
preview and a yes, keeping the old file when the new location would not
resolve the same entries. Three suite eval cases now make that checkable:
check names the old file, its new location, the apply command and the
record; apply with no one to answer previews the move and writes, moves
or deletes nothing; apply with an up-front yes stops on a conflicting
finding_id and keeps both files. The eval count rises by three because
#18007 asks for this behavior.

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

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 13ab507ef4c66cac8e7927a4a13b1587fc6472f5, 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=HIGH demote=true head=13ab507ef4c66cac8e7927a4a13b1587fc6472f5 rubric=10.6.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 22, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

R18 acceptance (PR lane), rating at 13ab507: the only HIGH is Reversibility (setup apply moves audit-pass suppressions to /audit-pass.local.md or the audit_pass_suppressions_file option's file, then removes the old file via harness-config-r001; the new option and layer names are contracts). Acceptable: this migration is what the closing issue #18007 asks for; setup moves an old file only after a preview and a yes and checks through the engine that the new file resolves the same entries before it deletes the old one; during the dual-read window the old paths are still read, so a forward fix, not a revert, is the remedy. It involves no token, secret, account, cost, permission or trust-boundary change and loosens no security control.

Merged via the queue into main with commit 96ca86c Nov 22, 2026
87 of 89 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-18007-44974071117-1 branch November 22, 2026 05:32
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

harness-config: read audit-pass config from the config-cascade layers, not ~/.claude

1 participant