Commit Graph

61 Commits

Author SHA1 Message Date
Асель
ce3d46e3db Merge remote-tracking branch 'origin/main' into HEAD 2026-11-16 18:54:39 +05:00
Асель
bcecf9b334 PEP-171: Codex agents start without the removed --full-auto — no approvals, no sandbox by default (like bypassPermissions); mock-codex refuses --full-auto like Codex 0.169
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:27:30 +05:00
Асель
094ab632cc PEP-152: формат сообщения агента — суть, что нужно от вас, где посмотреть, подробности под «Подробнее»
Сообщение агента пользователю собирается из полей summary / need / link / details
(core/agent-message.ts); основной текст проверяется при приёме (длина, словарь, файлы,
ветки, команды, номера PR, статусы из кода) — нарушение возвращается агенту, после трёх
отказов подряд сообщение уходит с нейтральной первой строкой. Разбор словаря — общий
модуль @peppa/shared/glossary. Сайт и Telegram показывают основной текст, details — под
«Подробнее». Карточка «готово» и реплика конца хода — в том же формате. Правила агентам,
переводы en/kk, тесты по сценариям, change pep-152-agent-message-format в архиве.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 17:38:04 +05:00
Асель
cdbab4466d PEP-159: вложения в чате с аналитиком, комментариях и новой задаче
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +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
Асель
4b096b8c84 PEP-137: core and runner messages use glossary words (ru/en/kk); engineer-only texts are marked; no message debts in the baseline
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
e231f46944 PEP-129: the glossary check reads messages marked for a person in core, runner and mcp; product-facing messages reworded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
a99e6abe6d Merge remote-tracking branch 'origin/task/pep-108' into task/pep-127 2026-11-15 22:17:14 +05:00
Асель
f246813e35 PEP-127: мерж только со свежим main внутри — Peppa сама обновляет отставшую ветку и ждёт проверок; «Принять» запоминается и при идущих проверках
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:54:50 +05:00
Асель
2d4e8e6119 PEP-108: voice and text stories from the user's own bot, transcribe timeout, «в проекте X»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:43 +05:00
Асель
6de7c72752 PEP-127: «готова к ревью» уходит PM только когда задачу можно принять; гейт закрыт при ошибке Gitea
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:21 +05:00
Асель
c47a26745d PEP-124: glossary check in CI — pnpm lint, checks.lint, the lint step of the workflow and ci.sh
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
e2d711c1fc PEP-124: glossary check — forbidden words of docs/glossary.md on the screens, list of old debts, test
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
eb760d7a92 PEP-112: go-live needs, project secrets in deploys, restart on secret change, product agent accepts deploys
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:57:05 +05:00
Асель
7ec9fe9bc5 PEP-115: comment on a backlog story goes to the analyst — description reworked, answer in the discussion
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:38:49 +05:00
Асель
e163086b01 PEP-110: the analyst answers in the project chat on the project's subscription and files stories on request
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:30:54 +05:00
6c012bb43d Merge pull request 'PEP-101: «Принять» — сравнение по имени ветки (срочно)' (#92) from task/pep-101 into main 2026-11-15 14:37:30 +05:00
Асель
9611ab53ed PEP-101: Accept compares by branch name (Gitea 1.22 404s on a SHA) and never blocks on a failed compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:21:29 +05:00
Асель
b1fe8e9a84 PEP-95: claude-live Stop test waits for the prompt hook (race reset auto_nudges)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:12:52 +05:00
Асель
20031adc08 PEP-93: Accept closes a PR whose commits are already in main instead of failing with 405
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:33:41 +05:00
073f6716f3 Merge pull request 'PEP-90: Вход и регистрация через Google-почту' (#84) from task/pep-90 into main 2026-11-15 12:47:40 +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
Асель
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
Асель
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
Асель
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
Асель
ee4a313074 PEP-84: «продакт» and «аналитик» refine a story before any developer agent takes it
Also: a subscription the owner connected once is assigned to their new projects; claudePrint never
falls back to the machine login for a self-registered owner.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 22:39:07 +05:00
Асель
6066ce8763 PEP-60: mock-telegram rejects posts only to channels added with addChannel (supergroups of PEP-62 keep working)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 20:14:40 +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
Асель
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
Асель
a0d1097e37 PEP-62: web «Чаты» (master + project chats, threads, composer, Telegram link), live scope, watchdog sync/TTL, e2e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:11:07 +05:00
Асель
2939bad87f PEP-73: type the commit author in mock-gitea contents API
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:27:18 +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
Асель
1e8d9e0327 PEP-3: hooks, statusLine and the permission dialog checked against live Claude Code 2.1.323
- permission dialog menus vary (3-4 items, "2" may be "switch to auto mode"): the late PM answer
  reads the key off the screen (permissionKey); after "No" Claude interrupts the turn without a
  Stop hook, so Peppa types PERMISSION_DENIED_NOTE
- statusLine total_*_tokens are the last request, not session totals: tokens only from transcript
- mcp__peppa allowed in run settings (connected repos have no template .claude/settings.json)
- peppa-hook: PEPPA_HOOK_CAPTURE_DIR saves raw payloads; live fixtures in testkit/fixtures/claude-live
- mock-claude follows the live contract (menu, interrupt on No, statusLine, transcript blocks, suggestions)
- peppa-dev: watchdog (runner service) on the stand, mock PEPPA_SECRET without .env
- e2e claude-live.test.ts: fixtures parsing, real peppa-hook on live payloads, terminal fallback keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:34:40 +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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
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
Асель
328900e254 PEP-66: epics (goals as story labels), tabs Код/Спеки/PR, bug settings in ⋯
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:28:34 +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
Асель
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
Асель
8dc82859c7 PEP-36 stage 1: run Peppa with Node 26 type stripping instead of tsx
- tsconfig: erasableSyntaxOnly + verbatimModuleSyntax; parameter properties
  rewritten (BugsinkError, GiteaError, GiteaClient, OAuthError, TelegramError,
  TelegramApi, MockGitea)
- bin wrappers (peppa, peppa-mcp, peppa-hook, peppa-bot, testkit mocks,
  peppa-dev): `node --import scripts/lib/require-node.mjs` (clear error on
  Node < 26, PEPPA_NODE overrides the binary); package scripts and tests on
  `node` / `node --test`; tsx removed
- install-launchd.sh pins PEPPA_NODE (checked absolute path) in the plists
- fix a race the faster hooks exposed: the prompt hook answered every pending
  question, including a PM question raised after Peppa itself pasted text
  into the terminal; sendToSession now logs `input_sent` and the hook only
  answers questions older than that input
- change pep-36-lightweight-stack: stage 1 done, hook start numbers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:51:22 +05:00
Асель
93f38bbcba PEP-22: harden timing-sensitive e2e steps, archive change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:28 +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