Repository navigation
feat: wire hosts to shared tool catalog (#1099 S2) - #1234
Merged
Merged
Conversation
Astro-Han
force-pushed
the
feat/tool-catalog-host-wiring
branch
from
July 19, 2026 11:24
2989b03 to
fda2a96
Compare
Hosts need a single gate that product names stay catalog-clean while ignoring external mcp__ tools before wiring S2 projections.
Replace hand-maintained ToolAvailability groups with catalog ∩ binding, and pass the same HostCapabilities into Skill load and skill listing.
Validate registered product names against the catalog and project skill host + agent groups from catalog ∩ CLI binding.
Keep harness experiment tools outside the product catalog check, and build load_tools groups only from supported catalog surfaces that are bound.
Source contracts expected hand-listed buildSubagentToolGroup / computer_use group literals and a flat builtinTools array; align them with S2 projections.
Reorder catalog deferred surfaces back to the desktop's prior hand-listed order (rive -> office -> browser -> computer_use -> agent) so the S2 catalog-derived `load_tools` prompt keeps the same group ordering as before the host wiring. The catalog remains the single source of surface order; no host reorders the derived groups.
Three product hosts now project deferred groups from the shared catalog (S2), and the desktop host contract test bans hand-listing the group. buildSubagentToolGroup was the last parallel copy of the agent group metadata, kept alive only by two runtime tests. Delete it; point the deferred-tools-backend fixture at buildDeferredToolGroupsFromCatalog and trim the now-unused group assertion from subagent-tools.test (keeping the tool-instance permission/name assertions). Update the catalog comments to reference AGENT_TOOL_GROUP_ID instead.
desktop and cli both inject the always-on Skill name as a string literal into their binding list because the Skill instance is built after the host capability gate. Centralize that literal as SKILL_TOOL_NAME in runtime, export it, and use it in buildSkillAgentTool and both hosts so the product name has one source.
… filter buildIsolatedHeadlessToolAvailability had an optional boundToolNames parameter with a hand-listed agent-name fallback (a third copy of the agent vocabulary) and filtered experiment names before deriving groups. The catalog derive already intersects surfaces with the binding, so experiment names (not catalog members) are excluded naturally — the explicit filter was redundant. Make the parameter required and drop both the fallback and the filter. Move the cleanliness assert to the end of buildIsolatedHeadlessTools and exclude experiment names via the shared set, so it no longer depends on statement ordering. Update the README sketch and its test to pass the bound tool names.
Astro-Han
force-pushed
the
feat/tool-catalog-host-wiring
branch
from
July 19, 2026 12:55
fda2a96 to
54b3473
Compare
This was referenced Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
assertProductBindingCatalogCleanso product tool names stay catalog-clean (MCPmcp__*ignored).toolAvailability.groupswithbuildDeferredToolGroupsFromCatalog; deriveHostCapabilitiesfrom the binding and pass it into Skill + skill listing.Permission and tool implementations are unchanged — only projections (groups / skill host gate / cleanliness) move onto catalog ∩ binding.
Verification
node --test packages/runtime/dist/__tests__/tool-catalog-derive.test.js(7/7)node --test packages/cli/dist/__tests__/runtime-bootstrap.test.js(17/17)node --test packages/headless/dist/__tests__/tools.test.js(47/47)tsc -p tsconfig.main.json+computer-use-model-tools/task-ledger-contracttestsbiome checkon touched filesRefs
Closes nothing alone — slice 2 of #1099 (after #1232). S3 is CLI
/tools.