Commit Graph

178 Commits

Author SHA1 Message Date
Асель
acf2bb9623 PEP-21/28: runner service (command queue in the watchdog), watchdog 2.0 auto-recovery and escalation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:34:09 +05:00
134c00ff18 Merge pull request 'PEP-19/54: секреты проекта для агентов, ревизия секретов и ротация PEPPA_SECRET' (#56) from task/pep-19 into main 2026-11-14 07:28:29 +05:00
Асель
9149c75840 PEP-19/54: project secrets for agents, secrets audit and two-key PEPPA_SECRET rotation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:19:57 +05:00
a6a385e3d1 Merge pull request 'PEP-50/63: спецификации этапов до PEP-1; Bugsink на SQLite' (#54) from task/pep-50-63 into main 2026-11-14 07:17:58 +05:00
Асель
005d884038 PEP-50/63: archive changes, fill the Purpose of new and placeholder specs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:11:57 +05:00
Асель
0941a9f4b7 PEP-63: Bugsink on SQLite (volume peppa-bugsink-data), migration script, postgres under the legacy profile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:11:13 +05:00
Асель
195a39ad41 PEP-50: baseline specs for story model, runner sessions, hooks, watchdog, bot, agent MCP, CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:11:12 +05:00
9195c57505 Merge pull request 'PEP-5/43/47/48: расход и лимиты, бюджеты стори, метрики фабрики, журнал действий' (#52) from task/pep-5 into main 2026-11-14 06:57:34 +05:00
Асель
14916079bc PEP-5/43/47/48: usage and limits, story budgets, factory metrics, audit journal
- PEP-5: statusLine hook (cost, context, 5h/7d limit windows), transcript tokens,
  sessions.usage, usage strip over every page, runner usage, bot /status, MCP get_usage
- PEP-43: project/story budgets in settings, watchdog pause (Escape, question to the PM:
  extend x2 / remove limit / stop), start/resume guard, budget on the story card
- PEP-47: project metrics tab (cycle time, first pass, review returns, questions, runner
  hours, PM wait, limits, spend by week/agent/epic), MCP get_metrics
- PEP-48: event authors (actor columns, AsyncLocalStorage context), question_answered,
  /journal for superadmins, project journal tab, authors in the story feed
- Migration 0007_usage_audit; OpenSpec changes archived

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:52:13 +05:00
68ccef697c Merge pull request 'PEP-10/27/53: раннер с очередью стори, git worktree на раннер, свободный «Новый терминал»' (#50) from task/pep-10 into main 2026-11-14 06:46:37 +05:00
Асель
3c84608125 PEP-10: hook stays silent only for done stories (a manual run on a backlog story still pings)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:38:02 +05:00
Асель
6b75324971 PEP-10/27/53: runners with a story queue, a git worktree per runner, free runners
- Runner settings with inheritance system → project → story (settings rows):
  mode story (default, one runner per story) / queue, context fresh / continue,
  workspace shared / worktree, maxRunners. No rows = behaviour as before.
- runner_tasks: a runner's story history and queue; sessions.name, sessions.workspace_path
  (migration 0007_runners).
- moveTask → startTaskOnRunner; runnerTick in the watchdog moves free queue runners to
  their next story (fresh: same tmux, new generation without resume; continue: message),
  reassigns queues of dead runners, removes finished runners' worktrees (clean + pushed).
- Free runners («Новый терминал»), rename, «Оформить стори»; the Stop hook doesn't ping
  for free runners or stories that left work.
- Web: «Новый терминал» (runners page, project sessions tab) with voice input,
  project/story runner settings, runner stories in the details panel; CLI peppa runner …
- e2e: packages/testkit/test/runners.test.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:38:02 +05:00
385e2607ff Merge pull request 'PEP-34/42/52: порядок и архив на доске, прогресс эпика; зависимости и планировщик эпика; палитра ⌘K' (#51) from task/pep-34-42-52 into main 2026-11-14 06:36:51 +05:00
Асель
8b8a1abd5d PEP-34: oauth test expects epic progress in list_epics
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
96c54856dd PEP-34/42/52: AGENTS.md notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
ce426621e3 PEP-34/42/52: archive OpenSpec changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
621f0137e5 PEP-34/42/52: tasks done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
5a8948d01e PEP-52: command palette ⌘K, keyboard shortcuts, /help/shortcuts; help for board order, dependencies, planner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
3b86c00768 PEP-34/42: web — board drag order, collapsed Done, epic progress, archive, dependencies, plan page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
4fdd3afd92 PEP-34/42: e2e tests for board order, archive, dependencies, planner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:28:53 +05:00
Асель
f6e3725e5f PEP-34/42: board order, archive, epic progress, story dependencies, epic planner (core, runner, MCP)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:28:53 +05:00
Асель
0b448a8b8a PEP-34/42/52: OpenSpec changes (board order, epic planner, command palette)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:28:29 +05:00
cecabfaf75 Merge pull request 'PEP-44/45/46: превью на ревью со скриншотами, стори из сообщения боту, интеграция с Gitea' (#53) from task/pep-44-46-integrations into main 2026-11-14 06:24:02 +05:00
Асель
53dd8a1f19 PEP-46: ci test expects the extended webhook events
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:07:18 +05:00
Асель
db822a570c PEP-45: stories from a Telegram message (text or voice); docs; archive PEP-44/45/46 changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:07:18 +05:00
Асель
6ab17456af PEP-44, PEP-46: review preview with screenshots; Gitea issues, PR comments, manual merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:06:57 +05:00
c3506c6f22 Merge pull request 'PEP-32/33/37: страница стори с вкладками, живая лента шагов агента, SSE вместо опроса' (#49) from task/pep-32 into main 2026-11-14 06:04:22 +05:00
Асель
4a80d9dc6b PEP-32/33/37: story page tabs, live agent step feed, SSE live updates instead of 5 s polling
- PEP-37: change hub (runner/live.ts) woken by notify() (new 'web' subscriber) and
  PRAGMA data_version; per-scope fingerprints; GET /api/live SSE (no-transform, ping 15 s);
  LiveRefresh replaces AutoRefresh with a connection indicator and polling fallback
- PEP-33: async PostToolUse/PostToolUseFailure hook -> 'step' events (last 200 per
  session), AgentSteps live feed on the story page and runner panel, tasks.md progress
  on board cards and the story header
- PEP-32: story page header + tabs Proposal/Design/Specs/Tasks/Comments/Tests/Merge
  request/Activity, safe Markdown renderer, PM comments visible in get_task, edit
  title/description/epic, accept-and-merge (acceptStory)
- OpenSpec changes archived; specs live-updates, agent-steps, story-page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:59:15 +05:00
e3ed7bc367 Merge pull request 'PEP-39: ротация сессии на свободную подписку пула при лимите' (#46) from task/pep-39 into main 2026-11-14 05:40:45 +05:00
Асель
634e40a02c PEP-39: migration 0006 after PEP-29; switch message goes through notification preferences (failures event)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:31:22 +05:00
Асель
5ff738c977 PEP-39: migration renumbered to 0005 after PEP-26
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:31:22 +05:00
Асель
b3533c73bb PEP-39: archive OpenSpec change pep-39-rotation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:31:22 +05:00
Асель
c7283063c9 PEP-39: rotate a limited session to a free subscription of the pool at the turn boundary
Limit marks the subscription «лимит до …»; the watchdog relaunches the session on another
usable subscription of the same provider (Claude/OpenCode resume the conversation, Codex
starts afresh), threshold banner switches after the turn, max 3 switches/hour, simple
fairness between projects, subscription_switched events + Telegram message, web shows
subscription and switch history. Migration 0004 (sessions.rotate_reason).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:31:22 +05:00
987ed91ed3 Merge pull request 'PEP-23/24/25: автономность проекта, диспетчер бэклога, приёмка = мерж' (#47) from task/pep-23 into main 2026-11-14 05:30:14 +05:00
Асель
4c001ba5f6 PEP-23: inAutonomyQuietHours (PEP-29 owns inQuietHours for user notification prefs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:25:52 +05:00
Асель
5465238d1a PEP-23: MCP tool list and update_project_settings in the remote MCP test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:20:47 +05:00
Асель
7d1e354096 PEP-23: archive OpenSpec change pep-23-autonomy (spec project-autonomy)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:20:47 +05:00
Асель
f284c40933 PEP-23/24/25: project autonomy levels, backlog dispatcher with idle pushes, auto-merge and closing, working copy sync
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:20:47 +05:00
735b1af4a8 Merge pull request 'PEP-29, PEP-35, PEP-55: уведомления — настройки, push в браузере, дайджест' (#48) from task/pep-29-35-55 into main 2026-11-14 05:15:56 +05:00
Асель
ce3e33dc5f PEP-29/35/55: user-notifications spec purpose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:10:20 +05:00
Асель
9d8851b0b4 PEP-29/35/55: archive OpenSpec change pep-29-35-55-notifications
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:10:20 +05:00
Асель
9f9358de2c PEP-29/35/55: web — Settings → Notifications, Web Push in the browser (sw.js, PWA manifest), tab counter and sound; help, AGENTS.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:10:20 +05:00
Асель
ea4bdf38ff PEP-29/35/55: notification prefs and routing, Web Push outbox, daily digest; mock-push, tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:10:20 +05:00
Асель
06337e18dc PEP-29/35/55: OpenSpec change pep-29-35-55-notifications
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:09:37 +05:00
bcd2cc317f Merge pull request 'PEP-26: агент-ревьюер до ревью PM, пример lint в шаблоне' (#45) from task/pep-26 into main 2026-11-14 05:04:48 +05:00
Асель
b6bcbeb695 PEP-26: archive OpenSpec change pep-26-code-reviewer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:59:32 +05:00
Асель
07ff13111d PEP-26: reviewer agent before the PM's review — queue, claude -p on the PR diff, findings back to the agent, project settings, card; lint example in the template
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:59:32 +05:00
2444d6128d Merge pull request 'PEP-9: живой терминал раннера в вебе (xterm.js, SSE + POST)' (#44) from task/pep-9 into main 2026-11-14 04:49:49 +05:00
Асель
09d2750d75 PEP-9: live runner terminal in the web — xterm.js over SSE, input via POST
- runner/terminal.ts: TerminalFeed polls the pane (capture-pane -e, one loop per runner
  shared by viewers), sends changed lines, scrolled-off lines and the cursor; terminalInput
  (send-keys -H / paste-buffer -p) with access, liveness, size and rate checks, resets
  auto_nudges, logs terminal_input; terminalSse with 15 s pings for Cloudflare
- web: GET/POST /api/runners/[id]/terminal, RunnerTerminal (xterm.js) in the runner panel
  and on the story page; help
- testkit: terminal.test.ts — real tmux into a headless xterm, history, input, access, limits, SSE
- OpenSpec change archived; new spec runner-terminal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:45:32 +05:00
0802e2b7eb Merge pull request 'RULES: задачи Пеппы → стори, цели → эпики' (#43) from rules/stories into main 2026-11-14 04:36:33 +05:00