Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Reword the errored-check annotation to drop "fully"

Timo Bozsolik-Torresaa7c4c9f1307
diff --git a/core/switch_core/trust/client.py b/core/switch_core/trust/client.py
index 4af8e3f9c..1188e73ea 100644
--- a/core/switch_core/trust/client.py
+++ b/core/switch_core/trust/client.py
@@ -297,7 +297,7 @@ def trust_annotation(result: TrustCheckResult) -> str | None:
detail = categories or "policy alert"
return f"⚠️ _Switch Trust flagged this message (not blocked - {detail})._"
if result.outcome == "errored":
- return "⚠️ _Switch Trust could not fully check this message_"
+ return "⚠️ _Switch Trust could not check this message_"
return None
diff --git a/core/tests/integration/test_switch_trust_agent_e2e.py b/core/tests/integration/test_switch_trust_agent_e2e.py
index 4bf3d746d..971c560dc 100644
--- a/core/tests/integration/test_switch_trust_agent_e2e.py
+++ b/core/tests/integration/test_switch_trust_agent_e2e.py
@@ -286,5 +286,5 @@ async def test_trust_check_failure_fails_open_and_notifies_instead_of_blocking(
admin_rows = [row for row in rows if "com.switch.admin" in row.content]
assert len(admin_rows) == 1
assert admin_rows[0].content["com.switch.admin"]["type"] == "trust_errored"
- assert "Switch Trust could not fully check" in admin_rows[0].content["body"]
+ assert "Switch Trust could not check" in admin_rows[0].content["body"]
assert admin_rows[0].thread_root_event_id == sent[0].transport_event_id
diff --git a/core/tests/switch_core/bridges/collaboration/test_bridge_inbound_trust.py b/core/tests/switch_core/bridges/collaboration/test_bridge_inbound_trust.py
index a5a605d59..f944b10c3 100644
--- a/core/tests/switch_core/bridges/collaboration/test_bridge_inbound_trust.py
+++ b/core/tests/switch_core/bridges/collaboration/test_bridge_inbound_trust.py
@@ -287,10 +287,10 @@ async def test_trust_check_failure_fails_open_and_annotates_instead_of_blocking(
assert len(human_actor.sent) == 1
_, content = human_actor.sent[0]
assert content.startswith("hello there")
- assert "Switch Trust could not fully check" in content
+ assert "Switch Trust could not check" in content
# Same as an alert: the room content alone never reaches the sender's
# platform, so the degraded-check notice needs its own call too.
assert len(adapter.admin_messages) == 1
_, body, _, message_type = adapter.admin_messages[0]
- assert "Switch Trust could not fully check" in body
+ assert "Switch Trust could not check" in body
assert message_type == AdminMessageType.TRUST_ERRORED.value