ClawBrainHub: read clawhdf5 (HDF5) .brains, not just JSON
CI / policy (push) Has been cancelled
CI / backend (push) Has been cancelled
CI / profile (push) Has been cancelled
CI / mobile (push) Has been cancelled

Add the pure-Rust clawhdf5 crate (git dep, no C deps) and parse HDF5 .brain
blobs: pull fetches raw bytes, brain_from_blob branches on the magic byte
(JSON '{' vs HDF5 \x89HDF) and reads the same datasets (identity/agent_md,
soul_md, skills/skills_md, tool_defs_json) into the shared card normalizer.
All 19 of omar's HDF5 brains now pull + appear in the picker (was JSON-only).
Verified live: omar/rust-2024 yields real skills; list now 22 brains.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-06 21:07:43 -05:00
co-authored by Claude Opus 4.8
parent b3d907c785
commit 63f60bfb9e
3 changed files with 220 additions and 36 deletions
@@ -44,6 +44,8 @@ rand = { workspace = true }
base64 = { workspace = true }
validator = { workspace = true }
async-trait = { workspace = true }
# Pure-Rust HDF5 reader: parse clawhdf5-format .brain files pulled from ClawBrainHub.
clawhdf5 = { git = "https://github.com/quantumclaws/clawhdf5", package = "clawhdf5" }
maxminddb = { version = "0.24", optional = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }