Files
mtusi2026labs/openspec/changes/close-lab3-review-gaps/proposal.md
T
ArtyomandClaude Opus 5.5 be17939ddb Propose closing the lab 3 review gaps as an openspec change
An independent review of the grade 5 submission found that the level 4
measurements under load and the fault tests were taken on the code
before track 1 rewrote the message write, that the claim that the pool
and the balancer are not the bottleneck rests on reasoning alone, and
that the retrograde 8x1 result is not separated from running on other
vCPUs. Some evidence tooling also writes data of another compose
project or cannot reproduce a committed file.

The change records the order of checks on posting a message (401,
request shape 400, access 404, text 400), requires three detection runs
with the 0.25 s measurement tolerance, a docker ps of replicas after
each stop in failover-each, an upper bound of the rate grid, and control
runs that vary the pool, the balancer queue and the CPU placement one at
a time.

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

31 lines
3.1 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 в `storage-evidence`, коммит в `limits.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` в силе.