Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(harness): fail closed on unknown delivery targets
cyh202a4ea1d7c1
diff --git a/core/backend_failure.py b/core/backend_failure.pyindex 4d3a238b5..b9102e8ec 100644--- a/core/backend_failure.py+++ b/core/backend_failure.py@@ -171,9 +171,11 @@ def _acknowledges_target() -> bool:if evidence == ACK_EVIDENCE_RECEIPT:return True+ target_platform = getattr(routed_delivery_context(context), "platform", None)return (evidence == ACK_EVIDENCE_DELIVERY_ONLY- and routed_delivery_context(context).platform != "avibe"+ and bool(target_platform)+ and target_platform != "avibe")diff --git a/tests/test_backend_failure.py b/tests/test_backend_failure.pyindex 070fc409a..981054501 100644--- a/tests/test_backend_failure.py+++ b/tests/test_backend_failure.py@@ -291,6 +291,42 @@ class BackendFailureTests(unittest.IsolatedAsyncioTestCase):self.assertEqual(notification["ack_evidence"], "delivery_only")self.assertIs(notification["delivered"], expected)+ async def test_delivery_only_ack_fails_closed_without_target_platform(+ self,+ ) -> None:+ request = _request()+ request.context.platform = None+ emissions = []++ async def emit(_context, message_type, _text, **kwargs):+ emissions.append((message_type, kwargs))+ evidence = kwargs.get("delivery")+ if message_type == "notify" and evidence is not None:+ evidence.delivered_id = "synthetic-id"+ evidence.send_returned = True+ return None++ controller = SimpleNamespace(+ agent_auth_service=SimpleNamespace(+ maybe_emit_auth_recovery_message=AsyncMock(return_value=False)+ ),+ emit_agent_message=emit,+ )++ await emit_backend_failure(+ controller,+ request.context,+ "codex",+ "stream disconnected",+ request=request,+ )++ notification = emissions[1][1]["output"].metadata[+ "turn_failure_notification"+ ]+ self.assertEqual(notification["ack_evidence"], "delivery_only")+ self.assertFalse(notification["delivered"])+async def test_auth_recovery_owns_the_only_terminal_settlement(self) -> None:request = _request()controller = SimpleNamespace(