This was generated by AI during PR review (desk review of #547, #548, #549, #550, #553, #559, 2026-10-18).
Three independent read-only reviews found no blocking bug in the Qwen3.8-27B stack; these are the follow-ups, each traced to a line at the reviewed heads. Refs #541-#545, aien-sovereign-core-mv#641.
Safety (recorded launch lists)
- #553
src/omega_gpu_prefill_attn256_api.c:124-130(MEDIUM): the shared q' scratch is freed and reallocated when a later host/dev call needs more tokens; the record path only checks size at record time (:164). Record at m=512, then a host call at m=4096, then submit: every launch uses a freed address. Pin the scratch like GDN does (omega_gpu_gdn_api.h:81-82). No caller records this path yet. - #549
src/omega_gpu_gdn_api.c:380: record path checks scratch size, not that it is reserved (matmul requires reserved,omega_gpu_matmul_api.c:478); same freed-memory scenario via the realloc at :384. - #550
omega_gpu_decode_attn256_api.c:253: record path and layers above 0 never run on chip; split counters rely on the previous kernel's reset with no check.
Wrong answers reported as OK
- #548
src/omega_gpu_gdn_api.c:150set_layeraccepts NaN/inf parameters; the output check (:280) only looks for the poison value, so NaN output returns OK and stays in state until reset. - #559
src/omega_gpu_q38_graph.c:105-112never checks the attention cache uses rotary 64 (gather table hard-codes 64, :65). - #559
record_layer(:286) says "out of order" but never checks; a repeated or skipped layer advances GDN state twice; a failed token leaves GDN state partly advanced with no rollback (:296-301, :350-365). - #548
src/omega_gpu_gdn_api.c:228no alignment check forz_va(16 B) /ab_va(8 B) on the record path (would fault, not silently corrupt).
Tests that could miss a bug
- #550
tests/gpu_decode_attn256_test.c:138: fixed 3e-3 x max|v| while outputs at ctx 4096-32768 are ~0.004-0.009 RMS; a dropped split at 32768 (~3e-4 shift) passes. Measured error is <5e-4 of tolerance: tighten ~100x; print more digits than%.3f. - #553
tests/gpu_prefill_attn256_test.c:54,157: fixed 5e-3; worst measured error at 30720+2048 is 0.007 of it. - #559
tests/gpu_q38_graph_test.c:83,289: capped at 8 layers; the 64-layer 596-launch list never runs in this test (whole-model parity ran through sovereign-core). - #549 chip output checked only at T<=41 (
tests/gpu_gdn_test.c:484-489,576); no prefill-then-prefill test (the documented long-prompt path). - #559 explain token 0 being ~50x worse than tokens 1-2 in
evidence/q38-graph-chip-20261018T1547Z/main.log(logits diff 3.27e-4 vs 6.7e-6).
Smaller
- #547
omega_gblackwell_codegen_gemm.c:137older CUDA-core GEMM still refuses k>16384 (loud CODEGEN_FAIL; prefill down_proj must use tcgemm). Comment atomega_gpu_fp8_api.h:20still says 16384. - #553 ISETP_GE/IADD3/EXIT now take the emitter's control word (
src/omega_blackwell_codegen.c:375,379,418,681); IADD3 no longer always waits on scoreboard 4. The 19-test chip sweep passed; kernels outside it are unverified.
🤖 Generated with Claude Code