Skip to content

test(docs): register title-first legacy designs - #464

Merged
zeegin merged 1 commit into
mainfrom
codex/fix-title-first-design-legacy
Aug 12, 2026
Merged

test(docs): register title-first legacy designs#464
zeegin merged 1 commit into
mainfrom
codex/fix-title-first-design-legacy

Conversation

@zeegin

@zeegin zeegin commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Что меняется

Регистрирует два design-документа issue #186 в явном списке исторических документов с заголовком H1 перед полями Date / Status / Decision. Документы попали в main после введения guardrail и из-за этого Verify source guardrails падал также в несвязанных PR, включая #461.

Корневая причина

Guardrail test_required_header_is_the_first_content_in_each_document намеренно не переписывает архивную design-историю и хранит известный долг в TITLE_FIRST_LEGACY. Два документа существовали до правила, но были слиты после него без регистрации в этом списке.

Архитектурный слой

  • Затронутые записи реестра: нет.
  • Решение (ADR): нет — архитектурный и публичный контракт не меняется.
  • Чек-лист изменений просмотрен в относящейся к тестовой правке части.

RED / GREEN

  • RED на чистом origin/main: 1 падение из 9; шесть диагностик указывали на первые три строки двух документов.
  • GREEN после исправления: 9 из 9 тестов test_design_documents.py проходят.

Проверка

  • python tests/ci/test_design_documents.py
  • python -m py_compile tests/ci/test_design_documents.py
  • python scripts/ci/check-architecture-sync.py --base origin/main --strict
  • python scripts/ci/check-version-contract.py
  • git diff --check origin/main...HEAD

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@zeegin, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d00a9e23-c8a0-4900-abf6-a9937d265970

📥 Commits

Reviewing files that changed from the base of the PR and between 237fbec and cf93859.

📒 Files selected for processing (1)
  • tests/ci/test_design_documents.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zeegin
zeegin merged commit df4d07a into main Aug 12, 2026
17 checks passed
@korolevpavel

Copy link
Copy Markdown
Contributor

Независимое post-merge review exact HEAD cf93859867da08818b235360401cba32ac7b9967: PR-introduced findings нет.

Обе добавленные записи allowlist обоснованы происхождением:

  • документы созданы 3 и 4 августа (0762e724, 89315038);
  • исполняемая проверка literal first-content появилась только 10 августа в 510352cc;
  • оба документа имеют точную legacy-форму H1 → Date → Status → Decision;
  • обязательные поля и ADR resolution продолжают проверяться отдельным тестом;
  • INV-DOC-ARCHIVE-NOT-NORMATIVE сохранён, ADR/registry change не требуется.

Неблокирующий существующий долг: tests/ci/test_design_documents.py:154-156 полностью исключает TITLE_FIRST_LEGACY из проверки формы и проверяет allowlist только на существование имени. Уже есть три устаревших исключения для документов, которые сейчас header-first (2026-08-02-xdto..., 2026-08-03-meta-surface..., 2026-08-08-platform-help...). Отдельным follow-up стоит проверять для legacy точную форму H1 → Date → Status → Decision и удалить stale entries.

Небольшая точность формулировки: текстовое правило в AGENTS.md старше этих документов, поэтому корректнее говорить, что они предшествуют автоматическому guardrail, а не самому правилу.

Проверки: 9/9 test_design_documents, py_compile, architecture-sync strict, git diff --check и GitHub CI — green.

@zeegin zeegin added this to the v0.12 milestone Aug 12, 2026
@zeegin
zeegin deleted the codex/fix-title-first-design-legacy branch August 16, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants