Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/open-humanity/blob/main/scripts/agent-preflight.sh # open-humanity Privacy-first peer assistance network for sovereign autonomous agents Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `open-humanity / scripts / agent-preflight.sh` 35 lines ยท 1312 bytes Raw Blame History 1 #!/usr/bin/env bash 2 set -euo pipefail 3 4 echo "=== Open Humanity Preflight Verification ===" 5 6 # 1. Branch Isolation 7 BRANCH=$(git rev-parse --abbrev-ref HEAD) 8 if [ "$BRANCH" = "main" ]; then 9 echo "[-] FAILED: Direct commits to 'main' branch are strictly prohibited." 10 echo " Create a feature branch (e.g. feat/..., fix/..., perf/...) first." 11 exit 1 12 fi 13 echo "[+] PASSED: Branch isolation confirmed ($BRANCH)." 14 15 # 2. Zero Disk Secrets Check 16 if find . -maxdepth 3 -name ".env*" -not -path "./.git/*" | grep -q .; then 17 echo "[-] FAILED: Found plaintext .env file on disk. Hardware TPM vault required." 18 exit 1 19 fi 20 echo "[+] PASSED: Zero disk secrets confirmed (Hardware TPM vault active)." 21 22 # 3. Unslop Standard (Zero em dashes or en dashes) 23 DASH_VIOLATIONS=$(git diff HEAD | grep -E '^\+[^+]' | grep -v 'assert!' | grep -v 'replace' | grep -v 'contains' | grep -P '[\x{2014}\x{2013}]' || true) 24 if [ -n "$DASH_VIOLATIONS" ]; then 25 echo "[-] FAILED: Found prohibited em dash or en dash in git diff:" 26 echo "$DASH_VIOLATIONS" 27 exit 1 28 fi 29 echo "[+] PASSED: Unslop standard verified (zero em dashes and zero en dashes)." 30 31 # 4. Cargo Workspace Tests 32 echo "[*] Running cargo test --workspace --verbose..." 33 cargo test --workspace --verbose 34 35 echo "=== ALL OPEN HUMANITY PREFLIGHT CHECKS PASSED ==="