Codify production-first engineering governance
CI / Rust checks (push) Canceled after 0s
CI / Docs and registry checks (push) Canceled after 0s
CI / Smoke checks (push) Canceled after 0s
Coverage / Coverage baseline (push) Canceled after 0s
Dependency hygiene / Unused dependency check (push) Canceled after 0s
Dependency hygiene / Dependency duplicate report (push) Canceled after 0s
Dependency hygiene / Dependency security policy (push) Canceled after 0s
Dependency hygiene / Cargo udeps nightly advisory (push) Canceled after 0s
Operational maturity / Offline operational maturity (push) Canceled after 0s
Operational maturity / Live operational contract (push) Canceled after 0s
Security / Cargo audit (push) Canceled after 0s
Security / Cargo deny (push) Canceled after 0s
Security / Secret pattern check (push) Canceled after 0s
Security / Dependency review (push) Canceled after 0s
CI / Rust checks (push) Canceled after 0s
CI / Docs and registry checks (push) Canceled after 0s
CI / Smoke checks (push) Canceled after 0s
Coverage / Coverage baseline (push) Canceled after 0s
Dependency hygiene / Unused dependency check (push) Canceled after 0s
Dependency hygiene / Dependency duplicate report (push) Canceled after 0s
Dependency hygiene / Dependency security policy (push) Canceled after 0s
Dependency hygiene / Cargo udeps nightly advisory (push) Canceled after 0s
Operational maturity / Offline operational maturity (push) Canceled after 0s
Operational maturity / Live operational contract (push) Canceled after 0s
Security / Cargo audit (push) Canceled after 0s
Security / Cargo deny (push) Canceled after 0s
Security / Secret pattern check (push) Canceled after 0s
Security / Dependency review (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
# AWatch-rus: enterprise quality standard
|
||||
|
||||
Дата актуализации: 2026-07-01.
|
||||
|
||||
AWatch-rus уже работает в production-контуре заказчика. Основная цель
|
||||
разработки - не добавление функций, а повышение надежности, эксплуатационной
|
||||
зрелости, безопасности, сопровождаемости и воспроизводимости.
|
||||
|
||||
Приоритеты изменений, по убыванию:
|
||||
|
||||
1. Reliability.
|
||||
2. Operational maturity.
|
||||
3. Security.
|
||||
4. Maintainability.
|
||||
5. Reproducibility.
|
||||
6. Performance.
|
||||
7. Simplicity.
|
||||
|
||||
Новые функции не должны иметь приоритет над стабильностью production.
|
||||
|
||||
## Production-first правила
|
||||
|
||||
- Предполагать, что production deployment существует и пользователи зависят от
|
||||
непрерывной работы.
|
||||
- Предпочитать additive/backward-compatible изменения.
|
||||
- Не перепроектировать работающие подсистемы без измеримой пользы.
|
||||
- Не включать heavy DLP, Loki или always-on Velociraptor без отдельного
|
||||
operator-approved решения.
|
||||
- Не менять ActivityWatch logical host ids, bucket suffixes, Grafana variables
|
||||
или ClickHouse workforce keys без отдельной compatibility-процедуры.
|
||||
- Fail closed для security-sensitive и deployment-sensitive paths.
|
||||
- Сохранять rollback path для runtime, automation, config и dependency changes.
|
||||
|
||||
## Порядок принятия решений
|
||||
|
||||
Перед реализацией любого изменения ответ должен быть положительным хотя бы на
|
||||
один вопрос:
|
||||
|
||||
1. Улучшает ли это production stability?
|
||||
2. Снижает ли это operational risk?
|
||||
3. Улучшает ли это diagnostics или observability?
|
||||
4. Улучшает ли это maintainability?
|
||||
5. Уменьшает ли это технический долг с низким regression risk?
|
||||
|
||||
Если ответ отрицательный на все пять вопросов, изменение не должно попадать в
|
||||
production-oriented PR.
|
||||
|
||||
## Dependencies
|
||||
|
||||
Перед добавлением зависимости нужно явно обосновать:
|
||||
|
||||
- почему стандартной библиотеки недостаточно;
|
||||
- почему существующий workspace crate не решает задачу;
|
||||
- operational cost зависимости;
|
||||
- maintenance cost зависимости;
|
||||
- license/security impact.
|
||||
|
||||
Неиспользуемые зависимости удаляются отдельными низкорисковыми PR после
|
||||
targeted tests. Обновление `Cargo.lock` без причины не допускается.
|
||||
|
||||
## Required PR sections
|
||||
|
||||
Каждый PR обязан содержать:
|
||||
|
||||
- Purpose.
|
||||
- Operational impact.
|
||||
- Risk assessment.
|
||||
- Rollback strategy.
|
||||
- Validation steps.
|
||||
- Documentation changes.
|
||||
- Acceptance criteria.
|
||||
|
||||
Для documentation-only/governance-only PR нужно явно указать, что runtime, API и
|
||||
UI impact отсутствуют.
|
||||
|
||||
## Validation baseline
|
||||
|
||||
Канонический набор проверок описан в
|
||||
`docs/OPERATIONS_VALIDATION_RUNBOOK_RU.md`. Минимальный baseline для
|
||||
существенных Rust/runtime changes:
|
||||
|
||||
```bash
|
||||
cd /mnt/usb_hdd2/Projects/ActivityWatch-Russian/adk-rust
|
||||
export CARGO_TARGET_DIR=/home/igor/.cache/detmir-adk-rust-target
|
||||
|
||||
cargo fmt --all --check
|
||||
cargo test --workspace --all-targets --locked
|
||||
cargo test --workspace --doc --locked
|
||||
cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||
cargo audit --deny warnings
|
||||
|
||||
cd /mnt/usb_hdd2/Projects/ActivityWatch-Russian
|
||||
cargo deny --manifest-path adk-rust/Cargo.toml check \
|
||||
--config deny.toml \
|
||||
--hide-inclusion-graph \
|
||||
--show-stats
|
||||
python3 scripts/public_secret_pattern_check.py
|
||||
node scripts/operational-maturity-check.mjs --json
|
||||
```
|
||||
|
||||
Targeted checks are acceptable for small docs/governance or isolated changes,
|
||||
but skipped checks must have a concrete reason.
|
||||
|
||||
## Technical debt policy
|
||||
|
||||
Fix technical debt only when all conditions are true:
|
||||
|
||||
- change is isolated;
|
||||
- regression risk is low;
|
||||
- tests or operational smoke cover the touched behavior;
|
||||
- documentation remains accurate.
|
||||
|
||||
Otherwise create a follow-up task or document the residual risk instead of
|
||||
mixing broad cleanup into a functional PR.
|
||||
|
||||
## Canonical references
|
||||
|
||||
- Review checklist: `docs/REVIEW_CHECKLIST_RU.md`.
|
||||
- Validation runbook: `docs/OPERATIONS_VALIDATION_RUNBOOK_RU.md`.
|
||||
- Operational maturity harness: `docs/OPERATIONAL_MATURITY_RU.md`.
|
||||
- PR workflow: `docs/PR_REVIEW_WORKFLOW_RU.md`.
|
||||
- GitHub governance entrypoint: `.github/GOVERNANCE.md`.
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Дата: 2026-06-22
|
||||
|
||||
Статус: advisory checklist for public review process.
|
||||
Статус: canonical checklist for production-first PR review.
|
||||
|
||||
Этот документ описывает проверочный чеклист для pull requests и внешнего
|
||||
инженерного review. Он не утверждает, что внешний peer review уже выполняется
|
||||
@@ -13,7 +13,15 @@ release evidence должен производиться на российско
|
||||
|
||||
## Общая безопасность изменений
|
||||
|
||||
- Изменение соответствует production-first стандарту:
|
||||
`docs/ENTERPRISE_QUALITY_STANDARD_RU.md`.
|
||||
- Цель PR относится к reliability, operational maturity, security,
|
||||
maintainability, reproducibility, performance или simplicity. Если PR добавляет
|
||||
функциональность, он также объясняет measurable operational benefit.
|
||||
- Изменение имеет понятную цель, ограниченный scope and documented impact.
|
||||
- Изменение additive/backward-compatible, если нет отдельного
|
||||
operator-approved breaking-change решения.
|
||||
- Не перепроектируются работающие подсистемы без измеримой пользы.
|
||||
- Нет секретов, токенов, паролей, приватных ключей, recovery codes or live
|
||||
credentials.
|
||||
- Нет персональных данных сотрудников, реальных employee logs or customer
|
||||
@@ -52,6 +60,8 @@ release evidence должен производиться на российско
|
||||
- No runtime behavior is changed by documentation/governance-only PRs.
|
||||
- No service restart, migration or production config change is implied unless
|
||||
explicitly documented.
|
||||
- Existing production deployment remains compatible, including logical host ids,
|
||||
bucket suffixes, Grafana variables and ClickHouse workforce keys.
|
||||
|
||||
## Registry-readiness impact
|
||||
|
||||
@@ -80,6 +90,9 @@ release evidence должен производиться на российско
|
||||
|
||||
- README, `docs/PROJECT_STATUS_RU.md`, registry docs and operational runbooks
|
||||
are updated when claims, checks, workflows or procedures change.
|
||||
- Behavior changes update the relevant runbook and validation commands.
|
||||
- Architecture docs are updated when an interface, data flow, deployment
|
||||
boundary or security boundary changes.
|
||||
- New claims are conservative and evidence-backed.
|
||||
- Pending work remains marked as planned/pending until evidence exists.
|
||||
- Public mirror wording remains separate from registry release evidence.
|
||||
@@ -88,6 +101,8 @@ release evidence должен производиться на российско
|
||||
|
||||
- PR states whether deployment action is required.
|
||||
- Rollback path is documented for runtime or automation changes.
|
||||
- Dependency changes are isolated, justified and include rollback by reverting
|
||||
the dependency/lockfile PR.
|
||||
- Documentation-only PRs state that runtime/API/UI impact is unchanged.
|
||||
- Changes to scripts include syntax checks and a clear operator failure mode.
|
||||
|
||||
@@ -103,6 +118,9 @@ release evidence должен производиться на российско
|
||||
- For Rust/product changes, use
|
||||
`docs/OPERATIONS_VALIDATION_RUNBOOK_RU.md` as the default local validation
|
||||
contour.
|
||||
- Dependency hygiene and operational maturity checks are expected when touched
|
||||
files can affect Rust dependencies, runtime contracts, configuration,
|
||||
migrations, observability or CI governance.
|
||||
- For operator-facing web, gateway, worktime reports or Grafana dashboards,
|
||||
browser smoke through the rendered pages is required in addition to API checks.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user