Skip to content

refactor(multi-agent): move the team config layer to docs conventions multi-agent.yaml - #9885

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-9733-40135895119-1
Oct 25, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-9733-40135895119-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #9733

Summary

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

The multi-agent team layer now resolves from <home>/multi-agent.yaml (the bound convention home, else docs/conventions), validated by a new plugins/multi-agent/schemas/multi-agent.schema.json. resolve-roles.sh reads the old docs block and .claude/multi-agent.yaml only when the YAML is absent, and /multi-agent:setup apply --layer team now writes the YAML. The changes are left uncommitted in the working tree, as the lane instructs.

Not verified

  • scripts/run-test-file.sh plugins/multi-agent/scripts/resolve-roles.test.sh and setup.test.sh were not run: this run's Bash allows only the named wrappers. The new test cases were checked by reading only. Left to the PR's CI. Since run locally; see Verification.
  • scripts/check-convention-yaml.sh --check was not run here (needs check-jsonschema and a base ref). It is CI-only in check-affected. This repository adds no docs/conventions/multi-agent.yaml, so it has no file of this kind to validate for the plugin. Left to the PR's CI. Since run locally; see Verification.
  • The 'git grep -n' sweep for the old location under plugins/multi-agent was done with the Grep tool; remaining hits are compatibility-read code in resolve-roles.sh, its tests, config.md's compatibility note, setup.sh's seeding comment and tests, and changelog text.

Fix

  • plugins/multi-agent/scripts/resolve-roles.sh: team layer is <home>/multi-agent.yaml, then the old docs block, then .claude/multi-agent.yaml; each ignored legacy file is named in notes
  • plugins/multi-agent/scripts/resolve-roles.test.sh: cases for the YAML winning, the old locations read when the YAML is absent, the layer path and source reported, and a bound convention home
  • plugins/multi-agent/skills/setup/scripts/setup.sh: team apply writes the YAML, seeded from the old team file while the YAML is absent; block-writing code removed
  • plugins/multi-agent/skills/setup/scripts/setup.test.sh: team fixtures updated for the YAML target and the seeding
  • plugins/multi-agent/skills/setup/SKILL.md, plugins/multi-agent/README.md, plugins/multi-agent/reference/config.md, plugins/multi-agent/skills/setup/evals/evals.json: name the YAML as the team layer; the old locations appear only as the one-release compatibility read
  • plugins/multi-agent/schemas/multi-agent.schema.json: new JSON Schema for the team file
  • plugins/multi-agent/lib/resolve-convention-home.sh, scripts/shared-copies.txt: generated copy of the shared helper, registered
  • .changes/multi-agent/team-layer-concern-yaml-5e8d2b47.md: minor fragment (multi-agent is in fragment mode)
  • Migrated settings (the issue's done-when). Each one moves to <home>/multi-agent.yaml (the bound convention home, else docs/conventions/), validated by plugins/multi-agent/schemas/multi-agent.schema.json:
    • roles: roles.<role>.model, roles.<role>.effort, and roles.<role>.workloads.<w>.model/effort
    • frontier
    • fanout.frontier_guard
    • fanout.model
    • workloads: workloads.<w>

Verification

Re-run locally on ba9c850:

  • plugins/multi-agent/scripts/resolve-roles.test.sh: 102 cases, 0 failed
  • plugins/multi-agent/skills/setup/scripts/setup.test.sh: 39 cases, 0 failed
  • scripts/check-convention-yaml.sh --check: "5 docs/conventions YAML file(s) parse and validate against their schemas"

The runner ran each check from the base copy against 56b0aa7:

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

The run reports:

  • /home/runner/work/_temp/lane-checks/bin/check-changelog-fragments: all 2 fragments valid
  • /home/runner/work/_temp/lane-checks/bin/check-affected: 10 passed, 6 skipped, no failures (after replacing an initial manual version bump with a fragment)
  • sync-shared-copies wrapper: generated plugins/multi-agent/lib/resolve-convention-home.sh, exit 0
  • Review in one fresh-context subagent (no review-venue.txt present): it found the schema allowed a $schema key the YAML-subset parser cannot read, and the fix was applied by removing it. It also noted the schema's frontier pattern rejects a trailing comma the resolver accepts, which was left as is
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40135895119

Left out: the items under Not verified.

Related

#9733

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-security-review: 1 inline finding(s) on 56b0aa7d51ccfdf73ca191fb4af0b9e2126f4882; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues found in the incremental change since 3ae22b4. I read the three changed files' diffs and the PR context. I did not read the full diff or the surrounding code in resolve-roles.sh.

  • plugins/multi-agent/scripts/resolve-roles.sh: valid_value for frontier now refuses a trailing comma. This tightens validation, so a malformed team-config value is rejected and the layer below is used. The new check is a pattern test on a quoted variable and builds no command or path from the input. It does not widen anything the resolver accepts.
  • plugins/multi-agent/scripts/resolve-roles.test.sh and plugins/multi-agent/skills/setup/scripts/setup.test.sh: these add test cases only. The fixtures write into per-test temp directories ($T/...) and have no security-relevant surface.
  • No plugin manifest, trusted-path file, or instruction-surface change is in this increment, so there are no manifest <field> lines to report.
  • The PR context file contains no embedded directives aimed at the reviewer.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of ba9c850 against 3ae22b4, covering resolve-roles.sh, resolve-roles.test.sh and setup.test.sh. I read the change and the code around it, and found no issues. I did not run any tests (no shell in this lane).

  • resolve-roles.sh (valid_value, frontier): the new [[ "$2" != *, ]] || return 1 guard is correct. read -ra drops one trailing empty field, so opus, would otherwise parse as (opus) and be accepted. The guard now matches the schema pattern ^(opus|sonnet|haiku|fable)(,(opus|sonnet|haiku|fable))*$. A leading or middle empty field (,opus, opus,,sonnet) was already rejected by the alias check, and an empty value by the parts count check. This closes the mismatch the PR body noted as "left as is".
  • resolve-roles.test.sh: the new frontiercomma case fits the code. The rejection note format <label>: <key> rejected: '<value>' yields the asserted substring. The bundled frontier is fable (reference/defaults.yaml:30), so --session-model opus gives "session_frontier":false when the rejected value falls back to the bundled list. The fixture follows the neighbouring cases, which write .claude/multi-agent.yaml, so the frontier: opus, case should reach the reject path.
  • setup.test.sh: the new bound-convention-home case uses the same AGENTS.md pointer block as the existing resolver test (resolve-roles.test.sh:129), in the format lib/resolve-convention-home.sh parses. It asserts that the YAML is written under the bound home, that nothing is written under docs/conventions, and that check reads it back as the team layer. That is the closing issue's bound-home criterion, and it is now covered by a test that could fail.

No hold, no manifest changes, and no trusted-path files in this increment.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

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

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 3ae22b4.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on ba9c850.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 24, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: ba9c850cc5665a0442cf02f7cf38196ab4b6a859 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=9885 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=9885 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 25, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 4262cad Oct 25, 2026
93 of 97 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9733-40135895119-1 branch October 25, 2026 08:41
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(multi-agent): move the multi-agent fenced config block to docs/conventions/multi-agent.yaml

1 participant