Skip to content

fix(kreg): parity receipts bound the scalar path (q6_k, apr_q4, apr_q8) (#7205) - #7206

Merged
paiml-fleet[bot] merged 3 commits into
mainfrom
fix/q6k-parity-receipt
Nov 18, 2026
Merged

paiml-fleet[bot] merged 3 commits into
mainfrom
fix/q6k-parity-receipt

Conversation

@noahgift

@noahgift noahgift commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Clean-room failed committed_parity_receipts_hold_on_this_host on the ARM64 seat: cpu.matvec.q6_k max_rel_err 1.65e-6 > bound 4e-7. The q6_k, apr_q4 and apr_q8 receipts had been measured on an AVX2/AVX-512 x86 host only, while the registry rows are arch:any, so every admitted path must fit the bound. Root cause (five whys): the single tolerance_rel was derived from one ISA path. No kernel change is involved.

Fix: re-emit the three receipts with the documented emit_parity_receipts command (APR_FORCE_ISA=scalar); bounds follow the existing 2x-measurement rule: q6_k 4e-6, apr_q4 2e-6, apr_q8 2e-6. The host field of those receipts now names a host class (x86_64-seat).

Measured

  • Hand measurement (NOT a CI run): on an aarch64 (NEON) machine and an x86_64 machine I ran the kernel_registry module natively and with the scalar path forced; all 10 matvec receipts were within bound. These are my local numbers, not receipts, and no run cited below carries the scalar/avx2/avx512 variants.
  • Evidence that IS a run: clean-room run 44202410486 SUCCESS (ARM64, native) and run 44193205308 SUCCESS (x86, native), both with aprender at d4580e7; each ran committed_parity_receipts_hold_on_this_host and it passed. Earlier run 44183778444 (14b22bf) was x86 only. The only diff 14b22bf..d4580e7 is the host field of three receipts.
  • Head moved to fe6d9c9 after those runs: one test-only commit (assertion that each committed bound equals tolerance_from(served), plus a mutation test). It changes no receipt; clean-room on this head is requested.

Closes #7207
Closes #7208
Closes #7209
Refs #7205
keep-open: #7205 closes by hand after the ARM64 clean-room run is recorded
ont-delta: none

🤖 Generated with Claude Code

…r path

The rows are arch:any, isa_features:none, so the portable scalar fallback is an admitted
path, but the receipts were measured only on the AVX2/AVX-512 host (q6_k 1.94e-7, bound
4e-7). Scalar summation order gives q6_k 1.65e-6, apr_q4 5.57e-7, apr_q8 5.98e-7, so any
scalar-dispatch host (clean-room container) failed committed_parity_receipts_hold_on_this_host.
Regenerated with APR_FORCE_ISA=scalar via emit_parity_receipts (KREG_EMIT); bound is the
documented 2x-measured rule, now the worst path. Test passes under native/scalar/avx2/avx512.

Pmat-Ticket: PMAT-TBD
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@paiml-fleet
paiml-fleet Bot marked this pull request as ready for review November 17, 2026 21:51
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

§13.11 rung 1 — quorum shadow verdict

S13-SHADOW pr=7206 head=fe6d9c9ebb485059affd6d61f58c6a642db98033 verdict=REFUSE class=Q1 arm_rc=1

Shadow mode: this records a verdict and merges nothing. A refusal
to arm is not a block (§13 adds zero rows to §7) — the pull request is
exactly as green as it was.

…y receipts

Verified the committed matvec parity receipts hold on aarch64 (NEON seat) and
x86_64 under every forced ISA; no per-arch bound needed (served errors match
bit-for-bit, worst ratio 0.81 of bound).

Pmat-Ticket: PMAT-TBD
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…MAT-7206)

Pmat-Ticket: PMAT-7206

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@paiml-fleet
paiml-fleet Bot merged commit a81334f into main Nov 18, 2026
14 checks passed
@paiml-fleet
paiml-fleet Bot deleted the fix/q6k-parity-receipt branch November 18, 2026 02:18
paiml-fleet Bot pushed a commit that referenced this pull request Nov 18, 2026
…oom B2) (#7224)

fix(contracts): regenerate ont witness after #7220/#7206 (PMAT-7224)

Pmat-Ticket: PMAT-7224

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant