#39
Add observe_novelty(u64) hook for external coverage-guided search
Summary
Adds ephyra::observe_novelty(u64) so properties can feed external coverage or novelty signals (e.g. state-transition hashes, protocol-stage fingerprints, or out-of-process edge IDs from a subprocess/sandbox) into Ephyra's existing novelty tracking and targeted-phase seed pool — even without in-process LLVM coverage instrumentation.
Changes
- Export
observe_novelty(key: u64)fromephyra(no-op outside a running property). - Collect reported keys in the per-run thread-local side channel (
runner::labels). - Track seen external novelty keys in
Exec::external_novelty, counting newly discovered keys on passing non-shrink evaluations intoRan::novelty/Tested::novelty. - Treat non-empty
external_noveltyas active guided search inRunner::guided()so newly discovered inputs are retained in the targeted phase pool via the existingPool::add_forced()path. - Add unit tests covering key deduplication, outside-run no-op behavior,
Tested::novelty(), and targeted-phase activation without LLVM instrumentation.
Verification
cargo test --release -p ephyra(all unit + doc tests pass)cargo clippy -p ephyra --all-targets -- -D warnings(clean)cargo +nightly fmt --check(clean)