Repository navigation
Description
Problem
Desktop, CLI, and headless each assemble tools ad hoc. There is no shared answer to which tools exist, on which host, and why — only partial truths in host builders, load_tools groups, and skill HostCapabilities.
Decision
Tool is the catalog atom. Surface is optional and only for jointly governed packs (same deferred load_tools group and/or same host product boundary).
catalog tools + optional surfaces
↓
host binding (actual MakaTool[] — implementations stay host-local)
↓ derive
HostCapabilities · ToolAvailability groups · CLI /tools
- Every product tool name is a catalog row (always-on tools may have no surface).
- v1 surfaces (deferred):
office,browser,computer_use,rive,subagent— aligned with current Desktop groups. - Desktop-owned packs are
unsupportedon CLI/headless (notplanned, not omitted). - Permission stays call-time only; catalog/binding never grant authority.
- Optional per-tool
effectsmay be recorded for a future read-only mode; v1 does not consume them.
Non-goals
User surface toggles; permission redesign; implementing office/browser/computer-use/rive on CLI or headless; product read-only mode; new governance store/IPC.
Slices
Each slice is one independently reviewable PR (flat off main). Do not stack branches.
| Slice | Owns | Does not own |
|---|---|---|
| S1 — Catalog + derive | Pure catalog types/data (tool rows + surfaces + host affinity); derive helpers (HostCapabilities, ToolAvailability groups from catalog ∩ binding ∩ host id); contract tests (unique names, surface members ⊆ tool rows, unsupported surface ∉ that host's groups; optional fixtures that expected Desktop/CLI/headless tool names ⊆ catalog) |
Host runtime composition, Skill wiring, /tools UI |
| S2 — Three-host wiring | Desktop: replace hand-maintained toolAvailability.groups with catalog-derived groups; pass binding-derived HostCapabilities into Skill (and skill listing). CLI: validate registered names ⊆ catalog; derive host + groups the same way. Headless: names ⊆ catalog; derive deferred groups only when bound; never advertise affinity-unsupported packs |
/tools command UX |
S3 — CLI /tools |
Read-only listing: available / unsupported-on-host / not-bound; secret-free | Settings UI, enable/disable, other hosts' UIs |
Order: S1 → S2 → S3. S3 needs S1 + CLI part of S2. If S2 is too large in review, split only as Desktop vs CLI+headless — do not land headless alone.
Acceptance
v1 is done when catalog is the name authority for Desktop, CLI, and headless product tools; deferred groups and skill host gates on wired hosts are projections of catalog ∩ binding (not parallel hand lists); CLI /tools exposes the same projection for humans; permission and tool implementations are unchanged aside from that wiring.
Activity
[-]feat(cli): governance framework for tool surfaces across hosts[/-][+]feat: shared tool catalog and cross-host surface governance[/+]feat(core): add shared tool catalog and host derive helpers (#1232)
feat: wire hosts to shared tool catalog (#1099 S2) (#1234)
Astro-Han commentedon Jul 19, 2026
#1099 v1 is complete at S1 + S2; S3 (CLI
/tools) is dropped.What landed
buildHostCapabilitiesFromBinding,buildDeferredToolGroupsFromCatalog,assertProductBindingCatalogClean— inpackages/coreandpackages/runtime.d48183c2a): desktop, CLI, and headless all derive deferred tool groups and the skill host gate fromcatalog ∩ binding. No host keeps a parallel hand-maintained list. Bound product names are asserted catalog-clean on each host.This delivers #1099's core goal: the catalog is the single name authority, and every host's tool groups + skill gating are projections of
catalog ∩ binding.Why S3 is dropped
S3 was scoped as a read-only
/toolscommand listing available / unsupported-on-host / not-bound. Measured against the actual CLI user journey, it doesn't earn its place:available— tools are model-internal. CLI users don't select or invoke tools by name; they type tasks and the model picks tools. A tool list is a developer/debug view, not a user journey.unsupported-on-host— permanent and obvious. CLI is the terminal surface and never had Office/Browser/Computer/Rive. "Desktop-only packs aren't on CLI" tells users nothing new.not-bound— surfaces internals (team_*,expert_dispatch, task-ledger aliases) users never invoke directly. Noise, not signal.The one real user-facing gap — "why doesn't
/skillshow a skill I installed?" — has a strictly smaller fix than a global tool dump.gateSkillsByHostCapabilitiesalready computeshiddenReason+missingDeclaredTools, butlistInvocableSkillsfilters to eligible at the listing boundary, so/skillsilently omits hidden skills with no reason. Surfacing that already-computed reason at the/skilllisting (no new command, no catalog projection, no internals leak) addresses the actual confusion directly. If that need materializes, it's a separate targeted issue — not #1099 S3.Revised v1 acceptance: catalog is the name authority for desktop/CLI/headless product tools; deferred groups and skill host gates on wired hosts are projections of
catalog ∩ binding; permission and tool implementations are unchanged aside from that wiring. The "CLI/toolsexposes the same projection for humans" clause is dropped.Closing #1099 as done at S1 + S2.
fix(desktop): derive skill host from tool catalog (#1240)