Repository navigation
hw-gate: record the KLD bases' provenance at the shipped pin (llama.cpp 4a58da9b087d) - #783
Conversation
…pp 4a58da9b087d) The five KLD bases in ~/.cache/hw-gate/kld were re-recorded at main's pin (llama.cpp 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b, the pin candidate 19 shipped) with the gate's own binaries, which self-report `version: 1 (4a58da9)`. The bytes are unchanged - every base's sha256 reproduced the manifest's pin exactly: qwen3-0.6b af6eb4309794905f 619,931,604 B qwen3-4b-iq4xs 63062b57e90d4823 619,931,604 B qwen3-coder-30b-a3b 0d90e13f5fe99e22 619,931,604 B qwen3.8-27b a31cb56ca9a9f336 1,013,178,324 B zaya1-8b 017898e89e8dd15c 1,069,596,564 B What changes is only `recorded_at.llama.cpp`, which still said e7e5cd08f9bb9d4b - an older pin than the bases were actually consistent with. Now it says where they were verified: the shipped pin, with hrx-system 82804197bcbe (unchanged). No base_sha256, base_bytes, model, text or limits move, so no gate verdict changes; this is the provenance the recording produces, kept accurate. Recorded on strixhalo under the gate's own gpu-hold claims (no GPU step outside them), one model at a time, thermal-guarded; the 0.6b step was killed once (rc 137) and re-recorded alone, which reproduced af6eb430 as well.
PR Reviewer Guide 🔍(Review updated until commit 0626ada)Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
The provenance correction is truthful, and I verified it three ways rather than reading the diff.
Ran: the gate's own tools/hw_gate_manifest.py verify against the real bases on this box, at this head:
tests/golden/hw-gate/manifest.json × 5 models, base ~/.cache/hw-gate/kld/<name>.kld
qwen3-0.6b rc=0 qwen3-4b-iq4xs rc=0 qwen3-coder-30b-a3b rc=0 qwen3.8-27b rc=0 zaya1-8b rc=0
So the manifest describes the files that exist: base_sha256, base_bytes, the model fingerprint
(sha256_first_64MiB + size) and the text sha256 all match. The five bases are real now — recorded today 14:45-14:48,
619 MB to 1.07 GB each.
The pin it now claims is the pin the tree carries: git ls-tree origin/main third_party/llama.cpp third_party/hrx-system → 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b and 82804197bcbe060b1371d6548337fdc842034cdd,
i.e. exactly what every one of the five recorded_at blocks now says (and the PR does not move a pin itself — its own
gitlinks are identical to main's). The old value e7e5cd08f9bb… was a different, stale llama.cpp; this is a correction,
not a relabelling of convenience.
pins() derives its values with git ls-tree HEAD third_party/<sub> (hw_gate_manifest.py), so it cannot repeat the
#720 defect of reading the engine sha through an uninitialised submodule.
One follow-up worth having, not a blocker: cmd_verify checks the base file, the model and the text, but never
compares recorded_at with the current pins — so the field is documentation today, and a future edit could relabel it
without anything noticing. A warning on drift is the right instrument rather than a failure: #772 moves llama.cpp
to 1991650479db, so a hard check would redden the gate on the next bump until the bases are re-recorded. With a warning,
the manifest's claim stays honest and the re-record stays a decision.
This is also the fix for the five kld … base logits missing rows that failed #772's gate run, so #772's acceptance is
unblocked by it once the gate re-runs.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
Confirmation at 0626adae5a631a0827f2ecff138ed9db4eb7ab65, update-branched and green. Nothing in this PR depends on the merges that landed under
it — the manifest edit is five recorded_at.llama.cpp values and the tree's own gitlink is what I re-checked: the file still
names the pin the branch carries, and tools/hw_gate_manifest.py verify returns rc 0 for all five bases against the
files on disk. tprs-ready stays.
|
Persistent review updated to latest commit 0626ada |
The five KLD bases in
~/.cache/hw-gate/kldwere re-recorded withscripts/hw-gate.sh --phases kld --recordat main's pin — llama.cpp4a58da9b087d23ac3596b35e58f3e69e29cd9f4b, the pin candidate 19 shipped — using binaries that self-reportversion: 1 (4a58da9), one model per GPU claim, thermal-guarded.The bytes did not change. Every base reproduced the manifest's sha256 exactly:
qwen3-0.6baf6eb4309794905f…qwen3-4b-iq4xs63062b57e90d4823…qwen3-coder-30b-a3b0d90e13f5fe99e22…qwen3.8-27ba31cb56ca9a9f336…zaya1-8b017898e89e8dd15c…So the only change is
recorded_at.llama.cpp: it still saide7e5cd08f9bb9d4b, an older pin than the bases are actually consistent with, and now says the pin they were verified at.hrx-systemstays82804197bcbe; nobase_sha256,base_bytes,model,textorlimitsentry moves, so no gate verdict changes — this is provenance kept accurate.Why it was needed: the shared
~/.cache/hw-gate/kldstore was emptied (twice in eight days), so the bases had to be rebuilt; recording them at the shipped pin is what makes the bump in #772 measurable against what actually shipped rather than against the bump itself. Theqwen3-0.6bstep was SIGKILLed once (rc 137, empty logs — heat or memory) and re-recorded alone, reproducingaf6eb430as well.Verified after the recording: all five files present, each sha256 equal to the manifest entry, and a
kld qwen3-0.6bre-record run finishing## HRX hardware gate: PASSwith 0 amdgpu ring timeouts.