Files
mtusi2026lab3/openspec/changes/close-lab3-review-gaps/proposal.md
T
ArtyomandClaude Opus 5.5 b1c80ee544 Anonymize the repository path in the faults evidence
make faults-evidence wrote the pytest rootdir with the local home
directory, so the committed faults.txt was cleaned by hand and could not
be reproduced by the command from the report. The target now replaces
the repository path with <repo> and still fails when a stack test fails,
since the pipe through sed hides the pytest exit code.

The open review change also records that the lab 2 carry over moved the
default image tag to the compose project.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-30 02:42:45 +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` в силе.