add decisions-validate pre-push gate

One new Makefile target (tools/scripts/plan decisions validate)
wired as a prerequisite of push-check so malformed records fail
locally before they reach a reviewer. Parser dry-run is cheap
(~100ms) and stays within the <90s pre-push budget.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-04-21 17:28:44 +02:00
co-authored by Claude
parent a96a54ec7f
commit 4dd9a74be7
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -50,6 +50,9 @@ heading, and (b) bumping `project.yaml` `version:` in the same commit.
[`D-040`](decisions/process.md#d-040-python-stopgap-under-toolsscriptsplan)
/ [`R-011`](decisions/rejected.md#r-011-permanent-stopgap).
- `make decisions-validate` — cheap parser dry-run wired into
`push-check`. Catches malformed records before push.
### Removed
- `docs/ADRs/` directory — content lifted into `decisions/` as D/R
+5 -1
View File
@@ -160,8 +160,12 @@ security: ## Dart advisory review + ptyc source review (manual — no floating d
# -- pre-push gate -------------------------------------------------------
.PHONY: decisions-validate
decisions-validate: ## Parser dry-run over decisions/*.md (cheap pre-push gate).
tools/scripts/plan decisions validate
.PHONY: push-check
push-check: test test-a11y ## Pre-push gate: fast unit + widget + golden + a11y (<90s).
push-check: decisions-validate test test-a11y ## Pre-push gate: decisions + fast unit + widget + golden + a11y (<90s).
.PHONY: hooks
hooks: ## Install the repo's git hooks (points core.hooksPath at .githooks/).