Files
mtusi2026lab3/openspec/changes/close-lab3-review-gaps/tasks.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

2.1 KiB
Raw Blame History

1. Требования и код

  • 1.1 Тест порядка проверок POST …/messages для постороннего (test_request_shape_is_checked_before_access)
  • 1.2 Убрать # type: ignore из shared/entrypoints/errors.py
  • 1.3 openspec/config.yaml: gunicorn_conf.py в карте модулей
  • 1.4 Проверка группы: make lint, make student-test, make check

2. Обвязка

  • 2.1 Makefile: BASE_URL по порту lb, API_IMAGE по каталогу, detection трижды, track1-control
  • 2.2 scripts/evidence-storage.sh — volumes своего проекта; scripts/limits.py — коммит в заголовке
  • 2.3 scripts/scaling.py — полный stderr сбоя compose up в compose-up-failed.log
  • 2.4 scripts/failover-each.sh — docker ps -a реплик после хука; scripts/failover-evidence.sh — SHIFT
  • 2.5 Проверка группы: make lint, make check, bash -n/sh -n скриптов

3. Доказательства на итоговом коде

  • 3.1 evidence/checks.txt: make check, make validate, make lint
  • 3.2 Стенд: make test, make stack-evidence, make storage-evidence, make failover-evidence ×2, make persistence-evidence, make test-faults
  • 3.3 make level4: limits, lb-check, detection ×3, failover-each, rolling-update, rolling-update FROM_REV=8d28d45
  • 3.4 make track1-control: пул и maxconn на 8×1, 8×0,5 против 4×1
  • 3.5 Запуск из чистого clone с нестандартным портом без BASE_URL
  • 3.6 Проверка группы: все файлы evidence/ несут коммит не раньше кода

4. Отчёт

  • 4.1 REPORT.md: шапка, таблицы 4.x и отказов, трек (H2, методика, контроль, цифры), ограничения; evidence/README.md
  • 4.2 Сократить proposal add-lab3-scaling-cost до 400 слов
  • 4.3 Проверка группы: make check, make lint, make student-test