peppa/openspec/changes/archive/2026-11-26-pep-268-platform-failures-free/tasks.md
peppa-bot 3a3a0549b9
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: failure за 1439с
peppa-ci / ci (pull_request) Failing after 26m5s
PEP-268: archive change, память и AGENTS.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:06:01 +00:00

18 lines
1.2 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.

## 1. Счётчик сбоев платформы
- [x] 1.1 `WatchState.platformFails`; `PLATFORM_RETRY_MIN`, `planPlatformRetry` в recovery.ts
- [x] 1.2 `onRunnerCrash(gone)` → сбой платформы, `restarts` не трогается
- [x] 1.3 `restartStalled`: зависание Claude до SessionStart → сбой платформы
- [x] 1.4 `restartTick`: перезапуск упал с `HostUnreachable`/`TMUX_SERVER_DOWN` → попытка возвращается
- [x] 1.5 Промпт и событие `platform_retried` для бесплатного перезапуска после сбоя платформы
## 2. Владелец и суперадмин
- [x] 2.1 `taskDelayLine` — строка «Сбой на нашей стороне, чиним…» для состояния `platform` (ru/en/kk)
- [x] 2.2 Суперадмину одно сообщение на третьем сбое в окне
## 3. Проверка
- [x] 3.1 Тест `platform-failures-free.test.ts`: 3 сбоя платформы — весь запас попыток; падение агента тратит попытку
- [x] 3.2 Прогон соседних тестов (watchdog, platform-delays), `pnpm lint`, typecheck