Skip to content

[0.0.25] Small-Core slimming umbrella: remaining retire-out candidates #2117

Closed

Description

@Xuepoo

Priority: P2 | Area: architecture | Labels: chore,P2,area:architecture | Milestone: v0.1.0

Owner directive 2026-10-15: keep Small Core small; extraction continues post-0.0.23. NOT a release gate.

Precedent (closed, same pattern)

#1996 (a11y -> SnapshotHost seam), #1997 (spawn supervisor -> execution), #1998 (OsNotificationSink -> platform-services), #2000 (kitty decode/raster -> graphics seam). #1999 OPEN blocked on plugin-manager#11.

Rules for every retire (non-negotiable)

  • Mirror/seam + parity-by-assertion (never flag-day moves); composition-root only.
  • W-147 zero-edge fence holds: zero [dependencies] edges + no extension-crate identifier in Core src/ (a11y/execution/graphics/storage).
  • Behavior proven headed-or-harness before the old path is removed; removal PR is separate from seam PR.

Candidate queue (each becomes its own issue + task + PR)

Acceptance criteria

Activity

  1. added this to the v0.1.0 milestone on Oct 15, 2026
  2. added
    chore
    P2
    on Oct 15, 2026
  3. Xuepoo commented on Oct 16, 2026

    @Xuepoo
    ContributorAuthor

    Phase 1 survey filed the first per-candidate issue: #2163 (bitty-rich graphics/scene remainder). Survey task CTX-1275. Notification + graphics-seam remainder issues still to file (Phase 2).

  4. Xuepoo commented on Oct 16, 2026

    @Xuepoo
    ContributorAuthor

    Notification remainder post-#1998: verify-clean (CTX-1276)

    Sweep complete. Zero notification code remains in Core — no tracked issue, no PR needed.

    Evidence

    • rg OsNotificationSink|notify-send|osascript repo-wide (excl. target/.git/Cargo.lock): 2 hits, both doc comments only
      • crates/bitty-platform/src/notification.rs:17 — historical note that desktop delivery used to live there, retired by CTX-1178/[core-split] Retire Core OsNotificationSink onto platform-services backends #1998. The file now holds only the audible-bell seam (BellSink/OsBellSink, single BEL byte on stderr).
      • crates/bitty-runtime/src/runtime.rs:2817 — doc on install_platform_notification_backend describing what the external backend does per platform.
    • No Command/process spawn in notification.rs (only clipboard.rs spawns, unrelated surface).
    • Single rate/dispatch path: deliver_notification_to_os routes exclusively through bitty-platform-services::NotificationBridge; default is fail-closed NoopBackend; install_platform_notification_backend is called only from the composition root (crates/bitty-terminal/src/main.rs:960, real runs only — headless/test stay OS-free).
    • Lua bitty.notify.show (plugin_runtime/services.rs:2743) grant-gates platform.notify and pushes to the Core-internal queue only; no OS touch.
    • Retiring commit: da7c99cf (CTX-1178, [CTX-1178] chore(platform): retire OsNotificationSink onto services backends #2040) — bitty-platform-services is an external git dep (rev 3a8a7ed), not a Core crate.
    • W-147 fence green: verify_w147_small_core_graph 9/9 pass.

    Priority: P2 | Area: architecture | Labels: chore,P2,area:architecture | Milestone: v0.1.0 | Task: CTX-1276

  5. Xuepoo commented on Oct 19, 2026

    @Xuepoo
    ContributorAuthor

    Survey closeout (CTX-1275 / CTX-1276, 2026-10-19)

    Umbrella checklist reconciled against reality. #2117 stays open as the standing Small-Core queue; nothing was extracted in this closeout.

    W-147 fence at aceb327e: cargo test -p bitty-terminal --test verify_w147_small_core_graph → 9 passed; 0 failed (0.18s). The per-merge fence gate stays open in the umbrella.

  6. modified the milestones: v0.1.0, 0.0.25 on Oct 19, 2026
  7. changed the title [-][0.0.24+] Small-Core slimming umbrella: remaining retire-out candidates[/-] [+][0.0.25] Small-Core slimming umbrella: remaining retire-out candidates[/+] on Oct 19, 2026
  8. Xuepoo commented on Oct 21, 2026

    @Xuepoo
    ContributorAuthor

    Triage and first slice (CTX-1412, 2026-10-21, origin/main f246dc55)

    Survey re-run against the current fence, not the 2026-10-19 notes. Two queue items are already done since then: the Core a11y model is retired (crates/bitty-ui/src/a11y.rs is gone; a11y_host.rs, 482 lines, implements the bitty-a11y SnapshotHost seam) and the execution seam is wired (bitty-runtime/src/execution_jobs.rs, #2249). Notification/URL/blur remain reduced (no OS implementation in Core).

    # Candidate Surface Disposition Why / blocker Risk
    1 bitty-rich graphics/scene remainder (#2163) scene 1,357 + image 2,201 + kitty_place 3,756 + background 2,775 + kitty_unicode 319 + geometry 91 Blocked on an extracted repo bitty-graphics#15 (seam contract) is MERGED (2026-10-10), so the old blocker is gone. The real gate: the extension still carries only geometry/kitty_decode/kitty_raster — no scene/image/place/background counterpart — and W-147 gives bitty-graphics zero production edges (no SEAM_CRATES entry), so composition-root wiring is also a fence-policy change. Needs an extension-side implementation issue before Core removal. High (~10k lines, render hot path, parity required)
    2 Core-local kitty_decode / kitty_raster copies 714 + 721 Blocked, subsumed by #2163 Same wiring/fence gate; the Core seam backend (kitty_seam.rs) is still the only bound implementation. Medium
    3 bitty-package distribution semantics (#1999) resolver retired in #2354; trust/activation/lockfile/catalog/source/install pipeline/CLI remain (~7.5k) Blocked on an extracted repo bitty-plugin-manager#11 is still open; W-72 forbids removing install/verification before the manager replacement exists. Security-sensitive (R-015 / P0-AC-028 / P0-AC-029). High
    4 Legacy bitty-rich::kitty placeholder stub kitty.rs 1,023 Retire now → #2358 Fully unconsumed after #2357; only the 64-placeholder and 320,000,000-byte bounds survive (aliased in kitty_place.rs + ctx1087_architecture_parity). Low (constant relocation, values unchanged)
    5 bitty-rich::wallpaper_theme 1,157 Retire-or-wire decision → #2359 Zero consumers; the shipped wallpaper colorscheme path runs through bitty.image.read + plugin policy (CTX-1169). Removal is mechanically safe but it is a product-ownership call because #1976 shipped it. Low
    6 bitty-platform device-state samplers (network_state/bluetooth_state/backlight_state, 2,616) + plugin_runtime/device_providers 2,616 Keep in Core No accepted boundary covers them: W-136 fixes notification, URL-open, and blur only. They are capability-gated Core mechanism serving bar-module interfaces; extracting now would invent a contract. n/a
    7 Clipboard (bitty-platform 1,306 + bitty-rich 796) 2,102 Keep in Core OSC 52 is Terminal Truth plus the host permission/consent gate; W-136 does not cover clipboard. n/a
    8 bitty-rich::host editor round trip 1,832 Keep in Core Retained W-82/W-103 composer mechanism (temp policy, allowlist, bounded wait); it records/kills through the execution-owned tree via bitty-pty as the explicit interactive exception. n/a

    Landed today: #2357 (CTX-1412)

    Retired the two unwired rich-presentation surfaces (presentation.rs 200 lines, projection.rs 389 lines). projection.rs was the only consumer of the bitty-ipc edge inside bitty-rich, so a Core crate no longer carries a production edge to an extracted extension repo; Cargo.lock drops the extra 9493674 IPC revision. W-147 SEAM_CRATES narrows the bitty-ipc allowlist to {bitty-runtime, bitty-terminal} and the fence is green 15/15. New crates/bitty-rich/tests/retired_surface_guard.rs rejects the module files, declarations, and identifiers across crates/*/src, plus a revived IPC edge; mutation-proved in the PR.

    Verification: workspace check, crate clippy/fmt, 417 bitty-rich tests, W-147 fence, ctx1087_architecture_parity all green locally. Docs sync: bitty-terminal-docs#266.

    Next order

    1. [core-split] Retire legacy bitty-rich kitty placeholder stub #2358 (stub) and [core-split] Decide bitty-rich wallpaper_theme: retire or wire (untouched by #2163) #2359 (wallpaper decision) — both small, no external blocker.
    2. [core-split] Retire bitty-rich graphics/scene remainder onto extension seam #2163 only after bitty-graphics publishes the scene/image/place/background seam surface and the fence entry is agreed.
    3. [core-split] Retire bitty-package distribution semantics into bitty-plugin-manager #1999 remainder waits on bitty-plugin-manager#11; do not split trust/activation/lockfile out of Core before then.

    Refs #2117

  9. Xuepoo commented on Nov 3, 2026

    @Xuepoo
    ContributorAuthor

    Closing as completed: every candidate row in this umbrella's retire-out queue is retired, and the retirement is now mechanically guarded.

    Merged PRs

    Tracking issues closed

    Verified artifacts (all read at origin/main)

    • bitty-terminal/bitty — crates/bitty-rich/src/presentation.rs, crates/bitty-rich/src/projection.rs, crates/bitty-rich/src/kitty.rs, crates/bitty-rich/src/wallpaper_theme.rs are all absent (git cat-file -e fails for each).
    • bitty-terminal/bitty — crates/bitty-rich/tests/retired_surface_guard.rs: the guard that fails if a retired module is restored, a retired symbol is named from any crates/*/src file, the module is re-declared in lib.rs, or a bitty-ipc dependency returns to crates/bitty-rich/Cargo.toml.
    • bitty-terminal/bitty — crates/bitty-terminal/tests/verify_w147_small_core_graph.rs: the W-147 small-core fence extended to every extracted extension crate (bitty-storage, bitty-execution, bitty-graphics, bitty-a11y, bitty-agent*, bitty-observability*, bitty-network*), plus every_direct_extension_dependency_is_fenced.
    • bitty-terminal/bitty — crates/bitty-rich/README.md:87 and crates/bitty-rich/src/scene.rs:1223 record the CTX-1412/CTX-1415 retirements.

    Verification run (read-only, no checkout)

    • git fetch origin main && git rev-parse origin/main → 1df03339398253cb1a24338e69c28d6bab709513
    • for f in presentation.rs projection.rs kitty.rs wallpaper_theme.rs; do git cat-file -e origin/main:crates/bitty-rich/src/$f; done → all absent
    • git grep -rln 'W-147' origin/main → includes crates/bitty-terminal/tests/verify_w147_small_core_graph.rs
    • gh api repos/bitty-terminal/bitty/commits/main/check-runs → 19 checks on main, 17 success, 2 skipped (VM tiers), 0 failures — the fence's suite is green at the commit above.

    The only unchecked box in the body, "W-147 fence green at every merge; no silent scope growth", is a standing per-merge gate rather than a one-time deliverable; it is now enforced by the guard test and the W-147 graph test named above, both green on main. New candidates discovered later are new intake and should be filed as their own issues, not tracked by this closed umbrella.

    Nothing in this comment is a plan: each artifact was read at origin/main 1df0333.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions