Skip to content

refactor(bugs): move the .claude bugs.md settings to docs conventions bugs.yaml - #9991

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9730-40185854383-1
Oct 25, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9730-40185854383-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9730

Summary

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

The bugs plugin's team settings (lanes, filing_posture) now resolve from docs/conventions/bugs.yaml, validated by the new plugins/bugs/schemas/bugs.schema.json. Team prose and ## Gotchas move to docs/conventions/bugs.md. For one release, readers still fall back to .claude/bugs.md, each only while its new file is absent: the YAML block while bugs.yaml is absent, and the Gotchas while bugs.md is absent. /bugs:setup apply now writes the YAML and carries every value of an existing old file into it. The repository's old .claude/bugs.md stays until the cleanup slice. Migrated settings: lanes (the 5 lanes entrypoints, core-logic, data-access, integration and config-and-startup, with all 32 globs) and filing_posture (allowed). Both now live in docs/conventions/bugs.yaml under schema plugins/bugs/schemas/bugs.schema.json.

Not verified

  • scripts/run-test-file.sh plugins/bugs/scripts/concat-gotchas.test.sh was not executed: this lane runs no interpreter or script outside the named wrappers. The review subagent traced the cases by hand instead. Left to the PR's CI.
  • scripts/check-convention-yaml.sh --check against docs/conventions/bugs.yaml was not run: it is CI-only per check-affected, and it reads only tracked files. Schema conformance was checked by reading. Left to the PR's CI.
  • scripts/check-changelog-fragments.sh --check-required origin/main was not run as written. The lane's check-changelog-fragments wrapper was run instead and passed.
  • CI-only whole-repo scanners that cover touched files (config-cascade-semantics, line-citations, precompute-compose, portability-lint, purged-em-dashes) were not run here. Left to the PR's CI.
  • The changelog fragments were written by hand because new-changelog-fragment refuses a detached HEAD. Their names use the slug bugs-settings-yaml-9730, not the branch name. Validated by check-changelog-fragments.
  • The user-global ~/.claude/bugs.md and overlay .claude/bugs.local.md layers are unchanged. The issue scopes only the team layer. Declared as a deviation from ADR 0075 in the config-cascade bugs row.

Fix

  • plugins/bugs/schemas/bugs.schema.json: new JSON Schema for docs/conventions/bugs.yaml (lanes[] with kebab-case name and non-empty globs; filing_posture enum manual-only|allowed)
  • docs/conventions/bugs.yaml: new team layer carrying every lane, glob and filing_posture value of .claude/bugs.md's YAML block
  • docs/conventions/bugs.md: new prose home for the settings' rationale (moved from .claude/bugs.md's prose); team ## Gotchas live here
  • plugins/bugs/scripts/concat-gotchas.sh: team gotchas read from docs/conventions/bugs.md, falling back to .claude/bugs.md only while that file is absent
  • plugins/bugs/scripts/concat-gotchas.test.sh: three cases for the new team file, its shadowing of .claude/bugs.md, and shadowing when it has no Gotchas
  • plugins/bugs/reference/config.md: team layer is docs/conventions/bugs.yaml + bugs.md; one-release fallback rule; file format and example as plain YAML
  • plugins/bugs/skills/scan/SKILL.md: pre-compute lists bugs.yaml first, old file second; settings resolve from bugs.yaml with the old location named only as the one-release fallback; gotcha and reference-index lines no longer name the old path
  • plugins/bugs/skills/write/SKILL.md: consumer-gotchas line no longer names the old path
  • plugins/bugs/skills/setup/SKILL.md: check and apply target docs/conventions/bugs.yaml (schema check, tracked probes, old-file migration step, the warning to move Gotchas before deleting the old file)
  • plugins/bugs/skills/setup/evals/evals.json: case 3 targets bugs.yaml; new case 6 for moving an old .claude/bugs.md
  • plugins/bugs/skills/scan/evals/evals.json: case 3 prompt names docs/conventions/bugs.yaml
  • plugins/bugs/README.md: team layer described as docs/conventions/bugs.yaml (+ bugs.md for Gotchas)
  • plugins/harness-ops/skills/changelog/context/native-drift.md: filing_posture recorded fact names the new team file, re-dated 2026-10-25
  • docs/conventions/config-cascade/README.md: bugs Implementers and root-rule rows updated; bugs dropped from the later-adoption list
  • docs/conventions/config-cascade/CHANGELOG.md: Unreleased entry for the bugs move
  • docs/conventions/config-cascade/consumer-gotchas.md: bugs consumer path is docs/conventions/bugs.md
  • docs/upstream/claude-dev-how-we-made-claude-ai-faster.md: F19 row points at docs/conventions/bugs.md Gotchas
  • .changes/bugs/bugs-settings-yaml-9730-3e7a1c5d.md: minor fragment (Changed, Deprecated)
  • .changes/harness-ops/bugs-settings-yaml-9730-5b2f8d14.md: patch fragment

Verification

The runner ran each check from the base copy against 77c0b50:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • .lane/checks/bin/check-changelog-fragments: All 7 changelog fragment(s) under .changes/ are valid (run after the review fixes)
  • .lane/checks/bin/check-affected: 10 passed, 6 skipped over 19 changed files (run after the review fixes); the skips are tree-code runners and tools that are not installed
  • .lane/verify/bin/check-evals-quality on plugins/bugs/skills/setup/evals/evals.json and plugins/bugs/skills/scan/evals/evals.json: PASS, 0 warnings
  • .lane/verify/bin/cant-fail-scan --file plugins/bugs/scripts/concat-gotchas.test.sh: no can't-fail tests found
  • Fresh-context review subagent over the whole diff: no code bugs. It traced all new and existing concat-gotchas cases by hand as passing and confirmed bugs.yaml matches every value of the old block and fits the schema and the yaml-subset parser. It reported 4 doc findings, all fixed: setup's 'can be
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40185854383

Left out: the items under Not verified.

Related

#9730

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

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 77c0b504d87397f1019e15236cd795df9aa76bae: 0 finding(s), 0 as inline comments.

No security issues found in this pull request, so there are no comments and no hold.

I read the full diff and the PR context. The change moves the bugs plugin's team settings (lanes, filing_posture) from .claude/bugs.md to docs/conventions/bugs.yaml, with a JSON Schema and a one-release fallback to the old file.

  • Trusted paths: none of the 19 changed files match .github/standards/trusted-actors/**, .github/actions/check-trusted-trigger/**, **/CODEOWNERS or **/.gitmodules.
  • Plugin manifests: the diff touches no plugin.json or marketplace.json, so there is no userConfig default or other manifest field to flag.
  • Filing gate: filing_posture is the control that lets /bugs:scan --track file issues.
    • The repository's value in docs/conventions/bugs.yaml is allowed. The PR says this is the value already in .claude/bugs.md. I did not read the base-side file, so I took that from the PR text.
    • The schema default stays manual-only and the enum is closed, so a bad value is rejected.
    • The fallback only reads .claude/bugs.md while the new files are absent, so a new file never loosens the old gate.
  • concat-gotchas.sh:
    • The new team path is fixed ($root/docs/conventions/bugs.md), and so is the .claude/bugs.md fallback and the overlay path. No user-controlled input reaches a path.
    • The check that skips a team or overlay path equal to the user-global file is unchanged, so the same file is not read twice.
    • The gotchas text reaches the model from a tracked file under docs/conventions/. That is the same trust level as the tracked .claude/ file it replaces.
  • Removed or softened instructions: one wording change in plugins/bugs/skills/setup/SKILL.md narrows a rule. "preserve prose and keys you do not recognize" becomes "preserve comments". That affects fidelity of a file apply rewrites, not a safety control. The control it sits next to stays: apply never touches settings, userConfig, the user-global layer or the overlay.
  • PR description: I found no embedded instructions to the review lane in it.
  • Actions workflows: none changed.

I did not read docs/conventions/instruction-exception-register/README.md, so I judged the removed text by its consequences instead.

Cost: no billed resources or plans are involved.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 77c0b504d87397f1019e15236cd795df9aa76bae: 0 finding(s), 0 as inline comments.

No findings. I read the whole 19-file diff and the PR context. This is a code-review pass, with security findings left to the security lane. The PR touches no trusted-path file (.github/standards/trusted-actors/**, .github/actions/check-trusted-trigger/**, CODEOWNERS, .gitmodules).

What I checked

  • plugins/bugs/scripts/concat-gotchas.sh:
    • The team layer reads docs/conventions/bugs.md and falls back to .claude/bugs.md only while the new file is absent (! -e).
    • The overlay path and the -ef check against the user-global file still work, because the fallback runs before it.
    • The three new test cases cover the new file, its shadowing of the old file, and shadowing when it has no Gotchas. That last case yields (none), which matches the script's output.
    • I traced these by hand. I did not run the script or the tests.
  • docs/conventions/bugs.yaml: it matches the old .claude/bugs.md YAML block I read. It has the same 5 lanes, the same globs in the same order, and filing_posture: allowed. It fits bugs.schema.json by reading: kebab-case names, non-empty globs, a valid enum value, and no extra keys.
  • Closing issue refactor(bugs): move the .claude/bugs.md settings to docs/conventions/bugs.yaml #9730, "Done when" items:
    • docs/conventions/bugs.yaml carries every old value. The check-convention-yaml.sh --check run is unverified here.
    • The skill bodies name the YAML first and the old file only as the one-release fallback.
    • The PR body lists each migrated setting with its new home and schema.
    • The concat-gotchas.test.sh run and the check-changelog-fragments.sh --check-required origin/main run are author-claimed or not run. Both are left to CI.
  • Manifests: no plugin.json or marketplace.json changed. The bugs fragment bumps minor and the harness-ops fragment bumps patch, which fit the change. I found no userConfig change.
    • manifest userConfig default/removal: not hit
    • manifest options floor: not hit
    • manifest new field: not hit
    • manifest version bump: pass
    • manifest description/keywords: not hit
  • Paved paths and path-scoped rules: I did not resolve a standards index or read .claude/rules/. I found no second-way-to-do-it pattern in the diff.
  • Embedded text: I found no instructions embedded in the PR context file.

Spend: none. The change adds no charge, no extra review runs and no scheduled runs.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 77c0b504d87397f1019e15236cd795df9aa76bae.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 1048c27 Oct 25, 2026
40 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9730-40185854383-1 branch October 25, 2026 11:59
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.

refactor(bugs): move the .claude/bugs.md settings to docs/conventions/bugs.yaml

0 participants