Monitoring Sprint: 53 monitors + self-healing + push-notifications #22

Merged
root merged 34 commits from sprint/matrix-2026-09 into main 2026-10-07 14:01:13 +00:00
34 Commits
Author SHA1 Message Date
root 5f86ad4200 docs: add initial runbook for matrix service (CT 104) 2026-10-07 16:52:27 +03:00
root 15b79e0b5b feat: formalize comms-agent and initialize agent_registry (F2-1)
- Populated agents/REGISTRY.md with 8 planned agents
- Created first agent charter: CHARTER-comms-agent.md (Telegram Bot)
- Added SQL init script for agent_registry table in PG (CT 151)
- Registered comms-agent as 'active' in the database
2026-10-07 12:38:50 +03:00
root eee86a73e5 docs: establish core infrastructure policies (F1-2)
- Added issue-schema.md (YAML frontmatter, deduplication rules)
- Added change-management.md (Git-only changes, version pinning)
- Added backup-policy.md (RPO/RTO targets, mandatory restore-drill)
- Added secret-policy.md (Vaultwarden only, 90-day rotation, no secrets in Git)
2026-10-07 12:30:40 +03:00
root 694912984a chore: establish canonical repo structure and clean up Gitea spam (F1-1, F1-3)
- Created canonical directories: services/comms, agents, audit, workflows/n8n, policies
- Moved Telegram Admin Bot source to services/comms/telegram-admin-bot/
- Added base policy stubs and agent REGISTRY.md
- Bulk-closed and labeled 'auto:spam' all 'AUTO-FIX: Unknown Monitor DOWN' issues in Gitea
- .env strictly excluded from version control
2026-10-07 12:20:32 +03:00
root dc7efe3dd9 feat: add Telegram Admin Bot for infra monitoring and escalation
- Deployed on VPS (direct-emerald) with local danted SOCKS5 proxy
- Integrated read-only access to PostgreSQL (CT 151, host_states)
- Integrated read-only access to Gitea API (CT 140, issues)
- Foundation for F3-4 (Escalations) and F2 (Swarm Agents communication)
- .env strictly excluded from version control
2026-10-07 12:13:32 +03:00
root 7021b69c8a feat: add Telegram Admin Bot for infra monitoring and Gitea tracking
- Added async Python bot (aiogram 3.x) with /start, /status, /issues commands
- Integrated PostgreSQL (CT 151) and Gitea API (CT 140) read access
- Configured secure local SOCKS5 proxy (danted) for Telegram API access
- Excluded .env from version control for security best practices
2026-10-07 12:10:57 +03:00
root 8a30960d8e docs: explicitly note Gitea SQLite state and future Database Sprint
- Documented that CT 140 (Gitea) is currently on SQLite for stability
- Formalized the plan for a dedicated 'Database Sprint' for clean PG migration
- Ensures this technical context is not lost for future planning
2026-10-06 22:46:27 +03:00
root b77fa2dc6f chore: officially close Phase 1 (SSOT + Hygiene) in audit
- Documented completion of core policies and repo structure
- Formalized deferral of deep security hardening to dedicated sprint
- System baseline is now stable and ready for functional expansion
2026-10-06 22:43:45 +03:00
root a234ae3ff9 chore: officially close Phase 1 (SSOT + Hygiene) in audit
- Documented completion of core policies and repo structure
- Formalized deferral of deep security hardening to dedicated sprint
- System baseline is now stable and ready for functional expansion
2026-10-06 22:43:45 +03:00
root 7091b7af6d chore: defer SEC-4/5 to dedicated Security Hardening sprint
- Prioritizing functional stability and agent swarm deployment
- Security hardening (Vaultwarden integration) will be addressed in a future dedicated sprint
2026-10-06 22:42:25 +03:00
root 3654a33e4a chore(phase1): F1-3 progress - generated SEC-1 rotation passwords and mautrix audit
- Verified no duplicate workflows in n8n DB
- Generated cryptographically strong passwords for Matrix, Mealie, Authentik
- Documented mautrix token revocation steps
- Updated CHANGELOG.md with SEC-debts status
2026-10-06 22:39:56 +03:00
root 1a242878f9 feat(phase1): initial repo structure and core policies
- Added policies: issue-schema, change-mgmt, backup, secret
- Added agents/CHARTER-template.md
- Added audit/CHANGELOG.md

Ref: Epic #150, Phase 1 (SSOT + Hygiene)
2026-10-06 22:38:23 +03:00
root bb6d0bf4d5 audit: Gitea recovery report (rollback to stable SQLite)
- Diagnosed broken SQLite->PostgreSQL migration from 02.10
- Rolled back to stable gitea.db.migrated
- Created change request for clean PG migration in Phase 1 (Epic #150)
- Gitea API is now fully operational (HTTP 200)
2026-10-06 22:35:21 +03:00
root e0c08457bc audit: Gitea cleanup report (Phase 0 completed)
- Closed ~59 spam issues with label auto:spam
- Analyzed 44 historical spam issues
- Preserved 15 Matrix Sprint tasks
- Created audit report

Ref: MASTER-PLAN.md v1.2 §4 Phase 0
2026-10-06 21:41:36 +03:00
root d2ecee05bc feat(n8n): workflows-as-code — 4 canonical workflows under Git control
Closes Phase 0 of Foundation & Swarm sprint (#null).

Workflows:
- Buryan Health Monitor (webhook → host_states)
- Alert Queue Processor (cron 15min → Telegram)
- Uptime Kuma Self-Healing (webhook → Gitea issue)
- Gitea Task Dispatcher (webhook → Agent Swarm)

All workflows cleaned (del shared/activeVersion/versionId) for portability.

Ref: MASTER-PLAN.md v1.2 §4 Phase 0
2026-10-06 21:40:26 +03:00
root c2aae95ffb docs: Autonomous Infrastructure Swarm sprint report (Q4 2026) 2026-10-01 16:31:51 +03:00
root 5b23ea5b6e docs: final Matrix Sprint audit (bulk close confirmed tasks) 2026-10-01 16:24:35 +03:00
root 32c31d3c7e docs: Matrix Sprint report (final, 9/19 tasks closed, workflow deactivated) 2026-10-01 16:17:21 +03:00
root e13811b27b fix: correct Matrix Sprint report (9/19 tasks) + deactivate spam workflow 2026-10-01 16:15:40 +03:00
root 4f8684d2af docs: Matrix Sprint report (9/19 tasks, 47.4%) + cleanup AUTO-FIX spam 2026-10-01 16:13:36 +03:00
root f3e24bb7a8 docs: layered self-healing architecture 2026-09-28 16:54:40 +03:00
root c43c60a9cb Monitoring Sprint: 53 monitors + self-healing (end-to-end verified) + push-notifications 2026-09-28 14:38:08 +03:00
root f1b1d33972 docs: закрыть задачи #3, #4, #5, #21 (Matrix E2EE и Telegram мост работают) 2026-09-27 11:14:21 +03:00
root 2382814f45 auto-sync 2026-09-26-0400 2026-09-26 04:00:09 +03:00
root 9208a3a93e docs: TURN через VPS (AGENTS.md, backlog) — закрыто, порт 3479, Headscale DNAT 2026-09-25 21:35:59 +03:00
root bc9399a2b5 scripts: vps-turn-proxy-setup.sh (iptables DNAT+MASQUERADE для TURN через Headscale) 2026-09-25 21:35:09 +03:00
root 5d98b314a1 deploy-matrix-v3: TURN через VPS (external-ip PUBLIC/TAILSCALE, relay-ip, min/max-port, port 3479) 2026-09-25 21:33:30 +03:00
root 45643a5693 deploy-matrix-v3: fix built-in commands (command -v, test -f) for pct exec 2026-09-25 20:40:12 +03:00
root ee33c226e3 deploy-matrix-v3: full stack (Synapse, Coturn, Element, LiveKit), idempotent 2026-09-25 20:36:07 +03:00
root 3b68249a66 docs: mark DR plan v1 as done 2026-09-25 20:18:15 +03:00
root 16f6c0484c docs: add DR plan v1 (4 scenarios: CT155, CT151, VPS, pve) 2026-09-25 20:17:00 +03:00
root 21719d5dfa docs: add Matrix backlog 2026-09-25 20:14:44 +03:00
root cadabd31da docs: add Matrix sprint runbook 2026-09-25 20:14:38 +03:00
root 007cfcf414 AGENTS.md: full infra guide with Matrix TURN diagnostics, deploy scripts, updated priorities 2026-09-25 20:13:50 +03:00