chore(#2038): scope observe_mcp_health to pub(crate) per review

This commit is contained in:
damocles 2026-07-20 18:24:06 +02:00
commit 4287435696

View file

@ -680,7 +680,7 @@ impl Bus {
/// after a core bounce) went silent. Emitted every degraded turn on
/// purpose: whether it persists across fresh turns is the signal that
/// picks the real fix.
pub fn observe_mcp_health(&self, v: &serde_json::Value) {
pub(crate) fn observe_mcp_health(&self, v: &serde_json::Value) {
if v.get("type").and_then(|t| t.as_str()) != Some("system")
|| v.get("subtype").and_then(|s| s.as_str()) != Some("init")
{