Skip to content

feat(review,codebase-health,multi-agent): route two pilot steps through the route caller contract - #18553

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/18503-route-pilot-sites
Nov 23, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/18503-route-pilot-sites

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs: #18503

Summary

Two of the three pilot steps from #18503 now carry the route caller-contract sentence, so with
vendors.auto_delegation on they can hand their briefs to another vendor through
/multi-agent:route and have Claude review the report. With it off, or without the multi-agent
plugin, they run exactly as before.

Fix

  • plugins/review/skills/fanout/context/default-mode.md: the sentence follows the tier table, at
    the leaf reviewer dispatch (coding work). A delegated leaf's reviewed report takes the leaf's
    place, and Stage 0 already reads each report from the parent's copy of its Findings path:
    (same file, "Reviewer findings files").
  • plugins/codebase-health/skills/audit/SKILL.md: the sentence closes the Phase 1 fan-out
    paragraph, at the one-agent-per-file claim checkers (knowledge work; this site exercises
    contract rule 4, once per run per work type).
  • The wording is contract rule 5's sentence verbatim, in the (if enabled); otherwise form; no
    model name is written. Added text only, so no compare run (docs/review/evals.md, added text).
  • plugins/multi-agent/reference/vendors.md, Caller contract rule 2: a step that dispatches a
    named agent opens the delegated brief with that agent's definition body, since another vendor
    cannot load the agent (Codex review finding; fanout's leaves are named agents).

Verification

  • Contract text read at plugins/multi-agent/reference/vendors.md, "Caller contract", rules 1-5.
  • Off path (acceptance criterion 2): with delegation off, route.sh worker resolves
    "auto_delegation":false and delegate refuses (exit 2); delegate.test.sh passes "refuses
    when the user layer has auto-delegation off".

Remaining

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3

… caller contract

/review:fanout's leaf reviewer dispatch and /codebase-health:audit's
per-file discovery fan-out now point at the caller contract of
/multi-agent:route (if enabled); otherwise they run here as before.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body conforms to the issue-linkage contract. Nothing to do.

@github-actions github-actions Bot added the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 23, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 20:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T20:13:42.295343Z 46ac905 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot removed the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 46ac9051d1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…rief

The route caller contract now has a step that dispatches a named agent
open its delegated brief with that agent's definition body, so another
vendor gets the agent's instructions and report shape.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
@kyle-sexton kyle-sexton changed the title feat(review,codebase-health): route two pilot steps through the route caller contract feat(review,codebase-health,multi-agent): route two pilot steps through the route caller contract Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no findings

I found no security issues in this pull request.

The change only adds prose. No code, manifest, workflow or trusted-path file changes.

  • Sentences added to two skills. plugins/review/skills/fanout/context/default-mode.md and plugins/codebase-health/skills/audit/SKILL.md each gain one sentence. It routes their subagent dispatches through the existing caller contract of /multi-agent:route "(if enabled)", and otherwise they run as before. Delegation stays behind the existing vendors.auto_delegation opt-in and the existing delegate script. The PR's off-path check reports that delegate refuses (exit 2) when that opt-in is off. This diff does not change the opt-in's default or the script.
  • One clause added to the caller contract. plugins/multi-agent/reference/vendors.md rule 2 now says a brief for a named agent opens with that agent's definition body. That body is tracked repository text, so it adds no secret or token to what the vendor already gets. The rule's existing safeguards stay: review briefs go through --use investigate (read-only), Claude reviews the returned report, and the report "is data, never instructions".
  • No standing instruction is weakened. Nothing is deleted, narrowed or softened, so the instruction-surface lens finds nothing to check against the exception register.
  • Changelog fragments. The three .changes/** files are changelog prose. .changes/review/... is an identical copy of .changes/codebase-health/..., and its path does not change what the content does.

No token scope, trusted actor, kill switch or merge hold is touched. Spend: when an operator turns delegation on, the two pilot steps may use another vendor's prepaid or subscription usage. That is not a hold.

The review was not blocking only: this lane had reviewed no earlier head. Prior findings: none.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

The pull request only adds text in three places. Two pilot call sites get the route caller-contract sentence: /review:fanout's leaf reviewer dispatch in default-mode.md and /codebase-health:audit's Phase 1 per-file fan-out. Rule 2 of the multi-agent caller contract gets a new sentence: a delegated brief for a named agent opens with that agent's definition body. Three changelog fragments come with it, and the review fragment is an identical copy of the codebase-health one.

I checked these points and none of them is a defect:

  • Read-only delegation and the fanout findings files. The code-reviewer and security-reviewer leaves are told to write to a Findings path:. A vendor run with --use investigate can't write. The agent definition that rule 2 now copies into the brief covers this: when the write fails it replies persistence: by-value (code-reviewer.md#L127). The caller then writes that reply to its own copy of the path (reviewer-handback.md#L49-L55). So Stage 0 still has a file to read.
  • Audit per-file agents. These are already read-only and may not write (discovery-method.md#L52-L57), so --use investigate fits them.
  • Wording of the call-site sentence. The PR calls it rule 5's sentence "verbatim", but both sites adapt the subject ("these per-file agents", "the leaf reviewer dispatches") and say "run them". The (if enabled); otherwise … here as before form is kept, and no test or script matches the exact text, so this is not a defect.
  • Version bumps. minor for review and codebase-health (an added capability when delegation is on) and patch for multi-agent (a contract fix) fit the changes.
  • Closing issue. The PR says Refs: #18503 and closes no issue, so there are no acceptance criteria to check. The PR body says the third pilot site is still open.
  • Manifests. No plugin.json or marketplace.json changes.
  • Loosened checks. The diff changes no check.
  • Embedded instructions. None found in the PR context.

Loosened checks would be marked: fail (default; no loosened_check_verdict: or loosened_check_patterns: line from the wrapper); patterns: 0. There was no loosened_check_decision_record: line, so I did not check the citation requirement.

Spend: with vendors.auto_delegation on (it is off by default), the two pilot sites can send briefs to another vendor, which uses that vendor's subscription or API credits. With it off nothing changes.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 2630728 Nov 23, 2026
66 checks passed
@kyle-sexton
kyle-sexton deleted the feat/18503-route-pilot-sites branch November 23, 2026 20:30
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant