Skip to content

chore(ai-slop): drop the one-release .claude ai-slop.json team read - #13481

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13471-41997390244-1
Nov 5, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13471-41997390244-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13471

Summary

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

detect.sh now reads its team and personal layers only from <home>/ai-slop.yaml and <home>/ai-slop.local.yaml; the repo-relative .claude/ai-slop.json and .claude/ai-slop.local.json fallbacks are gone, and the user-global $HOME/.claude/ai-slop.json layer stays. The em-dash purge gate now copies docs/conventions/ai-slop.yaml unchanged as its throwaway team layer and writes its overrides as a personal layer (ai-slop.local.yaml: disabled_rules replaced by every slug but rule-em-dash, em_dash_allowed_paths: [], rule_allowed_paths.rule-em-dash: []). I chose that layering because cascade-read.sh replaces a list wholesale when a later layer has the key, clears it on \[\], and replaces a slug-map entry per slug (cascade-read.sh:70-101, 133-175), and yaml-subset.awk accepts an empty flow sequence. The gate keeps its jq prerequisite (jq now quotes the slug list), so check-script-contract.test.sh is unchanged. It also refuses, with exit 2, a tracked config the detector's YAML parser rejects, because the detector would otherwise skip that layer and drop its excluded_paths without a word. Fixtures moved to the YAML, and cases that exercise the JSON parser (truncated JSON, the CRLF jq shim, threshold newline injection, an empty-string phrase element) moved to the user-global JSON layer. .claude/ai-slop.json is left in place for the host slice to delete.

Not verified

  • detect.test.sh, cross-check.test.sh, check-purged-em-dashes.test.sh and check-script-contract.test.sh were not run: this lane's Bash runs only the named wrappers. Left to the PR's CI.
  • scripts/check-purged-em-dashes.sh was not run here (check-affected lists purged-em-dashes as CI only). Left to the PR's CI.
  • scripts/check-changelog-fragments.sh --check-required origin/main was not run with that argument; the lane's check-changelog-fragments wrapper validated the fragment. Left to the PR's CI.
  • Tidy was skipped: the change is 12 files and about 350 changed lines, over the 10-file and 300-line cutoffs, and it touches the shared scripts/ and docs/ paths.
  • shellcheck and the other lint and class audits for the changed shell scripts were not run here beyond what check-affected covers. Left to the PR's CI.

Fix

  • plugins/ai-slop/skills/audit/scripts/detect.sh: dropped the .claude/$_name.json fallback and updated the cascade comments; USER_CFG and the jq path for the user layer are kept
  • plugins/ai-slop/skills/audit/scripts/detect.test.sh: team-layer fixtures moved to docs/conventions/ai-slop.yaml (and .local.yaml); JSON-parser cases (phrase hygiene, truncated phrase layer, threshold injection, CRLF jq section, truncated/well-formed threshold) moved to a user-global…
  • plugins/ai-slop/skills/audit/scripts/cross-check.test.sh: config fixtures moved to the YAML team layer, the jq guard and the now-unused skip() helper dropped (YAML needs no jq)
  • scripts/check-purged-em-dashes.sh: defaults to docs/conventions/ai-slop.yaml; copies it unchanged to $TMP/root/docs/conventions/ai-slop.yaml and writes overrides to ai-slop.local.yaml; refuses a config the detector's parse-concern-value.sh --strict rejects; header comments updated
  • scripts/check-purged-em-dashes.test.sh: fixture configs are YAML under docs/conventions; added a case that a config the YAML parser refuses is exit 2
  • scripts/em-dash-purged-paths.txt: header comments name docs/conventions/ai-slop.yaml
  • plugins/ai-slop/schemas/ai-slop.schema.json: description names the user-global JSON layer instead of the fallback
  • plugins/ai-slop/README.md: the Configuration section says the old JSON files are not read
  • plugins/ai-slop/skills/setup/SKILL.md: dropped the fallback clause; kept the offer to carry an old JSON team file into the YAML
  • docs/contracts/config-cascade/README.md: ai-slop row names the YAML team and personal layers and the user-global JSON; ai-slop removed from the surfaces listed for later adoption
  • docs/conventions/ai-slop.yaml: header drops the legacy-file and 'made in both files' sentences
  • .changes/ai-slop/work-resolve-issue-issue-13471-41997390244-1-71e2d6a1.md: minor-bump fragment under Removed

Verification

The runner ran each check from the base copy against 39dac7d:

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

The run reports:

  • check-changelog-fragments: All 1 changelog fragment(s) under .changes/ are valid
  • check-changed-skills: audit and setup both PASS, 0 errors (warnings are pre-existing size/description notes)
  • check-affected: 13 passed, 6 skipped over 12 changed files
  • Grep for .claude/(ai-slop|$_name) over plugins/ai-slop, scripts, docs/conventions/ai-slop.yaml and docs/contracts outside CHANGELOG and *.test.sh: only $HOME/.claude/ai-slop.json and ${HOME:-/nonexistent}/.claude/ai-slop.json hits remain, which the done-when lookbehinds exclude
  • Grep for 'beside them is absent' in plugins/ai-slop outside CHANGELOG: no match
  • detect.sh:220 still reads USER_CFG="${HOME:-/nonexistent}/.claude/ai-slop.json"
  • No file under .claude, plugins/ai-slop/skills/setup/evals or plugins/ai-slop/evals changed (git status)
  • Fresh-context review subagent over the whole diff: no correctness bugs; confirmed the override layer clears each switch under cascade-read.sh, the +2 case count, the YAML fixtures' parse, and that the tracked YAML matches .claude/ai-slop.json key for key, so the gate's verdict is unchanged
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41997390244

Left out: the items under Not verified.

Related

#13471

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

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13481, incremental (39dac7d → de57b50)

I found no security issues in this push. This was a blocking-only review, because this lane already reviewed an earlier head. Only CRITICAL and IMPORTANT findings would have been reported.

What I read

  • The scope is one file, docs/contracts/config-cascade/README.md, and I read its single hunk in .claude-lane/incremental.diff (1 of 1 file).
  • The hunk changes one word in the ai-slop row of the cascade table. It now says a personal override that silences a rule "weakens nothing another plugin depends on". The old text said "another surface".

What I checked

  • Instruction-surface lens. This is a contract doc that describes how layers resolve. The edit removes no rule and narrows nothing. The row still says that ai-slop has no policy-floor class and the same three layers in the same order. No protected class applies.
  • Trusted paths. The file matches none of the listed trusted-path globs.
  • Plugin manifests, workflows, tokens, kill switch, merge holds: none were touched in this push.
  • Prior findings. The lane's earlier summary reported 0 findings, so there is nothing to restate.
  • Spend: none.

Embedded text

The pull request context contains no instructions aimed at this review.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #13481, incremental since 39dac7d

No findings. This lane already reviewed an earlier head (blocking only: yes), so this pass looked for blocking findings only.

Scope

I read the whole incremental diff: one hunk in one file, docs/contracts/config-cascade/README.md. No other file changed since 39dac7d86cd07240109e3362d980ae6223fc9115.

What changed

The ai-slop row of the config-cascade table changes one word. "weakens nothing another surface depends on" now reads "weakens nothing another plugin depends on". The head commit says it was made to fix a failing CI check. The row's meaning is the same:

  • It still names the YAML team and personal layers and the user-global ~/.claude/ai-slop.json.
  • It still says the old .claude/ JSON files are not read.
  • It still explains why ai-slop has no policy-floor class.

The change still meets closing issue #13471's item for docs/contracts/config-cascade/README.md:658.

Other

  • No plugin.json or marketplace.json changed, so there are no manifest lines.
  • The PR context and prior-findings files contain no embedded instructions.
  • Not verified: this lane has no shell. Whether the CI check the commit targets now passes depends on CI.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 39dac7d86cd07240109e3362d980ae6223fc9115. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head de57b50e1102128f733d67d18b9f44bfdfe2799d.

Merged via the queue into main with commit d503a5f Nov 5, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-13471-41997390244-1 branch November 5, 2026 09:53
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
scripts/check-purged-em-dashes.sh 6 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
scripts/check-purged-em-dashes.sh:151 SBR productive input-gap

The run's summary has the full report.

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.

chore(ai-slop): drop the one-release .claude/ai-slop.json team read

1 participant