Агент IA-2 опубликовал свой контейнер на 127.0.0.1:3100 и подменил сайт платформы.
Вачдог раз в минуту останавливает (не удаляет) контейнер, занявший зарезервированный
порт или домен платформы, пишет суперадмину и агенту; /api/health публичного адреса
должен отвечать Peppa. Маршруты Traefik — priority 100000, правило агентам в RULES.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Сообщение агента пользователю собирается из полей summary / need / link / details
(core/agent-message.ts); основной текст проверяется при приёме (длина, словарь, файлы,
ветки, команды, номера PR, статусы из кода) — нарушение возвращается агенту, после трёх
отказов подряд сообщение уходит с нейтральной первой строкой. Разбор словаря — общий
модуль @peppa/shared/glossary. Сайт и Telegram показывают основной текст, details — под
«Подробнее». Карточка «готово» и реплика конца хода — в том же формате. Правила агентам,
переводы en/kk, тесты по сценариям, change pep-152-agent-message-format в архиве.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- PEP-30: .peppa/memory.md in the project repo (core/memory.ts), agent MCP get_memory/remember
(dedupe, 12k size limit, replace to compact), runner appends memory + last finished stories
to the launch rules, RULES.md rule, memory on the project «Спеки» tab.
- PEP-41: agent settings platform → project → story (provider, model, effort, escalation model
after N failures, fallback provider); Claude --effort / Codex model_reasoning_effort;
sticky escalation relaunches a live runner on the stronger model (sendWithEscalation from
CI feedback and the reviewer); fallback provider when the main one has no working
subscription; web panels, MCP PM `agent`, CLI `peppa project agent`.
- PEP-31: first-run checklist on the home page (core/onboarding.ts), hide button,
«Агенты не запустятся» warning on the project page when its pool has no working subscription.
No migrations.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- infra: Bugsink 2.6.3 in docker (infra/bugsink, scripts/bugsink-up.sh), database
bugsink in Peppa's Postgres, Traefik route bugsink.telecom.quest
- packages/bugsink: REST API client + custom-webhook payload parsing
- incidents (migration 0011): incident_settings, error_sources, incidents; ingest from
webhook POST /api/hooks/bugsink/<secret> and a 2-minute poll in the watchdog
- incident policy per project: notify / backlog (default) / start / ask (Telegram
buttons) / triage (claude -p with the owner's token, falls back to ask)
- daily task cap, environments, ignore pattern; manual "fixed" until PEP-57;
REGRESSED returns the task to the backlog
- web «Ошибки» section, bot buttons, MCP tools for agents and the PM, help, RULES.md
- testkit: mock-bugsink, mock-triage, incidents.test.ts (one test per scenario,
plus a live run against the real Bugsink with PEPPA_LIVE_BUGSINK=1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- template/RULES.md: scenarios as GIVEN / WHEN / THEN / AND steps with an
example, Scenario Outline, one WHEN, concrete values; loaded into every
agent session of every project
- rules.specs in the template's and Peppa's openspec/config.yaml (quoted:
an unquoted ': ' made OpenSpec ignore the rules)
- verified: openspec validate accepts GIVEN/AND and Scenario Outline, and
the rules reach 'openspec instructions specs'
Co-Authored-By: Claude <noreply@anthropic.com>
- web board (Backlog / In progress / Review / Done) with drag-and-drop and
buttons; moveTask starts an agent on In progress, stops on Backlog/Done
- routine proposals go straight to apply; request_approval/ask_pm only for
architectural stoppers (RULES.md, MCP hints, template pushed to Gitea)
- Stop hook keeps the agent going (decision: block, max 2 in a row,
sessions.auto_nudges reset by a human answer) instead of pinging the PM
- review: ready-for-review message with Accept (acceptTask → done, session
stopped) in Telegram and web; a text reply goes back to the agent
- mock-claude honours Stop-hook block; 6 new e2e tests (48 total, green)
- OpenSpec: pep-7 archived (task-autonomy, web-workspace board)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- runner: provider abstraction (claude | codex); per-run launch.sh keeps
long argv out of tmux; Codex via notify callback + -c config for rules
and the peppa MCP server; session env carries DATABASE_URL/PEPPA_HOME
- testkit: mock-claude / mock-codex driven by scenarios — real hooks,
notify, MCP calls, raw-mode TUI input with bracketed paste, permission
dialog, usage limits, hangs, crashes, /clear
- 21 CJM tests on an isolated DB, tmux server and state dir (all green)
- fix: watchdog crash/stall alerts showed blank lines instead of the tail
- bins load .env without overriding the caller's env; tmux socket option
- AGENTS.md (was CLAUDE.md) and shared RULES.md: mock-first rule with a
mock prefix for anything blocked on external dependencies
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- peppa-bot account: repos peppa-bot/peppa and peppa-bot/template
- git-credential-peppa: per-repo credential helper with the bot token
- template split: RULES.md (shared, stays in Gitea) + AGENTS.md (project)
- runner fetches RULES.md from Gitea on each launch (cached fallback) and
passes it via --append-system-prompt-file; MCP get_rules for manual runs
- bootstrap-project.sh clones the template from Gitea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- hooks move from the project template to a per-run --settings file
- PermissionRequest / AskUserQuestion hooks wait for the PM's answer in the
DB and return the decision to Claude; fall back to the terminal dialog
after PEPPA_HOOK_WAIT_SEC (awaiting_hook prevents double delivery)
- sessions.generation + PEPPA_GENERATION: stale hooks are ignored;
peppa session resume relaunches with claude --resume
- SessionEnd no longer marks the process done (/clear, /resume)
- StopFailure rate_limit -> rate_limited status
- MCP: agents cannot set done or approve their own proposal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>