#!/usr/bin/env bash # Design-corpus enforcement: no binding page, no functional change. # # If a commit touches crates/ (or legacy src/), it must also touch a Type: law # or Type: spec page under wiki/. Root DESIGN.md is navigation and does not # satisfy the rule. set -euo pipefail bash tools/corpus_gate.sh changed=$(git diff --cached --name-only --no-renames --diff-filter=ACMRD HEAD) [ -n "$changed" ] || exit 0 printf '%s\n' "$changed" | bash tools/design_amendment_gate.sh --index