Files
2026-10-30 12:32:42 +03:00

26 lines
2.4 KiB
Markdown
Raw Permalink 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. Правило связи зон (уровень «3»)
- [x] 1.1 `openspec/config.yaml`: в `rules.design` и `operations.apply` связь зон — «событием или внешним ключом схемы», импорт объявления события больше не разрешён
- [x] 1.2 Удалить `test_messaging_touches_identity_only_through_events` (его перекрывает `test_messaging_does_not_import_identity_at_all`)
- [x] 1.3 Удалить `EventBus.project`, `_projections` и `test_projection_runs_before_publish_returns`
- [x] 1.4 Проверка группы: `make student-test PYTEST_ARGS='-k "bounded or events"'`
## 2. Зона `identity`: порт отзыва
- [x] 2.1 Порт `SessionRevocations.revoke`; `SessionDirectory` — только `find`; `PostgresSessionDirectory` без пустого `invalidate`
- [x] 2.2 `CachedSessionDirectory.revoke`, адаптер `NoRevocations`; провайдер DI отдаёт кэш как оба порта; `CloseSessionHandler` зависит от `SessionRevocations`
- [x] 2.3 Проверка группы: `make student-test PYTEST_ARGS='-k "cache or logout"'`
## 3. Зона `messaging`: блокировка только участником
- [x] 3.1 `ChatRepository.get(chat_id, member_id)`: `FOR UPDATE` с условием членства; `PostMessageHandler` передаёт отправителя
- [x] 3.2 Тест: участник держит блокировку строки чата, посторонний получает `404` быстрее `lock_timeout`
- [x] 3.3 Проверка группы: `make student-test PYTEST_ARGS='-k "message or stranger"'`
## 4. Платформа и контейнер
- [x] 4.1 Конвейер считает принятые байты тела: `chunked` больше предела → `413 payload_too_large`; тест
- [x] 4.2 Удалить `PlatformSettings.instance_id`, поля журнала `queue` и `instance`; текст `Unauthenticated` — «сессия не подтверждена»
- [x] 4.3 `SHUTDOWN_TIMEOUT_SECONDS=8` в `Dockerfile` и умолчаниях `gunicorn_conf.py`; `stop_grace_period` остаётся 10 с
- [x] 4.4 Проверка группы: `make lint`, `make student-test`, `make check`; стенд `make up`, `make test`, `make sigterm-evidence` (код 0, меньше 10 с)