Commit Graph

5 Commits

Author SHA1 Message Date
Асель
00c8f79a36 PEP-7: autonomous mode — board moves start agents, PM only for stoppers
- 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>
2026-11-12 21:21:11 +05:00
Асель
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
Асель
2b0f2fd984 PEP-1: web platform with Gitea login, projects, goals, tasks, sessions
- web: Gitea OAuth2 login, signed session cookie, everything behind login;
  inbox with answers, project board (goals → tasks), task page with
  OpenSpec artifacts, questions and session controls; new project form;
  auto-refresh, light/dark, mobile
- users + projects.owner_id; tokens AES-256-GCM encrypted; owner-only access
- provisionProject (runner): new or existing Gitea repo, peppa-bot
  collaborator, template + openspec init, push, rollback; used by web and
  peppa project create (replaces scripts/bootstrap-project.sh)
- peppa web login-link, peppa project owner; Gitea OAuth app script
- bins/template resolved via PEPPA_ROOT (works inside the Next build)
- testkit: mock-gitea + 10 tests (42 e2e total, all green)
- OpenSpec: pep-1-web-platform archived into specs web-auth,
  project-provisioning, web-workspace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:55:02 +05:00
Асель
f53b3447cf PEP: manage Peppa through Peppa; OpenSpec change for PEP-1
- 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>
2026-11-12 20:40:09 +05:00
Асель
4168e8c867 Bootstrap Peppa monorepo, DB schema, OpenSpec and project template
- pnpm workspace: apps/web (Next.js), apps/bot, packages/{db,shared,mcp,runner}
- Drizzle schema: projects, goals, tasks, sessions, questions, events
- Postgres via infra/docker-compose.yml
- template/: AGENTS.md workflow on OpenSpec, Claude hooks, peppa MCP config
- scripts to push template and bootstrap projects in Gitea

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:13:16 +05:00