# 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

- [x] 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

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