Skip to content

feat: shared tool catalog and cross-host surface governance #1099

Closed

Description

@Astro-Han

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 unsupported on CLI/headless (not planned, not omitted).
  • Permission stays call-time only; catalog/binding never grant authority.
  • Optional per-tool effects may 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

  1. added
    enhancement
    on Jul 16, 2026
  2. changed the title [-]feat(cli): governance framework for tool surfaces across hosts[/-] [+]feat: shared tool catalog and cross-host surface governance[/+] on Jul 19, 2026
  3. Astro-Han commented on Jul 19, 2026

    @Astro-Han
    ContributorAuthor

    #1099 v1 is complete at S1 + S2; S3 (CLI /tools) is dropped.

    What landed

    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 /tools command 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 /skill show a skill I installed?" — has a strictly smaller fix than a global tool dump. gateSkillsByHostCapabilities already computes hiddenReason + missingDeclaredTools, but listInvocableSkills filters to eligible at the listing boundary, so /skill silently omits hidden skills with no reason. Surfacing that already-computed reason at the /skill listing (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 /tools exposes the same projection for humans" clause is dropped.

    Closing #1099 as done at S1 + S2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions