Commit Graph

67 Commits

Author SHA1 Message Date
64255e6550 PEP-268: сбои платформы не списывают попытки задачи
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1510с
peppa-ci / ci (pull_request) Successful in 27m11s
Пропавшая сессия tmux, зависание Claude до SessionStart и запуск с HostUnreachable/
TMUX_SERVER_DOWN — planPlatformRetry: свой счётчик watch_state.platformFails, бесплатный
перезапуск через 1/5/15/30 мин, суперадмину одно сообщение на третьем сбое, владельцу —
строка «Сбой на нашей стороне, чиним». Тест platform-failures-free.test.ts; change
архивирован, требование в openspec/specs/watchdog-recovery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:18:46 +00:00
b00e9c1959 Merge branch 'main' into task/pep-265
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 55с
peppa/build build: success за 37с
peppa/test test: success за 1558с
peppa-ci / ci (pull_request) Successful in 28m53s
2026-11-26 09:31:16 +00:00
fd56afdbf3 PEP-300: плашка лимита с прошедшим временем — не новый лимит
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 35с
peppa/test test: failure за 1531с
peppa-ci / ci (pull_request) Failing after 27m42s
25.11.2026 три рабочие подписки получили отметку «лимит» на сутки вперёд.
Claude Code при лимите ждёт сброса сам («set to continue automatically at
6:50pm») и продолжает, плашка остаётся на экране. Вачдог читал её после
конца хода, в 18:51, и время без даты выходило завтрашним.

- passedReset (runner/limits.ts): время на плашке уже прошло (не больше
  4 часов назад, сегодня или вчера сразу после полуночи; полная дата в
  прошлом) — лимит за плашкой кончился.
- Вачдог по такой плашке подписку не помечает и агента не останавливает,
  событие usage_limit_passed раз на плашку; упавший процесс со старой
  плашкой в хвосте — сбой, а не лимит.
- parseResetTime не меняется: им читают свежие сообщения (хук, «Проверить»).
- Время в сообщениях о лимите — в поясе платформы (PEPPA_TZ), а не сервера.

Тесты: limits.test.ts (PEP-300) — падали до исправления.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-26 13:53:56 +05:00
1646f465f3 PEP-265: зависание агента на старте — сбой платформы, а не задачи
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:40:45 +00:00
5019e1ad80 Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1546с
peppa-ci / ci (pull_request) Successful in 28m56s
Миграция сроков разрешений переименована в 0034 (0033 заняла PEP-252).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:54:14 +00:00
5d7775cdb3 Поезд приёмки: PEP-252 поверх предыдущих (task/pep-252) 2026-11-25 20:06:57 +05:00
c83454889c PEP-252: вход в сервисы через OAuth (Google, GitHub) — поверх свежей main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1416с
peppa-ci / ci (pull_request) Successful in 26m6s
Ядро (обновление токенов, «Войти заново», отзыв в сервисе), экран «Подключения»,
тексты ru/kk/en, мок и тесты. Пересобрано на main после PEP-251/258:
миграция теперь 0033_access_hub_oauth, маскировка ответа — connectionKeyForms
от текущего токена, проверка подключений принимает notify вместе с drivers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:00:23 +00:00
f421ea60c7 PEP-270: задачи агентов — предложения, не больше 5 в сутки на проект
- MCP create_task агента: origin agent + «Предложено» (раньше — задача человека, диспетчер брал её сам)
- AgentLimits.perDay (5, скользящие 24 ч), proposalRoom/proposalsToday; сверх — отказ агенту,
  находки приёмки — в недельную сводку; событие proposal_limited
- CLI agent-limits perDay=N, правило агентам в template/RULES.md, тест proposal-daily-limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:56:23 +00:00
7991a2e374 PEP-259: срок у разрешения Access Hub и автоснятие без дела
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1453с
peppa-ci / ci (pull_request) Successful in 26m21s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:21:54 +00:00
8769a75ae3 PEP-253: мерж main (PEP-251), миграция секретов — 0032, память в пределе
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1423с
peppa-ci / ci (pull_request) Successful in 25m55s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:30:54 +00:00
e8a651a3b8 PEP-253: секрет «только продукту» / «агенту», настройка проекта, угадывание сервиса, переезд в подключение, отчёт
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:58:15 +00:00
432959dd9b PEP-251: шлюз Access Hub для баз данных, SSH/SFTP, S3 и почты (ядро, MCP, моки, тесты)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:57:41 +00:00
c8652e57ae PEP-254: журнал Access Hub до действия и с цепочкой хэшей, контрольные точки, выгрузка; свой ключ данных у каждого подключения
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:30:19 +00:00
2315ae7b86 Merge branch 'main' into task/pep-249
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1411с
peppa-ci / ci (pull_request) Successful in 25m34s
2026-11-23 17:05:59 +00:00
1bf8c913c0 PEP-249: каталог сервисов, права чтение/запись, проверка ключа, короткое имя в MCP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:08 +00:00
1461fd9ffd PEP-213: замер медленных страниц и SQL, warning в Bugsink, сводка на /observability
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:56:43 +00:00
0cded8d4ad PEP-220: уборка журналов работы (срок 1 день), индексы, итог на /observability
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1282с
peppa-ci / ci (pull_request) Successful in 23m22s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 05:09:39 +00:00
52d10be6c5 PEP-234: Access Hub — подключения пользователей, разрешения агентам, серверный шлюз, журнал
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:19:11 +00:00
81730b63c4 PEP-227: потерянный разговор Claude — новый запуск вместо resume по кругу; диалог кредитов модели
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:54:19 +00:00
aff895db27 PEP-214: индексы горячих запросов, keyPrefix вместо LIKE по settings, PRAGMA optimize
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:56:42 +05:00
65a5d15aae PEP-216: Главная и «Подписки» без задержек — прогресс без запроса на проект, поток, индекс событий
Главная 80 → 30 мс, 40 запросов разом p95 2,98 → 1,12 с; «Подписки» 36 → 22 мс.
Замер на копии живой базы (apps/web/scripts/bench-pages.ts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:31:10 +05:00
7189fd2457 PEP-219: индекс events(session_id, type) — доска не перебирает все события на каждую сессию
listSessions считает переключения подписки подзапросом по events для каждой
сессии; без индекса это полный просмотр ~40 000 строк × 746 сессий (4,4 с на
копии живой базы, 0,008 с с индексом).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:57:39 +05:00
204c8e3388 PEP-205: очередь проверок не встаёт молча, лимит и вход Codex не роняют агентов
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 23:50:03 +05:00
218f35af86 PEP-197: фабрика не ставит себе задачи по кругу — «Предложено», пределы, дубли, версия с финишем
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:55:09 +05:00
Асель
02981bdebf PEP-163: merge main — the projects migration is 0022 after attachments (0021); deleted projects stay off the superadmin's dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:01:31 +05:00
Асель
87502479a9 PEP-159: миграция вложений — 0021 после 0020 из main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +05:00
Асель
cdbab4466d PEP-159: вложения в чате с аналитиком, комментариях и новой задаче
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +05:00
Асель
5a36687f42 PEP-166: a limit banner replayed by a resumed Claude conversation is history, not a new limit of the subscription it moved to
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:07:53 +05:00
Асель
2f924ac6b3 PEP-163: удаление проекта — неделя у суперадмина, потом насовсем
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:38:43 +05:00
Асель
2dd13261bc PEP-149: migration regenerated on top of main (0020)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
45754f1f23 PEP-149: message types — end of turn is progress, ask_pm with options and default, report_blocker, no «continue» button
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:05:59 +05:00
Асель
fec0a698e7 PEP-143: feedback table, core, feedback agent tick, bot mode and buttons
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
f9a4b3c56e PEP-109: a chat's Telegram group is linked through the user's own bot
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:01:10 +05:00
Асель
3159e888d2 PEP-90: sign in and register with Google (OAuth code + PKCE), link with eGov in Settings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 12:40:26 +05:00
Асель
01d58973ab PEP-85: every user's own Telegram bot — token from BotFather, polled and answered through it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 22:57:07 +05:00
Асель
b3766d200d PEP-62: chats model, projection of events into project chats, master feed, post to chat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:10:49 +05:00
Асель
5b41e7d779 PEP-75: a team of agents — Kazakh names on the board, a character in the prompt
Also: «Открыть терминал» on live session cards.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 18:49:34 +05:00
Асель
cdc7e62bfc PEP-73: project tab AGENTS.md — read and edit the agents' prompt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:25:40 +05:00
Асель
ca57f9543b PEP-17/40: agent sandbox per runner (docker + agent relay) and runner hosts over SSH
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:57:28 +05:00
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
9054774f96 PEP-67: subscriptions and pools in core/db, sign-in and checks in runner, OpenCode provider, mocks, tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:48:25 +05:00
Асель
414e4500e4 PEP-68: local users without Gitea — password login, superadmin management
- users.password_hash/password_set_at/disabled_at (migration 0002_local_users)
- core/local-users.ts: scrypt, passwordLogin with attempt limits, create/reset/disable
- isSuperadmin(db, user) = platform.admins; isUserAllowed honours disabled_at
- web: /auth/password + login form, /users for superadmins, Settings → password
- Gitea login with a local user's login is refused (giteaLoginRefusal)
- local users: projects in peppa-bot namespace, members without Gitea collaboration
- CLI: peppa user add|passwd|disable|enable; tests in testkit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:20:21 +05:00