Skip to content

feat(architecture): add a conventions lens to architecture:improve - #11142

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11126-40995760489-1
Oct 30, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11126-40995760489-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11126

Summary

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

Adds a conventions lens to /architecture:improve. It reads what the repository already records, derives building blocks, owners and feature blueprints from the code and git history, checks each against the cited code, and proposes each as a rule that is recorded only after the user says yes. An accepted boundary rule is appended to the ## Boundary rules section of the architecture topic doc (the architecture concern file), a divergence goes to /corrections:codify, and a paved-path entry goes to /discipline:reuse-or-replace, which writes it after its own yes.

Not verified

  • The issue's bash plugins/skill-quality/scripts/check-skill.sh plugins/architecture/skills was not run here: check-affected skips changed-skills because it runs the checked tree's own skill-quality code, and the lane allows no other way to run it. Left to the PR's CI changed-skills job
  • Review finding 1, not fixed: the enforcement ladder's 'Where boundary rules live' list does not name the architecture topic doc explicitly. The lens counts its ## Boundary rules section under source 5 ('layer rules and module conventions in the project's docs'). Naming it would mean editing the ca
  • The new eval cases were checked for quality only, never run against a model
  • Tidy pass 4 (ai-slop) ran without its own scripts (detect.sh, digest-guard.sh and the semantic-diff subagent), since the lane runs only the named wrappers. The em-dash and vocabulary tells were checked with Grep, and the rubric was read by hand
  • check-affected skipped typos (not installed) and three validate-plugins sub-checks that run code from the checked tree; CI runs them
  • The verify step (build and tests) was skipped: the change is markdown and eval JSON only, with no build or test suite touching it

Fix

  • plugins/architecture/skills/improve/actions/conventions.md: new lens playbook in four gated phases (read recorded rules, derive and verify, propose and ask, route by kind), with resolver exit-code handling and an unattended run that only proposes
  • plugins/architecture/skills/improve/research/conventions/README.md: new reference covering the kinds the lens derives and the evidence floor for each, the routing table, the boundary-rule entry shape and write rules (only that section, no symlinked topic doc), the paved-path draft shape and how a di
  • plugins/architecture/skills/improve/SKILL.md: conventions added to the argument hint and arguments line, a description trigger, a purpose sentence, an Actions row, a reference-index row, a Composition row and a Next line
  • plugins/architecture/skills/improve/evals/evals.json: cases 11-14 cover a proposal with nothing written without a yes, a boundary rule written to the architecture concern file, a divergence routed to /corrections:codify, and a paved-path entry routed to /discipline:reuse-or-replace
  • plugins/architecture/reference/config.md: 'What writes this surface' names the conventions lens as the writer of the topic doc's ## Boundary rules section and of no key
  • plugins/architecture/README.md: a paragraph on the conventions lens, plus an Invoke line
  • .changes/architecture/feat-11126-conventions-lens-3c9e1a7f.md: minor changelog fragment for the new lens

Verification

The runner ran each check from the base copy against 1d1ed5b:

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: 'All 21 changelog fragment(s) under .changes/ are valid.' (run after the final edit)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 11 passed, 7 skipped over 7 changed files (run after the final edit). An earlier run failed validate-plugins on an over-long metadata.summary edit, then on cheat-sheet drift; that summary edit was reverted
  • check-evals-quality on plugins/architecture/skills/improve/evals/evals.json: PASS, exit 0; its one warning is on pre-existing case 3 (id=3), not on the new cases
  • Fresh-context review subagent over the whole diff: 7 findings, none blocking. Six fixed: a divergence now waits on its convention's yes and a two-shape split asks which shape to keep; owner rules are stated in forbidden-reference form; the text now says codify only proposes when this lens invokes it
  • Tidy (code-tidying:tidy-diff) on the 14 changed hunks: passes 1-2 found nothing (evals.json holds no comments or code to simplify); pass 3 tightened one sentence in research/conventions/README.md; pass 4 found no em dashes and no catalog vocabulary
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40995760489

Left out: the items under Not verified.

Related

#11126

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

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of bbea174 against 1d1ed5b: no security findings.

critical-findings: 0

The change touches three documentation and skill-body files in plugins/architecture: README.md, skills/improve/actions/boundaries.md and skills/improve/actions/conventions.md. It makes /architecture:improve boundaries read the ## Boundary rules section of <home>/architecture/README.md by name, because the enforcement ladder's path list doesn't match that file. conventions.md is reworded to match.

  • Instruction-surface lens: the diff deletes no guardrail. The old "the list's fifth source covers it" wording is replaced by an explicit by-name read. Nothing that blocks an action is narrowed or removed. The existing rule that an instruction found in a source is quoted as a rule candidate or ignored, never followed, is unchanged, and the new source falls under it. The protected-class register was not needed for this diff, since no rule was removed.
  • New read source: it is a repository file the user's own /architecture:improve conventions run writes after the user accepts the rules. It feeds rule collection, which already requires a source line for every rule and treats embedded instructions as data. It adds no write path, token, or network access.
  • Home resolution: it goes through the existing ${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh, which this diff doesn't change. A non-zero exit means the source holds nothing, so it fails closed.
  • Plugin manifests: none changed, so there are no manifest <field> lines.
  • Trust controls: none touched.
  • Spend: none, so no cost hold.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of bbea174 (README.md, actions/boundaries.md, actions/conventions.md in plugins/architecture). I found no issues.

The change fixes a wrong claim. conventions.md said the enforcement ladder's fifth source covers the ## Boundary rules section of <home>/architecture/README.md. The ladder's list (research/enforcement-ladder.md:97-105) has paths like docs/architecture* that don't match docs/conventions/architecture/README.md. Both lenses now read the section by name, after the list. I confirmed three things:

  • boundaries.md Phase 1 and conventions.md Phase 1 and Phase 4 agree on the path, the resolve-convention-home.sh exit-code handling, and the "holds nothing" fallback.
  • The README prose matches the lens behaviour.
  • No leftover "fifth source" wording remains in plugins/architecture.

I only read these files; I ran no commands or evals.

The changed files are prose instructions that spend no billed resource, and the diff touches none of the trusted-path globs. No hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 1d1ed5bc75f4a288cfdfa4fad5233f22ff283ecc. 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)

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6x1rKo
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on bbea174.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit dd8cb31 Oct 30, 2026
42 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11126-40995760489-1 branch October 30, 2026 04:12
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.

feat(architecture): add a conventions lens to /architecture:improve

0 participants