diff --git a/deploy/Caddyfile b/deploy/Caddyfile index ee6ca5a..40debb5 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -20,7 +20,7 @@ hyperstitionstud.io { -Server } - @immutable_media path *.pdf *.png *.mp3 *.graphml *.gexf *.canvas + @immutable_media path *.pdf *.png *.mp3 *.graphml *.gexf *.canvas *.woff2 header @immutable_media Cache-Control "public, max-age=86400, stale-while-revalidate=604800" @html_js path *.html *.js *.json @@ -63,7 +63,16 @@ hyperstitionstud.io { } } - # 4. Repo Install Dir: ingglish-hyperdope-ci -> /ci/* + # 4. Repo Install Dir: haiperdohp-jemaytreeah -> /calc/* (Confluence of hyperdope-ci-build & hyperdope-gematria) + handle_path /calc/* { + root * /var/www/hyperstitionstud.io/repos/haiperdohp-jemaytreeah + file_server { + precompressed br gzip + } + } + redir /calc /calc/ permanent + + # 5. Repo Install Dir: ingglish-hyperdope-ci -> /ci/* (4-Gate CI Audit & Onboarding PDF) handle_path /ci/* { root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-ci file_server { @@ -72,7 +81,7 @@ hyperstitionstud.io { } redir /ci /ci/ permanent - # 5. Repo Install Dir: hyperstitionstudio-core -> /schemas/* and Root Portal Homepage (/) + # 6. Repo Install Dir: hyperstitionstudio-core -> /schemas/* and Root Portal Homepage (/) handle_path /schemas/* { root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/schemas file_server { diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index 17a9ec4..7abab31 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash # /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh # Hydrates per-repository install directories from REPOS_ROOT into LIVE_REPOS (tmpfs RAM mount), -# builds calc/db.json if absent, creates top-level route symlinks, and pre-compresses (.br / .gz). +# builds haiperdohp-jemaytreeah/db_lite.json if absent, creates top-level route symlinks, and +# pre-compresses (.br / .gz) static assets. # # Usage: -# ./sync-vps-repos.sh all # Pull from git.libre.audio, audit & sync all 5 repos +# ./sync-vps-repos.sh all # Pull from git.libre.audio, audit & sync all repos # ./sync-vps-repos.sh encyclopedia-knowledge-graph # Pull, audit & sync a single repo # ./sync-vps-repos.sh --no-pull # Audit & sync existing local clones without network fetch set -euo pipefail @@ -16,7 +17,6 @@ export REPOS_ROOT="${REPOS_ROOT:-${DEFAULT_REPOS_ROOT}}" export LIVE_REPOS="${LIVE_REPOS:-/var/www/hyperstitionstud.io/repos}" TARGET_REPO="${1:-all}" -# Use sudo only when writing to a root-owned target directory as a non-root user SUDO="" if [[ "${EUID:-$(id -u)}" -ne 0 ]] && [[ ! -w "$(dirname "${LIVE_REPOS}")" ]] && command -v sudo >/dev/null 2>&1; then SUDO="sudo" @@ -31,7 +31,7 @@ if [[ -f "${REPOS_ROOT}/workspace.toml" ]]; then export HYPERSTITIONSTUDIO_CONFIG="${REPOS_ROOT}/workspace.toml" fi -# Detect whether the 5th repository is cloned as ingglish-hyperdope-ci or hyperdope-ci-build +# Detect whether the CI artifact repository is cloned as ingglish-hyperdope-ci or hyperdope-ci-build CI_REPO_DIR="ingglish-hyperdope-ci" if [[ ! -d "${REPOS_ROOT}/${CI_REPO_DIR}" ]] && [[ -d "${REPOS_ROOT}/hyperdope-ci-build" ]]; then CI_REPO_DIR="hyperdope-ci-build" @@ -42,6 +42,7 @@ REPOS=( "ingglish-hyperdope-gematria:main" "technocapital-singularity-zoology:main" "encyclopedia-knowledge-graph:main" + "haiperdohp-jemaytreeah:main" "${CI_REPO_DIR}:feat/ingglish-aq-corpus" ) @@ -53,13 +54,23 @@ if [[ "${TARGET_REPO}" != "--no-pull" ]]; then continue fi if [[ -d "${REPOS_ROOT}/${repo}/.git" ]]; then - echo "[1/4] Updating ${REPOS_ROOT}/${repo} (${branch})..." - git -C "${REPOS_ROOT}/${repo}" fetch origin "${branch}" --tags - git -C "${REPOS_ROOT}/${repo}" merge --ff-only "origin/${branch}" + remote_name="origin" + if [[ "${repo}" == "haiperdohp-jemaytreeah" ]] && git -C "${REPOS_ROOT}/${repo}" remote get-url downstream >/dev/null 2>&1; then + remote_name="downstream" + fi + echo "[1/4] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch})..." + git -C "${REPOS_ROOT}/${repo}" fetch "${remote_name}" "${branch}" --tags + git -C "${REPOS_ROOT}/${repo}" merge --ff-only "${remote_name}/${branch}" fi done fi +# Ensure db_lite.json and db.json exist inside haiperdohp-jemaytreeah (generated from db.txt if absent on fresh clone) +if [[ -d "${REPOS_ROOT}/haiperdohp-jemaytreeah" ]] && [[ ! -f "${REPOS_ROOT}/haiperdohp-jemaytreeah/db_lite.json" ]] && [[ -f "${REPOS_ROOT}/haiperdohp-jemaytreeah/tools/generate_db_json.py" ]]; then + echo "[build] Generating haiperdohp-jemaytreeah/db_lite.json and db.json from db.txt..." + (cd "${REPOS_ROOT}/haiperdohp-jemaytreeah" && "${PYTHON_BIN}" tools/generate_db_json.py >/dev/null) +fi + echo "[2/4] Running hs-doctor and 6-Gate Knowledge Graph Verification..." "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor >/dev/null "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only >/dev/null @@ -77,7 +88,6 @@ for entry in "${REPOS[@]}"; do fi done -# Ensure canonical ingglish-hyperdope-ci directory name exists in LIVE_REPOS if sourced from hyperdope-ci-build if [[ "${CI_REPO_DIR}" == "hyperdope-ci-build" ]] && [[ -d "${LIVE_REPOS}/hyperdope-ci-build" ]] && [[ ! -e "${LIVE_REPOS}/ingglish-hyperdope-ci" ]]; then ${SUDO} ln -sfn "hyperdope-ci-build" "${LIVE_REPOS}/ingglish-hyperdope-ci" fi @@ -88,15 +98,16 @@ ${SUDO} ln -sfn "encyclopedia-knowledge-graph" "${LIVE_REPOS}/graph" ${SUDO} ln -sfn "technocapital-singularity-zoology/encyclopedia" "${LIVE_REPOS}/encyclopedia" ${SUDO} ln -sfn "technocapital-singularity-zoology" "${LIVE_REPOS}/zoology" ${SUDO} ln -sfn "ingglish-hyperdope-gematria/ingglish-aq-archive" "${LIVE_REPOS}/archive" +${SUDO} ln -sfn "haiperdohp-jemaytreeah" "${LIVE_REPOS}/calc" ${SUDO} ln -sfn "ingglish-hyperdope-ci" "${LIVE_REPOS}/ci" ${SUDO} ln -sfn "hyperstitionstudio-core/schemas" "${LIVE_REPOS}/schemas" -echo "[4/4] Pre-compressing HTML, JS, JSON, XML, Canvas, MD & CSS assets (.br / .gz)..." -${SUDO} find "${LIVE_REPOS}" -type f \ +echo "[4/4] Pre-compressing static HTML, JS, JSON, XML, Canvas, MD & CSS assets (< 5 MB) (.br / .gz)..." +${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 command -v brotli >/dev/null 2>&1; then - ${SUDO} find "${LIVE_REPOS}" -type f \ + ${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 {} \; fi diff --git a/deploy/test-first-deployment.sh b/deploy/test-first-deployment.sh index 57398c5..a3531cd 100755 --- a/deploy/test-first-deployment.sh +++ b/deploy/test-first-deployment.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash # /workspace/hyperstitionstudio-core/deploy/test-first-deployment.sh -# End-to-end verification of the per-repository deployment layout. +# End-to-end verification of the per-repository deployment layout (including haiperdohp-jemaytreeah). # # Mode 1 (Default — Local / Staging Self-Contained HTTP Smoke Test): # Hydrates LIVE_REPOS (default: /tmp/hyperstition-live-repos), starts a local HTTP server -# on 127.0.0.1:18090, and verifies HTTP 200 OK across all 19 portal & deep-link routes. +# on 127.0.0.1:18090, and verifies HTTP 200 OK across all 26 portal, graph, encyclopedia, +# haiperdohp-jemaytreeah calculator, CI & schema routes. # # Mode 2 (Remote VPS Verification): # ./test-first-deployment.sh https://hyperstitionstud.io @@ -35,7 +36,7 @@ if [[ -z "${TARGET_BASE_URL}" ]]; then TARGET_BASE_URL="http://127.0.0.1:${PORT}" fi -echo "[3/3] Verifying all 19 portal homepage, graph, encyclopedia, sibling-PDF, calculator & schema routes against ${TARGET_BASE_URL}..." +echo "[3/3] Verifying all 26 portal homepage, graph, encyclopedia, sibling-PDF, haiperdohp-jemaytreeah calculator, CI & schema routes against ${TARGET_BASE_URL}..." ROUTES=( "/" "/graph/index.html" @@ -56,6 +57,10 @@ ROUTES=( "/zoology/proposal-corporate-board-technocapital-allocation.pdf" "/zoology/m7-emergent-subclass-bidirectional-aq-nucleation.pdf" "/archive/00-index-and-methodology.md" + "/calc/index.html" + "/calc/calc/ciphers.js" + "/calc/calc/database.js" + "/calc/db_lite.json" "/ci/ONBOARDING-INGGLISH-AQ.pdf" "/ci/ci-audit-report.json" "/schemas/v1/encyclopedia-graph.schema.json" diff --git a/site/index.html b/site/index.html index 63826e7..615456f 100644 --- a/site/index.html +++ b/site/index.html @@ -214,22 +214,22 @@ - +
05 // Bidirectional Base-36 AQ & CMUdict Corpus -

Ingglish Hyperdope-Gematria Archive & 4-Gate CI

-

70 verified cross-scale (333 / 666 / 777) dossiers with 0.0% generic padding, 4,897 offline CMUdict phonemic mappings, and the 4-Gate CI provisioning corpus (100.0% keep rate).

+

Haiperdohp-Jemaytreeah Calculator, Archive & CI

+

Browser-based multi-cipher AQ calculator workbench (haiperdohp-jemaytreeah), 70 verified cross-scale (333 / 666 / 777) dossiers, 4,897 offline CMUdict mappings, and 4-Gate CI audit artifacts.

Dossiers 01–70 100.0% 4-Gate CI Keep Rate
- Onboarding & CI Guide (PDF) + Open AQ Calculator + Onboarding & CI Guide (PDF) 4-Gate CI Audit JSON Archive Index (00–70) - URN JSON Schemas (v1)
@@ -274,6 +274,7 @@ "prop-fund": "../../technocapital-singularity-zoology/proposal-fund-manager-novel-investment-discovery.pdf", "prop-board": "../../technocapital-singularity-zoology/proposal-corporate-board-technocapital-allocation.pdf", "m7-pdf": "../../technocapital-singularity-zoology/m7-emergent-subclass-bidirectional-aq-nucleation.pdf", + "calc-app": "../../haiperdohp-jemaytreeah/index.html", "ci-onboarding": "../../hyperdope-ci-build/ONBOARDING-INGGLISH-AQ.pdf", "ci-audit": "../../hyperdope-ci-build/ci-audit-report.json", "arch-index": "../../ingglish-hyperdope-gematria/ingglish-aq-archive/00-index-and-methodology.md", diff --git a/src/hyperstitionstud_io/config/__init__.py b/src/hyperstitionstud_io/config/__init__.py index f9c526e..f3e11f4 100644 --- a/src/hyperstitionstud_io/config/__init__.py +++ b/src/hyperstitionstud_io/config/__init__.py @@ -97,7 +97,7 @@ def load_workspace_config( "zoology_dir": ws_root / "technocapital-singularity-zoology", "knowledge_graph_dir": ws_root / "encyclopedia-knowledge-graph", "ci_build_dir": ws_root / "hyperdope-ci-build", - "gematria_js_dir": ws_root / "hyperdope-gematria", + "gematria_js_dir": ws_root / "haiperdohp-jemaytreeah", "memes_dir": ws_root / "memes", } default_ro = [ diff --git a/workspace.example.toml b/workspace.example.toml index 97f57b6..7429064 100644 --- a/workspace.example.toml +++ b/workspace.example.toml @@ -8,8 +8,8 @@ core_dir = "./hyperstitionstudio-core" archive_dir = "./ingglish-hyperdope-gematria" zoology_dir = "./technocapital-singularity-zoology" knowledge_graph_dir = "./encyclopedia-knowledge-graph" -ci_build_dir = "./hyperstition-ci-build" -gematria_js_dir = "./hyperdope-gematria" +ci_build_dir = "./hyperdope-ci-build" +gematria_js_dir = "./haiperdohp-jemaytreeah" memes_dir = "./memes" [isolation]