Latency: predictive local echo in the terminal (D128) #50
Open
opened 2026-10-07 06:36:14 +00:00 by kayg
·
41 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#50
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Predictive local echo (D128, N6/N9): show typed characters immediately in a subtle style and confirm them when the host echoes back, like mosh. Client-only. It turns off automatically for full-screen programs and when echo is off (password prompts). Measure the felt latency on the India↔Germany path.
Starting predictive echo on branch predictive-echo at base SHA
ac03b1913b. Issue #50 has no prior comments; parent #9 and high-latency gate issue #55 comments are read. The checked-in DECISIONS.md ends at 112; the task and issue text supply D128, D130, D162, D167 and N6/N9 requirements.Finding: Chromium with Ghostty at 300 ms RTT showed a prompt cursor at x=2,y=0, visible=1, but typing a left prediction empty with reason=awaiting-output. Reproduced in apps/tracer/test/predictive-echo.spec.ts; initial resize left the safety wait active without later wire output. I’m correcting layout-change handling to clear stale overlays and re-check the current cursor.
Resolution: terminal resize had left the output-wait flag active after the initial viewport fit. Layout changes now clear stale geometry while preserving waits caused by unconfirmed input; prediction safety also checks the viewport. passes against Ghostty at measured RTT 358.4 ms, cursor x=2/y=0 visible=true, with after the first key.
Resolution: terminal resize had left the output-wait flag active after the initial viewport fit. Layout changes now clear stale geometry while preserving waits caused by unconfirmed input; prediction safety also checks the viewport. apps/tracer/test/predictive-echo.spec.ts passes against Ghostty at measured RTT 358.4 ms, cursor x=2/y=0 visible=true, with pendingText=a after the first key.
Finding: a terminal Output can be submitted to Ghostty while attached, then its render callback can run after a WebSocket disconnect. The callback previously treated that as an unsafe screen and kept prediction waiting forever; the resumed no-echo test exposed it. Painting now validates only alternate-screen and scrollback state, while new input still requires an attached transport. The real-renderer resume regression passes: dropped Ack, deduplicated b, then pending p at 322.8 ms RTT.
Resolution: the output renderer callback no longer treats a later socket disconnect as a screen change. It reconciles already-painted output against the pending queue; new keystrokes still require an attached connection. Focused Ghostty test passes the dropped-Ack resume, one-key no-echo mute, proof-based resume, and bounded 2-byte paste cases at 297–323 ms RTT.
Finding: with 300 ms configured RTT and ±30 ms burst jitter, a wrong-echo case measured RTT=279.3 ms but its pending glyph timed out before the host Output paint callback; renderer sequence advanced to 23 while misprediction count stayed 0. The no-echo deadline needs to include the profile jitter allowance as well as the renderer frame budget.
Finding: The cursor-position test deliberately delayed echo 500 ms while RTT was ~306 ms; the expected deadline is RTT + 64 ms, so the state machine correctly muted after timeout. The broader test then expected prediction without host proof. Added a normal echo proof before continuing.
Performance finding (300 ms RTT ±30, CPUWeight=10000): measured RTT 336.30 ms; 20 keys produced 18 overlay-visible predictions (p50 13.20 ms), so glyph-visible p99 including host-paint fallbacks was 381.90 ms. Echo confirmation p99 was 381.90 ms vs 370.30 ms RTT+34 budget; reconnect p99 1044.20 ms vs 900 ms. These are misses to address or report, not passes.
Finding: After the forced dropped-Ack reconnect, the test typed the no-echo probe before the resumed session had a new RTT sample; prediction was correctly off as
rtt-unmeasured. Added a post-reconnect RTT readiness wait before testing no-echo muting.Full
verify latencyfinding: host infraternal-dev, x86_64, 8 cores; tracer-browser load 27.49/26.35/20.75. Network self-tests and auth browser passed; Playwright finished 33/37. The 50 MB check timed out at 5 s after painting 5,242,880 bytes, so its poll now allows 5 min. Native build failed because.cargo/musl-cc.shhardcodesworktree/target/auth-tools/zig/zigdespite CARGO_TARGET_DIR; I will rerun with a temporary symlink to the scratch target. Terminal on-mode predicted-only p99 was 13.60 ms (18/20 overlay coverage); two frames fell back at p99 358.60 ms. Sign-in p99 5019.20/5000 ms and reconnect 988.40/900 ms exceeded existing budgets.Bulk-throughput finding: on infraternal-dev (x86_64, 8 cores), load 23.97/26.72/25.82, CPUWeight=10000, alternating paired 50 MB samples measured off 1.72/1.73/1.96 MB/s and on 1.90/1.97/1.97 MB/s. Medians 1.73 vs 1.97 MB/s (+13.93%); no regression against the −5% budget. The isolated Playwright throughput test passed (3.4 min).
Full latency rerun completed (infraternal-dev, x86_64, 8 cores; tracer-browser load 21.34/22.68/24.72; finish 16.80/24.45/26.17). Native release, network self-tests, auth-browser, and TypeScript passed; browser suite 33/37. Throughput median 1.38 MB/s off vs 1.35 on (−2.08%, within −5%). Terminal probe: RTT sample 362.90 ms; echo p50/p99 on 346.00/388.90 ms, off 345.40/385.20 ms; overlay coverage 19/20, DOM-marked p99 8.40 ms for the 19 shown, browser CPU on 0.50/7.80 ms/key and off 0.20/4.20. Existing sign-in p99 5034.40/5000 and reconnect 1012.10/900 failed. Three additional browser failures were motion audit, onboarding reconnect, and access-screen budget. Real-agent baseline p99 passed at 324.40 ms, but flood same-session p99 1566.60 ms and isolation growth 1242.18/16.67 failed under load. I am correcting the prediction visibility mark to use a frame boundary before final probe results.
Corrected frame-boundary probe (systemd CPUWeight=10000; host load at launch 13.71/21.71/25.06, 8 cores): 20/20 overlay frames, prediction-on glyph-visible p50/p99 6.40/12.20 ms (17 ms target); off p50/p99 354.20/381.20 ms. Browser CPU per key on 0.50/6.70 ms vs off 0.20/5.00 ms. Echo confirmation p99 on 379.30 ms/off 381.20 ms; measured RTT 347.70 ms. Sign-in p99 passed at 3944.60 ms; reconnect p99 1041.60/900 ms failed. The focused Playwright case reached all metrics and failed only its existing reconnect budget.
Step complete: bounded prediction state machine committed as
291c7ee. Tracer TypeScript check passed; production Ghostty Playwright case passed 1/1. Fast gate passed on the full current worktree (including pending integration and test edits): network RTT p50/p99 300.16/308.85 ms; Rust gates and both static targets passed; TypeScript stream differential covered 134 streams and 11,439 schedules with zero divergences; JavaScript transfer measured 246,683 B gzip and 202,745 B brotli.Step complete: tracer wiring committed as
fd45064. Production stays off unless ?predict=1; RTT, Ghostty screen safety, output paint, and teardown now control the shared overlay. Fast gate passed on the current worktree with Rust tests, Clippy, cargo-deny, checksums and both static targets passing; RTT self-test p50/p99 was 299.46/316.48 ms. Tracer transfer: 812,735 B identity, 246,683 B gzip, 202,745 B brotli. Protocol differential: 134 streams, 11,439 schedules, zero divergences.Step complete: production Ghostty prediction tests committed as
25eda77. Focused Playwright case passed 1/1 and emitted all eight pending/confirmed capture files at 393×852 and 1440×900 in ink and paper themes. Fast gate passed (RTT self-test p50/p99 294.80/317.17 ms; Rust suites and both static targets passed; tracer transfer 246,683 B gzip/202,745 B brotli; 134 streams and 11,439 schedules with zero protocol divergences).Finding: the final capture scenario failed before reaching the prediction PNGs because passkey login did not connect within 5 s. Under host load, the separate access-screen gate also measured setup/sign-in render p99 1842.30/2011.90 ms against 1000 ms; first-contentful-paint p99 was 1637.60/1934.00 ms. I’m moving the eight captures into a standalone mock-terminal test so unrelated access-screen performance cannot prevent review artifacts.
Finished: HEAD
81e25883ca. The independent production capture test passed 1/1 and produced all eight pending/confirmed PNGs at 393×852 and 1440×900 for ink and paper themes. D167 probe: RTT 347.70 ms; predicted glyph visibility p50/p99 6.40/12.20 ms (20/20), versus 354.20/381.20 ms off; echo confirmation p99 379.30 ms on and 381.20 ms off; browser CPU/key 0.50/6.70 ms on and 0.20/5.00 ms off. Paired 50 MB throughput median was 1.38 MB/s off and 1.35 MB/s on (−2.08%, within the −5% gate). The reconnect p99 1041.60/900 ms and broader concurrent-load latency failures remain recorded above.scripts/verify fastexited 0. Verbatim final summary output:Orchestrator review of
81e2588: the latency win is confirmed by the numbers (predicted glyph 6.4/12.2 ms p50/p99 vs 354/381 ms off). Visual finding: in the pending state the cursor stays on the predicted glyph (cursor block over the x) instead of advancing one cell; the cursor must be predicted too. The overlay positions glyphs from cell metrics, which #84 is reworking (a production drift regression from run-based drawing). Run 2 waits for #84: rebase onto it, predict the cursor advance, add pixel tests that predicted glyphs and the cursor land on exactly the cells the confirmed echo later occupies (multi-character, long line, dpr 1/2/3), and add multi-character captures.Run 2 starting on branch predictive-echo, based on dev at
ac03b1913b(current HEAD81e25883ca). I read all #50, parent #9, and latency-gate #55 comments. Next: merge dev's #75/#84 renderer changes, align prediction and cursor to shared renderer metrics, then add DPR/capture evidence and rerun latency plus fast gates.Finding: after merging #84 cell metrics, bun x tsc failed at apps/tracer/src/terminal.ts:1019 because GhosttyActivityControls.getMetrics omitted the renderer's baseline field. I’m updating the boundary type to match the pinned renderer and rerunning the check.
Finding: fast gate's agent_review had 5/6 tests pass; initial_attach_requires_explicit_credit_before_replay failed because scripts/verify-agent-attach-credit.py:17 creates target/ without creating target when CARGO_TARGET_DIR is external. This is a harness path assumption, not a product assertion. I’ll rerun with a temporary target symlink to the scratch build directory and remove it afterward.
The merge fast gate exited 1: Rust fmt, VT fmt, clippy and cargo-deny passed; tests failed only on the missing literal target/ parent, and both static builds stopped because .cargo/musl-cc.sh resolves target/auth-tools/zig/zig relative to the worktree. That Zig binary exists under the scratch target. I’m rerunning with a temporary worktree target symlink to the scratch target, preserving all build output there.
Step complete: merged dev's #75 theme patch and #84 renderer metrics in
0548a29(two-parent integration commit). Terminal fit and prediction geometry now share cellMetrics(). Fast gate passed on the scratch target: RTT p50/p99 293.51/315.85 ms; x86_64 musl 16,161,072 bytes and aarch64 musl 13,570,408 bytes; tracer transfer 248,852 B gzip/204,548 B brotli; stream differential 134 streams, 11,439 schedules, zero divergences.Finding: the merged overlay still draws no predicted cursor;
packages/ui/src/terminal-text-overlay.tshas only a text node. The prediction path also drops pending input atposition.x + usedCells + cells >= columnsinapps/tracer/src/predictive-echo.ts, so it cannot cover the requested >80-column line. I am adding failing renderer-backed coverage before changing either path.Finding: DPR 1 pixel probe after predicted backspace showed buffer cursor at the expected cell but canvas center pixel
(96, 96, 98)instead of paper cursor#3d63dd. The renderer-paint callback had invalidated the hidden-cursor flag without restoring the host cursor. It now repaints that cursor before overlay reconciliation.Step complete: predicted cursor geometry, backspace movement, and wrapping now pass real-renderer pixel checks at DPR 1, 2, and 3. Each case checks a 24-cell run, a wrapped line over 80 cells, and backspace; confirmed cursor pixels match the renderer color at its measured cell. Browser test runs used port 4250.
Finding: CPUWeight=10000 latency run at configured 300 ms ±30 ms passed baseline PTY echo (p99 323.23 ms) and other-session flood growth (0.89 ms), but same-session flood failed: confirmation p99 471.41 ms, PTY echo p99 567.53 ms, growth 244.31 ms versus 16.67 ms budget (100 samples). Continuing the full profile to capture browser metrics and determine whether this is reproducible.
Finding: full tracer browser run failed terminal cursor-move coverage at terminal.spec.ts:203: the pending run had no parent text x attribute (observed 0 vs renderer cell x=32), although its tspan had explicit geometry. Restoring the parent SVG text origin from renderer metrics; the test failure is the evidence.
Latency profile findings: 300 ms ±30 ms full browser run reported access-screen render p99 1509.90 ms (setup) and 1859.40 ms (sign-in), both above the 1000 ms local render budget. Snapshot resume also timed out on exact viewport comparison: expected 66.62, observed 66.67 after theme reconnect. Both occurred in existing non-prediction paths; isolating the snapshot case next.
Measurement under systemd-run --user --scope -p CPUWeight=10000 (scripts/verify latency, 300 ms ±30 ms): infraternal-dev, x86_64, i9-9900K, 8 logical CPUs, 31.3 GiB RAM; tracer-browser-start load 2.82/5.67/8.82. Relay n=31 p50/p99 298.76/321.05 ms; tracer RTT 337.70 ms. Predicted glyph only n=16 p50/p99 10.60/13.90 ms (PASS, <17 ms); 4/20 samples fell back, making all-input p99 364.10 ms. Echo confirmation on 346.40/372.90 ms vs off 348.10/381.30 ms. Browser CPU on 1.400/9.900 ms/key vs off 0.100/0.400. 50 MB bulk median 3.03 MB/s on and off, -0.04% (PASS).
Repeat check: snapshot-resume.spec.ts passed in isolation after the full latency profile's 66.62 vs 66.67 viewport comparison timeout (9.6 s, TRACER_TEST_PORT=4250). The full run's three outstanding failures are the same-session PTY flood budget, access-screen local render p99, and terminal timing budgets; see measurements above and earlier finding comments.
Finding: full predictive spec again hit socket hang up at test/predictive-echo.spec.ts:468; the same DPR 1 pixel test passed in isolation. Switching this reset request to page fetch, as terminal.spec.ts already does, to avoid the isolated API request connection path.
Finding: full predictive spec again hit apiRequestContext.post screen-reset socket hang up at test/predictive-echo.spec.ts:468; the same DPR 1 pixel test passed in isolation. Switching this reset request to page fetch, as terminal.spec.ts already does, to avoid the isolated API request connection path.
Step: shared overlay cursor/run support committed as
dfb33aa. The legacy string API remains available; tsc passed after the change.Step: renderer integration committed as
c636196. Current predictive spec passed 5/5 under CPUWeight=10000; pixel alignment passed separately at DPR 1, 2, and 3, including the wrapped line and backspace cursor.Step: predictive cursor, differential, DPR, and capture coverage committed as
fd311c7. Full predictive spec passed 5/5 in the CPU-weighted scope; pixel tests passed at DPR 1/2/3. Eight current-build captures are in apps/tracer/test-results/predictive-echo-predictive-5c604-uction-viewports-and-themes/ (393×852 and 1440×900; ink and paper; pending and confirmed).Finish: head
fd311c73d2(predictive-echo). The final scripts/verify fast run exited 0. Output excerpts, verbatim:METRIC name=network_rtt_selftest configured_rtt_ms=300 jitter_ms=30 loss=unsupported transport=tcp-stream n=3 p50_ms=296.90 p99_ms=300.30 result=PASS
| fmt | PASS |
| VT native fmt | PASS |
| clippy | PASS |
| test | PASS |
| cargo-deny | PASS |
| static builds | PASS |
dist/ghostty-web.js: OK
dist/ghostty-vt.wasm: OK
dist/index.d.ts: OK
JavaScript transfer: identity=824445 gzip=250138/307200 brotli=205909/256000 bytes
stream differential: 134 streams, 11439 schedules, zero divergences
7 pass
0 fail
34390 expect() calls
The latency profile remains non-green on this host: same-session flood p99 567.53 ms (+244.31 ms vs 16.67 ms), access-screen render p99 1509.90/1859.40 ms vs 1000 ms, and the CPU-weighted terminal probe exceeded returning-sign-in and reconnect p99 budgets (5027.20/5000 ms and 1012.10/900 ms). Prediction-only glyph p99 was 13.90 ms; 50 MB throughput delta was -0.04%.
Orchestrator (Claude) finished the prediction rendering on predictive-echo at
2edced6(commits0eef684,2edced6):Latency profile, INFRATERNAL_TEST_RTT=300, CPUWeight=10000, i9-9900K 8 vCPU, load 3.7–9.8:
Tests: predictive spec 5/5; pixel alignment at DPR 1, 2 and 3.
scripts/verify fast: exit 0.Deployed dev
e19c4eb: predictive local echo behind ?predict=1 (#50). Before deploy the orchestrator checked the cursor on the production build with and without prediction at DPR 1/2 (cell 8, cursorX 86 on an 86-char line). Gate exit 0.kayg referenced this issue2026-10-28 17:53:56 +00:00