Skip to content

[CTX-1415] chore(architecture): retire bitty-rich kitty stub and wallpaper_theme (#2358, #2359) - #2365

Merged
Xuepoo merged 2 commits into
mainfrom
carryctx/ctx-1415
Oct 21, 2026
Merged

Xuepoo merged 2 commits into
mainfrom
carryctx/ctx-1415

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Priority: P2 | Area: architecture | Labels: chore,P2,area:architecture | Milestone: 0.0.25 | RFC: N/A | Task: CTX-1415

Summary

Retires the two remaining unwired bitty-rich surfaces from #2163:

crates/bitty-rich/tests/retired_surface_guard.rs now rejects reintroduction of both files, their module declarations, and their exported identifiers across every crates/*/src tree.

Closes #2358
Closes #2359

Refs #2117

Evidence (#2359)

  • git grep at origin/main d67bb881 finds zero consumers of WallpaperPalette, WallpaperThemePreview, derive_palette*, preview_from_*, or wallpaper_theme outside the module and its lib.rs re-exports.
  • The shipped feature is plugin-side: crates/bitty-runtime/src/plugin_runtime/services.rs / crates/bitty-terminal/src/plugin_runtime.rs expose bitty.image.read; crates/bitty-runtime/tests/plugin_colorscheme.rs drives preview/confirm over the real Lua bridge. That suite stays green here.
  • Risk: low. Both modules are unreachable; no behavior, golden, config, or public runtime path changes.

Verification

  • cargo fmt --all -- --check
  • RUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets --locked
  • cargo check --workspace --all-targets --locked
  • cargo test -p bitty-rich (all suites, including retired_surface_guard)
  • cargo test -p bitty-runtime --test ctx1087_architecture_parity
  • cargo test -p bitty-runtime --test plugin_colorscheme
  • cargo test -p bitty-terminal --test verify_w147_small_core_graph — 15/15
  • just scratch-paths
  • Guard mutation proof: restoring either retired file fails retired_module_files_stay_absent; restoring the module declarations fails retired_modules_are_not_redeclared; planting KittyGraphicsStub / preview_from_image in another crate's source fails core_sources_never_name_retired_symbols; restoring the change passes again.

No act / ci-local run per the task instruction.

Docs

  • crates/bitty-rich/README.md synced.
  • bitty-terminal-docs companion docs-only PR: architecture/graphics-appearance.md records both retirements and points at the live intake and plugin-side derivation paths.

…tub (#2358)

The streaming Kitty placeholder stub had no consumer after #2357 removed
its last caller. Real bounded APC G intake lives in bitty-vt/src/kitty_apc.rs
and decode/placement policy in bitty-rich/src/kitty_place.rs.

Move the two surviving bounds into kitty_place.rs with values unchanged:
- KITTY_PLACE_MAX_IMAGES aliases bitty_term_state::IMAGE_STORE_MAX_ENTRIES
  (64) directly;
- KITTY_LEDGER_MAX_BYTES stays 320,000,000 and keeps the decode-byte
  compile-time headroom assertion.

Delete crates/bitty-rich/src/kitty.rs and its module/re-exports, update the
bound table, crate README, the kitty_apc doc mention, and the CTX-1087 parity
pin. Extend retired_surface_guard.rs to reject the retired file, module, and
identifiers. No behavior or golden changes.
)

Decide the disposition of crates/bitty-rich/src/wallpaper_theme.rs: retire.

Evidence at origin/main d67bb88: git grep finds zero consumers outside the
module and its lib.rs re-exports. The wallpaper-colorscheme feature that
shipped is plugin-side (CTX-1169 / #1976): the host exposes bitty.image.read
over approved wallpaper roots and crates/bitty-runtime/tests/plugin_colorscheme.rs
drives preview/confirm intents over the real bridge. Theme derivation is
presentation policy on the plugin side of the ADR 0014 split, so wiring this
module would invent an unaccepted Core contract.

Delete the module, its module/re-exports, the crate README mention, and extend
retired_surface_guard.rs to reject the file, module, and identifiers. No
behavior or golden changes; the plugin-side path is untouched.
@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8acc4ce0-0cb5-49c5-909f-b44467077a7e
📥 Commits

Reviewing files that changed from the base of the PR and between d67bb88 and 3892aac.

📒 Files selected for processing: 8
  • crates/bitty-rich/README.md
  • crates/bitty-rich/src/kitty.rs
  • crates/bitty-rich/src/kitty_place.rs
  • crates/bitty-rich/src/lib.rs
  • crates/bitty-rich/src/wallpaper_theme.rs
  • crates/bitty-rich/tests/retired_surface_guard.rs
  • crates/bitty-runtime/tests/ctx1087_architecture_parity.rs
  • crates/bitty-vt/src/kitty_apc.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Xuepoo
Xuepoo merged commit 9a7fc4b into main Oct 21, 2026
18 checks passed
@Xuepoo
Xuepoo deleted the carryctx/ctx-1415 branch October 21, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:architecture chore Chore / maintenance P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core-split] Decide bitty-rich wallpaper_theme: retire or wire (untouched by #2163) [core-split] Retire legacy bitty-rich kitty placeholder stub

1 participant