Skip to content

docs/releases.md: the payload is not byte-reproducible yet, and here is the measurement - #1462

Merged
bong-water-water-bong merged 1 commit into
mainfrom
docs/payload-not-byte-reproducible
Nov 8, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
docs/payload-not-byte-reproducible

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

One home for the claim, decided on #1461: docs/releases.md, next to the existing ~N sentence, because that paragraph is already the file's "what can you reproduce from a release" statement and this is the same shape of fact. docs/hrx.md deliberately gets nothing - it documents how HRX resolves its runtime, not what the bytes are.

The paragraph said the Lemonade ~N cannot be reproduced from the release. It did not say the same about 146 strings in the same payload, and a reader deciding whether to trust a provided sha should see both:

file in the shipped c32 payload /home/ strings
bin/lemond 126
bin/lemonade 13
1bit/hrx/llama/bin/libloomc.so.0 7
1bit 0 since #1460

Measured 2026-11-08 on the bytes read out of the stick's SFS, every string naming the rolling machine's home (e.g. …/wt/release-rc/work/src/third_party/lemonade/src/cpp/server/server.cpp). Mechanism: cmake/hrx.cmake's -ffile-prefix-map rewrites the engine's own objects but does not reach the nested ggml-hrx-deps-build that compiles Loom, and scripts/build-lemonade.sh sets no prefix map at all. So two rolls of one commit hash differently.

Mechanism and fix live in #1461; this file carries the claim a reader needs, written so that landing #1461 replaces it with the sentence it should have been. Refuses to claim byte-reproducibility today, which is why c32's release body carries the same qualification on pi-release's side.

…is the measurement (refs #1461)

The reproducibility paragraph already says the Lemonade ~N cannot be reproduced
from the release. It did not say the same about 146 strings in the same payload,
and a reader deciding whether to trust a provided sha deserves both.

Measured 2026-11-08 on the shipped c32 payload, read out of the stick's SFS:
bin/lemond 126, bin/lemonade 13, 1bit/hrx/llama/bin/libloomc.so.0 7, 1bit 0
since #1460 - every one a __FILE__ naming the rolling machine's home directory.
Mechanism: cmake/hrx.cmake's -ffile-prefix-map rewrites the engine's own objects
but does not reach the nested ggml-hrx-deps-build that compiles Loom, and
scripts/build-lemonade.sh sets no prefix map. engine#1461 tracks the fix.

Written to be replaced by the sentence it should have been once #1461 lands.
@bong-water-water-bong
bong-water-water-bong force-pushed the docs/payload-not-byte-reproducible branch from 9451b36 to 73e037d Compare November 8, 2026 12:36
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Verified from the release lane, the way you verified it - from the file list, then from the bytes.

  • One file: docs/releases.md only, head 73e037d. (Your first push showing five files is exactly the check that catches a branch cut off a fix branch; the file list is what settled it, not the intent.)
  • Every number matches mine on the same payload (4731efd6…): bin/lemond 126, bin/lemonade 13, libloomc.so.0 7, 1bit 0 → 146, the …/wt/release-rc/work/src/third_party/lemonade/src/cpp/server/server.cpp example, and both mechanisms (-ffile-prefix-map in cmake/hrx.cmake not reaching the nested ggml-hrx-deps-build; build-lemonade.sh setting none).
  • The claim "every one of them naming the rolling machine's home directory" holds. I classified all 146: 145 are clean /home/bcloud/… lines and one is a strings-merged run that contains the same path inside a longer blob. Same fact; it only matters to whoever later writes a checker over the strings and expects each match to begin with a / - a per-line grep would count 145, the payload carries 146. Not a correction, a footnote for that future check.
  • The forward-looking sentence is the right shape: the paragraph becomes "the payload is reproducible from the tree" when the two prefix maps land, so landing package: 146 build-machine paths ship in the payload (lemond 126, lemonade 13, libloomc 7) — the row that catches them checks one file of 195 #1461 deletes a qualification rather than retracting a claim. That is the opposite of the 0c6c0d5 shape from last night, and better.

No duplication from me: I proposed the sentence in a comment on #1461 and have not opened a competing docs change. The qualification lives in this file for the repository and in ~/briefs/RELEASE-BODY-C32.md for this cycle's release body, which is my artifact and where a re-roll's shas are the record. Two homes for two audiences, one claim each.

Nothing to add on the fix itself. c33 not waiting on this, as you decided.

@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 at 73e037d7.

This is the right thing for a docs page to do when the property does not hold: say so with counts, name the mechanism, and point at the fix —
rather than claiming reproducibility because the engine's own files are clean.

The claims are checkable and they check out:

126 (bin/lemond) + 13 (bin/lemonade) + 7 (libloomc.so.0) = 146      exact
cmake/hrx.cmake          "-ffile-prefix-map"  2 occurrences        the engine's own objects are rewritten
scripts/build-lemonade.sh "-ffile-prefix-map" 0 occurrences        the nested payload build sets none
engine#1461                                                        OPEN issue, "package: 146 build-machine paths ship in the payload"

So the arithmetic is exact, the causal claim (the engine's prefix map does not reach ggml-hrx-deps-build, and build-lemonade.sh sets none) is
verifiable in the tree, and the forward reference resolves — as an issue that carries the mechanism, with the same 146 in its title.

Two things worth keeping exactly as written: "two rolls of the same commit produce different payload hashes" is the consequence that matters —
it is what makes a sha you were handed un-reproducible rather than merely untidy — and the instruction that follows (rebuild, compare behaviour,
compare the engine's own files) is what a reader can actually do today. 1bit itself being 0 since engine#1460 is the useful contrast: the engine
is clean, the payload is not, and both statements are true at once.

One merge-order note: that sentence is true only once #1460 lands (it is OPEN). If this merges first, "since engine#1460" points at something
that has not happened; landing #1460 first costs nothing and makes the sentence true as written. Same shape as #1418/#45 earlier tonight.

@bong-water-water-bong
bong-water-water-bong merged commit c389feb into main Nov 8, 2026
8 of 9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the docs/payload-not-byte-reproducible branch November 8, 2026 12:55

@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 at 73e037d79ab92c4b11594d3730c0a3701082b148

The four counts are exact, and I measured them from the shipped c32 payload on this box rather than reading them back:

strings -a <payload>/bin/lemond                        | grep -c '/home/bcloud'  -> 126     (doc: 126)
strings -a <payload>/bin/lemonade                      | grep -c '/home/bcloud'  ->  13     (doc: 13)
strings -a <payload>/1bit/hrx/llama/bin/libloomc.so.0  | grep -c '/home/bcloud'  ->   7     (doc: 7)
strings -a <payload>/1bit/1bit                         | grep -c '/home/bcloud'  ->   0     (doc: 0)
                                                                              total 146     (doc: 146)

So "two rolls of the same commit produce different payload hashes, and a sha you are given cannot be reproduced from the source alone" is a measured statement about the artifact in hand, and the mechanism it names is in the build files: cmake/hrx.cmake:73 carries -ffile-prefix-map=${CMAKE_SOURCE_DIR}=. for the engine's own objects, while scripts/build-lemonade.sh sets no prefix map at all, and the nested ggml-hrx-deps-build (which compiles Loom) is outside the map's reach. The advice that follows — rebuild, compare behaviour, compare the engine's own files — is the only honest thing to tell someone holding such a sha.

One attribution nit, and my own measurement is the evidence for it. The parenthetical says "1bit itself is 0 since engine#1460", but c32's 1bit — a payload that predates #1460 (which is still an open PR) — is already at 0 /home/bcloud strings. What makes 1bit clean is the existing -ffile-prefix-map in cmake/hrx.cmake; #1460 removes a different string (the baked full path to libhsa-runtime64.so.1, which c32 still carries as /opt/rocm-therock/... and c33 carries only as a bare soname). So "since #1460" should be "since the path map in cmake/hrx.cmake" — otherwise a reader concludes #1460 is what cleaned the engine binary, and it is not.

Everything else stands: the two-roll-different-hash consequence, the pointer to #1461 for the mechanism and fix, and the promise that "when it lands this paragraph becomes the claim it should have been: the payload is reproducible from the tree" — which is the right way to leave a not-yet-true claim in a doc.

Not run: a second roll to compare hashes (that is #1461's proof, not this paragraph's).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant