Skip to content

[CTX-0406] feat(plugin): end-to-end independent third-party plugin install (M5 ecosystem) #669

Closed

Description

@Xuepoo

Priority: P2 | Area: plugins | Labels: feat,area:plugins,P2 | Milestone: v0.1.0 | RFC: OQ-053/OQ-072 | Task: CTX-0406

M5 ecosystem crossing: one genuinely independently authored plugin installed
from the XDG store and run end-to-end (017 recommendation 5).

Delivered by CTX-0406:

  • bitty plugin install <local-dir> stages a verified external package into
    $XDG_DATA_HOME/bitty/plugins (bounded manifest parse, init.lua entry
    point, ratified module-tree bounds, compat.bitty/compat.plugin-api
    ranges, capability-diff consent) and switches the atomic current.json
    index last. Owner-only 0700/0600 modes on Unix.
  • Lifecycle: list/info include installed packages with a source field;
    enable/disable rewrite the store index atomically; re-running install
    updates and retains the previous version; remove --force uninstalls record
    and tree.
  • Runtime: PluginRuntime::reload (teardown generation N, re-resolve the
    store record, activate N+1) and recorded-grant enforcement at activation.
  • End-to-end proof: real bitty binary install → real runtime
    discover/activate/dispatch → disable → update → reload → uninstall, plus
    capability-consent fail-closed tests.

Non-goals deferred to follow-ups: remote git sources, the SDK
bitty-plugin-lint conformance check, the draft seven-stage pipeline, rollback
commands, and the live bitty plugin reload/IPC trigger surface (OQ-072).

Activity

  1. added this to the v0.1.0 milestone on Sep 13, 2026
  2. added
    feat
    P2
    on Sep 13, 2026
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:pluginsfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions