Skip to content

hw-gate: record the KLD bases' provenance at the shipped pin (llama.cpp 4a58da9b087d) - #783

Merged
bong-water-water-bong merged 4 commits into
mainfrom
record/hw-gate-kld-at-4a58da9b
Nov 1, 2026
Merged

bong-water-water-bong merged 4 commits into
mainfrom
record/hw-gate-kld-at-4a58da9b

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

The five KLD bases in ~/.cache/hw-gate/kld were re-recorded with scripts/hw-gate.sh --phases kld --record at main's pin — llama.cpp 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b, the pin candidate 19 shipped — using binaries that self-report version: 1 (4a58da9), one model per GPU claim, thermal-guarded.

The bytes did not change. Every base reproduced the manifest's sha256 exactly:

model sha256 bytes
qwen3-0.6b af6eb4309794905f… 619,931,604
qwen3-4b-iq4xs 63062b57e90d4823… 619,931,604
qwen3-coder-30b-a3b 0d90e13f5fe99e22… 619,931,604
qwen3.8-27b a31cb56ca9a9f336… 1,013,178,324
zaya1-8b 017898e89e8dd15c… 1,069,596,564

So the only change is recorded_at.llama.cpp: it still said e7e5cd08f9bb9d4b, an older pin than the bases are actually consistent with, and now says the pin they were verified at. hrx-system stays 82804197bcbe; no base_sha256, base_bytes, model, text or limits entry moves, so no gate verdict changes — this is provenance kept accurate.

Why it was needed: the shared ~/.cache/hw-gate/kld store 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. The qwen3-0.6b step was SIGKILLed once (rc 137, empty logs — heat or memory) and re-recorded alone, reproducing af6eb430 as well.

Verified after the recording: all five files present, each sha256 equal to the manifest entry, and a kld qwen3-0.6b re-record run finishing ## HRX hardware gate: PASS with 0 amdgpu ring timeouts.

…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.
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 0626ada)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

772 - Partially compliant

Compliant requirements:

  • Bump HRX: llama.cpp 1991650479db (fork tip; TOP_K on HRX) + held hrx-system 82804197bcbe
  • Move the HRX pair to the fork's current tip
  • Update third_party/llama.cpp from 4a58da9b087d to 1991650479db1f4b6c97324707d13608b1e8d776
  • Keep third_party/hrx-system at held 82804197bcbe
  • Regenerate registry/architectures.json against the new pin
  • Rebase onto current main (d3d2667)

Non-compliant requirements:

  • Replace Bump HRX: llama.cpp 37ca4d442ad4 + hrx-system 82804197bcbe #759, which was cut at 37ca4d442ad4 (this PR does not address the replacement of the previous PR)
  • The hardware gate is this PR's acceptance (this is a record of KLD bases, not the actual hardware gate)
  • hw-gate.yml triggers on the bump-hrx/* branch name (this PR does not change the branch name or trigger)

Requires further human verification:

  • The hardware gate is this PR's acceptance (needs to be verified by the orchestrator)
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Provenance Record Update

The llama.cpp version recorded in the manifest has been updated from e7e5cd08f9bb9d4b7dcf9d25f8fcce5a036358a6 to 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b. This change reflects the actual pin at which the KLD bases were recorded, ensuring accurate provenance tracking. This is a metadata update and does not introduce any functional changes.

"llama.cpp": "4a58da9b087d23ac3596b35e58f3e69e29cd9f4b"
Provenance Record Update

The llama.cpp version recorded in the manifest has been updated from e7e5cd08f9bb9d4b7dcf9d25f8fcce5a036358a6 to 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b. This change reflects the actual pin at which the KLD bases were recorded, ensuring accurate provenance tracking. This is a metadata update and does not introduce any functional changes.

"llama.cpp": "4a58da9b087d23ac3596b35e58f3e69e29cd9f4b"
Provenance Record Update

The llama.cpp version recorded in the manifest has been updated from e7e5cd08f9bb9d4b7dcf9d25f8fcce5a036358a6 to 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b. This change reflects the actual pin at which the KLD bases were recorded, ensuring accurate provenance tracking. This is a metadata update and does not introduce any functional changes.

"llama.cpp": "4a58da9b087d23ac3596b35e58f3e69e29cd9f4b"
Provenance Record Update

The llama.cpp version recorded in the manifest has been updated from e7e5cd08f9bb9d4b7dcf9d25f8fcce5a036358a6 to 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b. This change reflects the actual pin at which the KLD bases were recorded, ensuring accurate provenance tracking. This is a metadata update and does not introduce any functional changes.

"llama.cpp": "4a58da9b087d23ac3596b35e58f3e69e29cd9f4b"
Provenance Record Update

The llama.cpp version recorded in the manifest has been updated from e7e5cd08f9bb9d4b7dcf9d25f8fcce5a036358a6 to 4a58da9b087d23ac3596b35e58f3e69e29cd9f4b. This change reflects the actual pin at which the KLD bases were recorded, ensuring accurate provenance tracking. This is a metadata update and does not introduce any functional changes.

"llama.cpp": "4a58da9b087d23ac3596b35e58f3e69e29cd9f4b"

@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

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 bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 1, 2026

@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

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.

@bong-water-water-bong
bong-water-water-bong merged commit ca4210e into main Nov 1, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the record/hw-gate-kld-at-4a58da9b branch November 1, 2026 19:33
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 0626ada

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

Labels

Review effort 2/5 tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant