Skip to content

[0.0.25] Implement beacon official plugin (Leader-key targeting demo) #103

Closed

Description

@Xuepoo

Priority: P1 | Area: area:plugin | Labels: feat,P1,area:plugin | Milestone: 0.0.25 | RFC: OQ-056/OQ-088 | Task: CTX-0039

Summary

Implement the official beacon plugin as the Leader-key targeting demonstration over the accepted Core mechanism/policy split (bitty-docs ADR 0018). Beacon is policy only: key language, scopes and filters, label policy, and target-first menu composition. Core keeps TargetEngine/AnnotationEngine, generation handles, capture, and dispatch authority.

The repository bitty-terminal/beacon already exists as a metadata-only scaffold; this task hardens it into an installable package and onboards it. It creates no new repository.

Scope

  • Manifest and capabilities: ui.rich + ui.overlay for the mounted overlay block, ui.overlay.focus for transient capture, plus lazy command/event declarations. No new capability identifier.
  • Leader flow: documented user-bound Leader chord (or accepted plugin binding once Core lands one) opens Beacon, collects a bounded target lens, presents targets in the overlay, allocates typed labels, dispatches the selected label through bitty.ui.targets.* and bitty.commands.invoke, and cancels on Esc/timeout.
  • Policy configuration: operator families, default scope, label charset/strategy, overlay layout, and diagnostics.
  • Tests: unit coverage for policy, label-to-target mapping, stale/unknown label fail-closed, and capability denial; headed acceptance that the Leader demo jumps, cancels, and never runs a plugin callback on the input hot path.
  • Documentation: update the per-plugin page set from candidate to implemented-only evidence with exact Core commit and SDK exclusion.
  • Registry onboarding: registry/official/beacon.toml, plugins/beacon submodule pin, regenerated index, just check.

Acceptance

  • bitty-plugin-lint and the repository gates pass; the capability set is least-privilege and reviewed.
  • No bitty.beacon.* namespace, no new capability, no target/annotation Event-Bus exposure, no first-party bypass.
  • Stale or unknown labels fail closed; a denied capability leaves no session or overlay behind.
  • The Leader demo is proven with the documented user binding; plugin-suggested Leader activation is explicitly not claimed until the Core plugin-binding facility exists.
  • Registry entry and pin are reproducible and independent review returns APPROVE.

Dependencies and known gaps

  • Core: plugin-suggested Leader/prefix activation is inert (match_plugin_binding returns None).
  • Core: bitty.ui.targets.snapshot returns only {handle, kind, tier}, and the Core provider collects no panels, workspaces, or command blocks; anchors and real ids are not exposed.
  • Core: HintAnnotationLayer is built inside the session but never presented; spatial label rendering is missing, so the demo must render labels in its own overlay content.
  • SDK: bitty.ui.targets and bitty.ui.labels are explicit v1 exclusions pending W-120; no type definitions or mock-host conformance exist.
  • Docs: the beacon targeting framework and SDK reconciliation remain draft; OQ-056, OQ-088, and OQ-052 stay open.

Audit

Readiness evidence (gitignored, local): bitty-plugins/recording/beacon-readiness/README.md and verification.json.

Activity

  1. added this to the 0.0.25 milestone on Oct 19, 2026
  2. added
    feat
    P1
    area:plugin
    on Oct 19, 2026
  3. Xuepoo commented on Oct 19, 2026

    @Xuepoo
    ContributorAuthor

    Audit summary (remote-readable; the full evidence file is gitignored):

    Shipped: U-8 TargetRef/registry with generation fencing (#1035/PR #1263); thin bitty.ui.targets.* / bitty.ui.labels.* bindings (#1631/PR #1641); generic targeting/hint refactor (#1652). W-102 was a verified no-op.

    Not sufficient for the spatial Leader demo:

    • Core provider is built with with_core(Vec::new()) → snapshots contain no panels, workspaces, command blocks, links, or UI nodes.
    • ui.targets.snapshot returns only {handle, kind, tier} — no ids, generations, actions, or anchors.
    • HintAnnotationLayer is constructed (services.rs:2273) but never presented.
    • Plugin-suggested leader … chords are captured but not dispatched (match_plugin_binding returns None).
    • SDK excludes bitty.ui.targets/bitty.ui.labels pending W-120.

    Feasible now: a bounded workspace picker inside Beacon’s own overlay with a user-bound leader entry.

    Prerequisites (0.0.25, separate owners): target enumeration/anchors + annotation presentation + plugin leader dispatch in Core; SDK v1 surface acceptance; draft specs (beacon targeting, SDK reconciliation; OQ-056/088/052) must be accepted or implemented under recorded risk acceptance.

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:pluginfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions