Files
mtusi2026lab2/openspec/changes/carry-over-lab2-review-fixes/tasks.md
T
ArtyomandClaude Opus 5.5 79a52bab58 Propose carrying over the lab 2 fixes as an openspec change
Lab 3 was carried over from lab 2 at 8cddb09, and lab 2 changed up to
102579e after two reviews. The change brings those system fixes here:
the chunked body limit, a worker that cancels a stuck request before
the master kills it, a logout that withdraws its revocation mark when
PostgreSQL rejects it, the empty cursor, the zone rule kept to the
schema and the toolchain and stand tests. To keep the lab 3 rule that
draining leaves the database timeouts their full 3 s, the shutdown
budget grows from 5 to 6 s and the stop hooks from 6 to 7 s.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-30 02:32:12 +03:00

22 lines
2.2 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. Код
- [ ] 1.1 Платформа: предел тела по принятым байтам в `RequestPipeline`; `EventBus` без проекций; без неиспользуемого `shutdown_timeout_seconds`
- [ ] 1.2 Identity: порт `SessionRevocations`, `revoke`/`restore` в `CachedSessionDirectory`, `NoRevocations`, снятие отметки при сбое транзакции выхода
- [ ] 1.3 Messaging: пустой `cursor` → `400` в истории и списке; `POST_MESSAGE` лабы 3 остаётся
- [ ] 1.4 Процесс: `timeout_graceful_shutdown = SHUTDOWN − DRAIN − 1`, `SHUTDOWN_TIMEOUT_SECONDS` 6 с в образе, compose и `gunicorn_conf.py`, `STOP_TIMEOUT` 7 с в хуках
- [ ] 1.5 Проверка группы: `make lint`, `make check`, `make validate`
## 2. Тесты
- [ ] 2.1 Перенос тестов лабы 2 с `Idempotency-Key`: `chunked`, посторонний и блокировка, сбой БД при выходе, запись без кэша, пустой курсор, `docker rm -fv`
- [ ] 2.2 `test_timeouts.py`: дообработка за вычетом запаса ≥ таймаутов БД; `test_drain.py`: зависший запрос получает `500`, выход с кодом 0 раньше срока
- [ ] 2.3 Стенд: полный рестарт с выходом, срок сессии после рестарта без `api-shortttl`
- [ ] 2.4 Проверка группы: `make student-test`
## 3. Обвязка
- [ ] 3.1 `Makefile`: `validate` из `.venv`, `PYTEST_ARGS`, `faults-evidence`, `down` с профилем `bench`; `pyproject.toml`/`uv.lock`: `openapi-spec-validator`, без `-q`
- [ ] 3.2 `compose.yaml`: тег образа по проекту compose, `start_interval` 200 мс
- [ ] 3.3 `scripts/evidence-cache.sh` с проверкой срока ключа, `kdf.txt` с заглушкой seed; `AGENTS.md`, `openspec/config.yaml`
- [ ] 3.4 Проверка группы: стенд из чистого состояния, `make test`, `make test-failover`, `make test-persistence`, `make test-faults`, `make cache-evidence` (вывод — во временный файл)