- 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>
- Peppa registered as project PEP (.peppa/project.json, .mcp.json)
- goals #2/#3 and tasks PEP-1..PEP-5 created in Peppa
- openspec/changes/pep-1-web-platform: proposal, specs (web-auth,
project-provisioning, web-workspace), design, tasks — awaiting PM approval
- packages/mcp/scripts/call.ts: call a peppa MCP tool from the shell
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bot: own Bot API client, long polling with persisted offset, updates
claimed before acting (no replay after restart), outbox with retries
(429 retry_after, 5xx), /start pairing code (hashed, single use, 10 min),
only the paired chat/user is served
- PM questions rendered per kind: approve button / reply to reject,
option buttons, allow/always/deny, alerts with continue or resume/stop;
messages are closed with who answered what, incl. terminal answers
- stopping/resuming a session expires its open questions
- CLI: peppa telegram pair|status|unpair; launchd agent for the bot
- testkit: mock-telegram + 11 bot journeys (32 e2e tests, all green)
- fix: keep the tmux server alive when empty (exit-empty off) — a new
session could die with a server shutting down after the last kill
- fix: test env must load before runner modules (no leaks to real tmux)
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>
- startSession: trusts the workspace in ~/.claude.json, runs interactive
claude in tmux with PEPPA_SESSION_ID, remain-on-exit for crash status
- answerAndDeliver: PM answers go into the terminal (permission menu keys,
approval -> task status + instruction, free text via bracketed paste)
- peppa-hook: session-start/prompt/notification/stop/session-end update
session status and raise PM questions; never fails the Claude session
- watchdog: detects dead panes, vanished sessions, stalls, usage limits;
launchd agent under caffeinate (scripts/install-launchd.sh)
- CLI: peppa session start|list|send|attach|stop, peppa watchdog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>