Repository navigation
feat(id): F13.4 tier presenters for SSH and iroh TTY (#10888) - #11189
Conversation
Implements design phases 3-5 of doc/2026-11-01_design_id786.md on top of the merged detector (PR #5023) and the landed batching/diff prerequisites: - world_terminal: shared TierPresenter (Tier 2 cell-grid full/diff ANSI, Tier 3 TextDelta line mode with apply-parity, Tier 1 synchronized-output bracketing), gated Kitty (chunked, round-trip tested) and Sixel graphics encoders behind positive Tier 1 evidence only, PresenterCounters wiring, finish() mode restore. TerminalProfile/PresentationTier/ProbeOutcome tier made public for adapters. - world_ssh: the probe outcome now selects the session presenter (was: tier logged only, Tier 3 fallback always); raw screen views render through it; leave path restores presenter modes before leaving the alternate screen. Sessions that never probed keep the previous rendering path exactly. - id-cli world join: the TTY probe returns its TierPresenter; the pump renders view frames (screen/text surfaces) through it and restores modes on exit. Non-TTY and --json keep the JSON-lines behavior exactly; form views keep JSON-lines (the pump has no form collector). - Tests: cross-transport harness (same transcript via parse_transcript and ProbeDemux selects the same tier and produces byte-identical presenter frames), Tier 2 diff vs full-render oracle + ScreenPatch apply parity, Tier 3 delta apply parity, graphics gating + exact Kitty/Sixel encodings + Kitty chunk round-trip.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 7 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. |
Closes the implementation remainder of #10888 (parent #786 stays open until its full F13.4 acceptance is met). Design: doc/2026-11-01_design_id786.md phases 3-5.
What was already landed (verified on current main)
This PR — the presenters themselves
TierPresenterbuilt from a probe outcome.TextDelta— no full-screen escapes; after the first view only changed lines are emitted;TextDelta::applyis the parity oracle.finish()returns the mode-restore bytes adapters must write on every exit path;PresenterCountersnow records real frames/bytes/full-renders for baseline comparison.TerminalProfile,PresentationTier, andProbeOutcome::tier/profileare public so the iroh adapter (id-cli) can consume them.world join: the TTY probe returns its presenter; the pump renders view frames carrying screen/text surfaces through it and restores modes on exit. Non-TTY and--jsonkeep the JSON-lines behavior exactly; form views keep JSON-lines (the pump has no form collector).Tests (oracle: full render / full text)
parse_transcript(iroh seam) andProbeDemux(SSH seam) selects the same tier and the presenters emit byte-identical frames and counters across Tier 1 / Tier 2 / no-reply / malformed / conflicting / interleaved cases.render_ansi_diffand is smaller than the full render;ScreenPatch::diff().apply()reproduces the next frame exactly.Local results (laptop, fleet-build-lock):
cargo test -p id-worlds -p id-cli— id-cli lib 686 passed, aliases 7 passed, id-cli doc-tests 7 passed, id-worlds lib 888 passed / 0 failed / 3 ignored, id-worlds doc 0. One earlier full-run failure (world_netrecords-client TLS handshake, UnknownIssuer) passes alone on both clean main and this branch — a load flake in that harness, unrelated to this diff. Local clippy could not run to completion: the pooled target cache was built with rustc 1.99.0 and the local clippy is 1.99.1 (E0514 rmeta mismatch in id-core, untouched by this PR); CI's nix-sandbox clippy is the authority.Task 19423, lane any-l.