Skip to content

[dynapi] CLI observability for registered extension interfaces #2002

Closed

Description

@Xuepoo

Priority: P2 | Area: cli | Labels: feat,P2,area:cli | Milestone: v0.1.0 | Design: dynamic extension-API registration (4/4)

Summary

Make dynamically registered extension APIs observable: bitty list
(and inspect where it fits) enumerates registered interfaces with
provider owner, negotiated version, backing capability head, and grant
source — so "which APIs exist right now" is always answerable, in
safe-mode language, without trusting any extension's self-report.

Trust model (non-negotiable, shared with 1/4)

Enumeration is Core-computed from broker state, never provider-reported
strings. A malicious provider cannot hide itself from this listing, and
cannot inject display text (all fields rendered from validated
registry/broker records).

Current state

Target state

  • New list kind (name TBD at implementation, e.g. list services):
    stable JSON envelope + human table reusing the [feat] bitty list actions (+ keymaps): machine-readable action catalog #1934 format
    discipline (stable keys, binding-style nullables documented).
  • Row = one attachment: { interface, owner, version, provider, backing_head, grant_source, status }.
  • Safe-mode clean: works with missing/invalid config (built-in catalog
    • live broker state only, no plugin VM load for the listing itself).
  • bitty help/docs mention the kind; completions updated.

Acceptance criteria

  • Register → listed; unregister/detach → gone; ungranted → absent
    (not "denied": indistinguishable posture).
  • JSON keys frozen + documented; table has a documented null marker.
  • Unit + CLI integration tests (including hostile: provider name
    with control characters renders safely).
  • No Core change per extension (listing is generic over broker
    state — regression test asserts exactly that).

Dependencies

Scheduling

Post-0.0.23, 0.0.24 window (milestone v0.1.0). No implementation until a
CarryCtx task is claimed; this issue is the 立案 record only.

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

    P2area:clifeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions