Close #43: compatibility suite green on the Mac (46 passed, 1 skipped)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 | ||
| 82 | 82 | answers 409 to everything. The user must stop `rzb serve` on the Mac. Don't serve through the |
| 83 | 83 | host-runner without a way to stop it (idea: a `stop` action in host_runner.py). |
| 84 | 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`). | |
| @@ -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 the | 82 | 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 | ||
| 235 | 235 | added. Model degeneration, not a server bug: prompt changed to a factual question, and the test now |
| 236 | 236 | checks finish_reason == stop first (readable failure). Mac 178 pass. compat.sh fixed to always rebuild |
| 237 | 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. | |
| @@ -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 now | 235 | 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 rebuild | 236 | 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 | ||
| 79 | 79 | (`OrderedJSONReader.swift`) for `response_format` and tool `parameters`; `jsonString` writes map |
| 80 | 80 | order. `response_format` json_object/json_schema also adds an instruction (with the schema) to the |
| 81 | 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 | 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 | 179 | the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids |
| 179 | 180 | `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running |
| 180 | 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 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. | |
| 183 | 184 | Tests 2026-11-25 after #43 fixes: Linux 155, Mac 178. |
| 184 | 185 | |
| 185 | 186 | ## 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 map | 79 | (`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 the | 80 | 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 ids | 179 | 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 running | 180 | `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 them | 182 | +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 trap | 186 | ## mlx-swift-lm API version trap |
modified
.tickets/issues/0043-openai-compatibility-test-suite-with-official-cl.yaml +11 -2 | @@ -1,12 +1,12 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 43 |
| 3 | 3 | title: "OpenAI compatibility test suite with official clients" |
| 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-24T21:17:08.000Z |
| 9 | -updatedAt: 2026-11-25T18:00:00.000Z | |
| 9 | +updatedAt: 2026-11-25T19:30:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - "kind::chore" |
| 12 | 12 | - "area::server" |
| @@ -64,3 +64,12 @@ comments: | ||
| 64 | 64 | Linux/fake: 28 pass, 19 skip. Mac/MLX first run: 45/46; the failure (parse() with reasoning) |
| 65 | 65 | led to two fixes: schema key order kept (ConfigMap + ordered JSON reader) and a schema |
| 66 | 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. | |
| @@ -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: 43 | 2 | id: 43 |
| 3 | title: "OpenAI compatibility test suite with official clients" | 3 | title: "OpenAI compatibility test suite with official clients" |
| 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-24T21:17:08.000Z | 8 | createdAt: 2026-11-24T21:17:08.000Z |
| 9 | -updatedAt: 2026-11-25T18:00:00.000Z | 9 | +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 schema | 65 | 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. | ||