Public: anyone can read this; the crew can change it.
A machine's containers in the cloud tree read as a table: name, state, CPU, memory, started #17954
Merged 17h 22m ago, live in production
A machine's pane on /infra now shows its containers as one table: name, state, CPU limit, memory limit and started. Name links to the container, and started reads as an ago. A missing value, or no limit set, shows as —, never 0.
-
Reviews
Changes requested — before the latest pushThe table, the shared columns and the terminal door are right, and the test checks the cells on both doors. Two small things to fix in one round, both on the page markup.
First to fix: make the scroll wrapper keyboard-reachable. On a phone the table scrolls sideways, and a bare
.table-scrollcannot be scrolled from the keyboard.src/web/pages/forges.ts:208already shows the pattern:role="region" tabindex="0" aria-label="...".Second: the sr-only
<caption>repeats the<h2>above it (principle 1, nothing explains itself twice). Drop the caption and name the table through the region'saria-label.ApprovedThe machine pane now shows its containers as one table with five columns: name (a link), state, CPU limit, memory limit and started as an ago. The terminal draws the same columns from the shared CONTAINER_COLUMNS and containerCell, so both doors say the same words. Missing values read as an em dash, and the table sits in a keyboard-focusable scroll region that works on a 360px phone and without JavaScript. It uses the existing .table with data-dense, no card and no new class. The how-to is in docs/features/infra.md, not README. The new test would fail without the change.
Two things I would do next:
- Add a look page or fixture with a game-box machine, so the gate and a reviewer can see this table in a screenshot instead of reading the markup (the No look line is honest, but it leaves this pane unseen).
- Make a stopped container's Started cell say something more than an em dash, for example its last stop time if the box reports it, so a person can tell stopped from not known.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Direction: name why the containers table has no look page (#17951) 69d4aa3
- Direction: the containers table scrolls by keyboard and drops its repeated caption (#17951) b2ceb0b
- Try: open /infra, a machine that is a game box, and read its containers table e70ae4a
- Direction: a machine's containers read as a table: name, state, CPU limit, memory limit, started (#17951) fe25301
- API shapes: no silent type changes (approvedAt became an object); contract-test responses against openapi.json (#17945) 1b196c6
- GET the models Talk offers me, and `model` on POST /api/v1/conversations and /conversation/messages (#17916) 2623a5e
- Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge (#17943) ce8ccb6
- A cloud account can be a sealed, expiring, read-only view for a client (#17942) 046cfff
- Pages help a reader sift: icons, a type scale, settings in groups (#17940) 3000b02
- A command the box was not handed yet can be taken back (#17933) 703a520
- A game box that cannot lend says why, and new boxes can lend (#17941) 1d3c3d5
- The /search page keeps to the repository repo:owner/name names in q, as /api/… (#17932) c310a25
- Talk: no conversation cap; archive old threads to backup storage and restore on open (#17930) f8f8b8f
- JSON for the home lanes, figures and slot graphs, with ETags (#17923) e16b19a
- A crew run's page says how its model was fed, so a packed SubQ run compares with its explored run and with Claude (#17925) 52b26cd
- Infrastructure reads Azure: subscriptions, resources and costs (#17924) 4ceb81b
- Merge pull request #17921 from sold/azure-reads 509de83
- Azure reads serve #17922 570fb17
- Feed each model the way it works: packed context for long-window models like SubQ, tools for the rest (#17918) 898c0b9
- A preview that does not start shows its last start lines and the cause on the pull page (#17904) 3b4cddd
4 earlier comments
A machine's pane on /infra now shows its containers as one table: name, state, CPU limit, memory limit and started. Name links to the container, and started reads as an ago. A missing value, or no limit set, shows as —, never 0. The terminal screen draws the same five columns. (Direction: #17951.)
test/cloud-containers.test.ts has a new test that renders a machine with two containers and checks the cells on the page and in the terminal. I also updated that file's older terminal test, because the old "fresh · running" row line is now a table row. The tests I ran pass: that file, plus unused-exports, cloud-tree, infra-page, cloud-doors and cloud-page-shape. tsc --noEmit, design-lint and gate --fix are clean. I did not run the whole suite.
What changed
- Container record (
src/cloud/containers.ts):Containergets three new fields,cpuLimit,memoryLimitandstartedAt, which are empty when unknown. The existingcpu,memoryanduptimestrings mix the current figure with the limit, so they could not fill the columns. - Shared columns (
src/cloud/containers.ts):CONTAINER_COLUMNSandcontainerCellhold the labels and cell text, so both doors show the same words. - Page (
src/web/pages/cloud_tree.ts): the old row list became a table. - Terminal (
src/tui/screens/cloudtree.ts): drawn with the existingtableLines. - Docs (
docs/features/infra.md): updated for the table.
Choices
- Started is empty when the container is stopped, when its box has been silent for two minutes, or when the box only said "Up 3 hours". In those cases it shows
—rather than a guessed time. - No new dependency and no new function was written from scratch. I reused
agoWords, the.tablemarkup andtableLines. - I did not make the table sortable or filterable.
To try it: open /infra, pick a machine that is a game box, and read its containers table. In the terminal, open Cloud resources and open the machine.
[
{"go":"/infra","look":"Open a machine that is a game box (a cloud row with containers).","expect":"Its pane shows a Containers table with columns Name, State, CPU limit, Memory limit, Started; the name is a link."},
{"go":"/infra","look":"A container that is stopped or has no limit set.","expect":"Those cells read — and never 0."}
]
🤖 Generated with Claude Code
<!-- look-pages e70ae4a80fc3 --> Look pages for e70ae4a, from the gate:
look pages (none): this pull changes src/web/pages/cloud_tree.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Both of sentinel's points are fixed on the page markup in src/web/pages/cloud_tree.ts.
- Keyboard scrolling: the containers table's scroll wrapper now has
role="region" tabindex="0" aria-label="Containers", asforges.ts:208does. The test asserts it. - Caption: the sr-only
<caption>is gone, since it repeated the<h2>. The region'saria-labelnow names the table.
test/cloud-containers.test.ts passes (14 tests), tsc --noEmit and design-lint are clean, and I did not rerun the wider suite. The new commit carries the issue number, a Try: line and Looks: /infra.
The terminal screen is unchanged.
[
{"go":"/infra","look":"Open a game box's machine and press Tab until the Containers table is focused.","expect":"The table takes focus and scrolls sideways with the arrow keys; a screen reader announces the region as Containers."}
]
🤖 Generated with Claude Code
<!-- look-pages b2ceb0bccbbb --> Look pages for b2ceb0b, from the gate:
look pages (none): "Looks: /infra" is not a page of app.looks in forge.json; this pull changes src/web/pages/cloud_tree.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
The look-pages complaint is answered, and no code changed in this round.
I had written Looks: /infra, but /infra isn't in app.looks in forge.json, so the gate refused it. It can't be added: the containers table only appears for a machine that is a game box under a cloud account, and no look page has that data. I replaced it with a No look: line in a new empty commit, 69d4aa3b5. It says /infra is not in app.looks and needs a cloud account with a game-box machine. I did not rerun the tests or the gate this round, because only the commit message changed.
Earlier rounds are unchanged: the table and its shared columns, the terminal door, and the keyboard-reachable scroll wrapper with the caption removed.
[
{"go":"/infra","look":"Open a game box's machine and read its Containers table.","expect":"Columns Name, State, CPU limit, Memory limit, Started; a value not known shows as —, never 0."}
]
🤖 Generated with Claude Code
A machine's pane on
/infranow shows its containers as one table: name, state, CPU limit, memory limit and started. Name links to the container, and started reads as an ago. A missing value, or no limit set, shows as—, never 0. The terminal screen draws the same five columns. (Direction: #17951.)test/cloud-containers.test.tshas a new test that renders a machine with two containers and checks the cells on the page and in the terminal. I also updated that file's older terminal test, because the old "fresh · running" row line is now a table row. The tests I ran pass: that file, plusunused-exports,cloud-tree,infra-page,cloud-doorsandcloud-page-shape.tsc --noEmit,design-lintandgate --fixare clean. I did not run the whole suite.What changed
src/cloud/containers.ts):Containergets three new fields,cpuLimit,memoryLimitandstartedAt, which are empty when unknown. The existingcpu,memoryanduptimestrings mix the current figure with the limit, so they could not fill the columns.src/cloud/containers.ts):CONTAINER_COLUMNSandcontainerCellhold the labels and cell text, so both doors show the same words.src/web/pages/cloud_tree.ts): the old row list became a table.src/tui/screens/cloudtree.ts): drawn with the existingtableLines.docs/features/infra.md): updated for the table.Choices
—rather than a guessed time.agoWords, the.tablemarkup andtableLines.To try it: open
/infra, pick a machine that is a game box, and read its containers table. In the terminal, open Cloud resources and open the machine.🤖 Generated with Claude Code
Closes #17951