Repository navigation
[CTX-1415] chore(architecture): retire bitty-rich kitty stub and wallpaper_theme (#2358, #2359) - #2365
Merged
Conversation
…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.
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
4 tasks
6 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-richsurfaces from #2163:crates/bitty-rich/src/kitty.rs, 1,023 lines). Its last consumer was removed by [CTX-1412] chore(architecture): retire unwired bitty-rich surfaces (#2117) #2357. The two load-bearing bounds move intokitty_place.rsunchanged:KITTY_PLACE_MAX_IMAGESnow aliasesbitty_term_state::IMAGE_STORE_MAX_ENTRIESdirectly (64).KITTY_LEDGER_MAX_BYTESstays320 * 1000 * 1000and keeps the decode-byte compile-time headroom assertion.crates/bitty-rich/src/wallpaper_theme.rs(1,157 lines). Wallpaper-to-palette derivation is plugin presentation policy on the ADR 0014 Core-mechanism/plugin-presentation split. The wired path is the pluginbitty.image.readbridge over approved wallpaper roots with preview/confirm intents (CTX-1169 / Wallpaper-derived colorscheme (matugen-class, CPU self-implemented) #1976). Wiring this module would require inventing an unaccepted Core contract, so retire is the correct disposition; the issue records the evidence.crates/bitty-rich/tests/retired_surface_guard.rsnow rejects reintroduction of both files, their module declarations, and their exported identifiers across everycrates/*/srctree.Closes #2358
Closes #2359
Refs #2117
Evidence (#2359)
git grepatorigin/maind67bb881finds zero consumers ofWallpaperPalette,WallpaperThemePreview,derive_palette*,preview_from_*, orwallpaper_themeoutside the module and itslib.rsre-exports.crates/bitty-runtime/src/plugin_runtime/services.rs/crates/bitty-terminal/src/plugin_runtime.rsexposebitty.image.read;crates/bitty-runtime/tests/plugin_colorscheme.rsdrives preview/confirm over the real Lua bridge. That suite stays green here.Verification
cargo fmt --all -- --checkRUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets --lockedcargo check --workspace --all-targets --lockedcargo test -p bitty-rich(all suites, includingretired_surface_guard)cargo test -p bitty-runtime --test ctx1087_architecture_paritycargo test -p bitty-runtime --test plugin_colorschemecargo test -p bitty-terminal --test verify_w147_small_core_graph— 15/15just scratch-pathsretired_module_files_stay_absent; restoring the module declarations failsretired_modules_are_not_redeclared; plantingKittyGraphicsStub/preview_from_imagein another crate's source failscore_sources_never_name_retired_symbols; restoring the change passes again.No
act/ci-localrun per the task instruction.Docs
crates/bitty-rich/README.mdsynced.bitty-terminal-docscompanion docs-only PR:architecture/graphics-appearance.mdrecords both retirements and points at the live intake and plugin-side derivation paths.