Skip to content

Define the route vendors caller contract and brief-and-report delegation #18502

Description

@kyle-sexton

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_delegation off, 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's delegate script, Claude reviews the returned report, and that report replaces the subagent's.
  • Q4: before any pointer ships, route and delegate gain 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 task for 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.md step 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:route with the fallback "otherwise run it here as before".

Proposed work

  1. Add the "Caller contract" section to plugins/multi-agent/reference/vendors.md stating Q3, Q5 and the site sentence of Q6, with the fallback when multi-agent or external-agents is absent.
  2. Extend plugins/multi-agent/skills/route/scripts/delegate to 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; extend delegate.test.sh.
  3. Extend route's vendors mode so a caller gets back, for one work type, the decision and the exact delegate invocation, for coding and knowledge work as well as image.

Acceptance criteria

  • vendors.md has a Caller contract section matching Q3, Q5 and Q6.
  • delegate runs --use investigate read-only and --use task --mode write, still refuses every other external-agents flag and any run when vendors.auto_delegation is 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

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3

Activity

  1. changed the title [-]feat(multi-agent): caller contract for route vendors and brief-and-report delegation[/-] [+]Define the route vendors caller contract and brief-and-report delegation[/+] on Nov 23, 2026
  2. added theissue type on Nov 23, 2026
  3. kyle-sexton commented on Nov 23, 2026

    @kyle-sexton
    MemberAuthor

    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.

  4. added
    needs-triage
    on Nov 23, 2026
  5. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    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 vendors and adding a brief-and-report path (--use investigate and --use task) to delegate. 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.

  6. removed
    needs-triage
    on Nov 23, 2026
  7. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"36cd7192d345cee378d64db462dd99d935bf64d4e326e0e47e24383d99c1bbf0","body_sha256":"7abb2b04c0d2fb16689f6d9bbb2fd52bdcea8f9f57878f674ae42ddd26c9bb20"}

  8. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    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-ready started, 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 added agent-ready back 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 the kill-switch wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions