Skip to content

refactor(multi-agent)!: drop the one-release reads of the old team config locations - #12886

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-9737-41678381670-1
Nov 3, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-9737-41678381670-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #9737

Summary

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

This PR does the multi-agent slice of #9737, the one that makes the yaml config|BLOCK=1 done-when grep pass. resolve-roles.sh (and so /multi-agent:route) now reads the team layer only from <convention home>/multi-agent.yaml. It no longer reads the config block in docs/conventions/multi-agent.md or .claude/multi-agent.yaml, which 0.13.0 kept for one release; later releases up to 1.0.0 have shipped since. /multi-agent:setup check now prints a WARN team: row for each old file it finds. setup apply --layer team still copies keys out of the old block, as the 2026-11-02 decision record requires. The review fanout guard that keeps a change from choosing its own reviewers' models now matches the real team file, multi-agent.yaml, instead of the two old paths. Following the 2026-11-03 progress comment, which says the slices go one run each because of the patch-size cap, the other slices stay open for later runs. The bump is major because the plugin is at 1.0.0 and this removes a config surface, the same reasoning as 1.0.0's own removal.

Remaining work

  • ai-slop: drop detect.sh's .claude/ai-slop.json team read and its tests and schema lines; make scripts/check-purged-em-dashes.sh read its allowlist from docs/conventions/ai-slop.yaml
  • attribution: drop lib.sh's .claude/attribution.json team read, its tests, schema line and setup evals
  • docs-naming: drop resolve-config.sh's .claude/docs-naming.json team read and the setup, audit-file-names, generate-file-name-gate and realign-file-names test lines
  • guardrails and lib/resolve-convention-pattern.sh: drop the legacy .claude/source-control.md H2 read while keeping the commit-convention.yml read, per the 2026-11-03 decision
  • source-control: drop the remaining .claude/source-control.md compatibility reads (convention-key.sh, parse-branch-issue.sh, babysit-prs scripts, config-resolution.md, schema, babysit-loop, commit and setup skills and evals) once #12285 has released
  • harness-config leftovers: audit-engine.sh and its test, audit-checklist.md, required-permissions.md
  • docs/contracts and docs/conventions prose that still describes the legacy files as current (commit-convention, config-cascade, pr-body-convention, pr-pipeline, source-control.md)
  • Delete this repository's six old files under .claude/ (source-control.md, ai-slop.json, attribution.json, bugs.md, docs-naming.json, audit-pass.md) once the reads above are gone
  • Re-run the CHANGELOG-release, test-file, sync-shared-copies and check-changelog-fragments --check-required criteria after the slices land

Not verified

  • plugins/multi-agent/scripts/resolve-roles.test.sh and plugins/multi-agent/skills/setup/scripts/setup.test.sh were not executed: this lane runs only named wrappers and has no test runner, so the suites are left to the PR's CI (the review subagent traced each assertion by reading the code)
  • No resolver test shows the config block in docs/conventions/multi-agent.md is unread: a fixture would put the literal fence string in resolve-roles.test.sh, which the done-when grep forbids outside setup; setup.test.sh covers the block's WARN row and the resolver code has no block path left
  • Tidy skipped: the change spans 3 areas (plugins/multi-agent, plugins/review, docs/contracts), over the 1-area tidy cutoff
  • Review ran locally in one fresh-context subagent because .lane/scratch/review-venue.txt is absent
  • scripts/check-changelog-fragments.sh --check-required origin/main, scripts/sync-shared-copies.sh --check and the config-cascade-semantics generator check were not run here (no origin/main in this checkout; CI runs them)

Fix

  • plugins/multi-agent/scripts/resolve-roles.sh: removed the docs-block and .claude/multi-agent.yaml team reads, their notes, and the parser's block mode; the team layer is the convention-home YAML only, and its absent row names that path
  • plugins/multi-agent/scripts/resolve-roles.test.sh: fixtures write the team layer to docs/conventions/multi-agent.yaml; removed the docs-block, two-block and fenced-example cases; added cases showing a retired .claude/multi-agent.yaml is not read with or without the YAML
  • plugins/multi-agent/skills/setup/scripts/setup.sh: check prints a WARN team row per retired file (the block, the .claude file, a symlinked .claude file), naming whether the first apply --layer team seeds from it or the keys must be copied by hand; header comments updated
  • plugins/multi-agent/skills/setup/scripts/setup.test.sh: cases for the WARN rows (seed, manual copy, none) and for the resolver reporting the team YAML absent beside a retired .claude file
  • plugins/multi-agent/skills/setup/SKILL.md: check step 4 relays WARN team rows; the Gotchas line no longer says the resolver reads the old file
  • plugins/multi-agent/reference/config.md: the old team locations are no longer read; setup check names them and apply copies one into the YAML; 'team block' became 'team layer'
  • docs/contracts/config-cascade/README.md: multi-agent rows in the implementers table and the generated semantics table name the YAML team file and drop the docs-block precedence
  • plugins/review/skills/fanout/context/run-everything-mode.md: the guard that omits args.roles fires on a change to a multi-agent.yaml file (the real team layer), not the two retired paths
  • .changes/multi-agent/work-resolve-issue-issue-9737-41678381670-1-76af0648.md: major fragment, Removed entry with the migration step
  • .changes/review/work-resolve-issue-issue-9737-41678381670-1-c9d0155a.md: patch fragment, Fixed entry for the fanout guard

Verification

The runner ran each check from the base copy against c0fc294:

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

The run reports:

  • Grep yaml config|BLOCK=1 over plugins/multi-agent excluding CHANGELOG.md and yaml-subset.awk: only plugins/multi-agent/skills/setup lines (setup.sh reading the old block to move it, and setup.test.sh fixtures), as the decision record's done-when allows;…
  • Read plugins/multi-agent/CHANGELOG.md: 0.13.0 added the YAML reader with the one-release reads; 0.13.1 through 1.0.0 released after it
  • Glob for docs/conventions/multi-agent* and .claude/multi-agent*: this repository has no retired multi-agent file to delete
  • .lane/checks/bin/check-changelog-fragments: all 40 fragments valid
  • .lane/checks/bin/check-changed-skills: multi-agent setup and review fanout PASS, 0 errors (warnings are pre-existing size/description notes plus setup body +2 lines)
  • .lane/checks/bin/check-affected: 12 passed, 6 skipped (the skips run code from the checked tree or need typos), over 10 changed files
  • Fresh-context review subagent over the whole diff: traced every changed test assertion and found no failing case or missed consumer. It found inaccurate 'moves its keys' wording (apply seeds from one file only and leaves it in place), mis-advice for a symlinked .claude file, a weak assertion, and a…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41678381670

Left out: the items under Not verified.

Related

#9737

Lane-Activity: work-resolve-issue/resolve-issue

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental): PR #12886, c0fc294b → bda9ff58

Scope. This was an incremental review. I read every hunk of the 2 files in scope: plugins/multi-agent/skills/setup/scripts/setup.sh and plugins/multi-agent/skills/setup/scripts/setup.test.sh. I also read the head copy of setup.sh (retired_rows, refuse_symlink, symlink_in, apply), the test harness's fixture/run helpers, and resolve-roles.sh. I read resolve-roles.sh to confirm that check still reaches retired_rows when .claude/ is a symlinked directory.

Prior finding: fixed. My earlier finding (discussion_r4458287967) was that check could recommend an apply that apply then refuses. This push fixes it:

  • One shared test. The new symlink_in helper walks up from a path just like refuse_symlink did. It returns a status instead of dying. refuse_symlink now calls it, so apply and check use the same test.
  • Symlinked docs/conventions/multi-agent.md. While the new YAML is absent, retired_rows now prints its own refusal row for it and clears seeds. This matches apply, which calls refuse_symlink on that file whether or not it has a block.
  • Regular .claude/multi-agent.yaml under a symlinked directory. While seeds is still set, the file now gets a refusal row plus the copy-by-hand advice. Before, it got the "first apply copies" promise.
  • Case-by-case check. I traced each case against apply lines 187-195: md symlinked, md with a block, md without a block plus .claude in a symlinked directory, and a dangling symlink, which -f skips on both sides. Each WARN row now matches what apply would do.

Tests. The new mdbeside and claudedir cases and the extra mdlink check pin both of the failure paths from the earlier finding. The expected strings match the printf formats. The fixture does not create .claude/ itself, so ln -s … repo/.claude makes the directory symlink the test intends. I ran nothing because this lane has no shell. The PR author says the suites run in CI; I have not confirmed that.

No new findings.

Closing issue. The PR says "Refs: #9737", not a closing keyword, so there are no acceptance criteria to check.

Manifests. This push changes no plugin.json or marketplace.json.

Spend. None beyond normal CI. This is not a hold.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12886, incremental since c0fc294 (head bda9ff5)

I found no security issues in this push. I read every hunk of both files in scope (.claude-lane/incremental.diff), and neither file matches a TRUSTED PATHS glob.

What I checked

  • plugins/multi-agent/skills/setup/scripts/setup.sh, refuse_symlink / symlink_in: the walk up the directory tree moved into a new helper, symlink_in. It prints the first symlink it finds among the path and the directories above it inside $ROOT, and returns status 1 when it finds none.
    • refuse_symlink now runs link="$(symlink_in "$1")" && die .... symlink_in runs in a subshell, but die runs in the main shell, so exit 2 (line 44) still ends apply.
    • The refusal is the same as before: the same paths are refused, and a path outside $ROOT is still not walked. The script runs with set -uo pipefail and no -e, so a status-1 return in the && list cannot exit early or be skipped by accident. The three callers (lines 188, 193, 202) are unchanged.
  • retired_rows (the check path): the parser now reads docs/conventions/multi-agent.md only when no component of its path inside the repository is a symlink. Before, it only checked that the file itself was not a symlink. So check no longer reads a file through a symlinked parent directory, which narrows what it reads.
    • The new WARN rows are fixed-format printf with %s placeholders. The path values are not evaluated.
    • .claude/multi-agent.yaml is still only tested for existence or symlink status, never opened.
  • setup.test.sh: three new fixture cases cover a symlinked docs file, a symlinked docs file beside a regular .claude file, and a symlinked .claude directory. They work under the test temp directory and touch no credential, workflow or trust surface.
  • Prior findings: the one earlier post from this lane (head c0fc294) reported no findings, so nothing carries over. The round cap was not reached.
  • PR context: it has no embedded text asking the review to pass the PR, skip a check, drop a finding or post elsewhere.

Cost and hold: the change neither causes a real charge nor spends extra prepaid credit, so there is no hold.

critical-findings: 0

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
Contributor Author

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

Merged via the queue into main with commit 42ac6c5 Nov 3, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-9737-41678381670-1 branch November 3, 2026 20:08
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.

1 participant