ligbox-ops-platform/projects/ops-desk/api/app/agents/registry.py
Ligbox Spec Hub 821675ab4a Reorganize monorepo into projects/wizard, ops-desk, finance
Specs stay at repo root (cross-VM). Move deploy and code into logical
projects with README per domain, updated manifest.yaml, and symlinks at
legacy paths for VM122 backward compatibility.
2026-06-19 18:55:03 +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"},
]