Repository navigation
Done
Copy link
Description
Context
Issue #18304 (part 2 of #18297) stopped at the work-resolve-issue lane for want of a caller contract: what a skill step pointed at /multi-agent:route vendors does with route's answer (stop comment). The owner decided the contract on 2026-11-23 ("go with recommendations" on interview round 1):
- Q3: with
vendors.auto_delegationoff, a routed step behaves exactly as today with no extra output. With it on and route picking a non-Claude vendor, the step sends its brief through route'sdelegatescript, Claude reviews the returned report, and that report replaces the subagent's. - Q4: before any pointer ships, route and
delegategain a brief-and-report path beyond image work:external-agents run <product> --use investigate(read-only for both vendors,plugins/external-agents/defaults.json) for review and research steps,--use taskfor change steps. - Q5: a skill asks route once per run per work type and reuses the answer for every fan-out step of that run (each route call dispatches one board-reader per benchmark page,
plugins/multi-agent/skills/route/SKILL.mdstep 5). - Q6: the contract lives in a "Caller contract" section of
plugins/multi-agent/reference/vendors.md; each call site carries one seam-phrased sentence (docs/contracts/seam-phrasing/README.md) naming/multi-agent:routewith the fallback "otherwise run it here as before".
Proposed work
- Add the "Caller contract" section to
plugins/multi-agent/reference/vendors.mdstating Q3, Q5 and the site sentence of Q6, with the fallback when multi-agent or external-agents is absent. - Extend
plugins/multi-agent/skills/route/scripts/delegateto accept--use investigate(read-only) beside the fixed--use task --mode write, keeping its user-layer setting gate and its refusal of every other flag; extenddelegate.test.sh. - Extend route's
vendorsmode so a caller gets back, for one work type, the decision and the exactdelegateinvocation, for coding and knowledge work as well as image.
Acceptance criteria
-
vendors.mdhas a Caller contract section matching Q3, Q5 and Q6. -
delegateruns--use investigateread-only and--use task --mode write, still refuses every other external-agents flag and any run whenvendors.auto_delegationis not true from the user layer; tests cover both uses. - With auto-delegation off, route's output and every caller's behavior are unchanged (test).
- No model name is written into any skill line.
References
- Interview ledger:
.work/route-vendors-caller-contract/in the owner's checkout (decisions above are its round 1). - Builds on feat(multi-agent): vendor routing joins and registry recheck #18395 (
delegatescript, user-layer-onlyvendors.auto_delegation). - Parent: chore: audit skills for whole-task steps vendor routing could place #18297; blocks the pilot issue filed beside it and chore: audit skills for whole-task steps vendor routing could place - part 2 of 2 #18304.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
needs-triage
Priority
medium
Activity
[-]feat(multi-agent): caller contract for route vendors and brief-and-report delegation[/-][+]Define the route vendors caller contract and brief-and-report delegation[/+]kyle-sexton commentedon Nov 23, 2026
Wording correction for the site sentence (Q6): skill bodies mention an optional plugin's skill as
/plugin:skill(if enabled), followed by "; otherwise" and the fallback (.claude/rules/skill-bodies-state-current-rules.md, Optional-plugin mentions). The contract's site sentence should read: route this step per the caller contract of/multi-agent:route(if enabled); otherwise run it here as before.github-actions commentedon Nov 23, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: multi-agent's vendors.md reference, the route skill's delegate script and its tests, and route's vendors mode; readers are skills that point at route, and users who run delegate.
Reversible: yes; revert the docs, script and test changes. Auto-delegation stays off by default, so callers are unaffected until it is turned on.
Open questions: none
I understood this as defining the caller contract for
/multi-agent:route vendorsand adding a brief-and-report path (--use investigateand--use task) todelegate. The issue records the owner's design and gives exact acceptance criteria, so nothing is missing. The wording correction in the comment (the site sentence follows the optional-plugin mention rule) is part of the scope. This issue is named as blocking #18503 and #18304. I found no duplicate among the open issues and no merged pull request that already covers it.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 23, 2026
{"v":1,"actor_id":337595936,"title_sha256":"36cd7192d345cee378d64db462dd99d935bf64d4e326e0e47e24383d99c1bbf0","body_sha256":"7abb2b04c0d2fb16689f6d9bbb2fd52bdcea8f9f57878f674ae42ddd26c9bb20"}
melodic-automation-lanes commentedon Nov 23, 2026
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 45237543573, the work-resolve-issue run that
agent-readystarted, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-23T18:55:50Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or thekill-switchwait.fix(multi-agent): use the owner's call-site sentence; set --use per b…