Skip to content

[core-split] Wire Core kitty decode/raster onto graphics seam + generalize W-147 fence #2000

Closed

Description

@Xuepoo

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 duplicating bitty-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-codes bitty_storage; no names_crate scan for
    bitty_graphics / bitty_execution / bitty_a11y — the fence gap
    through which this fork (and the a11y/execution ones) passed undetected.
  • bitty-graphics#15 already 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).
  • png dropped from image features once wired (background JPEG/WebP
    via background.rs stays — explicitly out of extraction scope).
  • W-147 fence generalized: the names_crate scan 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).
  • png gone from Core's image features; 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

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

    @Xuepoo
    ContributorAuthor

    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.

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