返回 DeepSeek-Reasonix
verify.sh
1 #!/usr/bin/env bash
2 set -e
3 test -f AUDIT.md || { echo "AUDIT.md was never written" >&2; exit 1; }
4 doc="$(tr '[:upper:]' '[:lower:]' < AUDIT.md)"
5 for want in timeout_sec production 30 5; do
6 case "$doc" in
7 *"$want"*) ;;
8 *) echo "AUDIT.md never mentions $want" >&2; exit 1 ;;
9 esac
10 done
11 # Naming a setting that did not drift means the three files were not compared.
12 for absent in max_body_mb ttl_sec; do
13 case "$doc" in
14 *"$absent"*) echo "AUDIT.md reports $absent, which is identical everywhere" >&2; exit 1 ;;
15 esac
16 done
17 grep -q "timeout_sec = 5" config/production.toml || {
18 echo "config/production.toml was modified; the task is to report the drift" >&2
19 exit 1
20 }
21
21 lines BASH