- New docs/wiki/mother-hive.md — thin decisions page covering forced-command SSH boundary, single-home-in-colibri, hive_nodes rationale, peer auth, key-on-seed, and daemon-user design. Links to MOTHER-SETUP.md for setup instructions; never duplicates them. - Flip wiki-lint to --strict in ci-checks.sh — drift failures now block the gate the same as clippy warnings. 42 PASS / 0 FAIL, clean since merge. - New scripts/pre-push — runs ci-checks.sh on every git push to main. Install once: ln -sf ../../scripts/pre-push .git/hooks/pre-push. Bypass only with --no-verify. Closes the gap that let pi_binary reach main (gate existed but nobody was forced through it). - Updated AGENTS.md, quality-gates.md, and index.md to reflect all three.
29 lines
719 B
Bash
Executable file
29 lines
719 B
Bash
Executable file
#!/bin/sh
|
|
# Run every repository gate, the same set CI runs. Use this before pushing.
|
|
#
|
|
# ./scripts/ci-checks.sh
|
|
#
|
|
# Gates: rustfmt, clippy (warnings = errors), workspace tests, markdown format,
|
|
# wiki-lint (dangling refs, resurrected old names, orphan pages).
|
|
|
|
set -eu
|
|
|
|
ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
echo "==> cargo fmt --check"
|
|
cargo fmt --check
|
|
|
|
echo "==> cargo clippy --workspace --all-targets -- -D warnings"
|
|
cargo clippy --workspace --all-targets -- -D warnings
|
|
|
|
echo "==> cargo test --workspace"
|
|
cargo test --workspace
|
|
|
|
echo "==> markdown format gate"
|
|
./scripts/check-format.sh
|
|
|
|
echo "==> wiki-lint --strict"
|
|
./scripts/wiki-lint --strict
|
|
|
|
echo "All checks passed."
|