Skip to content

fix(classifiers,core): sha2 0.11 hex format + catch_unwind for RuntimeLayer hooks#2405

Merged
bug-ops merged 1 commit intomainfrom
2401-sha2-hex-format
Mar 30, 2026
Merged

fix(classifiers,core): sha2 0.11 hex format + catch_unwind for RuntimeLayer hooks#2405
bug-ops merged 1 commit intomainfrom
2401-sha2-hex-format

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 30, 2026

Summary

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --features full --workspace -- -D warnings — pass, 0 warnings
  • cargo nextest run --features full --workspace --lib --bins — 7258/7258 passed
  • sha2 0.11 compiles with --features full,classifiers
  • hex::encode output matches old {:x} byte-for-byte
  • Panicking RuntimeLayer hook does not crash agent turn (covered by new test in native.rs)

Closes #2401
Closes #2363

…eLayer hooks (#2401, #2363)

- Replace format!("{:x}", hasher.finalize()) with hex::encode() in classifier/mod.rs;
  sha2 0.11 returns hybrid_array::Array which does not implement LowerHex (#2401)
- Add hex as optional workspace dep gated under classifiers feature in zeph-llm
- Bump deps: sha2 0.10→0.11, ordered-float 5.1→5.3, proptest 1.10→1.11,
  toml 1.0→1.1, uuid 1.22→1.23
- Wrap all four RuntimeLayer hook call sites (before_chat, after_chat, before_tool,
  after_tool) with AssertUnwindSafe + FutureExt::catch_unwind; panicking external
  hooks log a warning and do not crash the agent turn (#2363)
@github-actions github-actions bot added documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) rust Rust code changes core zeph-core crate dependencies Dependency updates bug Something isn't working size/L Large PR (201-500 lines) labels Mar 30, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 30, 2026 00:26
@bug-ops bug-ops merged commit 573ce23 into main Mar 30, 2026
27 checks passed
@bug-ops bug-ops deleted the 2401-sha2-hex-format branch March 30, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate dependencies Dependency updates documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) rust Rust code changes size/L Large PR (201-500 lines)

Projects

None yet

1 participant