diff --git a/README.md b/README.md index 10ceed0..bb50f7d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)** > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s) -> - **Touched Files / Surfaces:** `tests/test_core_suite.py` +> - **Touched Files / Surfaces:** `deploy/run-vps-data-production.sh` > - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data diff --git a/deploy/run-vps-data-production.sh b/deploy/run-vps-data-production.sh index f7399f4..a6e1961 100755 --- a/deploy/run-vps-data-production.sh +++ b/deploy/run-vps-data-production.sh @@ -47,6 +47,7 @@ WINDOW_MODE="us-closing-bell" OFFLINE_MODE=0 DO_PUSH=1 SKIP_HYDRATE=0 +PUSH_ONLY=0 for arg in "$@"; do case "${arg}" in @@ -62,6 +63,9 @@ for arg in "$@"; do --skip-hydrate) SKIP_HYDRATE=1 ;; + --push-only) + PUSH_ONLY=1 + ;; esac done @@ -76,46 +80,50 @@ 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)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" - run_checked "hs-macro-harvest (offline)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro --offline -else - run_checked "hs-quant-harvest (--append-history --live)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" --append-history --live - run_checked "hs-macro-harvest (live FRED CSV)" "${PYTHON_BIN}" -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" +if [[ "${PUSH_ONLY}" -eq 0 ]]; then + 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)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" + run_checked "hs-macro-harvest (offline)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro --offline + else + run_checked "hs-quant-harvest (--append-history --live)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" --append-history --live + run_checked "hs-macro-harvest (live FRED CSV)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro fi - if [[ -d "${CI_OUT_DIR}" ]]; then - run_checked "ci_provision_ingglish.py (--tier 2)" "${PYTHON_BIN}" "${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" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.timeseries -run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief -run_checked "build_encyclopedia_knowledge_graph.py" "${PYTHON_BIN}" "${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 ! "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor || ! "${PYTHON_BIN}" "${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 -- . + 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 - done - exit 1 -fi + if [[ -d "${CI_OUT_DIR}" ]]; then + run_checked "ci_provision_ingglish.py (--tier 2)" "${PYTHON_BIN}" "${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" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.timeseries + run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief + run_checked "build_encyclopedia_knowledge_graph.py" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only -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 + echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..." + if ! "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor || ! "${PYTHON_BIN}" "${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 else - echo "[3/5] Skipping tmpfs hydration (--skip-hydrate)." + echo "[info] --push-only requested: skipping harvesting, compilers, verification gates, and RAM hydration." fi if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then