ligbox-ops-platform/specs/035-ligbox-watchman/tasks.md
Ligbox Spec Hub c1881f58e6 chore: sync Console SSO, DNS viewer, specs e infra docs pendentes
Inclui console handoff Desk↔Console (Spec 019), melhorias DNS Viewer (037),
OpenPanel/Nextcloud/VM116 deploy notes, contracts stack e sidebar actualizado.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 20:10:17 +00:00

1.4 KiB

Spec 035 — Tasks

Status: Draft · Início: 2026-06-22


Fase 0 — Mitigação (hoje)

  • restart: unless-stopped em docker-compose.mvp.yml (api, frontend, worker, redis)
  • Deploy VM122 produção
  • Validar reboot test (opcional)

Fase 1 — Watchman MVP

  • Spec 035 + contracts/stack-services.yaml
  • projects/integrations/watchman/watchman.py
  • projects/integrations/watchman/probes.py (http, redis, docker)
  • projects/integrations/watchman/alerts.py (ntfy)
  • projects/integrations/watchman/store.py (SQLite)
  • deploy/watchman/install.sh + ligbox-watchman.service
  • deploy/watchman/watchman.env.example
  • Teste E2E: stop frontend → alerta → start → resolved
  • Documentar no deploy/manifest.yaml

Fase 2 — Integração

  • Refactor stack_health.py → ler YAML
  • Alertas email Postfix
  • GET /api/v1/watchman/status Desk
  • Card Watchman em INFRA CODE
  • Extensão catálogo: VM104, CT107, VM116, VM124

Fase 3 — Opcional

  • Auto-restart Docker containers críticos (flag WATCHMAN_REMEDIATE=0)
  • Webhook Desk → Eventos tab
  • Spec Hub portal link para status

Documentação

  • specs/035-ligbox-watchman/spec.md
  • quickstart.md
  • contracts/stack-services.yaml
  • contracts/status-snapshot.md
  • Actualizar docs/vms/README.md
  • Push Forgejo CT130