Files
ArtyomandClaude Opus 5.5 a0d3947710 Carry over the agent context and openspec history from lab 5
Bring the Claude Code settings, the lint hook, the opsx commands and
skills, the architecture notes, the lab 1 to lab 5 specs and the
archived lab 1 to lab 5 changes into the lab 6 skeleton, so lab 6
continues the same spec history instead of starting from scratch. The
files come from the lab 5 solution commit 64d5c67.

Rewrite AGENTS.md and the openspec context and rules for lab 6: the
business API stays at contract 1.6.0, API, relay and worker start the
OpenTelemetry SDK in every process after fork and export OTLP over HTTP
to a separate Collector, Prometheus, Loki and Tempo store metrics, logs
and traces on volumes, Grafana only reads them through provisioning
kept in Git, telemetry never blocks a request and never feeds
/health/ready, metric labels stay low-cardinality and message bodies
and secrets never leave the process. Out of scope moves to lab 7,
track 2 and clustered telemetry backends.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 03:46:20 +03:00

16 lines
1.9 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.
## MODIFIED Requirements
### Requirement: Компенсация сбоя после записи объекта
Если объект записан в staging, а перевод вложения в `queued` вместе с заданием не зафиксирован, сервис SHALL ответить `503` с кодом `unavailable` и до ответа SHALL попытаться удалить объект и строку-намерение. Строку, которая к этому моменту уже поставлена в очередь, сервис SHALL NOT удалять вместе с её объектом. Если строку-намерение к моменту фиксации уже убрали, сервис SHALL ответить `503` и удалить записанный объект, а не возвращать `202`. Неудача компенсации SHALL оставлять строку-намерение для уборки по grace period.
#### Scenario: Отказ COMMIT после записи объекта
- **WHEN** запись объекта в staging прошла, а фиксация статуса `queued` и задания в PostgreSQL отклонена
- **THEN** ответ `503` с кодом `unavailable`, сразу после ответа нет ни строки вложения, ни задания, ни объекта с его ключом, в журнале есть событие удаления намерения с причиной `compensation`
#### Scenario: Намерение снято раньше, чем загрузка завершилась
- **WHEN** во время записи объекта строку-намерение удалили
- **THEN** ответ `503`, объект с ключом этой загрузки удалён, вложения в очереди не появилось