Repository navigation
Description
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.servicesget/provide exists as a skeleton;services.provided/ requiredmanifest 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-levelbitty.*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 checkgreen; docs (bitty-terminal-docsinterface material + Plugins API surface) synced.
Dependencies
- manager#11 (registry index): arbitration source. Design may land as
rule + tests against a fake registry; enforcement wires up when feat(term-state): implement bitty-term-state crate: Terminal Truth core #11
lands. - Sibling issues: capability gating (2/4), version negotiation (3/4),
observability (4/4).
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] feat(dynapi): registry-backed name arbitration for provide…