Skip to content

fix(mcp): wire DefaultMcpProber and TrustScoreStore into bootstrap, fix stale delta, add ema_floor validation#2330

Merged
bug-ops merged 1 commit intomainfrom
fix/2315-mcp-prober-bootstrap-wiring
Mar 28, 2026
Merged

fix(mcp): wire DefaultMcpProber and TrustScoreStore into bootstrap, fix stale delta, add ema_floor validation#2330
bug-ops merged 1 commit intomainfrom
fix/2315-mcp-prober-bootstrap-wiring

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

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

Summary

EmbeddingAnomalyGuard bootstrap wiring is deferred — McpManager has no with_embedding_guard() API; a follow-up issue will be filed.

Test plan

  • cargo +nightly fmt --check — passes
  • cargo clippy --workspace -- -D warnings — passes (0 warnings)
  • cargo nextest run --workspace --lib --bins — 6396 passed, 15 skipped
  • Config with trust_calibration.enabled = true and probe_on_connect = true: prober and trust store wired at connect
  • Config with embedding_guard.threshold = 0.0: deserialization error returned
  • Config with embedding_guard.threshold = 1.5: deserialization error returned

@github-actions github-actions bot added documentation Improvements or additions to documentation 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 28, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 28, 2026 09:05
…ix stale delta, add ema_floor validation (#2315, #2323, #2322)

- Wire DefaultMcpProber and TrustScoreStore into agent bootstrap via
  wire_trust_calibration(); respects trust_calibration.enabled and
  probe_on_connect config flags (#2315)
- Add TrustScoreStore::load_and_apply_delta() to apply time-decay before
  writing score delta; replace raw apply_delta() at both manager.rs call
  sites (#2323)
- Add validate_embedding_threshold and validate_min_samples custom
  deserializers to EmbeddingGuardConfig; reject threshold outside (0.0,1.0]
  and min_samples == 0 (#2322)
- EmbeddingAnomalyGuard bootstrap wiring deferred: McpManager has no
  with_embedding_guard() API; tracked as follow-up
@bug-ops bug-ops force-pushed the fix/2315-mcp-prober-bootstrap-wiring branch from edf8a9c to 9cc6de1 Compare March 28, 2026 09:14
@bug-ops bug-ops merged commit 9f97104 into main Mar 28, 2026
25 checks passed
@bug-ops bug-ops deleted the fix/2315-mcp-prober-bootstrap-wiring branch March 28, 2026 09:21
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 rust Rust code changes size/L Large PR (201-500 lines)

Projects

None yet

1 participant