Humanlearning's picture
feat: implement core RL training infrastructure, including GRPO training, evaluation utilities, custom environments, and Modal-based execution scripts.
3807ea3
raw
history blame contribute delete
420 Bytes
"""Safety boundaries for local-only defensive AppSec episodes."""
from __future__ import annotations
FORBIDDEN_BEHAVIOR = (
"external network access",
"host filesystem reads",
"hidden test access",
"oracle access",
"credential extraction",
"persistence or evasion",
)
def is_local_route(path: str) -> bool:
return path.startswith("/") and not path.startswith("//") and "://" not in path