Repository navigation
Closed
Labels
Milestone
Description
Priority: P2 | Area: architecture | Labels: chore,P2,area:architecture | Milestone: v0.1.0 | Audit: bitty#1629 F1/F2/F3/F9 (CTX-1085 Slice C)
Summary
Wire Core's Kitty decode/raster copies onto the published
bitty-graphics seam behind a Core-owned trait (the proven
storage_backends.rs pattern), drop the png edge from Core's image
dependency, and generalize the W-147 source-level fence so this class of
fork can never slip through again.
Current state (evidence)
crates/bitty-rich/src/kitty_decode.rs:379(decode_png): second
complete Kitty PNG decode unit parallel to
bitty-graphics/src/kitty_decode.rs:483(same bounds
8192/4096²/64 MiB); the module header openly states the extension
"owns its own copy".crates/bitty-rich/src/kitty_raster.rs(rasterize_kitty[_clipped]):
uncached copy duplicatingbitty-graphics/src/kitty_raster.rs; its only
consumer (runtime.rs:1085) admits "No Core-owned replacement: blit
production awaits the extension wiring".crates/bitty-rich/Cargo.toml:image = { version = "0.25", features = ["png","jpeg","webp"] }directly under a comment asserting "Core
retains no PNG edge".crates/bitty-terminal/tests/verify_w147_small_core_graph.rs: the sole
source-level check hard-codesbitty_storage; nonames_cratescan for
bitty_graphics/bitty_execution/bitty_a11y— the fence gap
through which this fork (and the a11y/execution ones) passed undetected.bitty-graphics#15already freezes the seam: exact signatures, caps
table, binding map, and 22 conformance tests over public re-exports only.
Target state
- Core consumes decode + raster behind a Core-owned trait; the composition
root wires the graphics implementation (one-way boundary preserved: Core
never imports the extension crate directly). pngdropped fromimagefeatures once wired (background JPEG/WebP
viabackground.rsstays — explicitly out of extraction scope).- W-147 fence generalized: the
names_cratescan loops over all four
extension crate names, so source-level forks fail the gate.
Acceptance criteria
- Single Kitty decode unit and single raster path (no Core-side copy).
-
pnggone from Core'simagefeatures; background JPEG/WebP
unaffected. - Generalized W-147 fence green, and proven to catch a trial fork
(negative test or documented trial). - Caps unchanged (8192/4096²/64 MiB, 32 blits, 64 MiB frame) with
conformance tests green on both sides.
Dependencies / blockers
bitty-graphics#15(seam contract) implemented; this issue wires +
retires the Core side. The fence generalization has no blocker and may
land first as its own PR.
Scheduling
Post-0.0.23 work. Land inside the 0.0.24 window (milestone stays v0.1.0).
No implementation until a CarryCtx task is claimed; this issue is the
立案 record only.
Activity
Xuepoo commentedon Oct 12, 2026
Split scheduling (owner, 2026-10-12). Fence-generalization half: may land as standalone PR earlier (0.0.24, guards the other migrations). Decode/raster wiring half: 0.0.25. Milestone stays v0.1.0.
[CTX-1186] chore(graphics): wire kitty decode/raster onto seam traits…