- 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>
16 lines
786 B
Markdown
16 lines
786 B
Markdown
# Tasks: PEP-43
|
||
|
||
## 1. Core
|
||
- [x] 1.1 core/budgets.ts: бюджеты в settings, `taskSpend`, `effectiveBudget`, `budgetOver`, состояние паузы, расход по эпикам
|
||
|
||
## 2. Раннер
|
||
- [x] 2.1 runner/budgets.ts: `budgetTick` (Escape, событие, вопрос PM), `onBudgetAnswer`, гард в start/resume, вачдог не возобновляет стори на паузе
|
||
- [x] 2.2 Stop-хук не подталкивает стори на паузе
|
||
|
||
## 3. Интерфейсы
|
||
- [x] 3.1 Веб: расход и бюджет на карточке, «Настройки проекта → Бюджет», server actions
|
||
- [x] 3.2 MCP `get_task`: расход и бюджет
|
||
|
||
## 4. Тесты
|
||
- [x] 4.1 budgets.test.ts: сценарии спеки
|