bots-garden/razorbillpublic Fork
⑂ ab0f687
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

#51 spike: v0.4 TUI scope recorded, v0.1 TUI layer inventoried

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-26T05:58:58+01:00 Browse files
ab0f687 parent: 4879667
modified .memory/handoffs/2026-11-25-v0-2-server-foundation.md +2 -1
@@ -127,5 +127,6 @@ To finish the release, on the Mac (user): `scripts/release.sh` (first run rebuil
127127 `.build/release`, ~10 min), `scripts/compat.sh` (not run on the Mac since #44), try the unpacked
128128 archive with `rzb serve`; then `git tag -a v0.2.0` on main. Not checked: whether `rzb` still finds
129129 its bundles when started through a symlink (docs say: put the folder on PATH). Next milestones:
130-v0.4 TUI — start with spike #51 (ask the user which TUI: chat client / dashboard / both); v1.0.0
130+v0.4 TUI — spike #51: scope = chat + dashboard + models + settings; open: HTTP client + admin API
131+vs. in-process server, and what settings covers (see #51 comment 1). v1.0.0
131132 signing #52. #47 leftovers have no milestone.
@@ -127,5 +127,6 @@ To finish the release, on the Mac (user): `scripts/release.sh` (first run rebuil
127 `.build/release`, ~10 min), `scripts/compat.sh` (not run on the Mac since #44), try the unpacked127 `.build/release`, ~10 min), `scripts/compat.sh` (not run on the Mac since #44), try the unpacked
128 archive with `rzb serve`; then `git tag -a v0.2.0` on main. Not checked: whether `rzb` still finds128 archive with `rzb serve`; then `git tag -a v0.2.0` on main. Not checked: whether `rzb` still finds
129 its bundles when started through a symlink (docs say: put the folder on PATH). Next milestones:129 its bundles when started through a symlink (docs say: put the folder on PATH). Next milestones:
130-v0.4 TUI — start with spike #51 (ask the user which TUI: chat client / dashboard / both); v1.0.0130+v0.4 TUI — spike #51: scope = chat + dashboard + models + settings; open: HTTP client + admin API
131+vs. in-process server, and what settings covers (see #51 comment 1). v1.0.0
131 signing #52. #47 leftovers have no milestone.132 signing #52. #47 leftovers have no milestone.
modified .memory/history.md +8 -0
@@ -320,3 +320,11 @@ Distribution. Rejected: zip (tar.gz is what curl+tar users expect; zip comes bac
320320 notarization in #52), copying rzb alone (bundles must sit next to it). Not tagged: waits for the
321321 Mac build of the archive and a Mac compat run. Tests Linux 172; gate PASS; links 0 broken. Docs:
322322 how-to package-a-release / preparer-une-release, build guide, README, indexes.
323+
324+## 2026-11-26 — v0.4 TUI scope (spike #51, tasks 1–2)
325+
326+User: the TUI should be both a chat client and a server dashboard, plus model management and
327+settings. Recorded on #51 (comment 1) with the inventory of the v0.1 TUI layer (Terminal, Key,
328+TextLayout and the pure state/renderer pattern reusable; ChatState/TUIApp agent-bound). Two
329+decisions put to the user, not answered yet (they asked to clarify first): HTTP client + own admin
330+API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers.
@@ -320,3 +320,11 @@ Distribution. Rejected: zip (tar.gz is what curl+tar users expect; zip comes bac
320 notarization in #52), copying rzb alone (bundles must sit next to it). Not tagged: waits for the320 notarization in #52), copying rzb alone (bundles must sit next to it). Not tagged: waits for the
321 Mac build of the archive and a Mac compat run. Tests Linux 172; gate PASS; links 0 broken. Docs:321 Mac build of the archive and a Mac compat run. Tests Linux 172; gate PASS; links 0 broken. Docs:
322 how-to package-a-release / preparer-une-release, build guide, README, indexes.322 how-to package-a-release / preparer-une-release, build guide, README, indexes.
323+
324+## 2026-11-26 — v0.4 TUI scope (spike #51, tasks 1–2)
325+
326+User: the TUI should be both a chat client and a server dashboard, plus model management and
327+settings. Recorded on #51 (comment 1) with the inventory of the v0.1 TUI layer (Terminal, Key,
328+TextLayout and the pure state/renderer pattern reusable; ChatState/TUIApp agent-bound). Two
329+decisions put to the user, not answered yet (they asked to clarify first): HTTP client + own admin
330+API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers.
modified .tickets/issues/0051-spike-what-the-tui-is-for-in-the-server.yaml +24 -4
@@ -6,7 +6,7 @@ author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-26T06:00:00.000Z
9-updatedAt: 2026-11-26T06:00:00.000Z
9+updatedAt: 2026-11-26T07:00:00.000Z
1010 labels:
1111 - "spike"
1212 - "needs-decision"
@@ -34,20 +34,24 @@ body: |
3434 tasks:
3535 - id: 1
3636 title: "Clarify the scope with the user"
37- state: open
37+ state: closed
3838 priority: high
3939 author:
4040 name: k33g
4141 email: ph.charriere@gmail.com
4242 createdAt: 2026-11-26T06:00:00.000Z
43+ updatedAt: 2026-11-26T07:00:00.000Z
44+ closedAt: 2026-11-26T07:00:00.000Z
4345 - id: 2
4446 title: "Inventory the v0.1 TUI layer (tag v0.1-agent) and what can be reused"
45- state: open
47+ state: closed
4648 priority: medium
4749 author:
4850 name: k33g
4951 email: ph.charriere@gmail.com
5052 createdAt: 2026-11-26T06:00:00.000Z
53+ updatedAt: 2026-11-26T07:00:00.000Z
54+ closedAt: 2026-11-26T07:00:00.000Z
5155 - id: 3
5256 title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets"
5357 state: open
@@ -56,4 +60,20 @@ tasks:
5660 name: k33g
5761 email: ph.charriere@gmail.com
5862 createdAt: 2026-11-26T06:00:00.000Z
59-comments: []
63+comments:
64+ - id: 1
65+ author:
66+ name: k33g
67+ email: ph.charriere@gmail.com
68+ createdAt: 2026-11-26T07:00:00.000Z
69+ body: |
70+ Scope given by the user (2026-11-26): "les 2, plus gestion des modèles, settings, ...": chat client **and** server dashboard, plus model management and settings.
71+
72+ ## Inventory of the v0.1 TUI layer (tag v0.1-agent, Sources/RazorbillTUI, ~780 lines + ~380 lines of tests)
73+ - Reusable as is: `Terminal` protocol + `PosixTerminal` (raw mode, alternate screen, size, signal handlers that restore the terminal), `Key` (escape-sequence decoding), `TextLayout` (wrapping), and the pattern "pure state + `handle(key) -> Action` + pure renderer -> `Screen`", which made everything testable on Linux with a fake terminal.
74+ - To rewrite: `ChatState` / `TUIApp` are tied to the agent (agent events, bash-tool confirmations). The renderer knows one screen only; v0.4 needs several screens (tabs) and lists / forms.
75+
76+ ## Decisions to take before writing the tickets
77+ 1. Where the TUI gets its data: client of a running `rzb serve` over HTTP (needs a razorbill admin API, which revisits the "OpenAI-compatible API only" decision of #31), or the server running inside the TUI process.
78+ 2. What "settings" means: TUI preferences, the server configuration file, or both.
79+
@@ -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-26T06:00:00.000Z8 createdAt: 2026-11-26T06:00:00.000Z
9-updatedAt: 2026-11-26T06:00:00.000Z9+updatedAt: 2026-11-26T07:00:00.000Z
10 labels:10 labels:
11 - "spike"11 - "spike"
12 - "needs-decision"12 - "needs-decision"
@@ -34,20 +34,24 @@ body: |
34 tasks:34 tasks:
35 - id: 135 - id: 1
36 title: "Clarify the scope with the user"36 title: "Clarify the scope with the user"
37- state: open37+ state: closed
38 priority: high38 priority: high
39 author:39 author:
40 name: k33g40 name: k33g
41 email: ph.charriere@gmail.com41 email: ph.charriere@gmail.com
42 createdAt: 2026-11-26T06:00:00.000Z42 createdAt: 2026-11-26T06:00:00.000Z
43+ updatedAt: 2026-11-26T07:00:00.000Z
44+ closedAt: 2026-11-26T07:00:00.000Z
43 - id: 245 - id: 2
44 title: "Inventory the v0.1 TUI layer (tag v0.1-agent) and what can be reused"46 title: "Inventory the v0.1 TUI layer (tag v0.1-agent) and what can be reused"
45- state: open47+ state: closed
46 priority: medium48 priority: medium
47 author:49 author:
48 name: k33g50 name: k33g
49 email: ph.charriere@gmail.com51 email: ph.charriere@gmail.com
50 createdAt: 2026-11-26T06:00:00.000Z52 createdAt: 2026-11-26T06:00:00.000Z
53+ updatedAt: 2026-11-26T07:00:00.000Z
54+ closedAt: 2026-11-26T07:00:00.000Z
51 - id: 355 - id: 3
52 title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets"56 title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets"
53 state: open57 state: open
@@ -56,4 +60,20 @@ tasks:
56 name: k33g60 name: k33g
57 email: ph.charriere@gmail.com61 email: ph.charriere@gmail.com
58 createdAt: 2026-11-26T06:00:00.000Z62 createdAt: 2026-11-26T06:00:00.000Z
59-comments: []63+comments:
64+ - id: 1
65+ author:
66+ name: k33g
67+ email: ph.charriere@gmail.com
68+ createdAt: 2026-11-26T07:00:00.000Z
69+ body: |
70+ Scope given by the user (2026-11-26): "les 2, plus gestion des modèles, settings, ...": chat client **and** server dashboard, plus model management and settings.
71+
72+ ## Inventory of the v0.1 TUI layer (tag v0.1-agent, Sources/RazorbillTUI, ~780 lines + ~380 lines of tests)
73+ - Reusable as is: `Terminal` protocol + `PosixTerminal` (raw mode, alternate screen, size, signal handlers that restore the terminal), `Key` (escape-sequence decoding), `TextLayout` (wrapping), and the pattern "pure state + `handle(key) -> Action` + pure renderer -> `Screen`", which made everything testable on Linux with a fake terminal.
74+ - To rewrite: `ChatState` / `TUIApp` are tied to the agent (agent events, bash-tool confirmations). The renderer knows one screen only; v0.4 needs several screens (tabs) and lists / forms.
75+
76+ ## Decisions to take before writing the tickets
77+ 1. Where the TUI gets its data: client of a running `rzb serve` over HTTP (needs a razorbill admin API, which revisits the "OpenAI-compatible API only" decision of #31), or the server running inside the TUI process.
78+ 2. What "settings" means: TUI preferences, the server configuration file, or both.
79+