Repository navigation
Description
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.overlayfor the mounted overlay block,ui.overlay.focusfor 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.*andbitty.commands.invoke, and cancels onEsc/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/beaconsubmodule pin, regenerated index,just check.
Acceptance
bitty-plugin-lintand 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_bindingreturnsNone). - Core:
bitty.ui.targets.snapshotreturns only{handle, kind, tier}, and the Core provider collects no panels, workspaces, or command blocks; anchors and real ids are not exposed. - Core:
HintAnnotationLayeris 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.targetsandbitty.ui.labelsare 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
Xuepoo commentedon Oct 19, 2026
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:
with_core(Vec::new())→ snapshots contain no panels, workspaces, command blocks, links, or UI nodes.ui.targets.snapshotreturns only{handle, kind, tier}— no ids, generations, actions, or anchors.HintAnnotationLayeris constructed (services.rs:2273) but never presented.leader …chords are captured but not dispatched (match_plugin_bindingreturnsNone).bitty.ui.targets/bitty.ui.labelspending 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.
[CTX-0039] feat(registry): onboard official beacon plugin (#103, #64) (…