Commit Graph

105 Commits

Author SHA1 Message Date
7d0da1b83c Merge pull request 'infra: все docker-сервисы Пеппы в одном compose-проекте peppa' (#37) from infra/one-compose into main 2026-11-14 02:14:44 +05:00
Асель
616ce28c70 infra: one compose project peppa (postgres, bugsink, act-runner) — one group in OrbStack
The runner and Bugsink ran from compose files in old worktrees (projects peppa-ci, peppa-bugsink).
Container names and the runner's registration volume are kept. scripts/infra-up.sh, pnpm infra:up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:10:53 +05:00
a493b80708 Merge pull request 'testkit: тесты удаляют свою временную папку' (#36) from fix/test-tmp-cleanup into main 2026-11-14 01:28:51 +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
0d130f76a0 Merge pull request 'PEP-65: вход через eGov QR (relay sign.aitu.uz)' (#35) from task/PEP-65-egov-login into main 2026-11-14 01:24:46 +05:00
Асель
f958777e11 PEP-65: archive OpenSpec change pep-65-egov-login
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:14:11 +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
4179690277 Merge pull request 'UI: только стори — цели убраны из веба' (#34) from ui/stories-only into main 2026-11-14 00:49:01 +05:00
Асель
c55e9ce840 CI: install pnpm and openspec into a job-local prefix (concurrent jobs collided in the toolcache)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 00:45:42 +05:00
Асель
b517072362 UI: stories only — goals removed from the web (project page, board cards, task page)
Goals stay in the DB and MCP for now (agent context, Bugsink); PEP-66 turns them into epic labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 00:44:55 +05:00
f66d3dbc5b Merge pull request 'Фикс: страница бесконечно перезагружалась в next dev' (#33) from fix/dev-reload-loop into main 2026-11-13 23:40:36 +05:00
Асель
847962d80e CI rerun (toolcache race)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 23:37:23 +05:00
Асель
2a276d601e Fix dev reload loop: forward only browser errors to the terminal
Forwarded browser logs are written to .next/dev/logs; the watcher treated that as a change
and the page reloaded in a loop behind peppa.telecom.quest (next dev, pre-launch live mode).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 23:36:32 +05:00
e76fc92150 Merge pull request 'UI: вкладки проекта, «+ Стори» в заголовке, цели — в настройках' (#32) from ui/project-tabs into main 2026-11-13 23:25:12 +05:00
Асель
5df52468c3 UI: project tabs (Доска · Релизы · Баги · Сессии), «+ Стори» dialog, goals into ⋯ settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 23:21:32 +05:00
d047f9cdfe Merge pull request 'UI: доска в одну линию, панель проекта — в диалог «⋯»' (#31) from ui/board-one-row into main 2026-11-13 23:03:43 +05:00
Асель
ae9f2861ae AGENTS: pre-launch live mode (next dev from the working copy)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 23:00:11 +05:00
Асель
c4952b2011 Pre-launch live mode: PEPPA_WEB_MODE=dev runs next dev (HMR) from the working copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:56:02 +05:00
Асель
52d861bbc7 UI: board in one row, project panel moved into a ⋯ settings dialog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:52:53 +05:00
ee9dec9b60 Merge pull request 'PEP-18: отдельный прод Пеппы — релизный каталог, кнопка PM, бэкап БД, автооткат' (#30) from task/PEP-18-peppa-prod into main 2026-11-13 18:05:28 +05:00
Асель
969ad886a8 PEP-18: archive OpenSpec change pep-18-peppa-prod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:02:16 +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
75019fdf1c Merge pull request 'PEP-36 этап 2: SQLite (node:sqlite, WAL) вместо Postgres — мержить вместе с переключением прода' (#29) from task/PEP-36-sqlite into main 2026-11-13 17:42:52 +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
4f4850dc67 Merge pull request 'PEP-57 (этап 4): Пеппа на собственном конвейере CI, архив change' (#27) from task/PEP-57-self into main 2026-11-13 17:03:22 +05:00
Асель
048006fd32 PEP-57: re-run CI (runner DNS hiccup)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:59:05 +05:00
Асель
07e2caa393 PEP-57: PM question on red CI is not closed by the agent's prompts
After three red runs Peppa asked the PM with the session attached, then pasted
"wait for the PM" into that session — its prompt hook closed the question as
answered in the terminal. The question is now task-only; answers to task
questions without a session go to the task's active session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:59:04 +05:00
Асель
ae37ba90d5 PEP-57: archive OpenSpec change pep-57-ci-cd (spec delivery-pipeline)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:59:04 +05:00
Асель
5120b97a0b PEP-57: Peppa on its own pipeline — CI via project checks and peppa-check.sh; 4.2 moved to PEP-18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:59:04 +05:00
843b0778d8 Merge pull request 'PEP-36 этап 1: Node 26 со снятием типов вместо tsx' (#28) from task/PEP-36-node into main 2026-11-13 16:55:38 +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
9561e83676 Merge pull request 'PEP-38 (3/3): пульт раннеров — фильтры-счётчики, поиск, «продолжит в HH:MM», детали справа' (#26) from task/PEP-38-runners into main 2026-11-13 16:48:54 +05:00
Асель
4c4b3a482f PEP-38: archive OpenSpec change pep-38-factory-console
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:44:58 +05:00
Асель
d3a54fc845 PEP-38: runners console — filter counters, search, limit resume time, details panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:40:27 +05:00
cb6832f967 Merge pull request 'PEP-36 (этап 1): замер и change — Node 26 + node:sqlite' (#23) from task/PEP-36-bench into main 2026-11-13 16:36:13 +05:00
ad6c917316 Merge pull request 'PEP-38 (2/3): все страницы на компонентах пульта, globals.css удалён' (#25) from task/PEP-38-pages into main 2026-11-13 16:33:07 +05:00
Асель
eeb326cc4f PEP-36: PM decision — Node 26 + node:sqlite; drizzle shim and check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:28:59 +05:00
Асель
50b1d1afec PEP-36: benchmark SQLite vs Postgres and propose Bun + SQLite stack
bench/sqlite (outside the workspace): Peppa-like load with 10/20 runners,
a hook process per event, MCP, bot, web and watchdog; bun:sqlite,
node:sqlite, better-sqlite3, a single-writer service and Postgres; notify
replacements (cursor polling, fs.watch on WAL, unix-socket push); a
ceiling test; a schema port to sqlite with a data copy from Postgres and
a check of drizzle transactions.

openspec/changes/pep-36-lightweight-stack: proposal, design with the
numbers, specs (platform-storage, service-monitoring), phased tasks.
No product code changes; the move waits for the PM's decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:28:59 +05:00
a9acf109e7 Merge pull request 'PEP-38 (1/3): основа пульта — Tailwind + shadcn/ui, тёмная тема, три панели' (#24) from task/PEP-38-base into main 2026-11-13 16:25:44 +05:00
Асель
c03b679a1d PEP-38: all pages on the console components, globals.css removed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:21:44 +05:00
Асель
28fbde4add PEP-38: console foundation — Tailwind v4, shadcn/ui components, dark theme, three-panel layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:21:43 +05:00
b07beb5d0f Merge pull request 'PEP-22: CI для самой Пеппы и стабильность тестов' (#19) from task/PEP-22 into main 2026-11-13 15:06:32 +05:00
Асель
8073a27f9d Fix stray argument in incidents test (broken in c964a00, main didn't typecheck)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:01:00 +05:00
Асель
d1c555a038 PEP-22: read a zombie agent's exit code from /proc when tmux never reaps it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:29 +05:00
Асель
83b222b9e2 PEP-22: docs and spec reflect the real Actions workflow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:29 +05:00
Асель
6cbac2bf4c PEP-22: runner waits for tmux to reap the agent before reading its exit status
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:28 +05:00
Асель
961cb558a4 PEP-22: CI job uses host Postgres with a per-run database, installs openspec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:28 +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
Асель
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
Асель
56a7756e71 PEP-22: scripts/ci.sh, PR status peppa/ci, mock-act-runner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:00:28 +05:00