From a8079352249dec0db5cdabc9f2e78d1c49362154 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Sun, 15 Nov 2026 18:54:53 +0200 Subject: [PATCH] feat(quality): cut the check loop to one check command, run before each commit (#2461) The static-check rules now ask for one check command running format, lint, types and tests; the narrowest covering check while working; the full check before each commit and at completion, with no re-run of a check whose inputs are unchanged; batched fixes; and types annotated as the code is written. They replace the rule to run the type checker, the linter and the formatter before every commit, and name no tool. Closes #2461. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3 --- docs/architecture/08-crosscutting-concepts.md | 78 +++++++++---------- templates/core/quality.md | 12 ++- 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/docs/architecture/08-crosscutting-concepts.md b/docs/architecture/08-crosscutting-concepts.md index 1c71075b..67be4b5e 100644 --- a/docs/architecture/08-crosscutting-concepts.md +++ b/docs/architecture/08-crosscutting-concepts.md @@ -217,45 +217,45 @@ task starts. The root file's count includes its fact slots. | Root | Every turn, words | Skills | Skill words | |------|-------------------|--------|-------------| -| `backend-api` | 5982 | 11 | 2714 | -| `backend-auth` | 8036 | 10 | 2094 | -| `backend-caching` | 5641 | 10 | 2094 | -| `backend-concurrency` | 5488 | 10 | 2094 | -| `backend-database` | 5448 | 11 | 2173 | -| `backend-edge` | 8369 | 10 | 2094 | -| `backend-errors` | 6887 | 10 | 2094 | -| `backend-features` | 5499 | 10 | 2094 | -| `backend-grpc` | 9148 | 11 | 2250 | -| `backend-http` | 5915 | 10 | 2094 | -| `backend-jobs` | 5421 | 10 | 2094 | -| `backend-messaging` | 5707 | 11 | 2188 | -| `backend-microservices` | 7104 | 11 | 2853 | -| `backend-monitoring` | 5780 | 10 | 2094 | -| `backend-observability` | 5527 | 10 | 2094 | -| `backend-webhooks` | 8889 | 11 | 2188 | -| `base-agents` | 5049 | 10 | 3302 | -| `base-cicd` | 5337 | 10 | 2214 | -| `base-config` | 5511 | 10 | 2124 | -| `base-containers` | 5390 | 10 | 2194 | -| `base-data-governance` | 5946 | 10 | 2094 | -| `base-data-migration` | 5619 | 11 | 2466 | -| `base-data-modeling` | 5458 | 10 | 2094 | -| `base-data-quality` | 6213 | 11 | 2143 | -| `base-deployment` | 5327 | 10 | 2153 | -| `base-devsecops` | 5635 | 10 | 2094 | -| `base-docs` | 5033 | 10 | 2094 | -| `base-embedded-checks` | 6287 | 11 | 4377 | -| `base-git` | 5033 | 10 | 2094 | -| `base-measurement` | 5760 | 10 | 2094 | -| `base-oop` | 5575 | 10 | 2094 | -| `base-quality` | 5033 | 10 | 2094 | -| `base-quality-gates` | 6266 | 11 | 4134 | -| `base-review` | 5033 | 10 | 2094 | -| `base-security` | 6564 | 10 | 2094 | -| `base-testing` | 5033 | 10 | 2094 | -| `frontend-content` | 5428 | 10 | 2094 | -| `frontend-quality` | 5453 | 10 | 2169 | -| `frontend-ux` | 5535 | 10 | 2094 | +| `backend-api` | 6058 | 11 | 2714 | +| `backend-auth` | 8112 | 10 | 2094 | +| `backend-caching` | 5717 | 10 | 2094 | +| `backend-concurrency` | 5564 | 10 | 2094 | +| `backend-database` | 5524 | 11 | 2173 | +| `backend-edge` | 8445 | 10 | 2094 | +| `backend-errors` | 6963 | 10 | 2094 | +| `backend-features` | 5575 | 10 | 2094 | +| `backend-grpc` | 9224 | 11 | 2250 | +| `backend-http` | 5991 | 10 | 2094 | +| `backend-jobs` | 5497 | 10 | 2094 | +| `backend-messaging` | 5783 | 11 | 2188 | +| `backend-microservices` | 7180 | 11 | 2853 | +| `backend-monitoring` | 5856 | 10 | 2094 | +| `backend-observability` | 5603 | 10 | 2094 | +| `backend-webhooks` | 8965 | 11 | 2188 | +| `base-agents` | 5125 | 10 | 3302 | +| `base-cicd` | 5413 | 10 | 2214 | +| `base-config` | 5587 | 10 | 2124 | +| `base-containers` | 5466 | 10 | 2194 | +| `base-data-governance` | 6022 | 10 | 2094 | +| `base-data-migration` | 5695 | 11 | 2466 | +| `base-data-modeling` | 5534 | 10 | 2094 | +| `base-data-quality` | 6289 | 11 | 2143 | +| `base-deployment` | 5403 | 10 | 2153 | +| `base-devsecops` | 5711 | 10 | 2094 | +| `base-docs` | 5109 | 10 | 2094 | +| `base-embedded-checks` | 6363 | 11 | 4377 | +| `base-git` | 5109 | 10 | 2094 | +| `base-measurement` | 5836 | 10 | 2094 | +| `base-oop` | 5651 | 10 | 2094 | +| `base-quality` | 5109 | 10 | 2094 | +| `base-quality-gates` | 6342 | 11 | 4134 | +| `base-review` | 5109 | 10 | 2094 | +| `base-security` | 6640 | 10 | 2094 | +| `base-testing` | 5109 | 10 | 2094 | +| `frontend-content` | 5504 | 10 | 2094 | +| `frontend-quality` | 5529 | 10 | 2169 | +| `frontend-ux` | 5611 | 10 | 2094 | ## 8.11 Responsibility levels diff --git a/templates/core/quality.md b/templates/core/quality.md index 67bd92d4..67bed764 100644 --- a/templates/core/quality.md +++ b/templates/core/quality.md @@ -248,9 +248,17 @@ match on "[0-9a-f]{16}.html" wrong directory -> nothing matched the language has one, and keep it clean (MUST) - Annotate every public function's parameters and return type where the language allows it (MUST) +- Annotate types as the code is written - Adopt a linter and a formatter, and keep both clean (MUST) -- Run the type checker, the linter and the formatter before every commit - and in CI +- Give the project one check command running format, lint, types and + tests, and run it in CI +- While working, run the narrowest check that covers the affected + behaviour and its dependents +- Run the full check command before each commit and at completion; an + unchanged, passing full check satisfies both +- Do not re-run a check whose inputs have not changed since it passed +- Batch independent fixes before re-running; re-run earlier when needed to + diagnose or to verify a prerequisite fix ```bash