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

Close #43: compatibility suite green on the Mac (46 passed, 1 skipped)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-25T19:36:28+01:00 Browse files
9be357d parent: 21f251c
modified .memory/handoffs/2026-11-25-v0-2-server-foundation.md +5 -0
@@ -82,3 +82,8 @@ the end of the file) before starting #43; fix the ❌ first. Delete the file onc
8282 answers 409 to everything. The user must stop `rzb serve` on the Mac. Don't serve through the
8383 host-runner without a way to stop it (idea: a `stop` action in host_runner.py).
8484 - Model-produced tool-call arguments still come out key-sorted (mlx-swift-lm gives a Dictionary).
85+
86+## Update — #43 closed
87+Mac compat run green (46 pass, 1 skip). Next: #44 (`/v1/completions`), then #45 (docs EN+FR; write
88+curl examples in `docs/*/reference/*.md` as ```bash blocks hitting http://127.0.0.1:8080/v1 so
89+`test_docs_curl.py` runs them; tag model-dependent ones `# real model`).
@@ -82,3 +82,8 @@ the end of the file) before starting #43; fix the ❌ first. Delete the file onc
82 answers 409 to everything. The user must stop `rzb serve` on the Mac. Don't serve through the82 answers 409 to everything. The user must stop `rzb serve` on the Mac. Don't serve through the
83 host-runner without a way to stop it (idea: a `stop` action in host_runner.py).83 host-runner without a way to stop it (idea: a `stop` action in host_runner.py).
84 - Model-produced tool-call arguments still come out key-sorted (mlx-swift-lm gives a Dictionary).84 - Model-produced tool-call arguments still come out key-sorted (mlx-swift-lm gives a Dictionary).
85+
86+## Update — #43 closed
87+Mac compat run green (46 pass, 1 skip). Next: #44 (`/v1/completions`), then #45 (docs EN+FR; write
88+curl examples in `docs/*/reference/*.md` as ```bash blocks hitting http://127.0.0.1:8080/v1 so
89+`test_docs_curl.py` runs them; tag model-dependent ones `# real model`).
modified .memory/history.md +2 -0
@@ -235,3 +235,5 @@ Qwen3-0.6B looped ("tuna tuna…") to max_tokens on "Tell me a joke." once the J
235235 added. Model degeneration, not a server bug: prompt changed to a factual question, and the test now
236236 checks finish_reason == stop first (readable failure). Mac 178 pass. compat.sh fixed to always rebuild
237237 (it would have tested a stale Release binary). Compat run on the Mac handed to the user.
238+User ran `scripts/compat.sh` on the Mac: 46 passed, 1 skipped (docs curl, until #45), 80 s. #43
239+closed; its task 3 (manual check with a chat UI) left open as a manual follow-up.
@@ -235,3 +235,5 @@ Qwen3-0.6B looped ("tuna tuna…") to max_tokens on "Tell me a joke." once the J
235 added. Model degeneration, not a server bug: prompt changed to a factual question, and the test now235 added. Model degeneration, not a server bug: prompt changed to a factual question, and the test now
236 checks finish_reason == stop first (readable failure). Mac 178 pass. compat.sh fixed to always rebuild236 checks finish_reason == stop first (readable failure). Mac 178 pass. compat.sh fixed to always rebuild
237 (it would have tested a stale Release binary). Compat run on the Mac handed to the user.237 (it would have tested a stale Release binary). Compat run on the Mac handed to the user.
238+User ran `scripts/compat.sh` on the Mac: 46 passed, 1 skipped (docs curl, until #45), 80 s. #43
239+closed; its task 3 (manual check with a chat UI) left open as a manual follow-up.
modified .memory/summary.md +4 -3
@@ -79,7 +79,8 @@ holds a `ConfigMap` (insertion-ordered, order-insensitive `==`); `JSONDecoder` l
7979 (`OrderedJSONReader.swift`) for `response_format` and tool `parameters`; `jsonString` writes map
8080 order. `response_format` json_object/json_schema also adds an instruction (with the schema) to the
8181 system message (`formatInstruction`): without it Qwen3-4B with reasoning filled fields with prose /
82-looped on digits. Next: #43 Mac run, then #44, #45.
82+looped on digits. #43 closed. Next: #44 legacy completions, #45 docs (EN+FR, with curl examples
83+the compat suite runs).
8384
8485 ## Architecture of v0.1 (agent, removed on the v0.2 branch)
8586
@@ -178,8 +179,8 @@ Server tests start the real server on a random port (`HummingbirdTesting` `.live
178179 the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids
179180 `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running
180181 server instead. Linux = fake engine (protocol only, `real_model` tests skipped): 28 pass, 19 skip.
181-Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes; re-run after them
182-awaits the user (run on the Mac). compat.sh always rebuilds rzb (incremental) unless RZB_BIN is set.
182+Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes; re-run after them:
183+46 pass, 1 skip (docs curl, until #45), 80 s. compat.sh always rebuilds rzb (incremental) unless RZB_BIN is set.
183184 Tests 2026-11-25 after #43 fixes: Linux 155, Mac 178.
184185
185186 ## mlx-swift-lm API version trap
@@ -79,7 +79,8 @@ holds a `ConfigMap` (insertion-ordered, order-insensitive `==`); `JSONDecoder` l
79 (`OrderedJSONReader.swift`) for `response_format` and tool `parameters`; `jsonString` writes map79 (`OrderedJSONReader.swift`) for `response_format` and tool `parameters`; `jsonString` writes map
80 order. `response_format` json_object/json_schema also adds an instruction (with the schema) to the80 order. `response_format` json_object/json_schema also adds an instruction (with the schema) to the
81 system message (`formatInstruction`): without it Qwen3-4B with reasoning filled fields with prose /81 system message (`formatInstruction`): without it Qwen3-4B with reasoning filled fields with prose /
82-looped on digits. Next: #43 Mac run, then #44, #45.82+looped on digits. #43 closed. Next: #44 legacy completions, #45 docs (EN+FR, with curl examples
83+the compat suite runs).
83 84
84 ## Architecture of v0.1 (agent, removed on the v0.2 branch)85 ## Architecture of v0.1 (agent, removed on the v0.2 branch)
85 86
@@ -178,8 +179,8 @@ Server tests start the real server on a random port (`HummingbirdTesting` `.live
178 the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids179 the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids
179 `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running180 `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running
180 server instead. Linux = fake engine (protocol only, `real_model` tests skipped): 28 pass, 19 skip.181 server instead. Linux = fake engine (protocol only, `real_model` tests skipped): 28 pass, 19 skip.
181-Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes; re-run after them182+Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes; re-run after them:
182-awaits the user (run on the Mac). compat.sh always rebuilds rzb (incremental) unless RZB_BIN is set.183+46 pass, 1 skip (docs curl, until #45), 80 s. compat.sh always rebuilds rzb (incremental) unless RZB_BIN is set.
183 Tests 2026-11-25 after #43 fixes: Linux 155, Mac 178.184 Tests 2026-11-25 after #43 fixes: Linux 155, Mac 178.
184 185
185 ## mlx-swift-lm API version trap186 ## mlx-swift-lm API version trap
modified .tickets/issues/0043-openai-compatibility-test-suite-with-official-cl.yaml +11 -2
@@ -1,12 +1,12 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 43
33 title: "OpenAI compatibility test suite with official clients"
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-24T21:17:08.000Z
9-updatedAt: 2026-11-25T18:00:00.000Z
9+updatedAt: 2026-11-25T19:30:00.000Z
1010 labels:
1111 - "kind::chore"
1212 - "area::server"
@@ -64,3 +64,12 @@ comments:
6464 Linux/fake: 28 pass, 19 skip. Mac/MLX first run: 45/46; the failure (parse() with reasoning)
6565 led to two fixes: schema key order kept (ConfigMap + ordered JSON reader) and a schema
6666 instruction added to the system message. Mac re-run pending.
67+ - id: 2
68+ author:
69+ name: k33g
70+ email: ph.charriere@gmail.com
71+ createdAt: 2026-11-25T19:30:00.000Z
72+ body: |
73+ Mac re-run after the fixes (scripts/compat.sh, MLX: Qwen3-4B, bge-small, Llama-3.2-3B):
74+ 46 passed, 1 skipped (docs curl examples, coming with #45), 80 s. XCTest: Mac 178, Linux 155.
75+ Closed; task 3 (manual check with a chat UI such as Open WebUI) stays open as a manual follow-up.
@@ -1,12 +1,12 @@
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: 432 id: 43
3 title: "OpenAI compatibility test suite with official clients"3 title: "OpenAI compatibility test suite with official clients"
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-24T21:17:08.000Z8 createdAt: 2026-11-24T21:17:08.000Z
9-updatedAt: 2026-11-25T18:00:00.000Z9+updatedAt: 2026-11-25T19:30:00.000Z
10 labels:10 labels:
11 - "kind::chore"11 - "kind::chore"
12 - "area::server"12 - "area::server"
@@ -64,3 +64,12 @@ comments:
64 Linux/fake: 28 pass, 19 skip. Mac/MLX first run: 45/46; the failure (parse() with reasoning)64 Linux/fake: 28 pass, 19 skip. Mac/MLX first run: 45/46; the failure (parse() with reasoning)
65 led to two fixes: schema key order kept (ConfigMap + ordered JSON reader) and a schema65 led to two fixes: schema key order kept (ConfigMap + ordered JSON reader) and a schema
66 instruction added to the system message. Mac re-run pending.66 instruction added to the system message. Mac re-run pending.
67+ - id: 2
68+ author:
69+ name: k33g
70+ email: ph.charriere@gmail.com
71+ createdAt: 2026-11-25T19:30:00.000Z
72+ body: |
73+ Mac re-run after the fixes (scripts/compat.sh, MLX: Qwen3-4B, bge-small, Llama-3.2-3B):
74+ 46 passed, 1 skipped (docs curl examples, coming with #45), 80 s. XCTest: Mac 178, Linux 155.
75+ Closed; task 3 (manual check with a chat UI such as Open WebUI) stays open as a manual follow-up.