feat: freeze typed metrics registry and bounded exemplars

This commit is contained in:
2026-08-14 11:52:00 +03:00
parent 17c8e3a8f0
commit 8e709acea9
29 changed files with 1690 additions and 103 deletions
+7
View File
@@ -100,6 +100,13 @@ python3 scripts/check-config-boundaries.py --root .
committed machine contract. PostgreSQL DDL вне `crank-registry::migrations`
блокируется Rust module boundary check.
## Typed metrics contract
`just metrics-contract-check` сверяет Rust registry с versioned JSON snapshot и
проверяет, что production-код объявляет метрики только через `crank-metrics`.
Checker распознаёт прямые macro calls, imports, aliases и re-exports; новые
Rust-файлы можно передать явно через `--files`.
## `check-community-scope.sh`
Проверяет, что в community-репозиторий не попали функции и тексты за пределами