File size: 584 Bytes
5b1a270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -e

PY=${PYTHON:-python3}
BASE="belel-justice-covenant"

# 1) Block destructive edits (append-only enforcement)
if [ -f "$BASE/protocol_instructions/revisionism_resistor.py" ]; then
  $PY "$BASE/protocol_instructions/revisionism_resistor.py"
fi

# 2) Verify or create checksums
if [ -f "$BASE/tools/generate_checksums.py" ]; then
  if [ -f "$BASE/signing/checksums.txt" ]; then
    $PY "$BASE/tools/generate_checksums.py" --verify
  else
    echo "[pre-commit] No checksums.txt found — creating baseline."
    $PY "$BASE/tools/generate_checksums.py"
  fi
fi