Files
alktype/docs
glm-5.2 ee6e773123 Add pre-publish code review #002 (2 medium, 3 low, 2 nit)
Full source read of all 13 src/*.rs files for correctness, panic
safety, and API ergonomics ahead of v0.1.0 crates.io publish.

Findings:
- M1: Definitions::merge_into silently drops data via double-
  unwrap_or_default chain; untested public API
- M2: write_bytes truncates u32 length prefix on >4GiB data
  (data_len as u32 without bounds check)
- L1: materialize.rs union path uses unchecked offset arithmetic
  (sequential_reader.rs sibling uses checked_add)
- L2: three unreachable!() in production code (offset_map, layout_
  builder, materialize)
- L3: AlkTypeError::source() returns None for Validation variant
  (ValidationError implements std::error::Error)
- N1: is_rfc3339_timestamp is non-strict (Feb 31 passes, seconds
  unchecked)
- N2: SequentialReader returns FieldValue::Bytes for Record (API
  asymmetry vs other composites)

Verification baseline (commit c0217d9):
- cargo test --release: 438 tests pass (391 crate + 47 integration)
- cargo clippy --all-targets -- -D warnings: clean
- cargo build --target wasm32-unknown-unknown --release: clean
- no unsafe, no TODO/FIXME, all unwrap/expect/panic in test modules
2026-08-11 08:38:39 +00:00
..