memory + tickets: #26 and #56 closed, #28 waits for the GPU key check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
228c5b0 parent: bb36d60 modified
.memory/handoffs/2026-11-27-v0-3-tui-foundation.md +5 -0 | @@ -27,3 +27,8 @@ | ||
| 27 | 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 | 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 | 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. | |
| @@ -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. | ||
| 527 | 527 | - **Quality**: run #39 FAIL (1 smell, fixed), run #40 PASS (0/0/0). |
| 528 | 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 | 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. | |
| @@ -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 ` | ||
| 166 | 166 | `/rzb/status` has `config_file`. TUIApp actions split into `TUIApp+Models.swift` and |
| 167 | 167 | `TUIApp+Settings.swift` (members internal for that). `rzb tui` precedence: options > tui.yaml |
| 168 | 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 | 174 | ## 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 | 299 | not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on |
| 296 | 300 | macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54: |
| 297 | 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 | 304 | Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens, |
| 301 | 305 | 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` and | 166 | `/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.yaml | 167 | `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 force | 174 | ## 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 on | 299 | 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 extensions | 305 | 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 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 26 |
| 3 | 3 | title: Show memory pressure |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | 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 | |
| 10 | 11 | labels: |
| 11 | 12 | - "kind::feature" |
| 12 | 13 | - "area::tui" |
| @@ -40,44 +41,54 @@ body: | | ||
| 40 | 41 | tasks: |
| 41 | 42 | - id: 1 |
| 42 | 43 | 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 | |
| 44 | 45 | priority: medium |
| 45 | 46 | author: |
| 46 | 47 | name: k33g |
| 47 | 48 | email: ph.charriere@gmail.com |
| 48 | 49 | createdAt: 2026-11-24T05:44:32.000Z |
| 50 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 51 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 49 | 52 | - id: 2 |
| 50 | 53 | title: MemoryMonitor protocol in Core, Darwin/MLX implementation, fake for tests |
| 51 | - state: open | |
| 54 | + state: closed | |
| 52 | 55 | priority: medium |
| 53 | 56 | author: |
| 54 | 57 | name: k33g |
| 55 | 58 | email: ph.charriere@gmail.com |
| 56 | 59 | createdAt: 2026-11-24T05:44:32.000Z |
| 60 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 61 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 57 | 62 | - id: 3 |
| 58 | 63 | title: Show it in the TUI title bar (coloured by pressure level) |
| 59 | - state: open | |
| 64 | + state: closed | |
| 60 | 65 | priority: medium |
| 61 | 66 | author: |
| 62 | 67 | name: k33g |
| 63 | 68 | email: ph.charriere@gmail.com |
| 64 | 69 | createdAt: 2026-11-24T05:44:32.000Z |
| 70 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 71 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 65 | 72 | - id: 4 |
| 66 | 73 | title: Add it to the CLI stats line, and warn on critical pressure |
| 67 | - state: open | |
| 74 | + state: closed | |
| 68 | 75 | priority: low |
| 69 | 76 | author: |
| 70 | 77 | name: k33g |
| 71 | 78 | email: ph.charriere@gmail.com |
| 72 | 79 | createdAt: 2026-11-24T05:44:32.000Z |
| 80 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 81 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 73 | 82 | - id: 5 |
| 74 | 83 | title: "Decide on a ui.show_memory key and on actions (clear MLX cache, refuse too-large models)" |
| 75 | - state: open | |
| 84 | + state: closed | |
| 76 | 85 | priority: low |
| 77 | 86 | author: |
| 78 | 87 | name: k33g |
| 79 | 88 | email: ph.charriere@gmail.com |
| 80 | 89 | createdAt: 2026-11-24T05:44:32.000Z |
| 90 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 91 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 81 | 92 | comments: |
| 82 | 93 | - id: 1 |
| 83 | 94 | author: |
| @@ -86,4 +97,15 @@ comments: | ||
| 86 | 97 | createdAt: 2026-11-26T08:00:00.000Z |
| 87 | 98 | body: | |
| 88 | 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. | |
| @@ -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: 26 | 2 | id: 26 |
| 3 | title: Show memory pressure | 3 | title: Show memory pressure |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-24T05:44:32.000Z | 8 | 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 | ||
| 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: 1 | 42 | - id: 1 |
| 42 | title: Choose the sources (memory pressure source / sysctl, vm_statistics64, MLX Memory, phys_footprint) and check them on the Mac | 43 | 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 |
| 44 | priority: medium | 45 | priority: medium |
| 45 | author: | 46 | author: |
| 46 | name: k33g | 47 | name: k33g |
| 47 | email: ph.charriere@gmail.com | 48 | email: ph.charriere@gmail.com |
| 48 | createdAt: 2026-11-24T05:44:32.000Z | 49 | 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: 2 | 52 | - id: 2 |
| 50 | title: MemoryMonitor protocol in Core, Darwin/MLX implementation, fake for tests | 53 | title: MemoryMonitor protocol in Core, Darwin/MLX implementation, fake for tests |
| 51 | - state: open | 54 | + state: closed |
| 52 | priority: medium | 55 | priority: medium |
| 53 | author: | 56 | author: |
| 54 | name: k33g | 57 | name: k33g |
| 55 | email: ph.charriere@gmail.com | 58 | email: ph.charriere@gmail.com |
| 56 | createdAt: 2026-11-24T05:44:32.000Z | 59 | 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: 3 | 62 | - 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: open | 64 | + state: closed |
| 60 | priority: medium | 65 | priority: medium |
| 61 | author: | 66 | author: |
| 62 | name: k33g | 67 | name: k33g |
| 63 | email: ph.charriere@gmail.com | 68 | email: ph.charriere@gmail.com |
| 64 | createdAt: 2026-11-24T05:44:32.000Z | 69 | 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: 4 | 72 | - id: 4 |
| 66 | title: Add it to the CLI stats line, and warn on critical pressure | 73 | title: Add it to the CLI stats line, and warn on critical pressure |
| 67 | - state: open | 74 | + state: closed |
| 68 | priority: low | 75 | priority: low |
| 69 | author: | 76 | author: |
| 70 | name: k33g | 77 | name: k33g |
| 71 | email: ph.charriere@gmail.com | 78 | email: ph.charriere@gmail.com |
| 72 | createdAt: 2026-11-24T05:44:32.000Z | 79 | 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: 5 | 82 | - 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: open | 84 | + state: closed |
| 76 | priority: low | 85 | priority: low |
| 77 | author: | 86 | author: |
| 78 | name: k33g | 87 | name: k33g |
| 79 | email: ph.charriere@gmail.com | 88 | email: ph.charriere@gmail.com |
| 80 | createdAt: 2026-11-24T05:44:32.000Z | 89 | 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: 1 | 93 | - id: 1 |
| 83 | author: | 94 | author: |
| @@ -86,4 +97,15 @@ comments: | |||
| 86 | createdAt: 2026-11-26T08:00:00.000Z | 97 | 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: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-24T05:48:30.000Z |
| 9 | -updatedAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-27T06:40:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - "kind::feature" |
| 12 | 12 | - "area::tui" |
| @@ -48,20 +48,24 @@ tasks: | ||
| 48 | 48 | createdAt: 2026-11-24T05:48:30.000Z |
| 49 | 49 | - id: 2 |
| 50 | 50 | title: Add GPU utilisation to the system monitor of #26 (Darwin implementation + fake) |
| 51 | - state: open | |
| 51 | + state: closed | |
| 52 | 52 | priority: low |
| 53 | 53 | author: |
| 54 | 54 | name: k33g |
| 55 | 55 | email: ph.charriere@gmail.com |
| 56 | 56 | createdAt: 2026-11-24T05:48:30.000Z |
| 57 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 58 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 57 | 59 | - id: 3 |
| 58 | 60 | title: Show it in the TUI title bar and the CLI stats line; hide it when unavailable |
| 59 | - state: open | |
| 61 | + state: closed | |
| 60 | 62 | priority: low |
| 61 | 63 | author: |
| 62 | 64 | name: k33g |
| 63 | 65 | email: ph.charriere@gmail.com |
| 64 | 66 | createdAt: 2026-11-24T05:48:30.000Z |
| 67 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 68 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 65 | 69 | comments: |
| 66 | 70 | - id: 1 |
| 67 | 71 | author: |
| @@ -70,4 +74,11 @@ comments: | ||
| 70 | 74 | createdAt: 2026-11-26T08:00:00.000Z |
| 71 | 75 | body: | |
| 72 | 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). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-24T05:48:30.000Z | 8 | createdAt: 2026-11-24T05:48:30.000Z |
| 9 | -updatedAt: 2026-11-26T08:00:00.000Z | 9 | +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.000Z | 48 | createdAt: 2026-11-24T05:48:30.000Z |
| 49 | - id: 2 | 49 | - 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: open | 51 | + state: closed |
| 52 | priority: low | 52 | priority: low |
| 53 | author: | 53 | author: |
| 54 | name: k33g | 54 | name: k33g |
| 55 | email: ph.charriere@gmail.com | 55 | email: ph.charriere@gmail.com |
| 56 | createdAt: 2026-11-24T05:48:30.000Z | 56 | 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: 3 | 59 | - id: 3 |
| 58 | title: Show it in the TUI title bar and the CLI stats line; hide it when unavailable | 60 | title: Show it in the TUI title bar and the CLI stats line; hide it when unavailable |
| 59 | - state: open | 61 | + state: closed |
| 60 | priority: low | 62 | priority: low |
| 61 | author: | 63 | author: |
| 62 | name: k33g | 64 | name: k33g |
| 63 | email: ph.charriere@gmail.com | 65 | email: ph.charriere@gmail.com |
| 64 | createdAt: 2026-11-24T05:48:30.000Z | 66 | 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: 1 | 70 | - id: 1 |
| 67 | author: | 71 | author: |
| @@ -70,4 +74,11 @@ comments: | |||
| 70 | createdAt: 2026-11-26T08:00:00.000Z | 74 | 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 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 56 |
| 3 | 3 | title: "TUI dashboard screen: loaded models, requests, memory, unload" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | 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 | |
| 10 | 11 | labels: |
| 11 | 12 | - "kind::feature" |
| 12 | 13 | - "area::tui" |
| @@ -47,12 +48,14 @@ tasks: | ||
| 47 | 48 | closedAt: 2026-11-27T05:30:00.000Z |
| 48 | 49 | - id: 3 |
| 49 | 50 | title: "Memory and GPU panel (#26, #28)" |
| 50 | - state: open | |
| 51 | + state: closed | |
| 51 | 52 | priority: medium |
| 52 | 53 | author: |
| 53 | 54 | name: k33g |
| 54 | 55 | email: ph.charriere@gmail.com |
| 55 | 56 | createdAt: 2026-11-26T08:00:00.000Z |
| 57 | + updatedAt: 2026-11-27T06:40:00.000Z | |
| 58 | + closedAt: 2026-11-27T06:40:00.000Z | |
| 56 | 59 | comments: |
| 57 | 60 | - id: 1 |
| 58 | 61 | author: |
| @@ -65,3 +68,10 @@ comments: | ||
| 65 | 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 | 69 | - Memory: a gauge of MLX active / limit, cache and peak. |
| 67 | 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. | |
| @@ -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: 56 | 2 | id: 56 |
| 3 | title: "TUI dashboard screen: loaded models, requests, memory, unload" | 3 | title: "TUI dashboard screen: loaded models, requests, memory, unload" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-26T08:00:00.000Z | 8 | 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 | ||
| 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.000Z | 48 | closedAt: 2026-11-27T05:30:00.000Z |
| 48 | - id: 3 | 49 | - id: 3 |
| 49 | title: "Memory and GPU panel (#26, #28)" | 50 | title: "Memory and GPU panel (#26, #28)" |
| 50 | - state: open | 51 | + state: closed |
| 51 | priority: medium | 52 | priority: medium |
| 52 | author: | 53 | author: |
| 53 | name: k33g | 54 | name: k33g |
| 54 | email: ph.charriere@gmail.com | 55 | email: ph.charriere@gmail.com |
| 55 | createdAt: 2026-11-26T08:00:00.000Z | 56 | 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: 1 | 60 | - 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. | ||