Repository navigation
feat(multi-agent): vendor routing joins and registry recheck - #18395
Conversation
…mage work vendor-decide skips a harness missing a needed tool (--needs-tools), a model whose context window is too small (--context), and a vendor whose breaker is open, each with one note. The most-usage-left tiebreak reads external-agents usage readings (--usage) and falls back to vendor order when a reading is unavailable. Image work goes to an image-capable vendor (basis claude-cannot); with auto-delegation on the route skill runs it through external-agents with a prompt built from the task alone and reviews the image, and when every capable vendor has failed its trial it recommends nothing and lets the user choose. Adds the ro-vendor-image-recommend and ro-vendor-unavailable-line evals. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
/multi-agent:audit-defaults registry reads every benchmark row (shipped and team), fetches each page through a new registry-fetcher agent, and has a registry-judge return a closed JSON verdict per row: reachable, page date, coverage, and whether the board tests current models. It proposes a diff to reference/benchmarks.json and edits nothing; the apply step opens a PR only in the marketplace repository. A manual run works whatever the routing switches say. The fetcher holds Bash only, and a second docs-fetcher-gate hook entry allows it docs-raw.sh on exactly the hosts in benchmarks.json, kept in step by a test. The judge holds TodoWrite only: an empty tools list is refused at launch and an omitted one inherits every tool, so it gets one tool that reads, runs and fetches nothing. registry-audit.js computes day counts from YYYY-MM-DD with integer civil-date arithmetic and never calls Date(), so a workflow replay gives the same result. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…edrm, markdown-format, mcp-tools, miro, multi-agent, mutation-testing, performance (#18403) No related issue: ADR 0110 bulk comment sweep, batch B022 ## Summary Removes code comments at the `necessary` posture (ADR 0110, owner-approved bulk removal) from batch B022: kindle-dedrm, markdown-format, mcp-tools, miro, multi-agent, mutation-testing and performance. No behavior change. One `bump: none` changelog fragment per touched plugin. Counts: - 98 files in the batch: 20 touched, 0 held by open PRs among the touched files. - 91 comment runs deleted (99 lines), 11 of them trailing signature comments stripped from a function's opening line. - 0 reshape flags and 0 root-cause rows. ## Fix `/code-tidying:remove-comments necessary override` over the batch's directory groups, with read-only triage by an external agent and a scripted apply, then a full review of the applied diff against the keep rules. What was deleted: section and case labels no kept comment cites, function signature notes (`# rec <name> <sha> [rows...]`), and comments that restate the next line or the assertion label beside them. Review restorations, byte-identical from the base: - Restored whole, because their deletions removed reasons, design decisions, outside-party constraints or oracle derivations: `kindle-dedrm` `check-drift.sh`, `check-drift.test.sh`, `sync-prep.test.sh`; `markdown-format` `markdown-format.test.sh`; `mcp-tools` `inventory.test.sh` (its `Run N` label series was partly deleted); `miro` `launcher.ts`, `launcher.test.ts`; `multi-agent` `workflows/drift-audit.js`, `scripts/allowed-tools-pairing.test.sh`; `mutation-testing` `suppression-lint.test.sh`; and 15 `performance/scripts` files (`ab.test.sh`, `differential.test.sh`, `discriminate.test.sh`, `findings.test.sh`, `harness-lib.sh`, `harness-lib.test.sh`, `pathfix.test.sh`, `ratchet.test.sh`, `ratio.test.sh`, `resolve-python.test.sh`, `run-spawn-census.test.sh`, `spawn-census.sh`, `spawn-census.test.sh`, `summarize.test.sh`, and `test-helpers.sh`, a sourced library whose per-function docs are its public API). - Single runs restored: the glob-array rationale in `cleanup.sh`, the cached-installer note in `sync-finalize.sh`, the one-line defect statement in `firewall.Tests.ps1`, the escape-key fixture note in `compare-records.test.sh`, the fixture inventory in `dotnet-test-selection.test.sh`, the two hand-derived expectations in `estimate-run.test.sh`, and the fixed-volume `df` shim note in `untracked-cache-probe.test.sh`. Override: the `override` argument lifted the GLOBAL HARD path list. The batch's hook-wired files were `plugins/markdown-format/git-hooks/*`, `plugins/markdown-format/hooks/markdown-format.sh`, `plugins/markdown-format/git-hooks/lefthook-remote.yml` and `plugins/multi-agent/hooks/drift-checker-fetch-gate.mjs`; of the lifted paths, only `plugins/markdown-format/hooks/markdown-format-end-of-turn.test.sh` (a test beside a hook) is changed. ## Not changed - UNPROVABLE (tree-sitter-bash parse errors), so restored whole: `plugins/markdown-format/git-hooks/markdown-gates.sh`, `plugins/mutation-testing/scripts/suppression-lint.sh`, `plugins/performance/scripts/ab.sh`. - `plugins/multi-agent/scripts/allowed-tools-pairing.test.sh` is also touched by open PR #18395. - No batch file is a copy in `scripts/shared-copies.txt` or a destination in melodic-software/standards' `distribution/sync-manifest.yml`. ## Verification - `change-shape.sh` against the base returns COMMENT-ONLY (exit 0) for all 20 touched files; the diff holds no file outside the batch list. - A scan of every deletion hunk finds no deleted line adjacent to a kept comment line, so no comment run is left partly deleted. - `scripts/check-shell-portability.sh origin/main`: no unexcused GNU-only constructs. - The pre-commit `code-tidying-remote-comment-lint` and `guardrails-remote-pre-commit-content` hooks passed. - `scripts/selection-audit.sh trace --strict --jobs 3 --budget 720` over the 9 suites `selection-audit.sh changed --base origin/main` lists: all 9 traced and exited 0, 37 tracked files read, no gap. Nothing went under `## Not changed` for a gap. ## Related - ADR 0110 (bulk comment removal). - Sibling sweep PR: #18329. ## Removed narrative What the deleted comments said. This body is the squash commit message. - `kindle-dedrm` `cleanup.sh`: the `MODE` value list (`confirm | soft | full`), the `rm_or_show` signature, and step labels 1 to 7 (firewall rule, ICACLS deny, cached installer, key finder, downloads, uninstall, Calibre reminder). `lock-updates.sh`: the `icacls_updates` signature. `status.sh`: that paths resolve through Windows env vars (the header's shellcheck note says the same), and the Probes and Compose JSON labels. `sync-prep.sh`: the pre-flight label. `firewall.Tests.ps1`: what `Get-EnabledGuard` returns. - `markdown-format` `markdown-format-end-of-turn.test.sh`: the `expect`, `stop` and `report` signatures and the hooks.json row note. - `mcp-tools` `inventory.sh`: the `JQ_NORM`, `add_rows` and `add_file_source` contracts and the user/local scope label. `discover.sh`: signatures of `derive_server`, `lines_after`, `to_project_rel` and `add_record`, and the TypeScript, Python and .NET section labels. `discover.test.sh`: fixture and case labels, the depth-cap fixture note, and the unscoped and outside-path case notes. - `miro` `overlaps.test.ts`: the 4-choose-2 pair count. - `multi-agent` `drift-checker-fetch-gate.test.mjs` and `drift-audit.test.mjs`: suite descriptions, the `rawPage` and default-stub notes, and section labels. `list-pointers.sh`: the role and fan-out key prefixes. `list-scripts.test.sh`: two script labels. - `mutation-testing` `compare-records.test.sh`: the `row`, `rec`, `expect` and `expect_absent` signatures and the per-case notes that restate each assertion. `dotnet-test-selection.sh`: the `classes_of` output line. `dotnet-test-selection.test.sh`: the `expect` and `src` signatures and per-case notes. `estimate-run.test.sh`: the `expect` and `refuse` signatures. - `performance` `untracked-cache-probe.sh`: the `not_checked` and `volume_of` signatures. `untracked-cache-probe.test.sh`: the `probe` and `left_in` signatures and case labels 1 to 11. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX Co-authored-by: Claude Opus 5.5 <[email protected]>
…y rows Adds vals-index (coding, knowledge), gdpval-aa (knowledge) and aa-image-t2i (image) as support-only pointer rows, and allows their hosts (www.vals.ai, artificialanalysis.ai) in the registry-fetcher gate and the registry-audit workflow. The schema test now pins the six ids and checks every row's host is in the gate. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…heck registry-fetcher-gate.test.mjs already holds the gate hosts equal to the registry hosts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…he changelog Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bdec6c67ee
ℹ️ 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".
Lane run report
Run 45190513219, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane-Activity: pr-refine/fix-docs
Lane run report
Run 45190513219, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
claude-security-review reviewed claude-security-review, incremental (blocking only). This lane already reviewed earlier heads of this PR, so this pass reports only CRITICAL and IMPORTANT findings. Scope. One file changed since What changed
Security assessment. I found no security issues in this change.
Earlier findings. This pass re-raises nothing. The earlier manifest flags on the eval-only critical-findings: 0 |
…y a section map A page above the whole-page threshold comes back as kind=map with no entries, so the judge could only call it unreachable and a healthy permanent row was proposed for support-only. Such a page now skips the judge, is marked partial with a note, and proposes no change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
|
claude-review reviewed claude-review (incremental, a06a893 → 614e2fc): no blocking findings. This lane already reviewed earlier heads, so this review reports blocking findings only. Scope. One file changed in this push: What I checked
Earlier findings. All earlier inline findings are marked Verification. I did not run Verifier dropped 0 of 0 candidates. |
…com/melodic-software/claude-code-plugins into feat/multi-agent-vendor-routing-joins
…of skipping it A page too large to return whole comes back as a section map. The workflow now fetches the sections whose headings match the row's expect name, then the rest in page order, up to 60,000 bytes and 20 ids, and judges those. Only a page whose sections still cannot be read stays partial with no change proposed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
- Name the apply-step repository as the one that ships this plugin,
not an org repository token.
- Mark list-registry.mjs executable.
- Anchor benchmarks.json refs to ${CLAUDE_PLUGIN_ROOT}.
- List the registry-fetcher Bash gate among the onFailure block rows
in the hook-budget contract and its pin test.
- Regenerate the skill cheat sheet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…ository Restore the one-repository restriction, cited as a link so the org-repo token check passes without widening the step. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
- resolve-roles.sh ignores vendors.auto_delegation in the team layer: it is per-user, so a committed repository file cannot turn on external-agent runs. - registry-audit.js reads sections only when one picked section is under an expect heading; otherwise the map is kept and the row stays partial, since the read could miss the board. - The shows-how-to-run grader requires --use task and --mode write. - Add the guardrails changelog fragment for the onFailure pin test. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
- resolve-roles.sh accepts vendors.auto_delegation only from the user layer; the personal-override file also lives inside the repository, so a committed copy could turn on external-agent runs. - registry-audit.js marks a row partial when its fetch or judge stage returns nothing, so a budget stop proposes no demotion. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
…ommand - route grants scripts/delegate instead of any `external-agents run codex|antigravity` command. delegate takes a product and optional --model/--effort, reads the prompt from stdin into its own temp file, and always runs --use task --mode write on it; --add-dir, --unsandboxed, --resume, --last and a caller-chosen --prompt-file are refused. - registry-audit.js marks a row partial when the fetch output has no docs-raw header or fails its byte or hash check: those come from the local tool chain and say nothing about the page. A header reporting state=unread still counts as unreachable; the tamper guard (judge skipped, row unread) is unchanged. - The no-auto-delegation grader also catches a delegate run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
delegate now takes --user-file (the role_map_file the skill passes) and refuses unless resolve-roles.sh reports vendors.auto_delegation true from the user layer. A --user-file inside a git work tree is refused, so a repository cannot supply the setting by passing its own file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
Export GIT_CONFIG_GLOBAL and GIT_CONFIG_NOSYSTEM before its fixture git init, and declare the files it reads through resolve-roles.sh in its test-scope so a change to them selects it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
No related issue: Phases 7-8 of the owner-approved vendor-routing plan (PR-C2 of four; PR-A
#18330, PR-B
#18346 and PR-C1
#18345 are merged).
Summary
Phase 7, joins in
/multi-agent:route vendors:--needs-tools) or a model whose contextwindow is too small (
--context) is skipped with one note (AC5). A vendor whose external-agentsbreaker is open is skipped with one note naming
reset_at(AC4).most-usage-leftreadsexternal-agents usagereadings, queried only whenthe tiebreak names that step, and falls back to vendor order when a reading is unavailable
(AC17).
claude-cannot).auto_delegationon, the skill runsexternal-agents run <vendor>with a prompt builtfrom the task alone, and Claude reviews the image before recording the trial result.
(AC8, AC20).
Phase 8,
/multi-agent:audit-defaults registry(AC12):registry-fetcher, and has aregistry-judgereturn a closed JSON verdict per row:reachable, page date, coverage, and whether it tests current models.
reference/benchmarks.jsonand edits nothing. The apply step opens a PRonly in this repository. A manual run works whatever the switches say (R7).
Registry seed (AC13):
support-onlyrows join the three permanent ones:vals-index(coding, knowledge),gdpval-aa(knowledge) andaa-image-t2i(image). Rows are pointers only (name, link,workload), never scores. DesignArena is held out until its publisher's independence is checked.
Fix
Security:
registry-fetcher: holds Bash only. A seconddocs-fetcher-gatehook entry allows itdocs-raw.shon exactly the hosts inbenchmarks.json(D20). A test keeps the hook's host listequal to the registry's. The existing docs-fetcher gate is unchanged.
The seed adds
www.vals.aiandartificialanalysis.aito that list. The owner approved theplan whose Phase 8 seeds AC13 rows and the PR-only path for changing this list, and approved
both hosts on 2026-11-23 ("go w/ recommendations", on the question naming
www.vals.aiandartificialanalysis.ai).registry-judge: holds TodoWrite only. Per thesub-agents docs
(tools row), an empty tools list is refused at launch and an omitted one inherits every tool.
So the judge gets one tool that reads, runs and fetches nothing. The skill session reads only
the judge's closed JSON, never page text.
skills/route/scripts/delegate, a narrowing of the earlierexternal-agents run codex|antigravitygrants. It refuses unless
vendors.auto_delegationresolves true from a user layer file outsideany git work tree, and always runs
external-agents run <product> --use task --mode writeon aprompt it reads from stdin, refusing every other flag. The owner kept the grant with auto-delegation a per-user
opt-in (2026-11-23, Q6 option a: "go w/ recommendations"), so
resolve-roles.shreadsvendors.auto_delegationfrom the user layer only, never from a file inside a repository. agy's write ceiling stays the owner'sown setting.
Loosened checks
plugins/multi-agent/scripts/allowed-tools-pairing.test.sh:expected_workflow_grantforaudit-defaultsnow expectsWorkflow(multi-agent:registry-audit)besideWorkflow(multi-agent:drift-audit). Basis: the plan's Phase 8 ("Updateallowed-tools-pairing.test.sh's expected grant if the fetch path changes it"), whose registryfetch path is the separate
registry-auditworkflow. The owner approved that plan on 2026-11-22("Approved."; the registry-mode fetch path item: "go with recommendations").
plugins/multi-agent/tests/registry-audit.test.mjs, tampered-output test: the guard it is namedfor (judge skipped, row unread) is unchanged. Only the proposal outcome moved, from a demotion to
no change, because a byte or hash mismatch comes from the local tool chain and says nothing about
the page (review thread on
registry-audit.js:202).Verification
node --testoverskills/route/scripts,hooksandtests: 110/110 pass on the seeded head.allowed-tools-pairing.test.shandcheck-fixture-git-isolation.shpass.plan-test-lanes.shplans every new suite.claude plugin eval, WSL2, one model, 2 runs each):ro-vendor-image-recommendandro-vendor-unavailable-lineare VALID, and every grader passed in every run. With one caseeach, the noise report cannot establish a gain, so none is claimed.
Related
Claude.
🤖 Generated with Claude Code
https://claude.ai/code/session_015XWwmfo1FXD2G3F4XBaDn3
Plan close-out
Approved plan contract (vendor routing on a benchmark trust model)
Plan approved by the owner on 2026-11-22. Shipped in four PRs: #18330 (external-agents), #18346 (shared fetcher), #18345 (multi-agent core) and this PR (joins and registry recheck); the caller contract followed in #18534.
Goal
Any session can ask which vendor, model, effort and harness fits a task and get an answer grounded in current, independent evidence for that workload and in what the user has proven on their own work, with the sources named and nothing about benchmarks frozen into a repository; with the user's switches on, Claude hands the task over and reviews the result.
Acceptance criteria
/multi-agent:route vendors <task>names a vendor, model and effort per work type and cites every source it used; no score, ranking or model name is written into a plugin repository file./multi-agent:route vendorssays routing is off and recommends nothing (work Claude cannot do included), trials pause, and their data is kept.Amended 2026-11-22 (owner, design thread T6): a pair is proven or failed per work type, so the key is vendor, model, version, effort and work type wherever AC2, AC9, AC10 and AC19 say "pair".
Amended 2026-11-23 (owner, Q6):
vendors.auto_delegationis a per-user opt-in, read only from the user layer, so AC21's team and personal layers set routing and trials but not auto-delegation.Status: AC1-AC21 shipped in the four PRs above; the Finish line (in use, trial outcomes recorded) settles by the owner's use, and the pilot #18503 measures the caller contract at three skill steps.
ADR verdicts
Owner answers after approval (2026-11-23)
skills/route/scripts/delegate; auto-delegation is a per-user opt-in.www.vals.aiandartificialanalysis.ai.~/.config/multi-agent/role-map.yaml, named by the dotfilesrole_map_filepointer.plugins/multi-agent/reference/vendors.md.