Repository navigation
chore(deps): bump Lemonade Server to v2026.39.1 - #4169
kovtcharov wants to merge 5 commits into
Conversation
Lemonade switched from semver to CalVer in this release (11.9.0 ->
2026.39.1) and called out that anything parsing or comparing version
strings has to be updated.
Release CalVer already compared correctly by luck — 2026 > 11 — but
development builds are shaped 2026.39.0~12.abc1234, and int("0~12")
raises. All five of GAIA's version parsers swallowed that and returned
None, which every caller reads as "can't tell" and deliberately does
not block on. The gate would have been silently off for every candidate
build rather than failing loudly. Each parser now keeps its components'
leading digits.
Also refreshes the embeddable SHA-256 pins, which are keyed by a
filename containing the version and so go stale on every bump.
The auto-bump workflow never refreshed those digests, so the next
scheduled bump would have shipped stale pins and a red PR. It now
rewrites them from the release API's digest field, and the cheap shell
gate checks the four embeddable assets and their digests before paying
for the LLM step.
Verified against a real v2026.39.1: cold embedded install (download,
checksum, unpack), server start, and a chat completion through
LemonadeClient on Gemma-4-E4B-it-GGUF.
Co-Authored-By: Claude Opus 5 <[email protected]>
|
Verdict: Request changes — one gap, one line to close it. This bumps Lemonade to v2026.39.1 and, more importantly, teaches GAIA's version gates to read the new CalVer format so they don't quietly stop checking on development builds. The diagnosis and the fix are both right, and the four refreshed SHA-256 pins match what the upstream release actually publishes — I checked them against the release API. The gap: the flagship GAIA agent keeps its own copy of the version comparison, and it wasn't updated. It reads the version string straight from the running server, so on a development build its readiness check still reports "can't tell" instead of pass/fail — exactly the silent-gate failure this PR exists to fix, left in place on the agent most people run. The email agent's equivalent copy was fixed, which makes the omission easy to miss. The new test file is parametrized specifically to catch a partial fix, so adding this parser to that list is what stops it recurring. Also worth a sweep before merge: two files outside the docs checker's reach still advertise Lemonade 11.8.1 to users, so the bump reads as incomplete to anyone who lands there. The checker only scans Real-world evidenceNo What I could verify directly, and did: the four The rest rests on the author's test plan (cold embedded install, 🔍 Technical detailsIssues🟡 The flagship agent's Lemonade version gate is still the strict parser (
|
Adding the module-level `import re` for CalVer parsing turned the function-local `import re as _re` into a reimport, which pylint treats as a critical error. The label-stripping call now uses the module import. Co-Authored-By: Claude Opus 5 <[email protected]>
|
🟡 The flagship agent's version gate still breaks on CalVer dev builds — the one change the previous review requested hasn't landed.
🔍 Technical details
# current (broken for CalVer dev builds)
got = tuple(int(p) for p in str(version).strip().lstrip("v").split(".")[:3])Fix matches every other parser this PR updated: import re # already needed elsewhere in this file?
got = tuple(
int(re.match(r"\d+", p).group(0))
for p in str(version).strip().lstrip("v").split(".")[:3]
)Then add a |
The flagship agent keeps its own copy of the version comparison, and the first pass of this change missed it. It reads /api/v1/health's version verbatim — nothing normalizes the CalVer dev suffix away first — so on a development build it returned None and the readiness row rendered "unknown", leaving the check off on the agent most people run. That is the exact failure this change exists to remove. LemonadeInfo.version_tuple gets the same treatment. It is shielded today because check_installation fills version from get_installed_version, which already strips the suffix, but that invariant lives two files away and callers build LemonadeInfo directly. test_lemonade_calver.py now parametrizes every copy, so fixing only some of them fails there — it could not have caught this miss before. Also refreshes three version references the docs checker cannot see: it only scans docs/ and cpp/. The macOS uninstall provenance is updated after verifying against the real v2026.39.1 .pkg that every path and pkgutil identifier it names is unchanged. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Fixed the flagship agent's gate — that was a real miss, and the important one. Pushed in The catch was right on the diagnosis too: that copy reads
I also took One suggestion I did not take: That line reads "AMD LLM Gateway through Lemonade 11.8.1+". That's a feature-availability floor, not the pin — cloud provider routing landed in 11.8.1 and works on every release since. Rewriting it to "2026.39.1+" would tell users the feature needs a release three versions newer than it actually does, which is a worse error than the stale-looking number. For the same reason I'd push back on adding
On that last one I didn't just bump the number. I pulled the real 🔍 BOM verificationEvery path and identifier the uninstall text names is present and unchanged in v2026.39.1, so the instructions are still correct and the provenance bump is honest. On the evidence note — the installer and inference paths were exercised, just not in CI, since they need a real Lemonade. I ran a cold embedded install into an isolated |
The flagship tests added with the last commit imported gaia_agent, which is absent in the unit-test CI job: the root conftest puts a hub agent on sys.path only when its package already resolves somewhere, and that job installs nothing but gaia[api]. It passed locally because a sibling worktree had the agent editable-installed. Five failures on py3.10 and py3.12, one on the macOS smoke job, which stops at the first. conftest's stated answer is importorskip, but a skip would switch this file off in CI — the failure it exists to catch. Both hub-agent parsers are small and pure, so compile them out of their source with ast instead: no package import, no skip, still reading the real code. Also covers the Lemonade client's gate, which is a closure and was the last copy not exercised directly. Doing so turned up a second bug in the pre-fix code: an unparseable version fell into an except-branch that returns "compatible", so an OLD dev build like 9.1.0~4.deadbee was waved through rather than merely reported unknown. Verified in a venv built to match the CI job, with neither hub agent importable: 35 pass there, and 8 still fail against the unfixed tree. Co-Authored-By: Claude Opus 5 <[email protected]>
|
CI caught a real break in my last push, and fixing it turned up a worse bug than the one this PR started with. Pushed in The break was mine. The five flagship tests I added imported
The worse bug. Covering the Lemonade client's gate — the last copy not exercised directly, since its parser is a closure — showed my own description of the problem was too kind. I'd said an unparseable version makes the gate go indeterminate. In that copy it doesn't: the handler returns compatible, so an old dev build like 🔍 VerificationEvery gate, on an old dev build, after the fix: Full The two traps that made my first reproduction lie, in case they bite someone else: |
This bump had to fix stale pins in tui/README.md and .claude/agents/lemonade-specialist.md by hand, because the doc-version gate only scanned docs/ and cpp/. A bump is only as complete as the paths that gate can see, so it now covers both. Only PIN references move. The text pattern requires a "v" before the number, which is what separates "Lemonade Server v11.8.1+" (tracks the pin, bumped every release since 10.2.0) from "through Lemonade 11.8.1+" and "requires Lemonade 11.8.1 or later" — those name the release a feature first shipped in and have never been bumped since amd#3672 added them. Marching those forward would turn a true statement into a false one, so the distinction is documented where the paths are declared. Verified both directions: a v-prefixed stale pin planted in .claude/ is caught, and the tui floor is left untouched. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Correcting myself: I was wrong to reject the My argument was that adding So the scan now covers both directories, and I verified it behaves in both directions rather than just that it's quiet: 🔍 VerificationPlanting a v-prefixed stale pin back into And with that reverted, the The What stands from my earlier reply, now with evidence rather than reasoning —
All three floors come from the same commit and agree with each other, so the feature genuinely requires 11.8.1, not 2026.39.1. One gap this does not close, worth a follow-up rather than widening the pattern here: a bare CI is green on |
A 128 GB Strix Halo ran the same 4B Gemma as a 16 GB laptop. `gaia init` now reads the machine's model memory and free disk from Lemonade's /system-info and sets up Qwen3.8-Flash-Next (125B MoE, 6B active; UD-IQ3_XXS, 82 GB) where it fits, Gemma 4 E4B everywhere else. The pick is recorded as default_model, which every agent now resolves through instead of a hard-coded Gemma; a default_model the user set always wins. - model_fit: one fit rule (size x1.1 + 2 GB against the llama.cpp memory pool, download against free disk), mirrored by the TUI and pinned by a drift test against tui/internal/lemonade/recommended_models.json. - Qwen3.8 Flash is a custom user. model: registration now carries mmproj, vision and reasoning. Needs llama.cpp qwen4exp support, first bundled in Lemonade v2026.39.1 (amd#4169). - Registry lookups tolerate the user. prefix Lemonade strips when listing, so a picked listed id still loads at the 64K window. - Init profiles whose agents follow default_model swap Gemma for the machine's pick; vlm, email and sd keep Gemma.
A 128 GB Strix Halo ran the same 4B Gemma as a 16 GB laptop. `gaia init` now reads the machine's model memory and free disk from Lemonade's /system-info and sets up Qwen3.8-Flash-Next (125B MoE, 6B active; UD-IQ3_XXS, 82 GB) where it fits, Gemma 4 E4B everywhere else. The pick is recorded as default_model, which every agent now resolves through instead of a hard-coded Gemma; a default_model the user set always wins. - model_fit: one fit rule (size x1.1 + 2 GB against the llama.cpp memory pool, download against free disk), mirrored by the TUI and pinned by a drift test against tui/internal/lemonade/recommended_models.json. - Qwen3.8 Flash is a custom user. model: registration now carries mmproj, vision and reasoning. Needs llama.cpp qwen4exp support, first bundled in Lemonade v2026.39.1 (amd#4169). - Registry lookups tolerate the user. prefix Lemonade strips when listing, so a picked listed id still loads at the 64K window. - Init profiles whose agents follow default_model swap Gemma for the machine's pick; vlm, email and sd keep Gemma.
A 128 GB Strix Halo ran the same 4B Gemma as a 16 GB laptop. `gaia init` now reads the machine's model memory and free disk from Lemonade's /system-info and sets up Qwen3.8-Flash-Next (125B MoE, 6B active; UD-IQ3_XXS, 82 GB) where it fits, Gemma 4 E4B everywhere else. The pick is recorded as default_model, which every agent now resolves through instead of a hard-coded Gemma; a default_model the user set always wins. - model_fit: one fit rule (size x1.1 + 2 GB against the llama.cpp memory pool, download against free disk), mirrored by the TUI and pinned by a drift test against tui/internal/lemonade/recommended_models.json. - Qwen3.8 Flash is a custom user. model: registration now carries mmproj, vision and reasoning. Needs llama.cpp qwen4exp support, first bundled in Lemonade v2026.39.1 (amd#4169). - Registry lookups tolerate the user. prefix Lemonade strips when listing, so a picked listed id still loads at the 64K window. - Init profiles whose agents follow default_model swap Gemma for the machine's pick; vlm, email and sd keep Gemma.
|
Superseded by a stack of seven PRs, rebased onto current Splitting it was worth doing for more than tidiness: the CalVer parsing fix is independently valuable and now lands before the pin moves, which is the correct order — the gates have to understand the new format before GAIA installs a release that uses it. PR 1 passes with the pin still at 11.8.1, which is what makes that reviewable on its own.
Everything reviewed here is carried forward, including the fix to the flagship agent's gate that the review caught and the 🔍 A note on how to read the stackGitHub will not let a PR in this repo target a branch that only exists on the fork, so all seven target Three things also landed since the last review here: the doc gate now distinguishes a pin from a minimum-version floor (measured — a naive pattern was 75% false positives, including an IP address), the candidate smoke job was run against the real |
Bumps the pinned Lemonade Server from v11.8.1 to v2026.39.1, which is the release where Lemonade switched from semver to CalVer. That switch is the reason this is more than a one-line pin bump: the release notes call out that anything parsing or comparing version strings has to be updated, and GAIA does that in five independent places.
Release CalVer happened to compare correctly already (
2026 > 11). Development builds did not — they are shaped2026.39.0~12.abc1234, andint("0~12")raises. Every one of GAIA's seven parsers caught that and returnedNone, which callers read as "can't tell" and deliberately do not block on, so the gate went silently quiet on every candidate build.In the Lemonade client it was worse than quiet. Its handler returns compatible on a parse failure, so an old dev build like
9.1.0~4.deadbeewas waved through as passing rather than reported unknown — the gate didn't just stop checking, it answered wrong. Each parser now keeps its components' leading digits, andtest_client_gate_rejects_an_old_dev_buildfails on the pre-fix tree.Two further gaps this closes:
tests/unit/test_lemonade_calver.pyis new and covers all five parsers. It fails on the pre-fix code (5 failures) and passes after, so it is a real regression test rather than a restatement of the implementation.Test plan
gaia lemonade embedded installinto an isolatedGAIA_HOME, no warm cache)/api/v1/healthreports"version":"2026.39.1", andall_models_loaded(the schema GAIA depends on) is unchangedLemonadeClienton the new server —Gemma-4-E4B-it-GGUFloaded and completed correctlytests/integration/test_lemonade_release_assets.py(Windows/macOS/Linux installers) andtest_lemonade_embeddable_assets.py(digests)python util/lint.py --black --isortclean on every changed fileProposed follow-ups
Scoped from the release notes, issues only — nothing in this PR depends on them.
auto_evictpolicy instead of working around eviction (the [Bug]: 1.4MB file indexed no response to queries in the UI #1030/[Bug][P0]: RAG embedder load issues a global /unload that evicts the chat model → 100s+ cold reloads & eval timeout #1544/ModelSlotBrokerlineage)global_timeoutso long-document prefill stops hitting a fixed 120s ceiling