memory: handoff for the v0.2.0 release session
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e0ea909 parent: 1c3f8b8 added
.memory/handoffs/2026-11-26-v0-2-release-and-tooling.md +37 -0 | new file mode 100644 | ||
| @@ -0,0 +1,37 @@ | ||
| 1 | +# Handoff 2026-11-26 — v0.2.0 release prep, install tooling, v0.4 / v1.0 planning | |
| 2 | + | |
| 3 | +## Where things stand | |
| 4 | +- Branch `feature/v0.2-openai-server`, `main` fast-forwarded to it, **nothing pushed**. Local | |
| 5 | + annotated tag `v0.2.0` (moved several times while fixes landed; re-point it to the last release | |
| 6 | + commit with `git tag -f -a v0.2.0 -m "razorbill 0.2.0 — OpenAI-compatible MLX server"` on main). | |
| 7 | +- Version 0.2.0, release notes `release-notes/v0.2.0.md` / `.fr.md`, milestone v0.2 closed, #47 | |
| 8 | + leftovers without milestone. | |
| 9 | +- Scripts: `scripts/install.sh` (confirmed working on the Mac), `scripts/release.sh` (not yet run | |
| 10 | + on the Mac), `scripts/compat.sh` (not run on the Mac since #44). All Release builds pass | |
| 11 | + `CLANG_ENABLE_CODE_COVERAGE=NO CLANG_COVERAGE_MAPPING=NO` (else rzb writes default.profraw); | |
| 12 | + verified on the Mac (binary 108 → 65 MB, no LLVM_PROFILE_FILE). | |
| 13 | +- Default port 7920; `/`, `/v1` 404 now carry a base-URL hint. | |
| 14 | +- `samples/` renamed `experiments/`; `demos/test-qwen/test_qwen.py` (uv script, streaming speed). | |
| 15 | +- Planned: v0.3 decision models (spike #46, next after the user's own testing); v0.4 TUI (#51 | |
| 16 | + closed, tickets #53–#59, start with #53 then #54); v1.0.0 signing/notarization (#52). | |
| 17 | + | |
| 18 | +## Next steps (the user was told, in this order) | |
| 19 | +1. Mac: `scripts/compat.sh` (needs Qwen3-4B-4bit and bge-small pulled) — report pass/skip/fail. | |
| 20 | +2. Mac: `scripts/release.sh` → `dist/razorbill-0.2.0-macos-arm64.tar.gz` + `.sha256`. | |
| 21 | +3. Mac: `uv run demos/test-qwen/test_qwen.py --runs 3 --no-think --max-tokens 400` to see whether | |
| 22 | + the speed drop across runs is gone with the uninstrumented build; if not, ask the chip and look | |
| 23 | + at the server (memory, cache handling). | |
| 24 | +4. Then v0.3 (#46): first task is clarifying "decision models" with the user. | |
| 25 | + | |
| 26 | +## Traps | |
| 27 | +- `sed -i` on this mount drops the executable bit: edit scripts with Python (keeps the mode) and | |
| 28 | + check `git ls-files -s scripts`. | |
| 29 | +- Never run builds with sudo (install.sh / release.sh refuse): root-owned files in `.build` give | |
| 30 | + "Operation not permitted" later; fix with `sudo chown -R "$(whoami)" .build`. | |
| 31 | +- `xcodebuild build` refuses `-enableCodeCoverage`. | |
| 32 | +- The host runner on the Mac must be restarted after edits to `host_runner.py` (it now adds the | |
| 33 | + coverage settings to Release builds and accepts `experiments/<name>`). | |
| 34 | +- Do not grep/read `.build/xcode` objects from the sandbox while the user builds (suspected, not | |
| 35 | + proven, to interfere). | |
| 36 | +- Qwen3.5 is hybrid: prompt cache never reused (documented); it reasons >1000 tokens on small | |
| 37 | + prompts, so low max_tokens gives no answer. | |
| new file mode 100644 | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | +# Handoff 2026-11-26 — v0.2.0 release prep, install tooling, v0.4 / v1.0 planning | ||
| 2 | + | ||
| 3 | +## Where things stand | ||
| 4 | +- Branch `feature/v0.2-openai-server`, `main` fast-forwarded to it, **nothing pushed**. Local | ||
| 5 | + annotated tag `v0.2.0` (moved several times while fixes landed; re-point it to the last release | ||
| 6 | + commit with `git tag -f -a v0.2.0 -m "razorbill 0.2.0 — OpenAI-compatible MLX server"` on main). | ||
| 7 | +- Version 0.2.0, release notes `release-notes/v0.2.0.md` / `.fr.md`, milestone v0.2 closed, #47 | ||
| 8 | + leftovers without milestone. | ||
| 9 | +- Scripts: `scripts/install.sh` (confirmed working on the Mac), `scripts/release.sh` (not yet run | ||
| 10 | + on the Mac), `scripts/compat.sh` (not run on the Mac since #44). All Release builds pass | ||
| 11 | + `CLANG_ENABLE_CODE_COVERAGE=NO CLANG_COVERAGE_MAPPING=NO` (else rzb writes default.profraw); | ||
| 12 | + verified on the Mac (binary 108 → 65 MB, no LLVM_PROFILE_FILE). | ||
| 13 | +- Default port 7920; `/`, `/v1` 404 now carry a base-URL hint. | ||
| 14 | +- `samples/` renamed `experiments/`; `demos/test-qwen/test_qwen.py` (uv script, streaming speed). | ||
| 15 | +- Planned: v0.3 decision models (spike #46, next after the user's own testing); v0.4 TUI (#51 | ||
| 16 | + closed, tickets #53–#59, start with #53 then #54); v1.0.0 signing/notarization (#52). | ||
| 17 | + | ||
| 18 | +## Next steps (the user was told, in this order) | ||
| 19 | +1. Mac: `scripts/compat.sh` (needs Qwen3-4B-4bit and bge-small pulled) — report pass/skip/fail. | ||
| 20 | +2. Mac: `scripts/release.sh` → `dist/razorbill-0.2.0-macos-arm64.tar.gz` + `.sha256`. | ||
| 21 | +3. Mac: `uv run demos/test-qwen/test_qwen.py --runs 3 --no-think --max-tokens 400` to see whether | ||
| 22 | + the speed drop across runs is gone with the uninstrumented build; if not, ask the chip and look | ||
| 23 | + at the server (memory, cache handling). | ||
| 24 | +4. Then v0.3 (#46): first task is clarifying "decision models" with the user. | ||
| 25 | + | ||
| 26 | +## Traps | ||
| 27 | +- `sed -i` on this mount drops the executable bit: edit scripts with Python (keeps the mode) and | ||
| 28 | + check `git ls-files -s scripts`. | ||
| 29 | +- Never run builds with sudo (install.sh / release.sh refuse): root-owned files in `.build` give | ||
| 30 | + "Operation not permitted" later; fix with `sudo chown -R "$(whoami)" .build`. | ||
| 31 | +- `xcodebuild build` refuses `-enableCodeCoverage`. | ||
| 32 | +- The host runner on the Mac must be restarted after edits to `host_runner.py` (it now adds the | ||
| 33 | + coverage settings to Release builds and accepts `experiments/<name>`). | ||
| 34 | +- Do not grep/read `.build/xcode` objects from the sandbox while the user builds (suspected, not | ||
| 35 | + proven, to interfere). | ||
| 36 | +- Qwen3.5 is hybrid: prompt cache never reused (documented); it reasons >1000 tokens on small | ||
| 37 | + prompts, so low max_tokens gives no answer. | ||
modified
.memory/history.md +2 -0 | @@ -421,3 +421,5 @@ path and ownership inside the installed folder (`writable_as_user`); tested on L | ||
| 421 | 421 | sudo branch (read-only bin/). |
| 422 | 422 | User confirms install.sh works after the fixes (2026-11-26). Remaining before publishing 0.2.0: |
| 423 | 423 | Mac run of compat.sh, then release.sh; Qwen3.5 speed re-check with the uninstrumented build. |
| 424 | +Session end (user restarts Claude): summary "Not yet established" updated; new handoff | |
| 425 | +`handoffs/2026-11-26-v0-2-release-and-tooling.md` with the next steps and traps. | |
| @@ -421,3 +421,5 @@ path and ownership inside the installed folder (`writable_as_user`); tested on L | |||
| 421 | sudo branch (read-only bin/). | 421 | sudo branch (read-only bin/). |
| 422 | User confirms install.sh works after the fixes (2026-11-26). Remaining before publishing 0.2.0: | 422 | User confirms install.sh works after the fixes (2026-11-26). Remaining before publishing 0.2.0: |
| 423 | Mac run of compat.sh, then release.sh; Qwen3.5 speed re-check with the uninstrumented build. | 423 | Mac run of compat.sh, then release.sh; Qwen3.5 speed re-check with the uninstrumented build. |
| 424 | +Session end (user restarts Claude): summary "Not yet established" updated; new handoff | ||
| 425 | +`handoffs/2026-11-26-v0-2-release-and-tooling.md` with the next steps and traps. | ||
modified
.memory/summary.md +9 -3 | @@ -249,9 +249,15 @@ of the resolved version. | ||
| 249 | 249 | |
| 250 | 250 | ## Not yet established |
| 251 | 251 | |
| 252 | -- A real MLX model answers through `ModelManager` + `MLXEngine` (Mac smoke tests, 2026-11-25), but | |
| 253 | - not yet over HTTP with `rzb serve` on the Mac. Whether dropping `MLXEngine`'s container frees GPU memory promptly (no | |
| 254 | - `MLX.GPU.clearCache` call) is unverified. | |
| 252 | +- `rzb serve` on the Mac answers over HTTP (user, 2026-11-26: Qwen3.5-9B-MLX-4bit streamed through | |
| 253 | + `demos/test-qwen`, ~15–20 tok/s, reasoning ok). Not explained: speed fell 20.1 → 18.3 → 14.6 tok/s | |
| 254 | + over 3 identical runs (build was still coverage-instrumented then; chip unknown). Whether dropping | |
| 255 | + `MLXEngine`'s container frees GPU memory promptly (no `MLX.GPU.clearCache` call) is unverified. | |
| 256 | +- Not yet run on the Mac: `scripts/compat.sh` (last Mac run before #44), `scripts/release.sh`. | |
| 257 | +- Cause of the "Operation not permitted" build failures (2026-11-26): root-owned files in `.build` | |
| 258 | + from a build run with sudo is the working hypothesis (fixed by chown; not confirmed with `find | |
| 259 | + -user root`). Whether rzb finds its bundles when started through a symlink: unverified (the | |
| 260 | + install uses an exec launcher instead). | |
| 255 | 261 | |
| 256 | 262 | - Behaviour of the quality skill on macOS (qlty running swiftlint via its plugin) — untested. |
| 257 | 263 | - Whether `~/.qlty` survives sandbox recreation (`sbx env run --force`); `/usr/local/bin/swiftlint` |
| @@ -249,9 +249,15 @@ of the resolved version. | |||
| 249 | 249 | ||
| 250 | ## Not yet established | 250 | ## Not yet established |
| 251 | 251 | ||
| 252 | -- A real MLX model answers through `ModelManager` + `MLXEngine` (Mac smoke tests, 2026-11-25), but | 252 | +- `rzb serve` on the Mac answers over HTTP (user, 2026-11-26: Qwen3.5-9B-MLX-4bit streamed through |
| 253 | - not yet over HTTP with `rzb serve` on the Mac. Whether dropping `MLXEngine`'s container frees GPU memory promptly (no | 253 | + `demos/test-qwen`, ~15–20 tok/s, reasoning ok). Not explained: speed fell 20.1 → 18.3 → 14.6 tok/s |
| 254 | - `MLX.GPU.clearCache` call) is unverified. | 254 | + over 3 identical runs (build was still coverage-instrumented then; chip unknown). Whether dropping |
| 255 | + `MLXEngine`'s container frees GPU memory promptly (no `MLX.GPU.clearCache` call) is unverified. | ||
| 256 | +- Not yet run on the Mac: `scripts/compat.sh` (last Mac run before #44), `scripts/release.sh`. | ||
| 257 | +- Cause of the "Operation not permitted" build failures (2026-11-26): root-owned files in `.build` | ||
| 258 | + from a build run with sudo is the working hypothesis (fixed by chown; not confirmed with `find | ||
| 259 | + -user root`). Whether rzb finds its bundles when started through a symlink: unverified (the | ||
| 260 | + install uses an exec launcher instead). | ||
| 255 | 261 | ||
| 256 | - Behaviour of the quality skill on macOS (qlty running swiftlint via its plugin) — untested. | 262 | - Behaviour of the quality skill on macOS (qlty running swiftlint via its plugin) — untested. |
| 257 | - Whether `~/.qlty` survives sandbox recreation (`sbx env run --force`); `/usr/local/bin/swiftlint` | 263 | - Whether `~/.qlty` survives sandbox recreation (`sbx env run --force`); `/usr/local/bin/swiftlint` |