Repository navigation
Description
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
bitty list actions|keymaps([feat] bitty list actions (+ keymaps): machine-readable action catalog #1934) enumerates Core-owned catalogs
only; broker-registered interfaces are invisible from the CLI.- Safe-mode cannot explain which extension APIs are present.
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
- Sibling issues: name arbitration (1/4), capability gating (2/4),
version negotiation (3/4) — this issue reads the state they produce.
Builds on the [feat] bitty list actions (+ keymaps): machine-readable action catalog #1934 catalog discipline, reuses it, does not fork it.
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.
Activity
[CTX-1185] fix(test): make hostile list-services fixture Windows-safe (…
[CTX-1185] feat(dynapi): CLI observability for registered extension i…