Skip to content

[CTX-1277] chore(graphics): extend kitty seam parity to extension taxonomy (SEAM PR only) - #2165

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-1277/chore-gfxseam-parity
Oct 16, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-1277/chore-gfxseam-parity

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

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

SEAM PR only for #2164 (#2117 candidate 3: graphics seam remainder post-#2000). No Closes — removal is a separate PR after headed-or-harness proof.

Summary

Extends crates/bitty-rich/tests/kitty_seam_parity.rs from 8 to 17 tests, mirroring the bitty-graphics extension conformance taxonomy (bitty-graphics/tests/seam_conformance.rs) over Core-owned traits only. No production-path change; old kitty_decode / kitty_raster copies stay intact.

New parity (all through CoreKittyBackend + free u32 spellings):

  • empty payload rejected first (borrowed + owned, both spellings)
  • raw requires both dimensions
  • zero dimension rejected (incl. owned)
  • oversize side rejected before alloc (100k probe, 8192/8193 boundary, owned 9000)
  • over-area rejected before alloc (5000x5000, 8192x2048 length-mismatch boundary)
  • length mismatch exact sizes (2x1 RGB 5/7 bytes)
  • owned matches borrowed (RGB / RGBA / PNG + free-fn agreement)
  • raster fails-closed extended (9000x9000 over-cap, short/zero carriers, outside-visible, bad raw triple)
  • end-to-end decode-then-rasterize (2x1 RGBA identity + frame path)

Fence state (verified first)

W-147 9/9 green on this head. No [dependencies] edge on bitty-graphics; identifier appears in no Core src/ (prose mentions only, already present). Composition-root only, zero-edge holds.

Verification

  • cargo fmt --all -- --check: green
  • cargo clippy --workspace --all-targets --locked -D warnings: green
  • cargo nextest run -p bitty-rich --locked: 421 passed (incl. 17 parity)
  • cargo test -p bitty-terminal --test verify_w147_small_core_graph: 9/9 green
  • cargo check --target x86_64-pc-windows-gnu --workspace --all-targets: green
  • MSRV 1.85: no new language/API features (test-only, std + existing Core APIs); remote MSRV job proves.
  • just ci-local: environmentally blocked in this sandbox (prior [core-split] Wire Core kitty decode/raster onto graphics seam + generalize W-147 fence #2000 note: sccache GHA cache); equivalent local gates above green.

Risks / deltas

  • Test-only change; no behavior, caps, or API change.
  • Raster-cache entry cap stays Core-owned at 32 (documented delta vs extension 128); frame budget / cache additive surface unbound (no Core counterpart), unchanged.

Umbrella rules

  • Mirror/seam + parity-by-assertion; composition-root only.
  • W-147 zero-edge holds.
  • Headed-or-harness proof before removal; removal PR is separate (no Closes here).

@coderabbitai

coderabbitai Bot commented Oct 16, 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 18 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: dd4d260c-d84d-4c6e-81b1-d9c168e1492d
📥 Commits

Reviewing files that changed from the base of the PR and between 8eafcb8 and 7630552.

📒 Files selected for processing: 1
  • crates/bitty-rich/tests/kitty_seam_parity.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 added chore Chore / maintenance P2 Priority: medium labels Oct 16, 2026
@Xuepoo Xuepoo added this to the v0.1.0 milestone Oct 16, 2026
@Xuepoo

Xuepoo commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Ready for independent review (commander/reviewer). SEAM PR only — please verify parity-by-assertion + W-147 zero-edge, then APPROVE without merging; removal PR is separate. Task: CTX-1277.

@Xuepoo
Xuepoo merged commit a8f5cdc into main Oct 16, 2026
17 checks passed
@Xuepoo
Xuepoo deleted the ctx-1277/chore-gfxseam-parity branch October 16, 2026 13:17
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.

1 participant