M4 implementada e backlog validado

This commit is contained in:
Marcos Lohmann
2026-09-14 11:22:03 -03:00
parent c894c1604b
commit 2fe6d6d508
53 changed files with 3152 additions and 39 deletions

View File

@@ -61,6 +61,14 @@ def _gateway_url() -> str:
return f"http://127.0.0.1:{_current_gateway_port}/mcp"
def gateway_url() -> str:
"""Public accessor for `tests/adversarial/`: tests that need to send a raw
(non-`ClientSession`) HTTP request against the currently running
`governed_stack` gateway -- e.g. a header/body mismatch that must be
rejected before any MCP session handshake."""
return _gateway_url()
def free_port() -> int:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind(("127.0.0.1", 0))