You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First build slice from the #5971 conversion research (doc/2026-11-23T18-32-12Z_research_id5971_image_video_conversion_tooling/, PR #13621). Parent context: worlds program #5955; assets design #5970; rendering ladder #6011 (closed); capability tiers #786.
Scope
The presenter-side kitty graphics stills pipeline in pkgs/id (id-worlds presenter surface):
Shared converter front half: decode a bounded image asset (by content ID) with the image crate, enforce pixel/size caps, resize to the negotiated cell geometry × probed cell pixel size (geometry treated as probed-with-fallback).
Hand-rolled kitty APC encoder per research §6.2: PNG payload (f=100) passthrough when geometry already fits, otherwise re-encode; RGBA+zlib (f=32, o=z) for changing frames; 4096-character chunking with m= continuation; image IDs and placements; direct medium (t=d) only.
Gating on the existing capability probe: emit kitty bytes only when the connection's kitty_graphics bit is set AND an a=q query round-trip accepts the payload class — detection alone is not support (research §2.1, §2.3 multiplexer caveat).
Boundary held: guests/worlds never supply escape bytes; the encoder is presenter-owned (per doc/2026-11-01_design_id786.md).
Acceptance
Golden-fixture tests against a bounded, test-owned image fixture, compared against icat/chafa reference output for the same input.
Unit tests: chunking boundaries, ID/placement emission, query-gating refusal paths (no bytes emitted when the bit or the query fails).
No new dependencies beyond the image crate if it is not already in the id workspace graph (report any addition explicitly).
Symbols/ASCII sampling, sixel, and animation frame sets are NOT this slice (research §7 sequences them after).
Filing note
Filed by lane felix from the #5971 research pass. Not enqueued with a pilot packet: Felix's shortlist is operator-managed (the #13342 pattern); Felix sequences this against #5970's ratification of the research recommendations.
Approach change from the #5971 research correction (amendment PR #13633).
This slice's body says "hand-rolled encoder per §6.2". The correction survey found that the kitty encoder is a library problem after all, and the recommendation has flipped. What changes here:
Build on little-kitty 0.0.3 (MIT OR Apache-2.0) for the protocol layer: control-key command composition, the a=q query/response round-trip this slice gates on, image-ID/placement commands, and tmux wrapping. Its published docs demonstrate each of these (transmit-and-place with f=100, placeholder registration with U=1, query with expected response, a support probe).
Dependency report (explicit, per this issue's acceptance criteria): proposed new dependency is little-kitty 0.0.3, MIT OR Apache-2.0 — a ~1.1K-line Rust crate, rust-version 1.94, compatible with pkgs/id's pinned 1.99.1 toolchain and id-worlds' rust-version = "1.96". This is in addition to the image crate the issue already anticipates. No other new dependencies are proposed by the correction; base64 0.23 is already in id-worlds' graph.
What stays hand-rolled (unchanged from §6.2): PNG passthrough via the image crate, zlib compression for f=32 o=z, and the 4096-character chunk loop with m= continuation — little_kitty's documented surface shows no chunk-splitting helper (write_base64 emits a payload whole). First step of this slice: verify whether its execution path splits payloads internally; if it does, the chunk loop retires too.
Acceptance criteria are unchanged — the golden fixtures against icat/chafa output now double as the byte-for-byte verification that the library emits §6.2's wire format, and the chunking/ID/placement/query-refusal unit tests still apply (they now test the presenter-side remainder plus the integration seam).
Named alternative, not adopted:kittage 0.4.0 covers strictly more (chunking, all mediums, relative placements, response streams — everything but animation frames) but is MPL-2.0, outside the research's §4.3 linkable list as written. If the licensing program (id: design: license combination checker — heavy warnings, override checkbox, admin exception requests #5985) rules MPL-2.0 into the with-obligations class alongside LGPL, this slice should switch to kittage before the encoder hardens. That ruling is not made here.
Everything else in this slice stands: t=d only, presenter-owned encoder, probe + a=q gating, sixel/animation/placeholders out of scope (little_kitty's placeholder support matters to the later §7 stages, not this one).
Lane code-f progress (queue task 21479): premise checked on origin/main. No kitty stills encoder or converter exists in pkgs/id (kitty hits are keyboard-protocol files only). No branch or worktree claims this issue. Build slice parked until the laptop shell leg is reachable (no local build possible now); the little-kitty approach from the 2026-11-23 amendment comment stands. No code changed.
Lane oc-code-01 recheck (queue task 21479, 2026-11-23T23:40Z): premise still holds on current origin/main — kitty code in pkgs/id is keyboard-protocol detection only (world_ssh/kitty.rs has no APC/transmit/placement code), no stills encoder or converter exists, and no branch claims this issue. Added intel for the implementation pass: little-kitty 0.0.3 confirmed live on crates.io (not yanked); the image crate is absent from the pkgs/id workspace graph (new dependency to report explicitly); chafa/icat reference binaries are absent here while the kitty binary is present (headless golden-vs-reference capture still unproven). No code touched; not starting the multi-session build in this lane slice — re-offering for a dedicated implementation pass.
Activity
developing-today commentedon Nov 23, 2026
CODE-4991
dezren39 commentedon Nov 23, 2026
Approach change from the #5971 research correction (amendment PR #13633).
This slice's body says "hand-rolled encoder per §6.2". The correction survey found that the kitty encoder is a library problem after all, and the recommendation has flipped. What changes here:
little-kitty0.0.3 (MIT OR Apache-2.0) for the protocol layer: control-key command composition, thea=qquery/response round-trip this slice gates on, image-ID/placement commands, and tmux wrapping. Its published docs demonstrate each of these (transmit-and-place withf=100, placeholder registration withU=1, query with expected response, a support probe).rust-version1.94, compatible with pkgs/id's pinned 1.99.1 toolchain and id-worlds'rust-version = "1.96". This is in addition to theimagecrate the issue already anticipates. No other new dependencies are proposed by the correction; base64 0.23 is already in id-worlds' graph.imagecrate, zlib compression forf=32 o=z, and the 4096-character chunk loop withm=continuation — little_kitty's documented surface shows no chunk-splitting helper (write_base64emits a payload whole). First step of this slice: verify whether its execution path splits payloads internally; if it does, the chunk loop retires too.kittage0.4.0 covers strictly more (chunking, all mediums, relative placements, response streams — everything but animation frames) but is MPL-2.0, outside the research's §4.3 linkable list as written. If the licensing program (id: design: license combination checker — heavy warnings, override checkbox, admin exception requests #5985) rules MPL-2.0 into the with-obligations class alongside LGPL, this slice should switch to kittage before the encoder hardens. That ruling is not made here.Everything else in this slice stands:
t=donly, presenter-owned encoder, probe +a=qgating, sixel/animation/placeholders out of scope (little_kitty's placeholder support matters to the later §7 stages, not this one).dezren39 commentedon Nov 23, 2026
Lane code-f progress (queue task 21479): premise checked on origin/main. No kitty stills encoder or converter exists in pkgs/id (kitty hits are keyboard-protocol files only). No branch or worktree claims this issue. Build slice parked until the laptop shell leg is reachable (no local build possible now); the little-kitty approach from the 2026-11-23 amendment comment stands. No code changed.
dezren39 commentedon Nov 23, 2026
Lane oc-code-01 recheck (queue task 21479, 2026-11-23T23:40Z): premise still holds on current origin/main — kitty code in pkgs/id is keyboard-protocol detection only (
world_ssh/kitty.rshas no APC/transmit/placement code), no stills encoder or converter exists, and no branch claims this issue. Added intel for the implementation pass:little-kitty0.0.3 confirmed live on crates.io (not yanked); theimagecrate is absent from the pkgs/id workspace graph (new dependency to report explicitly);chafa/icatreference binaries are absent here while thekittybinary is present (headless golden-vs-reference capture still unproven). No code touched; not starting the multi-session build in this lane slice — re-offering for a dedicated implementation pass.