peppa/openspec/changes/archive/2026-11-24-pep-259-grant-terms/tasks.md
peppa-bot 7991a2e374
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1453с
peppa-ci / ci (pull_request) Successful in 26m21s
PEP-259: срок у разрешения Access Hub и автоснятие без дела
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:21:54 +00:00

17 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.

## 1. Данные
- [x] 1.1 Схема: `connection_grants.term|expires_at|granted_at|last_used_at|ended_at|end_reason`, `connections.idle_revoke_hours`; миграция 0033 (старым — `granted_at` = время миграции)
## 2. Ядро
- [x] 2.1 `grantConnection` с `term`, `GRANT_TERMS`, `GRANT_RIGHTS`; `extendGrant`; `setConnectionIdleHours`; вид разрешения (срок, последний вызов, когда снимется, состояние)
- [x] 2.2 Шлюз: только живые разрешения, причины `expired` / `idle_revoked`, `last_used_at` разрешения
- [x] 2.3 `grantExpiryTick`: снятие без дела (пауза проекта, журнал, событие), уборка старых, суточная сводка владельцу; вачдог
- [x] 2.4 `agentConnections`: срок и когда снимется
## 3. Поверхности
- [x] 3.1 MCP `list_connections` и подсказка в отказе `call_connection`
- [x] 3.2 Веб `/connections`: срок в форме, строка разрешения, «Продлить», порог у подключения; переводы en/kk; словарь
## 4. Проверка
- [x] 4.1 Тесты `access-hub-terms.test.ts` (истечение, автоснятие с `now`, продление, чужой пользователь, пауза) + регрессия access-hub*
- [x] 4.2 Проверки (lint, typecheck, test), память, задача на кнопки «Дать» после PEP-250