peppa/openspec/changes/archive/2026-11-12-pep-7-autonomy/design.md
Асель 00c8f79a36 PEP-7: autonomous mode — board moves start agents, PM only for stoppers
- web board (Backlog / In progress / Review / Done) with drag-and-drop and
  buttons; moveTask starts an agent on In progress, stops on Backlog/Done
- routine proposals go straight to apply; request_approval/ask_pm only for
  architectural stoppers (RULES.md, MCP hints, template pushed to Gitea)
- Stop hook keeps the agent going (decision: block, max 2 in a row,
  sessions.auto_nudges reset by a human answer) instead of pinging the PM
- review: ready-for-review message with Accept (acceptTask → done, session
  stopped) in Telegram and web; a text reply goes back to the agent
- mock-claude honours Stop-hook block; 6 new e2e tests (48 total, green)
- OpenSpec: pep-7 archived (task-autonomy, web-workspace board)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:21:11 +05:00

19 lines
1.5 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: PEP-7
## Decisions
1. **Продолжение через Stop-хук Claude** (`{"decision":"block","reason":…}`): Claude сам
продолжает ход с этой инструкцией — без вставки текста в tmux. Лимит — счётчик
`sessions.auto_nudges` (сбрасывается в `answerAndDeliver` и на `UserPromptSubmit`).
Codex такого механизма не имеет — для него остаётся сигнал PM.
2. **Ревью — тот же вопрос `attention`**, но бот и веб рисуют его с кнопкой «Принять»,
если задача в `review`; приёмка — `acceptTask` в runner (ответ, `done`, стоп сессии).
3. **Перенос карточек — `moveTask` в runner** (используют веб и, позже, бот), колонка
«В работе» объединяет `proposing`/`awaiting_approval`/`in_progress`/`blocked`.
4. **DnD без библиотек**: HTML5 drag-and-drop в клиентском компоненте + кнопки (мобильные).
## Risks / Trade-offs
- [Агент зацикливается, продолжая без смысла] → максимум 2 автопродолжения подряд.
- [PM двигает карточку агента вручную в «Бэклог»] → сессия останавливается, вопросы закрываются как неактуальные.