peppa/openspec/changes/pep-60-platform-channel-digest/tasks.md
Асель 82c003e209 PEP-60: platform Telegram channel — check, releases, outages/restarts, platform digest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:04 +05:00

19 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tasks: PEP-60
## 0. Перед стартом
- [x] 0.1 Проверка бота в канале: `getChat(-1004371018094)` → «chat not found» — бот ещё не админ; работаем, канал включится сам после проверки
## 1. Канал
- [x] 1.1 core `platform-channel.ts`: настройки, проверка канала (Bot API), `postToChannel`; CLI `peppa platform channel`
- [x] 1.2 Веб `/platform` для суперадмина: Chat ID, проверка, события, расписание; пункт меню
- [x] 1.3 События сервисов в `checkServices`: падение/восстановление/перезапуск; `commit` в heartbeat
- [x] 1.4 Релиз: `platformBuildTick` (runner) — новая сборка из `main` со списком стори
## 2. Дайджест
- [x] 2.1 `buildPlatformDigest` + рендер; пропуск, если пусто
- [x] 2.2 `platformDigestTick` в вачдоге: канал + пользователи (событие `platform`, отписка в Настройках); перепроверка канала раз в час
## 3. Проверка
- [ ] 3.1 e2e `platform-channel.test.ts` на mock-telegram по сценариям спеки; весь e2e и typecheck зелёные; `openspec validate`
- [ ] 3.2 Документация: AGENTS.md, `/help`