diff --git a/.gitignore b/.gitignore
index 6a87ed3..76fee6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ src/*.egg-info/
build/
dist/
*.tmp
+.cache/
diff --git a/deploy/hyperstition-closing-bell-harvest.service b/deploy/hyperstition-closing-bell-harvest.service
new file mode 100644
index 0000000..543efa4
--- /dev/null
+++ b/deploy/hyperstition-closing-bell-harvest.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Hyperstition Studio US Closing-Bell Financial & FRED Macro Harvest (21:30 UTC Mon-Fri)
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+WorkingDirectory=/srv/hyperstitionstud.io/repos
+Environment="REPOS_ROOT=/srv/hyperstitionstud.io/repos"
+Environment="LIVE_REPOS=/var/www/hyperstitionstud.io/repos"
+Environment="PYTHONPATH=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src"
+ExecStart=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/run-vps-data-production.sh --window=us-closing-bell
diff --git a/deploy/hyperstition-closing-bell-harvest.timer b/deploy/hyperstition-closing-bell-harvest.timer
new file mode 100644
index 0000000..9c5a6c2
--- /dev/null
+++ b/deploy/hyperstition-closing-bell-harvest.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Weekday 21:30 UTC (16:30 EST) Timer for Hyperstition Studio US Closing-Bell Harvest
+
+[Timer]
+OnCalendar=Mon..Fri *-*-* 21:30:00 UTC
+Persistent=true
+RandomizedDelaySec=15
+Unit=hyperstition-closing-bell-harvest.service
+
+[Install]
+WantedBy=timers.target
diff --git a/deploy/hyperstition-utc-rollover-harvest.service b/deploy/hyperstition-utc-rollover-harvest.service
new file mode 100644
index 0000000..93a67aa
--- /dev/null
+++ b/deploy/hyperstition-utc-rollover-harvest.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Hyperstition Studio Midnight 00:00 UTC Rollover Telemetry & Daily Brief Harvest
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+WorkingDirectory=/srv/hyperstitionstud.io/repos
+Environment="REPOS_ROOT=/srv/hyperstitionstud.io/repos"
+Environment="LIVE_REPOS=/var/www/hyperstitionstud.io/repos"
+Environment="PYTHONPATH=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src"
+ExecStart=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/run-vps-data-production.sh --window=utc-rollover
diff --git a/deploy/hyperstition-utc-rollover-harvest.timer b/deploy/hyperstition-utc-rollover-harvest.timer
new file mode 100644
index 0000000..4cc8e96
--- /dev/null
+++ b/deploy/hyperstition-utc-rollover-harvest.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Daily 00:00 UTC Timer for Hyperstition Studio Midnight Rollover Harvest
+
+[Timer]
+OnCalendar=*-*-* 00:00:00 UTC
+Persistent=true
+RandomizedDelaySec=15
+Unit=hyperstition-utc-rollover-harvest.service
+
+[Install]
+WantedBy=timers.target
diff --git a/deploy/run-vps-data-production.sh b/deploy/run-vps-data-production.sh
new file mode 100755
index 0000000..d5710fb
--- /dev/null
+++ b/deploy/run-vps-data-production.sh
@@ -0,0 +1,133 @@
+#!/usr/bin/env bash
+# /workspace/hyperstitionstudio-core/deploy/run-vps-data-production.sh
+# Autonomous VPS-Native Periodic Data Production Orchestrator for hyperstitionstud.io.
+# Executes Stage 1 (Harvest) -> Stage 2 (Compilers) -> Stage 3 (Transactional Test & Isolation Gate
+# with Automatic Rollback on Failure) -> Stage 4 (tmpfs RAM Hydration via sync-vps-repos.sh --no-pull)
+# -> Optional Automated Git Push to git.libre.audio.
+set -euo pipefail
+
+on_error() {
+ local exit_code=$?
+ local line_no="${1:-unknown}"
+ echo "[ERROR] run-vps-data-production.sh failed at line ${line_no} with exit code ${exit_code} while running: ${BASH_COMMAND}" >&2
+ exit "${exit_code}"
+}
+trap 'on_error ${LINENO}' ERR
+
+run_checked() {
+ local label="$1"
+ shift
+ local out=""
+ local rc=0
+ out="$("$@" 2>&1)" || rc=$?
+ if [[ "${rc}" -ne 0 ]]; then
+ echo "[ERROR] ${label} failed (exit code ${rc}): $*" >&2
+ if [[ -n "${out}" ]]; then
+ echo "${out}" >&2
+ fi
+ return "${rc}"
+ fi
+}
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
+DEFAULT_REPOS_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
+export REPOS_ROOT="${REPOS_ROOT:-${DEFAULT_REPOS_ROOT}}"
+export LIVE_REPOS="${LIVE_REPOS:-/var/www/hyperstitionstud.io/repos}"
+export PYTHONPATH="${REPOS_ROOT}/hyperstitionstudio-core/src${PYTHONPATH:+:${PYTHONPATH}}"
+if [[ -f "${REPOS_ROOT}/workspace.toml" ]]; then
+ export HYPERSTITIONSTUDIO_CONFIG="${REPOS_ROOT}/workspace.toml"
+fi
+
+WINDOW_MODE="us-closing-bell"
+OFFLINE_MODE=0
+DO_PUSH=1
+SKIP_HYDRATE=0
+
+for arg in "$@"; do
+ case "${arg}" in
+ --window=*)
+ WINDOW_MODE="${arg#*=}"
+ ;;
+ --offline|--no-network)
+ OFFLINE_MODE=1
+ ;;
+ --no-push)
+ DO_PUSH=0
+ ;;
+ --skip-hydrate)
+ SKIP_HYDRATE=1
+ ;;
+ esac
+done
+
+LOCK_FILE="${HYPERSTITION_HARVEST_LOCK:-/tmp/hyperstition-vps-harvest.lock}"
+if [[ -n "$(type -P flock || true)" ]]; then
+ exec 9>"${LOCK_FILE}"
+ if ! flock -n 9; then
+ echo "[info] Another harvest/sync is currently holding ${LOCK_FILE}; exiting cleanly."
+ exit 0
+ fi
+fi
+
+unset OPENROUTER_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY
+
+echo "[1/5] Running Stage 1 & Stage 2 periodic data production (window=${WINDOW_MODE}, offline=${OFFLINE_MODE})..."
+if [[ "${OFFLINE_MODE}" -eq 1 ]]; then
+ run_checked "hs-quant-harvest (offline)" python3 -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}"
+ run_checked "hs-macro-harvest (offline)" python3 -m hyperstitionstud_io.quant.macro --offline
+else
+ run_checked "hs-quant-harvest (--append-history --live)" python3 -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" --append-history --live
+ run_checked "hs-macro-harvest (live FRED CSV)" python3 -m hyperstitionstud_io.quant.macro
+fi
+if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" ]]; then
+ CI_OUT_DIR="${REPOS_ROOT}/ingglish-hyperdope-ci"
+ if [[ ! -d "${CI_OUT_DIR}" ]] && [[ -d "${REPOS_ROOT}/hyperdope-ci-build" ]]; then
+ CI_OUT_DIR="${REPOS_ROOT}/hyperdope-ci-build"
+ fi
+ if [[ -d "${CI_OUT_DIR}" ]]; then
+ run_checked "ci_provision_ingglish.py (--tier 2)" python3 "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" \
+ --archive-dir "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive" \
+ --out-dir "${CI_OUT_DIR}" \
+ --tier 2
+ fi
+fi
+run_checked "quant.timeseries" python3 -m hyperstitionstud_io.quant.timeseries
+run_checked "hs-daily-brief" python3 -m hyperstitionstud_io.quant.daily_brief
+run_checked "build_encyclopedia_knowledge_graph.py" python3 "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
+
+echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..."
+if ! python3 -m hyperstitionstud_io.ci.doctor || ! python3 "${REPOS_ROOT}/hyperstitionstudio-core/tests/test_core_suite.py"; then
+ echo "[ROLLBACK] Verification gate failed! Rolling back uncommitted changes in ${REPOS_ROOT} without touching tmpfs..." >&2
+ for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
+ if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then
+ git -C "${REPOS_ROOT}/${r}" checkout -- .
+ fi
+ done
+ exit 1
+fi
+
+if [[ "${SKIP_HYDRATE}" -eq 0 ]]; then
+ echo "[3/5] Hydrating tmpfs RAM webroot (${LIVE_REPOS}) via sync-vps-repos.sh --no-pull --no-caddy..."
+ run_checked "sync-vps-repos.sh --no-pull --no-caddy" "${SCRIPT_DIR}/sync-vps-repos.sh" --no-pull --no-caddy
+else
+ echo "[3/5] Skipping tmpfs hydration (--skip-hydrate)."
+fi
+
+if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then
+ echo "[4/5] Committing and pushing automated VPS telemetry updates to git.libre.audio..."
+ export GIT_SSH_COMMAND="ssh -i /etc/hyperstitionstud.io/id_ed25519_git_libre_audio -o StrictHostKeyChecking=accept-new"
+ STAMP_UTC="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
+ for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
+ if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then
+ git -C "${REPOS_ROOT}/${r}" add -A
+ if ! git -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then
+ run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})"
+ run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main
+ fi
+ fi
+ done
+else
+ echo "[4/5] Skipping automated git.libre.audio push (no-push or deploy key absent)."
+fi
+
+echo "[5/5] VPS periodic data production (${WINDOW_MODE}) completed and verified."
diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh
index 7eca4cb..a607cb4 100755
--- a/deploy/sync-vps-repos.sh
+++ b/deploy/sync-vps-repos.sh
@@ -164,6 +164,12 @@ ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/assets" "${LIVE_REPOS}/assets
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/learn" "${LIVE_REPOS}/learn"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"
+if [[ -d "${LIVE_REPOS}/hyperstitionstudio-core/site/engineering" ]]; then
+ ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/engineering" "${LIVE_REPOS}/engineering"
+fi
+if [[ -d "${LIVE_REPOS}/hyperstitionstudio-core/site/math" ]]; then
+ ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/math" "${LIVE_REPOS}/math"
+fi
# Note: /gallery is disabled for now (tracked as a long-term plan in docs/PLAN-MEMETIC-GALLERY-SUBPAGE.pdf)
${LIVE_SUDO} rm -rf "${LIVE_REPOS}/gallery" "${LIVE_REPOS}/hyperstitionstudio-core/site/gallery"
${LIVE_SUDO} ln -sfn "encyclopedia-knowledge-graph" "${LIVE_REPOS}/graph"
@@ -204,7 +210,13 @@ if [[ "${DO_CADDY}" -eq 1 ]]; then
if [[ -n "$(type -P systemctl || true)" ]] && [[ -d "/run/systemd/system" ]]; then
UNITS_CHANGED=0
- for unit_name in "hyperstition-tmpfs-sync.service" "hyperstition-mcp.service"; do
+ for unit_name in \
+ "hyperstition-tmpfs-sync.service" \
+ "hyperstition-mcp.service" \
+ "hyperstition-closing-bell-harvest.service" \
+ "hyperstition-closing-bell-harvest.timer" \
+ "hyperstition-utc-rollover-harvest.service" \
+ "hyperstition-utc-rollover-harvest.timer"; do
src_u="${DEPLOY_DIR}/${unit_name}"
dst_u="/etc/systemd/system/${unit_name}"
if [[ -f "${src_u}" ]]; then
@@ -220,6 +232,8 @@ if [[ "${DO_CADDY}" -eq 1 ]]; then
run_checked "systemctl enable hyperstition-tmpfs-sync.service" ${SUDO} systemctl enable hyperstition-tmpfs-sync.service
run_checked "systemctl enable --now hyperstition-mcp.service" ${SUDO} systemctl enable --now hyperstition-mcp.service
run_checked "systemctl restart hyperstition-mcp.service" ${SUDO} systemctl restart hyperstition-mcp.service
+ run_checked "systemctl enable --now hyperstition-closing-bell-harvest.timer" ${SUDO} systemctl enable --now hyperstition-closing-bell-harvest.timer
+ run_checked "systemctl enable --now hyperstition-utc-rollover-harvest.timer" ${SUDO} systemctl enable --now hyperstition-utc-rollover-harvest.timer
elif [[ -f "/etc/systemd/system/hyperstition-mcp.service" ]]; then
echo "[5/5] Restarting hyperstition-mcp.service to load latest MCP & REST API v1 (/api/v1/*) modules..."
run_checked "systemctl enable --now hyperstition-mcp.service" ${SUDO} systemctl enable --now hyperstition-mcp.service
diff --git a/deploy/test-first-deployment.sh b/deploy/test-first-deployment.sh
index 3fc9626..3ec6f95 100755
--- a/deploy/test-first-deployment.sh
+++ b/deploy/test-first-deployment.sh
@@ -72,8 +72,10 @@ ROUTES=(
"/graph/docs/specification-concentric-eti-tier-ring-radar-d-periphery.pdf"
"/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html"
"/graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf"
+ "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"
"/graph/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf"
- "/graph/docs/PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER.pdf"
+ "/graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf"
+ "/graph/docs/PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO.pdf"
"/graph/docs/PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION.pdf"
"/graph/docs/PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.pdf"
"/graph/docs/PLAN-LLM-TOKEN-ECONOMIZER-DATA-FIDELITY-AND-DEGRADATION-RISK-EVALUATION.pdf"
@@ -102,6 +104,19 @@ ROUTES=(
"/schemas/v1/ticker-stats-card.schema.json"
)
+# Dynamically append enabled /engineering/* and /math/* routes from their manifests so piecewise/reverted subsets work seamlessly
+for man_p in \
+ "${SCRIPT_DIR}/../site/engineering/engineering-manifest.json" \
+ "${SCRIPT_DIR}/../site/math/math-manifest.json"; do
+ if [[ -f "${man_p}" ]]; then
+ while IFS= read -r dyn_r; do
+ if [[ -n "${dyn_r}" ]]; then
+ ROUTES+=("${dyn_r}")
+ fi
+ done < <(python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); print("\n".join(d.get("enabled_routes",[])))' "${man_p}")
+ fi
+done
+
PASS_COUNT=0
for route in "${ROUTES[@]}"; do
url="${TARGET_BASE_URL}${route}"
@@ -158,4 +173,10 @@ print(f" [OK] SQLite metadata DB populated ({summary['total_requests']} calls),
PY
fi
-echo "[OK] All ${PASS_COUNT}/${#ROUTES[@]} static routes + 2 MCP HTTP endpoints + 4 REST API v1 endpoints verified (HTTP 200 OK)."
+echo "[4d/4] Running 6-Gate Ad-Hoc Public API & Surface Regression Suite (hs-public-smoke Gates P1-P6) against ${TARGET_BASE_URL}..."
+PYTHONPATH="${SCRIPT_DIR}/../src" python3 -m hyperstitionstud_io.ci.public_regression \
+ --base-url "${TARGET_BASE_URL}" \
+ --mcp-url "${MCP_URL}" \
+ --api-v1-url "${API_V1_URL}"
+
+echo "[OK] All ${PASS_COUNT}/${#ROUTES[@]} static routes + 2 MCP HTTP endpoints + 4 REST API v1 endpoints + 6 Public Regression Gates verified (HTTP 200 OK)."
diff --git a/package.json b/package.json
index 134312a..0c06685 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@hyperstitionstud.io/workspace-core",
- "version": "2.0.29",
+ "version": "2.0.30",
"private": true,
"description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.",
"license": "MIT",
diff --git a/packages-js/ciphers-aq/package.json b/packages-js/ciphers-aq/package.json
index aaa234c..93cecac 100644
--- a/packages-js/ciphers-aq/package.json
+++ b/packages-js/ciphers-aq/package.json
@@ -1,6 +1,6 @@
{
"name": "@hyperstitionstud.io/ciphers-aq",
- "version": "2.0.29",
+ "version": "2.0.30",
"type": "module",
"main": "index.js",
"license": "MIT"
diff --git a/pyproject.toml b/pyproject.toml
index ff5de14..0f2f45e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "hyperstitionstudio-core"
-version = "2.0.29"
+version = "2.0.30"
description = "Shared PEP 420 common library (hyperstitionstud_io.*) for Base-36 AQ ciphers, offline CMUdict Ingglish phonetics, ReportLab/Pillow publishing, SHA-256 glossary isolation guards, local-config citation verification, and multi-format knowledge graphs."
readme = "README.md"
requires-python = ">=3.10"
@@ -31,6 +31,10 @@ hs-db-build = "hyperstitionstud_io.db.sqlite_meta:main"
hs-macro-harvest = "hyperstitionstud_io.quant.macro:main"
hs-daily-brief = "hyperstitionstud_io.quant.daily_brief:main"
hs-ticker-card = "hyperstitionstud_io.quant.cards:main"
+hs-archive-rotate = "hyperstitionstud_io.publishing.archive_rotator:main"
+hs-public-smoke = "hyperstitionstud_io.ci.public_regression:main"
+hs-eng-docs = "hyperstitionstud_io.publishing.engineering_docs:main"
+hs-math-docs = "hyperstitionstud_io.publishing.math_docs:main"
[tool.setuptools.packages.find]
where = ["src"]
diff --git a/scripts/build_gallery_manifest.py b/scripts/build_gallery_manifest.py
index f4139a1..60e9b2d 100755
--- a/scripts/build_gallery_manifest.py
+++ b/scripts/build_gallery_manifest.py
@@ -144,8 +144,8 @@ def main() -> int:
})
manifest = {
- "version": "2.0.29",
- "namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.29",
+ "version": "2.0.30",
+ "namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.30",
"total_items": len(items),
"items": items,
}
diff --git a/site/donate/index.html b/site/donate/index.html
index 63f4a6c..f940086 100644
--- a/site/donate/index.html
+++ b/site/donate/index.html
@@ -4,7 +4,7 @@
Signal Patronage & Open-Instrument Notes — hyperstitionstud.io/donate
-
+
+
+
+
+
+
+
Prerequisite Track for Novices • Required Expertise: Level 4: Linux Systems Administration, Bash Traps, systemd & DevOps (20-30 hrs study)
If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:
Core Concepts Required: POSIX Bash error handling (set -euo pipefail, trap ERR, run_checked(), exec, flock) Git fast-forward merges, annotated tags, and git pull --rebase --autostash Linux tmpfs RAM mounts, systemd services/timers, Caddy HTTP/3 QUIC, and TrueType cmap tables Curated Free Public Study Resources:
+
1. Zero-/dev/null CI/CD Scripts, Self-Re-Exec & Autonomous VPS Harvest Timers push-all-to-git-libre-audio.sh, deploy/sync-vps-repos.sh, and deploy/run-vps-data-production.sh contain 0 /dev/null redirections and capture exact exit codes via run_checked(). When sync-vps-repos.sh updates hyperstitionstudio-core on disk, HYPERSTITION_SYNC_REEXEC=1 immediately execs the new script image before hydrating /var/www/hyperstitionstud.io/repos (tmpfs RAM + Brotli-11/Gzip-9).
2. Dark-Mode hs-pdf-build, Cold-Archive Rotator (hs-archive-rotate) & 6-Gate Public Regression (hs-public-smoke) pdf_compiler.py transpiles LaTeX math, preserves , filters every character against DejaVu TrueType cmap tables, sets rl_config.defaultGraphicsFontName='DejaVu' (0 /Helvetica leaks), and prioritizes web-linked PDFs (--refresh-all-web-pdfs). archive_rotator.py rotates completed docs/archive/ pairs into completed-plans-archive.tar.gz, while public_regression.py audits live HTTP responses against .cache/internal-test-baseline-latest.json across Gates P1-P6.
+
+
+
+
+ hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.0.30 • Made with ♥ by Lemurs.
+
+
+
+
+
+