Bumps the qemu gitlink from 133f91266b to 94754705d1, 62 commits of a
review of the fork against smh/master 3403936c99: 29 defects fixed
(QBUG-1..27) and 49 reductions, among them the wasm64 translator and the
DSP fast loops moved into .c.inc files of their own, R5 on wasm64 only,
the bswap and inverted-operand emitters through TCG's generic expansion
and the never-taken general 35BE iteration gone. git diff --stat against
3403936c99: +19,802/-519 -> +18,722/-377.
Whole candidate against 133f91266b, free-run: towerblox +1.5 %, bobby
+1.7 %, midi +0.7 %, video MIPS -0.5 % (12 rounds, se ~0.35); S75 and
KE970 boots within noise. stopwatch, music, idle and the EL71 boot were
not measured: EL71v41lg91.bin was missing from the container.
doc/version-pins.md has the entry, doc/wasm-fast-paths.md the changed
rows, the marking and "Returned to upstream", and doc/performance.md the
History row and a "2026-11-21 review cleanup" section with the numbers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A preset download that fails at the network level showed fetch's bare
"TypeError: Failed to fetch"; it now says which file could not be
downloaded from which host and to press Start again.
- Download progress added the previous file's content-length when the
file changed, not what arrived, and ignored files already cached: a
retry that skipped a cached 128 MiB image showed 0 / 128 MiB for the
remaining 32 KiB. It now starts from the cached files' sizes and adds
each finished file at what it brought.
- "Not a recognizable Siemens fullflash layout" now names the way on:
"Run as is" under Advanced ▸ Siemens keys, or check the device.
- render() asked MediaRecorder.isTypeSupported up to seven times per
call; the two answers are asked once.
Review: WEB-20.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- .rec-pill-dot named `animation: pulse`, which had no @keyframes: the
keyframes are added, off under prefers-reduced-motion like the badge's.
- index.html's static side keys and keypad were replaced by
applyKbdLayout() during start-up and never seen; the containers are
left empty.
- Comments: the factory is not compiled per boot (the loader module is
imported once; the instance is per run); since 62a86d9 every run has
its own AudioContext, so the worklet's scope and warm-up are per boot
(comment only, nothing in the worklet's code changes); the live region
carries more than captures; the sidecar pointer that was there twice
is kept once.
Review: WEB-19 (its "boards.tar still loading" item went with WEB-18).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
applyDevice() took "boardsReady is set" (a promise that is never
cleared) to mean "boards.tar is still loading", so any id without a
config deferred itself into pendingDevice for good: firmwareReady() was
then true with no device selected, and boot() would have gone on with
device === null. An explicit boardsLoaded flag, set by loadBoards()
before it applies a deferred device, now tells the two apart: after
loading, an unknown id leaves the device empty with a note, and boot()
refuses a null device. Latent today (every rule's id has a config); a
bsp that drops or renames a board would reach it, and a mock boards.tar
without siemens-s75 does.
Review: WEB-18 (and its stale "boards.tar still loading" comment of WEB-19).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
trackStall() compared wall time since the counters last moved, so the
first HUD sample after a suspend of 15 s or more could find them
unchanged across the gap and flash "Guest stopped" until the next one.
Stall time is now summed per sample, each counting at most two sampling
periods, so a suspend adds at most a second. With the guest's workers
killed and the page thread blocked for 20 s, the stall is declared 15.4 s
after the block, not on the first sample after it.
Review: WEB-17.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
?suite= went to fetch() as given and the page booted it at load, so a
link could make a visitor's browser run any ARM image from anywhere
under the site's name with no click. Like ?dist= (PA-2) it now has to
resolve, against the page, to a same-origin path under the site with no
".." segment, as the tools give it (dist/tcgisa.bin); anything else
blocks Start with a message and is not fetched.
Review: WEB-16.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For a Siemens device every batch of serial writes ran
parseExit(serialMessages()) over the whole kept tail (16 to 32 KiB) on
the page's thread, the thread every guest FS syscall is proxied to, to
find a marker that is almost never there. watchForExit() now keeps how
far it has looked and returns unless >>EXIT<< or "EXIT: " shows up in
what is new (backed off so a marker split across writes is still seen);
the offset follows the tail when onSerial() trims it, and the poll
fallback and resetSerial() start it over.
Review: WEB-15.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pickers are 1x1 px and clipped, their labels are the visible drop
zones, and Tab onto one changed nothing on screen. The zone after a
:focus-visible input now gets the accent outline.
Review: WEB-14.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
readPanel() needed width and height in [peripheral.LCD0], which many
boards leave to qemu's panel model, naming only the type; the screen box
then fell back to 132x176. For the 130x130 panels (l2f50250: the SL65
preset, lh15kah2: C65, C72) the box jumped at the first frame, and a
later setAspect() stretched the last frame back into 3:4.
readPanel() now falls back from the type to its size, a small table
mirroring qemu/hw/lcd (lcd.c's 240x320 for the rest), the paint loop
remembers the size the guest reported for the run's board, and a device
the page applies itself (from the file name or the image) sets the
aspect as a hand-picked one does.
Review: WEB-12.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every code in CODE_TO_KEY was preventDefault()ed whether or not a guest
was live, and sendKey() then did nothing: F1, F3, F6, Backspace, / and
Escape were swallowed on an idle page. The keydown listener now returns
at once while no guest runs (a constant-time early return, the one
change the key path allows). ui-acceptance's 3.1 check of F6 moves its
"taken" half to the running section, with the send caught so the phone
sees no play key.
Review: WEB-11.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FOCUSABLE matched buttons and summaries whatever their tabindex, so the
Firmware sheet in Own mode opened on the unchecked Preset segment
(tabindex -1), and Shift+Tab from the real first stop left the dialog for
the keypad, the trap's `first` being that untabbable button. The selector
now skips tabindex -1, and <main> is inert while a sheet is open, which
makes aria-modal true in fact (the panels live in the sheet by then; the
physical phone keys are handled on window and keep working).
Review: WEB-10.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
renderAction() rebuilds the button on every change of kind, and a
focused Start dropped the focus to <body>: a keyboard user had to Tab
back from the top to reach Stop or Cancel, and meanwhile Enter and Space
went to the phone. The new button takes the focus when the old one had it.
Review: WEB-9.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The keys listened to pointer events only: a click with no pointer
behind it (an assistive technology's "activate") sent nothing, and a key
focused with Tab could not be pressed, since Enter and Space went to the
phone as the joystick press and typing whatever had the focus. A click
with detail 0 now taps the key once, held for the keyboard's tap time
through the guest-timed key queue (or the typing queue while it runs),
and focusin no longer leaves phone keys out of keyboardFocus, so Enter
and Space reach a keyboard-focused key's own click. A pointer's press
and its click are unchanged.
Review: WEB-8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
applyDevice(null) left the device select alone, so a .bin the page
could not place kept the previous file's board (Start enabled, booting
the new image on the old board), an EFA sidecar picked with an earlier
file was handed to the next, and removing the file left the device note
under the empty slot. A new .bin now clears the device (and a pending
one) before its detection, keeps a sidecar only when the same selection
brought one, and the remove button clears the device note.
Review: WEB-7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inferDevice() matched short model tokens anywhere in the name, so hex
digits or a longer model (fullflash_3fe71a.bin -> E71, devs7.bin -> VS7,
my_CS75_x.bin -> S75) chose the board without the image ever being read.
The page now asks for whole tokens (not inside a longer run of letters
and digits), and such names fall through to detectDevice(), which reads
the image. The tools keep the substring rule: run-native.sh,
tools/lib/boards.mjs and lockstep-wasm.mjs import the same function and
the test flash "rrC81 .bin" is named by substring. A name with two whole
tokens (c65_from_S65_owner.bin) still goes by rule order.
Review: WEB-6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Cache API that exists but rejects (blocked site data, some private
modes) left the preset line empty behind an unhandled SecurityError and
failed Start with the bare exception; a cache.put that hits the quota
(a 128 MiB LG preset on a phone) ended the boot after the download.
fullflashes.js probes the cache once at start-up (cacheChecked), and
entryCacheState/downloadEntry treat a refusing cache as none. When the
cache is unavailable or will not keep a file, downloadEntry hands the
files back from memory and boot() runs them, saying they are not cached.
Without a cache the preset line reads "Browser cache unavailable ·
fetches N MiB on every Start" instead of disabling presets.
Review: WEB-5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stop only asked qemu to quit (_wasm_quit), which a guest with a dead or
wedged thread never acts on: the page stayed "Running · stopped" and
only a reload got it back. The engine's workers are now recorded for
the module's whole life (a Worker construct proxy installed once, which
also serves the failed-start cleanup of PA-3), and forceStop()
terminates them, ignores a late onExit and runs the normal exit
handling; MEMFS is on the page's thread, so Export still works.
Stop forces at once while the stall detector says the guest has stopped.
Otherwise it asks qemu first, since its shutdown writes the flash back,
and if no exit has come 5 s later the button reads "Force stop".
fatalMsg alone does not force: it also records errors of the page's own.
Review: WEB-2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FS.writeFile copied the image into MEMFS while the page's own buffer
stayed reachable through the module's onExit -> startQemu -> setup ->
boot() scope: 32 to 128 MiB extra for the run and until the next Start.
The image and its sidecars are written with canOwn, so MEMFS keeps the
page's buffer as it is (and skips a 64-128 MiB copy at boot), and boot()
drops flashBytes and sidecarBytes once launch() has returned.
Review: WEB-4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
boot() cleared exportsReady, ranDevice, ranFlashName and keyReport as
its first step, so a preset download error, a Cancel or a recalc error
disabled Export for an image that was still in MEMFS. They are now kept
in locals and committed right before launch(), the point where this
run's image replaces the last one's.
Review: WEB-3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Typing a letter kept the run's module in caseState after the guest
exited, and qemuModule/window.__qemu held the old module while the
loader allocated the next run's 2 GiB heap. onGuestExit() resets
caseState next to lastRelease, and boot()/bootSuite() drop the old
module right before launch().
Review: WEB-1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
./build.sh built the engine into site/ but left dist/, what deploy/nginx
ships, as it was; deploying after a build sent the previous bundle. Its last
step is now scripts/bundle-dist.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The wasm64 engine (qemu-system-arm.{js,wasm}, symbols, qemu-source.txt) now
deploys next to boards.tar and the Siemens key module in site/dist/, and
?dist= defaults to `dist`. Side-by-side builds under site/dist-* still work
through ?dist=<name>. The deploy bundle's engine is dist/dist/.
- build-qemu-wasm64.sh, ninja-fast.sh, build-release.sh, gate.sh,
run-tcg-isa.sh, bundle-dist.sh and the tools default to dist.
- pack-boards.sh no longer deletes <engine dir>/boards.tar as a stale copy:
that is now the boards.tar it packs.
- Links and example commands drop ?dist=dist, --dist dist, PROF_DIST=dist
and DIST=dist, now the default.
- Two idlebench comments keep dist-jit: they record a past comparison.
An existing checkout moves its build with
mv site/dist-jit/* site/dist/ && rmdir site/dist-jit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
docker-compose.lan.yml mounts site/ (LAN_SITE_DIR, ../../dist for the
bundle) read-only as nginx's webroot, so a rebuild shows on the next reload
without bundle-dist.sh or an image rebuild. gzip_static moves to http level
and LAN mode turns it off: serve.mjs only refreshes site/'s .gz sidecars when
it serves them, and nginx would send a stale one as is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
- deploy/nginx starts the GPRS gateway without the `gprs` profile.
- docker-compose.lan.yml + lan-tls.sh: the page and the gateway without the
front, at https://<host>:8443 with a self-signed certificate kept in a
volume (browsers need a secure context for cross-origin isolation).
- The gateway's source is the deploy/gprs-gw/bts-emulator submodule (branch
gprs-gw, 55c911a) inside its build context, replacing the named build
context and gprs-gw.sha256.
- Everything works with legacy docker-compose v1 and the classic builder:
no additional_contexts, !reset, nested ${A:-${B}}, ADD --checksum or
COPY --chmod. GPRS_GW_ORIGINS falls back to https://$VIRTUAL_HOST in the
gateway's shell command instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The owner's call: in the states with no bearer tag (No network,
Registered, and a dist that cannot read the cell) the antenna sat at the
top of the badge over the tag's empty place. Now, with data-gprs="none",
the tag is out of the flow and the antenna's SVG takes the whole badge,
so its viewBox (meet) scales it as one by 4/3, as far as the badge's width
allows, centred: 32x28 px in the 32x37 badge, 24x21 in the phone
layout's 24x27.75. The no-network strike and the strokes scale with it.
From GPRS attach on (attached, connecting, connected, offline, refused,
connected with the cell lost) it is the small antenna over the tag as
before. The badge's height is now set (37 px times --gsm-z), so its box,
the 56 / 32 px pill, the uptime, the status line and Stop stay put; the
swap is not animated. Names, title and announcements are unchanged, and
GSM off still shows the dot.
ui-acceptance, in all 17 staged states at 1770x1000 and 390x844: the
badge, the status line and Stop keep their boxes as the uptime keeps its
place; registered to attached moves nothing but the antenna and the tag;
the antenna is drawn at 4/3 of its tagged scale, as wide as the badge
and centred, exactly in No network and Registered (221/221).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The owner's change to the badge: without the cell (No network, and a link
that outlived the cell) the antenna is the same full antenna as when
registered (dot, mast, inner and outer waves, all solid) in the muted
colour, struck through from bottom left to top right like the GPRS tag
when offline: a 2.8-unit stroke in the pill's colour (`--pill-bg`), then a
1.2-unit muted line on top, round caps. The dotted inner waves are gone.
A dist that cannot read the cell still shows it muted and not struck.
ui-acceptance: in all 17 staged states at 1770x1000 and 390x844 the
antenna's own parts are shown and solid, and the strike and its gap
(drawn in the pill's background colour) show exactly when the antenna
reads "nonet", in a colour other than the registered one (215/215).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The owner's call: only the wide layout keeps the 56 px pill. Under 900 px
wide or 621 px tall `--status-h` is back to 32 px, its height before
672c897, and the network badge (antenna over tag), the slot's arrows and
its countdown are drawn at `--gsm-z` = 0.75: 24x27.75 px, shapes and
proportions kept, inside the pill's border. Every size of the badge is
times that factor (the SVG strokes scale with their boxes); no zoom or
transform. The dot keeps the badge's 24 px place, and the phone-layout
container queries move with the narrower badge and slot (230, 169 px).
At 390x844 the screen box is 342x456 again and the HUD keeps 6 of its 6
tokens, as before 672c897; the pill is 204 px there and 184 at 360x740.
ui-acceptance: the 32 px row and box checks restored, and a new check
that the badge is 24x27.75 with 7.5x6 arrows inside the 32 px pill; the
uptime still does not move in any of the 17 states (213/213).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
A context kept for the page kept its AudioWorklet's isolate, and that
isolate held each finished run's 2 GiB heap (the ring's buffer) until it
happened to collect. Start now creates the run's context inside the click
or submit (the autoplay rules' gesture), before boot() awaits anything,
and the guest's exit closes it; a capture still saving its file keeps it
until the file is handed over. A Start that ends without a guest closes
it too. The worklet module, the feed path and the sound toggle's logic
are unchanged (audio-worklet.js, attachAudio, detachAudio,
updateListening, recordSound: no diff).
r-rss, S75v40lg1, sound on, 5 runs of 30 s, Stop + GC, idle RSS of the
browser's process tree: before 1204/1630/2158/2597/3082 MiB, after
1152/1143/1146/1147/1153 MiB, one Module reachable each time. Every run
played all its audio (1820-1850 ms of 1820-1850 written, peak 158); one
underrun per five runs in both (215 ms here, 244 ms before). Mute and
unmute carry across runs and a capture with sound saves in runs 2 and 3,
as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
--phone picks the firmware whose menus the keys walk and whose LCD
references the check compares. S75v40lg1 takes the EL71's keys unchanged.
The x65 phones keep their profiles in the browser: CX70's active "UMC WAP"
becomes HTTP with no proxy address; SL65's TIM WAP profiles are read-only,
so the empty third profile is set up the same way and activated.
--web, through bts-emulator's gateway on loopback (2026-11-15):
- EL71v41lg91: PASS, GET at 140 s, page on the LCD, 15/14 frames.
- S75v40lg1: PASS, GET at 135 s (SIE-S75/40 UP.Browser/7.1.0.e.20), 13/13.
- CX70v56lg3, SL65v49lg1_TIM: after "GPRS: You are about to go online"
the cell accepts the PDP context, but the phone sends no IP packet (0
frames reach the relay), drops the context 10-15 s later and offers CSD.
The same with the stock WAP profiles. A SKIP (exit 2) that says so;
--try runs them anyway. Not worked around.
--gateway-listen and --host-port put the gateway and the host page on
given ports. startGateway's close() now resolves once the gateway has
exited: it saves its state into the run directory as it stops, and the
check's removal of that directory raced with it (ENOTEMPTY).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The loader creates its four pool workers before its first await. When the
prefetched engine failed to instantiate, that factory call never settled
and its workers ran for the life of the page, beside the retry's. startQemu
now records the workers made while its factory call runs and terminates
them when the start fails, before launch() retries or reports it.
p-inst, Chromium: the always-failing engine left 8 qemu workers, now 0
(the page shows Failed in 253 ms); fail-first left 14 workers at settle
and 17 after 5 s, now 6 and 14, as a clean start, and the retry boots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
F5 reloaded nothing while it pressed the phone's music key. It is no longer
in the keyboard map, so the browser reloads the page and the music key
loses its F5 hint. ui-acceptance checks that F5 is left alone and F6 is
still taken as the play key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
It searches only for the carrier it was set to, which the built-in cell is
not. The image is left as it is; the "Not looked into" goes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
`timeout 170 scripts/gate.sh keep` (TERM), Ctrl-C (INT) and a closed
terminal (HUP) signal the gate's whole process group, so the job
subshells died with gate.sh and the EXIT trap, which only walked the
descendants of live subshells, found none. Each job's `timeout` leads
a process group of its own, so it and everything under it ran on: a
lockstep-wasm run with its Chromium, the native suite with its qemus.
Each job now records its timeout's pid (the group id) in a temporary
directory; the cleanup kills every member of each recorded group and
their descendants (Playwright starts the browser in a session of its
own), waits up to 15 s and KILLs what is left. HUP is trapped too.
Killed at 60-170 s by an outer timeout, every process of the tree
sampled each 0.5 s: HEAD left 16 of 142 alive (native suite + 5 qemus,
lockstep-wasm + Chromium); now 0 of 157 (TERM, keep), 0 of 37 (HUP)
and 0 of 36 (INT).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
architecture.md, "Network badge": the antenna (the cell, for the whole
run) over the bearer tag (the link), their looks, the stroked GPRS/EDGE
letters and data-bearer, the desktop status line and amounts with their
colours and contrast, the phone layout's slot, how the real pill's widths
(240 px at 1280x900, 344 at 1920x1080, 202 at 390x844, 160 at 360x740)
drop the "Running · " and then the slot by container queries, the title's
new wording, and that the name and announcements are unchanged. The
layout entry gives the control row's new height (56/52 px) and the
desktop row's 480 px allowance.
gsm-network.md, "The page's network badge": what the antenna and the tag
each follow, and that the antenna keeps following the cell after the
phone's first data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
Unit (gsm-badge.test.mjs): badgeView over every row of the mockups'
state table (antenna, tag, status line, tone); the antenna following the
cell after the first data, with " · no network"; registered or attached
without GPRS reading as a resting state (no "waiting", "yet" or ellipsis,
no amounts); the amounts from the first data on; a dist that cannot read
the cell; EDGE changing the bearer and the status line's word and nothing
else; a short reason for every close code.
ui-acceptance:
- the control row is 52 px in the phone layout; at 390x844 the screen box
is 327x436 (was 342x456 under a 32 px row); the HUD keeps 6 tokens at
430x932 and 5 at 390 px, where the narrower box has room for one fewer;
- the GSM boot check: the badge is 32x37 in the dot's place, its antenna
and tag agree with __ui.gsm, the slot follows it, no amounts yet;
- new: the run's GprsNet is walked through all 17 badge states of the
mockups (cell bits through _wasm_gsm_state, the link's fields set and
onChange called), at 1770x1000 and 390x844: the uptime's left edge and
top do not move, the pill's parts stay inside it and side by side, the
status line names each state and the antenna/tag pair is right; the
run's own state is put back after, and the boot-regression recorder
skips these staged states;
- new: the tag's letters are paths in <symbol>s, with no text, tspan or
foreignObject and no text content in the badge;
- new: data-bearer="EDGE" changes only the letters' symbol and the status
line's first word: every other box in the pill, the badge's name,
title, states, the tone, the amounts' visibility and the live region
stay the same (four states);
- new: in the run without the GSM network the uptime starts at the same
x as with the badge, in both layouts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
At 320 px with a capture running, the pill shares the row with the
recording pill and two icons. Beside the 32 px network badge and Stop,
"0:41" was ellipsised to 22 of its 25 px. The pill's own gap goes from
6 to 4 px there and its left padding from 8 to 6, as the row's gap
already does, which leaves the uptime 27 px.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The title's last line drops the frame counts, as the owner asked: "Sent
3.1 KB, received 12.4 KB" (kb()), the same form as the desktop pill's
amounts.
Registered without GPRS, or attached and never sending, is a resting
state (the mockups' decision 6): the title's link line no longer says
"not used yet. The gateway is dialled when the phone first sends." while
the cell is known, but "GPRS: no link to the gateway." A dist that
cannot read the cell keeps the old line, which matches its name ("GPRS
not used yet").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The owner's answer to the mockups' open decision (2026-11-14): once the
phone has sent data the badge's tag follows the gateway link, as the G
did, but its antenna keeps following the cell. A connected phone that
loses the cell shows the muted, dotted antenna over the green tag, and
the desktop status line reads "GPRS Connected · no network" in the warn
colour (offline and refused keep theirs and add the same suffix). Before,
the badge showed a registered look whenever there was a link and only
the title's "Network:" line said otherwise.
The badge's name, data-state, __ui.gprs.badge and the announcements are
unchanged: they still follow the link once there is one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
Desktop (the page's wide layout): the pill's text is two lines while the
badge shows, "Running · 0:31" over the network's state in words, as the
owner's mockups have it: "No network", "Registered", "GPRS attached"
(" · context active" with a data context), "GPRS connecting…" or
"reconnecting…" (amber), "GPRS Connected", "GPRS offline · <reason> ·
retry <N>s" or "· waiting for data" once the countdown is over, and
"GPRS refused · <reason>" (#ffb0b0). The reasons are short forms of
gprs-net.js's close reasons (gsm-badge.js); the line never wraps, and is
ellipsised where it is too long. Beside the uptime, from the phone's
first data until Stop, "▴ 3.1 KB ▾ 12.4 KB" (kb()), each with its
activity arrow, dim when idle. That line wraps and clips, so the
amounts show only where they fit and never push the uptime aside.
The neutral status colour is per pill: #9fdcb5 on the green one (5.8:1),
#d9bf80 on amber, #e0a8a8 on red; #ff9a9a is 4.49:1 on the real green
pill, so offline and refused text use #ffb0b0 (5.2:1); warn #e8b339 is
4.75:1.
Phone layout: one line, the badge, then the 28 px slot (the countdown, or
the arrows while connected), the uptime and Stop.
The real pill is narrower than the mockups' (416 / 332 px): 240 px at
1280x900, 202 at 390x844, 160 at 360x740. On desktop the control row may
now be up to 480 px wide where the phone column has room (it matched the
phone, 302 px of pill at 1920x1080), which fits the amounts at 1920x1080;
at 1280x900 the column itself is 376 px, so there the amounts are left
out and long status lines are ellipsised. Where the pill is too narrow
for all of it, container queries on the pill's own width drop the
"Running · " before the uptime (a span of its own; #status-text's text
is unchanged for tools), and in the phone layout under 184 px of content
the slot too. They depend on the width only, never on the state, so the
uptime's left edge is the same in every state, GSM on or off.
The status line and the amounts carry the badge's title, and are
aria-hidden: screen readers get the badge's name and the announcements,
both unchanged. The status line is rewritten on a state change and by
the 1 Hz countdown, the amounts on the relay's traffic notices (at most
every 250 ms) and only when the text changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The boxed "G" gives way to the owner's two-part icon (32x37 at 1x, all in
SVG units): an antenna for the cell, muted with dotted waves until the
phone is registered and lit with full waves after, over a boxed tag for
the data link: absent (its place kept) until GPRS attaches, then
outlined, amber and pulsing while the gateway is dialled, filled green
with dark letters while connected, pink and struck through when offline,
filled red (#d63a3a, so white reaches 4.5:1) and struck when refused. The
strike's gap is drawn in `--pill-bg`, the colour of the pill behind it.
The tag's letters are stroked paths (symbols #gsm-bearer-GPRS and
#gsm-bearer-EDGE in index.html), not text or a font, so they look the
same on every system. `data-bearer` on #gprs names the bearer, GPRS by
default; EDGE has its glyphs already.
gsm-badge.js (no DOM) says what the antenna and the tag show for a
state: `data-net` and `data-gprs` on #gprs, next to `data-state`, which
keeps the old state names. A dist without _wasm_gsm_state shows a muted
antenna with full waves (the cell is unknown). Screen-reader labels and
announcements are unchanged.
During a run the dot, when it shows (GSM off, no radio), takes the
badge's 32 px place, and a 28 px slot beside it holds the redial
countdown or, while connected, the two activity arrows (dim when idle),
so neither moves the uptime. The arrows' lit state is on the pill now
(data-gsm-tx, data-gsm-rx). With reduced motion the tag does not pulse,
as the G did not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The network badge's redesign stacks an antenna over a boxed bearer tag
(37 px) and, on desktop, adds a status line under the uptime, which a
32 px pill cannot hold. The owner chose to grow the pill to fit, as the
mockups draw it: `--status-h` is 56 px, 52 px under the phone-layout
breakpoint (width < 900 or height < 621), and `--head-h` and the screen
box follow from it as before. The pill keeps its capsule shape (radius
half its height) and its colours, now held in `--pill-bg` so the badge's
strike gap can match whatever pill is behind it.
At 390x844 the screen box goes from 342x456 to 327x436; at 1280x900,
1920x1080, 900x600, 360x740 and 320x568 the row, screen and keypad still
fit the window without overlap or scroll.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
History: 48858038d9 and 133f91266b with the 419 parent commits of the
review rounds (a9b40fe -> b1c2a53), A/B'd after the fact. Flat on
stopwatch, towerblox, midi, the EL71 boot, paced CPU and the page
benches. Bobby -1.5 % (16 pairs, se 0.4) and video -0.7 % (16 pairs)
are function placement: the hot code has the same bodies, but 20326 of
20715 functions changed index. Nothing to fix.
Closed ideas: TCG_TARGET_{extract,sextract,deposit}_valid as 1. A census
shows extract ops at 162 -> ~81 500 per 90 112 TBs, but all ops fall
only 0.1-0.17 %. Free-run: stopwatch -0.6 %, towerblox +0.7 %,
midi +0.3 %, bobby +1.0 %, video MIPS +0.2 % but fps -0.7 % (se 0.3),
boot -0.2 %. Not landed. The Known-open-issues entry points there.
Close gate gate-20261115-003322-6zy8: GREEN 21/21 in 905 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The four performance.md rows marked "needs re-measurement (TB-1/TB-2,
2026-11-14)", diagnostics.md's AOT row, the W64_MODBENCH note in
version-pins.md and the dispsize, callref, modfloor and modgrow headers
now carry the numbers of the fixed probes (every module distinct, every
dispatch target reached, a browser restart, an empty page since b0b7cbf).
x64, Chrome 153 headless, quiet host, two runs of the short probes.
- dispatch locality: random / sequential ns a dispatch 11.8 / 5.9 at 8
targets, 15.2 / 6.1 at 512, 53.0 / 47.3 at 4096: misprediction is ~6 ns
up to 512, cache dominates past it; the emulator's 7.7 ns transition is
at the small end, so <= ~2 % still holds.
- typed funcref: a (ref null) table is within 1 % of funcref at 64, 512
and 4096 functions; return_call_ref is 36-39 % slower.
- module shape: empty module 21 us, ~0.4 us a function, ~2.3 us/KB, 64
imports 11 us; the close shapes 46-51 us (they read 21-25 us from the
module cache), flat at ~50 us up to 8000 live modules.
- AOT cache: a Module is still not storable (Chromium, Firefox); restored
bytes 0.91x / 0.90x of a fresh compile; compileStreaming from the Cache
API after a restart 548 us against 78 us fresh: no code-cache hit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
dispsize, callref, modshape, modfloor (without BUSY), modgrow, wasmclone
and wasmcache opened index.html, whose engine prefetch fetches and
compiles site/dist-jit/qemu-system-arm.wasm (and siemens-recalc.wasm)
in the background while they time compiles and calls. They now go to
/probe-blank.html, which Playwright answers itself (tools/lib/page.mjs
gotoBlank): same origin, COOP/COEP, Cache API and IndexedDB, and no
request reaches the server.
Checked on a scratch server: index.html requested both wasm files within
6 s of the load; the blank page made one (routed) request and none
reached the server, with crossOriginIsolated true. modgrow ran at
--total 500.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
The 892eee3 entry quoted W64_MODBENCH's 12-31 us per compile without
saying when or against what. It now says: 2026-09-16, that commit's
build, an EL71 boot, against MOD_NS's ~83 us per module of the same
boot; and that its 200 compiles reused one module's bytes, so they read
V8's compiled-module cache and the cold-cache reading needs
re-measurement (TB-1, 2026-11-14).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
Both named their results (JSON, screenshots, the recording) by the
minute, so two runs started in the same minute wrote the same files.
They now use runStamp() from tools/lib/results.mjs, as the TB-15 tools
do: the second and the pid.
Checked by evaluating both formulas in two node processes started
together: the old one gave 2026-11-15-03-54 twice, runStamp()
2026-11-15-03-54-32-3724671 and -3724670.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
bootbench printed "ok=0 of=N" and exited 0 when every boot of a dist
failed, so a script that ran it saw success. It now sets exit code 1 in
that case, as scenebench does.
Checked against the frozen stub page (port 19150): the copy without this
line ended "BOOTBENCH el71 dist-x median: ok=0 of=1" with rc 0 at 246 s,
this one the same line with rc 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
scenebench, bootbench, uibench, keylag, idlebench and recprobe waited for
the engine after Start with a bare page.waitForFunction and sampled the
page with bare evaluates. On a page whose main thread is frozen neither
settles in time (Playwright's timeouts do not hold there, as exitcheck
found), so a run hung instead of failing. The waits and the sampling
evaluates now go through pageCall() (tools/lib/page.mjs), and so does
scenebench's failure screenshot, which hung on the same page.
Checked against a stub page whose main thread spins from the Start click
(served on 19150), HEAD's copy and the new one from mirror roots, each
under timeout 420: scenebench stopwatch HEAD hung until the kill (rc 124
at 421 s), now fails at 281 s ("waiting for the engine: the page did not
answer in 245 s", then the bounded screenshot); bootbench el71 HEAD hung
until the kill (rc 124 at 420 s), now fails at 246 s. gate.sh keep
--port 19100 GREEN (tests/results/gate-20261114-215028-WrWP).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
gsm-network.md: what gsm-bts's ms-state records and how the page reads
it (no detach path beyond IMSI DETACH and GMM DETACH: the model never
rejects or times out a registration), when each preset phone registers
(EL71 15.8 s, S75v40 9.8 s, CX70 and SL65 9.3 s, KE800 17 s, KE970
16.5 s; the gate's s75_working image never does) and that none attaches
to GPRS before something on it goes online; the KE800/KE970 "No network"
is history. The owner's "connected during boot": no frame of any kind
reached the relay during any boot, and the old idle glyph read as a live
link; the badge starts at "no network" and is green only while the
gateway's WebSocket is open. architecture.md describes the badge's
states, sizes, name, announcements and cost; diagnostics.md lists
_wasm_gsm_state, __ui.gprs.badge and __ui.gsm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
Unit (gprs-net.test.mjs): ms-state is read once a second from the 20 ms
poll and each change is noticed once, the bits never dial the gateway,
a stopped relay reads nothing more, and a dist without the export has
ms null and is never asked.
ui-acceptance: the badge's off name is "Network off"; on the gate's GSM
boot it is in the dot's place showing what the cell says of the phone
(no network, registered or attached; the S75 image shows no network),
with __ui.gsm known and no link dialled. New: every badge the run
showed is recorded with the frames the phone had handed the relay by
then (counted at _wasm_net_take, since the frame that dials is dropped
and not in txFrames), and the run must reach no link state (connecting,
connected, offline, refused) before the phone sent one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh