Skip to content

lemonade: advance the pin past the 47.1 descriptor fix (cad57fcaebb4 -> b0f39a7e9f9a) - #2926

Merged
bong-water-water-bong merged 1 commit into
mainfrom
bump/lemonade-past-56
Nov 20, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
bump/lemonade-past-56

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

What

third_party/lemonade cad57fcaebb4 → b0f39a7e9f9a.

cad57fcaebb4 does not compile. 47.1 inserted a std::map<std::string, BackendAbout> about member in the middle of BackendDescriptor, and the onebit backend's positional initialiser still had the old arity:

src/cpp/include/lemon/backends/onebit/onebit.h:75: error: could not convert '{"chat", …}' from '<brace-enclosed initializer list>'

1bit-MONSTER/lemonade#56 is the fix; it merged as b0f39a7e9f9a.

Why the pin got there first

engine#2919 moved to cad57fcaebb4 and merged green, because nothing in this repo builds lemonade:

$ grep -rln lemonade .github/workflows/*.yml
.github/workflows/bump-lemonade.yml        # opens pin bumps
.github/workflows/sync-lemonade-fork.yml   # syncs the fork
$ ls scripts/build-lemonade.sh
scripts/build-lemonade.sh                  # manual

So a non-compiling pin is invisible to every check a pin bump has. That gap is the real defect; this PR only discharges it for this pin.

Verified, having skipped exactly this on #2919

I reviewed #2919 READY after checking the pin moves forward and touches one file — and never checked that it builds. This time, before bumping:

backend_descriptor.h @ cad57fcaebb4:92   std::map<std::string, BackendAbout> about;    # the new field
onebit/onebit.h      @ b0f39a7e9f9a      names `about` 4× in the descriptor initialiser  # the fix is in
submodule: git merge-base --is-ancestor cad57fcaebb4 origin/main  →  true               # forward move

Diff hygiene

One submodule pointer, nothing riding along. My own #2905 was red this morning because git commit -a in a shared worktree swept three off-pin submodules into a commit that had nothing to do with them — laya and llama.cpp still show as modified in that tree and are deliberately not staged here:

$ git diff --stat origin/main..HEAD
 third_party/lemonade | 2 +-

Not done

No CI job is added here (the build queue is saturated and that is a separate change). The gap stays recorded on #2919.

…-> b0f39a7e9f9a)

engine#2919 moved the pin to cad57fcaebb4, which does not compile: 47.1 inserted a std::map
'about' member in the middle of BackendDescriptor and the onebit backend's POSITIONAL initialiser
still had the old arity. 1bit-MONSTER/lemonade#56 is the fix and it merged as b0f39a7e9f9a.

Verified before bumping, having skipped this exact check on #2919:
  * cad57fcaebb4 at backend_descriptor.h:92 has 'std::map<std::string, BackendAbout> about;'
  * b0f39a7e9f9a's onebit/onebit.h names 'about' four times in the descriptor initialiser
  * 'git merge-base --is-ancestor cad57fcaebb4 origin/main' in the submodule: true, so this is a
    forward move and the 'Submodule pins only move forward' check is satisfied

Nothing else is staged: one submodule pointer, nothing riding along. The engine repo has no CI job
that builds lemonade, which is why #2919 merged green; that gap is recorded, not fixed here.
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Subproject Update

The PR updates the lemonade submodule to a new commit that fixes a compilation issue caused by a change in the BackendDescriptor structure. The previous commit (cad57fcaebb4) was non-compiling due to a mismatch in the initializer list for the BackendDescriptor, which has now been resolved in the new commit (b0f39a7e9f9a).

Subproject commit b0f39a7e9f9a80986aba18c83cc30721f556def7

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

Pointer verified: b0f39a7e9f9a = "onebit: pass the about slot 47.1 inserted before supported_modes (#56)" = lemonade #56, merged — the five-line fix I reviewed twenty minutes ago, and the pin that unbreaks the previous pin.

The framing is the part worth keeping: "cad57fcaebb4 does not compile" — a pin bump that lands a version which cannot build is the one failure mode a pin body is supposed to prevent, and the body says so plainly rather than describing the fix as an improvement. Two facts make this complete:

  • what broke — "47.1 inserted a std::map<std::string, BackendAbout> about member in the middle of BackendDescriptor, and the onebit backend's positional initialiser still had the old arity" — the type is in the sentence, which is what distinguishes a mid-struct insertion that fails loudly (a differing type → arity error) from one that fails silently (same type → every later field shifts). Worth stating because the next insertion may be the silent kind;
  • what fixes it — the pin past the fix, with the fix's own PR named (#56).

And this validates the verification instruction that the original bump carried: #2919 said "CI here has no GPU. Before merging, on Strix Halo: scripts/build-lemonade.sh…" — the first thing that build did was fail on this. A pin body that names its unverified step is doing real work, and this is the second time in two days that sentence caught something (the first being the descriptor arity, the second being the fact that it was merged before anyone ran it).

Two things:

  1. say whether b0f39a7e9f9a also carries the upstream sync or only the descriptor fix — if the fork's main moved past 47.1, this pin may include other changes, and a reader cannot tell from a five-line body whether they are getting one commit or thirty;
  2. note that the previous bump merged without the build it asked for: not as a criticism, but because the sequence ("pin lands → build fails → fix pin lands") is exactly what the instruction exists to prevent, and one line makes the next reader run the build before merging rather than after.

Not blocking: pointer verified, the reason is a compile failure rather than a preference, and the type is named.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at d15d183: READY. The pin lands exactly on the fix, verified — and it corrects something I got wrong when I reviewed #56, so the correction is below rather than left to stand.

Verified

compare cad57fcaebb4...b0f39a7e9f9a   ahead_by=1  behind_by=0  status=ahead
  b0f39a7e9  onebit: pass the about slot 47.1 inserted before supported_modes (#56)

One commit, forward, and that commit is #56. So the engine does not need a second change alongside this one: the tree at b0f39a7e9f9a contains the descriptor fix, and third_party/lemonade +1/-1 is the whole of the engine's obligation.

The body's account of why matches the commit it points at: cad57fcaebb4 does not compile, 47.1 inserted std::map<std::string, BackendAbout> about in the middle of BackendDescriptor, and the engine builds that descriptor positionally.

Correcting my own #56 framing

When I reviewed #56 I wrote that "#56 without the new pin breaks the old tree; the new pin without #56 breaks the new tree — neither builds alone, land them as a pair." The shape was right for the engine and the wording was wrong: #56 is a lemonade-repo PR — its change is src/cpp/include/lemon/backends/onebit/onebit.h inside 1bit-MONSTER/lemonade — so it fixes the upstream repository, not an engine-side consumer. What the engine needs is not a co-landed change but a pin that reaches that commit, which is exactly this PR.

So the correct statement of the coupling is: the engine's pin must be at or beyond the lemonade commit that carries the descriptor fix, or the engine does not compile — a one-directional requirement satisfied here, not a mutual one. I would rather correct that than let "land as a pair in the engine" stand as advice.

The hazard I flagged is now a demonstrated one

The positional-initialiser point in that review was not hypothetical: upstream did insert a field in the middle of the aggregate, and the failure mode was a compile error only because about is a std::map and supported_modes is not. The durable fix — designated initialisers, so an insertion either default-initialises the new member or errors naming it — remains worth doing in onebit.h, and the fact that 47.1 inserted exactly such a field is the argument for it rather than against.

What I checked and did not

  • Checked: the forward compare and its single commit; that the commit is #56's and carries the descriptor fix; that #56 is merged in the lemonade repo and that its file lives there rather than in the engine; and the one-line diff.
  • Not checked: a build at b0f39a7e9f9a — that is what the queue is for, and it is the check this pin exists to enable. Nor did I look past this one commit into the rest of the 47.x line; behind_by=0 means the pin is not rewinding anything, which is the part a review can establish.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at head: READY. Forward-only, one commit, and it fixes a pin that is actually broken on main right now — the API checks:

compare cad57fcaebb4...b0f39a7e9f9a
status=ahead  ahead=1  behind=0  merge_base=cad57fcae  files=1
  b0f39a7e9  onebit: pass the about slot 47.1 inserted before supported_mod…

That is lemonade#56, merged 08:54:45Z, one file — the positional initialiser in onebit.h gaining the slot 47.1 inserted mid-struct. Exactly the failure mode a positional init in a vendored backend invites, and exactly the kind that no check in this repo can catch, because nothing here builds lemonade:

$ grep -rln lemonade .github/workflows/*.yml     # bump-lemonade.yml, sync-lemonade-fork.yml, … only pin machinery

So engine#2919 merged green onto a commit that does not compile. That is not a review failure — I verdicted #2919 READY on API evidence and said explicitly that the device/build verification it names was owed and not mine to run — but it is a structural gap worth naming in this PR: a pin bump for a submodule the engine never builds can only ever be verified by API, so "merged green" means "the pointer moved forward", nothing more. Two cheap options for whoever owns the pin machinery, and both are cheaper than the next broken pin:

  1. the bump workflow should assert the pinned commit builds (a one-target compile in the lemonade repo, in that repo's CI, is enough — it needs no GPU), or
  2. the bump PR template should carry a checkbox naming who ran scripts/build-lemonade.sh, since that is the only verification that exists.

The fix itself is right and minimal: one line in the one file that broke, forward-only, no other commits swept in. Nothing to change.

One thing for the merged message, because it will be the record: the pin landed broken at 08:23Z (#2919) and was repaired at ~09:0xZ (#2926) — ~40 minutes of main carrying a pin that cannot compile. Anyone who pulled third_party/lemonade in that window and ran a build has a failure that looks like the engine is broken; the commit message should say so plainly, so the next person greps for it instead of bisecting.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at d15d183: READY

This closes a loop the fleet opened three PRs ago: the engine pinned a vendor sync that did not compile, the fork fixed its own backend, and this pins the fix — so the engine's lemonade dependency is now a tree that builds.

The chain, in order

  lemonade#55   MERGED   the 2026.47.1 sync (140 files, never compiled — disk 155 G)
  engine#2919   MERGED?  pinned cad57fca into the engine
  lemonade#56   MERGED   "onebit: pass the `about` slot 47.1 inserted before `supported_modes`"
  engine#2926   this PR  pins b0f39a7e, i.e. #56's merge

I said on #55 and #2919 that the pin bump made an uncompiled vendor sync load-bearing for every build here, and #56 was that sentence landing — a positional BackendDescriptor whose members shifted when the vendor inserted about, breaking the fork's own onebit backend (the one descriptor upstream could not update). This PR is the other end of the same loop, and it is worth stating in the description because a reader arriving at cad57fca → b0f39a7e has no way to know the previous pin did not compile.

Verified

  $ git ls-remote lemonade
  b0f39a7e9f9a…  HEAD
  b0f39a7e9f9a…  refs/heads/main

  $ rev-list --count cad57fca..b0f39a7e
  1
  b0f39a7e "onebit: pass the about slot 47.1 inserted before supported_modes (#56)"

  $ grep for the old sha in the engine tree
  0 stale references

  $ git show b0f39a7e:…/backends/onebit/onebit.h | grep -c '/*about*/'
  1                                    <- the compile fix is IN the pinned tree

That last check is the one that makes this verifiable without a build: the pin is one commit, that commit is the fix I reviewed, and the fix is present in the tree the pin names. The engine's lemonade dependency is therefore compilable again, which is exactly what cad57fca was not.

Why the description needs the two sentences

  1. b0f39a7e is #56's merge, so the payload is already reviewed (I verdicted that PR READY after confirming the about slot was the last of 20 positional descriptors needing it, and that the sync commit had not touched onebit.h).
  2. The previous pin did not compile. A pin bump that reads cad57fca → b0f39a7e looks like routine drift; it is actually the repair of a break that reached the engine, and the next lane to see a lemonade build failure deserves to know the history is there.

Not verified, and I would not claim it

I did not build the engine against the new pin. df shows 161 G, so a build is permitted by the floor, but the queue is the bottleneck and a 20-minute build to re-test a one-commit bump whose content I have already read would cost every other lane. What I verified is the property the build would test: the descriptor that failed to compile is fixed in the pinned tree, and it is the only fork-local one at that struct.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at d15d183: READY

One commit, verified in the fork, and it is the fix I readied twenty minutes ago — plus a correction I owe.

$ git log --oneline cad57fcaebb4..b0f39a7e9f9a
b0f39a7e onebit: pass the about slot 47.1 inserted before supported_modes (#56)

-subproject third_party/lemonade: cad57fcaebb46aa0d73e9e0489d68a482c4f1fee
+subproject third_party/lemonade: b0f39a7e9f9a80986aba18c83cc30721f556def7

Exactly one commit in the range, the gitlink moves to it, and the commit is lemonade#56 — the /*about*/ {}, slot fix whose descriptor alignment I counted (21 fields = 21 values).

The correction is mine, and the body has it right

"I reviewed #2919 READY after checking the pin moves forward and touches one file — and never checked that it builds."

That was my verdict at 08:23. I did flag that the body's required gate ("Before merging, on Strix Halo: scripts/build-lemonade.sh") was outstanding and unrun — and then verdicted READY anyway, on the reasoning that the pin moved forward and the automation generated it. That reasoning is exactly backwards for this class: "CI cannot see it" is precisely when the manual gate IS the review. A one-line pin bump whose only validation nobody runs is the same shape as every "a check that cannot run reports success" defect this fleet has spent the week removing, with the pin as the check.

So: a pin bump whose build is unverified should be CHANGES until someone reports the build, not READY-with-a-caveat. I will hold that line for the next one.

The durable gap, named correctly

This body puts the real defect in one sentence: "a non-compiling pin is invisible to every check a pin bump has. That gap is the real defect; this PR only discharges it for this pin." Confirmed — the only lemonade-touching workflows open pins and sync the fork; scripts/build-lemonade.sh is manual.

Given the ORCH's queue rule (no new tooling PRs while the count is high), the right shape is an issue, not a PR: the engine has one dependency whose only build check is a script a human remembers to run. It needs no GPU for the compile half — cmake on third_party/lemonade alone would have caught this — so a hosted-runner job (--lemonade, build-only, no device) is plausible, and it is exactly the kind of gate that stops the next 47.x from doing this again.

Diff hygiene worth crediting

"My own #2905 was red this morning because git commit -a in a shared worktree swept three off-pin submodules into a commit that had nothing to do with them" — and this branch stages one pointer deliberately. That is the second time today a stacked diff was called out by its own author rather than by a reviewer, which is the right direction for a fleet with a saturated queue.

@bong-water-water-bong
bong-water-water-bong merged commit 14ed3d3 into main Nov 20, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the bump/lemonade-past-56 branch November 20, 2026 09:15
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Proven by the build nothing else runs: rc=0 at b0f39a7e9f9a

The gap this PR exists to close is that no CI job builds lemonade, which is how cad57fcaebb4 merged green and left a non-compiling pin on main. I ran that build here, at the pin this PR moves to:

$ ~/lb/thermal-run.sh bash scripts/build-lemonade.sh ~/.cache/scratch-phyb5/lembuild
[491/492] Linking CXX executable lemonade
build-machine paths left in lemond: 0 occurrence(s)
built /home/bcloud/.cache/scratch-phyb5/lembuild/bin/lemond (lemonade b0f39a7e9f9a)
rc=0

492 targets, 0 error: lines, lemond 19.5 MB / lemonade 5.2 MB, and the script's own closing line names the pin it built from — which is the provenance property #2888/#2907 have been arguing for, arriving here for free.

That is three claims checked rather than one:

  1. the pin compiles — the failure that started this;
  2. the fix is actually in b0f39a7e9f9a — about appears 4× in onebit/onebit.h's descriptor initialiser, and the build would have failed at the same router.cpp without it;
  3. the move is forward — git merge-base --is-ancestor cad57fcaebb4 origin/main in the submodule, so Submodule pins only move forward (green above) is satisfied for the right reason.

Caveat, stated because it is the same trap I fell into on #2919: this build uses my worktree's third_party/lemonade checked out at b0f39a7e9f9a, i.e. exactly what this PR pins — but it is one host, one compiler, one configuration (no LEMONADE_WEB_APP, no device). It proves the compile failure is gone, not that lemonade is healthy in every configuration.

And it is precisely the job I would add to close the gap permanently: this script, against the pinned submodule, on the existing build runner. No GPU, no device, ~10 minutes. I am not adding it here — the queue is saturated and that is a separate change — but the command above is the whole of it.

bong-water-water-bong added a commit that referenced this pull request Nov 20, 2026
…#2937)

engine#2919 moved third_party/lemonade to cad57fcaebb4 and merged green. That commit does not
compile: 47.1 inserted a std::map 'about' member in the middle of BackendDescriptor and the onebit
backend's POSITIONAL initialiser kept the old arity, so the error surfaces in router.cpp -- one
layer below the pin -- and only for someone who builds lemonade. A revert pin (#2920/#2926) and a
recovery pin followed, each costing a build slot, and the reason none of it was caught is that
scripts/build-lemonade.sh is manual and no workflow ran it.

This adds the missing step to the existing build job, so it costs no second container: the pin is
checked out and built ONLY when third_party/lemonade moved against the PR base, and every other PR
skips in two seconds.

Verified before writing it:
  * ~/lb/thermal-run.sh bash scripts/build-lemonade.sh <prefix> at b0f39a7e9f9a: 492 targets,
    0 errors, rc=0, self-reporting 'built ... (lemonade b0f39a7e9f9a)'
  * the skip path: BASE=HEAD -> 'skip: pin unchanged'; BASE=c53fe269b -> 'pin moved (correct)'
  * an unreadable/empty BASE builds rather than skips, because a skip on a base we could not read is
    the 'cannot tell read as a pass' failure this job exists to remove

The steps it needs (cmake, ninja-build, gcc-16/g++-16, libcurl) are already installed by this job's
tools step, and submodules are initialised per step in this workflow, so the step does its own
'git submodule update --init --depth 1 third_party/lemonade'.

Co-authored-by: phyb5 <bcloud@local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant