peppa/packages/db/migrations
Асель 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
..
meta PEP-39: rotate a limited session to a free subscription of the pool at the turn boundary 2026-11-14 05:31:22 +05:00
0000_baseline.sql PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
0001_egov_iin.sql PEP-65: eGov QR login through the KazEDS relay (sign.aitu.uz) 2026-11-14 01:14:10 +05:00
0002_local_users.sql PEP-68: local users without Gitea — password login, superadmin management 2026-11-14 03:20:21 +05:00
0003_subscriptions.sql PEP-67: subscriptions and pools in core/db, sign-in and checks in runner, OpenCode provider, mocks, tests 2026-11-14 03:48:25 +05:00
0004_code_reviewer.sql PEP-26: reviewer agent before the PM's review — queue, claude -p on the PR diff, findings back to the agent, project settings, card; lint example in the template 2026-11-14 04:59:32 +05:00
0005_push_notifications.sql PEP-29/35/55: notification prefs and routing, Web Push outbox, daily digest; mock-push, tests 2026-11-14 05:10:20 +05:00
0006_rotation.sql PEP-39: rotate a limited session to a free subscription of the pool at the turn boundary 2026-11-14 05:31:22 +05:00