Repository navigation
os: prove the API key is enforced in 1bit-release-check, do not infer it - #569
Merged
Merged
Conversation
The lemonade row passed on an unprepared stick: with no key enforced, the keyless probe returns an empty body, and the row read "empty body" as "refused" and printed PASS with an empty bracket to show for it. Decide the row from HTTP status codes instead of the presence of a body: 200 with a model list from the keyed request, and 401/403 from the keyless one. Anything else on the keyless side - 200, 000 for no answer, 5xx, an empty body - is a FAIL that says the key is not proved to be enforced, and the same goes for a keyed 200 that is not a model list. The verdict is a pure function (lemonade_verdict) with an --self-test that asserts the seven cases, including the unprepared-stick one (200 + list with the key, empty body without it) and the server that is not running at all. ctest runs it as release_check_row, so CI keeps it honest without a device. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
pushed a commit
that referenced
this pull request
Oct 25, 2026
… comment Rebased onto main (0d0c846) and reviewed against the current packaging, image and release check (#556, #563, #569): - docs/releases.md conflicted on the pins table and the NPU paragraph: the branch put the private repositories' names back into a public file ("gpu-kernels (private, HIP)", "npu-kernels (private, signed)", "npu-runtime (private)"), which main had scrubbed. Resolved keeping main's wording ("private kernel add-on (HIP)", "private NPU kernel set (signed)", "private NPU runtime") and the new shape. - scripts/weekly.sh package_checks: the set's manifest is now derived from `rel` once, instead of rebuilding the path with `${f%/npu/kernels/*}` plus `cut` (which can leave a double slash). Checked that the derived path resolves for <pkg>/npu/kernels/<set>/<id>/layer1.elf. - os/mini/init.sh: comment wrapped. Not marked ready: the package stage stages nothing against the pins in this tree (see the PR comment). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1bit-release-check's lemonade row could false-PASS on an unprepared stick: with noLEMONADE_API_KEYin force thekeyless probe returns an empty body, and the row counted "empty body" as "refused" —
Found by pi osinstall while running the owner's live-USB gate on the candidate (
~/briefs/TOSINSTALL-STATE.md, "Findingfor the release lane").
Fix: decide the row from HTTP status codes, not from whether a body came back.
The verdict is a pure function (
lemonade_verdict <keyed status> <keyed body> <keyless status>), and the script gainedan
--self-testthat asserts seven cases — including the unprepared-stick one (200 + list with the key, empty bodywithout it) and the "no server at all" case. I added it to ctest as
release_check_row, so CI runs it with no deviceand no NPU:
os/mini/release-check.shis POSIXsh(busybox in the image); the status probe usescurl -wwhen present and fallsback to
wget -Sheader parsing.python3 tools/copyright.py --checkrc=0. Not merged here.🤖 Generated with Claude Code