Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(ci): prompt-lock check must not import app.llm package (dep-light lint job) (#440)
Beenu Arorac1284dade31d
diff --git a/scripts/check_prompt_lock.py b/scripts/check_prompt_lock.pyindex 688135710..46c36a8d6 100644--- a/scripts/check_prompt_lock.py+++ b/scripts/check_prompt_lock.py@@ -12,13 +12,30 @@ Usage:from __future__ import annotations+import importlib.utilimport sysfrom pathlib import PathROOT = Path(__file__).resolve().parent.parent-sys.path.insert(0, str(ROOT / "services" / "agents"))-from app.llm.prompt_registry import default_registry, load_lock, write_lock # noqa: E402++def _load_prompt_registry_module():+ """Load prompt_registry.py by path so we don't trigger app/llm/__init__.py+ (which imports contract → structlog). This gate runs in the dep-light lint+ job, which installs only ruff + mypy; prompt_registry.py is stdlib-only."""+ path = ROOT / "services" / "agents" / "app" / "llm" / "prompt_registry.py"+ spec = importlib.util.spec_from_file_location("aisoc_prompt_registry_under_check", path)+ assert spec and spec.loader+ mod = importlib.util.module_from_spec(spec)+ sys.modules[spec.name] = mod+ spec.loader.exec_module(mod)+ return mod+++_pr = _load_prompt_registry_module()+default_registry = _pr.default_registry+load_lock = _pr.load_lock+write_lock = _pr.write_lockdef main() -> int: