peppa/openspec/changes/archive/2026-11-12-pep-6-mock-telegram-dev/tasks.md
Асель 112c08b063 PEP-6: dev stand with mock Telegram so agents can play the PM
- mock-telegram as a standalone server with /_mock/* inspection and PM
  actions (messages, send, click, callbacks)
- peppa-dev up|down|status|peppa|tg: isolated DB peppa_dev, tmux -L
  peppa-dev, ~/.peppa-dev, the real bot against mock-telegram, mock agents;
  test PM paired automatically via /start
- verified: question from a mock session answered with a button on the
  stand, delivered to the session; prod sessions/tmux/Telegram untouched
- OpenSpec: pep-6 archived into spec dev-sandbox

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:10:37 +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.

# Tasks: PEP-6
## 1. Mock Telegram как сервер
- [x] 1.1 Маршруты `/_mock/messages`, `/_mock/send`, `/_mock/click`, `/_mock/callbacks` в MockTelegram; bin `mock-telegram --port`; проверка: curl к `/_mock/messages` отвечает JSON
## 2. Стенд
- [x] 2.1 `peppa-dev up|down|status|peppa`: БД `peppa_dev` (создать + миграции), tmux-сокет `peppa-dev`, `PEPPA_HOME=~/.peppa-dev`, бот против мока, мок-агенты, привязка тестового PM; проверка: `up` → `status` показывает оба процесса
- [x] 2.2 `peppa-dev tg messages|click|reply|send`; проверка: сценарий ниже
## 3. Проверка и документация
- [x] 3.1 Сценарий: проект + задача на стенде → сессия mock-claude задаёт вопрос → `tg click` → ответ в сессии, сообщение закрыто; боевые `peppa session list` и чат PM не затронуты
- [x] 3.2 AGENTS.md: как пользоваться стендом; `openspec validate`; e2e-набор зелёный