Skip to content

fix(memory,tools): propagate LLM edge confidence and fix tracing span#4745

Merged
bug-ops merged 1 commit into
mainfrom
4723-4731-memory-scrape-fixes
May 30, 2026
Merged

fix(memory,tools): propagate LLM edge confidence and fix tracing span#4745
bug-ops merged 1 commit into
mainfrom
4723-4731-memory-scrape-fixes

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

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

Summary

Test plan

  • cargo nextest run -p zeph-memory --lib — 1448 passed (includes 2 new regression tests: extract_and_store_forwards_edge_confidence_not_hardcoded_08 and extract_and_store_apex_forwards_edge_confidence_not_hardcoded_08)
  • cargo nextest run -p zeph-tools --lib — 1228 passed
  • cargo nextest run --workspace --lib --bins — 10422 passed
  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace -- -D warnings — clean

Closes #4723
Closes #4731

Closes #4723: resolve_edge_typed passed hardcoded 0.8 instead of
edge.confidence to the store in both the non-APEX and APEX-MEM paths.
Introduces DEFAULT_EDGE_CONFIDENCE const to eliminate the magic number
and forwards edge.confidence.unwrap_or(DEFAULT_EDGE_CONFIDENCE) at both
call sites. Adds two regression tests (non-APEX and APEX paths).

Closes #4731: resolve_and_validate created a tracing span before the
async DNS lookup but entered it after .await, leaving the actual async
work invisible in traces. Replaced manual span.enter() with
#[tracing::instrument], consistent with the apply_ipi_filter fix (#4730).
@github-actions github-actions Bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes bug Something isn't working size/M Medium PR (51-200 lines) labels May 30, 2026
@bug-ops bug-ops merged commit b374be4 into main May 30, 2026
32 checks passed
@bug-ops bug-ops deleted the 4723-4731-memory-scrape-fixes branch May 30, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

1 participant