Skip to content

test(multi-agent): add routing eval retrieval cases - #10098

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-10009-40223401847-1
Oct 25, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-10009-40223401847-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #10009

Summary

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

Adds six retrieval cases (locate code, trace callers, where something happens) for the paired model-routing eval under plugins/multi-agent/evals/routing/retrieval/. Each case runs against a git-archive snapshot of plugins/multi-agent and plugins/evals at commit af668bc and is graded only by deterministic regex graders with must-pass and must-fail samples, so no judge or calibration is needed. A README gives each arm's configuration (model, effort level and the shared command). It also records that claude plugin eval documents no way to give a run an advisor or a per-arm system prompt, so the Haiku + Opus advisor arm is left to the run slice.

Remaining work

  • Wire the Haiku 5.5 + Opus 5.5 advisor arm. claude plugin eval has no advisor option, a run loads no user settings, no documented environment variable sets an advisor, and append_system_prompt is a per-case field, so the advisor and Anthropic's Haiku coding prompt cannot be applied per arm. The R

Not verified

  • Issue done-when 1: python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/multi-agent/evals/routing/retrieval was not run, because this lane runs no interpreter. Every pattern and sample was traced by hand, by me and by an independent reviewer, against the script's parser, key set
  • Issue done-when 3: ci-status green on the PR is left to the PR's CI.
  • No case or scaffold was executed: fixtures/snapshot.sh and the cases need a paid claude plugin eval --scaffold run, which belongs to the run slice (#10022).
  • Whether CLAUDE_CODE_EFFORT_LEVEL reaches an eval run is unconfirmed. The plugin-evals page says a run inherits 'most' CLAUDE_CODE_* configuration without naming the variables, so the README tells the run slice to confirm it before comparing arms.
  • typos was skipped by check-affected (not installed in this lane); CI runs it.
  • Reviewer's low-severity notes left as is: a hedged answer such as 'fallback: sonnet, not opus' or 'route.sh, which runs resolve-roles.sh' can pass a grader, and the two line-anchored graders reject an answer laid out as a table rather than the requested 'label: value' lines.

Fix

  • plugins/multi-agent/evals/routing/retrieval/README.md: the cases and their answer keys, the static-check command, the arm table (--model and CLAUDE_CODE_EFFORT_LEVEL for each of the 8 setups), the shared run command (--case 'rt-*' --scaffold --ablation none), the advisor arm's configuration and why
  • plugins/multi-agent/evals/routing/retrieval/fixtures/snapshot.sh: extracts plugins/multi-agent and plugins/evals at the pinned commit into the run's workspace with git archive, and fails with a message when the clone lacks the commit
  • plugins/multi-agent/evals/routing/retrieval/rt-haiku-note-site/{prompt.md,case.yaml,scaffold.sh,samples/*}: where the haiku routing-rubric note is added (resolve-roles.sh, role_json)
  • plugins/multi-agent/evals/routing/retrieval/rt-resolver-callers/{prompt.md,case.yaml,scaffold.sh,samples/*}: the scripts that run resolve-roles.sh (route.sh, setup.sh, list-pointers.sh), plus a not_contains grader for sibling and test scripts
  • plugins/multi-agent/evals/routing/retrieval/rt-call-matches-callers/{prompt.md,case.yaml,scaffold.sh,samples/*}: direct callers of call_matches (grade_tool_used, grade_tool_order), plus a not_contains grader for indirect callers and the nested first helper
  • plugins/multi-agent/evals/routing/retrieval/rt-python-only-syntax/{prompt.md,case.yaml,scaffold.sh,samples/*}: the Python-only regex token scanner (validate-cases.py, python_only_tokens)
  • plugins/multi-agent/evals/routing/retrieval/rt-fetch-host-gate/{prompt.md,case.yaml,scaffold.sh,samples/*}: the drift-checker WebFetch host gate (drift-checker-fetch-gate.mjs, decide, FETCH_HOSTS)
  • plugins/multi-agent/evals/routing/retrieval/rt-frontier-guard/{prompt.md,case.yaml,scaffold.sh,samples/*}: the fan-out model swap and its fallback (resolve-roles.sh, role_json, opus)
  • .changes/multi-agent/test-10009-routing-retrieval-cases-a3f91c07.md: patch changelog fragment (Added); written by hand because new-changelog-fragment refuses a detached HEAD

Verification

The runner ran each check from the base copy against 2a29e5e:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: All 16 changelog fragment(s) under .changes/ are valid (run before and after the review fixes)
  • .lane/checks/bin/check-affected: 10 passed, 6 skipped over 38 changed files (skips: three validate-plugins steps that run code from the checked tree, ruff with no changed .py, typos not installed, changed-skills with no changed skill file); run before and after the review fixes
  • Answer keys checked against the files at HEAD af668bc (the snapshot commit) with Grep and Read: call_matches is called only at validate-cases.py:1217 and 1238; resolve-roles.sh is run by route.sh:28, setup.sh:180 and list-pointers.sh:19; the haiku note and the fanout swap with its ${fan:-opus} fallb
  • Fresh-context review subagent over the whole change: traced validate-cases.py for all six cases and graded every sample by hand under JavaScript and Python regex rules (no mismatch found); confirmed findings fixed: test scripts and the nested first helper had passed the not_contains graders, the R
  • read https: //code.claude.com/docs/en/plugin-evals: --model, --case, --scaffold and --ablation none options; prompt.md and case.yaml fields; runs inherit an allowlist of the environment that includes most ANTHROPIC_* and CLAUDE_CODE_* configuration; runs load no user settings; only llm and baseline
  • read https: //code.claude.com/docs/en/model-config: CLAUDE_CODE_EFFORT_LEVEL is an explicit effort choice above settings; Opus 5.5, Sonnet 5.5 and Haiku 5.5 accept low through max
  • read https: //code.claude.com/docs/en/env-vars: CLAUDE_CODE_EFFORT_LEVEL takes precedence over --effort, /effort and settings, and a maxEffortLevel cap still applies; the only advisor variable is CLAUDE_CODE_DISABLE_ADVISOR_TOOL
  • read https: //code.claude.com/docs/en/advisor: the advisor is set only by /advisor, the advisorModel setting or --advisor; Haiku 5.5 accepts an Opus 4.7-or-later advisor
  • read https: //platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool: the 'Alternative system prompt for Haiku on coding workloads' section, its Haiku 4.5 measurement and its advice to use the default blocks for lookup-heavy workloads; model IDs claude-haiku-5-5, claude-sonnet-5-5, claud
  • read https: //platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-haiku-5-5: Haiku 5.5 effort levels and suggested system-prompt text; it holds no advisor prompt
  • read https: //github.com/melodic-software/claude-code-plugins/issues /6901: the parent lists the arms and the slices #10009, #10012, #10017 and #10022 (the run slice, blocked by the other three); it does not say how arms are configured
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40223401847

Left out: the items under Not verified.

Related

#10009

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

critical-findings: 0

What I read: all 38 changed files in the diff, plus the PR context. The change adds a changelog fragment, a README, one shared fixtures/snapshot.sh, and six rt-* eval cases. Each case has prompt.md, case.yaml, a two-line scaffold.sh and sample JSON files.

Scripts:

  • fixtures/snapshot.sh pins a full 40-character commit SHA. Nothing in it comes from user input, an environment variable or an argument.
  • The script runs git archive with fixed pathspecs, and tar -xf - extracts into the current directory. The archive comes from the repository's own object store at that commit, so there is no network fetch or unpinned download.
  • All variable expansions are quoted.
  • Each scaffold.sh only execs snapshot.sh through BASH_SOURCE, with no interpolated input.

Eval cases:

  • Each prompt.md grants the agent allowed_tools: [Read, Glob, Grep]. That is read-only, with no Bash, Write or WebFetch.
  • Graders are deterministic regex graders only. No llm grader exists, so there is no model-in-the-loop trust boundary.
  • The grader regexes are anchored on literal names and have no catastrophic-backtracking shapes.

Instruction surface and manifests:

  • The diff deletes, narrows or softens no standing instruction.
  • No plugin.json or marketplace.json changed, so there are no manifest <field> lines.
  • No changed file matches the trusted-path globs, and no workflow, permission or action pin changed.

Embedded text: the PR context contains no imperatives aimed at this review.

Spend: the PR itself runs nothing. It documents later paid claude plugin eval runs, which would draw on prepaid API credit or subscription usage. The PR does not change a plan or billing setting, so there is no cost hold.

@github-actions

Copy link
Copy Markdown
Contributor

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

No blocking or advisory findings on this change, which adds six rt-* retrieval eval cases, a snapshot script, a README and a patch changelog fragment under plugins/multi-agent.

What I checked, with Read and Grep only. I ran no commands and no validator.

  • Answer keys against the files at the PR head (not the pinned af668bc snapshot, which I could not read). They match:
    • call_matches is called only from grade_tool_used (line 1217) and grade_tool_order's nested first (line 1238) in plugins/evals/skills/validate/scripts/validate-cases.py.
    • resolve-roles.sh is run by route.sh, setup.sh and list-pointers.sh. No .mjs, .py, .json or .yaml file under plugins/multi-agent or plugins/evals references it.
    • FETCH_HOSTS and decide are in hooks/drift-checker-fetch-gate.mjs.
    • The haiku note and the fan="${fan:-opus}" fallback are in resolve-roles.sh.
    • python_only_tokens is defined in validate-cases.py.
  • Graders against the samples. I traced each regex by hand against its pass and fail samples, including the line-anchored fallback/opus and function/decide graders and the not_contains graders. Each sample lands on the side its why states.
  • Layout. Sample files are named after their graders. scaffold.sh follows the existing $(dirname "${BASH_SOURCE[0]}") convention. discover_cases in validate-cases.py finds cases at any depth, so the nested evals/routing/retrieval/ path works for the static check. I found nothing on whether the paid claude plugin eval binary also descends that far. The first run slice should confirm it.
  • Changelog fragment. The fragment is a patch-level "Added" entry for test-only content. I found no manifest change in the diff, so there are no manifest <field> lines.
  • Trusted paths. None of the listed trusted-path globs match a changed file.

Unread: the PR context has no ## Closing issue section, only Refs: #10009, so I could not check #10009's acceptance criteria. The PR body says the advisor arm (Haiku 5.5 + Opus 5.5) is documented but not wired, because claude plugin eval has no advisor option. I treated that as disclosed scope, not a defect. The README's static-check command and the effort-level variable reaching a run are author-claimed and unverified.

Spend: the cases are not run here. The later paid claude plugin eval runs use prepaid or subscription usage only, so this is not a hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 2a29e5ed7f5135b328d35f5e19b8390b5e00bab3.

@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 06bca43 Oct 25, 2026
41 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10009-40223401847-1 branch October 25, 2026 20:48
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.

0 participants