Files
mtusi2026lab2/openspec/changes/archive/2026-10-30-close-lab3-review-gaps/proposal.md
T
ArtyomandClaude Opus 5.5 d3ee257df1 Archive the lab 3 review gaps change
The deltas are synced to openspec/specs: the order of checks on posting
a message (401, then 400 for the request shape without touching the
chat, then 404 for access, then 400 for the text); three detection runs
with a 0.25 s measurement slack and the replica states after each stop
in failover-each; the upper bound of the track 1 grid with a ceiling on
the first grid point stated as a lower bound; control runs of the pool,
the LB queue and the placement.

Before archiving, on the running stand: make test passes, failover
recovers the first write in 2.78 s with 0 failed attempts, persistence
passes; make check, make lint and 243 own tests pass. All level 3 and 4
records were taken on b1c80ee, after the lab 2 carry over.

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

31 lines
3.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.
## Why
Независимое ревью нашло, что уровень «4» под нагрузкой (`detection`, `failover-each`, `rolling*`) и тесты отказов `faults.txt` сняты на `e00eb6c`, до того как трек 1 переписал отправку сообщения, а сдаётся «5». Кроме того, вывод трека «пул и LB — следствия» не проверен контрольным прогоном, ретроградное 8×1 не отделено от размещения на других vCPU, а часть обвязки даёт невоспроизводимые или чужие данные (имя проекта, заголовок `limits.txt`, общий тег образа, порт по умолчанию). Порядок `400`/`404` для постороннего нигде не записан. Закрывает строки «4.1–4.4» и строку трека «Saturation point» в `REPORT.md`.
## What Changes
- Требование к порядку проверок `POST …/messages`: `401` → `400` по форме запроса → `404` по доступу → `400` по тексту.
- Обнаружение отказа измеряется трижды; в отчёте — диапазон и допуск 0,25 с.
- `failover-each` пишет `docker ps -a` реплик после остановки.
- Серия B: сетка ограничена сверху, потолок на первой точке сетки помечается нижней границей.
- Контрольные прогоны трека: 8×1 при 5 400 rps с пулом 4/16 на воркер и `maxconn` 16/64; 8×0,5 на CPU 7–10 против 4×1 на тех же CPU.
- Обвязка: `BASE_URL` по порту `lb` из compose, тег образа по проекту compose, проект compose в `storage-evidence`, коммит в `limits.txt`, обезличенный `faults.txt`, полный stderr сбоя `compose up`, сдвиг round robin для второй реплики в `failover-evidence`.
- Повтор уровня «4» и `test-faults` на итоговом коде, `evidence/checks.txt` (`make check`, `make validate`, `make lint`).
## Capabilities
### Modified Capabilities
- `lab3-idempotent-messages`: порядок проверок запроса.
- `lab3-failover-operations`: повторные замеры обнаружения, доказательство остановленной реплики.
- `lab3-scaling-cost`: граница сетки, контрольные прогоны насыщения.
## Impact
- Код: удаление `# type: ignore` в `shared/entrypoints/errors.py`, поведение API не меняется.
- Обвязка: `Makefile`, `scripts/{evidence-storage,failover-evidence,failover-each}.sh`, `scripts/{limits,scaling}.py`, `openspec/config.yaml`.
- Доказательства: `evidence/` уровней «3» и «4», `evidence/track1/control-*`, `REPORT.md`.
## Non-goals
Новых возможностей нет, контракт и профиль нагрузки не меняются; Out of scope `config.yaml` в силе.