Skip to content

feat: cross-target bit-exact for IGLA RACE ternary MAC + gen-backend findings - #1880

Merged
gHashTag merged 1 commit into
masterfrom
feat/verify-igla-race
Aug 7, 2026
Merged

feat: cross-target bit-exact for IGLA RACE ternary MAC + gen-backend findings#1880
gHashTag merged 1 commit into
masterfrom
feat/verify-igla-race

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Applies the GF-T trainer's multi-target discipline to IGLA RACE. verify_igla_race.py emits ternary_mul/ternary_mac (the multiplier-free R-SI-1 MAC primitives, {-1,0,+1} weights) from specs/igla/race/ternary_mac.t27 to C and Rust via t27c and cross-checks against an independent reference over 800 vectors incl. edges (a=-128 sign-flip wrap, invalid codes, i32 edges): C == Rust == reference bit-exact. Guard verified (161 mismatches on a corrupted sign-flip).

Findings surfaced by the harness: (1) the FULL spec does NOT emit compilable C/Rust — gen-c chokes on slice .len() (in ternary_dot) + emits test functions twice; gen-rust emits serde derives (unavailable) + a non-Copy struct moved twice. So RACE's spec→any-target holds for the arithmetic core but not the whole spec. (2) seal math_math-igla-primitives.json exists but source specs/math/igla_primitives.t27 is absent from the tree (imported by coder/arch.t27). Wired into emit-bitexact-gate. Refs #1764

…findings

Applies the GF-T trainer's multi-target discipline to IGLA RACE. verify_igla_race.py
emits ternary_mul/ternary_mac (the multiplier-free R-SI-1 MAC primitives) from
specs/igla/race/ternary_mac.t27 to C and Rust via t27c and cross-checks against an
independent reference over 800 vectors incl. edges (a=-128 sign-flip wrap, invalid
codes, i32 edges): C == Rust == reference bit-exact. Verified the guard catches a
corrupted sign-flip (161 mismatches).

Finding: the FULL spec does NOT emit compilable C/Rust -- gen-c chokes on slice
.len() (ternary_dot) and emits test functions twice; gen-rust emits serde derives
(unavailable) + a non-Copy struct moved twice. The tool reports this and verifies
the core by extracting decode/mul/mac. Finding: seal math_math-igla-primitives.json
exists but specs/math/igla_primitives.t27 is absent from the tree. Wired into
emit-bitexact-gate (SKIPs if cc/rustc/t27c absent).

Refs #1764

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-07 15:07:09 UTC

Summary

Status Count
Total Open PRs 13
PRs with Failing Checks 1
PRs with All Checks Green 12
READY 5
FAILING 1
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=4c1aaad5309a != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag merged commit 332cda2 into master Aug 7, 2026
18 checks passed
@gHashTag
gHashTag deleted the feat/verify-igla-race branch August 7, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant