bots-garden/razorbillpublic Fork
⑂ 228c5b0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/razorbill.git
git clone ssh://git@rickub.com/bots-garden/razorbill.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

memory + tickets: #26 and #56 closed, #28 waits for the GPU key check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-27T06:28:23+01:00 Browse files
228c5b0 parent: bb36d60
modified .memory/handoffs/2026-11-27-v0-3-tui-foundation.md +5 -0
@@ -27,3 +27,8 @@
2727 - **Not tried by hand yet**: Models (p download, d+y remove) and Settings (Ctrl-O with a real editor — check the TUI does not steal keystrokes, and the screen comes back; Enter saves tui.yaml), and the tutorial's steps as written.
2828 - v0.3 left: #26 (memory pressure), #28 (GPU load), #56 task 3 (their panel on the Dashboard). Then the v0.3 release (release skill: version string, notes, CLI reference header "0.2.0", diagram title "v0.2").
2929 - Watch out: TUI tests must use `testEnvironment()` (temp cache and preferences); `PosixTerminal.suspend` sleeps 60 ms so a read in flight finishes before the editor starts.
30+
31+## Update (same day, end): v0.3 code complete, waiting for the user's manual tests
32+- #26 and #56 closed, #28 open only for checking the GPU key on the Mac. All v0.3 tickets otherwise closed. Linux 327 / Mac 353, gate PASS run #41.
33+- **Manual test list for the user** (they said "on fera les tests après"): rzb tui Chat (Esc, Ctrl-P, Ctrl-R, /set), Dashboard (u, Machine line, gpu % while generating), Models (p download, d+y remove), Settings (Enter saves tui.yaml; Ctrl-O with a real editor: no stolen keys, screen comes back, reload result), the tutorial as written (docs/*/tutorials/chat-from-the-terminal / discuter-depuis-le-terminal).
34+- Then: close #28 (or note the key is absent), release 0.3.0 the way 0.2.0 was done (version string in Core, release notes EN/FR in release-notes/, CLI reference header, diagram title, milestone v0.3 closed, scripts/release.sh on the Mac, tag at the user's OK). The `release` skill in .claude/skills is for "mini-me (mm)", not razorbill — do not use it as is.
@@ -27,3 +27,8 @@
27 - **Not tried by hand yet**: Models (p download, d+y remove) and Settings (Ctrl-O with a real editor — check the TUI does not steal keystrokes, and the screen comes back; Enter saves tui.yaml), and the tutorial's steps as written.27 - **Not tried by hand yet**: Models (p download, d+y remove) and Settings (Ctrl-O with a real editor — check the TUI does not steal keystrokes, and the screen comes back; Enter saves tui.yaml), and the tutorial's steps as written.
28 - v0.3 left: #26 (memory pressure), #28 (GPU load), #56 task 3 (their panel on the Dashboard). Then the v0.3 release (release skill: version string, notes, CLI reference header "0.2.0", diagram title "v0.2").28 - v0.3 left: #26 (memory pressure), #28 (GPU load), #56 task 3 (their panel on the Dashboard). Then the v0.3 release (release skill: version string, notes, CLI reference header "0.2.0", diagram title "v0.2").
29 - Watch out: TUI tests must use `testEnvironment()` (temp cache and preferences); `PosixTerminal.suspend` sleeps 60 ms so a read in flight finishes before the editor starts.29 - Watch out: TUI tests must use `testEnvironment()` (temp cache and preferences); `PosixTerminal.suspend` sleeps 60 ms so a read in flight finishes before the editor starts.
30+
31+## Update (same day, end): v0.3 code complete, waiting for the user's manual tests
32+- #26 and #56 closed, #28 open only for checking the GPU key on the Mac. All v0.3 tickets otherwise closed. Linux 327 / Mac 353, gate PASS run #41.
33+- **Manual test list for the user** (they said "on fera les tests après"): rzb tui Chat (Esc, Ctrl-P, Ctrl-R, /set), Dashboard (u, Machine line, gpu % while generating), Models (p download, d+y remove), Settings (Enter saves tui.yaml; Ctrl-O with a real editor: no stolen keys, screen comes back, reload result), the tutorial as written (docs/*/tutorials/chat-from-the-terminal / discuter-depuis-le-terminal).
34+- Then: close #28 (or note the key is absent), release 0.3.0 the way 0.2.0 was done (version string in Core, release notes EN/FR in release-notes/, CLI reference header, diagram title, milestone v0.3 closed, scripts/release.sh on the Mac, tag at the user's OK). The `release` skill in .claude/skills is for "mini-me (mm)", not razorbill — do not use it as is.
modified .memory/history.md +11 -0
@@ -527,3 +527,14 @@ open, a comment on each. main fast-forwarded.
527527 - **Quality**: run #39 FAIL (1 smell, fixed), run #40 PASS (0/0/0).
528528 - **Docs**: EN+FR tutorial `chat-from-the-terminal` / `discuter-depuis-le-terminal`, how-tos (models, server configuration from the TUI), reference `tui.md` (both languages), explanation `terminal-interface` / `interface-terminal`, CLI reference slimmed to options + precedence, HTTP reference `config_file`, indexes, diagram label.
529529 - **Tickets**: #57, #58, #59 closed. Still open in v0.3: #26, #28, #56 task 3 (machine panel). main fast-forwarded.
530+
531+## 2026-11-27 — #26 memory pressure, #28 GPU load, #56 machine panel
532+
533+- **Goal**: user "termine tout et on fera les tests après" — the rest of v0.3 (#26, #28, #56 task 3), tests by hand later.
534+- **Changes**: `SystemMonitor` / `SystemSnapshot` / `SystemReporter` in Core (Darwin sources under `canImport(Darwin)`, /proc on Linux), `system` object in `/rzb/status` (`StatusSystem`, explicit nulls), TUI `MachineState`, Dashboard Machine line, status bar gpu + coloured pressure. Commits 1dea285 (code), bb36d60 (docs + quality run #41).
535+- **Decisions (mine)**: the server measures the machine (one source for the TUI and curl), on each status request (no timer, no Dispatch pressure source); no ui.show_memory switch and no automatic action (the server already refuses models that do not fit); the agent-era CLI stats tasks closed as not applicable.
536+- **Traps**: a trailing closure given to `makeRouter` binds to `memory:`, not `system:` — label it; `/proc/self/status` separates with tabs.
537+- **Tests**: Linux 327, Mac 353 (the Mac test reads real pressure/compressed/swap); compat Linux 59/20. GPU key presence on this Mac not seen yet → #28 task 1 open.
538+- **Quality**: PASS run #41.
539+- **Docs**: EN+FR HTTP reference (system fields, example), TUI reference (status bar, Machine line).
540+- **Tickets**: #26 and #56 closed; #28 open for task 1 (check the IOKit key on the Mac). v0.3 milestone: only #28 left. main fast-forwarded.
@@ -527,3 +527,14 @@ open, a comment on each. main fast-forwarded.
527 - **Quality**: run #39 FAIL (1 smell, fixed), run #40 PASS (0/0/0).527 - **Quality**: run #39 FAIL (1 smell, fixed), run #40 PASS (0/0/0).
528 - **Docs**: EN+FR tutorial `chat-from-the-terminal` / `discuter-depuis-le-terminal`, how-tos (models, server configuration from the TUI), reference `tui.md` (both languages), explanation `terminal-interface` / `interface-terminal`, CLI reference slimmed to options + precedence, HTTP reference `config_file`, indexes, diagram label.528 - **Docs**: EN+FR tutorial `chat-from-the-terminal` / `discuter-depuis-le-terminal`, how-tos (models, server configuration from the TUI), reference `tui.md` (both languages), explanation `terminal-interface` / `interface-terminal`, CLI reference slimmed to options + precedence, HTTP reference `config_file`, indexes, diagram label.
529 - **Tickets**: #57, #58, #59 closed. Still open in v0.3: #26, #28, #56 task 3 (machine panel). main fast-forwarded.529 - **Tickets**: #57, #58, #59 closed. Still open in v0.3: #26, #28, #56 task 3 (machine panel). main fast-forwarded.
530+
531+## 2026-11-27 — #26 memory pressure, #28 GPU load, #56 machine panel
532+
533+- **Goal**: user "termine tout et on fera les tests après" — the rest of v0.3 (#26, #28, #56 task 3), tests by hand later.
534+- **Changes**: `SystemMonitor` / `SystemSnapshot` / `SystemReporter` in Core (Darwin sources under `canImport(Darwin)`, /proc on Linux), `system` object in `/rzb/status` (`StatusSystem`, explicit nulls), TUI `MachineState`, Dashboard Machine line, status bar gpu + coloured pressure. Commits 1dea285 (code), bb36d60 (docs + quality run #41).
535+- **Decisions (mine)**: the server measures the machine (one source for the TUI and curl), on each status request (no timer, no Dispatch pressure source); no ui.show_memory switch and no automatic action (the server already refuses models that do not fit); the agent-era CLI stats tasks closed as not applicable.
536+- **Traps**: a trailing closure given to `makeRouter` binds to `memory:`, not `system:` — label it; `/proc/self/status` separates with tabs.
537+- **Tests**: Linux 327, Mac 353 (the Mac test reads real pressure/compressed/swap); compat Linux 59/20. GPU key presence on this Mac not seen yet → #28 task 1 open.
538+- **Quality**: PASS run #41.
539+- **Docs**: EN+FR HTTP reference (system fields, example), TUI reference (status bar, Machine line).
540+- **Tickets**: #26 and #56 closed; #28 open for task 1 (check the IOKit key on the Mac). v0.3 milestone: only #28 left. main fast-forwarded.
modified .memory/summary.md +5 -1
@@ -166,6 +166,10 @@ Ctrl-R reloads). `TUIPreferences` + `TUIPreferencesLoader` live in Core (reuse `
166166 `/rzb/status` has `config_file`. TUIApp actions split into `TUIApp+Models.swift` and
167167 `TUIApp+Settings.swift` (members internal for that). `rzb tui` precedence: options > tui.yaml
168168 (`RZB_TUI_PREFERENCES` overrides its path) > --config > defaults.
169+Machine (#26, #28): `SystemMonitor.measure` in Core (`Sources/RazorbillCore/System/`; Darwin:
170+pressure sysctl, host_statistics64, vm.swapusage, proc_pid_rusage, IOKit IOAccelerator
171+"Device Utilization %"; Linux: /proc) → `/rzb/status` `system` object (makeRouter `system:`
172+reporter, tests inject one) → TUI `MachineState`, Dashboard Machine line, status bar gpu/pressure.
169173
170174 ## Decisions in force
171175
@@ -295,7 +299,7 @@ compat on Linux 48 pass / 20 skip. After #49: Linux 172, Mac 198, compat Linux 5
295299 not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on
296300 macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54:
297301 Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip. After #57–#59: Linux 323,
298-Mac 349, compat Linux 59/20.
302+Mac 349, compat Linux 59/20. After #26/#28: Linux 327, Mac 353.
299303
300304 Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens,
301305 stop, seed, presence/frequency_penalty (mlx window: last 20 tokens incl. prompt), plus extensions
@@ -166,6 +166,10 @@ Ctrl-R reloads). `TUIPreferences` + `TUIPreferencesLoader` live in Core (reuse `
166 `/rzb/status` has `config_file`. TUIApp actions split into `TUIApp+Models.swift` and166 `/rzb/status` has `config_file`. TUIApp actions split into `TUIApp+Models.swift` and
167 `TUIApp+Settings.swift` (members internal for that). `rzb tui` precedence: options > tui.yaml167 `TUIApp+Settings.swift` (members internal for that). `rzb tui` precedence: options > tui.yaml
168 (`RZB_TUI_PREFERENCES` overrides its path) > --config > defaults.168 (`RZB_TUI_PREFERENCES` overrides its path) > --config > defaults.
169+Machine (#26, #28): `SystemMonitor.measure` in Core (`Sources/RazorbillCore/System/`; Darwin:
170+pressure sysctl, host_statistics64, vm.swapusage, proc_pid_rusage, IOKit IOAccelerator
171+"Device Utilization %"; Linux: /proc) → `/rzb/status` `system` object (makeRouter `system:`
172+reporter, tests inject one) → TUI `MachineState`, Dashboard Machine line, status bar gpu/pressure.
169 173
170 ## Decisions in force174 ## Decisions in force
171 175
@@ -295,7 +299,7 @@ compat on Linux 48 pass / 20 skip. After #49: Linux 172, Mac 198, compat Linux 5
295 not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on299 not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on
296 macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54:300 macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54:
297 Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip. After #57–#59: Linux 323,301 Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip. After #57–#59: Linux 323,
298-Mac 349, compat Linux 59/20.302+Mac 349, compat Linux 59/20. After #26/#28: Linux 327, Mac 353.
299 303
300 Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens,304 Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens,
301 stop, seed, presence/frequency_penalty (mlx window: last 20 tokens incl. prompt), plus extensions305 stop, seed, presence/frequency_penalty (mlx window: last 20 tokens incl. prompt), plus extensions
modified .tickets/issues/0026-show-memory-pressure.yaml +30 -8
@@ -1,12 +1,13 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 26
33 title: Show memory pressure
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-24T05:44:32.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z
9+updatedAt: 2026-11-27T06:40:00.000Z
10+closedAt: 2026-11-27T06:40:00.000Z
1011 labels:
1112 - "kind::feature"
1213 - "area::tui"
@@ -40,44 +41,54 @@ body: |
4041 tasks:
4142 - id: 1
4243 title: Choose the sources (memory pressure source / sysctl, vm_statistics64, MLX Memory, phys_footprint) and check them on the Mac
43- state: open
44+ state: closed
4445 priority: medium
4546 author:
4647 name: k33g
4748 email: ph.charriere@gmail.com
4849 createdAt: 2026-11-24T05:44:32.000Z
50+ updatedAt: 2026-11-27T06:40:00.000Z
51+ closedAt: 2026-11-27T06:40:00.000Z
4952 - id: 2
5053 title: MemoryMonitor protocol in Core, Darwin/MLX implementation, fake for tests
51- state: open
54+ state: closed
5255 priority: medium
5356 author:
5457 name: k33g
5558 email: ph.charriere@gmail.com
5659 createdAt: 2026-11-24T05:44:32.000Z
60+ updatedAt: 2026-11-27T06:40:00.000Z
61+ closedAt: 2026-11-27T06:40:00.000Z
5762 - id: 3
5863 title: Show it in the TUI title bar (coloured by pressure level)
59- state: open
64+ state: closed
6065 priority: medium
6166 author:
6267 name: k33g
6368 email: ph.charriere@gmail.com
6469 createdAt: 2026-11-24T05:44:32.000Z
70+ updatedAt: 2026-11-27T06:40:00.000Z
71+ closedAt: 2026-11-27T06:40:00.000Z
6572 - id: 4
6673 title: Add it to the CLI stats line, and warn on critical pressure
67- state: open
74+ state: closed
6875 priority: low
6976 author:
7077 name: k33g
7178 email: ph.charriere@gmail.com
7279 createdAt: 2026-11-24T05:44:32.000Z
80+ updatedAt: 2026-11-27T06:40:00.000Z
81+ closedAt: 2026-11-27T06:40:00.000Z
7382 - id: 5
7483 title: "Decide on a ui.show_memory key and on actions (clear MLX cache, refuse too-large models)"
75- state: open
84+ state: closed
7685 priority: low
7786 author:
7887 name: k33g
7988 email: ph.charriere@gmail.com
8089 createdAt: 2026-11-24T05:44:32.000Z
90+ updatedAt: 2026-11-27T06:40:00.000Z
91+ closedAt: 2026-11-27T06:40:00.000Z
8192 comments:
8293 - id: 1
8394 author:
@@ -86,4 +97,15 @@ comments:
8697 createdAt: 2026-11-26T08:00:00.000Z
8798 body: |
8899 Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent.
89-
100+ - id: 2
101+ author:
102+ name: k33g
103+ email: ph.charriere@gmail.com
104+ createdAt: 2026-11-27T06:40:00.000Z
105+ body: |
106+ Done on branch feature/v0.3-tui (1dea285, docs bb36d60), at the user's "termine tout".
107+ - Sources (task 1), checked on the Mac by the host-runner test (pressure, compressed and swap present): kern.memorystatus_vm_pressure_level (1/2/4 → normal/warning/critical), host_statistics64 free+speculative and compressor pages, vm.swapusage, proc_pid_rusage ri_phys_footprint; /proc/meminfo and /proc/self/status on Linux; MLX active/cache/peak/limit already in /rzb/status (#53).
108+ - Task 2: SystemMonitor.measure in RazorbillCore (Darwin code under canImport(Darwin)), a SystemReporter closure the server takes so tests pass fixed values. Measured on each GET /rzb/status (cheap); no Dispatch memory-pressure source, since the TUI polls.
109+ - Task 3: rzb tui shows a Machine line on the Dashboard and the pressure, coloured, in the status bar.
110+ - Task 4: not applicable — the run / chat stats line belonged to the agent removed in v0.2 (#31).
111+ - Task 5 (decision): no ui.show_memory switch (the Dashboard is the place for it) and no automatic action: the server already refuses a model that does not fit (503 insufficient_memory); MLX cache clearing on warning is left for a later ticket if needed.
@@ -1,12 +1,13 @@
1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2 id: 262 id: 26
3 title: Show memory pressure3 title: Show memory pressure
4-state: open4+state: closed
5 author:5 author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-24T05:44:32.000Z8 createdAt: 2026-11-24T05:44:32.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z9+updatedAt: 2026-11-27T06:40:00.000Z
10+closedAt: 2026-11-27T06:40:00.000Z
10 labels:11 labels:
11 - "kind::feature"12 - "kind::feature"
12 - "area::tui"13 - "area::tui"
@@ -40,44 +41,54 @@ body: |
40 tasks:41 tasks:
41 - id: 142 - id: 1
42 title: Choose the sources (memory pressure source / sysctl, vm_statistics64, MLX Memory, phys_footprint) and check them on the Mac43 title: Choose the sources (memory pressure source / sysctl, vm_statistics64, MLX Memory, phys_footprint) and check them on the Mac
43- state: open44+ state: closed
44 priority: medium45 priority: medium
45 author:46 author:
46 name: k33g47 name: k33g
47 email: ph.charriere@gmail.com48 email: ph.charriere@gmail.com
48 createdAt: 2026-11-24T05:44:32.000Z49 createdAt: 2026-11-24T05:44:32.000Z
50+ updatedAt: 2026-11-27T06:40:00.000Z
51+ closedAt: 2026-11-27T06:40:00.000Z
49 - id: 252 - id: 2
50 title: MemoryMonitor protocol in Core, Darwin/MLX implementation, fake for tests53 title: MemoryMonitor protocol in Core, Darwin/MLX implementation, fake for tests
51- state: open54+ state: closed
52 priority: medium55 priority: medium
53 author:56 author:
54 name: k33g57 name: k33g
55 email: ph.charriere@gmail.com58 email: ph.charriere@gmail.com
56 createdAt: 2026-11-24T05:44:32.000Z59 createdAt: 2026-11-24T05:44:32.000Z
60+ updatedAt: 2026-11-27T06:40:00.000Z
61+ closedAt: 2026-11-27T06:40:00.000Z
57 - id: 362 - id: 3
58 title: Show it in the TUI title bar (coloured by pressure level)63 title: Show it in the TUI title bar (coloured by pressure level)
59- state: open64+ state: closed
60 priority: medium65 priority: medium
61 author:66 author:
62 name: k33g67 name: k33g
63 email: ph.charriere@gmail.com68 email: ph.charriere@gmail.com
64 createdAt: 2026-11-24T05:44:32.000Z69 createdAt: 2026-11-24T05:44:32.000Z
70+ updatedAt: 2026-11-27T06:40:00.000Z
71+ closedAt: 2026-11-27T06:40:00.000Z
65 - id: 472 - id: 4
66 title: Add it to the CLI stats line, and warn on critical pressure73 title: Add it to the CLI stats line, and warn on critical pressure
67- state: open74+ state: closed
68 priority: low75 priority: low
69 author:76 author:
70 name: k33g77 name: k33g
71 email: ph.charriere@gmail.com78 email: ph.charriere@gmail.com
72 createdAt: 2026-11-24T05:44:32.000Z79 createdAt: 2026-11-24T05:44:32.000Z
80+ updatedAt: 2026-11-27T06:40:00.000Z
81+ closedAt: 2026-11-27T06:40:00.000Z
73 - id: 582 - id: 5
74 title: "Decide on a ui.show_memory key and on actions (clear MLX cache, refuse too-large models)"83 title: "Decide on a ui.show_memory key and on actions (clear MLX cache, refuse too-large models)"
75- state: open84+ state: closed
76 priority: low85 priority: low
77 author:86 author:
78 name: k33g87 name: k33g
79 email: ph.charriere@gmail.com88 email: ph.charriere@gmail.com
80 createdAt: 2026-11-24T05:44:32.000Z89 createdAt: 2026-11-24T05:44:32.000Z
90+ updatedAt: 2026-11-27T06:40:00.000Z
91+ closedAt: 2026-11-27T06:40:00.000Z
81 comments:92 comments:
82 - id: 193 - id: 1
83 author:94 author:
@@ -86,4 +97,15 @@ comments:
86 createdAt: 2026-11-26T08:00:00.000Z97 createdAt: 2026-11-26T08:00:00.000Z
87 body: |98 body: |
88 Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent.99 Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent.
89-100+ - id: 2
101+ author:
102+ name: k33g
103+ email: ph.charriere@gmail.com
104+ createdAt: 2026-11-27T06:40:00.000Z
105+ body: |
106+ Done on branch feature/v0.3-tui (1dea285, docs bb36d60), at the user's "termine tout".
107+ - Sources (task 1), checked on the Mac by the host-runner test (pressure, compressed and swap present): kern.memorystatus_vm_pressure_level (1/2/4 → normal/warning/critical), host_statistics64 free+speculative and compressor pages, vm.swapusage, proc_pid_rusage ri_phys_footprint; /proc/meminfo and /proc/self/status on Linux; MLX active/cache/peak/limit already in /rzb/status (#53).
108+ - Task 2: SystemMonitor.measure in RazorbillCore (Darwin code under canImport(Darwin)), a SystemReporter closure the server takes so tests pass fixed values. Measured on each GET /rzb/status (cheap); no Dispatch memory-pressure source, since the TUI polls.
109+ - Task 3: rzb tui shows a Machine line on the Dashboard and the pressure, coloured, in the status bar.
110+ - Task 4: not applicable — the run / chat stats line belonged to the agent removed in v0.2 (#31).
111+ - Task 5 (decision): no ui.show_memory switch (the Dashboard is the place for it) and no automatic action: the server already refuses a model that does not fit (503 insufficient_memory); MLX cache clearing on warning is left for a later ticket if needed.
modified .tickets/issues/0028-show-gpu-load.yaml +15 -4
@@ -6,7 +6,7 @@ author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-24T05:48:30.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z
9+updatedAt: 2026-11-27T06:40:00.000Z
1010 labels:
1111 - "kind::feature"
1212 - "area::tui"
@@ -48,20 +48,24 @@ tasks:
4848 createdAt: 2026-11-24T05:48:30.000Z
4949 - id: 2
5050 title: Add GPU utilisation to the system monitor of #26 (Darwin implementation + fake)
51- state: open
51+ state: closed
5252 priority: low
5353 author:
5454 name: k33g
5555 email: ph.charriere@gmail.com
5656 createdAt: 2026-11-24T05:48:30.000Z
57+ updatedAt: 2026-11-27T06:40:00.000Z
58+ closedAt: 2026-11-27T06:40:00.000Z
5759 - id: 3
5860 title: Show it in the TUI title bar and the CLI stats line; hide it when unavailable
59- state: open
61+ state: closed
6062 priority: low
6163 author:
6264 name: k33g
6365 email: ph.charriere@gmail.com
6466 createdAt: 2026-11-24T05:48:30.000Z
67+ updatedAt: 2026-11-27T06:40:00.000Z
68+ closedAt: 2026-11-27T06:40:00.000Z
6569 comments:
6670 - id: 1
6771 author:
@@ -70,4 +74,11 @@ comments:
7074 createdAt: 2026-11-26T08:00:00.000Z
7175 body: |
7276 Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent.
73-
77+ - id: 2
78+ author:
79+ name: k33g
80+ email: ph.charriere@gmail.com
81+ createdAt: 2026-11-27T06:40:00.000Z
82+ body: |
83+ Tasks 2-3 done (1dea285, docs bb36d60): SystemMonitor reads the highest "Device Utilization %" of the IOAccelerator services' PerformanceStatistics (IOKit, no root) on each status request; /rzb/status system.gpu_utilization, null when absent (Linux, or a GPU that does not publish the key); rzb tui shows "gpu N%" in the status bar and the Machine line, and hides it when null. The CLI stats part belonged to the removed agent.
84+ Task 1 stays open: the code compiles and runs on the Mac, but whether this Mac's GPU publishes the key (and its value under load) was not seen yet — check during the manual tests (Dashboard while generating, or curl /rzb/status | jq .system).
@@ -6,7 +6,7 @@ author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-24T05:48:30.000Z8 createdAt: 2026-11-24T05:48:30.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z9+updatedAt: 2026-11-27T06:40:00.000Z
10 labels:10 labels:
11 - "kind::feature"11 - "kind::feature"
12 - "area::tui"12 - "area::tui"
@@ -48,20 +48,24 @@ tasks:
48 createdAt: 2026-11-24T05:48:30.000Z48 createdAt: 2026-11-24T05:48:30.000Z
49 - id: 249 - id: 2
50 title: Add GPU utilisation to the system monitor of #26 (Darwin implementation + fake)50 title: Add GPU utilisation to the system monitor of #26 (Darwin implementation + fake)
51- state: open51+ state: closed
52 priority: low52 priority: low
53 author:53 author:
54 name: k33g54 name: k33g
55 email: ph.charriere@gmail.com55 email: ph.charriere@gmail.com
56 createdAt: 2026-11-24T05:48:30.000Z56 createdAt: 2026-11-24T05:48:30.000Z
57+ updatedAt: 2026-11-27T06:40:00.000Z
58+ closedAt: 2026-11-27T06:40:00.000Z
57 - id: 359 - id: 3
58 title: Show it in the TUI title bar and the CLI stats line; hide it when unavailable60 title: Show it in the TUI title bar and the CLI stats line; hide it when unavailable
59- state: open61+ state: closed
60 priority: low62 priority: low
61 author:63 author:
62 name: k33g64 name: k33g
63 email: ph.charriere@gmail.com65 email: ph.charriere@gmail.com
64 createdAt: 2026-11-24T05:48:30.000Z66 createdAt: 2026-11-24T05:48:30.000Z
67+ updatedAt: 2026-11-27T06:40:00.000Z
68+ closedAt: 2026-11-27T06:40:00.000Z
65 comments:69 comments:
66 - id: 170 - id: 1
67 author:71 author:
@@ -70,4 +74,11 @@ comments:
70 createdAt: 2026-11-26T08:00:00.000Z74 createdAt: 2026-11-26T08:00:00.000Z
71 body: |75 body: |
72 Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent.76 Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent.
73-77+ - id: 2
78+ author:
79+ name: k33g
80+ email: ph.charriere@gmail.com
81+ createdAt: 2026-11-27T06:40:00.000Z
82+ body: |
83+ Tasks 2-3 done (1dea285, docs bb36d60): SystemMonitor reads the highest "Device Utilization %" of the IOAccelerator services' PerformanceStatistics (IOKit, no root) on each status request; /rzb/status system.gpu_utilization, null when absent (Linux, or a GPU that does not publish the key); rzb tui shows "gpu N%" in the status bar and the Machine line, and hides it when null. The CLI stats part belonged to the removed agent.
84+ Task 1 stays open: the code compiles and runs on the Mac, but whether this Mac's GPU publishes the key (and its value under load) was not seen yet — check during the manual tests (Dashboard while generating, or curl /rzb/status | jq .system).
modified .tickets/issues/0056-tui-dashboard-screen.yaml +13 -3
@@ -1,12 +1,13 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 56
33 title: "TUI dashboard screen: loaded models, requests, memory, unload"
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-27T05:30:00.000Z
9+updatedAt: 2026-11-27T06:40:00.000Z
10+closedAt: 2026-11-27T06:40:00.000Z
1011 labels:
1112 - "kind::feature"
1213 - "area::tui"
@@ -47,12 +48,14 @@ tasks:
4748 closedAt: 2026-11-27T05:30:00.000Z
4849 - id: 3
4950 title: "Memory and GPU panel (#26, #28)"
50- state: open
51+ state: closed
5152 priority: medium
5253 author:
5354 name: k33g
5455 email: ph.charriere@gmail.com
5556 createdAt: 2026-11-26T08:00:00.000Z
57+ updatedAt: 2026-11-27T06:40:00.000Z
58+ closedAt: 2026-11-27T06:40:00.000Z
5659 comments:
5760 - id: 1
5861 author:
@@ -65,3 +68,10 @@ comments:
6568 - Recent requests: age, method and path, status, model, tokens, cached tokens, tok/s, duration. For this the server now records streamed answers' tokens and writes the history once the last byte is sent (duration_ms = to the last byte, new first_byte_ms); tok/s = completion tokens over duration_ms, prompt processing included.
6669 - Memory: a gauge of MLX active / limit, cache and peak.
6770 - Task 3 stays open: memory pressure (#26) and GPU load (#28) have no source yet; the panel waits for those tickets.
71+ - id: 2
72+ author:
73+ name: k33g
74+ email: ph.charriere@gmail.com
75+ createdAt: 2026-11-27T06:40:00.000Z
76+ body: |
77+ Task 3 done with #26/#28 (1dea285): the Dashboard's Machine line (pressure, available / installed, compressed, swap, rzb footprint, gpu) and gpu / pressure in the status bar.
@@ -1,12 +1,13 @@
1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2 id: 562 id: 56
3 title: "TUI dashboard screen: loaded models, requests, memory, unload"3 title: "TUI dashboard screen: loaded models, requests, memory, unload"
4-state: open4+state: closed
5 author:5 author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-26T08:00:00.000Z8 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-27T05:30:00.000Z9+updatedAt: 2026-11-27T06:40:00.000Z
10+closedAt: 2026-11-27T06:40:00.000Z
10 labels:11 labels:
11 - "kind::feature"12 - "kind::feature"
12 - "area::tui"13 - "area::tui"
@@ -47,12 +48,14 @@ tasks:
47 closedAt: 2026-11-27T05:30:00.000Z48 closedAt: 2026-11-27T05:30:00.000Z
48 - id: 349 - id: 3
49 title: "Memory and GPU panel (#26, #28)"50 title: "Memory and GPU panel (#26, #28)"
50- state: open51+ state: closed
51 priority: medium52 priority: medium
52 author:53 author:
53 name: k33g54 name: k33g
54 email: ph.charriere@gmail.com55 email: ph.charriere@gmail.com
55 createdAt: 2026-11-26T08:00:00.000Z56 createdAt: 2026-11-26T08:00:00.000Z
57+ updatedAt: 2026-11-27T06:40:00.000Z
58+ closedAt: 2026-11-27T06:40:00.000Z
56 comments:59 comments:
57 - id: 160 - id: 1
58 author:61 author:
@@ -65,3 +68,10 @@ comments:
65 - Recent requests: age, method and path, status, model, tokens, cached tokens, tok/s, duration. For this the server now records streamed answers' tokens and writes the history once the last byte is sent (duration_ms = to the last byte, new first_byte_ms); tok/s = completion tokens over duration_ms, prompt processing included.68 - Recent requests: age, method and path, status, model, tokens, cached tokens, tok/s, duration. For this the server now records streamed answers' tokens and writes the history once the last byte is sent (duration_ms = to the last byte, new first_byte_ms); tok/s = completion tokens over duration_ms, prompt processing included.
66 - Memory: a gauge of MLX active / limit, cache and peak.69 - Memory: a gauge of MLX active / limit, cache and peak.
67 - Task 3 stays open: memory pressure (#26) and GPU load (#28) have no source yet; the panel waits for those tickets.70 - Task 3 stays open: memory pressure (#26) and GPU load (#28) have no source yet; the panel waits for those tickets.
71+ - id: 2
72+ author:
73+ name: k33g
74+ email: ph.charriere@gmail.com
75+ createdAt: 2026-11-27T06:40:00.000Z
76+ body: |
77+ Task 3 done with #26/#28 (1dea285): the Dashboard's Machine line (pressure, available / installed, compressed, swap, rzb footprint, gpu) and gpu / pressure in the status bar.