"""Scenario registry — Spec 029.""" from __future__ import annotations from pathlib import Path import yaml REGISTRY = Path(__file__).resolve().parent / "scenarios" / "registry.yaml" def load_registry() -> list[dict]: if REGISTRY.exists(): data = yaml.safe_load(REGISTRY.read_text(encoding="utf-8")) or {} return list(data.get("scenarios") or []) return [ {"id": "desk.api.health", "title": "Desk VM122 API", "severity_default": "high"}, {"id": "wizard.vm112.bundle", "title": "VM112 Wizard", "severity_default": "high"}, {"id": "pfsense.api.system", "title": "pfSense API", "severity_default": "warn"}, {"id": "funnel.stuck.onboarding", "title": "Funil travado", "severity_default": "warn"}, {"id": "integration.webhook.gap", "title": "Gap webhook VM112", "severity_default": "high"}, {"id": "proxmox.cluster", "title": "Proxmox VMs críticas", "severity_default": "critical"}, {"id": "ollama.vm123.health", "title": "Ollama VM123", "severity_default": "high", "agent_id": "sentinel"}, {"id": "vm123.finance.stack", "title": "VM123 Finance Stack", "severity_default": "high", "agent_id": "sentinel"}, {"id": "vm123.openpanel.bridge", "title": "OpenPanel Bridge VM123", "severity_default": "warn", "agent_id": "sentinel"}, ]