Skip to content

build(deps): bump lattice-embed and lattice-fann to 0.7.1 - #1661

Merged
ohdearquant merged 2 commits into
mainfrom
chore/lattice-071
Aug 2, 2026
Merged

build(deps): bump lattice-embed and lattice-fann to 0.7.1#1661
ohdearquant merged 2 commits into
mainfrom
chore/lattice-071

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Bumps the two lattice dependencies from 0.6.0 to 0.7.1.

Changes

  • crates/Cargo.toml: lattice-embed and lattice-fann to "0.7.1" (MSRV unchanged at 1.93).
  • Rename MAX_TEXT_CHARS -> MAX_TEXT_BYTES across all 10 consuming files (44 occurrences). lattice-embed 0.7.x renames the constant because the limit always counted UTF-8 bytes; the old name survives only as a deprecated alias, which fails the clippy -D warnings gate. Same value (32768), same comparison — no behavior change.

Verification

  • cargo check --workspace: clean, zero warnings after the rename.
  • cargo clippy --workspace --all-targets -- -D warnings: clean.
  • cargo fmt --all -- --check: clean.
  • Test suites of the consuming crates (khive-runtime, khive-pack-knowledge, khive-hnsw, khive-pack-kg, kkernel): all green.
  • Byte-semantics probe: CJK input with char count under the cap but byte count over it is rejected with byte lengths against the published cap on both sides of the dependency boundary; under-cap input clears validation.
  • Distance-path audit: the workspace calls dot_product, euclidean_distance, squared_euclidean_distance, the resolved dot-product kernels, and dot_product_i8_raw. The files defining the f32 functions are byte-identical between v0.6.1-consumed code paths at v0.7.0 and v0.7.1; the quantized change is x86_64-only cfg-gating (compiles out on aarch64).

Note for x86_64 deployments

0.7.x removes the compile-feature gate on the AVX-512 VNNI int8 dot kernel: hosts advertising VNNI now select it at runtime where earlier default builds fell back to AVX2. Accumulation order can differ for int8 dot products at high dimension. Only relevant where the quantized HNSW index runs on such hosts.

lattice-embed 0.7.x renames MAX_TEXT_CHARS to MAX_TEXT_BYTES: the limit always
counted UTF-8 bytes, and the old name is now a deprecated alias that fails the
clippy -D warnings gate. Rename all call sites accordingly (same value, 32768).

Verified against the published crates: workspace check clean with zero warnings,
and a byte-semantics probe over CJK input (char count under the cap, byte count
over it) confirms rejection reports byte lengths against the published cap on
both sides of the dependency boundary.
@ohdearquant
ohdearquant marked this pull request as ready for review August 2, 2026 21:57
….7.1

khive-merge maintains its own workspace and lockfile; the CI per-crate
--locked compile check requires it to agree with the bumped manifest.
@ohdearquant
ohdearquant merged commit 0ff3dff into main Aug 2, 2026
26 checks passed
@ohdearquant
ohdearquant deleted the chore/lattice-071 branch August 2, 2026 22:49
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