From 7f38948294288089f73353e62bab32cdc62d21bf Mon Sep 17 00:00:00 2001 From: roman Date: Sat, 31 Oct 2026 09:16:10 +0300 Subject: [PATCH] docs: archive async-attachments and sync its specs Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 23 +++++++++++-------- QUESTIONS.md | 2 +- REPORT.md | 2 +- .../.openspec.yaml | 0 .../2026-10-31-async-attachments}/design.md | 0 .../2026-10-31-async-attachments}/proposal.md | 0 .../specs/attachment-processing/spec.md | 0 .../specs/attachments/spec.md | 0 .../specs/container-image/spec.md | 0 .../specs/container-run/spec.md | 0 .../specs/data-storage/spec.md | 0 .../specs/db-migrations/spec.md | 0 .../specs/graceful-shutdown/spec.md | 0 .../specs/health/spec.md | 0 .../specs/idempotency/spec.md | 0 .../specs/load-balancing/spec.md | 0 .../specs/load-benchmark/spec.md | 0 .../specs/message-broker/spec.md | 0 .../specs/messages/spec.md | 0 .../specs/object-storage/spec.md | 0 .../specs/service-configuration/spec.md | 0 .../specs/service-logging/spec.md | 0 .../specs/storage-consistency/spec.md | 0 .../specs/student-tests/spec.md | 0 .../2026-10-31-async-attachments}/tasks.md | 0 25 files changed, 16 insertions(+), 11 deletions(-) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/.openspec.yaml (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/design.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/proposal.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/attachment-processing/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/attachments/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/container-image/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/container-run/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/data-storage/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/db-migrations/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/graceful-shutdown/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/health/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/idempotency/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/load-balancing/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/load-benchmark/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/message-broker/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/messages/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/object-storage/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/service-configuration/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/service-logging/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/storage-consistency/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/specs/student-tests/spec.md (100%) rename openspec/changes/{async-attachments => archive/2026-10-31-async-attachments}/tasks.md (100%) diff --git a/AGENTS.md b/AGENTS.md index 051071fc..0eb11e69 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,11 +11,13 @@ RabbitMQ 4 (выбор пользователя), отдельный worker, с оценка 5, трек 1 «Очередь под перегрузкой» (выбор пользователя). Предупреждения о хосте, которые явно не влияют на результат замера, прогон не останавливают (указание пользователя 2026-10-31). Решения, принятые -без пользователя, и открытые вопросы — `QUESTIONS.md`. Change -`async-attachments` (уровень 3): загрузка — 202 после staging, задания в -PostgreSQL и подтверждения брокера, worker на образе API, thumbnail, очередь -RabbitMQ 4; следующие — `pipeline-reliability` (4), `track1-queue-overload` -(5). Код перенесён из +без пользователя, и открытые вопросы — `QUESTIONS.md`. Фоновая обработка +(уровень 3) — change `async-attachments` (заархивирован 2026-10-31, +`openspec/changes/archive/2026-10-31-async-attachments/`): загрузка — 202 +после staging, задания в PostgreSQL и подтверждения брокера, worker на +образе API, thumbnail, очередь RabbitMQ 4, новые capability +`attachment-processing` и `message-broker`; следующие — +`pipeline-reliability` (4), `track1-queue-overload` (5). Код перенесён из лабы 4 (репозиторий `mtusi2026lab4-safronov`, ветка `solution/bvt2301-safronov`, commit `2546deb`) по разделу «Переход в следующую лабу»; отчёт и evidence лабы 4 остались в её репозитории. Дальше @@ -73,11 +75,14 @@ max_objects_per_second` (2000 объектов S3/с), отказ по пред `rollout`, серии трека 1 лабы 3 (`scaling-bench`, `scaling-improvement`, `profile-resources`). Changes лаб 2 и 3 и `s3-storage`, `attachments`, `upload-consistency`, `upload-memory`, `track2-reconciler`, -`fix-upload-put-flake`, `track2-reconcile-cost` лабы 4 — в -`openspec/changes/archive/`, активных changes нет, спеки синхронизированы -(новые capability: с `s3-storage` — +`fix-upload-put-flake`, `track2-reconcile-cost` лабы 4, `async-attachments` +лабы 5 — в `openspec/changes/archive/`, активных changes нет, спеки +синхронизированы (новые capability: с `s3-storage` — `object-storage`, с `attachments` — `attachments`, с -`upload-consistency` — `storage-consistency`); в `KNOWN_ISSUES.md` четыре открытые записи (bootstrap после удаления +`upload-consistency` — `storage-consistency`, с `async-attachments` — +`attachment-processing`, `message-broker`); в `KNOWN_ISSUES.md` семь открытых записей (разрыв COMMIT и publish; смесь +версий при замене реплик на первый релиз с обработкой; `content_type` +записи «Uploaded attachment»; bootstrap после удаления bucket; уборщик удаляет объект зависшей загрузки по ключу вне своего префикса; 408 LB на медленные заголовки текстом HAProxy; поля `float` настроек принимают `inf`). Отчёт, evidence и рабочий план лабы 3 остались в её репозитории (`REPORT.md`, `evidence/`, `git show 063eedb:PLAN.md`). diff --git a/QUESTIONS.md b/QUESTIONS.md index b5b57d09..02cfd528 100644 --- a/QUESTIONS.md +++ b/QUESTIONS.md @@ -50,7 +50,7 @@ ## async-attachments -Подробности и отвергнутые варианты — `openspec/changes/async-attachments/design.md`. +Подробности и отвергнутые варианты — `openspec/changes/archive/2026-10-31-async-attachments/design.md`. ### Решения diff --git a/REPORT.md b/REPORT.md index 05cd2738..d8e6cc2b 100644 --- a/REPORT.md +++ b/REPORT.md @@ -299,7 +299,7 @@ H1 (пик ограничен местами) и H4 (нет 503 по сроку ## Источники, библиотеки и использование ИИ -**Документация:** [RabbitMQ reliability](https://www.rabbitmq.com/docs/reliability), [Publisher confirms and acknowledgements](https://www.rabbitmq.com/docs/confirms) (из `README.md` задания); aio-pika — ; Pillow — (`Image.draft`, `resize` с `reducing_gap`, EXIF); PostgreSQL 18 — `NOT VALID`, `FOR UPDATE`, `lock_timeout`; источники лаб 2–4 — в их отчётах. Поведение брокера и Pillow проверено пробами: таблица «Пробы» в `openspec/changes/async-attachments/design.md`. +**Документация:** [RabbitMQ reliability](https://www.rabbitmq.com/docs/reliability), [Publisher confirms and acknowledgements](https://www.rabbitmq.com/docs/confirms) (из `README.md` задания); aio-pika — ; Pillow — (`Image.draft`, `resize` с `reducing_gap`, EXIF); PostgreSQL 18 — `NOT VALID`, `FOR UPDATE`, `lock_timeout`; источники лаб 2–4 — в их отчётах. Поведение брокера и Pillow проверено пробами: таблица «Пробы» в `openspec/changes/archive/2026-10-31-async-attachments/design.md`. **Библиотеки:** новые — aio-pika 10.2.1, Pillow 13.0.0 (из dev-группы в основную); остальное — `uv.lock`. diff --git a/openspec/changes/async-attachments/.openspec.yaml b/openspec/changes/archive/2026-10-31-async-attachments/.openspec.yaml similarity index 100% rename from openspec/changes/async-attachments/.openspec.yaml rename to openspec/changes/archive/2026-10-31-async-attachments/.openspec.yaml diff --git a/openspec/changes/async-attachments/design.md b/openspec/changes/archive/2026-10-31-async-attachments/design.md similarity index 100% rename from openspec/changes/async-attachments/design.md rename to openspec/changes/archive/2026-10-31-async-attachments/design.md diff --git a/openspec/changes/async-attachments/proposal.md b/openspec/changes/archive/2026-10-31-async-attachments/proposal.md similarity index 100% rename from openspec/changes/async-attachments/proposal.md rename to openspec/changes/archive/2026-10-31-async-attachments/proposal.md diff --git a/openspec/changes/async-attachments/specs/attachment-processing/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/attachment-processing/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/attachment-processing/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/attachment-processing/spec.md diff --git a/openspec/changes/async-attachments/specs/attachments/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/attachments/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/attachments/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/attachments/spec.md diff --git a/openspec/changes/async-attachments/specs/container-image/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/container-image/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/container-image/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/container-image/spec.md diff --git a/openspec/changes/async-attachments/specs/container-run/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/container-run/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/container-run/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/container-run/spec.md diff --git a/openspec/changes/async-attachments/specs/data-storage/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/data-storage/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/data-storage/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/data-storage/spec.md diff --git a/openspec/changes/async-attachments/specs/db-migrations/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/db-migrations/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/db-migrations/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/db-migrations/spec.md diff --git a/openspec/changes/async-attachments/specs/graceful-shutdown/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/graceful-shutdown/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/graceful-shutdown/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/graceful-shutdown/spec.md diff --git a/openspec/changes/async-attachments/specs/health/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/health/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/health/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/health/spec.md diff --git a/openspec/changes/async-attachments/specs/idempotency/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/idempotency/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/idempotency/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/idempotency/spec.md diff --git a/openspec/changes/async-attachments/specs/load-balancing/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/load-balancing/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/load-balancing/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/load-balancing/spec.md diff --git a/openspec/changes/async-attachments/specs/load-benchmark/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/load-benchmark/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/load-benchmark/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/load-benchmark/spec.md diff --git a/openspec/changes/async-attachments/specs/message-broker/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/message-broker/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/message-broker/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/message-broker/spec.md diff --git a/openspec/changes/async-attachments/specs/messages/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/messages/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/messages/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/messages/spec.md diff --git a/openspec/changes/async-attachments/specs/object-storage/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/object-storage/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/object-storage/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/object-storage/spec.md diff --git a/openspec/changes/async-attachments/specs/service-configuration/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/service-configuration/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/service-configuration/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/service-configuration/spec.md diff --git a/openspec/changes/async-attachments/specs/service-logging/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/service-logging/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/service-logging/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/service-logging/spec.md diff --git a/openspec/changes/async-attachments/specs/storage-consistency/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/storage-consistency/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/storage-consistency/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/storage-consistency/spec.md diff --git a/openspec/changes/async-attachments/specs/student-tests/spec.md b/openspec/changes/archive/2026-10-31-async-attachments/specs/student-tests/spec.md similarity index 100% rename from openspec/changes/async-attachments/specs/student-tests/spec.md rename to openspec/changes/archive/2026-10-31-async-attachments/specs/student-tests/spec.md diff --git a/openspec/changes/async-attachments/tasks.md b/openspec/changes/archive/2026-10-31-async-attachments/tasks.md similarity index 100% rename from openspec/changes/async-attachments/tasks.md rename to openspec/changes/archive/2026-10-31-async-attachments/tasks.md