feat(tcs): establish five-domain mother brain runtime

This commit is contained in:
冰朔 2026-08-12 14:46:34 +08:00
commit 55a4d77248
29 changed files with 904 additions and 12 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
set -eu
validator="$(dirname "$0")/validate-public-snapshot-at-commit.js"
while read -r old_value new_value ref_name; do
[ "$ref_name" = "refs/heads/main" ] || continue
[ "$new_value" = "0000000000000000000000000000000000000000" ] && {
echo "REPO-012 main deletion is forbidden" >&2
exit 1
}
node "$validator" --git-dir "$(git rev-parse --git-dir)" --commit "$new_value"
done