Skip to content

feat(architecture): run improve-layout, the boundaries lens, enforce-boundaries and ADR audit across several - #17515

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17244-44602888419-1
Nov 20, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17244

Summary

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

/architecture:improve-layout, the boundaries lens of /architecture:improve, /architecture:enforce-boundaries and /architecture:record-decision audit now accept the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip) by citing reference/target-scope.md (and, for the two improve surfaces, improvement-steps.md "Scope and fan-out"). Each states only what differs for it: one read-only pass per repository with its root anchored, findings carrying their repository and merged on one scale, questions asked once from the merged rows, and per-repository state (layout candidate artifact, boundaries graph and findings file, enforcement plan and consent, ADR retirements) kept in that repository; writes run one repository at a time in that repository's worktree. Means chosen on evidence: improve-layout passes each root to co-change.mjs's existing --repo flag and says when the clone's HEAD is not origin/HEAD, since the script reads HEAD only. The boundaries lens passes the root to /architecture:map-dependencies' existing [path] argument. record-decision audit reads each repository at origin/HEAD (git grep ... origin/HEAD) and adds a 'Recorded in several repositories' group that keeps one record in the repository the instructions name for cross-repository decisions, or asks which one when none is named. No eval case exercises a multi-repository run; the existing single-repository cases that load the changed text (layout-unattended-stops-after-report, layout-marker-card-for-scattered-rule, eb-unattended-plan-only, eb-recorded-rule-proven, boundaries-recorded-rule-crossing-handed-on, rd-audit-lists-gone-record) read the no-target-form path, which is unchanged.

Not verified

  • docs/skill-cheat-sheet.md was edited by hand to match the new argument-hints, since this lane cannot run node scripts/generate-cheatsheet.mjs; the generator's own check in CI confirms it
  • Tidy skipped: the change spans 3 areas (plugins/architecture with .changes/architecture, docs/contracts, docs/skill-cheat-sheet.md), over the 1-area tidy cutoff
  • check-affected skipped comment-hygiene (network fetch denied), size-check (script missing in the lane), typos (not installed) and parts of validate-plugins; left to the PR's CI
  • No eval case exercises a multi-repository run of these skills, and no eval was run here; the PR body should say no eval reads the new multi-repository text, while the listed single-repository cases read the unchanged default path
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run (they look like sandbox mount points) and are not part of the change

Fix

  • plugins/architecture/skills/improve-layout/SKILL.md: argument-hint and Arguments gain [--repo <repo> ...]; new 'Several repositories' section (per-repository Phases 1-3, script run with --repo <root>, HEAD vs origin/HEAD note, merged banding, per-repository artifact); Phase 2 command…
  • plugins/architecture/skills/improve/actions/boundaries.md: cites 'Scope and fan-out'; per-repository rules, home and graph (map-dependencies given the root), questions asked once from merged rows, cross-repository rules reported as not checkable from manifests, one findings file per repository
  • plugins/architecture/skills/improve/SKILL.md: Arguments line says the target forms apply to any lens, not only deepening and conventions
  • plugins/architecture/skills/enforce-boundaries/SKILL.md: argument-hint [boundaries findings file ...] [--repo <repo> ...]; new 'Several repositories' section (read-only per-repository Phases 1-3, appends only proposed, consent per repository, writes one repository at a time in its…
  • plugins/architecture/skills/record-decision/SKILL.md: argument-hint [audit [--repo <repo> ...]]; Variables table row and note that target forms are accepted only after audit; new Audit 'Several repositories' subsection (origin/HEAD reads, merged report, 'Recorded in several repositories'…
  • docs/contracts/target-scope/adopters/architecture.md: rows for the boundaries lens, improve-layout, enforce-boundaries and record-decision audit
  • docs/skill-cheat-sheet.md: argument-hint cells of the three skills whose hints changed
  • .changes/architecture/work-resolve-issue-issue-17244-44602888419-1-10d9793a.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 6898fdc:

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/verify/bin/sync-shared-copies --check: all 987 registered copies match (plugins/architecture/reference/target-scope.md was already generated and registered in scripts/shared-copies.txt and, by glob,…
  • check-changelog-fragments: first run failed (fragment had no ### section); fixed with ### Added; rerun: all 12 fragments valid
  • check-changed-skills: 4 skills checked, 0 failed (warnings only: body length and description length, plus a pre-existing numbered-list completion-signal warning in enforce-boundaries' rung list)
  • check-affected: 14 passed, 9 skipped, 0 failed
  • Fresh-context review subagent over the whole diff: 11 findings (1 high, 6 medium, 4 low); all fixed: Phase 1 appends in enforce-boundaries only proposed in the fan-out, questions asked once from merged rows, cross-repository references named as package or unresolved project edges (confirmed in…
  • Confirmed by reading: co-change.mjs accepts --repo <dir> and resolves --home relative to it (co-change.mjs:7-17, 53); map-dependencies argument-hint is [path] ... [--out <dir>]
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44602888419

Left out: the items under Not verified.

Related

#17244

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44607290520

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 6898fdca04221c4edfac5de81e80a456fe259f64. 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

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17515 (incremental, head 63532fc)

No security issues in this push. This was a blocking-only review, because this lane already reviewed head 6898fdca. I read both changed files' hunks in full in .claude-lane/incremental.diff:

  • plugins/architecture/skills/enforce-boundaries/SKILL.md
  • plugins/architecture/skills/improve/actions/boundaries.md

What changed: Each file gains one sentence of skill prose for multi-repository runs. Phases 1 to 3 (enforce-boundaries) and Phases 1 and 2 (the boundaries lens) read files on disk under the repository root. The plan or report now says so for a repository when either of these holds:

  • its checked-out HEAD is not origin/HEAD after the fetch;
  • its working tree has uncommitted changes.

What I checked:

  • Instruction surface: No standing rule is deleted, narrowed or softened. The edit adds a disclosure, and the existing controls are unchanged: read-only subagents, appends only proposed, per-repository Consent, and writes one repository at a time in a worktree.
  • Commands and code paths: The change adds no command, script, hook or tool grant.
  • Trust controls: Neither file matches a trusted-path glob, and no trust control is touched.
  • Plugin manifests: No manifest changed, so there are no manifest lines.
  • Prior findings: The only prior entry is the earlier summary, which had no findings, so nothing carries over.
  • PR context: No embedded instructions aimed at the review lane.

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: 1 inline finding(s) on 6898fdca04221c4edfac5de81e80a456fe259f64; 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 63532fc84f6fac01b5ada3196e2c88ecd7904d89: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): 6898fdc → 63532fc

This was an incremental review. It covered the two files changed since the last reviewed head, plugins/architecture/skills/enforce-boundaries/SKILL.md and plugins/architecture/skills/improve/actions/boundaries.md, and I read every hunk of both. An earlier head was already reviewed, so this round reports blocking findings only.

What changed: the push answers this lane's earlier advisory finding, now a settled thread with an owner reply. Both "Several repositories" sections now state that Phases 1–3 (enforce-boundaries) or 1–2 (boundaries) read the files on disk under the root. They also say the plan or report flags any repository whose checked-out HEAD is not origin/HEAD after the fetch, or whose working tree has uncommitted changes. This is the same approach improve-layout already takes for its script.

Checks against the head files:

No new blocking findings. I did not post the earlier finding again because it is settled: the thread is resolved, the owner replied that it is fixed, and its lines have not changed since then.

  • Loosened-check verdict: fail, with no consumer patterns. This is the default because the prompt has no loosened_check_verdict: or loosened_check_patterns: lines. It has no loosened_check_decision_record: line either, so I did not check the citation requirement. This push loosens no check.
  • No embedded instructions aimed at this lane appear in the PR context, settled-threads or prior-findings files.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 6898fdca04221c4edfac5de81e80a456fe259f64, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=6898fdca04221c4edfac5de81e80a456fe259f64 rubric=10.4.1 rater=claude-opus-5-5 checker=claude-opus-5-5

…boundary runs

The boundaries lens and enforce-boundaries read each repository's files on
disk, not origin/HEAD. State that, and have the report or plan name any
repository whose checked-out HEAD is not origin/HEAD or whose tree is dirty,
as improve-layout already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 63532fc84f6fac01b5ada3196e2c88ecd7904d89, 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=63532fc84f6fac01b5ada3196e2c88ecd7904d89 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 9be2cc3 Nov 20, 2026
63 of 64 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17244-44602888419-1 branch November 20, 2026 00:48
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

feat(architecture): run improve-layout, the boundaries lens, enforce-boundaries and ADR audit across several repositories

1 participant