Repository navigation
serve: a start screen for people, a view over the start's record lines on a terminal - #80
Merged
Merged
Conversation
…es on a terminal, BLOOMERY_SCREEN=off hides it serve::screen reads the record lines a seat printed while it started and draws, once the server listens, a small furnace beside a box: the seat, the URL, the placement and why, the card (experts, resident bytes), every plan card when there are several, the host's experts, the NVMe tier, the slots and their context, the prompt cache and the load's wall, then a curl to try. Every value is a record's text (a byte count in GiB to one decimal). A record the start did not print leaves its row off; records that name another placement than the listening line (place unset, plan, load) are not joined to it; the NVMe arena is the one the nvtier record says the load was granted, beside the planned one, and a plan's arena alone is labelled planned; a load wall that does not parse as a number is left off. Each row is read from the last line of its record's head, so the order of lines of different heads does not move it. It is armed only when BLOOMERY_SCREEN is on (default) and stderr is a terminal; piped stderr is unchanged, byte for byte. NO_COLOR or TERM=dumb draw it without colour, and TERM=dumb or a locale that names no UTF-8 draw it in plain ASCII. Control characters in a value are not drawn, and the box pads by terminal columns (wide CJK/Hangul 2, combining marks 0). After the draw, note() returns on one atomic load and takes no lock. - levers: BLOOMERY_SCREEN, on/off, default on; every seat of bloomery-serve acts on it (ACTS_ON lists, gate_glm5next_serve's copy, bloomery-serve-qwen38's READS test). - record: Record::eprint hands each line to a tee a seat sets once; bind::arm_screen arms the screen and sets the tee. bind::eprint_noted prints a start line that is no record and notes it: the parallel line, the glm and qwen38 cache lines and the qwen38 load line, their stderr text unchanged. - Server::run and DecideServer::run draw the screen once they listen. - tools/levers-direct.txt lists screen.rs's reads of NO_COLOR, TERM, LC_ALL, LC_CTYPE and LANG. - Tests: goldens of a V4.1 start (UTF-8, ASCII, colour without its escapes) and of a paged Qwen3.8 start whose arena was granted smaller than planned; the V4.1 start with its plan, load and place lines missing (golden) and reversed; records of another place; a wall that is no number; several plan cards; Hangul, a combining mark and an escape in a value; Style::of over its terminal variables. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
|
감사합니다. 검토를 시작합니다. 오늘 main에 serve seat 파일이 여럿 바뀐 train이 들어가서, 충돌은 우리 쪽에서 풀고 필요한 보완도 우리가 이어 붙인 뒤 머지하겠습니다. 저자만 아는 사실이 필요할 때만 여쭙겠습니다. |
Owner
|
이쁘네요!! ㅎㅎ |
midagedev
added a commit
that referenced
this pull request
Oct 12, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> # Conflicts: # crates/gpu-gates/src/bin/shared/serve_seats/decide.rs # crates/gpu-gates/src/bin/shared/serve_seats/ds41.rs # crates/gpu-gates/src/bin/shared/serve_seats/qwen38.rs
This was referenced Oct 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Alis
What and why
At start,
bloomery-serveprints manykey=valuerecord lines. Tools read them, but a person who just ran the command has to dig through them to learn whether the model fit, where it went and where to send a request.This adds a start screen for people: a small furnace beside a box that shows the seat, the URL, the placement, the card, host and NVMe shares, the slots and their context, the prompt cache and the load's wall time, then a
curlto try. As agreed on the issue:serve::screenreads only the record lines the seat printed while it started. Every value is the record's own text, with two exceptions: a byte count is shown in GiB to one decimal, and in ASCII mode a non-ASCII character in a value is shown as?. A record the start did not print leaves its row off, and aplanorloadof another place than the listening line's is not joined. A row is read from the last line of its record's head, so the order of lines of different heads does not move it.nvtierrecord, the row shows what was paged and the RAM arena the load granted, and the planned arena beside it when the two differ. With only the plan, the arena is labelled as planned.BLOOMERY_SCREENis on (the default) and stderr is a TTY. Piped stderr is byte-for-byte unchanged.NO_COLORorTERM=dumbdraws it without colour.TERM=dumbor a locale that names no UTF-8 (the first set ofLC_ALL,LC_CTYPE,LANG) draws it in plain ASCII. Control characters in record values are dropped, and the box is padded by display width (Hangul and CJK count two columns).OnceLockread. After the screen is drawn, it pays that read and one atomic load.Closes #47.
UTF-8 (the golden from a fixed V4.1 start):
ASCII (
LANG=C):A Qwen3.8-shaped start with a paged NVMe tier whose granted arena is smaller than planned:
Code shape
record.rs.arm_screen(levers.screen())call afterrecord::at_main, andSCREENin its levers list.cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line): none.What changed:
crates/serve/src/screen.rs(new):render(pure, from record text) anddraw(once armed).Server::runandDecideServer::runcall it once they listen.crates/levers:BLOOMERY_SCREEN(on/off, default on) with its accessor.tools/levers-direct.txtlists the screen's reads ofNO_COLOR,TERM,LC_ALL,LC_CTYPEandLANG.crates/gpu-gates:Record::eprinthands each line to a tee set once.bind::arm_screenarms the screen and sets the tee.bind::eprint_notedprints a plaineprintlnrecord line unchanged and notes it;parallel_line, the glm and qwen38cachelines and the qwen38loadline use it. Every seat acts onBLOOMERY_SCREEN.plan,loadandplace unsetlines missing, and reversed; the Qwen3.8-shaped start with and without itsnvtierline; records of another place; aloadwithout parsable seconds; a value with Hangul, a combining mark and an ESC; andStylefrom given terminal variables.What I ran
On a Mac with the pinned toolchain (
rustc 1.100.0-nightly (e457a7b0d 2026-08-27)), on this branch (one commit onmainate659f4fe):just mac-check's workspace check buildsbloomery-gpu-gateswithgpu,deepseek41,vision,glm5next,mimo2andclef, so the seat edits compile for Linux. Also clean:cargo fmt --check,cargo clippy --release -p bloomery-serve -p bloomery-levers --all-targets --no-deps -- -D warnings,bash tools/check-comments.sh,tools/check-levers.shandpython3 tools/recipes.py --self-test.Not run here:
bloomery-serve-qwen38'sthe_levers_list_is_the_levers_the_seat_readstest (which I updated) builds on the box only, and I have not seen the screen from a real seat on a terminal.Open questions for you:
BLOOMERY_SCREEN, so setting it in the shell is no longer refused there. Is that the intended use ofACTS_ON?planline comes fromtools/flow/plans/ds41-p1536-ced-on.rec; the other values, including the Qwen3.8nvtierandloadlines, are invented to cover each row. Real seat stderr can replace them.Hardware (if the change is for a machine)
Not hardware-specific. Mac Studio, Apple M3 Ultra, 512 GB, macOS 26.
🤖 Generated with Claude Code