Scope workspace roots per account

This commit is contained in:
Hamza Ayed
2026-10-03 01:44:00 +03:00
parent 1b56f70aa6
commit 4345e43e29
10 changed files with 250 additions and 54 deletions
@@ -21,6 +21,11 @@ class AgentSkillTests(unittest.TestCase):
def setUpClass(cls) -> None:
cls.client = authenticated_client(app)
cls.workspace = str(Path(__file__).resolve().parents[1])
cls.workspace_environment = patch.dict(
os.environ, {"SOVEREIGNAI_ALLOWED_WORKSPACES": cls.workspace}
)
cls.workspace_environment.start()
cls.addClassCleanup(cls.workspace_environment.stop)
def test_skill_catalog_discloses_scope_and_permissions(self) -> None:
response = self.client.get("/v1/agent/skills")