diff --git a/app/scopes.py b/app/scopes.py index f3017de..add2df2 100644 --- a/app/scopes.py +++ b/app/scopes.py @@ -3,15 +3,19 @@ from typing import List # Scopes matrix according to prompt.md # agent -> list of allowed scopes AGENT_SCOPES = { - "CLAUDE": ["infra", "llm", "nyora", "perso", "tt"], + "CLAUDE": ["infra", "llm", "nyora", "perso", "tt", "coding"], "HERMES_TT": ["infra", "llm", "tt"], "HERMES_NYORA": ["infra", "llm", "nyora"], "HERMES_PERSO": ["infra", "llm", "nyora", "perso"], - "GEMINI": ["infra", "llm", "nyora"], - "NABIL": ["infra", "llm", "nyora", "perso", "tt"] # Assuming Nabil has access to all + "GEMINI": ["infra", "llm", "nyora", "coding"], + "NABIL": ["infra", "llm", "nyora", "perso", "tt", "coding"] # Assuming Nabil has access to all } +# "coding" est transverse (memory_entries), pas dans ALL_SCOPES qui reste les +# scopes "rules" historiques (dict plat) ; get_agent_config/get_my_context ne +# doivent pas essayer de charger "coding" comme un scope rules classique. ALL_SCOPES = ["infra", "llm", "nyora", "perso", "tt"] +MEMORY_SCOPES = ["coding"] def has_scope_access(agent_name: str, scope: str) -> bool: allowed_scopes = AGENT_SCOPES.get(agent_name.upper(), [])