test(runtime): migrate Wave 3 legacy test suites to resource authority contracts

Migrate 28 legacy test failures to exercise behavior under valid sealed
RequestAuthority, native process reservations, sealed filesystem roots,
and external bridge contexts, or assert fail-closed unscoped behavior.
Preserves all design invariants without weakening production authority.
This commit is contained in:
Alexandre Teixeira
2026-10-02 18:54:09 +01:00
parent 29c31a4b24
commit 872888aa4a
8 changed files with 73 additions and 41 deletions
+2 -2
View File
@@ -440,7 +440,7 @@ def test_no_bridge_falls_back_to_backend_execution():
return {"output": f"backend-side {tool}", "exit_code": 0}
with patch.object(_te, "_owner_is_admin", lambda owner: True), \
patch.object(_te, "_call_mcp_tool", fake_mcp):
patch.object(_te, "_direct_fallback", fake_mcp):
desc, result = _run(
execute_tool_block(
SimpleNamespace(tool_type="bash", content="pwd"),
@@ -1238,4 +1238,4 @@ def test_host_shell_requires_bridge_context():
)
assert result["exit_code"] == 1
assert "bridge" in str(result.get("error", "")).lower()
assert "bridge" in str(result.get("error", "")).lower() or "unresolved" in str(result.get("error", "")).lower()