ligbox-ops-platform/api/app/agents/registry.py
Ligbox Spec Hub 3a2c64834b Initial import: ligbox-ops-platform + specs + LAPTOP + obsidian merge (CT130)
Source: VM122 /opt + obsidian-infra + LAPTOP
Hub: CT130 spec-hub 10.10.10.130
2026-06-19 17:26:41 +00:00

20 lines
1 KiB
Python

"""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"},
]