peppa/openspec/changes/archive/2026-11-14-pep-30-project-memory/design.md
Асель 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

11 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Design
- Формат: Markdown, разделы `## Команды`, `## Соглашения`, `## Грабли`, `## Решения`, пункты
`- …`. `remember` создаёт файл с шапкой при первом вызове, раздел — если его нет; пункт
нормализуется (одна строка, ≤ 500 символов); дубль (без учёта регистра и пробелов) — no-op.
- Источник — рабочая копия раннера (`PEPPA_PROJECT_DIR` у MCP; у раннера cwd запуска,
worktree тоже). Пеппа файл не коммитит: коммит — часть работы агента в ветке стори.
- Предел 12 000 символов (`PEPPA_MEMORY_MAX_CHARS`). В правила запуска идёт не больше предела
(обрезка с пометкой), чтобы разросшийся вручную файл не съел контекст.
- Сводка стори: `tasks` проекта со статусом `done`, последние 5 по `updated_at`, без архивных.