J121: Quiet background tabs with immediate terminal recovery #317
Open
opened 2026-11-03 03:07:26 +00:00 by kayg
·
16 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#317
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?
Job J121: keep background tabs quiet and make return responsive.
Owner direction: “we need to strike a balance here, must not cause unnecessary drain but at the same time make returning to a backgrounded tab instantly responsive.”
Design proposal
Plan and estimate: inspect the route liveness and input replay contracts; add failing-first client/server and browser regression tests; implement the narrow liveness change; run focused browser specs and
scripts/verify fast; record visible-idle/hidden wakeups and return latency after 5 min, 30 min, 2 h, and a server restart while hidden. Estimate 4–6 hours of implementation and gates, plus the requested 2-hour hidden soak and shared build-slot wait. A phone battery profile is best-effort if the available browser VM cannot model a phone power profile.Design validation and estimate, posted before code:
The client currently parks its liveness timer while hidden, but retains a recurring timer/probe path when visible and idle. The server already has WebSocket transport Ping handling; a WebSocket control Ping still travels on the existing ordered TCP connection, so this avoids an out-of-band path. I will move idle keepalive to server-originated transport Ping/Pong, correlate those replies against D300's measured route lease, and retain D300's first-miss doubt / second-miss retirement. The wake path remains one immediate ordered application Ping on return, with the cached screen left painted. A missed wake probe retires the route at the D300 allowance and starts the first resume attempt without backoff; the resume token remains the first application message after open per D265. Existing stream sequence/ack state should preserve any input entered during that probe; a browser regression will prove single ordered delivery.
No contract or decision change is proposed. I will add failing-first tests for zero idle client timers/probes, immediate return probing, dead-link resume, and input replay, then run the focused browser specs and
scripts/verify fast. I will record a before/after table for visible idle and hidden wakeups, plus live-terminal return at 5 min, 30 min, 2 h, and after a server restart while hidden. Estimate: 4–6 hours implementation and gates, plus the requested 2-hour hidden soak and shared build-slot wait. Phone battery profiling is best-effort if the available VM cannot model phone power.Started implementation in branch
j121-link-liveness, worktree~/Developer/Worktrees/infraternal-J121, based onorigin/devat7ad8a9c967bb62b70e27d56d5c9544bfc61eb6d3.Initial code finding (origin/dev at base SHA):
apps/tracer/src/connection.tsowns a singlelivenessTimer;scheduleLiveness()returns for hidden pages but reschedules while visible after a correlated Ping/Pong.crates/infraternal-server/src/websocket.rsalready parses WebSocket transport Ping and Pong frames, but server-originated transport Ping/Pong is not yet used for keepalive. D300's browser route already carries an adaptive two-miss lease. I will add failing-first tests around these behaviors before changing the implementation.Finding with failing-first evidence (compute01, base
7ad8a9c96): added focused regressions before implementation.bun test apps/tracer/src/connection-idle.test.ts -t "visible idle"fails becauseclientTimersis 1 after 60 s of visible-idle virtual time (expected 0).bun test apps/tracer/src/connection-idle.test.ts -t "first input"fails because the firstInputsends 0 immediate probes (expected 1). Both are the intended baseline failures.Rebased the J121 worktree onto current origin/dev at
1e1ddfb633; branch remains j121-link-liveness. Design validation: server WebSocket control-frame Ping/Pong handling already exists, and the browser route uses D300 adaptive allowances with two-miss retirement. The route currently sends muxed Ping frames while visible and suspends them on the hidden visibility notice. I will move those probes to native WebSocket control frames, keep the D300 two-miss deadline, and preserve the one-probe return path so one delayed reply does not retire a healthy route.Design check before the next validation: D300(C) leaves probes outside the ordered application stream as a separate design question. The proposed native WebSocket Ping keeps the existing TCP connection, but the probe is a WebSocket control frame outside the multiplexed application stream. This J121 task explicitly asks to evaluate and implement that path, so I will test it as a scoped experiment without editing D300; D300's adaptive deadline and second-miss retirement remain unchanged. The protocol tests cover payload correlation and invalid lengths, and the real browser spec will verify native Pong and return recovery.
Progress: rebased j121-link-liveness from
1e1ddfbto current origin/dev7add126405; the seven worktree edits restored cleanly. Both queues are occupied. At check time compute01 had 4 busy slots and 4 queued (next position 5); dev-02 had 2 busy slots and 5 queued (next position 6), so I will use compute01. Next: lockfile install, focused client/server checks, then the real browser spec.Queue update before the first gated run: compute01 now has 4/4 slots busy with 6 queued (next position 7); dev-02 has 2 busy with 5 queued (next position 6). I will run the tracer install and focused checks on dev-02 to take the shorter queue; it will use the same
7add126base.Queue recheck: dev-02 still has six queued across two full slots; compute01 now has three queued across four full slots. I am canceling only J121's queued dev-02 ticket and moving the focused run to compute01, whose j121 worktree is already synced to
7add126with the same seven edits.Finding from the first locked tracer check on compute01 ( succeeded): reported TS2554 at connection-idle.test.ts lines 143, 159, 194, 273 and 294: Expected 1 argument, but got 2. The new assertions passed human-readable messages unsupported by Bun's matcher type. I am removing those optional messages and rerunning the check.
Finding from the first locked tracer check on compute01 (bun install --frozen-lockfile succeeded): bun run check reported TS2554 at connection-idle.test.ts lines 143, 159, 194, 273 and 294: Expected 1 argument, but got 2. The new .toBe assertions passed human-readable messages unsupported by Bun's matcher type. I am removing those optional messages and rerunning the check.
Focused result on compute01: bun install --frozen-lockfile checked 38 installs across 69 packages with no changes; bun run check passed; bun test src/connection-idle.test.ts reported 41 pass, 0 fail, 113 expect() calls. The initial TS2554 issue and fix are recorded above. Moving to the focused server Ping/Pong test before the browser soak.
J121c takeover (Claude Opus, on code-minipc01). Codex stopped at about 07:00 UTC on a 429.
State found:
j121-link-livenesshad never been pushed. Seven uncommitted files were in the code-host worktree~/Developer/Worktrees/infraternal-J121at base7add12640. compute01~/worktrees/j121has the same content; the dev-02 copy is older (it still has the TS2554 matcher messages). I committed the code-host copy verbatim as WIP816071d99and pushed it. My worktree is now~/Developer/Worktrees/infraternal-j121c; the old one is detached, nothing deleted.compute01:~/.cache/codex-scratch/j121/evidence/): tracer unit tests pass, 41/41. The new socket testhidden_browser_route_stays_live_on_native_websocket_pongsFAILS withsocket test stopped before its observed event(90 s,J121_RUN_EXIT=101).~/worktrees/j121/target(5.5 GB).Design finding, needs a correction before more tests. On a browser route the server's next probe is due 26 ms (
SERIAL_GAP) after each answer, so it probes about 30 times a second. On origin/dev a hidden page sendsconnection.visibility hidden, andLiveness::set_suspendedstops server probes, so a hidden tab is silent today. The WIP removesset_suspended, so a hidden tab would get about 30 native WebSocket pings a second. Page JS stays asleep, but the browser network process and a phone's radio never get to idle. That is the "unnecessary drain" the owner ruled out. The visible-idle win of the WIP (no client timer, native pong answered without JS) is real and stays.Remaining plan (estimate about 4 h plus build-slot queues):
7c082bddf(29 commits ahead).scripts/verify fastthrough build-slot, with the result quoted here.J121c progress (head
d94a6112bonj121-link-liveness):Server. Hidden suspension is restored: a hidden browser route gets no probe at all, native or application. Visible routes are probed with native WebSocket Ping control frames carrying the 16-byte correlation. The new socket test
browser_route_probes_natively_while_visible_and_not_at_all_while_hiddencovers both phases plus the return. Why the WIP version hung:FrozenSocketTimestops Tokio time, the test never advanced it, the 25 ms probe was never due, and the 90 s watchdog fired. The first rewrite also tripped on attach-time frames reaching the fence; that's fixed now, rerun pending.Client bug found in the WIP (a real one). When a correlated reply arrived during the zero-delay confirmation turn,
scheduleLiveness()cleared the timer but leftlivenessConfirmationPending = true. Every laterscheduleLiveness()then returned early, so no later return or input probe ever armed a deadline, and a dead link would never be noticed. Fixed: the no-pending branch also drops the confirmation flag and bumps its token. This came out of porting dev's dropped test "a queued correlated reply cancels confirmation without letting a duplicate renew it".Tests. The WIP had removed 15 client lease tests. I ported the ones that guard the same state machine to on-demand probes: confirmation reset by reconnect, close or dispose; a stale confirmation across reconnect; duplicate, wrong-timestamp and unknown-nonce replies cannot replenish grace; bounded stall grace; continuous typing; a replacement route's own grace; the queued-pong task turn. Four other WIP-unrun files encoded the old 25 ms cadence (
connection-restart,connection-liveness,connection-probe-scheduling-review) and are updated to the on-demand contract.bun test srcgives 656 pass, 7 fail.7c082bddf: the same 7 fail (663 pass). They're pre-existing and unrelated: the startup-line offer tests and the reconnect-snapshot camera test.Measurement harness finding. The real-server relay (
real/server.ts) used awsclient that auto-answers server Pings, so native pings never reached Chromium. The WIP's browser spec could therefore not see server probes at all. The relay now forwards Ping and Pong control frames with the same one-way delay as data. The newreal/background-tab.spec.tsmeasures idle and hidden cost (renderer main-thread tasks, timer fires, renderer task ms, browser and server CPU ms, frames by kind) and, on return, the first live frame and the first terminal byte. It does this after 5 s and 30 s hidden, after a server restart while hidden, and on a half-open link.TRACER_MEASURE_ONLY=1runs it against dev for the baseline.Running now on compute01 (one slot, log
~/.cache/codex-scratch/j121c/run-all.log): branch static build, tracer check and tests, 3× background-tab, mobile-lease, then the dev baseline build and 3× background-tab. Target dir:compute01:~/worktrees/j121/target(shared by both builds).J121c progress: branch
j121-link-livenessis now three atomic commits on7c082bddf, headfe2c81aa4(the WIP commits are squashed into them):6fc34f615server: browser routes probed with native WebSocket pings; hidden routes stay silent.a319a3ac4tracer: the link is proved on demand, not on a timer; reconnect at once on return. Includes the stuck-confirmation fix and the ported lease tests. Also updatescontracts/wire.md§9.fe2c81aa4tracer real: background-tab measurement spec; the relay passes control frames.Finding: compute01 cannot run real-server browser specs right now. The unchanged
real/mobile-lease.spec.tson unmodified dev7c082bddfnever gets a live terminal. The window staysconnectingand the host pill says "reconnecting". The relay frame log shows Hello, Welcome, Subscribe, Call/Result and 230 Ping/Pong, but no AttachTerm: the page never sees the local host online. The embedded agent process starts and stays alive. A shortINFRATERNAL_TEST_STATE_ROOTdoesn't change it. dev-02 has passing real-spec runs from today (11:24), so the browser measurement moved there. It uses native aarch64 release builds of base and branch, built the same way:~/.cache/codex-scratch/j121c/d02.logon dev-02. Theverify fastgate onfe2c81aa4is queued on compute01 (~/.cache/codex-scratch/j121c/gate.log).Client unit tests on the branch (
bun test src, compute01): 656 pass, 7 fail. The same 7 fail on unmodified dev (startup-line offer and reconnect-snapshot camera tests), so they're pre-existing.J121c measurement: before (dev
7c082bddf) vs after (branch), real Chromium + real server, dev-02.Setup:
apps/tracer/real/background-tab.spec.tswith 75 ms each way through the relay and a mobile viewport. Both builds are native aarch64 release binaries built the same way; the binaries differ (e9f147be…branch,d97d0409…base). Three interleaved runs per side,TRACER_BACKGROUND_LINK_ONLY=1. Values are median [min–max] over 10 s samples. The raw lines are indev-02:~/.cache/codex-scratch/j121c/d02c.logandd02c-metrics.txt.The return times are round trips at 75 ms each way: about one RTT (≈150 ms) when the link is up. The half-open gain comes from keeping the learned RTT and reconnecting without backoff: the D300 allowance (about two misses × (2·srtt + 4·rttvar + 75 ms)) instead of the 2 s startup grace.
Not measured, and why.
7c082bddfthe real fixture cannot open a local terminal on either dev VM.ssh.session.openis refused with{"error":"terminal unavailable","reason":"invalid"}: the agent'sopen_requested→logins::ensure(per-person login) returns PermissionDenied/InvalidInput for the unprivileged fixture user. Unmodifiedreal/mobile-lease.spec.tsfails the same way on dev. The spec has the echo measurement and the input-once check; they run as soon as the fixture can open a terminal. Input-once is covered by the unit test "input sent during a return probe follows it once and keeps its cumulative sequence".infraternal-perf-01-backup01and queued them underperf-run. The VM was held by another job's mesh soak (j20/j88d, with j103c queued behind it), so I cancelled my run rather than leave it waiting.Note on hidden renderer time. Hidden shows 0 timers and 0 frames on both builds, but branch renderer task time was higher in 2 of 3 runs (455 and 487 vs about 211 ms). Hidden here is emulated:
visibilityStateis overridden, so rendering still runs. dev-02 had another job in its second slot, and browser CPU swings widely in both columns (850–2770 ms). I have not explained this delta. It needs a clean perf-VM rerun before anyone relies on it either way.J121c finished. Branch
j121-link-liveness, headea7b4ca6c14e94c737cf1de87c6194a36450edff, three atomic commits on7c082bddf:dabeccdd9server: browser routes probed with native WebSocket pings; hidden routes stay silent.fe5e4261ftracer: link proved on demand, not on a timer; reconnect at once on return. Includes the stuck-confirmation fix, the ported lease tests andcontracts/wire.md§9.ea7b4ca6ctracer real: background-tab measurement spec (with link-only mode); the relay passes control frames.Fixes since the previous gate attempt on
fe2c81aa4, which failed and was superseded:match_same_armson the WIP's emptyTransportPongarm;restart_open_liveness_review,transient_authority_stall) that treated a native Ping as a closed socket.scripts/verify fast(compute01,nix develop -c, through build-slot), step and result lines verbatim fromcompute01:~/.cache/codex-scratch/j121c/gate.log:Static size against an origin/dev
7c082bddfstatic build from the same toolchain (x86_64 musl): 22,475,792 → 22,476,432 bytes, +640 B. The gate's "+58,176 B" is measured against its stored baseline. aarch64: 20,492,632 B; no same-base aarch64 static build to diff.Measurements are in the comment above. Not done: the first-terminal-byte metric, a perf-VM rerun and the long soak, for the reasons given there.
Owner decisions needed:
logins::ensure→ "invalid"). Every real-browser terminal spec (mobile-lease, the newbackground-tab) is blocked on both dev VMs until it is fixed. That belongs in its own job.Cleanup: dev-02 and perf-VM targets and copies removed; the compute01 target is removed after this comment. Logs are kept under
~/.cache/codex-scratch/j121c/on compute01 and dev-02.