From cbf31426d8cbf4753682ec9913dd6f24600cfba2 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 12:20:53 +0000 Subject: [PATCH] a2a-source-edit: write tests/test_runtime_safety.py --- tests/test_runtime_safety.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_runtime_safety.py diff --git a/tests/test_runtime_safety.py b/tests/test_runtime_safety.py new file mode 100644 index 0000000..e495027 --- /dev/null +++ b/tests/test_runtime_safety.py @@ -0,0 +1,12 @@ +"""Runtime safety checks for the current deterministic release validator.""" + +from agent import CustomerIntegrationEngineer + + +def test_no_llm_required_by_pricing(): + assert CustomerIntegrationEngineer.pricing.caller_pays_llm is False + + +def test_workspace_modes_declared(): + modes = {mode.value for mode in CustomerIntegrationEngineer.workspace_access.allowed_modes} + assert {"read_only", "read_write_overlay"} <= modes