peppa/openspec/changes/pep-39-rotation/specs/web-workspace/spec.md
Асель c7283063c9 PEP-39: rotate a limited session to a free subscription of the pool at the turn boundary
Limit marks the subscription «лимит до …»; the watchdog relaunches the session on another
usable subscription of the same provider (Claude/OpenCode resume the conversation, Codex
starts afresh), threshold banner switches after the turn, max 3 switches/hour, simple
fairness between projects, subscription_switched events + Telegram message, web shows
subscription and switch history. Migration 0004 (sessions.rotate_reason).

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

969 B
Raw Blame History

Spec Delta: web-workspace

ADDED Requirements

Requirement: Подписка и переключения сессии в вебе

«Раннеры» SHALL показывать подписку сессии, ожидание переключения на границе хода и историю переключений (с какой, на какую, почему); карточка сессии на странице стори — подписку и число переключений; «Подписки» — сколько сессий на подписке по проектам и статус лимита.

Scenario: История переключений

  • GIVEN раннер переключился с «Claude A» на «Claude B» из-за лимита
  • WHEN PM открывает его в «Раннерах»
  • THEN он видит подписку «Claude B» и запись «Claude A → Claude B · лимит»