peppa/openspec/changes/pep-91-platform-errors/tasks.md
Асель 6e54fc69a6 PEP-91: Peppa reports its own errors to Bugsink — backend to PEP-api, browser to PEP-web
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:39:46 +05:00

16 lines
1.1 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 `core/error-report.ts`: `parseDsn`, `errorEvent` (стек V8 → frames), `bugsinkEnvelope`, `reportPlatformError` (DSN из env/БД, троттлинг, тайм-аут, выключатель)
- [x] 1.2 `installCrashReporting(db, service)` — падение процесса: отправить и выйти с кодом 1
## 2. Кто отправляет
- [x] 2.1 Веб: `onRequestError` в `instrumentation.ts`, `installCrashReporting` в `register`
- [x] 2.2 Браузер: `components/ErrorReporter.tsx` + `POST /api/client-errors` (лимиты)
- [x] 2.3 Вачдог: ошибки частей тика и сессий; `installCrashReporting` в `peppa watchdog`
- [x] 2.4 Бот: ошибки обработки обновлений; `installCrashReporting`
## 3. Подключение
- [x] 3.1 CLI `peppa project errors <KEY>` (= `connectErrorTracking`)
- [x] 3.2 `mock-bugsink`: приём envelope (`events`), e2e `platform-errors.test.ts`
- [x] 3.3 AGENTS.md
- [ ] 3.4 На живой системе: `peppa project errors PEP` (координатор после мержа)