Commit Graph

34 Commits

Author SHA1 Message Date
2bb3d4f4b4 PEP-267: закреплённые версии Claude Code, Codex, OpenCode — без автообновления, дымовой тест и откат образа, сверка для суперадмина
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:14:16 +00:00
b6d3921429 PEP-266: CLI peppa smoke, раздел «Запуск агентов» на Observability, тест, архив change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1455с
peppa-ci / ci (pull_request) Successful in 26m17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:19:52 +00:00
f51fce9164 PEP-244: контейнер агента удаляется с пропавшей сессией; сверка сирот раз в минуту
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:07:27 +00:00
1bf8c913c0 PEP-249: каталог сервисов, права чтение/запись, проверка ключа, короткое имя в MCP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:08 +00:00
badad190eb PEP-242: шаблон уходит в Gitea с выкаткой, сверка в вачдоге, ci connect --secrets-only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:07:20 +00:00
e8c87ec04d PEP-222: образ и compose платформы, выкатка контейнерами, раннеры в контейнерах по умолчанию
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 19:52:59 +05:00
b554f66d9c PEP-209: страница «Приёмка», «Принять всё», объединение предложений, сводка в Telegram, Главная и задержки в Дашборде
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:50:03 +05:00
9d1c4f0de2 PEP-209: самолечение застрявших задач, расписание повторов, кнопки задержек
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:43:13 +05:00
42c1269b69 PEP-208: ночная тишина 23:00–08:00 для всех сообщений Telegram и push
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:51:15 +05:00
d1fcbb6ca7 PEP-202: слияние с main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:36:07 +05:00
a0cda002c7 PEP-198: тесты — пересылка через Аналитика, сводка, застрявшие
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:23:04 +05:00
ffd4e4c171 PEP-202: Observability — сервис мониторингов peppa-observer, раздел для суперадмина, MCP
Сервис peppa-observer (своя база observe.db, журнал 7 дней): мониторинги HTTP(S),
TCP, DNS (системный против 1.1.1.1), «Интернет», heartbeat; состояние меняется
после N неудач/удач подряд, одно сообщение в канал платформы на смену, упавшие
вместе с интернетом молчат. Раздел /observability и MCP-инструменты — только
суперадмину и агентам платформы. Встроенные: «Интернет», «eGov relay» (HTTP, DNS).
Проверка сети из вачдога (PEP-201) переехала сюда.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:15:36 +05:00
9299407c72 PEP-201: вачдог следит за DNS и интернетом и пишет в канал платформы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 19:39:44 +05:00
Асель
23ef2e843e PEP-153: вопрос не становится задачей — фабрика отвечает и предлагает «Завести как задачу»
Сообщение боту и в чате проекта сначала классифицируется (правила, затем модель
на подписке проекта): вопрос получает ответ с кнопкой «Завести как задачу»,
описание изменения — черновик, неясное или сбой — выбор кнопками.
OpenSpec change pep-153-question-not-task (в архиве).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 17:15:36 +05:00
5e513e5047 Merge branch 'main' into task/pep-191 2026-11-17 14:21:52 +05:00
79d75e5234 PEP-191: archive change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:08:34 +05:00
15d06cdad1 PEP-189: страж порта и домена — чужой контейнер на порту/домене Peppa останавливается, публичный адрес проверяется
Агент 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>
2026-11-17 13:30:50 +05:00
8c6cea7465 PEP-150: merge main (PEP-185 pick questions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:46:27 +05:00
287f152eeb PEP-185: вопрос «Взять в работу?» по готовым задачам бэклога
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 23:40:38 +05:00
Асель
3cb3c46a6c PEP-150: merge main (PEP-149/151/154/166) — failures go to the superadmin as platform delays; «all tasks done» is not sent while a story is still in work; delay errors are awaited into Bugsink
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:24:57 +05:00
Асель
e4391c29cd PEP-168: мониторинг проверяет порт веба, а не только heartbeat; авто-перезапуск
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:29:29 +05:00
Асель
b5c0e704a5 PEP-150: сбои не идут пользователю — задержка на стороне платформы, одно сообщение суперадмину
platformDelay/sessionDelay вместо attention владельцу: падения и зависания агентов, лимиты,
красные и зависшие проверки, запуск агента, обновление версии, приёмка; guard конвейера —
вопрос суперадмину в платформенном проекте; строка задержки в задаче и на карточке;
список задержек на Главной суперадмина.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 14:09:30 +05:00
Асель
81f62c9a69 PEP-145: the «Ваш продукт» card with one big button and an honest status, «Показывать всем» setting, links for accepted stories, translations, tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:00 +05:00
Асель
33fa9a743c PEP-144: test teardown retries removing its temp dir — ENOTEMPTY on a busy CI runner failed a whole test file
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:06:08 +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
Асель
0194f7f6e4 testkit: remove each test file's temp dir on teardown (runs had piled up ~1 GB)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:25:16 +05:00
Асель
3a282b8054 PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres
- packages/db: schema on sqlite-core (timestamps as epoch ms → Date, JSON as text,
  booleans 0/1), one baseline migration; node:sqlite client under drizzle's
  better-sqlite3 session (busy_timeout first, WAL, BEGIN IMMEDIATE, retries on
  SQLITE_BUSY, lazy open, async transaction callbacks refused); PEPPA_DB
  (default ~/.peppa/peppa.db)
- live updates: notify() pokes the bot over a unix socket; the bot also watches
  PRAGMA data_version every second (writes by other processes)
- Postgres specifics ported: createTask transaction is synchronous, no
  `for update skip locked`, `count(*)`, json_extract instead of ->>, json_each
  instead of @>
- `peppa db migrate` and `peppa db migrate-to-sqlite <file>` (read-only
  snapshot of Postgres, FK order from the schema, row count + foreign key
  checks, file appears only when they pass); old Postgres schema kept in
  packages/cli/legacy-pg-migrations for the migration and its test
- daily VACUUM INTO backup from the watchdog (7 copies, admin alert on failure)
- tests: a temp SQLite file per test file; storage.test.ts (20 processes,
  per-project numbering across processes, socket/data_version, migration from
  Postgres incl. a dangling foreign key, backups); two test races fixed
- CI: no per-run Postgres database; PEPPA_TEST_PG only for the migration test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:23:24 +05:00
Асель
8fee68f8eb PEP-22: Gitea Actions workflow for Peppa on the PEP-57 runner; testkit creates its DB over SQL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:28 +05:00
Асель
3ab408eb70 PEP-57: CI for factory projects — act_runner, template workflow, connect CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:19:11 +05:00
Асель
dc2aea8d35 PEP-22: PEPPA_TEST_DB — separate test database for parallel runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 13:57:16 +05:00
Асель
824ba56b74 PEP-2: Telegram per user — pairing from Settings, delivery by project access
- users.telegram_* replace the single global binding; one-time /start code
  per user (web Settings → Telegram, or peppa telegram pair <login>);
  a chat belongs to one user
- agent questions go to the project's owner and members who paired; an
  answer (button or reply) is accepted only from someone with access to
  the project; messages are closed for every recipient; /status is scoped
- CLI: telegram pair|status|unpair <login>, user ensure mock-<name>;
  dev stand pairs its test PM per user
- tests: several-users journey (bob without access, then as a member);
  70 e2e total, green
- BREAKING: the old global binding is removed; users pair again in Settings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 03:44:30 +05:00
Асель
56b6224587 PEP-12: share projects with other users
- project_members / project_invites; owner adds people by Gitea login,
  invitations are applied at first login; members get the owner's access
  except member management; a member can leave
- access everywhere via projectForUser / userProjectIds (owner or member):
  web inbox, sessions, project pages, MCP
- shareProject / unshareProject: login checked in Gitea, repo collaborator
  (write) added by the owner's client or peppa-bot; missing admin rights
  don't block membership (repoAccess flag)
- web: Members block on the project page, 'shared' badge; MCP:
  list_members, add_member, remove_member; Help updated
- tests: 5 sharing journeys on mock-gitea (64 e2e total, green); test DB
  now also clears users and OAuth clients between files
- OpenSpec: pep-12 archived (project-sharing, web-auth)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-12 22:35:56 +05:00
Асель
9cf0d53303 Add Telegram bot: pairing, durable outbox, answers from buttons and replies
- 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>
2026-11-12 20:26:58 +05:00
Асель
1df550bb86 Add Codex provider, mock agents and end-to-end CJM suite
- 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>
2026-11-12 20:09:43 +05:00