Release v2.12.0: Implement single-layer compression enforcement, 256KB plan archive cap with git.libre.audio citations, cold-archived inactive plans, codebase modularity/security/economization (Strategies 1A/2B/3A/4A/5A/6A/7A), and /quant/ spoken voice narration & #lensSelect UI element indicators (Strategies 1B/2A/3A/4A)

This commit is contained in:
Hermes Agent committed 2026-12-01 10:29:05 +00:00
1 parent cc73a57bd8
commit a066a0d03d
69 files changed
+2334 -619

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ www.hyperstitionstud.io {
}
hyperstitionstud.io {
encode zstd gzip
@compressible not path *.gz *.br *.tgz *.xz *.zst *.zip *.woff2 *.png *.mp3 *.pdf
encode @compressible zstd gzip
# Zero-PII Route Counter Log (Strategy 3A — remote_ip, client_ip, Cookie, User-Agent, and Referer deleted)
log {
+1 -2
View File
@@ -21,8 +21,7 @@
/var/lib/hyperstitionstud.io/api-telemetry.db {
size 100M
rotate 12
compress
delaycompress
nocompress
missingok
notifempty
nocreate
+54 -9
View File
@@ -49,6 +49,14 @@ DO_CADDY=1
for arg in "$@"; do
case "${arg}" in
--repos-root=*)
REPOS_ROOT="${arg#*=}"
export REPOS_ROOT
;;
--live-repos=*)
LIVE_REPOS="${arg#*=}"
export LIVE_REPOS
;;
--no-pull)
DO_PULL=0
;;
@@ -168,7 +176,13 @@ for entry in "${REPOS[@]}"; do
fi
if [[ -d "${REPOS_ROOT}/${repo}" ]]; then
${LIVE_SUDO} mkdir -p "${LIVE_REPOS}/${repo}"
run_checked "rsync ${repo}" ${LIVE_SUDO} rsync -a --delete --exclude='.git' "${REPOS_ROOT}/${repo}/" "${LIVE_REPOS}/${repo}/"
run_checked "rsync ${repo}" ${LIVE_SUDO} rsync -a --delete \
--filter='P *.gz' \
--filter='P *.br' \
--exclude='.git' \
--exclude='completed-plans-archive.tar.gz' \
--exclude='inactive-plans-archive.tar.gz' \
"${REPOS_ROOT}/${repo}/" "${LIVE_REPOS}/${repo}/"
fi
done
@@ -198,15 +212,46 @@ ${LIVE_SUDO} ln -sfn "haiperdohp-jemaytreeah" "${LIVE_REPOS}/calc"
${LIVE_SUDO} ln -sfn "ingglish-hyperdope-ci" "${LIVE_REPOS}/ci"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/schemas" "${LIVE_REPOS}/schemas"
echo "[4/5] Pre-compressing static HTML, JS, JSON, XML, Canvas, MD & CSS assets (< 5 MB) (.br / .gz)..."
run_checked "gzip pre-compression" ${LIVE_SUDO} find "${LIVE_REPOS}" -type f -size -5M \
\( -name "*.html" -o -name "*.js" -o -name "*.json" -o -name "*.graphml" -o -name "*.gexf" -o -name "*.canvas" -o -name "*.css" -o -name "*.md" \) \
-exec gzip -9 -k -f {} \;
if [[ -n "$(type -P brotli || true)" ]]; then
run_checked "brotli pre-compression" ${LIVE_SUDO} find "${LIVE_REPOS}" -type f -size -5M \
\( -name "*.html" -o -name "*.js" -o -name "*.json" -o -name "*.graphml" -o -name "*.gexf" -o -name "*.canvas" -o -name "*.css" -o -name "*.md" \) \
-exec brotli -q 11 -k -f {} \;
echo "[4/5] Pre-compressing static HTML, JS, JSON, XML, Canvas, MD & CSS assets (< 5 MB) (.br / .gz) incrementally in parallel & enforcing single-layer (1x) compression..."
run_checked "cleanup multi-compressed and orphaned sidecars" ${LIVE_SUDO} bash -c '
find "$1" -type f \( -name "*.gz.gz" -o -name "*.gz.br" -o -name "*.br.gz" -o -name "*.br.br" -o -name "*.tgz.gz" -o -name "*.tgz.br" \) -delete
while IFS= read -r -d "" sc; do
base="${sc%.*}"
if [[ ! -f "${base}" ]]; then
rm -f "${sc}"
fi
done < <(find "$1" -type f \( -name "*.html.gz" -o -name "*.html.br" -o -name "*.js.gz" -o -name "*.js.br" -o -name "*.json.gz" -o -name "*.json.br" -o -name "*.graphml.gz" -o -name "*.graphml.br" -o -name "*.gexf.gz" -o -name "*.gexf.br" -o -name "*.canvas.gz" -o -name "*.canvas.br" -o -name "*.css.gz" -o -name "*.css.br" -o -name "*.md.gz" -o -name "*.md.br" \) -print0)
' _ "${LIVE_REPOS}"
JOBS="$(nproc 2>&1 || echo 4)"
if [[ ! "${JOBS}" =~ ^[0-9]+$ ]] || [[ "${JOBS}" -lt 1 ]]; then
JOBS=4
fi
run_checked "incremental parallel gzip pre-compression" ${LIVE_SUDO} bash -c '
live="$1"
jobs="$2"
while IFS= read -r -d "" f; do
if [[ ! -f "${f}.gz" || "${f}" -nt "${f}.gz" ]]; then
printf "%s\0" "${f}"
fi
done < <(find "${live}" -type f -size -5M \( -name "*.html" -o -name "*.js" -o -name "*.json" -o -name "*.graphml" -o -name "*.gexf" -o -name "*.canvas" -o -name "*.css" -o -name "*.md" \) -print0) \
| xargs -0 -r -P "${jobs}" -n 16 gzip -9 -k -f
' _ "${LIVE_REPOS}" "${JOBS}"
if [[ -n "$(type -P brotli || true)" ]]; then
run_checked "incremental parallel brotli pre-compression" ${LIVE_SUDO} bash -c '
live="$1"
jobs="$2"
while IFS= read -r -d "" f; do
if [[ ! -f "${f}.br" || "${f}" -nt "${f}.br" ]]; then
printf "%s\0" "${f}"
fi
done < <(find "${live}" -type f -size -5M \( -name "*.html" -o -name "*.js" -o -name "*.json" -o -name "*.graphml" -o -name "*.gexf" -o -name "*.canvas" -o -name "*.css" -o -name "*.md" \) -print0) \
| xargs -0 -r -P "${jobs}" -n 16 brotli -q 11 -k -f
' _ "${LIVE_REPOS}" "${JOBS}"
fi
run_checked "hs-archive-rotate --enforce-single-compression" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.archive_rotator \
--workspace-root "${REPOS_ROOT}" \
--enforce-single-compression \
--extra-scan-dir "${LIVE_REPOS}"
# Step 5: Idempotent systemd unit, logrotate.d & /etc/caddy/Caddyfile synchronization (enabled by default; skip with --no-caddy)
if [[ "${DO_CADDY}" -eq 1 ]]; then
+4 -2
View File
@@ -89,8 +89,10 @@ ROUTES=(
"/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"
"/graph/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf"
"/graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf"
"/graph/docs/plans/piecewise/PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION.pdf"
"/graph/docs/plans/piecewise/PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION.pdf"
"/graph/docs/archive/archive-manifest.json"
"/graph/docs/plans/inactive/inactive-archive-manifest.json"
"/graph/docs/plans/inactive/PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION.pdf"
"/graph/docs/plans/inactive/PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION.pdf"
"/graph/docs/plans/inactive/PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION.pdf"
"/graph/docs/plans/inactive/PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.pdf"
"/graph/docs/plans/inactive/PLAN-LLM-TOKEN-ECONOMIZER-DATA-FIDELITY-AND-DEGRADATION-RISK-EVALUATION.pdf"