#!/bin/bash # # Mechanical doc checks for the seriousdevelopment method. Structure checks only: # this does NOT test Wayland or container behaviour (nothing is built yet). # Exit 0 = all pass, 1 = at least one FAIL. Run from the repo root. set -u cd "$(dirname "$0")/.." || exit 1 fail=0 ok() { echo "PASS $1"; } bad() { echo "FAIL $1"; fail=1; } # Docs under the method (research/ is excluded: governed by research/README.md, see UPGRADE-REPORT conflicts). DOCS="SPEC.md BUILD-TRACK.md CHANGELOG.md AGENTS.md UPGRADE-REPORT.md boxes.md host_environment.md docs/INSTALL-xfwl4.md" DOCS="$DOCS $(ls docs/adr/*.md 2>/dev/null)" # 1. version header on every governed doc miss=""; for f in $DOCS; do [ -f "$f" ] || { miss="$miss $f(missing)"; continue; }; head -1 "$f" | grep -q '^