Skip to content

feat(host): weight loader with CRC32 and ternary validation (W61, R-HS-10) - #836

Merged
gHashTag merged 1 commit into
masterfrom
feat/wave-61/host-weight-loader
May 30, 2026
Merged

gHashTag merged 1 commit into
masterfrom
feat/wave-61/host-weight-loader

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Closes #835

Wave 61 (R-HS-10): Host weight loader with CRC32 and ternary validation

What

  • New bootstrap/src/host/weight_loader.rs
  • load_words(data, config) — parse byte buffer into u64 words
  • load_from_reader(reader, config) — read from any Read impl
  • encode_words / encode_with_crc — encode for storage/transfer
  • LoadConfig builder: raw(), with_checksum(), ternary() modes
  • WordFormat enum: RawBinary, PackedTernary, Crc32Trailer
  • LoadError variants: IoError, InvalidSize, ChecksumFailed, InvalidWord
  • Ternary validation: reserved bits (upper 10 must be zero), invalid trit 0b11
  • Embedded CRC32 table for self-contained checksum verification

Tests

15 new inline tests, all pass. 831 total tests on this branch.

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

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

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-05-24 08:17:30 UTC

Summary

Status Count
Total Open PRs 22
PRs with Failing Checks 2
PRs with All Checks Green 20
READY 19
FAILING 2
PENDING 0

This was referenced May 24, 2026
)

Wave 61 (R-HS-10): load_words, load_from_reader, encode_words, encode_with_crc.
LoadConfig builder (raw/with_checksum/ternary).
Ternary validation: reserved bits, invalid trit 0b11.
15 new tests, all pass. 831 total.
@gHashTag
gHashTag force-pushed the feat/wave-61/host-weight-loader branch from 032c78e to c24a5d6 Compare May 30, 2026 15:26
@gHashTag
gHashTag merged commit 968beab into master May 30, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

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

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-05-30 15:26:43 UTC

Summary

Status Count
Total Open PRs 37
PRs with Failing Checks 37
PRs with All Checks Green 0
READY 0
FAILING 37
PENDING 0

gHashTag added a commit that referenced this pull request Jun 1, 2026
) (#836)

Wave 61 (R-HS-10): load_words, load_from_reader, encode_words, encode_with_crc.
LoadConfig builder (raw/with_checksum/ternary).
Ternary validation: reserved bits, invalid trit 0b11.
15 new tests, all pass. 831 total.

Co-authored-by: Claude <claude@anthropic.com>
gHashTag added a commit that referenced this pull request Jun 1, 2026
) (#836)

Wave 61 (R-HS-10): load_words, load_from_reader, encode_words, encode_with_crc.
LoadConfig builder (raw/with_checksum/ternary).
Ternary validation: reserved bits, invalid trit 0b11.
15 new tests, all pass. 831 total.

Co-authored-by: Claude <claude@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

Development

Successfully merging this pull request may close these issues.

Host weight loader with CRC32 and ternary validation (R-HS-10)

2 participants