peppa/openspec/changes/archive/2026-11-14-pep-43-budgets/tasks.md
Асель 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

786 B
Raw Blame History

Tasks: PEP-43

1. Core

  • 1.1 core/budgets.ts: бюджеты в settings, taskSpend, effectiveBudget, budgetOver, состояние паузы, расход по эпикам

2. Раннер

  • 2.1 runner/budgets.ts: budgetTick (Escape, событие, вопрос PM), onBudgetAnswer, гард в start/resume, вачдог не возобновляет стори на паузе
  • 2.2 Stop-хук не подталкивает стори на паузе

3. Интерфейсы

  • 3.1 Веб: расход и бюджет на карточке, «Настройки проекта → Бюджет», server actions
  • 3.2 MCP get_task: расход и бюджет

4. Тесты

  • 4.1 budgets.test.ts: сценарии спеки