Skip to content

[dynapi] Registry-backed name arbitration for provided interfaces (owner:iface@version) #2003

Closed

Description

@Xuepoo

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

Summary

One-time Core rule for dynamic extension-API names: the top-level
bitty.* namespace stays frozen as Core-owned spellings forever;
extension-provided APIs must be owner-qualified (owner:iface@version,
precedent: owner:command in commands.register) and arbitrated by the
package registry index. After this one rule lands, Core never changes for
a single extension again.

Trust model (non-negotiable, applies to all 4 issues in this design)

Registry/allowlist membership authorizes participation only and
exempts nothing: every provided API still declares its capabilities,
every consumption still passes grant + consent, budgets and
egress/digest rules still enforced, updates still re-verified (TOFU).
"Trusted" never means "unreviewed authority" — a compromised or buggy
update from a listed extension is contained by the gates below, not by
the list. This is ADR-0003, not bureaucracy.

Current state

  • bitty.services get/provide exists as a skeleton; services.provided/ required manifest fields exist; no name-arbitration rule, no
    owner-qualification requirement, no registry tie-in.
  • A second extension claiming an already-taken name has undefined
    behavior today.

Target state

  • Core (one-time): name grammar owner:iface@version + reservation rule
    (top-level bitty.* never dynamically allocatable) + conflict
    resolution (same short name from two owners: both stay usable only via
    qualified form; unqualified use fails closed naming both owners).
  • Registry (manager#11 index): the allowlist itself — membership,
    owner identity, version set. Core holds no static list; it queries the
    registry rule.
  • No per-extension Core change, ever, for naming.

Acceptance criteria

  • Two extensions claiming the same short name: qualified forms both
    work, unqualified form fails closed with a diagnostic naming both.
  • Claiming a bitty.* top-level name from an extension fails closed.
  • Owner identity pinned by registry (exact-rev discipline);
    rename/revoke flows documented.
  • just check green; docs (bitty-terminal-docs interface material + Plugins API surface) synced.

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

    P1area:pluginsfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions