Skip to content

feat: wire hosts to shared tool catalog (#1099 S2) - #1234

Merged
Astro-Han merged 9 commits into
mainfrom
feat/tool-catalog-host-wiring
Jul 19, 2026
Merged

Astro-Han merged 9 commits into
mainfrom
feat/tool-catalog-host-wiring

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Runtime: assertProductBindingCatalogClean so product tool names stay catalog-clean (MCP mcp__* ignored).
  • Desktop: replace hand-maintained toolAvailability.groups with buildDeferredToolGroupsFromCatalog; derive HostCapabilities from the binding and pass it into Skill + skill listing.
  • CLI: same derive for host capabilities and deferred groups; assert registered product names ⊆ catalog.
  • Headless: product tools catalog-clean; deferred groups from catalog ∩ bound product tools; harness experiment tools stay outside the product vocabulary.

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)
  • desktop tsc -p tsconfig.main.json + computer-use-model-tools / task-ledger-contract tests
  • biome check on touched files

Refs

Closes nothing alone — slice 2 of #1099 (after #1232). S3 is CLI /tools.

@Astro-Han
Astro-Han force-pushed the feat/tool-catalog-host-wiring branch from 2989b03 to fda2a96 Compare July 19, 2026 11:24
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
Astro-Han force-pushed the feat/tool-catalog-host-wiring branch from fda2a96 to 54b3473 Compare July 19, 2026 12:55
@Astro-Han
Astro-Han merged commit d48183c into main Jul 19, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/tool-catalog-host-wiring branch July 24, 2026 09:04
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.

1 participant