Retake the lab 4 evidence on the final code and finish the report

The level 3 and 4 evidence was taken on 24f9d61 and a774a2f, before the
lab 3 fixes were carried over and before the reconciler. Take all of it
again in one series on 81dd816, whose application and stand code is the
final one: a fresh clone runs the launch block of the report from secrets
to reset-data, then one stand from clean volumes gives the smoke, stack,
limits, lb-check, failover of each replica and of the upload replica,
persistence, S3 outage, S3 privacy, lost-answer retry, upload faults, all
stack checks, storage layout and three runs of the upload memory matrix.

The three memory runs keep the peak with three slots at 297-345 MiB
against 512 MiB at the limit without them, but at 40 uploads of 10 MiB
the wait for a slot nears the 8 s request timeout and one run of three
gave 7 of 80 a 503. Those timeouts left 67 invisible intents; the record
shows the reconciler seeing them as fresh and the sweep removing all of
them after the grace period.

Message write load is taken with tests/load.py from a container on the
edge network: 2 106 RPS, no errors, replicas and PostgreSQL at their CPU
limits. The first try from the macOS host is kept as a discarded attempt,
it ran out of ephemeral ports while the replicas answered every request.

The report gets the defense answers, the load section, the evidence
commits, the upload limit order as the pipeline applies it, medians in
the track 2 cost table and the proposals over the word limit; the evidence
index lists every file with its command and commit.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
This commit is contained in:
Artyom
2026-10-30 07:55:34 +03:00
co-authored by Claude Opus 5.5
parent 81dd816df2
commit c8cb263c77
90 changed files with 2851 additions and 957 deletions
+17 -13
View File
@@ -1,8 +1,8 @@
date: 2026-10-28T21:17:12Z commit: a774a2f BASE_URL=http://localhost:18084
date: 2026-10-30T04:30:24Z commit: 81dd816 BASE_URL=http://127.0.0.1:18084
============================= test session starts ==============================
collected 5 items
collecting ... collected 5 items
student-tests/stack/test_attachment_faults.py 10 MiB + 1 с Content-Length, тело не отправлено: 413
student-tests/stack/test_attachment_faults.py::test_user_errors_never_become_500 10 MiB + 1 с Content-Length, тело не отправлено: 413
10 MiB + 1 chunked: 413
PNG 100000×100000 (бомба): 413
PNG 8001×5000: 413
@@ -38,20 +38,24 @@ filename=None: 400
пустой текст без вложений: 400
невалидный id вложения: 400
variant=thumbnail: 400
строк вложений в чате: 2 (= ответов 201); ответов в журнале реплик: 53, из них 5xx: 0
.отказ COMMIT после записи объекта: 503 unavailable
строк вложений в чате: 2 (= ответов 201); ответов в журнале реплик: 54, из них 5xx: 0
PASSED
student-tests/stack/test_attachment_faults.py::test_commit_failure_is_compensated_at_once отказ COMMIT после записи объекта: 503 unavailable
сразу после ответа: строка нет, объект HEAD 404
журнал: audit.attachment_discarded reason=compensation
.реплика 0b2544e9c8de убита между PUT и COMMIT, клиент получил 502
реплика cf30d7db141f убита между PUT и COMMIT, клиент получил 502
PASSED
student-tests/stack/test_attachment_faults.py::test_crash_between_put_and_commit_is_swept_after_grace реплика 0cc3ee358e59 убита между PUT и COMMIT, клиент получил 502
реплика 899a952a5a21 убита между PUT и COMMIT, клиент получил 502
остаток после падения: строка pending, объект HEAD 200
остаток после падения: строка pending, объект HEAD 200
старше grace: строка убрана через 23.2 с, объект HEAD 404
старше grace: строка убрана через 24.7 с, объект HEAD 404
моложе grace: строка pending, объект HEAD 200
тот же после сдвига: убран через 2.9 с, объект HEAD 404
тот же после сдвига: убран через 1.0 с, объект HEAD 404
готовое вложение в сообщении со сдвинутым created_at скачивается, SHA-256 совпадает
.обрыв после 256 KiB из 5 MiB: статус в журнале реплики [400], намерение None
.тело зависло после 1 KiB: 503 unavailable за 8.00 с
.
PASSED
student-tests/stack/test_attachment_faults.py::test_aborted_upload_leaves_nothing обрыв после 256 KiB из 5 MiB: статус в журнале реплики [400], намерение None
PASSED
student-tests/stack/test_attachment_faults.py::test_stalled_upload_is_cut_and_leaves_nothing тело зависло после 1 KiB: 503 unavailable за 8.01 с
PASSED
============================== 5 passed in 47.68s ==============================
============================== 5 passed in 45.92s ==============================