Commit Graph

61 Commits

Author SHA1 Message Date
580fbac015 PEP-295: задача не от человека — только через «Предложено», общий предел в сутки, исключение владельца
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:35 +00:00
fd795afd7f PEP-264: модель по провайдеру — модель чужого CLI не уходит в запуск
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:30:42 +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
071d833e69 Merge origin/main into task/pep-266
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1449с
peppa-ci / ci (pull_request) Successful in 26m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:56:40 +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
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
ce706efb18 PEP-253: веб — кому идёт секрет, «Сделать подключением», настройка проекта, отчёт суперадмину; MCP, CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:01:12 +00:00
b7d8ec10e5 PEP-251: экран «Подключения» для баз, серверов, хранилищ и почты; CLI внутренних адресов; переводы, словарь, документы, архив change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1388с
peppa-ci / ci (pull_request) Successful in 25m10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:06:58 +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
9a1f38c14d PEP-246: перезапуск агента в новой рабочей копии вместо пути с другой машины; сторож не теряет назревшую попытку; peppa session paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:01:32 +00:00
4fa58fa21d Merge branch 'main' into task/pep-242
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: failure за 1244с
peppa-ci / ci (pull_request) Failing after 23m9s
2026-11-23 07:25:57 +00:00
f3d10a4c25 PEP-243: платформа называется FORGE — название во всех текстах для людей и подсказках агентам, адрес forge.telecom.quest
«Peppa FACTORY» → «FORGE» в экранах, сообщениях, словарях en/kk, шаблоне и тестах; «Пеппа» → «FORGE» в подсказках
агентам и правилах; логотип, значок, версия кэша service worker; в словаре старые названия — в «Нельзя».
Внутренние имена (CLI peppa, PEPPA_*, MCP-сервер peppa, ключи PEP-N) не меняются. Второй адрес — в mac-route.sh.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 11:18:49 +05: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
9a50d1d6e2 PEP-231: перевыкатка продуктов (peppa deploy redeploy), сверка адресов с туннелем сервера, Bugsink и cloudflared в compose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:14:48 +00:00
52e1bbe56f PEP-231: proposal, design, tasks, спека
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:10:08 +00: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
79d75e5234 PEP-191: archive change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:08:34 +05:00
Асель
9afe6d4d5d PEP-174: пауза проекта — агенты, роли ИИ и уведомления стоят до «Продолжить»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:25:21 +05:00
Асель
e4391c29cd PEP-168: мониторинг проверяет порт веба, а не только heartbeat; авто-перезапуск
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:29:29 +05:00
Асель
25c35fd6d0 Merge remote-tracking branch 'origin/main' into task/pep-154 2026-11-16 14:31:27 +05:00
Асель
2531e0ee7f PEP-140: foreign text put into the factory's messages is marked free text (titles, names, reviewer's and agent's words, outside reasons)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:48 +05:00
Асель
2eebcb7f6c PEP-154: сообщение человека, которое Peppa донесла до терминала, остаётся его ответом
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:28:53 +05:00
Асель
96b5422a56 PEP-105: «Peppa FACTORY» instead of «Пеппа» in Russian UI texts; i18n-check guards Russian keys; archive change, memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:56:55 +05:00
Асель
6fbf10e00e PEP-95: after logout-all everyone sees the welcome page once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:01:15 +05:00
Асель
feeeb908e5 PEP-95: peppa web logout-all — every web session issued before the cut-off ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:00:05 +05:00
Асель
6e54fc69a6 PEP-91: Peppa reports its own errors to Bugsink — backend to PEP-api, browser to PEP-web
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:39:46 +05:00
b86874e409 Merge pull request 'PEP-4: перенос репозиториев в организацию peppa в Gitea' (#82) from task/pep-4 into main 2026-11-15 00:41:26 +05:00
Асель
748216eef2 PEP-4: peppa project transfer — move a project's repo to another Gitea namespace (origin, CI runner, secret, webhook)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:10:47 +05:00
Асель
03d358f9f2 PEP-69: scrub foreign env from the tmux server before starting runners; warn in peppa status
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:57:10 +05:00
Асель
7c721db744 Merge main into task/pep-60: keep both sides (chats, shared pool, platform channel)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 19:52:53 +05:00
Асель
f00076c575 PEP-76: the project owner picks the subscription — the shared pool or their own Claude token
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 19:35:52 +05:00
Асель
82c003e209 PEP-60: platform Telegram channel — check, releases, outages/restarts, platform digest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:04 +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
Асель
53ac7efdcc PEP-30/41/31: project memory, agent model per story with escalation, first-run checklist
- PEP-30: .peppa/memory.md in the project repo (core/memory.ts), agent MCP get_memory/remember
  (dedupe, 12k size limit, replace to compact), runner appends memory + last finished stories
  to the launch rules, RULES.md rule, memory on the project «Спеки» tab.
- PEP-41: agent settings platform → project → story (provider, model, effort, escalation model
  after N failures, fallback provider); Claude --effort / Codex model_reasoning_effort;
  sticky escalation relaunches a live runner on the stronger model (sendWithEscalation from
  CI feedback and the reviewer); fallback provider when the main one has no working
  subscription; web panels, MCP PM `agent`, CLI `peppa project agent`.
- PEP-31: first-run checklist on the home page (core/onboarding.ts), hide button,
  «Агенты не запустятся» warning on the project page when its pool has no working subscription.

No migrations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:44:24 +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
Асель
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
Асель
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
Асель
16a6fcf8ac PEP-67: migrate-to-sqlite skips tables that don't exist in the legacy Postgres schema
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:48:34 +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
Асель
efeac4500b PEP-64: public by default, change visibility (runner, web, MCP, CLI), tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:39:17 +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
Асель
13ad9cb51e Platform release offers switch: no "deploy to prod?" for Peppa before the launch
peppa platform release-offers on|off (setting platform.release_offers, default on). Off closes the
open offer and hides the button on the project's releases tab. Turned off now: Peppa runs as
next dev from the working copy and has no prod yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:24:37 +05:00
Асель
ed49767c31 PEP-65: eGov QR login through the KazEDS relay (sign.aitu.uz)
Login page and Settings → eGov: relay session with a server-side challenge/nonce, QR + eGov Mobile
deep link, polling, one-shot completion; IIN from the signer's certificate (own DER reader),
users.egov_iin. The relay is trusted (PM decision): no own XMLDSig check. CLI peppa user egov,
mock-kazeds-relay, tests. Dev mode: /_next/static is no-store (Cloudflare cached stale chunks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:14:10 +05:00
Асель
03aee432fb PEP-18: separate Peppa prod — release dir, PM button, DB backup, auto-rollback
- scripts/peppa-release.sh: ~/peppa/{repo.git,releases/<sha>,current,shared/.env};
  install → next build → checked DB backup → migrate → switch current → kickstart →
  health (/api/health commit + fresh heartbeats) → rollback; --queue, --check, --no-restart
- runner/platform-release.ts: deployProd for the platform project (PEPPA_PLATFORM_KEY=PEP)
  queues a request for launchd quest.telecom.peppa.release; offer after green main
- CLI: peppa db backup [file], peppa release report; backupDb verifies the copy
- install-launchd.sh: wait for unload after bootout (no "Bootstrap failed: 5"),
  release agent (QueueDirectories), PEPPA_ROOT in agents
- bin wrappers: logical root so hooks/credential.helper point at ~/peppa/current
- mock-launchctl, mock-pnpm; e2e platform-release.test.ts; OpenSpec pep-18-peppa-prod

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:58:34 +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
Асель
59c3b583de PEP-57: CD — deploy workflow, preview/staging/prod, health check and rollback, releases
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:49:24 +05:00