a2a-source-edit: write tests/test_runtime_safety.py

This commit is contained in:
a2a-cloud
2026-07-13 12:20:53 +00:00
parent bd3c576d51
commit cbf31426d8

View File

@@ -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