tenseleyflow/loader / 0b56627

Browse files

Add direct tests for runtime safeguard ownership

Authored by espadonne
SHA
0b56627db40ef2ea0d5829b05e00ef211d275703
Parents
59ebe9c
Tree
4bf72a1

1 changed file

StatusFile+-
M tests/test_safeguard_services.py 6 1
tests/test_safeguard_services.pymodified
@@ -2,12 +2,13 @@
22
 
33
 from __future__ import annotations
44
 
5
-from loader.agent.safeguards import RuntimeSafeguards
5
+from loader.agent.safeguards import RuntimeSafeguards as AgentRuntimeSafeguards
66
 from loader.runtime.safeguard_services import (
77
     ActionTracker,
88
     PreActionValidator,
99
     ValidationResult,
1010
 )
11
+from loader.runtime.safeguards import RuntimeSafeguards
1112
 
1213
 
1314
 def test_action_tracker_detects_duplicate_write_after_recording(tmp_path) -> None:
@@ -60,3 +61,7 @@ def test_runtime_safeguards_wrap_runtime_owned_services() -> None:
6061
 
6162
     assert isinstance(safeguards.action_tracker, ActionTracker)
6263
     assert isinstance(safeguards.validator, PreActionValidator)
64
+
65
+
66
+def test_agent_safeguards_reexport_runtime_safeguards() -> None:
67
+    assert AgentRuntimeSafeguards is RuntimeSafeguards