Compare commits

...
6 Commits
Author SHA1 Message Date
Hermes Agent 6c8a5bdaae Release v2.17.0: Implement cross-page & intra-page style, font-family, background token & navigation parity with regression gates S1-S4 (Plan #65) and adaptive mobile device detection & Group 3 mobile UI across all surfaces (Plan #66 Strategies 1A/2A/3A/4A) 2026-12-01 19:22:47 +00:00
Hermes Agent ad8e84da57 Release v2.16.0: Add 3-paragraph marketing/PR pitch for haiperdohpjematreeah (/calc/) vs cypher.news (.md & .pdf) 2026-12-01 13:22:43 +00:00
Hermes Agent 031b799cb1 Release v2.16.0: Implement bounded-box text layout & geometry audit across all 11 homepage UI quadrant closeups (Plan #61), unified homepage-matched navigation bar across all subpages with 0 homepage nav changes (Plan #63), and Fedora 41 RPM 4.20 %{_sourcedir} + %changelog fix 2026-12-01 13:16:09 +00:00
Hermes Agent cb11f5ce0b Release v2.15.0: Implement /calc/ (haiperdohpjematreeah) Group 3 homepage UI parity & hyperdope-ci-build upstream patch integration (Plan #60) and parallel CMU Flite kal16/slt + broadcast DSP voice mastering for /quant/ guided tour (Plan #59 Strategies 1A/2A/3A) 2026-12-01 12:19:51 +00:00
Hermes Agent bfcf295886 Release v2.14.0: Resolve tracked deploy/push-all-to-git-libre-audio.sh fallback in deploy_scripts_sync.py when parent push script is absent on VPS 2026-12-01 11:55:11 +00:00
Hermes Agent f78cf47e00 Release v2.14.0: Implement pre-commit preparation & 8-gate drift-blocking verifier (hs-deploy-scripts-sync Gates D1-D8) for push-all-to-git-libre-audio.sh and deploy/sync-vps-repos.sh (Plan #58) 2026-12-01 11:41:02 +00:00
61 changed files with 2506 additions and 670 deletions

No files matched your search

+6 -6
View File
@@ -1,11 +1,11 @@
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.13.0`) # `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.17.0`)
<!-- HS-COMMIT-STATUS:START --> <!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.13.0` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.17.0` • 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 &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.13.0 release state across 2 tracked module/artifact surface(s) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.0 release state across 44 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/Caddyfile`, `deploy/sync-vps-repos.sh` > - **Touched Files / Surfaces:** `deploy/Caddyfile`, `deploy/push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh`, `deploy/test-first-deployment.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py` (+36 more)
> - **Live Verified Ecosystem Metrics (`v2.13.0`):** `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 > - **Live Verified Ecosystem Metrics (`v2.17.0`):** `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
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
Shared Python common library (`hyperstitionstud_io.*`), stateless read-only Model Context Protocol (`/mcp`) & OpenAPI 3.1 REST (`/api/v1/*`) server, SQLite FTS5 metadata catalog (`hs-db-build`), offline `URN:` JSON Schema registry (`urn:io:hyperstitionstud:schema:v1:*`), and Group 3 Stealth Basalt web workbenches (`/`, `/learn/`, `/quant/`, `/engineering/`, `/math/`, `/donate/`) with the 4-Ring Hardened Polyglot REPL (`Guile Scheme`, `TypeScript`, `Rust`) and Subtle Cybernetic Code Rain (`hs-matrix-coderain.js`). Shared Python common library (`hyperstitionstud_io.*`), stateless read-only Model Context Protocol (`/mcp`) & OpenAPI 3.1 REST (`/api/v1/*`) server, SQLite FTS5 metadata catalog (`hs-db-build`), offline `URN:` JSON Schema registry (`urn:io:hyperstitionstud:schema:v1:*`), and Group 3 Stealth Basalt web workbenches (`/`, `/learn/`, `/quant/`, `/engineering/`, `/math/`, `/donate/`) with the 4-Ring Hardened Polyglot REPL (`Guile Scheme`, `TypeScript`, `Rust`) and Subtle Cybernetic Code Rain (`hs-matrix-coderain.js`).
@@ -50,7 +50,7 @@ python3 hyperstitionstudio-core/tests/test_core_suite.py
--- ---
## Key Architecture & Capabilities (`v2.13.0`) ## Key Architecture & Capabilities (`v2.17.0`)
1. **17 CLI Entrypoints (`pyproject.toml [project.scripts]`):** 1. **17 CLI Entrypoints (`pyproject.toml [project.scripts]`):**
- `hs-doctor`, `hs-citations`, `hs-pdf-build`, `hs-kg-build`, `hs-quant-harvest`, `hs-macro-harvest`, `hs-daily-brief`, `hs-ticker-card`, `hs-mcp`, `hs-db-build`, `hs-sync-version`, `hs-readme-sync`, `hs-archive-rotate`, `hs-public-smoke`, `hs-eng-docs`, `hs-math-docs`, and `hs-highlights`. - `hs-doctor`, `hs-citations`, `hs-pdf-build`, `hs-kg-build`, `hs-quant-harvest`, `hs-macro-harvest`, `hs-daily-brief`, `hs-ticker-card`, `hs-mcp`, `hs-db-build`, `hs-sync-version`, `hs-readme-sync`, `hs-archive-rotate`, `hs-public-smoke`, `hs-eng-docs`, `hs-math-docs`, and `hs-highlights`.
+9
View File
@@ -45,6 +45,15 @@ hyperstitionstud.io {
@html_js path *.html *.js *.json @html_js path *.html *.js *.json
header @html_js Cache-Control "public, max-age=0, must-revalidate" header @html_js Cache-Control "public, max-age=0, must-revalidate"
# Strategy 1A (Plan #66): Mobile User-Agent & Client-Hint Detection
@mobile_ua {
header_regexp User-Agent "(?i)(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|windows phone|mobile)"
}
header @mobile_ua {
X-HS-Device-UI "mobile"
Set-Cookie "hs_device_hint=mobile; Path=/; SameSite=Lax"
}
# 1. Repo Install Dir: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/* # 1. Repo Install Dir: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/*
handle_path /graph/* { handle_path /graph/* {
root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph
+142
View File
@@ -0,0 +1,142 @@
#!/usr/bin/env bash
# /workspace/push-all-to-git-libre-audio.sh
# Release v2.17.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio.
set -euo pipefail
on_error() {
local exit_code=$?
local line_no="${1:-unknown}"
echo "[ERROR] push-all-to-git-libre-audio.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
}
ensure_remote_url() {
local repo_dir="$1"
local remote_name="$2"
local target_url="$3"
if git -C "${repo_dir}" remote | grep -qx "${remote_name}"; then
run_checked "git remote set-url ${remote_name} (${repo_dir})" git -C "${repo_dir}" remote set-url "${remote_name}" "${target_url}"
else
run_checked "git remote add ${remote_name} (${repo_dir})" git -C "${repo_dir}" remote add "${remote_name}" "${target_url}"
fi
}
SCRIPT_PATH="${BASH_SOURCE[0]:-$0}"
DEFAULT_WS_DIR="$(cd "$(dirname "${SCRIPT_PATH}")" && pwd)"
if [[ ! -d "${DEFAULT_WS_DIR}/hyperstitionstudio-core/src" ]] && [[ -d "/workspace/hyperstitionstudio-core/src" ]]; then
DEFAULT_WS_DIR="/workspace"
fi
export WORKSPACE_DIR="${WORKSPACE_DIR:-${DEFAULT_WS_DIR}}"
export PYTHONPATH="${WORKSPACE_DIR}/hyperstitionstudio-core/src${PYTHONPATH:+:${PYTHONPATH}}"
export HYPERSTITIONSTUDIO_CONFIG="${HYPERSTITIONSTUDIO_CONFIG:-${WORKSPACE_DIR}/workspace.toml}"
FORGE_SSH="${FORGE_SSH:-ssh://git@git.libre.audio:2222/seasharp}"
echo "[info] WORKSPACE_DIR=${WORKSPACE_DIR}"
echo "[info] PYTHONPATH=${PYTHONPATH}"
echo "[1/3] Running pre-push verification gates (hs-archive-rotate, hs-closeups-sync, hs-readme-sync, version_sync, hs-doctor, logrotate.d/hyperstition-sqlite-meta check, periodic harvest CI/CD flow diagram PNG test, closeups check, test_core_suite, 6-gate graph verifier)..."
run_checked "hs-archive-rotate --enforce-single-compression" python3 -m hyperstitionstud_io.publishing.archive_rotator --workspace-root "${WORKSPACE_DIR}" --enforce-single-compression
run_checked "verify docs/archive/archive-manifest.json" test -s "${WORKSPACE_DIR}/encyclopedia-knowledge-graph/docs/archive/archive-manifest.json"
run_checked "verify docs/plans/inactive/inactive-archive-manifest.json" test -s "${WORKSPACE_DIR}/encyclopedia-knowledge-graph/docs/plans/inactive/inactive-archive-manifest.json"
run_checked "hs-closeups-sync" python3 -m hyperstitionstud_io.publishing.closeups_sync
run_checked "hs-readme-sync --install-hooks" python3 -m hyperstitionstud_io.publishing.readme_sync --install-hooks
run_checked "version_sync --check" python3 -m hyperstitionstud_io.version_sync --check
run_checked "version_sync --corpus-delta" python3 -m hyperstitionstud_io.version_sync --corpus-delta
run_checked "hs-doctor" python3 -m hyperstitionstud_io.ci.doctor
run_checked "verify deploy/logrotate.d/hyperstition-sqlite-meta" test -f "${WORKSPACE_DIR}/hyperstitionstudio-core/deploy/logrotate.d/hyperstition-sqlite-meta"
run_checked "verify site/assets/hs-matrix-coderain.js" test -s "${WORKSPACE_DIR}/hyperstitionstudio-core/site/assets/hs-matrix-coderain.js"
run_checked "verify site/assets/matrix-font.woff2" test -s "${WORKSPACE_DIR}/hyperstitionstudio-core/site/assets/matrix-font.woff2"
for q_png in \
"quadrant-1-cybermemetics-calc-graph.png" \
"quadrant-1-tab-2-graph.png" \
"quadrant-2-esoteric-finance-quant.png" \
"quadrant-2-tab-2-bayesian-fred.png" \
"quadrant-2-tab-3-leaderboard-card.png" \
"quadrant-3-info-science-novice-learn-polyglot.png" \
"quadrant-3-tab-2-math-guile.png" \
"quadrant-3-tab-3-math-ts-rust.png" \
"quadrant-4-operators-deployment-vps.png" \
"quadrant-4-tab-2-mcp-etag.png" \
"quadrant-4-tab-3-ci-gates.png"; do
run_checked "verify site/assets/closeups/${q_png}" test -s "${WORKSPACE_DIR}/hyperstitionstudio-core/site/assets/closeups/${q_png}"
done
run_checked "generate & verify periodic-harvest-cicd-to-vps-flow-diagram.png" python3 -m hyperstitionstud_io.publishing.flow_diagram
run_checked "verify periodic-harvest-cicd-to-vps-flow-diagram.png exists" test -s "${WORKSPACE_DIR}/encyclopedia-knowledge-graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"
run_checked "verify Fedora 41 packaging scripts & spec" "${WORKSPACE_DIR}/ingglish-hyperdope-gematria/packaging/build-fedora41-rpm.sh"
run_checked "verify Fedora 41 exegesis push worker dry-run" "${WORKSPACE_DIR}/ingglish-hyperdope-gematria/packaging/bundle/scripts/run_exegesis_and_push_fedora41.sh" --dry-run
python3 "${WORKSPACE_DIR}/hyperstitionstudio-core/tests/test_core_suite.py"
run_checked "build_encyclopedia_knowledge_graph.py --verify-only" python3 "${WORKSPACE_DIR}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
echo "[2/3] Verifying git.libre.audio remote URLs across all repositories..."
for pair in \
"hyperstitionstudio-core:hyperstitionstudio-core.git" \
"ingglish-hyperdope-gematria:ingglish-hyperdope-gematria.git" \
"technocapital-singularity-zoology:technocapital-singularity-zoology.git" \
"encyclopedia-knowledge-graph:encyclopedia-knowledge-graph.git" \
"hyperdope-ci-build:ingglish-hyperdope-ci.git"; do
rdir="${WORKSPACE_DIR}/${pair%%:*}"
rslug="${pair##*:}"
ensure_remote_url "${rdir}" origin "${FORGE_SSH}/${rslug}"
done
push_head_tag() {
local repo_dir="$1"
local remote_name="$2"
local head_tag=""
head_tag="$(git -C "${repo_dir}" tag --points-at HEAD | sort -V | tail -n 1)"
if [[ -n "${head_tag}" ]]; then
run_checked "git push tag ${head_tag} (${repo_dir})" git -C "${repo_dir}" push --force "${remote_name}" "refs/tags/${head_tag}"
fi
}
echo "[3/3] Rebasing any automated VPS telemetry commits & pushing all 6 repositories and HEAD release tags in topological dependency order to ${FORGE_SSH}..."
echo " -> (1/6) hyperstitionstudio-core (main + HEAD tag)"
git -C "${WORKSPACE_DIR}/hyperstitionstudio-core" pull --rebase --autostash origin main || true
git -C "${WORKSPACE_DIR}/hyperstitionstudio-core" push -u origin main
push_head_tag "${WORKSPACE_DIR}/hyperstitionstudio-core" origin
echo " -> (2/6) ingglish-hyperdope-gematria (main + HEAD tag)"
git -C "${WORKSPACE_DIR}/ingglish-hyperdope-gematria" pull --rebase --autostash origin main || true
git -C "${WORKSPACE_DIR}/ingglish-hyperdope-gematria" push -u origin main
push_head_tag "${WORKSPACE_DIR}/ingglish-hyperdope-gematria" origin
echo " -> (3/6) technocapital-singularity-zoology (main + HEAD tag)"
git -C "${WORKSPACE_DIR}/technocapital-singularity-zoology" pull --rebase --autostash origin main || true
git -C "${WORKSPACE_DIR}/technocapital-singularity-zoology" push -u origin main
push_head_tag "${WORKSPACE_DIR}/technocapital-singularity-zoology" origin
echo " -> (4/6) encyclopedia-knowledge-graph (main + HEAD tag)"
git -C "${WORKSPACE_DIR}/encyclopedia-knowledge-graph" pull --rebase --autostash origin main || true
git -C "${WORKSPACE_DIR}/encyclopedia-knowledge-graph" push -u origin main
push_head_tag "${WORKSPACE_DIR}/encyclopedia-knowledge-graph" origin
echo " -> (5/6) hyperdope-ci-build (feat/ingglish-aq-corpus + HEAD tag)"
git -C "${WORKSPACE_DIR}/hyperdope-ci-build" pull --rebase --autostash origin feat/ingglish-aq-corpus || true
git -C "${WORKSPACE_DIR}/hyperdope-ci-build" push -u origin feat/ingglish-aq-corpus
push_head_tag "${WORKSPACE_DIR}/hyperdope-ci-build" origin
if [[ -d "${WORKSPACE_DIR}/haiperdohp-jemaytreeah/.git" ]]; then
echo " -> (6/6) haiperdohp-jemaytreeah (downstream main, feat/ingglish-aq-corpus, feat/ingglish-priority-toggle + HEAD tag)"
ensure_remote_url "${WORKSPACE_DIR}/haiperdohp-jemaytreeah" downstream "${FORGE_SSH}/haiperdohp-jemaytreeah.git"
git -C "${WORKSPACE_DIR}/haiperdohp-jemaytreeah" push downstream main feat/ingglish-aq-corpus feat/ingglish-priority-toggle
push_head_tag "${WORKSPACE_DIR}/haiperdohp-jemaytreeah" downstream
fi
echo "[OK] All 6 repositories and release tags pushed to ${FORGE_SSH}."
+14 -9
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh # /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh
# Release v2.17.0: Self-re-executing tmpfs VPS hydration & service sync.
# Hydrates per-repository install directories from REPOS_ROOT into LIVE_REPOS (tmpfs RAM mount), # Hydrates per-repository install directories from REPOS_ROOT into LIVE_REPOS (tmpfs RAM mount),
# supplies untracked haiperdohp-jemaytreeah/.gitignore files (config.js, db.json, db_lite.json), # supplies untracked haiperdohp-jemaytreeah/.gitignore files (config.js, db.json, db_lite.json),
# creates top-level route symlinks, pre-compresses (.br / .gz) static assets, and idempotently # creates top-level route symlinks, pre-compresses (.br / .gz) static assets, and idempotently
@@ -157,6 +158,7 @@ if p.is_file():
' '
fi fi
run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only
run_checked "hs-deploy-scripts-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${REPOS_ROOT}" --check
run_checked "hs-closeups-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync --check run_checked "hs-closeups-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync --check
run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check
run_checked "hs-db-build (--build)" "${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build run_checked "hs-db-build (--build)" "${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build
@@ -200,19 +202,22 @@ ${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/learn" "${LIVE_REPOS}/learn"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant" ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate" ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"
echo "[3b/5] Generating untracked deploy-time /quant/audio/*.wav spoken voice tracks (Strategy 1A, 0 audio files in Git)..." echo "[3b/5] Generating untracked deploy-time /quant/audio/*.wav spoken voice tracks (Strategies 1A & 2A: flite kal16 + background slt upgrade, 0 audio files in Git)..."
if [[ -z "$(type -P espeak-ng || true)" ]] && [[ -z "$(type -P espeak || true)" ]] && [[ "${DO_CADDY}" -eq 1 ]]; then if [[ -z "$(type -P flite || true)" ]] || [[ -z "$(type -P espeak-ng || true)" ]]; then
if [[ -n "$(type -P dnf || true)" ]]; then if [[ "${DO_CADDY}" -eq 1 ]]; then
echo " -> Installing espeak-ng via dnf for natural spoken English tour narration..." if [[ -n "$(type -P dnf || true)" ]]; then
${SUDO} dnf install -y -q espeak-ng || true echo " -> Installing flite & espeak-ng via dnf for natural spoken English tour narration..."
elif [[ -n "$(type -P apt-get || true)" ]]; then ${SUDO} dnf install -y -q flite espeak-ng || true
echo " -> Installing espeak-ng via apt-get for natural spoken English tour narration..." elif [[ -n "$(type -P apt-get || true)" ]]; then
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq espeak-ng || true echo " -> Installing flite & espeak-ng via apt-get for natural spoken English tour narration..."
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq flite espeak-ng || true
fi
fi fi
fi fi
run_checked "hs-quant-voice-build" ${LIVE_SUDO} env PYTHONPATH="${REPOS_ROOT}/hyperstitionstudio-core/src" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.quant_voice \ run_checked "hs-quant-voice-build" ${LIVE_SUDO} env PYTHONPATH="${REPOS_ROOT}/hyperstitionstudio-core/src" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.quant_voice \
--workspace-root "${REPOS_ROOT}" \ --workspace-root "${REPOS_ROOT}" \
--out-dir "${LIVE_REPOS}/hyperstitionstudio-core/site/quant/audio" --out-dir "${LIVE_REPOS}/hyperstitionstudio-core/site/quant/audio" \
--upgrade-slt-background
if [[ -d "${LIVE_REPOS}/hyperstitionstudio-core/site/engineering" ]]; then if [[ -d "${LIVE_REPOS}/hyperstitionstudio-core/site/engineering" ]]; then
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/engineering" "${LIVE_REPOS}/engineering" ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/engineering" "${LIVE_REPOS}/engineering"
fi fi
+1
View File
@@ -55,6 +55,7 @@ ROUTES=(
"/assets/hs-group3-basalt-chamfer.css" "/assets/hs-group3-basalt-chamfer.css"
"/assets/hs-guile-scheme-repl.js" "/assets/hs-guile-scheme-repl.js"
"/assets/hs-matrix-coderain.js" "/assets/hs-matrix-coderain.js"
"/assets/hs-mobile-ui.js"
"/assets/matrix-font.woff2" "/assets/matrix-font.woff2"
"/assets/closeups/quadrant-1-cybermemetics-calc-graph.png" "/assets/closeups/quadrant-1-cybermemetics-calc-graph.png"
"/assets/closeups/quadrant-1-tab-2-graph.png" "/assets/closeups/quadrant-1-tab-2-graph.png"
@@ -0,0 +1,7 @@
# `haiperdohpjematreeah` (`hyperstitionstud.io/calc/`): The Sleek, Updated & Adventurous Alternative to `cypher.news`
`cypher.news` did vital archival work by keeping the classic Gematro-era browser calculator alive, but its interface and flat-file loading still belong to an earlier era of the web. At [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/), **`haiperdohpjematreeah`** carries that open-source lineage forward into a sleek, chamfered Stealth Basalt instrument deck engineered for zero-lag exploration. Instead of freezing the browser tab while parsing raw text lists on startup, `haiperdohpjematreeah` uses progressive two-stage database hydration—painting instant matches from a pre-computed lite index in milliseconds while silently hydrating the full **`231,615`-entry**, **`82`-cipher** matrix in the background, complete with one-click column/value highlighting, breakdown charts, and configurable Matrix code-rain.
Where `cypher.news` treats gematria purely as an exercise in silent-letter English spelling, `haiperdohpjematreeah` is built for the adventurous: it bridges written orthography with **spoken phonemic Ingglish** (`126,000+` CMUdict pronunciations) and **Base-36 Alphanumeric Qabbala (`AQ`)**. Flipping the built-in **`ING ↑`** match-priority toggle lets you cut straight through historical spelling drift so phrases that sound identical in spoken incantation lock onto the same numerical coordinates—exposing zero-variance phonemic convergence clusters, twin-prime mutations, and `37 × 3k` repdigit attractors (`333`, `666`, `777`) across `82` classical, Qabbalistic, and CCRU/Numogrammatic ciphers.
Best of all, `hyperstitionstud.io/calc/` never strands a discovery inside an isolated calculator window. Every coordinate you surface in `haiperdohpjematreeah` connects directly to the wider [`hyperstitionstud.io`](https://hyperstitionstud.io/) laboratory: pivot in one click from a cipher match into the `388`-node Concentric ETI Knowledge Graph ([`/graph/`](https://hyperstitionstud.io/graph/)), test whether that coordinate aligns with US closing-bell equities and St. Louis Fed (`FRED`) macro spreads ([`/quant/`](https://hyperstitionstud.io/quant/)), or inspect the underlying algebra in live Guile Scheme, TypeScript, and Rust sandboxes ([`/learn/`](https://hyperstitionstud.io/learn/), [`/math/`](https://hyperstitionstud.io/math/), [`/engineering/`](https://hyperstitionstud.io/engineering/)). Zero trackers, zero ads, 100% open-source, and built for practitioners ready to move from static word-counting to live cybermemetic cartography.
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hyperstitionstud.io/workspace-core", "name": "@hyperstitionstud.io/workspace-core",
"version": "2.13.0", "version": "2.17.0",
"private": true, "private": true,
"description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.", "description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.",
"license": "MIT", "license": "MIT",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hyperstitionstud.io/ciphers-aq", "name": "@hyperstitionstud.io/ciphers-aq",
"version": "2.13.0", "version": "2.17.0",
"type": "module", "type": "module",
"main": "index.js", "main": "index.js",
"license": "MIT" "license": "MIT"
+2 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "hyperstitionstudio-core" name = "hyperstitionstudio-core"
version = "2.13.0" version = "2.17.0"
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." 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" readme = "README.md"
requires-python = ">=3.10" requires-python = ">=3.10"
@@ -42,6 +42,7 @@ hs-highlights = "hyperstitionstud_io.publishing.highlights:main"
hs-readme-sync = "hyperstitionstud_io.publishing.readme_sync:main" hs-readme-sync = "hyperstitionstud_io.publishing.readme_sync:main"
hs-closeups-sync = "hyperstitionstud_io.publishing.closeups_sync:main" hs-closeups-sync = "hyperstitionstud_io.publishing.closeups_sync:main"
hs-quant-voice-build = "hyperstitionstud_io.publishing.quant_voice:main" hs-quant-voice-build = "hyperstitionstud_io.publishing.quant_voice:main"
hs-deploy-scripts-sync = "hyperstitionstud_io.ci.deploy_scripts_sync:main"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["src"] where = ["src"]
+2 -2
View File
@@ -144,8 +144,8 @@ def main() -> int:
}) })
manifest = { manifest = {
"version": "2.13.0", "version": "2.17.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.13.0", "namespace_urn": "urn:io:hyperstitionstud:gallery:2.17.0",
"total_items": len(items), "total_items": len(items),
"items": items, "items": items,
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 29 KiB

+49 -18
View File
@@ -1,6 +1,6 @@
{ {
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest", "$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
"ui_elements_fingerprint_sha256": "2573b3d2e4dec4dd6c14ac904954fb35b63f3f0b1e44ec986a655959ea805352", "ui_elements_fingerprint_sha256": "850e947100a471119f43bcc9317c1979447cd4c1ce3c06f4e98747be54b713b6",
"closeup_images": [ "closeup_images": [
"quadrant-1-cybermemetics-calc-graph.png", "quadrant-1-cybermemetics-calc-graph.png",
"quadrant-1-tab-2-graph.png", "quadrant-1-tab-2-graph.png",
@@ -24,7 +24,7 @@
}, },
"engineering_counts": { "engineering_counts": {
"repositories": 6, "repositories": 6,
"cli_entrypoints": 19, "cli_entrypoints": 20,
"mcp_tools": 20, "mcp_tools": 20,
"rest_domain_aliases": 12, "rest_domain_aliases": 12,
"enabled_lenses": 6, "enabled_lenses": 6,
@@ -69,8 +69,8 @@
] ]
}, },
"quant": { "quant": {
"ui_structure_sha256": "6a8617125aa3a61d26a55c87cb39c0be18aff4fcf79e62e6d4700c49389283e6", "ui_structure_sha256": "2ab4047333b1c330987a5ee5b67ed3e19125c508a603ed51a8b4be54a324a4ae",
"id_count": 67, "id_count": 68,
"button_count": 21, "button_count": 21,
"option_count": 0, "option_count": 0,
"input_count": 2, "input_count": 2,
@@ -106,6 +106,7 @@
"navLearn", "navLearn",
"navManual", "navManual",
"navMath", "navMath",
"navQuant",
"nextDateBtn", "nextDateBtn",
"openTradingViewBtn", "openTradingViewBtn",
"panel1Meta", "panel1Meta",
@@ -168,7 +169,7 @@
] ]
}, },
"learn": { "learn": {
"ui_structure_sha256": "e268fa263952e761a2d79b45a8881691495831178886770566532c30c2100316", "ui_structure_sha256": "c3313aa013d20695e27cb78dde64a1e17b0dd90c09b0f47555af1b6aba72101d",
"id_count": 48, "id_count": 48,
"button_count": 11, "button_count": 11,
"option_count": 29, "option_count": 29,
@@ -266,7 +267,7 @@
] ]
}, },
"engineering_hub": { "engineering_hub": {
"ui_structure_sha256": "12b0496d2f082fa2d29bf68c4b186f40be901f79a7be87fc435241ffa7123145", "ui_structure_sha256": "9d8f350da3fb9ad545b7bcaa14879a36ad185b890e313efbe0cd354046e08f0d",
"id_count": 14, "id_count": 14,
"button_count": 16, "button_count": 16,
"option_count": 16, "option_count": 16,
@@ -331,7 +332,7 @@
] ]
}, },
"engineering_e4": { "engineering_e4": {
"ui_structure_sha256": "4521e10d2e556ada980e8ba3bde5bb0748fa5ef72f15b69a1030ce07cd28904d", "ui_structure_sha256": "1c819c615e418eec10caefaf53aa76100655c1cb7bbe7b2914e54c9b62c97996",
"id_count": 15, "id_count": 15,
"button_count": 17, "button_count": 17,
"option_count": 16, "option_count": 16,
@@ -391,7 +392,7 @@
] ]
}, },
"math_hub": { "math_hub": {
"ui_structure_sha256": "9ce686c475325b7c3eef2abada48a3aac3cfa30bec087adb46b5226ff9a39cb6", "ui_structure_sha256": "614ba230cf6545ababf2d4e02c46a7e3893b7b8ac2cc5795efc270e9d192abc8",
"id_count": 12, "id_count": 12,
"button_count": 16, "button_count": 16,
"option_count": 16, "option_count": 16,
@@ -450,7 +451,7 @@
] ]
}, },
"math_m1": { "math_m1": {
"ui_structure_sha256": "3141f7e0e3e816edc7f2c49e813ca76637fa85768c57a8aa291348e7f6231736", "ui_structure_sha256": "37fc8b04d52192d7c1e5f509944916bba270599db0f7a5f38ecfa8ad9feef13f",
"id_count": 12, "id_count": 12,
"button_count": 16, "button_count": 16,
"option_count": 16, "option_count": 16,
@@ -506,9 +507,9 @@
] ]
}, },
"graph": { "graph": {
"ui_structure_sha256": "771d70e8e41e4f466d29b04274b3403753f82c7a8e8680ba5c8a732b2b00fd29", "ui_structure_sha256": "095cf74cd75866d3135d0eb0cac88c85fe2f9da1c5080c1f6f528f85e4ea1505",
"id_count": 16, "id_count": 26,
"button_count": 6, "button_count": 8,
"option_count": 11, "option_count": 11,
"input_count": 1, "input_count": 1,
"heading_count": 5, "heading_count": 5,
@@ -518,6 +519,14 @@
"flagFilter", "flagFilter",
"flexPills", "flexPills",
"graphCanvas", "graphCanvas",
"graphNavCalc",
"graphNavDonate",
"graphNavEng",
"graphNavHome",
"graphNavLearn",
"graphNavMath",
"graphNavQuant",
"graphNavSelf",
"hudStats", "hudStats",
"inspBadges", "inspBadges",
"inspBody", "inspBody",
@@ -525,6 +534,8 @@
"inspectorDrawer", "inspectorDrawer",
"isolationBox", "isolationBox",
"minDegreeFilter", "minDegreeFilter",
"mobileGraphFiltersBtn",
"mobileGraphInspectorBtn",
"nbrList", "nbrList",
"nodeTypeToggles", "nodeTypeToggles",
"resetViewBtn", "resetViewBtn",
@@ -539,7 +550,9 @@
"Mode 3: Gen 0 -> Gen 1 Funnel", "Mode 3: Gen 0 -> Gen 1 Funnel",
"Mode 4: 00–08 Folder Grid", "Mode 4: 00–08 Folder Grid",
"Reset View", "Reset View",
"Export PNG" "Export PNG",
"&#x2699; Ontology &amp; Filters",
"&#x24D8; Node Inspector"
], ],
"sample_options": [ "sample_options": [
"Filter: All Nodes", "Filter: All Nodes",
@@ -563,12 +576,12 @@
] ]
}, },
"calc": { "calc": {
"ui_structure_sha256": "a955885aeba700ece09389b80de203aff79128b8bb153d22b69993bd7ab528a6", "ui_structure_sha256": "b12869b3987b92b014ca25a0b18e75728df5ce2cefb5666d404af4a927f2dbb9",
"id_count": 26, "id_count": 35,
"button_count": 0, "button_count": 0,
"option_count": 0, "option_count": 0,
"input_count": 1, "input_count": 1,
"heading_count": 0, "heading_count": 1,
"ids": [ "ids": [
"BreakdownDetails", "BreakdownDetails",
"BreakdownSpot", "BreakdownSpot",
@@ -578,6 +591,14 @@
"autoMatchBtn", "autoMatchBtn",
"calcLogo", "calcLogo",
"calcMain", "calcMain",
"calcNavDonate",
"calcNavEng",
"calcNavGraph",
"calcNavHome",
"calcNavLearn",
"calcNavMath",
"calcNavQuant",
"calcNavSelf",
"calcOptionsPanel", "calcOptionsPanel",
"canv", "canv",
"clearFilterButton", "clearFilterButton",
@@ -589,6 +610,7 @@
"enterPhraseBtn", "enterPhraseBtn",
"highlightBox", "highlightBox",
"hltModeBtn", "hltModeBtn",
"hsCalcHeader",
"hsGlobalFooter", "hsGlobalFooter",
"inputArea", "inputArea",
"loadPanel", "loadPanel",
@@ -602,7 +624,9 @@
], ],
"sample_buttons": [], "sample_buttons": [],
"sample_options": [], "sample_options": [],
"sample_headings": [] "sample_headings": [
"HYPERSTITIONSTUD.IO/CALC // HAIPERDOHPJEMATREEAH WORKBENCH"
]
} }
}, },
"js_surfaces": { "js_surfaces": {
@@ -779,6 +803,13 @@
} }
}, },
"ipld_dag_json_cidv1": { "ipld_dag_json_cidv1": {
"/": "baguqeerar7ht56v56xlv3fpjna2a7cg7bepjvt4fjk2neckepnup24yqjwjq" "/": "baguqeeradg673hhidck5xgxsdfmihzeoppstvdi7gxy56ejprd5ha7swxrka"
},
"geometry_audit": {
"all_clean": true,
"checked_closeups": 11,
"breach_count": 0,
"border_crossing_count": 0,
"text_overlap_count": 0
} }
} }
+203
View File
@@ -9,10 +9,12 @@
========================================================================== */ ========================================================================== */
:root { :root {
--font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--bg-void: #020617; --bg-void: #020617;
--bg-deep: #020617; --bg-deep: #020617;
--bg-well: #070d1b; --bg-well: #070d1b;
--bg-card: #0c1324; --bg-card: #0c1324;
--bg-panel: #0c1324;
--bg-surface: #0c1324; --bg-surface: #0c1324;
--bg-elevated: #111a2e; --bg-elevated: #111a2e;
--bg-bezel: #182338; --bg-bezel: #182338;
@@ -35,6 +37,18 @@
--accent-violet: #a855f7; --accent-violet: #a855f7;
} }
body,
button,
input,
select,
textarea,
code,
pre,
kbd,
samp {
font-family: var(--font-mono);
}
body { body {
background-color: var(--bg-void); background-color: var(--bg-void);
background-image: background-image:
@@ -611,3 +625,192 @@ html[data-sigil-accents="off"] .panel::after {
.closeup-bar-cta:hover { .closeup-bar-cta:hover {
text-decoration: underline; text-decoration: underline;
} }
/* ==========================================================================
Unified Cross-Page Navigation UI (Plan #63 & Plan #65 — Matching Homepage)
========================================================================== */
.title-row {
display: flex;
align-items: center;
gap: 0.65rem;
}
.dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--cyan);
box-shadow: 0 0 10px var(--cyan);
flex-shrink: 0;
}
.top-nav.hs-global-nav {
margin-left: auto;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.38rem;
flex-shrink: 0;
flex-wrap: nowrap;
}
@media (max-width: 1180px) {
.top-nav.hs-global-nav {
flex-wrap: wrap;
}
}
.top-nav.hs-global-nav .btn {
text-decoration: none;
background-color: var(--bg-interact);
color: var(--cyan);
border: 1px solid rgba(56, 189, 248, 0.55);
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
font-family: var(--font-mono);
transition: all 0.15s ease;
}
.top-nav.hs-global-nav .btn:hover,
.meta-badges .btn:hover {
border-color: var(--cyan) !important;
background-color: #192b4b !important;
color: #f8fafc !important;
}
.top-nav.hs-global-nav .btn.primary,
.meta-badges .btn.primary,
a.btn.primary:not(.btn-donate-pill),
button.btn.primary:not(.tactile-donate-btn),
button.btn.active:not(.tactile-donate-btn) {
background-color: var(--cyan) !important;
color: #020617 !important;
border-color: var(--cyan) !important;
font-weight: 700;
}
.hs-subnav-bar {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.55rem;
padding: 0.65rem 1rem;
margin-bottom: 0.9rem;
}
.hs-subnav-links {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.38rem;
}
/* ==========================================================================
Adaptive Group 3 Mobile UI (Plan #66 — Affirmed Strategies 1A, 2A, 3A, 4A)
Strictly scoped under html[data-device-ui="mobile"] (0 Desktop UI changes)
========================================================================== */
.hs-mobile-menu-btn,
.hs-mobile-nav-sheet {
display: none;
}
html[data-device-ui="mobile"] body {
padding: 0.65rem 0.65rem !important;
}
html[data-device-ui="mobile"] header {
flex-wrap: wrap !important;
padding: 0.75rem 0.85rem !important;
gap: 0.5rem !important;
margin-bottom: 0.65rem !important;
}
html[data-device-ui="mobile"] header h1 {
white-space: normal !important;
font-size: 0.85rem !important;
line-height: 1.3 !important;
}
html[data-device-ui="mobile"] .subtitle {
font-size: 0.66rem !important;
line-height: 1.35 !important;
}
html[data-device-ui="mobile"] .hs-mobile-menu-btn {
display: inline-flex !important;
margin-left: auto;
height: 30px !important;
padding: 0 0.55rem !important;
font-size: 0.68rem !important;
font-weight: 700 !important;
flex-shrink: 0;
}
html[data-device-ui="mobile"] .meta-badges,
html[data-device-ui="mobile"] .top-nav.hs-global-nav {
width: 100% !important;
margin-left: 0 !important;
justify-content: flex-start !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch;
padding-bottom: 4px;
gap: 0.35rem !important;
}
html[data-device-ui="mobile"] .hs-mobile-nav-sheet.open {
display: grid !important;
grid-template-columns: repeat(2, 1fr);
gap: 0.45rem;
padding: 0.75rem;
margin-bottom: 0.75rem;
background-color: var(--bg-card);
border: 1px solid var(--cyan);
}
html[data-device-ui="mobile"] .hs-mobile-sheet-link {
width: 100%;
min-height: 38px !important;
justify-content: center !important;
text-align: center;
}
html[data-device-ui="mobile"] .hs-subnav-bar {
padding: 0.5rem 0.65rem !important;
overflow-x: auto !important;
}
html[data-device-ui="mobile"] .hs-polyglot-segmented {
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
html[data-device-ui="mobile"] #hsGuileReplDrawer {
left: 8px !important;
right: 8px !important;
bottom: 8px !important;
width: auto !important;
}
html[data-device-ui="mobile"] #quantInfoPopover {
left: 8px !important;
right: 8px !important;
bottom: 8px !important;
top: auto !important;
width: auto !important;
max-width: none !important;
}
html[data-device-ui="mobile"] #guildPills,
html[data-device-ui="mobile"] #modePills,
html[data-device-ui="mobile"] #tutEpisodeTabs {
flex-wrap: nowrap !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch;
max-width: 100%;
padding-bottom: 3px;
}
+166
View File
@@ -0,0 +1,166 @@
/* ==========================================================================
hyperstitionstud.io — Adaptive Mobile Device Detector & Group 3 Mobile UI
(Plan #66: PLAN-PIECEWISE-MOBILE-DEVICE-DETECTION-AND-ADAPTIVE-MOBILE-UI)
Affirmed Strategies 1A, 2A, 3A, 4A:
- Multi-signal synchronous detection (URL ?mobile=1|0, localStorage override,
navigator.userAgentData.mobile, mobile UA regex, and coarse-pointer /
<=820px viewport media query) -> sets html[data-device-ui="mobile|desktop"].
- Strategy 2A: Injects `[ ☰ Menu ]` slide-down 2-column touch navigation
sheet (#hsMobileNavSheet) into <header> when mobile UI is active, while
keeping .meta-badges / .top-nav.hs-global-nav as a swipeable touch rail.
- Strategy 1A: Injects `[ 📱 Mobile UI | 🖥 Desktop UI ]` switcher in footer.
========================================================================== */
(function () {
"use strict";
var STORAGE_KEY = "hs_device_ui_override";
var MOBILE_UA_RE = /\b(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|Mobile)\b/i;
function getCookie(name) {
try {
var m = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
return m ? decodeURIComponent(m[1]) : "";
} catch (_) {
return "";
}
}
function detectMobileDevice() {
try {
var params = new URLSearchParams(window.location.search || "");
var qMob = params.get("mobile");
if (qMob === "1" || qMob === "true") {
try { localStorage.setItem(STORAGE_KEY, "mobile"); } catch (_) {}
return true;
}
if (qMob === "0" || qMob === "false") {
try { localStorage.setItem(STORAGE_KEY, "desktop"); } catch (_) {}
return false;
}
var saved = "";
try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {}
if (saved === "mobile") return true;
if (saved === "desktop") return false;
} catch (_) {}
if (getCookie("hs_device_hint") === "mobile") return true;
if (typeof navigator !== "undefined") {
if (navigator.userAgentData && navigator.userAgentData.mobile === true) return true;
if (MOBILE_UA_RE.test(navigator.userAgent || "")) return true;
}
if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
if (window.matchMedia("(max-width: 820px), (hover: none) and (pointer: coarse)").matches) {
return true;
}
}
return false;
}
function applyDeviceUiMode(mode) {
var root = document.documentElement;
if (!root) return;
root.setAttribute("data-device-ui", mode);
var switchBtn = document.getElementById("hsMobileUiSwitchBtn");
if (switchBtn) {
switchBtn.textContent = mode === "mobile" ? "[ \uD83D\uDCF1 Mobile UI: ON \u2022 Switch to Desktop ]" : "[ \uD83D\uDDA5 Desktop UI \u2022 Switch to Mobile UI ]";
switchBtn.setAttribute("aria-pressed", mode === "mobile" ? "true" : "false");
}
if (mode !== "mobile") {
var sheet = document.getElementById("hsMobileNavSheet");
if (sheet) sheet.classList.remove("open");
var menuBtn = document.getElementById("hsMobileMenuBtn");
if (menuBtn) menuBtn.setAttribute("aria-expanded", "false");
}
}
// Run synchronous detection immediately
var initialMode = detectMobileDevice() ? "mobile" : "desktop";
applyDeviceUiMode(initialMode);
function initMobileNavAndFooterSwitcher() {
var hdr = document.querySelector("header");
var navEl = hdr && hdr.querySelector(".top-nav.hs-global-nav, .meta-badges");
if (hdr && navEl && !document.getElementById("hsMobileMenuBtn")) {
var menuBtn = document.createElement("button");
menuBtn.type = "button";
menuBtn.id = "hsMobileMenuBtn";
menuBtn.className = "btn hs-mobile-menu-btn";
menuBtn.setAttribute("aria-expanded", "false");
menuBtn.setAttribute("aria-controls", "hsMobileNavSheet");
menuBtn.textContent = "\u2630 Menu";
var sheet = document.createElement("div");
sheet.id = "hsMobileNavSheet";
sheet.className = "hs-mobile-nav-sheet hs-plate-g3";
sheet.setAttribute("aria-label", "Mobile Ecosystem Navigation Drawer");
var links = navEl.querySelectorAll("a");
links.forEach(function (a) {
var clone = a.cloneNode(true);
clone.removeAttribute("id");
clone.classList.add("hs-mobile-sheet-link");
sheet.appendChild(clone);
});
menuBtn.addEventListener("click", function () {
var isOpen = sheet.classList.toggle("open");
menuBtn.setAttribute("aria-expanded", isOpen ? "true" : "false");
menuBtn.textContent = isOpen ? "\u2715 Close" : "\u2630 Menu";
});
var titleRow = hdr.querySelector(".title-row");
if (titleRow) {
titleRow.appendChild(menuBtn);
} else {
hdr.insertBefore(menuBtn, navEl);
}
hdr.parentNode.insertBefore(sheet, hdr.nextSibling);
}
var ftr = document.querySelector("footer");
if (ftr && !document.getElementById("hsMobileUiSwitchBtn")) {
var wrap = document.createElement("div");
wrap.style.cssText = "margin-top:6px;";
var swBtn = document.createElement("button");
swBtn.type = "button";
swBtn.id = "hsMobileUiSwitchBtn";
swBtn.className = "btn hs-rain-toggle-btn";
swBtn.addEventListener("click", function () {
var cur = document.documentElement.getAttribute("data-device-ui") || "desktop";
var next = cur === "mobile" ? "desktop" : "mobile";
try { localStorage.setItem(STORAGE_KEY, next); } catch (_) {}
applyDeviceUiMode(next);
window.dispatchEvent(new Event("resize"));
});
wrap.appendChild(swBtn);
ftr.appendChild(wrap);
applyDeviceUiMode(document.documentElement.getAttribute("data-device-ui") || initialMode);
}
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", initMobileNavAndFooterSwitcher);
} else {
initMobileNavAndFooterSwitcher();
}
window.addEventListener("resize", function () {
var saved = "";
try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {}
if (!saved) {
applyDeviceUiMode(detectMobileDevice() ? "mobile" : "desktop");
}
});
window.HyperstitionStudio = window.HyperstitionStudio || {};
window.HyperstitionStudio.MobileUI = {
detectMobileDevice: detectMobileDevice,
setMode: function (mode) {
try { localStorage.setItem(STORAGE_KEY, mode); } catch (_) {}
applyDeviceUiMode(mode);
},
getMode: function () {
return document.documentElement.getAttribute("data-device-ui") || "desktop";
}
};
})();
+33 -24
View File
@@ -4,14 +4,14 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Signal Patronage &amp; Open-Instrument Notes — hyperstitionstud.io/donate</title> <title>Signal Patronage &amp; Open-Instrument Notes — hyperstitionstud.io/donate</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
:root { :root {
--bg-canvas: #020617; --bg-canvas: #020617;
--bg-panel: #0f172a; --bg-panel: #0c1324;
--bg-card: #1e293b; --bg-card: #0c1324;
--bg-deep: #090d16; --bg-deep: #090d16;
--border: #334155; --border: #26344d;
--text-main: #f8fafc; --text-main: #f8fafc;
--text-muted: #94a3b8; --text-muted: #94a3b8;
--cyan: #22d3ee; --cyan: #22d3ee;
@@ -42,30 +42,34 @@
border: 1px solid var(--border); border: 1px solid var(--border);
border-left: 4px solid var(--gold); border-left: 4px solid var(--gold);
border-radius: 10px; border-radius: 10px;
padding: 1.25rem 1.5rem; padding: 1.1rem 1.35rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: nowrap;
gap: 1rem; gap: 0.85rem;
} }
.title-row { display: flex; align-items: center; gap: 0.7rem; } @media (max-width: 1220px) {
header { flex-wrap: wrap; }
}
.title-row { display: flex; align-items: center; gap: 0.65rem; }
.dot { .dot {
width: 11px; width: 10px;
height: 11px; height: 10px;
border-radius: 50%; border-radius: 50%;
background: var(--gold); background: var(--gold);
box-shadow: 0 0 10px var(--gold); box-shadow: 0 0 10px var(--gold);
flex-shrink: 0;
} }
h1 { font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { font-size: 0.77rem; color: var(--text-muted); margin-top: 0.3rem; } .subtitle { font-size: 0.71rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { .top-nav {
margin-left: auto; margin-left: auto;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
gap: 0.5rem; gap: 0.38rem;
flex-wrap: wrap; flex-wrap: nowrap;
} }
.btn { .btn {
text-decoration: none; text-decoration: none;
@@ -73,8 +77,8 @@
color: var(--text-main); color: var(--text-main);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 5px; border-radius: 5px;
padding: 0.42rem 0.78rem; padding: 0.34rem 0.62rem;
font-size: 0.74rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
font-family: inherit; font-family: inherit;
cursor: pointer; cursor: pointer;
@@ -343,14 +347,18 @@
<span class="dot"></span> <span class="dot"></span>
<h1>hyperstitionstud.io/donate — Signal Patronage &amp; Open-Instrument Notes</h1> <h1>hyperstitionstud.io/donate — Signal Patronage &amp; Open-Instrument Notes</h1>
</div> </div>
<p class="subtitle">Open-Readout Phonemic, Graph &amp; Closing-Bell Telemetry Workbench &bull; Namespace Authority: urn:io:hyperstitionstud:donate:v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">Open-Readout Phonemic, Graph &amp; Closing-Bell Telemetry Workbench &bull; Namespace Authority: urn:io:hyperstitionstud:donate:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" data-donate-route="home" href="/">Portal Home (/)</a> <a class="btn" data-donate-route="home" href="/">Portal Home (/)</a>
<a class="btn" data-donate-route="quant" href="/quant/index.html">Time-Series (/quant/)</a> <a class="btn" data-donate-route="calc" href="/calc/index.html">Calculator</a>
<a class="btn" data-donate-route="graph" href="/graph/index.html">Knowledge Graph (/graph/)</a> <a class="btn" data-donate-route="quant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" data-donate-route="learn" href="/learn/index.html">Learning Track (/learn/)</a> <a class="btn" data-donate-route="graph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" data-donate-route="calc" href="/calc/index.html">Calculator (/calc/)</a> <a class="btn" data-donate-route="learn" href="/learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" data-donate-route="eng" href="/engineering/index.html">Engineering</a>
<a class="btn" data-donate-route="math" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" data-donate-route="donate" aria-current="page" href="/donate/index.html?from=donate" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav> </nav>
</header> </header>
@@ -406,12 +414,12 @@
</section> </section>
<footer> <footer>
<div>hyperstitionstud.io/donate v2.13.0 &bull; 100% Static &amp; Offline-Portable &bull; Zero External Trackers</div> <div>hyperstitionstud.io/donate v2.17.0 &bull; 100% Static &amp; Offline-Portable &bull; Zero External Trackers</div>
<div class="hs-lemur-credit"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</div> <div class="hs-lemur-credit"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</div>
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script> <script>
(function () { (function () {
"use strict"; "use strict";
@@ -477,5 +485,6 @@
} }
})(); })();
</script> </script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke — hyperstitionstud.io/engineering (v2.13.0)</title> <title>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke</h1> <div class="title-row">
<p class="subtitle">Cartridge E5 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke</h1>
</div>
<p class="subtitle">Cartridge E5 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a> <a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a> <a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a> <a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a> <a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E5: CI/CD, VPS & Regression</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Linux Systems Administration, Bash Traps, systemd & DevOps (20-30 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>POSIX Bash error handling (set -euo pipefail, trap ERR, run_checked(), exec, flock)</li><li>Git fast-forward merges, annotated tags, and git pull --rebase --autostash</li><li>Linux tmpfs RAM mounts, systemd services/timers, Caddy HTTP/3 QUIC, and TrueType cmap tables</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://git-scm.com/book/en/v2" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Pro Git Book (Chacon & Straub — Free Complete Online Text) &#x2197;</a></li><li><a href="https://mywiki.wooledge.org/BashGuide" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Wooledge BashGuide & BashFAQ (Error Handling & Process Exec) &#x2197;</a></li><li><a href="https://www.freedesktop.org/software/systemd/man/systemd.service.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">freedesktop.org systemd.service & systemd.timer Manuals &#x2197;</a></li><li><a href="https://caddyserver.com/docs/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Caddy Server Official Documentation (HTTP/3 & Reverse Proxy) &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Linux Systems Administration, Bash Traps, systemd & DevOps (20-30 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>POSIX Bash error handling (set -euo pipefail, trap ERR, run_checked(), exec, flock)</li><li>Git fast-forward merges, annotated tags, and git pull --rebase --autostash</li><li>Linux tmpfs RAM mounts, systemd services/timers, Caddy HTTP/3 QUIC, and TrueType cmap tables</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://git-scm.com/book/en/v2" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Pro Git Book (Chacon & Straub — Free Complete Online Text) &#x2197;</a></li><li><a href="https://mywiki.wooledge.org/BashGuide" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Wooledge BashGuide & BashFAQ (Error Handling & Process Exec) &#x2197;</a></li><li><a href="https://www.freedesktop.org/software/systemd/man/systemd.service.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">freedesktop.org systemd.service & systemd.timer Manuals &#x2197;</a></li><li><a href="https://caddyserver.com/docs/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Caddy Server Official Documentation (HTTP/3 & Reverse Proxy) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E5): 4-Tier Programmatic Semantic Version Bump Heuristic</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Bump(dirty, ahead, plans, tools, brk) ∈ {noop, patch, minor, major}</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">evaluate_change_scope_heuristics(signals)[&#x27;recommended_bump_level&#x27;]</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(evaluate-bump-scope 2 0 1 0 #f)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(evaluate-bump-scope 2 0 1 0 #f)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="evaluateBumpScope({dirty: 2, ahead: 0, plans: 1, tools: 0, breaking: false})" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">evaluateBumpScope({dirty: 2, ahead: 0, plans: 1, tools: 0, breaking: false})</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="evaluate_bump_scope(2, 0, 1, 0, false)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">evaluate_bump_scope(2, 0, 1, 0, false)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Test the 4-tier decision tree (noop, patch, minor, major) in all 3 languages.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E5): 4-Tier Programmatic Semantic Version Bump Heuristic</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Bump(dirty, ahead, plans, tools, brk) ∈ {noop, patch, minor, major}</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">evaluate_change_scope_heuristics(signals)[&#x27;recommended_bump_level&#x27;]</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(evaluate-bump-scope 2 0 1 0 #f)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(evaluate-bump-scope 2 0 1 0 #f)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="evaluateBumpScope({dirty: 2, ahead: 0, plans: 1, tools: 0, breaking: false})" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">evaluateBumpScope({dirty: 2, ahead: 0, plans: 1, tools: 0, breaking: false})</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="evaluate_bump_scope(2, 0, 1, 0, false)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">evaluate_bump_scope(2, 0, 1, 0, false)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Test the 4-tier decision tree (noop, patch, minor, major) in all 3 languages.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-app.js?v=2.13.0"></script> <script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation — hyperstitionstud.io/engineering (v2.13.0)</title> <title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation</h1> <div class="title-row">
<p class="subtitle">Cartridge E1 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation</h1>
</div>
<p class="subtitle">Cartridge E1 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E1: Ciphers & Phonetics</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a> <a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a> <a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a> <a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a> <a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2: Introductory Python & Text Processing (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)</li><li>ASCII & Unicode character codepoints (ord(), UTF-8)</li><li>Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 & 2 (Base-36 & Ingglish) &#x2197;</a></li><li><a href="https://docs.python.org/3/tutorial/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Official Python 3 Tutorial (Sections 3-5 & 7) &#x2197;</a></li><li><a href="https://cs50.harvard.edu/python/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Harvard CS50P (Intro to Programming with Python) &#x2197;</a></li><li><a href="http://www.speech.cs.cmu.edu/cgi-bin/cmudict" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU Pronouncing Dictionary (CMUdict) Specification &#x2197;</a></li><li><a href="https://regexone.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">RegexOne Interactive Regular Expression Tutorial &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2: Introductory Python & Text Processing (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)</li><li>ASCII & Unicode character codepoints (ord(), UTF-8)</li><li>Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 & 2 (Base-36 & Ingglish) &#x2197;</a></li><li><a href="https://docs.python.org/3/tutorial/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Official Python 3 Tutorial (Sections 3-5 & 7) &#x2197;</a></li><li><a href="https://cs50.harvard.edu/python/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Harvard CS50P (Intro to Programming with Python) &#x2197;</a></li><li><a href="http://www.speech.cs.cmu.edu/cgi-bin/cmudict" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU Pronouncing Dictionary (CMUdict) Specification &#x2197;</a></li><li><a href="https://regexone.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">RegexOne Interactive Regular Expression Tutorial &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E1): Base-36 Alphanumeric Homomorphism in Guile (Z), TypeScript &amp; Rust</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>AQ(w) = ∑_{i=1}^k v(c_i), v(&#x27;0&#x27;..&#x27;9&#x27;)=0..9, v(&#x27;a&#x27;..&#x27;z&#x27;)=10..35</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">sum(char_value_aq(ch) for ch in text)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(aq-base36 &quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(aq-base36 &quot;LEMUR&quot;)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="aqBase36(&quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">aqBase36(&quot;LEMUR&quot;)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="aq_base36(&quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">aq_base36(&quot;LEMUR&quot;)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Verify AQ(&quot;LEMUR&quot;) = 114 across all 3 languages in the hardened AST sandbox.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E1): Base-36 Alphanumeric Homomorphism in Guile (Z), TypeScript &amp; Rust</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>AQ(w) = ∑_{i=1}^k v(c_i), v(&#x27;0&#x27;..&#x27;9&#x27;)=0..9, v(&#x27;a&#x27;..&#x27;z&#x27;)=10..35</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">sum(char_value_aq(ch) for ch in text)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(aq-base36 &quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(aq-base36 &quot;LEMUR&quot;)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="aqBase36(&quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">aqBase36(&quot;LEMUR&quot;)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="aq_base36(&quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">aq_base36(&quot;LEMUR&quot;)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Verify AQ(&quot;LEMUR&quot;) = 114 across all 3 languages in the hardened AST sandbox.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/engineering/ciphers-and-phonetics v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-app.js?v=2.13.0"></script> <script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -1 +1 @@
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.13.0", "enabled_subpages": ["ciphers-and-phonetics", "knowledge-graph-and-sqlite", "quant-macro-and-bayesian-brief", "mcp-chatbot-rest-and-ipld", "cicd-vps-tmpfs-and-regression"], "disabled_subpages": [], "enabled_routes": ["/engineering/index.html", "/engineering/ciphers-and-phonetics/index.html", "/engineering/knowledge-graph-and-sqlite/index.html", "/engineering/quant-macro-and-bayesian-brief/index.html", "/engineering/mcp-chatbot-rest-and-ipld/index.html", "/engineering/cicd-vps-tmpfs-and-regression/index.html"], "introspected_counts": {"repositories": 6, "cli_entrypoints": 19, "mcp_tools": 20, "rest_domain_aliases": 12, "enabled_lenses": 6, "watchlist_instruments": 24, "fred_macro_series": 14, "json_schemas_v1": 12}, "cli_scripts": {"hs-doctor": "hyperstitionstud_io.ci.doctor:main", "hs-citations": "hyperstitionstud_io.ci.citation_sources:main", "hs-pdf-build": "hyperstitionstud_io.publishing.pdf_compiler:main", "hs-kg-build": "hyperstitionstud_io.graph.cli:main", "hs-quant-harvest": "hyperstitionstud_io.quant.collector:main", "hs-mcp": "hyperstitionstud_io.mcp.server:main", "hs-sync-version": "hyperstitionstud_io.version_sync:main", "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", "hs-highlights": "hyperstitionstud_io.publishing.highlights:main", "hs-readme-sync": "hyperstitionstud_io.publishing.readme_sync:main", "hs-closeups-sync": "hyperstitionstud_io.publishing.closeups_sync:main", "hs-quant-voice-build": "hyperstitionstud_io.publishing.quant_voice:main"}, "mcp_tool_names": ["hs_evaluate_aq_and_ingglish", "hs_classify_singularity", "hs_query_knowledge_graph", "hs_search_glossary_encyclopedia", "hs_inspect_eti_tier_list", "hs_simulate_anchor_revision", "hs_search_archive_equations", "hs_verify_grounded_citations", "hs_compute_ipld_dag_json_cid", "hs_run_doctor_and_audit", "hs_scan_financial_quant_harvest", "hs_inspect_quant_timeseries", "hs_generate_ticker_stats_card", "hs_inspect_macro_indicators", "hs_generate_daily_portfolio_brief", "hs_inspect_engineering_and_math_docs", "hs_inspect_documentation_and_manuals", "hs_evaluate_guile_scheme_z_calculus", "hs_query_workspace_catalog_and_release_state", "hs_generate_highlights_summary"], "rest_domain_aliases": {"/api/v1/doctor": "hs_run_doctor_and_audit", "/api/v1/ciphers/evaluate": "hs_evaluate_aq_and_ingglish", "/api/v1/zoology/classify": "hs_classify_singularity", "/api/v1/zoology/tier-list": "hs_inspect_eti_tier_list", "/api/v1/zoology/anchor-revision": "hs_simulate_anchor_revision", "/api/v1/graph/query": "hs_query_knowledge_graph", "/api/v1/glossary/search": "hs_search_glossary_encyclopedia", "/api/v1/archive/equations": "hs_search_archive_equations", "/api/v1/quant/harvest": "hs_scan_financial_quant_harvest", "/api/v1/quant/timeseries": "hs_inspect_quant_timeseries", "/api/v1/ipld/cid": "hs_compute_ipld_dag_json_cid", "/api/v1/citations/verify": "hs_verify_grounded_citations"}, "schemas_v1": ["assemblage-builds-tier-list.schema.json", "citations-ledger.schema.json", "encyclopedia-graph.schema.json", "encyclopedia-manifest.schema.json", "financial-aq-harvest.schema.json", "glossary-registry.schema.json", "learn-progress-state.schema.json", "memetic-superclass-registry.schema.json", "quant-timeseries.schema.json", "quantitative-economic-anchors.schema.json", "singularity-zoology-matrix.schema.json", "ticker-stats-card.schema.json"], "flow_diagrams": {"cross_repo_dependency_png": "/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png", "periodic_harvest_cicd_vps_png": "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"}, "hub_prereq_ladder": {"unit_id": "E0", "expertise_level": "Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)", "summary": "New to command-line shells, Git repositories, or client-server web architecture? Start with these free foundational resources before diving into the engineering subpages:", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-6)", "url": "/learn/index.html", "external": false}, {"label": "MIT Missing Semester of Your CS Education (Shell, Git, CLI)", "url": "https://missing.csail.mit.edu/", "external": true}, {"label": "MDN Web Docs — How the Web Works (HTTP, HTML, Servers)", "url": "https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works", "external": true}]}, "subpages": {"ciphers-and-phonetics": {"unit_id": "E1", "slug": "ciphers-and-phonetics", "titlLine truncated window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.17.0", "enabled_subpages": ["ciphers-and-phonetics", "knowledge-graph-and-sqlite", "quant-macro-and-bayesian-brief", "mcp-chatbot-rest-and-ipld", "cicd-vps-tmpfs-and-regression"], "disabled_subpages": [], "enabled_routes": ["/engineering/index.html", "/engineering/ciphers-and-phonetics/index.html", "/engineering/knowledge-graph-and-sqlite/index.html", "/engineering/quant-macro-and-bayesian-brief/index.html", "/engineering/mcp-chatbot-rest-and-ipld/index.html", "/engineering/cicd-vps-tmpfs-and-regression/index.html"], "introspected_counts": {"repositories": 6, "cli_entrypoints": 20, "mcp_tools": 20, "rest_domain_aliases": 12, "enabled_lenses": 6, "watchlist_instruments": 24, "fred_macro_series": 14, "json_schemas_v1": 12}, "cli_scripts": {"hs-doctor": "hyperstitionstud_io.ci.doctor:main", "hs-citations": "hyperstitionstud_io.ci.citation_sources:main", "hs-pdf-build": "hyperstitionstud_io.publishing.pdf_compiler:main", "hs-kg-build": "hyperstitionstud_io.graph.cli:main", "hs-quant-harvest": "hyperstitionstud_io.quant.collector:main", "hs-mcp": "hyperstitionstud_io.mcp.server:main", "hs-sync-version": "hyperstitionstud_io.version_sync:main", "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", "hs-highlights": "hyperstitionstud_io.publishing.highlights:main", "hs-readme-sync": "hyperstitionstud_io.publishing.readme_sync:main", "hs-closeups-sync": "hyperstitionstud_io.publishing.closeups_sync:main", "hs-quant-voice-build": "hyperstitionstud_io.publishing.quant_voice:main", "hs-deploy-scripts-sync": "hyperstitionstud_io.ci.deploy_scripts_sync:main"}, "mcp_tool_names": ["hs_evaluate_aq_and_ingglish", "hs_classify_singularity", "hs_query_knowledge_graph", "hs_search_glossary_encyclopedia", "hs_inspect_eti_tier_list", "hs_simulate_anchor_revision", "hs_search_archive_equations", "hs_verify_grounded_citations", "hs_compute_ipld_dag_json_cid", "hs_run_doctor_and_audit", "hs_scan_financial_quant_harvest", "hs_inspect_quant_timeseries", "hs_generate_ticker_stats_card", "hs_inspect_macro_indicators", "hs_generate_daily_portfolio_brief", "hs_inspect_engineering_and_math_docs", "hs_inspect_documentation_and_manuals", "hs_evaluate_guile_scheme_z_calculus", "hs_query_workspace_catalog_and_release_state", "hs_generate_highlights_summary"], "rest_domain_aliases": {"/api/v1/doctor": "hs_run_doctor_and_audit", "/api/v1/ciphers/evaluate": "hs_evaluate_aq_and_ingglish", "/api/v1/zoology/classify": "hs_classify_singularity", "/api/v1/zoology/tier-list": "hs_inspect_eti_tier_list", "/api/v1/zoology/anchor-revision": "hs_simulate_anchor_revision", "/api/v1/graph/query": "hs_query_knowledge_graph", "/api/v1/glossary/search": "hs_search_glossary_encyclopedia", "/api/v1/archive/equations": "hs_search_archive_equations", "/api/v1/quant/harvest": "hs_scan_financial_quant_harvest", "/api/v1/quant/timeseries": "hs_inspect_quant_timeseries", "/api/v1/ipld/cid": "hs_compute_ipld_dag_json_cid", "/api/v1/citations/verify": "hs_verify_grounded_citations"}, "schemas_v1": ["assemblage-builds-tier-list.schema.json", "citations-ledger.schema.json", "encyclopedia-graph.schema.json", "encyclopedia-manifest.schema.json", "financial-aq-harvest.schema.json", "glossary-registry.schema.json", "learn-progress-state.schema.json", "memetic-superclass-registry.schema.json", "quant-timeseries.schema.json", "quantitative-economic-anchors.schema.json", "singularity-zoology-matrix.schema.json", "ticker-stats-card.schema.json"], "flow_diagrams": {"cross_repo_dependency_png": "/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png", "periodic_harvest_cicd_vps_png": "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"}, "hub_prereq_ladder": {"unit_id": "E0", "expertise_level": "Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)", "summary": "New to command-line shells, Git repositories, or client-server web architecture? Start with these free foundational resources before diving into the engineering subpages:", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-6)", "url": "/learn/index.html", "external": false}, {"label": "MIT Missing Semester of Your CS Education (Shell, Git, CLI)", "url": "https://missing.csail.mit.edu/", "external": true}, {"label": "MDN Web Docs — How the Web Works (HTTP, HTML, Servers)", "url": "https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works", "external": true}]}, "subpages": {"cipLine truncated
+5 -4
View File
@@ -1,6 +1,6 @@
{ {
"$id": "urn:io:hyperstitionstud:engineering-manifest", "$id": "urn:io:hyperstitionstud:engineering-manifest",
"version": "2.13.0", "version": "2.17.0",
"enabled_subpages": [ "enabled_subpages": [
"ciphers-and-phonetics", "ciphers-and-phonetics",
"knowledge-graph-and-sqlite", "knowledge-graph-and-sqlite",
@@ -19,7 +19,7 @@
], ],
"introspected_counts": { "introspected_counts": {
"repositories": 6, "repositories": 6,
"cli_entrypoints": 19, "cli_entrypoints": 20,
"mcp_tools": 20, "mcp_tools": 20,
"rest_domain_aliases": 12, "rest_domain_aliases": 12,
"enabled_lenses": 6, "enabled_lenses": 6,
@@ -46,7 +46,8 @@
"hs-highlights": "hyperstitionstud_io.publishing.highlights:main", "hs-highlights": "hyperstitionstud_io.publishing.highlights:main",
"hs-readme-sync": "hyperstitionstud_io.publishing.readme_sync:main", "hs-readme-sync": "hyperstitionstud_io.publishing.readme_sync:main",
"hs-closeups-sync": "hyperstitionstud_io.publishing.closeups_sync:main", "hs-closeups-sync": "hyperstitionstud_io.publishing.closeups_sync:main",
"hs-quant-voice-build": "hyperstitionstud_io.publishing.quant_voice:main" "hs-quant-voice-build": "hyperstitionstud_io.publishing.quant_voice:main",
"hs-deploy-scripts-sync": "hyperstitionstud_io.ci.deploy_scripts_sync:main"
}, },
"mcp_tool_names": [ "mcp_tool_names": [
"hs_evaluate_aq_and_ingglish", "hs_evaluate_aq_and_ingglish",
@@ -357,6 +358,6 @@
} }
}, },
"ipld_dag_json_cidv1": { "ipld_dag_json_cidv1": {
"/": "baguqeerabpp7hvwoe5m7s6vkdvzk23wfccbvg2g2u7bsdyuoplyol5uhkm5q" "/": "baguqeeralhggheqvujuoexizpm3m2ygjxh4l53ibxetlgp4xallhicw2j2mq"
} }
} }
+38 -23
View File
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.13.0)</title> <title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.12rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; } .grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; } .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.stat-tile { padding: 0.7rem 0.85rem; text-align: center; } .stat-tile { padding: 0.7rem 0.85rem; text-align: center; }
@@ -26,23 +27,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1> <div class="title-row">
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
</div>
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../index.html">Portal Home (/)</a> <a class="btn" href="../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../engineering/index.html">Engineering</a>
<a class="btn" href="../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="index.html" style="border-color:var(--gold);">Engineering Hub (E0)</a> <a class="btn" href="index.html" style="border-color:var(--gold);">Engineering Hub (E0)</a>
<a class="btn" href="ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a> <a class="btn" href="ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a> <a class="btn" href="knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a> <a class="btn" href="quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a> <a class="btn" href="mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a> <a class="btn" href="cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../math/index.html">Math Hub (/math/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Command-line navigation, files, and Git version control</li><li>How HTTP servers, JSON APIs, and static webroots operate</li><li>Self-Paced Learning Track (/learn/ Modules 1-6)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-6) &#x2197;</a></li><li><a href="https://missing.csail.mit.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT Missing Semester of Your CS Education (Shell, Git, CLI) &#x2197;</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — How the Web Works (HTTP, HTML, Servers) &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Command-line navigation, files, and Git version control</li><li>How HTTP servers, JSON APIs, and static webroots operate</li><li>Self-Paced Learning Track (/learn/ Modules 1-6)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-6) &#x2197;</a></li><li><a href="https://missing.csail.mit.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT Missing Semester of Your CS Education (Shell, Git, CLI) &#x2197;</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — How the Web Works (HTTP, HTML, Servers) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E0): Homoiconic S-Expressions, Static Readonly&lt;T&gt; Types &amp; Rust Option&lt;T&gt; Manifest Closure</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Manifest M = (version, repos=6, tools=15, cidv1=H(M))</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">manifest = introspect_engineering_manifest() <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E0): Homoiconic S-Expressions, Static Readonly&lt;T&gt; Types &amp; Rust Option&lt;T&gt; Manifest Closure</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Manifest M = (version, repos=6, tools=15, cidv1=H(M))</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">manifest = introspect_engineering_manifest()
@@ -50,7 +64,7 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
<section class="stats-row"> <section class="stats-row">
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Repositories</div><div style="font-size:1.35rem;font-weight:700;color:var(--gold);">6</div></div> <div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Repositories</div><div style="font-size:1.35rem;font-weight:700;color:var(--gold);">6</div></div>
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">CLI Entrypoints</div><div style="font-size:1.35rem;font-weight:700;color:var(--cyan);">19</div></div> <div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">CLI Entrypoints</div><div style="font-size:1.35rem;font-weight:700;color:var(--cyan);">20</div></div>
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">MCP &amp; REST Tools</div><div style="font-size:1.35rem;font-weight:700;color:var(--emerald);">20</div></div> <div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">MCP &amp; REST Tools</div><div style="font-size:1.35rem;font-weight:700;color:var(--emerald);">20</div></div>
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Pluggable Lenses</div><div style="font-size:1.35rem;font-weight:700;color:var(--gold);">6</div></div> <div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Pluggable Lenses</div><div style="font-size:1.35rem;font-weight:700;color:var(--gold);">6</div></div>
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Watchlist / FRED</div><div style="font-size:1.35rem;font-weight:700;color:var(--cyan);">24 / 14</div></div> <div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Watchlist / FRED</div><div style="font-size:1.35rem;font-weight:700;color:var(--cyan);">24 / 14</div></div>
@@ -76,7 +90,7 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
</div> </div>
<table id="engCliTable"> <table id="engCliTable">
<thead><tr><th>CLI Command</th><th>Python Module:Function Target</th></tr></thead> <thead><tr><th>CLI Command</th><th>Python Module:Function Target</th></tr></thead>
<tbody><tr><td><code>hs-archive-rotate</code></td><td><code>hyperstitionstud_io.publishing.archive_rotator:main</code></td></tr><tr><td><code>hs-citations</code></td><td><code>hyperstitionstud_io.ci.citation_sources:main</code></td></tr><tr><td><code>hs-closeups-sync</code></td><td><code>hyperstitionstud_io.publishing.closeups_sync:main</code></td></tr><tr><td><code>hs-daily-brief</code></td><td><code>hyperstitionstud_io.quant.daily_brief:main</code></td></tr><tr><td><code>hs-db-build</code></td><td><code>hyperstitionstud_io.db.sqlite_meta:main</code></td></tr><tr><td><code>hs-doctor</code></td><td><code>hyperstitionstud_io.ci.doctor:main</code></td></tr><tr><td><code>hs-eng-docs</code></td><td><code>hyperstitionstud_io.publishing.engineering_docs:main</code></td></tr><tr><td><code>hs-highlights</code></td><td><code>hyperstitionstud_io.publishing.highlights:main</code></td></tr><tr><td><code>hs-kg-build</code></td><td><code>hyperstitionstud_io.graph.cli:main</code></td></tr><tr><td><code>hs-macro-harvest</code></td><td><code>hyperstitionstud_io.quant.macro:main</code></td></tr><tr><td><code>hs-math-docs</code></td><td><code>hyperstitionstud_io.publishing.math_docs:main</code></td></tr><tr><td><code>hs-mcp</code></td><td><code>hyperstitionstud_io.mcp.server:main</code></td></tr><tr><td><code>hs-pdf-build</code></td><td><code>hyperstitionstud_io.publishing.pdf_compiler:main</code></td></tr><tr><td><code>hs-public-smoke</code></td><td><code>hyperstitionstud_io.ci.public_regression:main</code></td></tr><tr><td><code>hs-quant-harvest</code></td><td><code>hyperstitionstud_io.quant.collector:main</code></td></tr><tr><td><code>hs-quant-voice-build</code></td><td><code>hyperstitionstud_io.publishing.quant_voice:main</code></td></tr><tr><td><code>hs-readme-sync</code></td><td><code>hyperstitionstud_io.publishing.readme_sync:main</code></td></tr><tr><td><code>hs-sync-version</code></td><td><code>hyperstitionstud_io.version_sync:main</code></td></tr><tr><td><code>hs-ticker-card</code></td><td><code>hyperstitionstud_io.quant.cards:main</code></td></tr></tbody> <tbody><tr><td><code>hs-archive-rotate</code></td><td><code>hyperstitionstud_io.publishing.archive_rotator:main</code></td></tr><tr><td><code>hs-citations</code></td><td><code>hyperstitionstud_io.ci.citation_sources:main</code></td></tr><tr><td><code>hs-closeups-sync</code></td><td><code>hyperstitionstud_io.publishing.closeups_sync:main</code></td></tr><tr><td><code>hs-daily-brief</code></td><td><code>hyperstitionstud_io.quant.daily_brief:main</code></td></tr><tr><td><code>hs-db-build</code></td><td><code>hyperstitionstud_io.db.sqlite_meta:main</code></td></tr><tr><td><code>hs-deploy-scripts-sync</code></td><td><code>hyperstitionstud_io.ci.deploy_scripts_sync:main</code></td></tr><tr><td><code>hs-doctor</code></td><td><code>hyperstitionstud_io.ci.doctor:main</code></td></tr><tr><td><code>hs-eng-docs</code></td><td><code>hyperstitionstud_io.publishing.engineering_docs:main</code></td></tr><tr><td><code>hs-highlights</code></td><td><code>hyperstitionstud_io.publishing.highlights:main</code></td></tr><tr><td><code>hs-kg-build</code></td><td><code>hyperstitionstud_io.graph.cli:main</code></td></tr><tr><td><code>hs-macro-harvest</code></td><td><code>hyperstitionstud_io.quant.macro:main</code></td></tr><tr><td><code>hs-math-docs</code></td><td><code>hyperstitionstud_io.publishing.math_docs:main</code></td></tr><tr><td><code>hs-mcp</code></td><td><code>hyperstitionstud_io.mcp.server:main</code></td></tr><tr><td><code>hs-pdf-build</code></td><td><code>hyperstitionstud_io.publishing.pdf_compiler:main</code></td></tr><tr><td><code>hs-public-smoke</code></td><td><code>hyperstitionstud_io.ci.public_regression:main</code></td></tr><tr><td><code>hs-quant-harvest</code></td><td><code>hyperstitionstud_io.quant.collector:main</code></td></tr><tr><td><code>hs-quant-voice-build</code></td><td><code>hyperstitionstud_io.publishing.quant_voice:main</code></td></tr><tr><td><code>hs-readme-sync</code></td><td><code>hyperstitionstud_io.publishing.readme_sync:main</code></td></tr><tr><td><code>hs-sync-version</code></td><td><code>hyperstitionstud_io.version_sync:main</code></td></tr><tr><td><code>hs-ticker-card</code></td><td><code>hyperstitionstud_io.quant.cards:main</code></td></tr></tbody>
</table> </table>
<script> <script>
(function(){ (function(){
@@ -93,12 +107,13 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
</section> </section>
<footer> <footer>
hyperstitionstud.io/engineering v2.13.0 &bull; CIDv1: <code>baguqeerabpp7hvwoe5m7s6vkdvzk23wfccb...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/engineering v2.17.0 &bull; CIDv1: <code>baguqeeralhggheqvujuoexizpm3m2ygjxh4...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="engineering-manifest-data.js?v=2.13.0"></script> <script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="engineering-app.js?v=2.13.0"></script> <script src="engineering-manifest-data.js?v=2.17.0"></script>
<script src="engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -136,6 +151,6 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.13.0)</title> <title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine</h1> <div class="title-row">
<p class="subtitle">Cartridge E2 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine</h1>
</div>
<p class="subtitle">Cartridge E2 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a> <a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E2: Knowledge Graph & SQLite</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a> <a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a> <a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a> <a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3-4: Databases, Cryptographic Hashing & OS Concurrency (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Cryptographic hash functions (SHA-256) and Python context managers (with / __exit__)</li><li>Relational schemas, inverted full-text search indices (SQLite FTS5), and graph representations</li><li>ACID transactions, Write-Ahead Logging (WAL), and BEGIN EXCLUSIVE file locking</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.sqlite.org/wal.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite Write-Ahead Logging (WAL) Architecture &#x2197;</a></li><li><a href="https://www.sqlite.org/fts5.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite FTS5 Full-Text Search Extension Docs &#x2197;</a></li><li><a href="https://15445.courses.cs.cmu.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU 15-445/645 (Intro to Database Systems — Andy Pavlo) &#x2197;</a></li><li><a href="https://docs.python.org/3/library/contextlib.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python contextlib & Context Manager Documentation &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3-4: Databases, Cryptographic Hashing & OS Concurrency (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Cryptographic hash functions (SHA-256) and Python context managers (with / __exit__)</li><li>Relational schemas, inverted full-text search indices (SQLite FTS5), and graph representations</li><li>ACID transactions, Write-Ahead Logging (WAL), and BEGIN EXCLUSIVE file locking</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.sqlite.org/wal.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite Write-Ahead Logging (WAL) Architecture &#x2197;</a></li><li><a href="https://www.sqlite.org/fts5.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite FTS5 Full-Text Search Extension Docs &#x2197;</a></li><li><a href="https://15445.courses.cs.cmu.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU 15-445/645 (Intro to Database Systems — Andy Pavlo) &#x2197;</a></li><li><a href="https://docs.python.org/3/library/contextlib.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python contextlib & Context Manager Documentation &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E2): Pre/Post SHA-256 Read-Only Isolation Guard &amp; Borrow Checking</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Guard(f): H_pre == H_expected ∧ H_post == H_pre</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">with ReadOnlyIsolationGuard(cfg.read_only_files) as guard: <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E2): Pre/Post SHA-256 Read-Only Isolation Guard &amp; Borrow Checking</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Guard(f): H_pre == H_expected ∧ H_post == H_pre</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
@@ -50,12 +64,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-app.js?v=2.13.0"></script> <script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -93,6 +108,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.13.0)</title> <title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,27 +22,40 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1</h1> <div class="title-row">
<p class="subtitle">Cartridge E4 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1</h1>
</div>
<p class="subtitle">Cartridge E4 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a> <a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a> <a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a> <a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E4: MCP, REST & IPLD CIDv1</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a> <a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Network Protocols, OpenAPI 3.1 & Content-Addressed Storage (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP/1.1 request/response lifecycles, status codes (200, 404, 422, 500, 502), and reverse proxies</li><li>JSON-RPC 2.0, OpenAPI 3.1.0 schema generation, and Model Context Protocol (MCP)</li><li>Canonical JSON serialization, SHA-256 multihashes, and IPLD dag-json (0x0129) CIDv1</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — HTTP Protocol & Status Codes &#x2197;</a></li><li><a href="https://www.jsonrpc.org/specification" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">JSON-RPC 2.0 Official Specification &#x2197;</a></li><li><a href="https://modelcontextprotocol.io/introduction" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Model Context Protocol (MCP) Architecture Introduction &#x2197;</a></li><li><a href="https://proto.school/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">ProtoSchool — Content Identifiers (CIDs) & IPLD Merkle DAGs &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Network Protocols, OpenAPI 3.1 & Content-Addressed Storage (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP/1.1 request/response lifecycles, status codes (200, 404, 422, 500, 502), and reverse proxies</li><li>JSON-RPC 2.0, OpenAPI 3.1.0 schema generation, and Model Context Protocol (MCP)</li><li>Canonical JSON serialization, SHA-256 multihashes, and IPLD dag-json (0x0129) CIDv1</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — HTTP Protocol & Status Codes &#x2197;</a></li><li><a href="https://www.jsonrpc.org/specification" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">JSON-RPC 2.0 Official Specification &#x2197;</a></li><li><a href="https://modelcontextprotocol.io/introduction" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Model Context Protocol (MCP) Architecture Introduction &#x2197;</a></li><li><a href="https://proto.school/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">ProtoSchool — Content Identifiers (CIDs) & IPLD Merkle DAGs &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E4): JSON-RPC 2.0 Tool Dispatch &amp; &#x27;envideea&#x27; = 137 (33rd Prime)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Dispatch(name, args) → ToolTable[name](args)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">res = call_mcp_tool(target_tool, t_args)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(list &#x27;jsonrpc-2.0 &#x27;tool &quot;hs_evaluate_aq_and_ingglish&quot; (aq-base36 &quot;envideea&quot;))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(list &#x27;jsonrpc-2.0 &#x27;tool &quot;hs_evaluate_aq_and_ingglish&quot; (aq-base36 &quot;envideea&quot;))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="aqBase36(&quot;envideea&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">aqBase36(&quot;envideea&quot;)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="mcp_dispatch_aq(&quot;envideea&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">mcp_dispatch_aq(&quot;envideea&quot;)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Evaluate &quot;envideea&quot; =&gt; 137 across Guile, TypeScript, and Rust.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E4): JSON-RPC 2.0 Tool Dispatch &amp; &#x27;envideea&#x27; = 137 (33rd Prime)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Dispatch(name, args) → ToolTable[name](args)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">res = call_mcp_tool(target_tool, t_args)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(list &#x27;jsonrpc-2.0 &#x27;tool &quot;hs_evaluate_aq_and_ingglish&quot; (aq-base36 &quot;envideea&quot;))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(list &#x27;jsonrpc-2.0 &#x27;tool &quot;hs_evaluate_aq_and_ingglish&quot; (aq-base36 &quot;envideea&quot;))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="aqBase36(&quot;envideea&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">aqBase36(&quot;envideea&quot;)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="mcp_dispatch_aq(&quot;envideea&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">mcp_dispatch_aq(&quot;envideea&quot;)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Evaluate &quot;envideea&quot; =&gt; 137 across Guile, TypeScript, and Rust.</div></section>
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Unified Stateless MCP (/mcp) & Chatbot OpenAPI 3.1.0 REST Adapter (/api/v1/*)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">mcp/server.py and mcp/rest.py expose all 15 tools in MCP_TOOLS_SCHEMA over stdio, Streamable HTTP POST/GET /mcp, and /api/v1/tools/{tool_name} on 127.0.0.1:8095. Top-level exception guards in _MCPHTTPHandler and record_api_telemetry() ensure sqlite3.OperationalError or read-only filesystem states never drop connections or trigger 502 Bad Gateway.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. One-Shot .png + .json Ticker Stats Cards (quant/cards.py) & Canonical IPLD dag-json (0x0129)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">hs_generate_ticker_stats_card compiles a 5-zone 900x1260 Group 3 Stealth Basalt PNG card and companion JSON payload in one shot (with draw_fitted_text() width clamping and ink-bbox midpoint centering). ipld/__init__.py serializes canonical UTF-8 dag-json and prefixes SHA-256 digests with [0x01, 0xA9, 0x02, 0x12, 0x20] to form Base32 CIDv1 ('baguqeera...').</p></article><section id="live-smoke-probe" class="panel hs-plate-g3 plate-lock-emerald" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.6rem;margin-bottom:0.55rem;"><h2 style="font-size:0.92rem;color:var(--emerald);">&#x269B; Live API &amp; IPLD CIDv1 ETag 304 Conditional Cache Probe (#live-smoke-probe)</h2><button type="button" id="runLiveEtagProbeBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);font-weight:700;">&#x269B; Run Live /api/v1/status &amp; ETag 304 Probe</button></div><p style="font-size:0.74rem;color:var(--text-secondary);margin-bottom:0.5rem;">Fetches <code>/api/v1/status</code> twice (sending <code>If-None-Match: &lt;ETag&gt;</code> on the second request) to verify deterministic RFC 8785 JCS + IPLD <code>dag-json</code> <code>CIDv1</code> HTTP caching and <code>ReadOnlyIsolationGuard</code> status.</p><pre id="liveEtagProbeOutput" style="padding:0.65rem 0.85rem;font-size:0.73rem;color:var(--cyan);border:1px solid var(--border);overflow-x:auto;">Click "Run Live /api/v1/status &amp; ETag 304 Probe" to inspect live HTTP ETag &amp; ReadOnlyIsolationGuard headers.</pre><script>(function(){var btn=document.getElementById("runLiveEtagProbeBtn"),out=document.getElementById("liveEtagProbeOutput");if(!btn||!out)return;function runProbe(){out.textContent="Probing /api/v1/status ...";var t0=performance.now();fetch("/api/v1/status",{cache:"no-store"}).then(function(r1){var dt1=(performance.now()-t0).toFixed(1),etag=r1.headers.get("ETag")||"";return r1.json().then(function(j1){var t1=performance.now();return fetch("/api/v1/status",{headers:etag?{"If-None-Match":etag}:{}}).then(function(r2){var dt2=(performance.now()-t1).toFixed(1);out.textContent="[1st Request GET /api/v1/status]: HTTP "+r1.status+" ("+dt1+" ms)\n"+"[ETag Header (IPLD dag-json CIDv1)]: "+(etag||"(offline/file mode)")+"\n"+"[2nd Request with If-None-Match]: HTTP "+r2.status+" ("+dt2+" ms)\n"+"[Ecosystem Version & Isolation]: v"+((j1&&j1.version)||"2.13.0")+" • ReadOnlyIsolationGuard: PASS";});});}).catch(function(){out.textContent="[Offline / Static File Mode]: Manifest CIDv1 verified via window.HYPERSTITION_ENGINEERING_MANIFEST ("+((window.HYPERSTITION_ENGINEERING_MANIFEST&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1["/"])||"verified")+")";});}btn.addEventListener("click",runProbe);if(window.location.hash==="#live-smoke-probe")runProbe();})();</script></section> <article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Unified Stateless MCP (/mcp) & Chatbot OpenAPI 3.1.0 REST Adapter (/api/v1/*)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">mcp/server.py and mcp/rest.py expose all 15 tools in MCP_TOOLS_SCHEMA over stdio, Streamable HTTP POST/GET /mcp, and /api/v1/tools/{tool_name} on 127.0.0.1:8095. Top-level exception guards in _MCPHTTPHandler and record_api_telemetry() ensure sqlite3.OperationalError or read-only filesystem states never drop connections or trigger 502 Bad Gateway.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. One-Shot .png + .json Ticker Stats Cards (quant/cards.py) & Canonical IPLD dag-json (0x0129)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">hs_generate_ticker_stats_card compiles a 5-zone 900x1260 Group 3 Stealth Basalt PNG card and companion JSON payload in one shot (with draw_fitted_text() width clamping and ink-bbox midpoint centering). ipld/__init__.py serializes canonical UTF-8 dag-json and prefixes SHA-256 digests with [0x01, 0xA9, 0x02, 0x12, 0x20] to form Base32 CIDv1 ('baguqeera...').</p></article><section id="live-smoke-probe" class="panel hs-plate-g3 plate-lock-emerald" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.6rem;margin-bottom:0.55rem;"><h2 style="font-size:0.92rem;color:var(--emerald);">&#x269B; Live API &amp; IPLD CIDv1 ETag 304 Conditional Cache Probe (#live-smoke-probe)</h2><button type="button" id="runLiveEtagProbeBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);font-weight:700;">&#x269B; Run Live /api/v1/status &amp; ETag 304 Probe</button></div><p style="font-size:0.74rem;color:var(--text-secondary);margin-bottom:0.5rem;">Fetches <code>/api/v1/status</code> twice (sending <code>If-None-Match: &lt;ETag&gt;</code> on the second request) to verify deterministic RFC 8785 JCS + IPLD <code>dag-json</code> <code>CIDv1</code> HTTP caching and <code>ReadOnlyIsolationGuard</code> status.</p><pre id="liveEtagProbeOutput" style="padding:0.65rem 0.85rem;font-size:0.73rem;color:var(--cyan);border:1px solid var(--border);overflow-x:auto;">Click "Run Live /api/v1/status &amp; ETag 304 Probe" to inspect live HTTP ETag &amp; ReadOnlyIsolationGuard headers.</pre><script>(function(){var btn=document.getElementById("runLiveEtagProbeBtn"),out=document.getElementById("liveEtagProbeOutput");if(!btn||!out)return;function runProbe(){out.textContent="Probing /api/v1/status ...";var t0=performance.now();fetch("/api/v1/status",{cache:"no-store"}).then(function(r1){var dt1=(performance.now()-t0).toFixed(1),etag=r1.headers.get("ETag")||"";return r1.json().then(function(j1){var t1=performance.now();return fetch("/api/v1/status",{headers:etag?{"If-None-Match":etag}:{}}).then(function(r2){var dt2=(performance.now()-t1).toFixed(1);out.textContent="[1st Request GET /api/v1/status]: HTTP "+r1.status+" ("+dt1+" ms)\n"+"[ETag Header (IPLD dag-json CIDv1)]: "+(etag||"(offline/file mode)")+"\n"+"[2nd Request with If-None-Match]: HTTP "+r2.status+" ("+dt2+" ms)\n"+"[Ecosystem Version & Isolation]: v"+((j1&&j1.version)||"2.17.0")+" • ReadOnlyIsolationGuard: PASS";});});}).catch(function(){out.textContent="[Offline / Static File Mode]: Manifest CIDv1 verified via window.HYPERSTITION_ENGINEERING_MANIFEST ("+((window.HYPERSTITION_ENGINEERING_MANIFEST&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1["/"])||"verified")+")";});}btn.addEventListener("click",runProbe);if(window.location.hash==="#live-smoke-probe")runProbe();})();</script></section>
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;"> <div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html">&larr; Prev: E3: Quant, Macro & Bayesian</a> <a class="btn" href="../quant-macro-and-bayesian-brief/index.html">&larr; Prev: E3: Quant, Macro & Bayesian</a>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-app.js?v=2.13.0"></script> <script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.13.0)</title> <title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief</h1> <div class="title-row">
<p class="subtitle">Cartridge E3 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief</h1>
</div>
<p class="subtitle">Cartridge E3 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a> <a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a> <a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E3: Quant, Macro & Bayesian</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a> <a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a> <a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3: Data Engineering, Time-Series Ingestion & Strategy Registries (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP JSON/CSV client ingestion (urllib.request) and resilient fallback chains</li><li>Missing-data domain representation (None / null vs. silent 0.0 corruption)</li><li>Pluggable projection registries (LENS_REGISTRY) and state-machine persistence</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../quant/index.html" style="color:var(--cyan);">Internal: /quant/ Interactive Guided Canvas Tour (5 Episodes) &#x2197;</a></li><li><a href="https://docs.python.org/3/library/urllib.request.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python urllib.request & json Standard Library Documentation &#x2197;</a></li><li><a href="https://fredhelp.stlouisfed.org/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">St. Louis Federal Reserve (FRED) Series & CSV Documentation &#x2197;</a></li><li><a href="https://refactoring.guru/design-patterns/python" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Refactoring.Guru — Strategy & Adapter Design Patterns in Python &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3: Data Engineering, Time-Series Ingestion & Strategy Registries (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP JSON/CSV client ingestion (urllib.request) and resilient fallback chains</li><li>Missing-data domain representation (None / null vs. silent 0.0 corruption)</li><li>Pluggable projection registries (LENS_REGISTRY) and state-machine persistence</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../quant/index.html" style="color:var(--cyan);">Internal: /quant/ Interactive Guided Canvas Tour (5 Episodes) &#x2197;</a></li><li><a href="https://docs.python.org/3/library/urllib.request.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python urllib.request & json Standard Library Documentation &#x2197;</a></li><li><a href="https://fredhelp.stlouisfed.org/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">St. Louis Federal Reserve (FRED) Series & CSV Documentation &#x2197;</a></li><li><a href="https://refactoring.guru/design-patterns/python" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Refactoring.Guru — Strategy & Adapter Design Patterns in Python &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E3): Zero-Synthetic Missing-Data Semantics (#f / boolean / Option&lt;f64&gt;)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>D_{i,t} = ∑_{s=1}^4 I(Species_s) ∈ {0..4}, Closed/Private = null</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">dose = sum(1 for flag in (s1, s2, s3, s4) if flag)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(confluence-dose &#x27;(#t #t #t #f))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(confluence-dose &#x27;(#t #t #t #f))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="[true, true, true, false].filter(Boolean).length" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">[true, true, true, false].filter(Boolean).length</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="[Some(135.4), None, Some(138.2)].iter().filter_map(|&amp;x| x).count()" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">[Some(135.4), None, Some(138.2)].iter().filter_map(|&amp;x| x).count()</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Observe how Scheme #f, TypeScript filter(Boolean), and Rust Option::filter_map eliminate synthetic 0.0 fabrication.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E3): Zero-Synthetic Missing-Data Semantics (#f / boolean / Option&lt;f64&gt;)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>D_{i,t} = ∑_{s=1}^4 I(Species_s) ∈ {0..4}, Closed/Private = null</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">dose = sum(1 for flag in (s1, s2, s3, s4) if flag)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(confluence-dose &#x27;(#t #t #t #f))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(confluence-dose &#x27;(#t #t #t #f))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="[true, true, true, false].filter(Boolean).length" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">[true, true, true, false].filter(Boolean).length</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="[Some(135.4), None, Some(138.2)].iter().filter_map(|&amp;x| x).count()" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">[Some(135.4), None, Some(138.2)].iter().filter_map(|&amp;x| x).count()</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Observe how Scheme #f, TypeScript filter(Boolean), and Rust Option::filter_map eliminate synthetic 0.0 fabrication.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-app.js?v=2.13.0"></script> <script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
+21 -11
View File
@@ -4,12 +4,13 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Memetic Artifact &amp; Visual Atlas Gallery — hyperstitionstud.io</title> <title>Memetic Artifact &amp; Visual Atlas Gallery — hyperstitionstud.io</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
:root { :root {
--bg-canvas: #020617; --bg-canvas: #020617;
--bg-panel: #0f172a; --bg-panel: #0c1324;
--bg-card: #1e293b; --bg-card: #0c1324;
--border: #334155; --border: #26344d;
--text-main: #f8fafc; --text-main: #f8fafc;
--text-muted: #94a3b8; --text-muted: #94a3b8;
--cyan: #22d3ee; --cyan: #22d3ee;
@@ -189,14 +190,22 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>MEMETIC ARTIFACT &amp; VISUAL ATLAS GALLERY // HYPERSTITIONSTUD.IO</h1> <div class="title-row">
<p class="subtitle">Read-Only Specimen Browser Across Pokedex Field Cards, Philosophical &amp; Stand-Up Exegesis, Template Benchmarks &amp; ETI Visual Boards</p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>MEMETIC ARTIFACT &amp; VISUAL ATLAS GALLERY // HYPERSTITIONSTUD.IO</h1>
</div>
<p class="subtitle">Read-Only Specimen Browser Across Pokedex Field Cards, Philosophical &amp; Stand-Up Exegesis, Template Benchmarks &amp; ETI Visual Boards <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="navHome" href="../index.html">&larr; Portal Home</a> <a class="btn" id="navHome" href="../index.html">Portal Home (/)</a>
<a class="btn" id="navLearn" href="../learn/index.html">Learning Track</a> <a class="btn" id="navCalc" href="/calc/index.html">Calculator</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph</a> <a class="btn" id="navQuant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator</a> <a class="btn" id="navGraph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" id="navLearn" href="../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" id="navEng" href="../engineering/index.html">Engineering</a>
<a class="btn" id="navMath" href="../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" id="navDonate" href="../donate/index.html?from=gallery" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav> </nav>
</header> </header>
@@ -217,7 +226,7 @@
<main class="gallery-grid" id="galleryGrid"></main> <main class="gallery-grid" id="galleryGrid"></main>
<footer> <footer>
<div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.13.0)</div> <div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.17.0)</div>
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div> <div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div>
</footer> </footer>
</div> </div>
@@ -390,5 +399,6 @@
renderGrid(); renderGrid();
})(); })();
</script> </script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body> </body>
</html> </html>
+6 -5
View File
@@ -4,8 +4,8 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hyperstitionstud.io — Technocapital Singularity Zoology &amp; Alphanumeric Qabbala Workbench</title> <title>hyperstitionstud.io — Technocapital Singularity Zoology &amp; Alphanumeric Qabbala Workbench</title>
<link rel="prefetch" href="/graph/graph-data.js?v=2.13.0" as="script" /> <link rel="prefetch" href="/graph/graph-data.js?v=2.17.0" as="script" />
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
:root { :root {
--bg-canvas: #020617; --bg-canvas: #020617;
@@ -151,7 +151,7 @@
<span class="dot"></span> <span class="dot"></span>
<h1>HYPERSTITIONSTUD.IO // SINGULARITY ZOOLOGY WORKBENCH</h1> <h1>HYPERSTITIONSTUD.IO // SINGULARITY ZOOLOGY WORKBENCH</h1>
</div> </div>
<p class="subtitle">100% Offline-Portable &amp; HTTP/3 Edge-Ready Research Corpus &bull; Namespace Authority: urn:io:hyperstitionstud (v2.13.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">100% Offline-Portable &amp; HTTP/3 Edge-Ready Research Corpus &bull; Namespace Authority: urn:io:hyperstitionstud (v2.17.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<div class="meta-badges"> <div class="meta-badges">
<a class="btn primary" data-route="calc-app" href="/calc/index.html">Calculator</a> <a class="btn primary" data-route="calc-app" href="/calc/index.html">Calculator</a>
@@ -313,12 +313,12 @@
</main> </main>
<footer> <footer>
<div>hyperstitionstud.io &bull; Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.13.0) &bull; Zero External Network Dependencies</div> <div>hyperstitionstud.io &bull; Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.17.0) &bull; Zero External Network Dependencies</div>
<div class="hs-lemur-credit" style="margin-top:0.35rem;color:var(--text-muted);font-size:0.75rem;"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</div> <div class="hs-lemur-credit" style="margin-top:0.35rem;color:var(--text-muted);font-size:0.75rem;"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</div>
</footer> </footer>
</div> </div>
<script src="assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script> <script>
// Automatic offline file:// relative-path adaptation when opened directly from hyperstitionstudio-core/site/index.html // Automatic offline file:// relative-path adaptation when opened directly from hyperstitionstudio-core/site/index.html
(function() { (function() {
@@ -371,5 +371,6 @@
}); });
})(); })();
</script> </script>
<script src="assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body> </body>
</html> </html>
+32 -24
View File
@@ -4,13 +4,13 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Self-Paced Learning Track — hyperstitionstud.io (Base-36 AQ, Ingglish &amp; Technocapital Zoology)</title> <title>Self-Paced Learning Track — hyperstitionstud.io (Base-36 AQ, Ingglish &amp; Technocapital Zoology)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
:root { :root {
--bg-canvas: #020617; --bg-canvas: #020617;
--bg-panel: #0f172a; --bg-panel: #0c1324;
--bg-card: #1e293b; --bg-card: #0c1324;
--border: #334155; --border: #26344d;
--text-main: #f8fafc; --text-main: #f8fafc;
--text-muted: #94a3b8; --text-muted: #94a3b8;
--cyan: #22d3ee; --cyan: #22d3ee;
@@ -35,25 +35,28 @@
border: 1px solid var(--border); border: 1px solid var(--border);
border-left: 4px solid var(--emerald); border-left: 4px solid var(--emerald);
border-radius: 10px; border-radius: 10px;
padding: 1.2rem 1.5rem; padding: 1.1rem 1.35rem;
margin-bottom: 1rem; margin-bottom: 1.15rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: nowrap;
gap: 1rem; gap: 0.85rem;
} }
h1 { font-size: 1.25rem; font-weight: 700; } @media (max-width: 1220px) {
.subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; } header { flex-wrap: wrap; }
.top-nav { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { font-size: 0.71rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.btn { .btn {
text-decoration: none; text-decoration: none;
background: var(--bg-card); background: var(--bg-card);
color: var(--text-main); color: var(--text-main);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 5px; border-radius: 5px;
padding: 0.45rem 0.8rem; padding: 0.34rem 0.62rem;
font-size: 0.74rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
font-family: inherit; font-family: inherit;
@@ -211,16 +214,20 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>SELF-PACED INTERACTIVE LEARNING TRACK // HYPERSTITIONSTUD.IO</h1> <div class="title-row">
<span class="dot" style="background:var(--emerald);box-shadow:0 0 10px var(--emerald);" aria-hidden="true"></span>
<h1>SELF-PACED INTERACTIVE LEARNING TRACK // HYPERSTITIONSTUD.IO</h1>
</div>
<p class="subtitle">From Base-36 Alphanumeric Qabbala &amp; CMUdict Ingglish to Technocapital Singularity Zoology &bull; 100% Anonymous Local State Save &amp; Load <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">From Base-36 Alphanumeric Qabbala &amp; CMUdict Ingglish to Technocapital Singularity Zoology &bull; 100% Anonymous Local State Save &amp; Load <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" data-learn-route="nav-home" href="../index.html">&larr; Portal Home</a> <a class="btn" data-learn-route="nav-home" href="../index.html">Portal Home (/)</a>
<a class="btn" data-learn-route="nav-quant" href="/quant/index.html">Time-Series (/quant/)</a> <a class="btn" data-learn-route="nav-calc" href="/calc/index.html">Calculator</a>
<a class="btn" data-learn-route="nav-eng" href="/engineering/index.html">Engineering (/engineering/)</a> <a class="btn" data-learn-route="nav-quant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" data-learn-route="nav-math" href="/math/index.html">Applied Math (/math/)</a> <a class="btn" data-learn-route="nav-graph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" data-learn-route="nav-graph" href="/graph/index.html">Knowledge Graph</a> <a class="btn primary" data-learn-route="nav-learn" aria-current="page" href="/learn/index.html">Learn</a>
<a class="btn" data-learn-route="nav-calc" href="/calc/index.html">AQ Calculator</a> <a class="btn" data-learn-route="nav-eng" href="/engineering/index.html">Engineering</a>
<a class="btn" data-learn-route="nav-math" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span> <span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" data-learn-route="nav-donate" href="/donate/index.html?from=learn" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a> <a class="btn-donate-pill" data-learn-route="nav-donate" href="/donate/index.html?from=learn" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav> </nav>
@@ -421,12 +428,13 @@
</main> </main>
<footer> <footer>
<div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.13.0)</div> <div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.17.0)</div>
<div class="hs-lemur-credit"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div> <div class="hs-lemur-credit"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div>
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="learn-app.js?v=2.13.0"></script> <script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="learn-app.js?v=2.17.0"></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -265,7 +265,7 @@
const base = { const base = {
$schema: "../schemas/v1/learn-progress-state.schema.json", $schema: "../schemas/v1/learn-progress-state.schema.json",
$id: SCHEMA_ID, $id: SCHEMA_ID,
version: "2.13.0", version: "2.17.0",
updated_at_utc: new Date().toISOString(), updated_at_utc: new Date().toISOString(),
preferred_register: "fund_manager", preferred_register: "fund_manager",
completed_modules: [], completed_modules: [],
+36 -21
View File
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.13.0)</title> <title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)</h1> <div class="title-row">
<p class="subtitle">Cartridge M1 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)</h1>
</div>
<p class="subtitle">Cartridge M1 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M1: Base-36 & Primes</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a> <a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a> <a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a> <a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a> <a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)</li><li>Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)</li><li>Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 (Base-36 Valuation Table) &#x2197;</a></li><li><a href="https://www.khanacademy.org/computing/computer-science/cryptography" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Cryptography & Modular Arithmetic &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory) &#x2197;</a></li><li><a href="https://www.3blue1brown.com/topics/number-theory" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Prime Numbers & Number Theory Visualized &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)</li><li>Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)</li><li>Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 (Base-36 Valuation Table) &#x2197;</a></li><li><a href="https://www.khanacademy.org/computing/computer-science/cryptography" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Cryptography & Modular Arithmetic &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory) &#x2197;</a></li><li><a href="https://www.3blue1brown.com/topics/number-theory" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Prime Numbers & Number Theory Visualized &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M1): Base-36 Semiring Valuation, Mod-9 Root &amp; Prime Factorization</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>666 = 2 × 3² × 37, 777 = 3 × 7 × 37, dr_9(n) = 1 + ((n - 1) mod 9)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">compute_aq(&#x27;envideea&#x27;) == 137 # 33rd prime</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(prime-factors 666)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(prime-factors 666)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="primeFactors(666)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">primeFactors(666)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="prime_factors(666_u64)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">prime_factors(666_u64)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Factor 666 or 777 across Guile Scheme, TypeScript, and Rust in the 4-Ring Hardened REPL.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M1): Base-36 Semiring Valuation, Mod-9 Root &amp; Prime Factorization</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>666 = 2 × 3² × 37, 777 = 3 × 7 × 37, dr_9(n) = 1 + ((n - 1) mod 9)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">compute_aq(&#x27;envideea&#x27;) == 137 # 33rd prime</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(prime-factors 666)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(prime-factors 666)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="primeFactors(666)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">primeFactors(666)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="prime_factors(666_u64)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">prime_factors(666_u64)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Factor 666 or 777 across Guile Scheme, TypeScript, and Rust in the 4-Ring Hardened REPL.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/math/base36-algebra-and-primes v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/math/base36-algebra-and-primes v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-app.js?v=2.13.0"></script> <script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.13.0)</title> <title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY</h1> <div class="title-row">
<p class="subtitle">Cartridge M3 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY</h1>
</div>
<p class="subtitle">Cartridge M3 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a> <a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a> <a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M3: Graph & ETI Math</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a> <a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a> <a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3: Graph Theory, Convex Linear Combinations & Affine Maps (12-18 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Directed multigraphs G = (V, E), k-partite vertex partitions, and vertex degree deg(v)</li><li>Vectors in R^6, inner products w · s, and convex combinations (∑ w_k = 1, w_k ≥ 0)</li><li>Lexicographic total orderings and invertible affine rescaling maps</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/topics/linear-algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Essence of Linear Algebra (Vectors & Dot Products) &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 9-11 Graph Theory) &#x2197;</a></li><li><a href="https://diestel-graph-theory.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Diestel — Graph Theory (Free Electronic Edition, Ch. 1 Basics) &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3: Graph Theory, Convex Linear Combinations & Affine Maps (12-18 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Directed multigraphs G = (V, E), k-partite vertex partitions, and vertex degree deg(v)</li><li>Vectors in R^6, inner products w · s, and convex combinations (∑ w_k = 1, w_k ≥ 0)</li><li>Lexicographic total orderings and invertible affine rescaling maps</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/topics/linear-algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Essence of Linear Algebra (Vectors & Dot Products) &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 9-11 Graph Theory) &#x2197;</a></li><li><a href="https://diestel-graph-theory.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Diestel — Graph Theory (Free Electronic Edition, Ch. 1 Basics) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M3): Convex ETI Functional (∑ w_k = 1, S1 Apex = 93.08)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>ETI = (1/5)CAP + (9/50)COL + (9/50)ARM + (4/25)PRM + (7/50)VEL + (7/50)RES</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">0.20*cap + 0.18*col + 0.18*arm + 0.16*prm + 0.14*vel + 0.14*res</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(+ 1/5 9/50 9/50 4/25 7/50 7/50)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(+ 1/5 9/50 9/50 4/25 7/50 7/50)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="etiScore({cap: 95, col: 92, arm: 94, prm: 90, vel: 91, res: 96})" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">etiScore({cap: 95, col: 92, arm: 94, prm: 90, vel: 91, res: 96})</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="eti_score(95.0, 92.0, 94.0, 90.0, 91.0, 96.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">eti_score(95.0, 92.0, 94.0, 90.0, 91.0, 96.0)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Verify the convex weights and composite ETI score across Guile, TypeScript, and Rust.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M3): Convex ETI Functional (∑ w_k = 1, S1 Apex = 93.08)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>ETI = (1/5)CAP + (9/50)COL + (9/50)ARM + (4/25)PRM + (7/50)VEL + (7/50)RES</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">0.20*cap + 0.18*col + 0.18*arm + 0.16*prm + 0.14*vel + 0.14*res</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(+ 1/5 9/50 9/50 4/25 7/50 7/50)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(+ 1/5 9/50 9/50 4/25 7/50 7/50)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="etiScore({cap: 95, col: 92, arm: 94, prm: 90, vel: 91, res: 96})" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">etiScore({cap: 95, col: 92, arm: 94, prm: 90, vel: 91, res: 96})</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="eti_score(95.0, 92.0, 94.0, 90.0, 91.0, 96.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">eti_score(95.0, 92.0, 94.0, 90.0, 91.0, 96.0)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Verify the convex weights and composite ETI score across Guile, TypeScript, and Rust.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-app.js?v=2.13.0"></script> <script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
+36 -21
View File
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mathematical Foundations &amp; Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.13.0)</title> <title>Mathematical Foundations &amp; Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.12rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; } .grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; } .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.stat-tile { padding: 0.7rem 0.85rem; text-align: center; } .stat-tile { padding: 0.7rem 0.85rem; text-align: center; }
@@ -24,23 +25,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1> <div class="title-row">
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
</div>
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../index.html">Portal Home (/)</a> <a class="btn" href="../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="index.html" style="border-color:var(--gold);">Math Hub (M0)</a> <a class="btn" href="index.html" style="border-color:var(--gold);">Math Hub (M0)</a>
<a class="btn" href="base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a> <a class="btn" href="base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a> <a class="btn" href="phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a> <a class="btn" href="graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a> <a class="btn" href="timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a> <a class="btn" href="macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../engineering/index.html">Engineering Hub (/engineering/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Variables, functions f(x), and subscript/index notation x_i</li><li>Summation operator ∑_{i=1}^n x_i and absolute value |x|</li><li>Self-Paced Learning Track (/learn/ Modules 1-2)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-2) &#x2197;</a></li><li><a href="https://www.khanacademy.org/math/algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Algebra & Summation (Σ) Notation &#x2197;</a></li><li><a href="https://openstax.org/details/books/precalculus-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9) &#x2197;</a></li><li><a href="https://sarabander.github.io/sicp/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Structure and Interpretation of Computer Programs (SICP — Free MIT Text) &#x2197;</a></li><li><a href="https://www.gnu.org/software/guile/manual/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">GNU Guile Scheme Official Reference Manual &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Variables, functions f(x), and subscript/index notation x_i</li><li>Summation operator ∑_{i=1}^n x_i and absolute value |x|</li><li>Self-Paced Learning Track (/learn/ Modules 1-2)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-2) &#x2197;</a></li><li><a href="https://www.khanacademy.org/math/algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Algebra & Summation (Σ) Notation &#x2197;</a></li><li><a href="https://openstax.org/details/books/precalculus-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9) &#x2197;</a></li><li><a href="https://sarabander.github.io/sicp/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Structure and Interpretation of Computer Programs (SICP — Free MIT Text) &#x2197;</a></li><li><a href="https://www.gnu.org/software/guile/manual/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">GNU Guile Scheme Official Reference Manual &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M0): Applicative-Order Z Combinator, TypeScript Array.reduce &amp; Rust Range.fold</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>Z = λf. (λx. f (λv. (x x) v)) (λx. f (λv. (x x) v)), ∑_{i=1}^{10} i = 55</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);"># Strict applicative-order fixed-point combinator (z-calculus-scheme) <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M0): Applicative-Order Z Combinator, TypeScript Array.reduce &amp; Rust Range.fold</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>Z = λf. (λx. f (λv. (x x) v)) (λx. f (λv. (x x) v)), ∑_{i=1}^{10} i = 55</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);"># Strict applicative-order fixed-point combinator (z-calculus-scheme)
@@ -59,12 +73,13 @@ Z = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)
</section> </section>
<footer> <footer>
hyperstitionstud.io/math v2.13.0 &bull; CIDv1: <code>baguqeeraydkixdw7qppenlllut53khkooic...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/math v2.17.0 &bull; CIDv1: <code>baguqeerawoxbn5nceunfl7ndrduowkfboz5...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="math-manifest-data.js?v=2.13.0"></script> <script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="math-app.js?v=2.13.0"></script> <script src="math-manifest-data.js?v=2.17.0"></script>
<script src="math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -102,6 +117,6 @@ Z = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.13.0)</title> <title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds</h1> <div class="title-row">
<p class="subtitle">Cartridge M5 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds</h1>
</div>
<p class="subtitle">Cartridge M5 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a> <a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a> <a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a> <a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a> <a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M5: Macro & Bayesian Math</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Bayesian Inference, Combinatorial Collision Bounds & Macroeconomics (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Conditional probability P(A | B) and Bayes' Theorem on the 3-state simplex Δ²</li><li>Multiple-hypothesis testing, Birthday Problem collision rates, and degrees of freedom df = n - 2</li><li>Equation of Exchange MV = PQ (V_M2 = GDP / M2), term structure slopes, and real deflation</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/lessons/bayes-theorem" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Bayes' Theorem, The Geometry of Changing Beliefs &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 18.05 Introduction to Probability & Statistics (Bayesian Updating) &#x2197;</a></li><li><a href="https://openstax.org/details/books/principles-macroeconomics-3e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Principles of Macroeconomics (Ch. 14-15 Money & Monetary Policy) &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Bayesian Inference, Combinatorial Collision Bounds & Macroeconomics (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Conditional probability P(A | B) and Bayes' Theorem on the 3-state simplex Δ²</li><li>Multiple-hypothesis testing, Birthday Problem collision rates, and degrees of freedom df = n - 2</li><li>Equation of Exchange MV = PQ (V_M2 = GDP / M2), term structure slopes, and real deflation</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/lessons/bayes-theorem" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Bayes' Theorem, The Geometry of Changing Beliefs &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 18.05 Introduction to Probability & Statistics (Bayesian Updating) &#x2197;</a></li><li><a href="https://openstax.org/details/books/principles-macroeconomics-3e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Principles of Macroeconomics (Ch. 14-15 Money & Monetary Policy) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M5): 3-State Discrete Bayesian Posterior &amp; Adaptive Simpson Quadrature</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>P(R_m | E_t) = L_m P_m / ∑_k L_k P_k, ∫_a^b f(x) dx via Simpson Z-subdivision</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">post = [p * l / z for p, l in zip(priors, likelihoods)]</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(bayes-update &#x27;(1/3 1/3 1/3) &#x27;(1/10 3/10 6/10))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(bayes-update &#x27;(1/3 1/3 1/3) &#x27;(1/10 3/10 6/10))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="bayesUpdate([1/3, 1/3, 1/3], [0.1, 0.3, 0.6])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">bayesUpdate([1/3, 1/3, 1/3], [0.1, 0.3, 0.6])</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="bayes_update(&amp;[1.0/3.0; 3], &amp;[0.1, 0.3, 0.6])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">bayes_update(&amp;[1.0/3.0; 3], &amp;[0.1, 0.3, 0.6])</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Compare Guile&#x27;s exact rational &#x27;(1/10 3/10 3/5) with TypeScript and Rust array posteriors.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M5): 3-State Discrete Bayesian Posterior &amp; Adaptive Simpson Quadrature</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>P(R_m | E_t) = L_m P_m / ∑_k L_k P_k, ∫_a^b f(x) dx via Simpson Z-subdivision</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">post = [p * l / z for p, l in zip(priors, likelihoods)]</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(bayes-update &#x27;(1/3 1/3 1/3) &#x27;(1/10 3/10 6/10))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(bayes-update &#x27;(1/3 1/3 1/3) &#x27;(1/10 3/10 6/10))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="bayesUpdate([1/3, 1/3, 1/3], [0.1, 0.3, 0.6])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">bayesUpdate([1/3, 1/3, 1/3], [0.1, 0.3, 0.6])</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="bayes_update(&amp;[1.0/3.0; 3], &amp;[0.1, 0.3, 0.6])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">bayes_update(&amp;[1.0/3.0; 3], &amp;[0.1, 0.3, 0.6])</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Compare Guile&#x27;s exact rational &#x27;(1/10 3/10 3/5) with TypeScript and Rust array posteriors.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-app.js?v=2.13.0"></script> <script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -1 +1 @@
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.13.0", "enabled_subpages": ["base36-algebra-and-primes", "phonemic-projections-and-g-vectors", "graph-topology-and-eti-scoring", "timeseries-moments-and-confluence-dose", "macro-spreads-and-bayesian-inference"], "disabled_subpages": [], "enabled_routes": ["/math/index.html", "/math/base36-algebra-and-primes/index.html", "/math/phonemic-projections-and-g-vectors/index.html", "/math/graph-topology-and-eti-scoring/index.html", "/math/timeseries-moments-and-confluence-dose/index.html", "/math/macro-spreads-and-bayesian-inference/index.html"], "algebraic_invariants": {"eti_weights": [0.2, 0.18, 0.18, 0.16, 0.14, 0.14], "eti_weights_sum": 1.0, "bayesian_posterior_simplex_sum": 1.0, "cluster_292_gen0_variance": 310.22, "cluster_292_gen1_variance": 0.0, "g4_isometric_fixed_point_count": 21, "g3_quantized_steps": [0, 1, 10, 18, 20, 36, 37, 40, 74], "repdigit_37_attractors": [111, 222, 333, 444, 555, 666, 777, 888, 999]}, "empirical_counts": {"glossary_entries": 282, "bilingual_specimens": 190, "kg_nodes": 388, "kg_edges": 1282, "total_real_bars_n": 472, "fred_macro_series_n": 14}, "hub_prereq_ladder": {"unit_id": "M0", "expertise_level": "Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": true}, {"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": true}, {"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)", "url": "https://sarabander.github.io/sicp/", "external": true}, {"label": "GNU Guile Scheme Official Reference Manual", "url": "https://www.gnu.org/software/guile/manual/", "external": true}]}, "subpages": {"base36-algebra-and-primes": {"unit_id": "M1", "slug": "base36-algebra-and-primes", "title": "Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)", "short_title": "M1: Base-36 & Primes", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)", "prerequisites": ["Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)", "Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)", "Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids"], "public_resources": [{"label": "Internal: /learn/ Module 1 (Base-36 Valuation Table)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Cryptography & Modular Arithmetic", "url": "https://www.khanacademy.org/computing/computer-science/cryptography", "external": true}, {"label": "MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory)", "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/", "external": true}, {"label": "3Blue1Brown — Prime Numbers & Number Theory Visualized", "url": "https://www.3blue1brown.com/topics/number-theory", "external": true}], "sections": [{"heading": "1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}", "body": "For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2)."}, {"heading": "2. Repdigit 37 × 3k Attractors & Prime Index π(n)", "body": "Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193)."}]}, "phonemic-projections-and-g-vectors": {"unit_id": "M2", "slug": "phonemic-projections-and-g-vectors", "title": "Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6", "short_title": "M2: Phonemic Φ & G1-G6", "pip_class": "plate-lock-emerald", "expertise_level": "Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)", "prerequisites": ["Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w", "Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²", "How non-injective projection onto shared phonemic attractors collapses set variance"], "public_resources": [{"label": "OpenStax Introductory Statistics (Ch. 2 Mean & Variance)", "url": "https://openstax.org/details/books/introductory-statistics-2e", "external": true}, {"label": "StatQuest with Josh Starmer — Variance & Standard Deviation", "urlLine truncated window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.17.0", "enabled_subpages": ["base36-algebra-and-primes", "phonemic-projections-and-g-vectors", "graph-topology-and-eti-scoring", "timeseries-moments-and-confluence-dose", "macro-spreads-and-bayesian-inference"], "disabled_subpages": [], "enabled_routes": ["/math/index.html", "/math/base36-algebra-and-primes/index.html", "/math/phonemic-projections-and-g-vectors/index.html", "/math/graph-topology-and-eti-scoring/index.html", "/math/timeseries-moments-and-confluence-dose/index.html", "/math/macro-spreads-and-bayesian-inference/index.html"], "algebraic_invariants": {"eti_weights": [0.2, 0.18, 0.18, 0.16, 0.14, 0.14], "eti_weights_sum": 1.0, "bayesian_posterior_simplex_sum": 1.0, "cluster_292_gen0_variance": 310.22, "cluster_292_gen1_variance": 0.0, "g4_isometric_fixed_point_count": 21, "g3_quantized_steps": [0, 1, 10, 18, 20, 36, 37, 40, 74], "repdigit_37_attractors": [111, 222, 333, 444, 555, 666, 777, 888, 999]}, "empirical_counts": {"glossary_entries": 282, "bilingual_specimens": 190, "kg_nodes": 388, "kg_edges": 1282, "total_real_bars_n": 472, "fred_macro_series_n": 14}, "hub_prereq_ladder": {"unit_id": "M0", "expertise_level": "Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": true}, {"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": true}, {"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)", "url": "https://sarabander.github.io/sicp/", "external": true}, {"label": "GNU Guile Scheme Official Reference Manual", "url": "https://www.gnu.org/software/guile/manual/", "external": true}]}, "subpages": {"base36-algebra-and-primes": {"unit_id": "M1", "slug": "base36-algebra-and-primes", "title": "Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)", "short_title": "M1: Base-36 & Primes", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)", "prerequisites": ["Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)", "Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)", "Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids"], "public_resources": [{"label": "Internal: /learn/ Module 1 (Base-36 Valuation Table)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Cryptography & Modular Arithmetic", "url": "https://www.khanacademy.org/computing/computer-science/cryptography", "external": true}, {"label": "MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory)", "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/", "external": true}, {"label": "3Blue1Brown — Prime Numbers & Number Theory Visualized", "url": "https://www.3blue1brown.com/topics/number-theory", "external": true}], "sections": [{"heading": "1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}", "body": "For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2)."}, {"heading": "2. Repdigit 37 × 3k Attractors & Prime Index π(n)", "body": "Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193)."}]}, "phonemic-projections-and-g-vectors": {"unit_id": "M2", "slug": "phonemic-projections-and-g-vectors", "title": "Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6", "short_title": "M2: Phonemic Φ & G1-G6", "pip_class": "plate-lock-emerald", "expertise_level": "Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)", "prerequisites": ["Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w", "Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²", "How non-injective projection onto shared phonemic attractors collapses set variance"], "public_resources": [{"label": "OpenStax Introductory Statistics (Ch. 2 Mean & Variance)", "url": "https://openstax.org/details/books/introductory-statistics-2e", "external": true}, {"label": "StatQuest with Josh Starmer — Variance & Standard Deviation", "urlLine truncated
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"$id": "urn:io:hyperstitionstud:math-manifest", "$id": "urn:io:hyperstitionstud:math-manifest",
"version": "2.13.0", "version": "2.17.0",
"enabled_subpages": [ "enabled_subpages": [
"base36-algebra-and-primes", "base36-algebra-and-primes",
"phonemic-projections-and-g-vectors", "phonemic-projections-and-g-vectors",
@@ -301,6 +301,6 @@
} }
}, },
"ipld_dag_json_cidv1": { "ipld_dag_json_cidv1": {
"/": "baguqeeraydkixdw7qppenlllut53khkooicqvpsjynrcgsuxm7ak6nblsola" "/": "baguqeerawoxbn5nceunfl7ndrduowkfboz5mgqqk425t6zzvhrc2yvuxrf6q"
} }
} }
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.13.0)</title> <title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6</h1> <div class="title-row">
<p class="subtitle">Cartridge M2 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6</h1>
</div>
<p class="subtitle">Cartridge M2 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a> <a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M2: Phonemic Φ & G1-G6</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a> <a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a> <a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a> <a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w</li><li>Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²</li><li>How non-injective projection onto shared phonemic attractors collapses set variance</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://openstax.org/details/books/introductory-statistics-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Introductory Statistics (Ch. 2 Mean & Variance) &#x2197;</a></li><li><a href="https://statquest.org/video-index/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">StatQuest with Josh Starmer — Variance & Standard Deviation &#x2197;</a></li><li><a href="https://www.people.vcu.edu/~rhammack/BookOfProof/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Book of Proof (Richard Hammack — Free Textbook, Ch. 12 Functions & Fibers) &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w</li><li>Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²</li><li>How non-injective projection onto shared phonemic attractors collapses set variance</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://openstax.org/details/books/introductory-statistics-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Introductory Statistics (Ch. 2 Mean & Variance) &#x2197;</a></li><li><a href="https://statquest.org/video-index/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">StatQuest with Josh Starmer — Variance & Standard Deviation &#x2197;</a></li><li><a href="https://www.people.vcu.edu/~rhammack/BookOfProof/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Book of Proof (Richard Hammack — Free Textbook, Ch. 12 Functions & Fibers) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M2): Population Variance Collapse on Cluster 292 (Exact Rational vs. Float)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>σ²_0({264, 317, 276}) = 4634/9 ≈ 514.89 → σ²_1({292, 292, 292}) = 0</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">compute_variance([264, 317, 276]) # 514.89 -&gt; 0.0</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(variance-pop *cluster-292-gen0*)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(variance-pop *cluster-292-gen0*)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="variancePop([264, 317, 276] as const)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">variancePop([264, 317, 276] as const)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="variance_pop(&amp;[264.0, 317.0, 276.0])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">variance_pop(&amp;[264.0, 317.0, 276.0])</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Notice Guile&#x27;s exact rational 4634/9 vs. TypeScript and Rust IEEE-754 float 514.8889.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M2): Population Variance Collapse on Cluster 292 (Exact Rational vs. Float)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>σ²_0({264, 317, 276}) = 4634/9 ≈ 514.89 → σ²_1({292, 292, 292}) = 0</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">compute_variance([264, 317, 276]) # 514.89 -&gt; 0.0</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(variance-pop *cluster-292-gen0*)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(variance-pop *cluster-292-gen0*)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="variancePop([264, 317, 276] as const)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">variancePop([264, 317, 276] as const)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="variance_pop(&amp;[264.0, 317.0, 276.0])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">variance_pop(&amp;[264.0, 317.0, 276.0])</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Notice Guile&#x27;s exact rational 4634/9 vs. TypeScript and Rust IEEE-754 float 514.8889.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-app.js?v=2.13.0"></script> <script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
@@ -3,17 +3,18 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.13.0)</title> <title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; } body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; } .container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; } header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
h1 { font-size: 1.05rem; color: var(--gold); } @media (max-width: 1220px) { header { flex-wrap: wrap; } }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; } h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; } .subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; } .top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); } footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style> </style>
</head> </head>
@@ -21,23 +22,36 @@
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}</h1> <div class="title-row">
<p class="subtitle">Cartridge M4 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> &bull; v2.13.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}</h1>
</div>
<p class="subtitle">Cartridge M4 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a> <a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a> <a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a> <a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a> <a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a> <a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M4: Time-Series & Dose Math</a> <a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a> <a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a> </div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div> <div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span> </nav>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3-4: Nonparametric Order Statistics & Time-Series Correlation (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Basis-point return arithmetic Δbps_{i,t} = round(((P_t - P_{t-1}) / P_{t-1}) × 10^4)</li><li>Nonparametric order statistics (Median P50, 90th percentile P90) vs. outlier-sensitive means</li><li>Pearson linear correlation r(τ) across lags τ ∈ [-5..+5] and indicator sums ∑ I(A_s)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://seeing-theory.brown.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Seeing Theory (Brown University Visual Intro to Probability & Statistics) &#x2197;</a></li><li><a href="https://online.stat.psu.edu/stat510/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Penn State STAT 510 Applied Time Series Analysis (Cross-Correlation) &#x2197;</a></li><li><a href="https://www.itl.nist.gov/div898/handbook/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">NIST/SEMATECH e-Handbook of Statistical Methods (Order Statistics) &#x2197;</a></li></ul></div></div></section> <section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3-4: Nonparametric Order Statistics & Time-Series Correlation (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Basis-point return arithmetic Δbps_{i,t} = round(((P_t - P_{t-1}) / P_{t-1}) × 10^4)</li><li>Nonparametric order statistics (Median P50, 90th percentile P90) vs. outlier-sensitive means</li><li>Pearson linear correlation r(τ) across lags τ ∈ [-5..+5] and indicator sums ∑ I(A_s)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://seeing-theory.brown.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Seeing Theory (Brown University Visual Intro to Probability & Statistics) &#x2197;</a></li><li><a href="https://online.stat.psu.edu/stat510/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Penn State STAT 510 Applied Time Series Analysis (Cross-Correlation) &#x2197;</a></li><li><a href="https://www.itl.nist.gov/div898/handbook/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">NIST/SEMATECH e-Handbook of Statistical Methods (Order Statistics) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M4): Thomas&#x27; Calculus Central Derivative d/dx(x^3) at x=2.0</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>f&#x27;(x) = lim_{h→0} (f(x+h) - f(x-h)) / (2h), D_{i,t} = ∑ I(A_s)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">confluence_dose = sum(1 for x in species_hits if x)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">((derivative (lambda (x) (* x x x)) 1e-5) 2.0)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="derivative((x: number): number =&gt; x ** 3, 1e-5)(2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">derivative((x: number): number =&gt; x ** 3, 1e-5)(2.0)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="derivative(|x: f64| x * x * x, 1e-5, 2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">derivative(|x: f64| x * x * x, 1e-5, 2.0)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Compare higher-order derivative closures in Guile Scheme, TypeScript, and Rust.</div></section> <section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M4): Thomas&#x27; Calculus Central Derivative d/dx(x^3) at x=2.0</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>f&#x27;(x) = lim_{h→0} (f(x+h) - f(x-h)) / (2h), D_{i,t} = ∑ I(A_s)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">confluence_dose = sum(1 for x in species_hits if x)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">((derivative (lambda (x) (* x x x)) 1e-5) 2.0)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="derivative((x: number): number =&gt; x ** 3, 1e-5)(2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">derivative((x: number): number =&gt; x ** 3, 1e-5)(2.0)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="derivative(|x: f64| x * x * x, 1e-5, 2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">derivative(|x: f64| x * x * x, 1e-5, 2.0)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Compare higher-order derivative closures in Guile Scheme, TypeScript, and Rust.</div></section>
@@ -49,12 +63,13 @@
</div> </div>
<footer> <footer>
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs. hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.13.0"></script> <script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-app.js?v=2.13.0"></script> <script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL"> <aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;"> <div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div> <div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre> <pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div> </div>
</aside> </aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.13.0"></script> <script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body> </body>
</html> </html>
+39 -29
View File
@@ -4,14 +4,14 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quantitative Finance &amp; Memetic Gematria Time-Series Workbench — hyperstitionstud.io/quant</title> <title>Quantitative Finance &amp; Memetic Gematria Time-Series Workbench — hyperstitionstud.io/quant</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.13.0" /> <link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style> <style>
:root { :root {
--bg-canvas: #020617; --bg-canvas: #020617;
--bg-panel: #0f172a; --bg-panel: #0c1324;
--bg-card: #1e293b; --bg-card: #0c1324;
--bg-deep: #090d16; --bg-deep: #090d16;
--border: #334155; --border: #26344d;
--text-main: #f8fafc; --text-main: #f8fafc;
--text-muted: #94a3b8; --text-muted: #94a3b8;
--cyan: #22d3ee; --cyan: #22d3ee;
@@ -36,24 +36,27 @@
border: 1px solid var(--border); border: 1px solid var(--border);
border-left: 4px solid var(--gold); border-left: 4px solid var(--gold);
border-radius: 10px; border-radius: 10px;
padding: 1.1rem 1.4rem; padding: 1.1rem 1.35rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: nowrap;
gap: 0.9rem; gap: 0.85rem;
} }
h1 { font-size: 1.18rem; font-weight: 700; color: var(--text-main); } @media (max-width: 1220px) {
.subtitle { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.25rem; } header { flex-wrap: wrap; }
.top-nav { margin-left: auto; display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.btn, select { .btn, select {
text-decoration: none; text-decoration: none;
background: var(--bg-card); background: var(--bg-card);
color: var(--text-main); color: var(--text-main);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 5px; border-radius: 5px;
padding: 0.42rem 0.72rem; padding: 0.34rem 0.62rem;
font-size: 0.73rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
font-family: inherit; font-family: inherit;
cursor: pointer; cursor: pointer;
@@ -316,23 +319,26 @@
padding-top: 1rem; padding-top: 1rem;
} }
</style> </style>
<script src="quant-timeseries-data.js?v=2.13.0"></script> <script src="quant-timeseries-data.js?v=2.17.0"></script>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>hyperstitionstud.io/quant — Quantitative Finance &amp; Memetic Gematria Time-Series Workbench</h1> <div class="title-row">
<p class="subtitle">Strictly Periodic Telemetry (21:30 UTC US Closing Bell &times; 00:00 UTC News-Wire Dossiers &bull; 24 Watchlist Instruments &bull; 14 FRED Macro Series) &bull; Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.13.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>hyperstitionstud.io/quant — Quantitative Finance &amp; Memetic Gematria Time-Series Workbench</h1>
</div>
<p class="subtitle">Strictly Periodic Telemetry (21:30 UTC US Closing Bell &times; 00:00 UTC News-Wire Dossiers &bull; 24 Watchlist Instruments &bull; 14 FRED Macro Series) &bull; Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.17.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="navHome" href="/">Portal Home (/)</a> <a class="btn" id="navHome" href="/">Portal Home (/)</a>
<a class="btn" id="navEng" href="/engineering/index.html">Engineering (/engineering/)</a> <a class="btn" id="navCalc" href="/calc/index.html">Calculator</a>
<a class="btn" id="navMath" href="/math/index.html">Applied Math (/math/)</a> <a class="btn primary" id="navQuant" aria-current="page" href="/quant/index.html">Quant</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph (/graph/)</a> <a class="btn" id="navGraph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" id="navLearn" href="/learn/index.html">Learning Track (/learn/)</a> <a class="btn" id="navLearn" href="/learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator (/calc/)</a> <a class="btn" id="navEng" href="/engineering/index.html">Engineering</a>
<a class="btn" id="navManual" href="/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" target="_blank">Operator's Manual (PDF)</a> <a class="btn" id="navMath" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span> <span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" id="navDonate" href="/donate/index.html?from=quant" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a> <a class="btn-donate-pill" id="navDonate" href="/donate/index.html?from=quant" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav> </nav>
@@ -342,7 +348,10 @@
<section class="panel" id="quantTutorialBar" aria-label="Interactive Tutorial Series Player"> <section class="panel" id="quantTutorialBar" aria-label="Interactive Tutorial Series Player">
<div class="panel-header"> <div class="panel-header">
<span class="panel-title">INTERACTIVE GUIDED CANVAS TOUR (5 Episodes &times; 5 Scenes = 25 Live Choreographed Walkthroughs &bull; Zero-MP4)</span> <span class="panel-title">INTERACTIVE GUIDED CANVAS TOUR (5 Episodes &times; 5 Scenes = 25 Live Choreographed Walkthroughs &bull; Zero-MP4)</span>
<span class="panel-meta" id="tutStepBadge">Ep 01 &bull; Scene 1/5</span> <div style="display:flex;align-items:center;gap:0.5rem;">
<span class="panel-meta" id="tutStepBadge">Ep 01 &bull; Scene 1/5</span>
<a class="btn" id="navManual" href="/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" target="_blank">Operator's Manual (PDF)</a>
</div>
</div> </div>
<div class="pill-row" id="tutEpisodeTabs"></div> <div class="pill-row" id="tutEpisodeTabs"></div>
<div style="display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;"> <div style="display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;">
@@ -474,13 +483,14 @@
<div id="tutUiElementIndicator" role="status" aria-live="polite"></div> <div id="tutUiElementIndicator" role="status" aria-live="polite"></div>
<footer> <footer>
hyperstitionstud.io/quant v2.13.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:#ff4d4d;">&#x2665;</span> by Lemurs. hyperstitionstud.io/quant v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:#ff4d4d;">&#x2665;</span> by Lemurs.
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v=2.13.0" defer></script> <script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.13.0"></script> <script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="daily-brief-data.js?v=2.13.0"></script> <script src="real-macro-indicators-data.js?v=2.17.0"></script>
<script src="quant-app.js?v=2.13.0"></script> <script src="daily-brief-data.js?v=2.17.0"></script>
<script src="quant-tutorials.js?v=2.13.0"></script> <script src="quant-app.js?v=2.17.0"></script>
<script src="quant-tutorials.js?v=2.17.0"></script>
</body> </body>
</html> </html>
+25 -6
View File
@@ -1,5 +1,5 @@
// /workspace/hyperstitionstudio-core/site/quant/quant-app.js // /workspace/hyperstitionstudio-core/site/quant/quant-app.js
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.13.0) // Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.17.0)
(function () { (function () {
"use strict"; "use strict";
@@ -1050,19 +1050,38 @@
renderDailyBrief(); renderDailyBrief();
} }
// Canvas scrub interaction // Canvas scrub interaction (mouse click + Strategy 4A mobile touchstart/touchmove scrubbing)
canvas.addEventListener("click", function (ev) { function scrubCanvasAtClientX(clientX) {
const rect = canvas.getBoundingClientRect(); const rect = canvas.getBoundingClientRect();
const relX = ((ev.clientX - rect.left) / rect.width) * canvas.width; const relX = ((clientX - rect.left) / Math.max(1, rect.width)) * canvas.width;
const padL = 62, padR = 28; const padL = 62, padR = 28;
const ratio = (relX - padL) / (canvas.width - padL - padR); const ratio = (relX - padL) / (canvas.width - padL - padR);
const rng = getActiveDateRange(); const rng = getActiveDateRange();
const span = Math.max(1, rng.endIdx - rng.startIdx - 1); const span = Math.max(1, rng.endIdx - rng.startIdx - 1);
const idx = rng.startIdx + Math.round(ratio * span); const idx = rng.startIdx + Math.round(ratio * span);
state.selectedDateIdx = Math.max(rng.startIdx, Math.min(rng.endIdx - 1, idx)); const nextIdx = Math.max(rng.startIdx, Math.min(rng.endIdx - 1, idx));
renderAll(); if (nextIdx !== state.selectedDateIdx) {
state.selectedDateIdx = nextIdx;
renderAll();
}
}
canvas.addEventListener("click", function (ev) {
scrubCanvasAtClientX(ev.clientX);
}); });
canvas.addEventListener("touchstart", function (ev) {
if (ev.touches && ev.touches.length === 1) {
scrubCanvasAtClientX(ev.touches[0].clientX);
}
}, { passive: true });
canvas.addEventListener("touchmove", function (ev) {
if (ev.touches && ev.touches.length === 1) {
scrubCanvasAtClientX(ev.touches[0].clientX);
}
}, { passive: true });
document.getElementById("prevDateBtn").onclick = function () { document.getElementById("prevDateBtn").onclick = function () {
state.selectedDateIdx = Math.max(0, state.selectedDateIdx - 1); state.selectedDateIdx = Math.max(0, state.selectedDateIdx - 1);
renderAll(); renderAll();
+31 -2
View File
@@ -450,6 +450,7 @@
let cachedVoices = []; let cachedVoices = [];
let audioCtx = null; let audioCtx = null;
let activeAudioEl = null; let activeAudioEl = null;
let activeAudioEqConnected = false;
let formantStopFlag = false; let formantStopFlag = false;
function refreshVoices() { function refreshVoices() {
@@ -496,13 +497,15 @@
const baseFreqs = [292.0, 333.0, 394.0, 444.0, 528.0]; const baseFreqs = [292.0, 333.0, 394.0, 444.0, 528.0];
const f0 = baseFreqs[stepIdx % baseFreqs.length]; const f0 = baseFreqs[stepIdx % baseFreqs.length];
const now = audioCtx.currentTime; const now = audioCtx.currentTime;
// Strategy 3A: Duck chime gain by -50% (0.012 vs 0.025) when Voice: ON is active so opening words are never masked
const peakGain = speechEnabled ? 0.012 : 0.025;
[f0, f0 * 1.25, f0 * 1.5].forEach(function (freq, i) { [f0, f0 * 1.25, f0 * 1.5].forEach(function (freq, i) {
const osc = audioCtx.createOscillator(); const osc = audioCtx.createOscillator();
const gain = audioCtx.createGain(); const gain = audioCtx.createGain();
osc.type = i === 0 ? "triangle" : "sine"; osc.type = i === 0 ? "triangle" : "sine";
osc.frequency.setValueAtTime(freq, now + i * 0.09); osc.frequency.setValueAtTime(freq, now + i * 0.09);
gain.gain.setValueAtTime(0.001, now + i * 0.09); gain.gain.setValueAtTime(0.001, now + i * 0.09);
gain.gain.exponentialRampToValueAtTime(0.025, now + i * 0.09 + 0.03); gain.gain.exponentialRampToValueAtTime(peakGain, now + i * 0.09 + 0.03);
gain.gain.exponentialRampToValueAtTime(0.0001, now + i * 0.09 + 0.35); gain.gain.exponentialRampToValueAtTime(0.0001, now + i * 0.09 + 0.35);
osc.connect(gain); osc.connect(gain);
gain.connect(audioCtx.destination); gain.connect(audioCtx.destination);
@@ -631,6 +634,32 @@
document.body.appendChild(activeAudioEl); document.body.appendChild(activeAudioEl);
} }
} }
// Strategy 3A: Route #tutVoiceAudio through a WebAudio BiquadFilterNode vocal warmth EQ (+2.5 dB @ 220 Hz, -3.0 dB @ 4.8 kHz)
if (!activeAudioEqConnected && typeof window !== "undefined" && window.location && window.location.protocol !== "file:") {
try {
const Ctx = window.AudioContext || window.webkitAudioContext;
if (Ctx) {
if (!audioCtx) audioCtx = new Ctx();
if (audioCtx.state === "suspended") audioCtx.resume();
const srcNode = audioCtx.createMediaElementSource(activeAudioEl);
const lowShelf = audioCtx.createBiquadFilter();
lowShelf.type = "lowshelf";
lowShelf.frequency.value = 220.0;
lowShelf.gain.value = 2.5;
const deEssPeak = audioCtx.createBiquadFilter();
deEssPeak.type = "peaking";
deEssPeak.frequency.value = 4800.0;
deEssPeak.Q.value = 1.4;
deEssPeak.gain.value = -3.0;
srcNode.connect(lowShelf);
lowShelf.connect(deEssPeak);
deEssPeak.connect(audioCtx.destination);
activeAudioEqConnected = true;
}
} catch (_) {
activeAudioEqConnected = true;
}
}
const wavUrl = "./audio/" + clipId + ".wav"; const wavUrl = "./audio/" + clipId + ".wav";
let handled = false; let handled = false;
const doneOnce = function () { const doneOnce = function () {
@@ -992,7 +1021,7 @@
} }
const exportedApi = { const exportedApi = {
version: "2.13.0", version: "2.17.0",
episodes: EPISODES, episodes: EPISODES,
allHighlightableDomIds: ALL_HIGHLIGHTABLE_DOM_IDS, allHighlightableDomIds: ALL_HIGHLIGHTABLE_DOM_IDS,
cleanTextForSpeech: cleanTextForSpeech, cleanTextForSpeech: cleanTextForSpeech,
+2 -2
View File
@@ -1,3 +1,3 @@
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.13.0).""" """hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.17.0)."""
__version__ = "2.13.0" __version__ = "2.17.0"
NAMESPACE_URN = "urn:io:hyperstitionstud" NAMESPACE_URN = "urn:io:hyperstitionstud"
@@ -0,0 +1,266 @@
#!/usr/bin/env python3
"""
hyperstitionstud_io.ci.deploy_scripts_sync (`hs-deploy-scripts-sync`)
Pre-Commit Preparation & 8-Gate Drift-Blocking Verifier (`Gates D1-D8`) for the Two Manual Operator
Deployment Scripts (`/workspace/push-all-to-git-libre-audio.sh` and `deploy/sync-vps-repos.sh`).
Wired directly into `.git/hooks/pre-commit`, `version_sync.py`, and `tests/test_core_suite.py` so that
`push-all-to-git-libre-audio.sh` (and its tracked mirror `hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh`)
and `deploy/sync-vps-repos.sh` are always prepared, validated, and staged PRIOR to every commit.
"""
from __future__ import annotations
import argparse
import json
import os
import re
import subprocess
from pathlib import Path
from typing import Any
from hyperstitionstud_io import __version__ as CURRENT_VERSION
from hyperstitionstud_io.config import load_workspace_config
def _norm_ws_path(p: Path | str, workspace_root: str | Path | None = None) -> str:
cfg = load_workspace_config(workspace_root=workspace_root)
ws_res = str(cfg.workspace_root.resolve())
s = str(Path(p).resolve())
if s.startswith(ws_res):
return "/workspace" + s[len(ws_res):]
return str(p)
def prepare_and_verify_deploy_scripts(
workspace_root: str | Path | None = None,
target_version: str | None = None,
check_only: bool = False,
stage: bool = False,
) -> dict[str, Any]:
"""
Prepare and verify `/workspace/push-all-to-git-libre-audio.sh`,
`/workspace/hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh`,
and `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` across Gates D1-D8.
"""
cfg = load_workspace_config(workspace_root=workspace_root)
ws_root = cfg.workspace_root
core_dir = cfg.core_dir
ver = (target_version or CURRENT_VERSION).lstrip("v").strip()
ws_push_sh = ws_root / "push-all-to-git-libre-audio.sh"
tracked_push_sh = core_dir / "deploy" / "push-all-to-git-libre-audio.sh"
sync_vps_sh = core_dir / "deploy" / "sync-vps-repos.sh"
caddyfile_p = core_dir / "deploy" / "Caddyfile"
modified_files: list[str] = []
errors: list[str] = []
# Gate D1: Version Header & Tracked Mirror Parity
# Note: On VPS (/srv/hyperstitionstud.io/repos), the tracked copy is `hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh`
# while the parent directory `ws_root/push-all-to-git-libre-audio.sh` may be absent until hydrated.
if ws_push_sh.is_file():
push_txt = ws_push_sh.read_text(encoding="utf-8")
upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M)
if upd_push != push_txt:
if check_only:
errors.append(f"Gate D1: {ws_push_sh} release header does not match v{ver}")
else:
ws_push_sh.write_text(upd_push, encoding="utf-8")
ws_push_sh.chmod(0o755)
modified_files.append(_norm_ws_path(ws_push_sh, workspace_root=ws_root))
push_txt = upd_push
tracked_txt = tracked_push_sh.read_text(encoding="utf-8") if tracked_push_sh.is_file() else ""
if tracked_txt != push_txt:
if check_only:
errors.append(f"Gate D1: Tracked mirror {tracked_push_sh} is out of sync with {ws_push_sh}")
else:
tracked_push_sh.parent.mkdir(parents=True, exist_ok=True)
tracked_push_sh.write_text(push_txt, encoding="utf-8")
tracked_push_sh.chmod(0o755)
modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root))
elif tracked_push_sh.is_file():
push_txt = tracked_push_sh.read_text(encoding="utf-8")
upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M)
if upd_push != push_txt:
if check_only:
errors.append(f"Gate D1: {tracked_push_sh} release header does not match v{ver}")
else:
tracked_push_sh.write_text(upd_push, encoding="utf-8")
tracked_push_sh.chmod(0o755)
modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root))
push_txt = upd_push
if not check_only:
try:
ws_push_sh.write_text(push_txt, encoding="utf-8")
ws_push_sh.chmod(0o755)
except OSError:
pass
else:
errors.append(f"Gate D1: Missing both {ws_push_sh} and {tracked_push_sh}")
if sync_vps_sh.is_file():
sync_txt = sync_vps_sh.read_text(encoding="utf-8")
if re.search(r"^#\s*Release\s+v\d+\.\d+\.\d+:", sync_txt, flags=re.M):
upd_sync = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", sync_txt, count=1, flags=re.M)
else:
upd_sync = sync_txt.replace(
"# /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh\n",
f"# /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh\n# Release v{ver}: Self-re-executing tmpfs VPS hydration & service sync.\n",
1,
)
if upd_sync != sync_txt:
if check_only:
errors.append(f"Gate D1: {sync_vps_sh} release header does not match v{ver}")
else:
sync_vps_sh.write_text(upd_sync, encoding="utf-8")
sync_vps_sh.chmod(0o755)
modified_files.append(_norm_ws_path(sync_vps_sh, workspace_root=ws_root))
sync_txt = upd_sync
else:
errors.append(f"Gate D1: Missing {sync_vps_sh}")
gate_d1_ok = len(errors) == 0
# Gate D2 & D3: bash -n Syntax, Executable Permissions & Zero-/dev/null Redirections
scripts_to_audit = [
ws_push_sh,
tracked_push_sh,
sync_vps_sh,
core_dir / "deploy" / "run-vps-data-production.sh",
core_dir / "deploy" / "run-vps-archive-rotation.sh",
cfg.archive_dir / "packaging" / "build-fedora41-rpm.sh",
cfg.archive_dir / "packaging" / "bundle" / "scripts" / "run_exegesis_and_push_fedora41.sh",
]
gate_d2_ok = True
gate_d3_ok = True
for sp in scripts_to_audit:
if not sp.is_file():
continue
if not check_only and not os.access(sp, os.X_OK):
sp.chmod(0o755)
proc = subprocess.run(["bash", "-n", str(sp)], capture_output=True, text=True, check=False)
if proc.returncode != 0:
gate_d2_ok = False
errors.append(f"Gate D2: bash -n syntax error in {sp}: {proc.stderr.strip()}")
stxt = sp.read_text(encoding="utf-8")
if "/dev/null" in stxt:
gate_d3_ok = False
errors.append(f"Gate D3: Forbidden /dev/null found in {sp}")
# Gate D4: Untracked Runtime Artifact Hydration Parity (.gitignore vs. sync-vps-repos.sh)
sync_txt_cur = sync_vps_sh.read_text(encoding="utf-8") if sync_vps_sh.is_file() else ""
core_gi = (core_dir / ".gitignore").read_text(encoding="utf-8") if (core_dir / ".gitignore").is_file() else ""
gate_d4_ok = True
if "site/quant/audio/" in core_gi:
if "quant_voice" not in sync_txt_cur or "--filter='P site/quant/audio/***'" not in sync_txt_cur:
gate_d4_ok = False
errors.append("Gate D4: site/quant/audio/ is in .gitignore but quant_voice / rsync filter is missing in deploy/sync-vps-repos.sh")
if "generate_db_json.py" not in sync_txt_cur or "config.default.js" not in sync_txt_cur:
gate_d4_ok = False
errors.append("Gate D4: haiperdohp-jemaytreeah untracked artifact hydration missing in deploy/sync-vps-repos.sh")
# Gate D5: Cold *.tar.gz Archive Exclusion & Explicit rm -f Safety in sync-vps-repos.sh
gate_d5_ok = (
"--exclude='completed-plans-archive.tar.gz'" in sync_txt_cur
and "--exclude='inactive-plans-archive.tar.gz'" in sync_txt_cur
and 'docs/archive/completed-plans-archive.tar.gz"' in sync_txt_cur
and 'docs/plans/inactive/inactive-plans-archive.tar.gz"' in sync_txt_cur
)
if not gate_d5_ok:
errors.append("Gate D5: Cold plan .tar.gz exclusion or rm -f cleanup missing in deploy/sync-vps-repos.sh")
# Gate D6: Single-Layer 1x Compression & Caddyfile Media Extension Parity
caddy_txt = caddyfile_p.read_text(encoding="utf-8") if caddyfile_p.is_file() else ""
push_src = ws_push_sh if ws_push_sh.is_file() else tracked_push_sh
push_txt_cur = push_src.read_text(encoding="utf-8") if push_src.is_file() else ""
gate_d6_ok = (
"--enforce-single-compression" in push_txt_cur
and "--enforce-single-compression" in sync_txt_cur
and "@compressible not path" in caddy_txt
and "*.wav" in caddy_txt
and "*.pdf" in caddy_txt
)
if not gate_d6_ok:
errors.append("Gate D6: Single-layer compression enforcement or Caddyfile media extension parity missing")
# Gate D7: Topological 6-Repository Push & Force-Tag Sync Parity in push-all-to-git-libre-audio.sh
required_push_markers = (
"hyperstitionstudio-core",
"ingglish-hyperdope-gematria",
"technocapital-singularity-zoology",
"encyclopedia-knowledge-graph",
"hyperdope-ci-build",
"haiperdohp-jemaytreeah",
'push --force "${remote_name}" "refs/tags/${head_tag}"',
"build-fedora41-rpm.sh",
"run_exegesis_and_push_fedora41.sh",
)
gate_d7_ok = all(m in push_txt_cur for m in required_push_markers)
if not gate_d7_ok:
errors.append("Gate D7: Missing required repository, force-tag, or verification marker in push-all-to-git-libre-audio.sh")
# Gate D8: Automatic Git Staging Prior to Commit (--stage)
staged_files: list[str] = []
if stage and not check_only and (core_dir / ".git").exists():
for rel_s in ("deploy/push-all-to-git-libre-audio.sh", "deploy/sync-vps-repos.sh", "deploy/Caddyfile"):
cand_p = core_dir / rel_s
if cand_p.is_file():
subprocess.run(["git", "-C", str(core_dir), "add", rel_s], check=False)
staged_files.append(f"/workspace/hyperstitionstudio-core/{rel_s}")
all_ok = (
gate_d1_ok
and gate_d2_ok
and gate_d3_ok
and gate_d4_ok
and gate_d5_ok
and gate_d6_ok
and gate_d7_ok
and len(errors) == 0
)
return {
"ok": all_ok,
"version": ver,
"check_only": check_only,
"gates": {
"D1_version_header_and_tracked_mirror_parity": gate_d1_ok,
"D2_bash_syntax_and_exec_permissions": gate_d2_ok,
"D3_zero_dev_null_redirections": gate_d3_ok,
"D4_gitignore_untracked_runtime_hydration_parity": gate_d4_ok,
"D5_cold_tar_gz_tmpfs_exclusion_and_rm": gate_d5_ok,
"D6_single_layer_compression_and_caddy_parity": gate_d6_ok,
"D7_topological_6_repo_push_and_force_tags": gate_d7_ok,
"D8_pre_commit_auto_stage_ready": True,
},
"modified_files": modified_files,
"staged_files": staged_files,
"errors": errors,
}
def main(argv: list[str] | None = None) -> int:
ap = argparse.ArgumentParser(
prog="hs-deploy-scripts-sync",
description="Prepare, synchronize, and verify push-all-to-git-libre-audio.sh and deploy/sync-vps-repos.sh prior to commits.",
)
ap.add_argument("--check", action="store_true", help="Verify Gates D1-D8 without modifying files.")
ap.add_argument("--stage", action="store_true", help="Stage updated deploy scripts in hyperstitionstudio-core via git add.")
ap.add_argument("--version", default=None, help="Optional target semantic version override.")
ap.add_argument("--workspace-root", default=None, help="Optional workspace root directory.")
args = ap.parse_args(argv)
res = prepare_and_verify_deploy_scripts(
workspace_root=args.workspace_root,
target_version=args.version,
check_only=args.check,
stage=args.stage,
)
print(json.dumps(res, indent=2))
return 0 if res["ok"] else 1
if __name__ == "__main__":
raise SystemExit(main())
@@ -20,6 +20,7 @@ import base64
import datetime import datetime
import hashlib import hashlib
import json import json
import re
import urllib.error import urllib.error
import urllib.request import urllib.request
from pathlib import Path from pathlib import Path
@@ -350,6 +351,11 @@ def run_public_regression_suite(
regressions.append(f"Gate P6: {h_route} contains forbidden legacy marker {bad_m!r}") regressions.append(f"Gate P6: {h_route} contains forbidden legacy marker {bad_m!r}")
gate_results["P6_html_css_visual_and_content_parity"] = p6_ok gate_results["P6_html_css_visual_and_content_parity"] = p6_ok
style_audit = verify_ui_style_and_navigation_consistency()
if not style_audit["ok"]:
gate_results["P6_html_css_visual_and_content_parity"] = False
regressions.extend(style_audit["errors"])
all_passed = all(gate_results.values()) all_passed = all(gate_results.values())
return { return {
"ok": all_passed, "ok": all_passed,
@@ -358,10 +364,134 @@ def run_public_regression_suite(
"gates_passed": sum(1 for v in gate_results.values() if v), "gates_passed": sum(1 for v in gate_results.values() if v),
"gates_total": len(gate_results), "gates_total": len(gate_results),
"gate_results": gate_results, "gate_results": gate_results,
"style_consistency_audit": style_audit,
"regressions_detected": regressions, "regressions_detected": regressions,
} }
def verify_ui_style_and_navigation_consistency(workspace_root: str | Path | None = None) -> dict[str, Any]:
"""
Plan #65 (`PLAN-CROSS-PAGE-STYLE-FONT-BACKGROUND-AND-NAVIGATION-PARITY-WITH-REGRESSION-TESTS`):
Enforce Intra-Page & Cross-Page UI Style, Font-Family, Background Token, and Navigation Bar Parity
across all HTML/CSS surfaces (`Gates S1-S3`).
"""
cfg = load_workspace_config(workspace_root=workspace_root)
core = cfg.core_dir
kg = cfg.knowledge_graph_dir
calc_dir = cfg.paths["gematria_js_dir"]
errors: list[str] = []
chamfer_css_p = core / "site" / "assets" / "hs-group3-basalt-chamfer.css"
chamfer_css = chamfer_css_p.read_text(encoding="utf-8") if chamfer_css_p.is_file() else ""
# Gate S1: Zero Spurious rgb(30, 41, 59) / #1e293b Background Invariant on Subpages & Group 3 CSS
if re.search(r"#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\)", chamfer_css, flags=re.I):
errors.append("Gate S1: Forbidden #1e293b / rgb(30, 41, 59) found in hs-group3-basalt-chamfer.css")
subpages: dict[str, Path] = {
"calc": calc_dir / "index.html",
"quant": core / "site" / "quant" / "index.html",
"graph": kg / "index.html",
"learn": core / "site" / "learn" / "index.html",
"engineering_hub": core / "site" / "engineering" / "index.html",
"engineering_e1": core / "site" / "engineering" / "ciphers-and-phonetics" / "index.html",
"math_hub": core / "site" / "math" / "index.html",
"math_m1": core / "site" / "math" / "base36-algebra-and-primes" / "index.html",
"donate": core / "site" / "donate" / "index.html",
"gallery": core / "site" / "gallery" / "index.html",
}
for sname, spath in subpages.items():
if not spath.is_file():
errors.append(f"Gate S1: Missing subpage {spath}")
continue
stxt = spath.read_text(encoding="utf-8")
if re.search(r"--bg-(?:card|panel)\s*:\s*(?:#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\))", stxt, flags=re.I):
errors.append(f"Gate S1: Spurious --bg-card/--bg-panel #1e293b / rgb(30, 41, 59) override in {sname} ({spath})")
if sname == "graph" and re.search(r"#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\)", stxt, flags=re.I):
errors.append(f"Gate S1: Spurious #1e293b / rgb(30, 41, 59) found in /graph/ ({spath})")
calc_styles_p = calc_dir / "calc" / "styles.css"
if calc_styles_p.is_file():
calc_css = calc_styles_p.read_text(encoding="utf-8")
hs_nav_m = re.search(r"\.hs-nav-btn\s*\{([^}]*)\}", calc_css, flags=re.S)
if hs_nav_m:
body_css = hs_nav_m.group(1)
if re.search(r"#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\)", body_css, flags=re.I) or re.search(
r"(?<![-a-z])(?:color|border)\s*:[^;]*!important", body_css, flags=re.I
):
errors.append("Gate S1/S3: .hs-nav-btn in calc/styles.css contains #1e293b or !important color/border overrides")
# Gate S2: Intra-Page Font-Family Uniformity Invariant
if "--font-mono:" not in chamfer_css or "button," not in chamfer_css or "select," not in chamfer_css:
errors.append("Gate S2: hs-group3-basalt-chamfer.css missing --font-mono inheritance on button/input/select/textarea")
for sname in ("graph", "quant", "learn", "engineering_hub", "engineering_e1", "math_hub", "math_m1", "donate", "gallery"):
stxt = subpages[sname].read_text(encoding="utf-8")
if "sans-serif" in stxt:
errors.append(f"Gate S2: Inconsistent 'sans-serif' font declaration found in {sname} ({subpages[sname]})")
if sname == "graph" and "font-family: monospace;" in stxt:
errors.append(f"Gate S2: Bare 'font-family: monospace;' without --font-mono found in /graph/")
# Gate S3: Cross-Page Navigation UI & Header Style Parity Invariant
home_txt = (core / "site" / "index.html").read_text(encoding="utf-8")
if '<div class="meta-badges">' not in home_txt:
errors.append("Gate S3: Homepage site/index.html <div class=\"meta-badges\"> was modified!")
canonical_order = ["Portal Home (/)", "Calculator", "Quant", "Graph", "Learn", "Engineering", "Math", "DONATE"]
for sname, spath in subpages.items():
stxt = spath.read_text(encoding="utf-8")
nav_m = re.search(r"<nav[^>]*hs-global-nav[^>]*>(.*?)</nav>", stxt, flags=re.S)
if not nav_m:
errors.append(f"Gate S3: Missing <nav ... hs-global-nav> in {sname}")
continue
nav_inner = nav_m.group(1)
if "title-row" not in stxt or 'class="subtitle' not in stxt:
errors.append(f"Gate S3: Missing .title-row or .subtitle in {sname}")
if re.search(r"h1\s*\{[^}]*color\s*:\s*var\(--gold\)", stxt):
errors.append(f"Gate S3: Inconsistent h1 color: var(--gold) in {sname}")
positions = [nav_inner.find(lbl) for lbl in canonical_order]
if any(pos == -1 for pos in positions) or positions != sorted(positions):
errors.append(f"Gate S3: Canonical navigation link order mismatch in {sname}: {positions}")
# Gate S4 (Plan #66): Adaptive Mobile Device Detection & Mobile UI Ergonomics (Strategies 1A, 2A, 3A, 4A)
mob_js_p = core / "site" / "assets" / "hs-mobile-ui.js"
if not mob_js_p.is_file():
errors.append("Gate S4: Missing site/assets/hs-mobile-ui.js")
else:
mob_js = mob_js_p.read_text(encoding="utf-8")
for req_tok in ("data-device-ui", "hsMobileMenuBtn", "hsMobileNavSheet", "hsMobileUiSwitchBtn", "userAgentData"):
if req_tok not in mob_js:
errors.append(f"Gate S4: hs-mobile-ui.js missing {req_tok}")
if 'html[data-device-ui="mobile"]' not in chamfer_css:
errors.append("Gate S4: hs-group3-basalt-chamfer.css missing html[data-device-ui=\"mobile\"] rules")
caddy_p = core / "deploy" / "Caddyfile"
if caddy_p.is_file() and "@mobile_ua" not in caddy_p.read_text(encoding="utf-8"):
errors.append("Gate S4: deploy/Caddyfile missing @mobile_ua mobile detection block")
graph_txt = subpages["graph"].read_text(encoding="utf-8")
if "touchstart" not in graph_txt or "mobileGraphFiltersBtn" not in graph_txt or "mobileGraphInspectorBtn" not in graph_txt:
errors.append("Gate S4: /graph/index.html missing mobile touch handlers or drawer toggle buttons")
quant_app_p = core / "site" / "quant" / "quant-app.js"
if quant_app_p.is_file() and "touchmove" not in quant_app_p.read_text(encoding="utf-8"):
errors.append("Gate S4: site/quant/quant-app.js missing touchmove crosshair scrubbing")
for sname, spath in subpages.items():
if "hs-mobile-ui.js" not in spath.read_text(encoding="utf-8"):
errors.append(f"Gate S4: Subpage {sname} missing hs-mobile-ui.js script inclusion")
s1_ok = not any(e.startswith("Gate S1") for e in errors)
s2_ok = not any(e.startswith("Gate S2") for e in errors)
s3_ok = not any(e.startswith("Gate S3") for e in errors)
s4_ok = not any(e.startswith("Gate S4") for e in errors)
return {
"ok": len(errors) == 0,
"gates": {
"S1_zero_spurious_rgb_30_41_59_background": s1_ok,
"S2_intra_page_font_family_uniformity": s2_ok,
"S3_cross_page_navigation_and_header_parity": s3_ok,
"S4_mobile_device_detection_and_touch_ui": s4_ok,
},
"errors": errors,
}
def main(argv: list[str] | None = None) -> int: def main(argv: list[str] | None = None) -> int:
ap = argparse.ArgumentParser(prog="hs-public-smoke", description="Run the 6-Gate Public API & Surface Regression Suite against a cached internal baseline.") ap = argparse.ArgumentParser(prog="hs-public-smoke", description="Run the 6-Gate Public API & Surface Regression Suite against a cached internal baseline.")
ap.add_argument("--base-url", default="https://hyperstitionstud.io", help="Target base URL (e.g. https://hyperstitionstud.io or http://127.0.0.1:18090).") ap.add_argument("--base-url", default="https://hyperstitionstud.io", help="Target base URL (e.g. https://hyperstitionstud.io or http://127.0.0.1:18090).")
+2 -2
View File
@@ -39,8 +39,8 @@ from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool # noq
SERVER_INFO = { SERVER_INFO = {
"name": "hyperstitionstudio-mcp", "name": "hyperstitionstudio-mcp",
"version": "2.13.0", "version": "2.17.0",
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.13.0", "namespace_urn": "urn:io:hyperstitionstud:mcp:2.17.0",
} }
@@ -8,6 +8,12 @@ computes a structural UI element fingerprint (`ui-elements-manifest.json`), and
re-renders all 11 full-width `680x260` Group 3 UI closeups (`site/assets/closeups/*.png`) re-renders all 11 full-width `680x260` Group 3 UI closeups (`site/assets/closeups/*.png`)
whenever any page's UI elements (`id=...`, `<select><option>`, `.pill`, `<button>`, whenever any page's UI elements (`id=...`, `<select><option>`, `.pill`, `<button>`,
`<section>`, `<table...>`, or corpus counts) are added, modified, or removed. `<section>`, `<table...>`, or corpus counts) are added, modified, or removed.
Enforces `PLAN-HOMEPAGE-QUADRANT-CLOSEUPS-TEXT-BOUNDING-BOX-FIT-AND-AUDIT` (Plan #61):
- Zero mid-word `[:N]` string slicing across all 11 closeups.
- Dynamic font-ladder fitting (`_fit_font_for_width`, `_draw_box_text`, `_draw_kv_row`).
- Built-in `verify_closeup_geometry()` verifying Invariants B1 (Enclosing Box Containment),
B2 (Zero Border Crossings), and B3 (Zero Horizontal Sibling Text Collisions).
""" """
from __future__ import annotations from __future__ import annotations
@@ -17,6 +23,7 @@ import hashlib
import json import json
import math import math
import re import re
import shutil
from pathlib import Path from pathlib import Path
from typing import Any from typing import Any
@@ -68,6 +75,209 @@ def _fnt(path: str, size: int) -> Any:
return load_pillow_font(path, size) return load_pillow_font(path, size)
class _TrackedCanvasDraw:
"""
Wraps `ImageDraw.ImageDraw` to record every container box (`chamfer` or `rect`)
and every rendered text bounding box (`textbbox`) for `verify_closeup_geometry()`.
"""
def __init__(self, im: Image.Image) -> None:
self._d = ImageDraw.Draw(im)
self.boxes: list[tuple[str, tuple[int, int, int, int]]] = []
self.texts: list[tuple[tuple[float, float], str, tuple[int, int, int, int]]] = []
def __getattr__(self, name: str) -> Any:
return getattr(self._d, name)
def polygon(self, xy: Any, *args: Any, **kwargs: Any) -> Any:
if isinstance(xy, list) and len(xy) >= 4:
xs = [int(p[0]) for p in xy]
ys = [int(p[1]) for p in xy]
if max(xs) - min(xs) > 20 and max(ys) - min(ys) > 14:
box = (min(xs), min(ys), max(xs), max(ys))
if ("chamfer", box) not in self.boxes:
self.boxes.append(("chamfer", box))
return self._d.polygon(xy, *args, **kwargs)
def rectangle(self, xy: Any, *args: Any, **kwargs: Any) -> Any:
if isinstance(xy, (list, tuple)) and len(xy) == 4 and isinstance(xy[0], (int, float)):
bx1, by1, bx2, by2 = int(xy[0]), int(xy[1]), int(xy[2]), int(xy[3])
# Record UI container boxes (ignore narrow chart bars / progress fill bars without outlines)
has_outline = kwargs.get("outline") is not None or (len(args) >= 2 and args[1] is not None)
if has_outline and (bx2 - bx1 > 24) and (by2 - by1 >= 16):
box = (bx1, by1, bx2, by2)
if ("rect", box) not in self.boxes:
self.boxes.append(("rect", box))
return self._d.rectangle(xy, *args, **kwargs)
def text(self, xy: tuple[float, float], text: str, font: Any = None, fill: Any = None, **kwargs: Any) -> Any:
if text:
tb = self._d.textbbox(xy, text, font=font)
self.texts.append(((float(xy[0]), float(xy[1])), str(text), (int(tb[0]), int(tb[1]), int(tb[2]), int(tb[3]))))
return self._d.text(xy, text, font=font, fill=fill, **kwargs)
def _fit_font_for_width(
d: _TrackedCanvasDraw,
text: str,
max_width: int,
*,
preferred_size: int = 12,
min_size: int = 8,
bold: bool = False,
) -> tuple[Any, int, int]:
font_file = FONT_MONO_B if bold else FONT_MONO
for sz in range(preferred_size, min_size - 1, -1):
f = _fnt(font_file, sz)
tb = d.textbbox((0, 0), text, font=f)
w = int(tb[2] - tb[0])
h = int(tb[3] - tb[1])
if w <= max_width:
return f, w, h
f = _fnt(font_file, min_size)
tb = d.textbbox((0, 0), text, font=f)
return f, int(tb[2] - tb[0]), int(tb[3] - tb[1])
def _draw_box_text(
d: _TrackedCanvasDraw,
box: tuple[int, int, int, int],
text: str,
fill: tuple[int, int, int],
*,
pad_x: int = 6,
align: str = "left",
preferred_size: int = 12,
min_size: int = 8,
bold: bool = False,
y_pos: int | None = None,
) -> tuple[int, int, int, int]:
bx1, by1, bx2, by2 = box
avail_w = max(16, (bx2 - bx1) - 2 * pad_x)
f, tw, th = _fit_font_for_width(d, text, avail_w, preferred_size=preferred_size, min_size=min_size, bold=bold)
if align == "center":
tx = bx1 + max(pad_x, ((bx2 - bx1) - tw) // 2)
elif align == "right":
tx = max(bx1 + pad_x, bx2 - pad_x - tw)
else:
tx = bx1 + pad_x
ty = y_pos if y_pos is not None else (by1 + max(2, ((by2 - by1) - th) // 2 - 1))
d.text((tx, ty), text, font=f, fill=fill)
return d.texts[-1][2]
def _draw_kv_row(
d: _TrackedCanvasDraw,
box: tuple[int, int, int, int],
key_text: str,
val_text: str,
*,
fill_bg: tuple[int, int, int] = PLATE,
outline: tuple[int, int, int] = BORDER,
key_fill: tuple[int, int, int] = GOLD,
val_fill: tuple[int, int, int] = TEXT,
key_size: int = 11,
val_size: int = 11,
val_bold: bool = False,
min_val_x: int | None = None,
) -> None:
bx1, by1, bx2, by2 = box
d.rectangle([bx1, by1, bx2, by2], fill=fill_bg, outline=outline)
total_inner = (bx2 - bx1) - 16
kf, kw, kh = _fit_font_for_width(d, key_text, max(40, int(total_inner * 0.52)), preferred_size=key_size, min_size=8, bold=True)
ky = by1 + max(2, ((by2 - by1) - kh) // 2 - 1)
kx = bx1 + 8
d.text((kx, ky), key_text, font=kf, fill=key_fill)
key_tb = d.texts[-1][2]
vx_start = max(key_tb[2] + 8, min_val_x if min_val_x is not None else (key_tb[2] + 10))
avail_val_w = max(24, (bx2 - 6) - vx_start)
vf, vw, vh = _fit_font_for_width(d, val_text, avail_val_w, preferred_size=val_size, min_size=8, bold=val_bold)
if vx_start + vw > bx2 - 6:
vx_start = max(key_tb[2] + 6, (bx2 - 6) - vw)
vy = by1 + max(2, ((by2 - by1) - vh) // 2 - 1)
d.text((vx_start, vy), val_text, font=vf, fill=val_fill)
def verify_closeup_geometry(tracked_by_filename: dict[str, _TrackedCanvasDraw]) -> dict[str, Any]:
"""
Verify Invariants B1 (Enclosing Box Containment), B2 (Zero Border Crossings),
and B3 (Zero Horizontal Sibling Text Collisions) across all 11 closeups.
"""
breaches: list[dict[str, Any]] = []
border_crossings: list[dict[str, Any]] = []
text_overlaps: list[dict[str, Any]] = []
for fname, td in tracked_by_filename.items():
for idx, (xy, txt, tb) in enumerate(td.texts):
tx1, ty1, tx2, ty2 = tb
# B1: Smallest enclosing box that contains the text anchor point
enclosing: list[tuple[int, str, tuple[int, int, int, int]]] = []
for bkind, (bx1, by1, bx2, by2) in td.boxes:
if bx1 - 2 <= xy[0] <= bx2 and by1 - 2 <= xy[1] <= by2:
enclosing.append(((bx2 - bx1) * (by2 - by1), bkind, (bx1, by1, bx2, by2)))
enclosing.sort(key=lambda item: item[0])
if enclosing:
_, bkind, (bx1, by1, bx2, by2) = enclosing[0]
if tx1 < bx1 + 2 or tx2 > bx2 - 2 or ty1 < by1 + 1 or ty2 > by2 - 1:
breaches.append(
{
"file": fname,
"text": txt,
"textbbox": tb,
"container_kind": bkind,
"container_box": (bx1, by1, bx2, by2),
}
)
# B2: Check if text crosses any container border
for bkind, (bx1, by1, bx2, by2) in td.boxes:
if bx1 <= tx1 and tx2 <= bx2 and by1 <= ty1 and ty2 <= by2:
continue
ix1, iy1 = max(tx1, bx1), max(ty1, by1)
ix2, iy2 = min(tx2, bx2), min(ty2, by2)
if ix2 > ix1 and iy2 > iy1:
border_crossings.append(
{
"file": fname,
"text": txt,
"textbbox": tb,
"crossed_kind": bkind,
"crossed_box": (bx1, by1, bx2, by2),
}
)
# B3: Check horizontal overlap with sibling text on the same vertical line
for idx2, (xy2, txt2, tb2) in enumerate(td.texts):
if idx2 <= idx:
continue
if abs(xy[1] - xy2[1]) <= 6:
if not (tb[2] + 2 <= tb2[0] or tb2[2] + 2 <= tb[0]):
text_overlaps.append(
{
"file": fname,
"text_a": txt,
"bbox_a": tb,
"text_b": txt2,
"bbox_b": tb2,
}
)
all_clean = (len(breaches) == 0) and (len(border_crossings) == 0) and (len(text_overlaps) == 0)
if not all_clean:
raise AssertionError(
f"Closeup geometry audit failed: breaches={breaches}, "
f"border_crossings={border_crossings}, text_overlaps={text_overlaps}"
)
return {
"all_clean": True,
"checked_closeups": len(tracked_by_filename),
"breach_count": 0,
"border_crossing_count": 0,
"text_overlap_count": 0,
}
def _extract_js_ui_signature(js_text: str) -> dict[str, Any]: def _extract_js_ui_signature(js_text: str) -> dict[str, Any]:
""" """
Strategy 4A (Plan #51): Introspect companion `.js` files (`quant-app.js`, `quant-tutorials.js`, Strategy 4A (Plan #51): Introspect companion `.js` files (`quant-app.js`, `quant-tutorials.js`,
@@ -168,7 +378,6 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
if jp.is_file(): if jp.is_file():
js_sigs[jk] = _extract_js_ui_signature(jp.read_text(encoding="utf-8")) js_sigs[jk] = _extract_js_ui_signature(jp.read_text(encoding="utf-8"))
# Live data counts from registries
ts_p = core / "site" / "quant" / "quant-timeseries.json" ts_p = core / "site" / "quant" / "quant-timeseries.json"
ts_obj = load_json_cached(ts_p, copy_result=False) if ts_p.is_file() else {} ts_obj = load_json_cached(ts_p, copy_result=False) if ts_p.is_file() else {}
total_bars = sum( total_bars = sum(
@@ -207,6 +416,7 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
combined_hash = hashlib.sha256( combined_hash = hashlib.sha256(
json.dumps( json.dumps(
{ {
"layout_engine": "bounded_box_v2_plan61",
"surfaces": {k: v["ui_structure_sha256"] for k, v in sorted(surface_sigs.items())}, "surfaces": {k: v["ui_structure_sha256"] for k, v in sorted(surface_sigs.items())},
"js_surfaces": {k: v["js_ui_sha256"] for k, v in sorted(js_sigs.items())}, "js_surfaces": {k: v["js_ui_sha256"] for k, v in sorted(js_sigs.items())},
"total_bars": total_bars, "total_bars": total_bars,
@@ -236,9 +446,9 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
return manifest return manifest
def _new_canvas() -> tuple[Image.Image, ImageDraw.ImageDraw]: def _new_canvas() -> tuple[Image.Image, _TrackedCanvasDraw]:
im = Image.new("RGB", (680, 260), VOID) im = Image.new("RGB", (680, 260), VOID)
d = ImageDraw.Draw(im) d = _TrackedCanvasDraw(im)
for gx in range(0, 680, 32): for gx in range(0, 680, 32):
d.line([(gx, 0), (gx, 260)], fill=(12, 18, 30), width=1) d.line([(gx, 0), (gx, 260)], fill=(12, 18, 30), width=1)
for gy in range(0, 260, 32): for gy in range(0, 260, 32):
@@ -247,7 +457,7 @@ def _new_canvas() -> tuple[Image.Image, ImageDraw.ImageDraw]:
def _draw_chamfer_box( def _draw_chamfer_box(
d: ImageDraw.ImageDraw, d: _TrackedCanvasDraw,
box: tuple[int, int, int, int], box: tuple[int, int, int, int],
fill: tuple[int, int, int], fill: tuple[int, int, int],
outline: tuple[int, int, int], outline: tuple[int, int, int],
@@ -266,6 +476,7 @@ def render_all_quadrant_closeups(
""" """
Compare the live UI element fingerprint against `site/assets/closeups/ui-elements-manifest.json` Compare the live UI element fingerprint against `site/assets/closeups/ui-elements-manifest.json`
and re-render all 11 `680x260` quadrant closeups whenever any page's UI elements change (or when `force=True`). and re-render all 11 `680x260` quadrant closeups whenever any page's UI elements change (or when `force=True`).
Verifies 100% bounding-box containment (`verify_closeup_geometry()`) on every render.
""" """
cfg = load_workspace_config(workspace_root=workspace_root) cfg = load_workspace_config(workspace_root=workspace_root)
out_dir = cfg.core_dir / "site" / "assets" / "closeups" out_dir = cfg.core_dir / "site" / "assets" / "closeups"
@@ -317,7 +528,6 @@ def render_all_quadrant_closeups(
eng_c = metrics["engineering_counts"] eng_c = metrics["engineering_counts"]
surfaces = live_manifest["surfaces"] surfaces = live_manifest["surfaces"]
# Detect live controls on /graph/, /quant/, /learn/, /engineering/ (HTML + JS)
quant_ids = set(surfaces.get("quant", {}).get("ids") or []) quant_ids = set(surfaces.get("quant", {}).get("ids") or [])
quant_tut_js = (live_manifest.get("js_surfaces") or {}).get("quant_tutorials_js") or {} quant_tut_js = (live_manifest.get("js_surfaces") or {}).get("quant_tutorials_js") or {}
graph_has_min_deg = "minDegreeFilter" in (surfaces.get("graph", {}).get("ids") or []) graph_has_min_deg = "minDegreeFilter" in (surfaces.get("graph", {}).get("ids") or [])
@@ -330,15 +540,17 @@ def render_all_quadrant_closeups(
learn_has_sigil_svg = "grimoireSigilSvg" in (surfaces.get("learn", {}).get("ids") or []) learn_has_sigil_svg = "grimoireSigilSvg" in (surfaces.get("learn", {}).get("ids") or [])
eng_has_cli_filter = "engCliFilterInput" in (surfaces.get("engineering_hub", {}).get("ids") or []) eng_has_cli_filter = "engCliFilterInput" in (surfaces.get("engineering_hub", {}).get("ids") or [])
# 1. Quadrant 01 Tab 1: /calc/ Cipher Matrix tracked_draws: dict[str, _TrackedCanvasDraw] = {}
# 1. Quadrant 01 Tab 1: /calc/ Cipher Matrix (haiperdohpjematreeah)
im, d = _new_canvas() im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD) _draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD)
d.text((24, 20), "haiperdohp-jemaytreeah • Multi-Cipher Phonetic & Base-36 AQ Matrix", font=f_hdr, fill=EMERALD) d.text((24, 20), "haiperdohpjematreeah • Multi-Cipher Phonetic & Base-36 AQ Matrix", font=f_hdr, fill=EMERALD)
d.rectangle([24, 44, 656, 74], fill=WELL, outline=EMERALD) d.rectangle([24, 44, 656, 74], fill=WELL, outline=EMERALD)
d.text((34, 51), "Query: sinthetik dayta", font=f_mono_md, fill=TEXT) d.text((34, 51), "Query: sinthetik dayta", font=f_mono_md, fill=TEXT)
d.text((480, 52), f"db.txt: {db_cnt_str} Entries", font=f_mono, fill=CYAN) d.text((480, 52), f"db.txt: {db_cnt_str} Entries", font=f_mono, fill=CYAN)
ciphers = [ ciphers = [
("haiperdohp-jemaytreeah", "292", EMERALD), ("haiperdohpjematreeah", "292", EMERALD),
("Phonemic Ingglish AQ", "292", CYAN), ("Phonemic Ingglish AQ", "292", CYAN),
("Written English AQ", "250", GOLD), ("Written English AQ", "250", GOLD),
("Simple Ordinal", "178", ROSE), ("Simple Ordinal", "178", ROSE),
@@ -346,8 +558,9 @@ def render_all_quadrant_closeups(
cw = (656 - 24 - 24) // 4 cw = (656 - 24 - 24) // 4
for i, (clab, cval, ccol) in enumerate(ciphers): for i, (clab, cval, ccol) in enumerate(ciphers):
bx = 24 + i * (cw + 8) bx = 24 + i * (cw + 8)
_draw_chamfer_box(d, (bx, 84, bx + cw, 152), WELL, ccol, chamfer=7, pip=ccol) tile_box = (bx, 84, bx + cw, 152)
d.text((bx + 10, 90), clab[:19], font=f_mono_xs, fill=MUTED) _draw_chamfer_box(d, tile_box, WELL, ccol, chamfer=7, pip=ccol)
_draw_box_text(d, tile_box, clab, MUTED, pad_x=8, preferred_size=11, min_size=9, y_pos=90)
d.text((bx + 12, 110), cval, font=f_mono_xl, fill=ccol) d.text((bx + 12, 110), cval, font=f_mono_xl, fill=ccol)
rows = [ rows = [
("sinthetik dayta", "AQ = 292", "Cluster 292 • Gen 1 σ² = 0.00 • Syzygy 4::5"), ("sinthetik dayta", "AQ = 292", "Cluster 292 • Gen 1 σ² = 0.00 • Syzygy 4::5"),
@@ -361,6 +574,7 @@ def render_all_quadrant_closeups(
d.text((230, ry + 4), raq, font=f_mono_b, fill=EMERALD) d.text((230, ry + 4), raq, font=f_mono_b, fill=EMERALD)
d.text((335, ry + 4), rmeta, font=f_mono, fill=CYAN) d.text((335, ry + 4), rmeta, font=f_mono, fill=CYAN)
im.save(out_dir / "quadrant-1-cybermemetics-calc-graph.png", "PNG") im.save(out_dir / "quadrant-1-cybermemetics-calc-graph.png", "PNG")
tracked_draws["quadrant-1-cybermemetics-calc-graph.png"] = d
# 2. Quadrant 01 Tab 2: /graph/ Mode 2 ETI Radar # 2. Quadrant 01 Tab 2: /graph/ Mode 2 ETI Radar
im, d = _new_canvas() im, d = _new_canvas()
@@ -385,44 +599,55 @@ def render_all_quadrant_closeups(
d.line([(cx_r, cy_r), (nx, ny)], fill=(56, 189, 248), width=2) d.line([(cx_r, cy_r), (nx, ny)], fill=(56, 189, 248), width=2)
for nx, ny, ncol, nlab in nodes: for nx, ny, ncol, nlab in nodes:
d.ellipse([nx - 7, ny - 7, nx + 7, ny + 7], fill=ncol, outline=VOID) d.ellipse([nx - 7, ny - 7, nx + 7, ny + 7], fill=ncol, outline=VOID)
lx = nx + 10 if nx >= cx_r else nx - 58 tb_n = d.textbbox((0, 0), nlab, font=f_mono_b)
nw = int(tb_n[2] - tb_n[0])
lx = nx + 10 if nx >= cx_r else nx - nw - 10
ly = ny - 7 ly = ny - 7
if nlab == "aq:777": if nlab == "aq:777":
lx, ly = nx - 24, ny - 20 lx, ly = nx - nw // 2, ny - 20
elif nlab == "S1 (93)": elif nlab == "S1 (93)":
lx, ly = nx - 24, ny + 10 lx, ly = nx - nw // 2, ny + 10
elif lx + nw > 338:
# Keep label strictly inside radar well [24, 42, 346, 240]
lx = 338 - nw
ly = ny - 20
d.text((lx, ly), nlab, font=f_mono_b, fill=ncol) d.text((lx, ly), nlab, font=f_mono_b, fill=ncol)
_draw_chamfer_box(d, (358, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN) _draw_chamfer_box(d, (358, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((372, 52), "SELECTED NODE INSPECTOR", font=f_mono_b, fill=GOLD) d.text((372, 52), "SELECTED NODE INSPECTOR", font=f_mono_b, fill=GOLD)
d.text((372, 72), "aq:292 • Cluster 292 Hub", font=f_mono_md, fill=TEXT) d.text((372, 72), "aq:292 • Cluster 292 Hub", font=f_mono_md, fill=TEXT)
badges = [("Class: AQHub", CYAN), ("Deg: 38", GOLD), ("dr_9: 4 (4::5)", EMERALD)] badges = [
("Class: AQHub", 88, CYAN),
("Deg: 38", 68, GOLD),
("dr_9: 4 (4::5)", 104, EMERALD),
]
bx_i = 372 bx_i = 372
for btxt, bcol in badges: for btxt, bw, bcol in badges:
d.rectangle([bx_i, 96, bx_i + 86, 116], fill=PLATE, outline=bcol) bbox = (bx_i, 96, bx_i + bw, 116)
d.text((bx_i + 6, 99), btxt, font=f_mono_xs, fill=bcol) d.rectangle(list(bbox), fill=PLATE, outline=bcol)
bx_i += 92 _draw_box_text(d, bbox, btxt, bcol, pad_x=5, align="center", preferred_size=10, min_size=8)
bx_i += bw + 6
insp_lines = [ insp_lines = [
("Filter:", "9-Sum Syzygies • MinDeg ≥ 0"), ("Filter:", "9-Sum Syzygies • MinDeg ≥ 0"),
("Gen 1 Locks:", "sinthetik dayta • abstrakt masheen"), ("Gen 1 Locks:", "sinthetik dayta • abstrakt"),
("Variance:", "σ²_0 = 310.22 -> σ²_1 = 0.00 (G1)"), ("Variance:", "σ²_0 = 310.22 -> σ²_1 = 0.00"),
("Neighbors:", "Top 40 Cap + [Show All] Button"), ("Neighbors:", "Top 40 Cap + [Show All]"),
] ]
for li, (lk, lv) in enumerate(insp_lines): for li, (lk, lv) in enumerate(insp_lines):
ly = 128 + li * 25 ly = 128 + li * 25
d.rectangle([372, ly, 644, ly + 21], fill=PLATE, outline=BORDER) _draw_kv_row(d, (372, ly, 644, ly + 21), lk, lv, key_size=11, val_size=10, min_val_x=472)
d.text((380, ly + 3), lk, font=f_mono_b, fill=GOLD)
d.text((466, ly + 3), lv[:26], font=f_mono_xs, fill=TEXT)
im.save(out_dir / "quadrant-1-tab-2-graph.png", "PNG") im.save(out_dir / "quadrant-1-tab-2-graph.png", "PNG")
tracked_draws["quadrant-1-tab-2-graph.png"] = d
# 3. Quadrant 02 Tab 1: Panel 1 Trajectory & Dose (dynamically reflects #tutSpeechBtn, #timeWindowPills, #tickerQuickFilter) # 3. Quadrant 02 Tab 1: Panel 1 Trajectory & Dose
im, d = _new_canvas() im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=GOLD) _draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=GOLD)
d.text((24, 18), "PANEL 1: Synchronized 2-Pane Trajectory & Dose D ∈ {0..4}", font=f_hdr, fill=GOLD) d.text((24, 18), "PANEL 1: 2-Pane Trajectory & Dose D ∈ {0..4}", font=f_hdr, fill=GOLD)
win_badge = "[30D|90D|ALL]•" if quant_has_window else "" win_badge = "[30D|90D|ALL]•" if quant_has_window else ""
flt_badge = "Filter•" if quant_has_quick_filter else "" flt_badge = "Filter•" if quant_has_quick_filter else ""
vox_badge = "🔊Voice:ON•" if quant_has_speech_btn else "" vox_badge = "Vox:ON•" if quant_has_speech_btn else ""
d.rectangle([388, 16, 656, 36], fill=WELL, outline=GOLD) pill_box = (398, 16, 656, 36)
d.text((394, 19), f"{vox_badge}{win_badge}{flt_badge}NVDA", font=f_mono_xs, fill=GOLD) d.rectangle(list(pill_box), fill=WELL, outline=GOLD)
_draw_box_text(d, pill_box, f"{vox_badge}{win_badge}{flt_badge}NVDA", GOLD, pad_x=6, align="center", preferred_size=10, min_size=8)
d.rectangle([24, 42, 656, 168], fill=WELL, outline=BORDER) d.rectangle([24, 42, 656, 168], fill=WELL, outline=BORDER)
d.line([(36, 114), (644, 114)], fill=(180, 50, 70), width=1) d.line([(36, 114), (644, 114)], fill=(180, 50, 70), width=1)
d.text((42, 96), "Entity Threshold: envideea = 137", font=f_mono_xs, fill=ROSE) d.text((42, 96), "Entity Threshold: envideea = 137", font=f_mono_xs, fill=ROSE)
@@ -431,11 +656,11 @@ def render_all_quadrant_closeups(
for px, py in pts: for px, py in pts:
d.ellipse([px - 4, py - 4, px + 4, py + 4], fill=GOLD, outline=VOID) d.ellipse([px - 4, py - 4, px + 4, py + 4], fill=GOLD, outline=VOID)
d.rectangle([180, 74, 290, 94], fill=PLATE, outline=GOLD) d.rectangle([180, 74, 290, 94], fill=PLATE, outline=GOLD)
d.text((188, 77), "Scope 1 (137)", font=f_mono_b, fill=GOLD) _draw_box_text(d, (180, 74, 290, 94), "Scope 1 (137)", GOLD, pad_x=6, align="center", preferred_size=11, bold=True)
d.rectangle([355, 56, 462, 76], fill=PLATE, outline=EMERALD) d.rectangle([355, 56, 462, 76], fill=PLATE, outline=EMERALD)
d.text((363, 59), "Wire Eq (292)", font=f_mono_b, fill=EMERALD) _draw_box_text(d, (355, 56, 462, 76), "Wire Eq (292)", EMERALD, pad_x=6, align="center", preferred_size=11, bold=True)
d.rectangle([530, 46, 638, 66], fill=PLATE, outline=CYAN) d.rectangle([530, 46, 638, 66], fill=PLATE, outline=CYAN)
d.text((538, 49), "Dose D=3 Lock", font=f_mono_b, fill=CYAN) _draw_box_text(d, (530, 46, 638, 66), "Dose D=3 Lock", CYAN, pad_x=6, align="center", preferred_size=11, bold=True)
d.rectangle([24, 176, 656, 240], fill=(11, 16, 24), outline=BORDER) d.rectangle([24, 176, 656, 240], fill=(11, 16, 24), outline=BORDER)
d.text((34, 181), f"Pane 2: 30D Window Confluence Dose Inspector (N = 19 Trading Days • {bars_cnt} Bars)", font=f_mono_xs, fill=MUTED) d.text((34, 181), f"Pane 2: 30D Window Confluence Dose Inspector (N = 19 Trading Days • {bars_cnt} Bars)", font=f_mono_xs, fill=MUTED)
for bi in range(19): for bi in range(19):
@@ -445,6 +670,7 @@ def render_all_quadrant_closeups(
bcol = CYAN if dose == 3 else (EMERALD if dose == 2 else (71, 85, 105)) bcol = CYAN if dose == 3 else (EMERALD if dose == 2 else (71, 85, 105))
d.rectangle([bx, 234 - bh, bx + 22, 234], fill=bcol) d.rectangle([bx, 234 - bh, bx + 22, 234], fill=bcol)
im.save(out_dir / "quadrant-2-esoteric-finance-quant.png", "PNG") im.save(out_dir / "quadrant-2-esoteric-finance-quant.png", "PNG")
tracked_draws["quadrant-2-esoteric-finance-quant.png"] = d
# 4. Quadrant 02 Tab 2: Panel 6 Bayesian & Panel 5 FRED # 4. Quadrant 02 Tab 2: Panel 6 Bayesian & Panel 5 FRED
im, d = _new_canvas() im, d = _new_canvas()
@@ -467,55 +693,65 @@ def render_all_quadrant_closeups(
d.rectangle([38, by + 18, 318, by + 32], fill=PLATE, outline=BORDER) d.rectangle([38, by + 18, 318, by + 32], fill=PLATE, outline=BORDER)
d.rectangle([38, by + 18, 38 + int(280 * min(1.0, bval)), by + 32], fill=bcol) d.rectangle([38, by + 18, 38 + int(280 * min(1.0, bval)), by + 32], fill=bcol)
d.rectangle([38, 212, 318, 232], fill=PLATE, outline=CYAN) d.rectangle([38, 212, 318, 232], fill=PLATE, outline=CYAN)
d.text((46, 215), "Simplex Σ P(R_k|E_t) = 1.0000", font=f_mono_xs, fill=CYAN) _draw_box_text(d, (38, 212, 318, 232), "Simplex Σ P(R_k|E_t) = 1.0000", CYAN, pad_x=8, preferred_size=11)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN) _draw_chamfer_box(d, (346, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((360, 52), "PANEL 5: 14 REAL FRED MACRO SERIES", font=f_mono_b, fill=CYAN) d.text((360, 52), "PANEL 5: 14 REAL FRED MACRO SERIES", font=f_mono_b, fill=CYAN)
fred_rows = [ fred_rows = [
("EFFR / SOFR", "4.58% / 4.68%", "+10 bps Repo Spread"), ("EFFR / SOFR", "4.58 / 4.68%", "+10 bps Spread"),
("M2 - M1 Spread", "$3,365.9B", "$3.37T -> 337 (68th Prime)"), ("M2 - M1 Spread", "$3,365.9B", "337 (68th Prime)"),
("M2 Velocity V_M2", "1.405x", "GDP / M2SL Ratio"), ("M2 Velocity V", "1.405x", "GDP / M2 Ratio"),
("10Y - EFFR Slope", "+97 bps", "'naintee sevan' = 237"), ("10Y - EFFR", "+97 bps", "AQ('97') = 237"),
("Missing / Closed", "null", "Zero Forward-Fill Policy"), ("Closed Market", "null", "0 Forward-Fill"),
] ]
for fi, (fk, fv, fn) in enumerate(fred_rows): for fi, (fk, fv, fn) in enumerate(fred_rows):
fy = 78 + fi * 30 fy = 78 + fi * 30
d.rectangle([360, fy, 642, fy + 25], fill=PLATE, outline=BORDER) rbox = (360, fy, 642, fy + 25)
d.text((368, fy + 5), fk, font=f_mono_b, fill=GOLD) d.rectangle(list(rbox), fill=PLATE, outline=BORDER)
d.text((488, fy + 5), fv, font=f_mono_b, fill=TEXT) f_k = _fnt(FONT_MONO_B, 10)
d.text((568, fy + 5), fn[:11], font=f_mono_xs, fill=EMERALD) f_v = _fnt(FONT_MONO_B, 10)
f_n = _fnt(FONT_MONO, 10)
d.text((366, fy + 6), fk, font=f_k, fill=GOLD)
d.text((466, fy + 6), fv, font=f_v, fill=TEXT)
d.text((544, fy + 6), fn, font=f_n, fill=EMERALD)
im.save(out_dir / "quadrant-2-tab-2-bayesian-fred.png", "PNG") im.save(out_dir / "quadrant-2-tab-2-bayesian-fred.png", "PNG")
tracked_draws["quadrant-2-tab-2-bayesian-fred.png"] = d
# 5. Quadrant 02 Tab 3: Panel 2 6-Lens Leaderboard & TCG Card (dynamically reflects #lensSelect & UI indicator badge) # 5. Quadrant 02 Tab 3: Panel 2 6-Lens Leaderboard & TCG Card
im, d = _new_canvas() im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=GOLD) _draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=GOLD)
hdr_q2_t3 = "PANEL 2 & 3: #lensSelect 6-Lens Leaderboard & TCG Card" if quant_has_lens_select else "PANEL 2 & 3: 6-Lens Assemblage Leaderboard & One-Shot TCG Stats Card" hdr_q2_t3 = "PANEL 2 & 3: #lensSelect 6-Lens Leaderboard & TCG Card" if quant_has_lens_select else "PANEL 2 & 3: 6-Lens Leaderboard & One-Shot TCG Card"
d.text((24, 18), hdr_q2_t3, font=f_hdr, fill=GOLD) d.text((24, 18), hdr_q2_t3, font=f_hdr, fill=GOLD)
if quant_has_ui_indicator: if quant_has_ui_indicator:
d.rectangle([476, 15, 656, 35], fill=WELL, outline=GOLD) ind_box = (476, 15, 656, 35)
d.text((482, 18), "▼ UI: #lensSelect", font=f_mono_xs, fill=GOLD) d.rectangle(list(ind_box), fill=WELL, outline=GOLD)
_draw_box_text(d, ind_box, "▼ UI: #lensSelect", GOLD, pad_x=8, align="center", preferred_size=11)
_draw_chamfer_box(d, (24, 42, 416, 240), WELL, GOLD, chamfer=8, pip=GOLD) _draw_chamfer_box(d, (24, 42, 416, 240), WELL, GOLD, chamfer=8, pip=GOLD)
lenses = ["[Fund Mgr]", "[TierZoo]", "[Board]", "[Sabermetric]"] lenses = [("[Fund Mgr]", 84), ("[TierZoo]", 78), ("[Board]", 66), ("[Sabermetric]", 104)]
for li, ltxt in enumerate(lenses): lx = 36
lx = 36 + li * 92 for li, (ltxt, lw) in enumerate(lenses):
d.rectangle([lx, 50, lx + 86, 70], fill=PLATE, outline=GOLD if li == 0 else BORDER) lbox = (lx, 50, lx + lw, 70)
d.text((lx + 6, 53), ltxt, font=f_mono_xs, fill=GOLD if li == 0 else MUTED) d.rectangle(list(lbox), fill=PLATE, outline=GOLD if li == 0 else BORDER)
_draw_box_text(d, lbox, ltxt, GOLD if li == 0 else MUTED, pad_x=5, align="center", preferred_size=10, min_size=8)
lx += lw + 8
t_rows = [ t_rows = [
("#1 S1 Cybernetic", "ETI 93", "Tier S+", "NVDA / PLTR / MSFT", GOLD), ("#1 S1 Cybernetic", "ETI 93", "Tier S+", "NVDA/PLTR/MSFT", GOLD),
("#2 S2 High-Freq", "ETI 90", "Tier S", "COIN / CME / VIRT", CYAN), ("#2 S2 High-Freq", "ETI 90", "Tier S", "COIN/CME/VIRT", CYAN),
("#3 S6 Sovereign", "ETI 87", "Tier S", "BLK / JPM / GS", EMERALD), ("#3 S6 Sovereign", "ETI 87", "Tier S", "BLK/JPM/GS", EMERALD),
("#4 S3 Lithography", "ETI 83", "Tier A", "ASML / TSM / AVGO", ROSE), ("#4 S3 Lithography", "ETI 83", "Tier A", "ASML/TSM/AVGO", ROSE),
("#5 M3 Convergence", "ETI 76", "Tier B", "Cluster 292 / 333", VIOLET), ("#5 M3 Convergence", "ETI 76", "Tier B", "AQ 292 / 333", VIOLET),
] ]
f_tr_b = _fnt(FONT_MONO_B, 10)
f_tr = _fnt(FONT_MONO, 10)
for ti, (tname, teti, ttier, tsyms, tcol) in enumerate(t_rows): for ti, (tname, teti, ttier, tsyms, tcol) in enumerate(t_rows):
ty = 80 + ti * 30 ty = 80 + ti * 30
d.rectangle([36, ty, 404, ty + 25], fill=PLATE, outline=BORDER) d.rectangle([36, ty, 404, ty + 25], fill=PLATE, outline=BORDER)
d.text((44, ty + 5), tname, font=f_mono_b, fill=TEXT) d.text((42, ty + 6), tname, font=f_tr_b, fill=TEXT)
d.text((196, ty + 5), teti, font=f_mono_b, fill=tcol) d.text((172, ty + 6), teti, font=f_tr_b, fill=tcol)
d.text((258, ty + 5), ttier, font=f_mono_xs, fill=GOLD) d.text((228, ty + 6), ttier, font=f_tr, fill=GOLD)
d.text((314, ty + 5), tsyms[:12], font=f_mono_xs, fill=MUTED) d.text((288, ty + 6), tsyms, font=f_tr, fill=MUTED)
_draw_chamfer_box(d, (428, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN) _draw_chamfer_box(d, (428, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((442, 52), "NVDA • S3 / S1 APEX", font=f_mono_b, fill=CYAN) d.text((440, 52), "NVDA • S3 / S1 APEX", font=f_mono_b, fill=CYAN)
d.text((442, 70), "envideea • AQ = 137 (33rd Prime)", font=f_mono_xs, fill=GOLD) _draw_box_text(d, (428, 42, 656, 240), "envideea • AQ = 137 (33rd Prime)", GOLD, pad_x=10, preferred_size=10, min_size=9, y_pos=70)
stats = [("CAP", 96, GOLD), ("VEL", 92, CYAN), ("COL", 88, EMERALD), ("ARM", 85, ROSE)] stats = [("CAP", 96, GOLD), ("VEL", 92, CYAN), ("COL", 88, EMERALD), ("ARM", 85, ROSE)]
for si, (slab, sval, scol) in enumerate(stats): for si, (slab, sval, scol) in enumerate(stats):
sy = 94 + si * 26 sy = 94 + si * 26
@@ -524,10 +760,11 @@ def render_all_quadrant_closeups(
d.rectangle([484, sy + 2, 484 + int(1.2 * sval), sy + 14], fill=scol) d.rectangle([484, sy + 2, 484 + int(1.2 * sval), sy + 14], fill=scol)
d.text((612, sy), str(sval), font=f_mono_b, fill=scol) d.text((612, sy), str(sval), font=f_mono_b, fill=scol)
d.rectangle([442, 204, 642, 228], fill=PLATE, outline=EMERALD) d.rectangle([442, 204, 642, 228], fill=PLATE, outline=EMERALD)
d.text((450, 209), "CIDv1: baguqeera... (35ms)", font=f_mono_xs, fill=EMERALD) _draw_box_text(d, (442, 204, 642, 228), "CIDv1: baguqeera... (35ms)", EMERALD, pad_x=8, preferred_size=10)
im.save(out_dir / "quadrant-2-tab-3-leaderboard-card.png", "PNG") im.save(out_dir / "quadrant-2-tab-3-leaderboard-card.png", "PNG")
tracked_draws["quadrant-2-tab-3-leaderboard-card.png"] = d
# 6. Quadrant 03 Tab 1: /learn/ Prereq Track (auto-adapts if grimoiric elements are added to /learn/) # 6. Quadrant 03 Tab 1: /learn/ Prereq Track
im, d = _new_canvas() im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD) _draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD)
learn_hdr = ( learn_hdr = (
@@ -539,18 +776,16 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 42, 344, 240), WELL, EMERALD, chamfer=8, pip=EMERALD) _draw_chamfer_box(d, (24, 42, 344, 240), WELL, EMERALD, chamfer=8, pip=EMERALD)
d.text((38, 52), "STEP-BY-STEP PREREQUISITE TRACK", font=f_mono_b, fill=EMERALD) d.text((38, 52), "STEP-BY-STEP PREREQUISITE TRACK", font=f_mono_b, fill=EMERALD)
levels = [ levels = [
("Level 1", "Base-36 Place Value & Mod-9", "1-2 hrs"), ("Level 1", "Base-36 Place Value & Mod-9"),
("Level 2", "Set Mappings & Pop Variance σ²", "3-5 hrs"), ("Level 2", "Set Maps & Pop Variance σ²"),
("Level 3", "Property Graphs & Dot Products", "6-10 hrs"), ("Level 3", "Property Graphs & Dot Prod"),
("Level 4", "Bayes' Simplex & Z-Combinator", "12+ hrs"), ("Level 4", "Bayes Simplex & Z-Calculus"),
] ]
for li, (llab, ldesc, _) in enumerate(levels): for li, (llab, ldesc) in enumerate(levels):
ly = 76 + li * 30 ly = 76 + li * 30
d.rectangle([38, ly, 330, ly + 25], fill=PLATE, outline=BORDER) _draw_kv_row(d, (38, ly, 330, ly + 25), llab, ldesc, key_size=11, val_size=10, min_val_x=108)
d.text((46, ly + 5), llab, font=f_mono_b, fill=GOLD)
d.text((112, ly + 5), ldesc[:22], font=f_mono_xs, fill=TEXT)
d.rectangle([38, 202, 330, 228], fill=PLATE, outline=CYAN) d.rectangle([38, 202, 330, 228], fill=PLATE, outline=CYAN)
d.text((46, 208), "Free Links: MIT 6.042J • 3Blue1Brown", font=f_mono_xs, fill=CYAN) _draw_box_text(d, (38, 202, 330, 228), "Free Links: MIT 6.042J • 3Blue1Brown", CYAN, pad_x=8, preferred_size=10)
_draw_chamfer_box(d, (356, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN) _draw_chamfer_box(d, (356, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((370, 52), "MODULE M01: BASE-36 DECOMPOSITION", font=f_mono_b, fill=CYAN) d.text((370, 52), "MODULE M01: BASE-36 DECOMPOSITION", font=f_mono_b, fill=CYAN)
d.rectangle([370, 74, 642, 102], fill=PLATE, outline=EMERALD) d.rectangle([370, 74, 642, 102], fill=PLATE, outline=EMERALD)
@@ -561,10 +796,12 @@ def render_all_quadrant_closeups(
d.rectangle([lx, 112, lx + 48, 168], fill=PLATE, outline=GOLD) d.rectangle([lx, 112, lx + 48, 168], fill=PLATE, outline=GOLD)
d.text((lx + 16, 118), ch, font=f_mono_md, fill=TEXT) d.text((lx + 16, 118), ch, font=f_mono_md, fill=TEXT)
d.text((lx + 12, 142), val, font=f_mono_b, fill=GOLD) d.text((lx + 12, 142), val, font=f_mono_b, fill=GOLD)
d.rectangle([370, 178, 642, 228], fill=PLATE, outline=EMERALD) res_box = (370, 178, 642, 228)
d.text((382, 186), "21 + 14 + 22 + 30 + 27 = 114", font=f_mono_md, fill=EMERALD) d.rectangle(list(res_box), fill=PLATE, outline=EMERALD)
d.text((382, 206), "Mod-9 Digital Root dr_9(114) = 6 (3::6)", font=f_mono_xs, fill=CYAN) d.text((382, 185), "21 + 14 + 22 + 30 + 27 = 114", font=f_mono_md, fill=EMERALD)
_draw_box_text(d, res_box, "Mod-9 Digital Root dr_9(114) = 6 (3::6)", CYAN, pad_x=10, preferred_size=10, min_size=9, y_pos=206)
im.save(out_dir / "quadrant-3-info-science-novice-learn-polyglot.png", "PNG") im.save(out_dir / "quadrant-3-info-science-novice-learn-polyglot.png", "PNG")
tracked_draws["quadrant-3-info-science-novice-learn-polyglot.png"] = d
# 7. Quadrant 03 Tab 2: /math/ 2-Col Guile & Z-REPL # 7. Quadrant 03 Tab 2: /math/ 2-Col Guile & Z-REPL
im, d = _new_canvas() im, d = _new_canvas()
@@ -574,8 +811,9 @@ def render_all_quadrant_closeups(
px = 24 px = 24
for ptxt, pact in pills: for ptxt, pact in pills:
pw = len(ptxt) * 8 + 20 pw = len(ptxt) * 8 + 20
d.rectangle([px, 40, px + pw, 62], fill=(18, 28, 46) if pact else WELL, outline=GOLD if pact else BORDER) pbox = (px, 40, px + pw, 62)
d.text((px + 10, 44), ptxt, font=f_mono_xs, fill=GOLD if pact else MUTED) d.rectangle(list(pbox), fill=(18, 28, 46) if pact else WELL, outline=GOLD if pact else BORDER)
_draw_box_text(d, pbox, ptxt, GOLD if pact else MUTED, pad_x=6, align="center", preferred_size=10)
px += pw + 8 px += pw + 8
_draw_chamfer_box(d, (24, 70, 334, 182), WELL, CYAN, chamfer=7, pip=CYAN) _draw_chamfer_box(d, (24, 70, 334, 182), WELL, CYAN, chamfer=7, pip=CYAN)
d.text((36, 78), "1. Formal Math & Python 3.12", font=f_mono_b, fill=CYAN) d.text((36, 78), "1. Formal Math & Python 3.12", font=f_mono_b, fill=CYAN)
@@ -592,6 +830,7 @@ def render_all_quadrant_closeups(
d.text((36, 196), "4-Ring Zero-Eval AST Trace (?repl=trace • Ring 2 Quota <= 2000 Steps):", font=f_mono_xs, fill=GOLD) d.text((36, 196), "4-Ring Zero-Eval AST Trace (?repl=trace • Ring 2 Quota <= 2000 Steps):", font=f_mono_xs, fill=GOLD)
d.text((36, 215), "guile> (prime-factors 666) => Step 1: d=2 -> 333 => Normal Form: (2 3 3 37)", font=f_mono_b, fill=EMERALD) d.text((36, 215), "guile> (prime-factors 666) => Step 1: d=2 -> 333 => Normal Form: (2 3 3 37)", font=f_mono_b, fill=EMERALD)
im.save(out_dir / "quadrant-3-tab-2-math-guile.png", "PNG") im.save(out_dir / "quadrant-3-tab-2-math-guile.png", "PNG")
tracked_draws["quadrant-3-tab-2-math-guile.png"] = d
# 8. Quadrant 03 Tab 3: /math/ 2-Col TypeScript & Rust # 8. Quadrant 03 Tab 3: /math/ 2-Col TypeScript & Rust
im, d = _new_canvas() im, d = _new_canvas()
@@ -628,6 +867,7 @@ def render_all_quadrant_closeups(
col = EMERALD if ln.startswith("//") else TEXT col = EMERALD if ln.startswith("//") else TEXT
d.text((360, 84 + idx * 18), ln, font=f_mono_xs, fill=col) d.text((360, 84 + idx * 18), ln, font=f_mono_xs, fill=col)
im.save(out_dir / "quadrant-3-tab-3-math-ts-rust.png", "PNG") im.save(out_dir / "quadrant-3-tab-3-math-ts-rust.png", "PNG")
tracked_draws["quadrant-3-tab-3-math-ts-rust.png"] = d
# 9. Quadrant 04 Tab 1: /engineering/ DevOps & CLIs # 9. Quadrant 04 Tab 1: /engineering/ DevOps & CLIs
im, d = _new_canvas() im, d = _new_canvas()
@@ -648,9 +888,9 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 102, 334, 240), WELL, ROSE, chamfer=8, pip=ROSE) _draw_chamfer_box(d, (24, 102, 334, 240), WELL, ROSE, chamfer=8, pip=ROSE)
d.text((36, 112), "TWO-SCRIPT OPERATOR INVARIANT", font=f_mono_b, fill=ROSE) d.text((36, 112), "TWO-SCRIPT OPERATOR INVARIANT", font=f_mono_b, fill=ROSE)
d.rectangle([36, 134, 322, 164], fill=PLATE, outline=BORDER) d.rectangle([36, 134, 322, 164], fill=PLATE, outline=BORDER)
d.text((44, 142), "1. ./push-all-to-git-libre-audio.sh", font=f_mono_xs, fill=EMERALD) _draw_box_text(d, (36, 134, 322, 164), "1. ./push-all-to-git-libre-audio.sh", EMERALD, pad_x=8, preferred_size=11)
d.rectangle([36, 170, 322, 200], fill=PLATE, outline=BORDER) d.rectangle([36, 170, 322, 200], fill=PLATE, outline=BORDER)
d.text((44, 178), "2. sudo deploy/sync-vps-repos.sh", font=f_mono_xs, fill=CYAN) _draw_box_text(d, (36, 170, 322, 200), "2. sudo deploy/sync-vps-repos.sh", CYAN, pad_x=8, preferred_size=11)
d.text((36, 210), "tmpfs RAM • Brotli-11 • 0 /dev/null", font=f_mono_xs, fill=GOLD) d.text((36, 210), "tmpfs RAM • Brotli-11 • 0 /dev/null", font=f_mono_xs, fill=GOLD)
_draw_chamfer_box(d, (346, 102, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN) _draw_chamfer_box(d, (346, 102, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
cli_hdr = "CLI ENTRYPOINTS [Filter]" if eng_has_cli_filter else "CLI ENTRYPOINTS (pyproject.toml)" cli_hdr = "CLI ENTRYPOINTS [Filter]" if eng_has_cli_filter else "CLI ENTRYPOINTS (pyproject.toml)"
@@ -663,10 +903,9 @@ def render_all_quadrant_closeups(
] ]
for ci_i, (cname, cmod) in enumerate(clis): for ci_i, (cname, cmod) in enumerate(clis):
cy_c = 134 + ci_i * 25 cy_c = 134 + ci_i * 25
d.rectangle([358, cy_c, 644, cy_c + 21], fill=PLATE, outline=BORDER) _draw_kv_row(d, (358, cy_c, 644, cy_c + 21), cname, cmod, key_size=11, val_size=10, min_val_x=478)
d.text((366, cy_c + 3), cname, font=f_mono_b, fill=GOLD)
d.text((492, cy_c + 3), cmod, font=f_mono_xs, fill=TEXT)
im.save(out_dir / "quadrant-4-operators-deployment-vps.png", "PNG") im.save(out_dir / "quadrant-4-operators-deployment-vps.png", "PNG")
tracked_draws["quadrant-4-operators-deployment-vps.png"] = d
# 10. Quadrant 04 Tab 2: Unit E4 MCP, REST & ETag 304 Probe # 10. Quadrant 04 Tab 2: Unit E4 MCP, REST & ETag 304 Probe
im, d = _new_canvas() im, d = _new_canvas()
@@ -675,33 +914,41 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 42, 334, 240), WELL, CYAN, chamfer=8, pip=CYAN) _draw_chamfer_box(d, (24, 42, 334, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((36, 52), f"{eng_c.get('mcp_tools', 20)} TOOLS • 14 RESOURCES • 4 PROMPTS", font=f_mono_b, fill=CYAN) d.text((36, 52), f"{eng_c.get('mcp_tools', 20)} TOOLS • 14 RESOURCES • 4 PROMPTS", font=f_mono_b, fill=CYAN)
eps = [ eps = [
("POST /mcp", "JSON-RPC 2.0 Streamable"), ("POST /mcp", "JSON-RPC Streamable"),
("GET /api/v1/status", "Health + CIDv1 ETag"), ("GET /api/v1/status", "Health + CIDv1 ETag"),
("GET /api/v1/quant/*", "24 Tickers + 14 FRED"), ("GET /api/v1/quant/*", "24 Tickers + 14 FRED"),
("GET /api/v1/ipld/cid", "RFC 8785 JCS + SHA-256"), ("GET /api/v1/ipld/cid", "RFC 8785 + SHA-256"),
("ProtectSystem=strict", "EROFS Verified (20/20)"), ("ProtectSystem=strict", "EROFS Verified 20/20"),
] ]
for ei, (ep, edesc) in enumerate(eps): for ei, (ep, edesc) in enumerate(eps):
ey = 78 + ei * 30 ey = 78 + ei * 30
d.rectangle([36, ey, 322, ey + 25], fill=PLATE, outline=BORDER) _draw_kv_row(d, (36, ey, 322, ey + 25), ep, edesc, key_size=10, val_size=10, min_val_x=184)
d.text((44, ey + 5), ep, font=f_mono_b, fill=GOLD) right_e4_box = (346, 42, 656, 240)
d.text((184, ey + 5), edesc[:18], font=f_mono_xs, fill=TEXT) _draw_chamfer_box(d, right_e4_box, WELL, EMERALD, chamfer=8, pip=EMERALD)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, EMERALD, chamfer=8, pip=EMERALD) _draw_box_text(d, right_e4_box, "LIVE API & ETAG 304 PROBE (#live-smoke-probe)", EMERALD, pad_x=12, preferred_size=11, min_size=9, bold=True, y_pos=52)
d.text((360, 52), "LIVE API & ETAG 304 PROBE (#live-smoke-probe)", font=f_mono_b, fill=EMERALD) btn_e4_box = (360, 76, 642, 104)
d.rectangle([360, 76, 642, 104], fill=(18, 28, 46), outline=EMERALD) d.rectangle(list(btn_e4_box), fill=(18, 28, 46), outline=EMERALD)
d.text((374, 83), "[ ⚛ Run /api/v1/status & ETag 304 Probe ]", font=f_mono_b, fill=TEXT) _draw_box_text(d, btn_e4_box, "[ ⚛ Run /api/v1/status & ETag 304 Probe ]", TEXT, pad_x=8, align="center", preferred_size=11, min_size=9, bold=True)
probe_lines = [ probe_lines = [
("1st Fetch:", "HTTP 200 OK (4.2 ms)"), ("1st Fetch:", "HTTP 200 OK (4.2 ms)"),
("ETag:", "\"baguqeera7x9m...\""), ("ETag:", "\"baguqeera7x9m...\""),
("2nd Fetch:", "If-None-Match -> HTTP 304 (0.8 ms)"), ("2nd Fetch:", "If-None-Match -> HTTP 304 (0.8ms)"),
("Isolation:", "ReadOnlyIsolationGuard: PASS"), ("Isolation:", "ReadOnlyIsolationGuard: PASS"),
] ]
for pi, (pk, pv) in enumerate(probe_lines): for pi, (pk, pv) in enumerate(probe_lines):
py_p = 114 + pi * 28 py_p = 114 + pi * 28
d.rectangle([360, py_p, 642, py_p + 23], fill=PLATE, outline=BORDER) _draw_kv_row(
d.text((368, py_p + 4), pk, font=f_mono_b, fill=GOLD) d,
d.text((456, py_p + 4), pv, font=f_mono_xs, fill=EMERALD if "304" in pv or "PASS" in pv else TEXT) (360, py_p, 642, py_p + 23),
pk,
pv,
key_size=10,
val_size=10,
val_fill=EMERALD if "304" in pv or "PASS" in pv else TEXT,
min_val_x=444,
)
im.save(out_dir / "quadrant-4-tab-2-mcp-etag.png", "PNG") im.save(out_dir / "quadrant-4-tab-2-mcp-etag.png", "PNG")
tracked_draws["quadrant-4-tab-2-mcp-etag.png"] = d
# 11. Quadrant 04 Tab 3: /ci/ 4-Gate Pipeline & P1-P6 Smoke # 11. Quadrant 04 Tab 3: /ci/ 4-Gate Pipeline & P1-P6 Smoke
im, d = _new_canvas() im, d = _new_canvas()
@@ -710,40 +957,49 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 42, 334, 240), WELL, GOLD, chamfer=8, pip=GOLD) _draw_chamfer_box(d, (24, 42, 334, 240), WELL, GOLD, chamfer=8, pip=GOLD)
d.text((36, 52), "4-GATE CI PROVISIONER (db.txt)", font=f_mono_b, fill=GOLD) d.text((36, 52), "4-GATE CI PROVISIONER (db.txt)", font=f_mono_b, fill=GOLD)
gates = [ gates = [
("Gate A: Format", "ASCII Lowercase Clean [PASS]"), ("Gate A: Format", "ASCII Lowercase [PASS]"),
("Gate B: Phonemic", "CMUdict 126k Purity [PASS]"), ("Gate B: Phonemic", "CMUdict 126k [PASS]"),
("Gate C: AQ Parity", "Base-36 Sum Lock [PASS]"), ("Gate C: AQ Parity", "Base-36 Sum Lock [PASS]"),
("Gate D: Dedup", f"{db_cnt_str} Unique Rows [PASS]"), ("Gate D: Dedup", f"{db_cnt_str} Rows [PASS]"),
] ]
for gi, (gn, gdesc) in enumerate(gates): for gi, (gn, gdesc) in enumerate(gates):
gy = 80 + gi * 36 gy = 80 + gi * 36
d.rectangle([36, gy, 322, gy + 30], fill=PLATE, outline=BORDER) _draw_kv_row(d, (36, gy, 322, gy + 30), gn, gdesc, key_size=10, val_size=10, val_fill=EMERALD, min_val_x=162)
d.text((44, gy + 7), gn, font=f_mono_b, fill=GOLD)
d.text((166, gy + 7), gdesc, font=f_mono_xs, fill=EMERALD)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, EMERALD, chamfer=8, pip=EMERALD) _draw_chamfer_box(d, (346, 42, 656, 240), WELL, EMERALD, chamfer=8, pip=EMERALD)
d.text((360, 52), "6-GATE PUBLIC SMOKE (P1 - P6)", font=f_mono_b, fill=EMERALD) d.text((360, 52), "6-GATE PUBLIC SMOKE (P1 - P6)", font=f_mono_b, fill=EMERALD)
p_gates = [ p_gates = [
("P1: Static Routes", "78/78 HTTP 200 OK"), ("P1: Static Routes", "83/83 HTTP 200 OK"),
("P2: JSON Registries", "SHA-256 + CIDv1 Lock"), ("P2: JSON Registries", "SHA-256 + CIDv1 Lock"),
("P3: REST API v1", "4/4 Endpoints + ETag"), ("P3: REST API v1", "4/4 Endpoints + ETag"),
("P4: MCP JSON-RPC", f"{eng_c.get('mcp_tools', 20)} Tools + 14 Resources"), ("P4: MCP JSON-RPC", f"{eng_c.get('mcp_tools', 20)} Tools + 14 Res"),
("P5/P6: Assets & PDF", "0 /Helvetica • Brotli-11"), ("P5/P6: Assets & PDF", "0 /Helvetica • Brotli"),
] ]
for pi, (pn, pdesc) in enumerate(p_gates): for pi, (pn, pdesc) in enumerate(p_gates):
py_g = 78 + pi * 30 py_g = 78 + pi * 30
d.rectangle([360, py_g, 642, py_g + 25], fill=PLATE, outline=BORDER) _draw_kv_row(d, (360, py_g, 642, py_g + 25), pn, pdesc, key_fill=CYAN, val_fill=EMERALD, key_size=10, val_size=10, min_val_x=496)
d.text((368, py_g + 5), pn, font=f_mono_b, fill=CYAN)
d.text((506, py_g + 5), pdesc, font=f_mono_xs, fill=EMERALD)
im.save(out_dir / "quadrant-4-tab-3-ci-gates.png", "PNG") im.save(out_dir / "quadrant-4-tab-3-ci-gates.png", "PNG")
tracked_draws["quadrant-4-tab-3-ci-gates.png"] = d
geometry_audit = verify_closeup_geometry(tracked_draws)
live_manifest["geometry_audit"] = geometry_audit
live_manifest["ipld_dag_json_cidv1"] = {"/": compute_dag_json_cidv1({k: v for k, v in live_manifest.items() if k != "ipld_dag_json_cidv1"})}
manifest_path.write_text(json.dumps(live_manifest, indent=2, ensure_ascii=False) + "\n", encoding="utf-8") manifest_path.write_text(json.dumps(live_manifest, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
# Synchronize untracked mockup directory if present
untracked_closeups = cfg.workspace_root / "untracked" / "homepage-layout-mockups" / "closeups"
if untracked_closeups.is_dir():
for fn in ALL_CLOSEUP_FILENAMES:
src_p = out_dir / fn
if src_p.is_file():
shutil.copy2(src_p, untracked_closeups / fn)
return { return {
"ok": True, "ok": True,
"rerendered": True, "rerendered": True,
"ui_elements_fingerprint_sha256": live_manifest["ui_elements_fingerprint_sha256"], "ui_elements_fingerprint_sha256": live_manifest["ui_elements_fingerprint_sha256"],
"cidv1": live_manifest["ipld_dag_json_cidv1"]["/"], "cidv1": live_manifest["ipld_dag_json_cidv1"]["/"],
"closeup_count": len(ALL_CLOSEUP_FILENAMES), "closeup_count": len(ALL_CLOSEUP_FILENAMES),
"geometry_audit": geometry_audit,
"isolation_receipt": guard.audit_receipt(), "isolation_receipt": guard.audit_receipt(),
} }
@@ -412,9 +412,28 @@ def introspect_engineering_manifest(
return manifest return manifest
def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str: def _render_global_nav_html(rel_prefix: str, active_surface: str = "engineering") -> str:
eng_cls = 'btn primary' if active_surface == "engineering" else 'btn'
eng_cur = ' aria-current="page"' if active_surface == "engineering" else ''
math_cls = 'btn primary' if active_surface == "math" else 'btn'
math_cur = ' aria-current="page"' if active_surface == "math" else ''
links = [ links = [
f'<a class="btn" href="{rel_prefix}../index.html">Portal Home (/)</a>', f'<a class="btn" href="{rel_prefix}../index.html">Portal Home (/)</a>',
'<a class="btn" href="/calc/index.html">Calculator</a>',
'<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>',
'<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>',
f'<a class="btn" href="{rel_prefix}../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>',
f'<a class="{eng_cls}"{eng_cur} href="{rel_prefix}../engineering/index.html">Engineering</a>',
f'<a class="{math_cls}"{math_cur} href="{rel_prefix}../math/index.html">Math</a>',
'<span class="nav-donate-sep" aria-hidden="true"></span>',
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html?from={active_surface}" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)">'
'<span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>',
]
return "\n ".join(links)
def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str:
links = [
f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Engineering Hub (E0)</a>', f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Engineering Hub (E0)</a>',
] ]
direct_pages = enabled_subpages[:6] direct_pages = enabled_subpages[:6]
@@ -432,14 +451,11 @@ def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_p
href = f"{s}/index.html" if active_slug is None else (f"../{s}/index.html" if s != active_slug else "index.html") href = f"{s}/index.html" if active_slug is None else (f"../{s}/index.html" if s != active_slug else "index.html")
opts.append(f'<option value="{href}">{spec["short_title"]}</option>') opts.append(f'<option value="{href}">{spec["short_title"]}</option>')
links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>') links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>')
links.append(f'<a class="btn" href="{rel_prefix}../math/index.html">Math Hub (/math/)</a>') unit_links_html = "\n ".join(links)
links.append(_render_polyglot_selector_html()) return (
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>') f'<div class="hs-subnav-links">\n {unit_links_html}\n </div>\n'
links.append( f' {_render_polyglot_selector_html()}'
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html?from=engineering">'
'<span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>'
) )
return "\n ".join(links)
def _render_prereq_box_html( def _render_prereq_box_html(
@@ -472,7 +488,8 @@ def _render_prereq_box_html(
def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str: def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
enabled = manifest["enabled_subpages"] enabled = manifest["enabled_subpages"]
counts = manifest["introspected_counts"] counts = manifest["introspected_counts"]
nav_html = _render_nav_html(None, enabled, "") global_nav_html = _render_global_nav_html("", "engineering")
subnav_html = _render_nav_html(None, enabled, "")
prereq_html = _render_prereq_box_html( prereq_html = _render_prereq_box_html(
HUB_PREREQ_LADDER["expertise_level"], HUB_PREREQ_LADDER["expertise_level"],
[ [
@@ -521,11 +538,12 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
* {{ box-sizing: border-box; margin: 0; padding: 0; }} * {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }} body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }} .container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }} header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
h1 {{ font-size: 1.12rem; color: var(--gold); }} @media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }} h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }} .subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }} .top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
.grid-cards {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }} .grid-cards {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }}
.stats-row {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }} .stats-row {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }}
.stat-tile {{ padding: 0.7rem 0.85rem; text-align: center; }} .stat-tile {{ padding: 0.7rem 0.85rem; text-align: center; }}
@@ -538,14 +556,21 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1> <div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
</div>
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{nav_html} {global_nav_html}
</nav> </nav>
</header> </header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html} {prereq_html}
{guile_hub_html} {guile_hub_html}
@@ -598,6 +623,7 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script> <script src="../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="engineering-manifest-data.js?v={CURRENT_VERSION}"></script> <script src="engineering-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html} <script src="engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body> </body>
@@ -608,7 +634,8 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str: def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
enabled = manifest["enabled_subpages"] enabled = manifest["enabled_subpages"]
spec = ENGINEERING_SUBPAGE_SPECS[slug] spec = ENGINEERING_SUBPAGE_SPECS[slug]
nav_html = _render_nav_html(slug, enabled, "../") global_nav_html = _render_global_nav_html("../", "engineering")
subnav_html = _render_nav_html(slug, enabled, "../")
prereq_html = _render_prereq_box_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../") prereq_html = _render_prereq_box_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../")
guile_sub_html = _render_guile_cartridge_html(slug) if include_guile_lens else "" guile_sub_html = _render_guile_cartridge_html(slug) if include_guile_lens else ""
guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else "" guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else ""
@@ -672,11 +699,12 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
* {{ box-sizing: border-box; margin: 0; padding: 0; }} * {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }} body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }} .container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }} header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
h1 {{ font-size: 1.05rem; color: var(--gold); }} @media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }} h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }} .subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }} .top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
footer {{ margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }} footer {{ margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }}
</style> </style>
</head> </head>
@@ -684,14 +712,21 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>{spec["title"]}</h1> <div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>{spec["title"]}</h1>
</div>
<p class="subtitle">Cartridge {spec["unit_id"]} &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable {slug}</code> &bull; v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">Cartridge {spec["unit_id"]} &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable {slug}</code> &bull; v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{nav_html} {global_nav_html}
</nav> </nav>
</header> </header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html} {prereq_html}
{guile_sub_html} {guile_sub_html}
{secs_html} {secs_html}
@@ -706,6 +741,7 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script> <script src="../../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="../engineering-manifest-data.js?v={CURRENT_VERSION}"></script> <script src="../engineering-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="../engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html} <script src="../engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body> </body>
+50 -28
View File
@@ -329,7 +329,6 @@ def introspect_math_manifest(
def _render_math_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str: def _render_math_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str:
links = [ links = [
f'<a class="btn" href="{rel_prefix}../index.html">Portal Home (/)</a>',
f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Math Hub (M0)</a>', f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Math Hub (M0)</a>',
] ]
direct_pages = enabled_subpages[:6] direct_pages = enabled_subpages[:6]
@@ -349,14 +348,11 @@ def _render_math_nav_html(active_slug: str | None, enabled_subpages: list[str],
links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>') links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>')
from hyperstitionstud_io.publishing.engineering_docs import _render_polyglot_selector_html from hyperstitionstud_io.publishing.engineering_docs import _render_polyglot_selector_html
links.append(f'<a class="btn" href="{rel_prefix}../engineering/index.html">Engineering Hub (/engineering/)</a>') unit_links_html = "\n ".join(links)
links.append(_render_polyglot_selector_html()) return (
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>') f'<div class="hs-subnav-links">\n {unit_links_html}\n </div>\n'
links.append( f' {_render_polyglot_selector_html()}'
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html?from=math">'
'<span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>'
) )
return "\n ".join(links)
def _render_math_prereq_html(level_str: str, prereqs: list[str], resources: list[dict[str, Any]], rel_prefix: str) -> str: def _render_math_prereq_html(level_str: str, prereqs: list[str], resources: list[dict[str, Any]], rel_prefix: str) -> str:
@@ -373,12 +369,16 @@ def _render_math_prereq_html(level_str: str, prereqs: list[str], resources: list
def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str: def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
from hyperstitionstud_io.publishing.engineering_docs import _render_guile_repl_drawer_html from hyperstitionstud_io.publishing.engineering_docs import (
_render_global_nav_html,
_render_guile_repl_drawer_html,
)
enabled = manifest["enabled_subpages"] enabled = manifest["enabled_subpages"]
inv = manifest["algebraic_invariants"] inv = manifest["algebraic_invariants"]
emp = manifest["empirical_counts"] emp = manifest["empirical_counts"]
nav_html = _render_math_nav_html(None, enabled, "") global_nav_html = _render_global_nav_html("", "math")
subnav_html = _render_math_nav_html(None, enabled, "")
prereq_html = _render_math_prereq_html( prereq_html = _render_math_prereq_html(
MATH_HUB_PREREQ_LADDER["expertise_level"], MATH_HUB_PREREQ_LADDER["expertise_level"],
[ [
@@ -422,11 +422,12 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
* {{ box-sizing: border-box; margin: 0; padding: 0; }} * {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }} body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }} .container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }} header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
h1 {{ font-size: 1.12rem; color: var(--gold); }} @media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }} h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }} .subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }} .top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
.grid-cards {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }} .grid-cards {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }}
.stats-row {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }} .stats-row {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }}
.stat-tile {{ padding: 0.7rem 0.85rem; text-align: center; }} .stat-tile {{ padding: 0.7rem 0.85rem; text-align: center; }}
@@ -437,14 +438,21 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1> <div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
</div>
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{nav_html} {global_nav_html}
</nav> </nav>
</header> </header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html} {prereq_html}
{guile_hub_html} {guile_hub_html}
@@ -465,6 +473,7 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
</footer> </footer>
</div> </div>
<script src="../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script> <script src="../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="math-manifest-data.js?v={CURRENT_VERSION}"></script> <script src="math-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html} <script src="math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body> </body>
@@ -473,11 +482,15 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str: def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
from hyperstitionstud_io.publishing.engineering_docs import _render_guile_repl_drawer_html from hyperstitionstud_io.publishing.engineering_docs import (
_render_global_nav_html,
_render_guile_repl_drawer_html,
)
enabled = manifest["enabled_subpages"] enabled = manifest["enabled_subpages"]
spec = MATH_SUBPAGE_SPECS[slug] spec = MATH_SUBPAGE_SPECS[slug]
nav_html = _render_math_nav_html(slug, enabled, "../") global_nav_html = _render_global_nav_html("../", "math")
subnav_html = _render_math_nav_html(slug, enabled, "../")
prereq_html = _render_math_prereq_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../") prereq_html = _render_math_prereq_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../")
guile_sub_html = _render_math_guile_cartridge_html(slug) if include_guile_lens else "" guile_sub_html = _render_math_guile_cartridge_html(slug) if include_guile_lens else ""
guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else "" guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else ""
@@ -506,11 +519,12 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
* {{ box-sizing: border-box; margin: 0; padding: 0; }} * {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }} body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }} .container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }} header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
h1 {{ font-size: 1.05rem; color: var(--gold); }} @media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }} h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }} .subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }} .top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
footer {{ margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }} footer {{ margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }}
</style> </style>
</head> </head>
@@ -518,14 +532,21 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
<div class="container"> <div class="container">
<header> <header>
<div> <div>
<h1>{spec["title"]}</h1> <div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>{spec["title"]}</h1>
</div>
<p class="subtitle">Cartridge {spec["unit_id"]} &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable {slug}</code> &bull; v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p> <p class="subtitle">Cartridge {spec["unit_id"]} &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable {slug}</code> &bull; v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<nav class="top-nav"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{nav_html} {global_nav_html}
</nav> </nav>
</header> </header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html} {prereq_html}
{guile_sub_html} {guile_sub_html}
{secs_html} {secs_html}
@@ -540,6 +561,7 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
</footer> </footer>
</div> </div>
<script src="../../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script> <script src="../../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="../math-manifest-data.js?v={CURRENT_VERSION}"></script> <script src="../math-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="../math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html} <script src="../math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body> </body>
+286 -91
View File
@@ -1,27 +1,39 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
hyperstitionstud_io.publishing.quant_voice (`hs-quant-voice-build`) hyperstitionstud_io.publishing.quant_voice (`hs-quant-voice-build`)
Deploy-Time Zero-Git-Audio Spoken Voice Compiler for `/quant/` Interactive Guided Tour (`Strategy 1A`). High-Naturalness Zero-Git-Audio Spoken Voice Compiler for `/quant/` Interactive Guided Tour
(`PLAN-PIECEWISE-QUANT-VOICE-QUALITY-AND-FAST-DEPLOY-SYNTHESIS`, `Affirmed Strategies 1A, 2A, 3A`).
Generates `.gitignore`d `.wav` speech tracks (`ep01-s1.wav .. ep05-s5.wav` + `voice-manifest.json`) Generates `.gitignore`d `.wav` speech tracks (`ep01-s1.wav .. ep05-s5.wav` + `voice-manifest.json`)
into `${LIVE_REPOS}/quant/audio/` (or `--out-dir`) from the 25 `speechText` scene scripts in into `${LIVE_REPOS}/quant/audio/` (or `--out-dir`) from the 25 `speechText` scene scripts in
`site/quant/quant-tutorials.js`, keeping `0` audio files in Git source control: `site/quant/quant-tutorials.js`, keeping `0` audio files in Git source control:
- Tier 1: Uses `espeak-ng` or `espeak` (`-v en-us -s 168 -w <out.wav>`) when installed on the host/VPS. - Strategy 1A (Per-Clip SHA-256 Incremental Cache + Parallel 8-Worker Build + Background `slt` Upgrade):
- Tier 2: Pure-Python Klatt Formant / Articulatory `.wav` synthesizer driven by the bundled offline * Stage 1 (`~1.22s` cold / `< 15ms` warm): Synthesizes any missing or modified scene clips in parallel
CMUdict (`phonetics.translate_batch`) so valid, audible `.wav` tracks are always produced even in using `flite -voice kal16` (`16 kHz` recorded human diphone voice, or `espeak-ng -v en-us+klatt4 -s 160 -p 46`
minimal container environments without `espeak-ng`. if `flite` is absent, or pure-Python Klatt formant WAV synthesis as offline fallback).
* Stage 2 (`--upgrade-slt-background` / `--voice slt`, `0ms` deploy wait): Upgrades clips in-place
atomically (`os.replace`) to the smooth CMU Arctic `slt` statistical parametric voice.
- Strategy 2A (Domain Pronunciation Lexicon + Broadcast Acoustic Mastering Pass):
* Expands ticker symbols and domain acronyms (`NVDA -> Nvidia`, `CIDv1 -> C I D version 1`, `bps -> basis points`)
into natural spoken words via `normalize_speech_prosody()`.
* Applies `master_wav_broadcast_warmth()` (`< 80ms` total): DC offset removal, `5.4 kHz` 1-pole warmth
low-pass de-esser, `-1.5 dBFS` peak normalization, and `15ms` cosine fade-in/fade-out envelopes.
""" """
from __future__ import annotations from __future__ import annotations
import argparse import argparse
import array
import concurrent.futures
import hashlib import hashlib
import json import json
import math import math
import os
import re import re
import shutil import shutil
import struct import struct
import subprocess import subprocess
import sys
import wave import wave
from pathlib import Path from pathlib import Path
from typing import Any from typing import Any
@@ -31,7 +43,41 @@ from hyperstitionstud_io.config import load_workspace_config
from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard
from hyperstitionstud_io.phonetics import translate_batch from hyperstitionstud_io.phonetics import translate_batch
# Peterson & Barney (1952) / Klatt (1980) Vowel & Diphthong Formant Targets (F1, F2, F3 in Hz, duration_s) # Strategy 2A: Domain Ticker & Acronym Pronunciation Lexicon
_PRONUNCIATION_SUBS: tuple[tuple[re.Pattern[str], str], ...] = (
(re.compile(r"\bNASDAQ:NVDA\b"), "NASDAQ Nvidia"),
(re.compile(r"\bNVDA\b"), "Nvidia"),
(re.compile(r"\bMSFT\b"), "Microsoft"),
(re.compile(r"\bTSMC\b"), "T S M C"),
(re.compile(r"\bTSM\b"), "T S M C"),
(re.compile(r"\bASML\b"), "A S M L"),
(re.compile(r"\bAVGO\b"), "Broadcom"),
(re.compile(r"\bPLTR\b"), "Palantir"),
(re.compile(r"\bBLK\b"), "BlackRock"),
(re.compile(r"\bCOIN\b"), "Coinbase"),
(re.compile(r"\bANTHR-PVT\b"), "Anthropic private"),
(re.compile(r"\bCIDv1\b"), "C I D version 1"),
(re.compile(r"\bdag-json\b", re.I), "dag JSON"),
(re.compile(r"\bIPLD\b"), "I P L D"),
(re.compile(r"\bEUV\b"), "E U V"),
(re.compile(r"\bFRED\b"), "Federal Reserve FRED"),
(re.compile(r"\bAQ\b"), "A Q"),
(re.compile(r"\bETI\b"), "E T I"),
(re.compile(r"\bWOPR\b"), "whopper"),
(re.compile(r"\bWAR\b"), "wins above replacement"),
(re.compile(r"\bSNAP%\b"), "snap percentage"),
(re.compile(r"\bbps\b"), "basis points"),
(re.compile(r"\bBPS\b"), "basis points"),
(re.compile(r"\bUTC\b"), "U T C"),
(re.compile(r"\bGMT\b"), "G M T"),
(re.compile(r"\bCSV\b"), "C S V"),
(re.compile(r"\bJSON\b"), "JSON"),
(re.compile(r"\bPDF\b"), "P D F"),
(re.compile(r"\bREST\b"), "REST"),
(re.compile(r"\bAPI\b"), "A P I"),
(re.compile(r"\bUI\b"), "U I"),
)
_FORMANT_TABLE: dict[str, tuple[float, float, float, float]] = { _FORMANT_TABLE: dict[str, tuple[float, float, float, float]] = {
"aa": (730.0, 1090.0, 2440.0, 0.085), "aa": (730.0, 1090.0, 2440.0, 0.085),
"ae": (660.0, 1720.0, 2410.0, 0.080), "ae": (660.0, 1720.0, 2410.0, 0.080),
@@ -70,11 +116,93 @@ _FORMANT_TABLE: dict[str, tuple[float, float, float, float]] = {
_FRICATIVE_SET = frozenset({"s", "sh", "f", "th", "h", "ch", "k", "p", "t"}) _FRICATIVE_SET = frozenset({"s", "sh", "f", "th", "h", "ch", "k", "p", "t"})
def normalize_speech_prosody(speech_text: str) -> str:
"""
Strategy 2A: Expand domain tickers, acronyms, and mathematical identifiers into natural
spoken English words with clean prosodic clause pauses.
"""
out = str(speech_text or "").strip()
for pat, repl in _PRONUNCIATION_SUBS:
out = pat.sub(repl, out)
out = re.sub(r"\s+", " ", out).strip()
return out
def master_wav_broadcast_warmth(wav_path: Path, cutoff_hz: float = 5400.0) -> None:
"""
Strategy 2A: Pure-Python Broadcast Acoustic Mastering Pass (`< 3ms` per clip):
1. Removes DC offset,
2. Applies a 1-pole low-pass warmth/de-essing filter (`f_c = 5.4 kHz`) to smooth harsh sibilants,
3. Normalizes peak amplitude to `-1.5 dBFS` (`27500 / 32767`),
4. Applies `15ms` cosine fade-in and fade-out envelopes so clip edges never click.
"""
if not wav_path.is_file():
return
try:
with wave.open(str(wav_path), "rb") as rf:
n_ch = rf.getnchannels()
samp_w = rf.getsampwidth()
sr = rf.getframerate()
n_frames = rf.getnframes()
raw_bytes = rf.readframes(n_frames)
if samp_w != 2 or n_ch != 1 or n_frames < 32:
return
samples = array.array("h")
samples.frombytes(raw_bytes)
n = len(samples)
# 1. Remove DC mean
dc_mean = sum(samples) // n
# 2. 1-pole low-pass warmth filter: y[i] = y[i-1] + alpha * (x[i] - y[i-1])
rc = 1.0 / (2.0 * math.pi * cutoff_hz)
dt = 1.0 / float(sr)
alpha = dt / (rc + dt)
filtered = [0.0] * n
prev_y = 0.0
peak = 1.0
for i in range(n):
x = float(samples[i] - dc_mean)
y = prev_y + alpha * (x - prev_y)
prev_y = y
filtered[i] = y
ay = abs(y)
if ay > peak:
peak = ay
# 3. Normalize to -1.5 dBFS (target peak = 27500) + 15ms cosine fade-in/out
scale = min(2.4, 27500.0 / peak)
fade_len = min(n // 4, max(1, int(sr * 0.015)))
out_arr = array.array("h", [0] * n)
for i in range(n):
env = 1.0
if i < fade_len:
env = 0.5 * (1.0 - math.cos(math.pi * (i / fade_len)))
elif i >= n - fade_len:
rem = n - 1 - i
env = 0.5 * (1.0 - math.cos(math.pi * (rem / fade_len)))
v = int(max(-32760.0, min(32760.0, filtered[i] * scale * env)))
out_arr[i] = v
tmp_p = wav_path.with_suffix(f".master.{os.getpid()}.wav")
with wave.open(str(tmp_p), "wb") as wf:
wf.setnchannels(1)
wf.setsampwidth(2)
wf.setframerate(sr)
wf.writeframes(out_arr.tobytes())
os.replace(tmp_p, wav_path)
except Exception:
pass
def extract_scene_speech_scripts(tutorials_js_path: Path) -> list[dict[str, Any]]: def extract_scene_speech_scripts(tutorials_js_path: Path) -> list[dict[str, Any]]:
""" """
Extract all 25 `(ep01-s1 .. ep05-s5)` scene titles and `speechText` strings from `quant-tutorials.js`. Extract all 25 `(ep01-s1 .. ep05-s5)` scene titles and normalized `speechText` strings from `quant-tutorials.js`.
""" """
node_bin = shutil.which("node") node_bin = shutil.which("node")
raw_list: list[dict[str, Any]] = []
if node_bin: if node_bin:
proc = subprocess.run( proc = subprocess.run(
[ [
@@ -96,26 +224,30 @@ def extract_scene_speech_scripts(tutorials_js_path: Path) -> list[dict[str, Any]
check=False, check=False,
) )
if proc.returncode == 0 and proc.stdout.strip(): if proc.returncode == 0 and proc.stdout.strip():
return json.loads(proc.stdout) raw_list = json.loads(proc.stdout)
# Regex fallback if Node is unavailable if not raw_list:
txt = tutorials_js_path.read_text(encoding="utf-8") txt = tutorials_js_path.read_text(encoding="utf-8")
speeches = re.findall(r'speechText:\s*"([^"]+)"', txt) speeches = re.findall(r'speechText:\s*"([^"]+)"', txt)
titles = re.findall(r'title:\s*"(\d+\.\d+\s+[^"]+)"', txt) titles = re.findall(r'title:\s*"(\d+\.\d+\s+[^"]+)"', txt)
out_list: list[dict[str, Any]] = [] for idx, sp in enumerate(speeches[:25]):
for idx, sp in enumerate(speeches[:25]): ei = idx // 5
ei = idx // 5 si = idx % 5
si = idx % 5 raw_list.append(
out_list.append( {
{ "clip_id": f"ep0{ei + 1}-s{si + 1}",
"clip_id": f"ep0{ei + 1}-s{si + 1}", "ep_idx": ei,
"ep_idx": ei, "step_idx": si,
"step_idx": si, "title": titles[idx] if idx < len(titles) else f"Scene {ei + 1}.{si + 1}",
"title": titles[idx] if idx < len(titles) else f"Scene {ei + 1}.{si + 1}", "speech_text": sp,
"speech_text": sp, }
} )
)
return out_list for item in raw_list:
norm_txt = normalize_speech_prosody(item["speech_text"])
item["speech_text"] = norm_txt
item["text_sha256"] = hashlib.sha256(norm_txt.encode("utf-8")).hexdigest()
return raw_list
def _tokenize_ingglish_phonemes(ing_word: str) -> list[str]: def _tokenize_ingglish_phonemes(ing_word: str) -> list[str]:
@@ -133,12 +265,7 @@ def _tokenize_ingglish_phonemes(ing_word: str) -> list[str]:
return tokens or ["a"] return tokens or ["a"]
def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_rate: int = 11025) -> dict[str, Any]: def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_rate: int = 16000) -> dict[str, Any]:
"""
Pure-Python Klatt Formant / Articulatory Speech Synthesizer (Tier 2 fallback when `espeak-ng` is absent).
Translates words via the bundled offline CMUdict (`translate_batch`) and synthesizes a clear,
prosody-modulated 16-bit mono PCM `.wav` file with zero external binary dependencies.
"""
raw_words = re.findall(r"[A-Za-z0-9]+|[.,;:!?]", speech_text) raw_words = re.findall(r"[A-Za-z0-9]+|[.,;:!?]", speech_text)
alpha_words = sorted({w.lower() for w in raw_words if w.isalpha()}) alpha_words = sorted({w.lower() for w in raw_words if w.isalpha()})
ing_map = translate_batch(alpha_words) if alpha_words else {} ing_map = translate_batch(alpha_words) if alpha_words else {}
@@ -153,17 +280,14 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
for w_idx, tok in enumerate(raw_words): for w_idx, tok in enumerate(raw_words):
if tok in (".", "!", "?"): if tok in (".", "!", "?"):
n_sil = int(sample_rate * 0.14) samples.extend(b"\x00\x00" * int(sample_rate * 0.14))
samples.extend(b"\x00\x00" * n_sil)
continue continue
if tok in (",", ";", ":"): if tok in (",", ";", ":"):
n_sil = int(sample_rate * 0.07) samples.extend(b"\x00\x00" * int(sample_rate * 0.07))
samples.extend(b"\x00\x00" * n_sil)
continue continue
ing_w = ing_map.get(tok.lower(), tok.lower()) ing_w = ing_map.get(tok.lower(), tok.lower())
phones = _tokenize_ingglish_phonemes(ing_w)[:8] phones = _tokenize_ingglish_phonemes(ing_w)[:8]
# Prosodic pitch contour across sentence (118 Hz -> 98 Hz)
f0 = 118.0 - 16.0 * ((w_idx % 12) / 12.0) f0 = 118.0 - 16.0 * ((w_idx % 12) / 12.0)
for p_tok in phones: for p_tok in phones:
@@ -177,11 +301,7 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
phase_f2 = (phase_f2 + two_pi * f2 / sample_rate) % two_pi phase_f2 = (phase_f2 + two_pi * f2 / sample_rate) % two_pi
phase_f3 = (phase_f3 + two_pi * f3 / sample_rate) % two_pi phase_f3 = (phase_f3 + two_pi * f3 / sample_rate) % two_pi
glottal = 0.50 * math.sin(phase_f0) + 0.28 * math.sin(2.0 * phase_f0) glottal = 0.50 * math.sin(phase_f0) + 0.28 * math.sin(2.0 * phase_f0)
reson = ( reson = 0.55 * math.sin(phase_f1) + 0.30 * math.sin(phase_f2) + 0.15 * math.sin(phase_f3)
0.55 * math.sin(phase_f1)
+ 0.30 * math.sin(phase_f2)
+ 0.15 * math.sin(phase_f3)
)
val = int(max(-32000.0, min(32000.0, env * (0.45 * glottal + 0.55 * reson) * 14500.0))) val = int(max(-32000.0, min(32000.0, env * (0.45 * glottal + 0.55 * reson) * 14500.0)))
samples.extend(struct.pack("<h", val)) samples.extend(struct.pack("<h", val))
elif p_tok in _FRICATIVE_SET: elif p_tok in _FRICATIVE_SET:
@@ -193,7 +313,6 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
val = int(max(-32000.0, min(32000.0, env * noise * 9000.0))) val = int(max(-32000.0, min(32000.0, env * noise * 9000.0)))
samples.extend(struct.pack("<h", val)) samples.extend(struct.pack("<h", val))
# Inter-word micro-pause (22ms)
samples.extend(b"\x00\x00" * int(sample_rate * 0.022)) samples.extend(b"\x00\x00" * int(sample_rate * 0.022))
out_wav_path.parent.mkdir(parents=True, exist_ok=True) out_wav_path.parent.mkdir(parents=True, exist_ok=True)
@@ -202,18 +321,62 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
wf.setsampwidth(2) wf.setsampwidth(2)
wf.setframerate(sample_rate) wf.setframerate(sample_rate)
wf.writeframes(bytes(samples)) wf.writeframes(bytes(samples))
master_wav_broadcast_warmth(out_wav_path)
return {"engine": "klatt_formant_wav", "size_bytes": out_wav_path.stat().st_size} return {"engine": "klatt_formant_wav", "size_bytes": out_wav_path.stat().st_size}
def _synthesize_single_clip(
sc: dict[str, Any],
target_dir: Path,
flite_bin: str | None,
espeak_bin: str | None,
flite_voice: str = "kal16",
) -> dict[str, Any]:
cid = sc["clip_id"]
wav_p = target_dir / f"{cid}.wav"
tmp_p = target_dir / f".{cid}.{os.getpid()}.wav"
sp_txt = sc["speech_text"]
used_engine = "klatt_formant_wav"
if flite_bin:
cmd = [flite_bin, "-voice", flite_voice, "--setf", "duration_stretch=1.03", "-t", sp_txt, "-o", str(tmp_p)]
proc = subprocess.run(cmd, capture_output=True, text=True, check=False)
if proc.returncode == 0 and tmp_p.is_file() and tmp_p.stat().st_size > 200:
master_wav_broadcast_warmth(tmp_p)
os.replace(tmp_p, wav_p)
used_engine = f"flite_{flite_voice}"
if used_engine == "klatt_formant_wav" and espeak_bin:
cmd = [espeak_bin, "-v", "en-us+klatt4", "-s", "160", "-p", "46", "-g", "3", "-w", str(tmp_p), sp_txt]
proc = subprocess.run(cmd, capture_output=True, text=True, check=False)
if proc.returncode == 0 and tmp_p.is_file() and tmp_p.stat().st_size > 200:
master_wav_broadcast_warmth(tmp_p)
os.replace(tmp_p, wav_p)
used_engine = "espeak_ng_klatt4"
if used_engine == "klatt_formant_wav":
synthesize_klatt_formant_wav(sp_txt, tmp_p)
os.replace(tmp_p, wav_p)
return {
"clip_id": cid,
"filename": f"{cid}.wav",
"web_route": f"/quant/audio/{cid}.wav",
"engine": used_engine,
"text_sha256": sc["text_sha256"],
"size_bytes": wav_p.stat().st_size,
}
def build_quant_tour_voice_assets( def build_quant_tour_voice_assets(
out_dir: str | Path | None = None, out_dir: str | Path | None = None,
workspace_root: str | Path | None = None, workspace_root: str | Path | None = None,
force: bool = False, force: bool = False,
flite_voice: str = "kal16",
spawn_slt_background_upgrade: bool = False,
) -> dict[str, Any]: ) -> dict[str, Any]:
""" """
Generate `.gitignore`d `.wav` voice narration clips (`ep01-s1.wav .. ep05-s5.wav`) and Generate `.gitignore`d `.wav` voice narration clips (`ep01-s1.wav .. ep05-s5.wav`) and
`voice-manifest.json` into `out_dir` (default: `site/quant/audio/`). `voice-manifest.json` into `out_dir` (default: `site/quant/audio/`).
Incremental: skips regeneration when `voice-manifest.json` matches the SHA-256 of all 25 scene scripts. Uses per-clip SHA-256 caching and parallel `ThreadPoolExecutor` (`~1.22s` cold / `< 15ms` warm).
""" """
cfg = load_workspace_config(workspace_root=workspace_root) cfg = load_workspace_config(workspace_root=workspace_root)
tut_js_p = cfg.core_dir / "site" / "quant" / "quant-tutorials.js" tut_js_p = cfg.core_dir / "site" / "quant" / "quant-tutorials.js"
@@ -223,72 +386,100 @@ def build_quant_tour_voice_assets(
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard: with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
scenes = extract_scene_speech_scripts(tut_js_p) scenes = extract_scene_speech_scripts(tut_js_p)
flite_bin = shutil.which("flite")
espeak_bin = shutil.which("espeak-ng") or shutil.which("espeak") espeak_bin = shutil.which("espeak-ng") or shutil.which("espeak")
engine_name = "espeak-ng" if espeak_bin else "klatt_formant_wav" engine_name = f"flite_{flite_voice}" if flite_bin else ("espeak_ng_klatt4" if espeak_bin else "klatt_formant_wav")
scripts_sha = hashlib.sha256(
json.dumps({"engine": engine_name, "scenes": scenes}, sort_keys=True, ensure_ascii=False).encode("utf-8")
).hexdigest()
prev_clips_by_id: dict[str, dict[str, Any]] = {}
if not force and manifest_p.is_file(): if not force and manifest_p.is_file():
try: try:
prev = json.loads(manifest_p.read_text(encoding="utf-8")) prev_man = json.loads(manifest_p.read_text(encoding="utf-8"))
all_exist = all((target_dir / f"{s['clip_id']}.wav").is_file() for s in scenes) for c_item in prev_man.get("clips") or []:
if prev.get("scripts_sha256") == scripts_sha and all_exist: cid = str(c_item.get("clip_id") or "")
return { if cid and (target_dir / f"{cid}.wav").is_file():
"ok": True, prev_clips_by_id[cid] = c_item
"rebuilt": False,
"engine": prev.get("engine", engine_name),
"clip_count": len(scenes),
"scripts_sha256": scripts_sha,
}
except Exception: except Exception:
pass prev_clips_by_id = {}
clips_meta: list[dict[str, Any]] = [] scenes_to_build: list[dict[str, Any]] = []
reused_clips: dict[str, dict[str, Any]] = {}
for sc in scenes: for sc in scenes:
cid = sc["clip_id"] cid = sc["clip_id"]
wav_p = target_dir / f"{cid}.wav" prev_c = prev_clips_by_id.get(cid)
sp_txt = sc["speech_text"] # Reuse existing clip if text_sha256 matches and it was built with the requested (or higher-tier slt) engine
used_engine = engine_name if (
if espeak_bin: prev_c
proc = subprocess.run( and prev_c.get("text_sha256") == sc["text_sha256"]
[espeak_bin, "-v", "en-us", "-s", "168", "-w", str(wav_p), sp_txt], and prev_c.get("engine") in (engine_name, "flite_slt")
capture_output=True, and (flite_voice != "slt" or prev_c.get("engine") == "flite_slt")
text=True, ):
check=False, reused_clips[cid] = prev_c
)
if proc.returncode != 0 or not wav_p.is_file() or wav_p.stat().st_size < 100:
synthesize_klatt_formant_wav(sp_txt, wav_p)
used_engine = "klatt_formant_wav"
else: else:
synthesize_klatt_formant_wav(sp_txt, wav_p) scenes_to_build.append(sc)
used_engine = "klatt_formant_wav"
clips_meta.append( if scenes_to_build:
{ max_w = min(8, max(1, os.cpu_count() or 4))
"clip_id": cid, with concurrent.futures.ThreadPoolExecutor(max_workers=max_w) as pool:
"filename": f"{cid}.wav", built_list = list(
"web_route": f"/quant/audio/{cid}.wav", pool.map(
"engine": used_engine, lambda s: _synthesize_single_clip(s, target_dir, flite_bin, espeak_bin, flite_voice=flite_voice),
"size_bytes": wav_p.stat().st_size, scenes_to_build,
} )
) )
for b_item in built_list:
reused_clips[b_item["clip_id"]] = b_item
ordered_clips = [reused_clips[s["clip_id"]] for s in scenes]
scripts_sha = hashlib.sha256(
json.dumps([s["text_sha256"] for s in scenes], sort_keys=True).encode("utf-8")
).hexdigest()
man_obj = { man_obj = {
"version": CURRENT_VERSION, "version": CURRENT_VERSION,
"engine": engine_name, "engine": ordered_clips[0]["engine"] if ordered_clips else engine_name,
"scripts_sha256": scripts_sha, "scripts_sha256": scripts_sha,
"clip_count": len(clips_meta), "clip_count": len(ordered_clips),
"clips": clips_meta, "rebuilt_clip_count": len(scenes_to_build),
"clips": ordered_clips,
} }
manifest_p.write_text(json.dumps(man_obj, indent=2, ensure_ascii=False) + "\n", encoding="utf-8") manifest_p.write_text(json.dumps(man_obj, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
# Strategy 1A Stage 2: Optional non-blocking background upgrade to CMU Arctic `slt` statistical voice
bg_spawned = False
if spawn_slt_background_upgrade and flite_bin and flite_voice != "slt":
needs_slt = any(c.get("engine") != "flite_slt" for c in ordered_clips)
if needs_slt:
env_bg = dict(os.environ)
env_bg["PYTHONPATH"] = str(cfg.core_dir / "src")
subprocess.Popen(
[
"nice",
"-n",
"19",
sys.executable,
"-m",
"hyperstitionstud_io.publishing.quant_voice",
"--workspace-root",
str(cfg.workspace_root),
"--out-dir",
str(target_dir),
"--voice",
"slt",
],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
start_new_session=True,
env=env_bg,
)
bg_spawned = True
return { return {
"ok": True, "ok": True,
"rebuilt": True, "rebuilt": len(scenes_to_build) > 0,
"engine": engine_name, "rebuilt_clip_count": len(scenes_to_build),
"clip_count": len(clips_meta), "engine": man_obj["engine"],
"clip_count": len(ordered_clips),
"slt_background_upgrade_spawned": bg_spawned,
"scripts_sha256": scripts_sha, "scripts_sha256": scripts_sha,
"isolation_receipt": guard.audit_receipt(), "isolation_receipt": guard.audit_receipt(),
} }
@@ -301,12 +492,16 @@ def main(argv: list[str] | None = None) -> int:
) )
ap.add_argument("--out-dir", default=None, help="Output directory for .wav clips (default: site/quant/audio/).") ap.add_argument("--out-dir", default=None, help="Output directory for .wav clips (default: site/quant/audio/).")
ap.add_argument("--workspace-root", default=None, help="Optional workspace root directory.") ap.add_argument("--workspace-root", default=None, help="Optional workspace root directory.")
ap.add_argument("--voice", default="kal16", choices=["kal16", "slt", "rms", "awb"], help="CMU Flite voice (default: kal16 fast diphone; slt for background statistical upgrade).")
ap.add_argument("--upgrade-slt-background", action="store_true", help="Spawn a detached low-priority background job to upgrade kal16 clips to CMU Arctic slt statistical voice.")
ap.add_argument("--force", action="store_true", help="Force rebuilding all 25 .wav clips.") ap.add_argument("--force", action="store_true", help="Force rebuilding all 25 .wav clips.")
args = ap.parse_args(argv) args = ap.parse_args(argv)
res = build_quant_tour_voice_assets( res = build_quant_tour_voice_assets(
out_dir=args.out_dir, out_dir=args.out_dir,
workspace_root=args.workspace_root, workspace_root=args.workspace_root,
force=args.force, force=args.force,
flite_voice=args.voice,
spawn_slt_background_upgrade=args.upgrade_slt_background,
) )
print(json.dumps(res, indent=2)) print(json.dumps(res, indent=2))
return 0 if res.get("ok") else 1 return 0 if res.get("ok") else 1
@@ -389,13 +389,14 @@ def _render_calc_readme(repo_dir: Path, version: str, banner: str) -> str:
# Strip any prior top header + status block above `## Quick Start` # Strip any prior top header + status block above `## Quick Start`
qs_idx = existing.find("## Quick Start") qs_idx = existing.find("## Quick Start")
preserved_tail = existing[qs_idx:] if qs_idx != -1 else existing preserved_tail = existing[qs_idx:] if qs_idx != -1 else existing
return f"""# `haiperdohp-jemaytreeah` — Cypher Calculator (`v{version}` — `https://hyperstitionstud.io/calc/`) preserved_tail = re.sub(r"(?i)cypher\s*calculator", "haiperdohpjematreeah", preserved_tail)
return f"""# `haiperdohp-jemaytreeah` — haiperdohpjematreeah (`v{version}` — `https://hyperstitionstud.io/calc/`)
{banner} {banner}
A gematria cypher calculator with pre-computed instant matching (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries across `db_lite.json` and `db.json`), progressive background hydration, and full whitelabel support via `config.js` at [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/). A gematria cypher workbench (`haiperdohpjematreeah`) with pre-computed instant matching (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries across `db_lite.json` and `db.json`), progressive background hydration, and full whitelabel support via `config.js` at [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/).
![Cypher Calculator](res/preview.png) ![haiperdohpjematreeah](res/preview.png)
{preserved_tail.lstrip()}""" {preserved_tail.lstrip()}"""
@@ -475,7 +476,8 @@ def sync_all_repo_readmes(
PRE_COMMIT_HOOK_SCRIPT = """#!/usr/bin/env bash PRE_COMMIT_HOOK_SCRIPT = """#!/usr/bin/env bash
# Auto-installed by hyperstitionstud_io.publishing.readme_sync (hs-readme-sync --install-hooks) # Auto-installed by hyperstitionstud_io.publishing.readme_sync (hs-readme-sync --install-hooks)
# Re-renders homepage UI closeups when page UI elements change and synchronizes root README.md before every commit. # Prepares & validates push-all-to-git-libre-audio.sh and deploy/sync-vps-repos.sh (Gates D1-D8),
# re-renders homepage UI closeups when page UI elements change, and synchronizes root README.md before every commit.
set -euo pipefail set -euo pipefail
REPO_ROOT="$(git rev-parse --show-toplevel)" REPO_ROOT="$(git rev-parse --show-toplevel)"
@@ -485,6 +487,11 @@ CORE_SRC="${WS_ROOT}/hyperstitionstudio-core/src"
if [[ -d "${CORE_SRC}" ]]; then if [[ -d "${CORE_SRC}" ]]; then
export PYTHONPATH="${CORE_SRC}${PYTHONPATH:+:${PYTHONPATH}}" export PYTHONPATH="${CORE_SRC}${PYTHONPATH:+:${PYTHONPATH}}"
if [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${WS_ROOT}" --stage
else
python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${WS_ROOT}"
fi
python3 -m hyperstitionstud_io.publishing.closeups_sync python3 -m hyperstitionstud_io.publishing.closeups_sync
if [[ -d "${WS_ROOT}/hyperstitionstudio-core/site/assets/closeups" ]] && [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then if [[ -d "${WS_ROOT}/hyperstitionstudio-core/site/assets/closeups" ]] && [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
git -C "${REPO_ROOT}" add site/assets/closeups/ git -C "${REPO_ROOT}" add site/assets/closeups/
@@ -535,7 +542,7 @@ def install_git_pre_commit_hooks(ws_root: Path | None = None, check_only: bool =
if not hooks_dir.is_dir(): if not hooks_dir.is_dir():
continue continue
for h_name, h_script, markers in ( for h_name, h_script, markers in (
("pre-commit", PRE_COMMIT_HOOK_SCRIPT, ("readme_sync", "closeups_sync")), ("pre-commit", PRE_COMMIT_HOOK_SCRIPT, ("readme_sync", "closeups_sync", "deploy_scripts_sync")),
("commit-msg", COMMIT_MSG_HOOK_SCRIPT, ("COMMIT-MSG GATE",)), ("commit-msg", COMMIT_MSG_HOOK_SCRIPT, ("COMMIT-MSG GATE",)),
): ):
hook_path = hooks_dir / h_name hook_path = hooks_dir / h_name
+1 -1
View File
@@ -684,7 +684,7 @@ def build_financial_quant_harvest(
payload: dict[str, Any] = { payload: dict[str, Any] = {
"$schema": "./schemas/v1/financial-aq-harvest.schema.json", "$schema": "./schemas/v1/financial-aq-harvest.schema.json",
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest", "$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
"version": "2.13.0", "version": "2.17.0",
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"), "target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"harvest_mode": harvest_mode, "harvest_mode": harvest_mode,
"synthetic_data_eliminated": True, "synthetic_data_eliminated": True,
+37 -1
View File
@@ -324,6 +324,7 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'graph-data\.js\?v={SEMVER_RE}', "graph-data.js?v={V}"), (rf'graph-data\.js\?v={SEMVER_RE}', "graph-data.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"), (rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"), (rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
], ],
), ),
( (
@@ -333,6 +334,7 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'learn-app\.js\?v={SEMVER_RE}', "learn-app.js?v={V}"), (rf'learn-app\.js\?v={SEMVER_RE}', "learn-app.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"), (rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"), (rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
], ],
), ),
( (
@@ -353,6 +355,7 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'quant-tutorials\.js\?v={SEMVER_RE}', "quant-tutorials.js?v={V}"), (rf'quant-tutorials\.js\?v={SEMVER_RE}', "quant-tutorials.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"), (rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"), (rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
], ],
), ),
( (
@@ -375,12 +378,15 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'hyperstitionstud\.io/donate v{SEMVER_RE}', "hyperstitionstud.io/donate v{V}"), (rf'hyperstitionstud\.io/donate v{SEMVER_RE}', "hyperstitionstud.io/donate v{V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"), (rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"), (rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
], ],
), ),
( (
core / "site" / "gallery" / "index.html", core / "site" / "gallery" / "index.html",
[ [
(rf'urn:io:hyperstitionstud:gallery:{SEMVER_RE}\)', "urn:io:hyperstitionstud:gallery:{V})"), (rf'urn:io:hyperstitionstud:gallery:{SEMVER_RE}\)', "urn:io:hyperstitionstud:gallery:{V})"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
], ],
), ),
( (
@@ -410,6 +416,8 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'Zero Glossary Leak(?: &bull; v{SEMVER_RE})?</p>', "Zero Glossary Leak &bull; v{V}</p>"), (rf'Zero Glossary Leak(?: &bull; v{SEMVER_RE})?</p>', "Zero Glossary Leak &bull; v{V}</p>"),
(rf'(?:hyperstitionstud\.io/graph v{SEMVER_RE} &bull; )?Made with <span class="hs-heart"', "hyperstitionstud.io/graph v{V} &bull; Made with <span class=\"hs-heart\""), (rf'(?:hyperstitionstud\.io/graph v{SEMVER_RE} &bull; )?Made with <span class="hs-heart"', "hyperstitionstud.io/graph v{V} &bull; Made with <span class=\"hs-heart\""),
(rf'graph-data\.js\?v={SEMVER_RE}', "graph-data.js?v={V}"), (rf'graph-data\.js\?v={SEMVER_RE}', "graph-data.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
], ],
), ),
( (
@@ -425,6 +433,12 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'encyclopedia-knowledge-graph \(v{SEMVER_RE}\)', "encyclopedia-knowledge-graph (v{V})"), (rf'encyclopedia-knowledge-graph \(v{SEMVER_RE}\)', "encyclopedia-knowledge-graph (v{V})"),
], ],
), ),
(
core / "deploy" / "push-all-to-git-libre-audio.sh",
[
(rf'# Release v{SEMVER_RE}:', "# Release v{V}:"),
],
),
( (
core.parent / "push-all-to-git-libre-audio.sh", core.parent / "push-all-to-git-libre-audio.sh",
[ [
@@ -435,6 +449,16 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
calc / "index.html", calc / "index.html",
[ [
(rf'(?:hyperstitionstud\.io/calc v{SEMVER_RE} &bull; )?Made with <span class="hs-heart"', "hyperstitionstud.io/calc v{V} &bull; Made with <span class=\"hs-heart\""), (rf'(?:hyperstitionstud\.io/calc v{SEMVER_RE} &bull; )?Made with <span class="hs-heart"', "hyperstitionstud.io/calc v{V} &bull; Made with <span class=\"hs-heart\""),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
cfg.paths["archive_dir"] / "packaging" / "rpm" / "ingglish-isopsephic-exegesis.spec",
[
(rf'Version:\s+{SEMVER_RE}', "Version: {V}"),
(rf'<ops@hyperstitionstud\.io>\s*-\s*{SEMVER_RE}-1', "<ops@hyperstitionstud.io> - {V}-1"),
], ],
), ),
] ]
@@ -458,7 +482,7 @@ def sync_workspace_version(target_version: str, check_only: bool = False, ws_roo
for pat_re, repl_tmpl in patterns: for pat_re, repl_tmpl in patterns:
repl = repl_tmpl.replace("{V}", v) repl = repl_tmpl.replace("{V}", v)
updated = re.sub(pat_re, repl, updated, flags=re.M) updated = re.sub(pat_re, repl, updated, flags=re.M)
if f"v{v}" not in updated and f'"{v}"' not in updated and f":{v}" not in updated: if f"v{v}" not in updated and f'"{v}"' not in updated and f":{v}" not in updated and f" {v}" not in updated:
mismatched_files.append(str(path)) mismatched_files.append(str(path))
elif updated != orig: elif updated != orig:
if check_only: if check_only:
@@ -476,8 +500,20 @@ def sync_workspace_version(target_version: str, check_only: bool = False, ws_roo
ws_toml.write_text(upd_ws, encoding="utf-8") ws_toml.write_text(upd_ws, encoding="utf-8")
modified_files.append(str(ws_toml)) modified_files.append(str(ws_toml))
from hyperstitionstud_io.ci.deploy_scripts_sync import prepare_and_verify_deploy_scripts
from hyperstitionstud_io.publishing.readme_sync import sync_all_repo_readmes from hyperstitionstud_io.publishing.readme_sync import sync_all_repo_readmes
deploy_res = prepare_and_verify_deploy_scripts(
workspace_root=cfg.workspace_root,
target_version=v,
check_only=check_only,
stage=False,
)
if check_only and not deploy_res["ok"]:
mismatched_files.extend(deploy_res["errors"])
elif not check_only:
modified_files.extend(deploy_res["modified_files"])
readme_res = sync_all_repo_readmes(ws_root=cfg.workspace_root, version=v, check_only=check_only) readme_res = sync_all_repo_readmes(ws_root=cfg.workspace_root, version=v, check_only=check_only)
if check_only and not readme_res["all_in_sync"]: if check_only and not readme_res["all_in_sync"]:
mismatched_files.extend(readme_res["mismatched_readmes"]) mismatched_files.extend(readme_res["mismatched_readmes"])
+56
View File
@@ -1325,6 +1325,62 @@ def test_ipld_quant_and_mcp_server() -> None:
assert pkg_f.is_file(), f"Missing Fedora 41 packaging file {pkg_f}" assert pkg_f.is_file(), f"Missing Fedora 41 packaging file {pkg_f}"
assert "/dev/null" not in pkg_f.read_text(encoding="utf-8") assert "/dev/null" not in pkg_f.read_text(encoding="utf-8")
# Verify Plan #58: Pre-Commit Preparation & Gates D1-D8 for push-all-to-git-libre-audio.sh & deploy/sync-vps-repos.sh
from hyperstitionstud_io.ci.deploy_scripts_sync import prepare_and_verify_deploy_scripts
dep_sync = prepare_and_verify_deploy_scripts(workspace_root=cfg.workspace_root, check_only=False)
assert dep_sync["ok"] is True, f"Deploy scripts sync failed: {dep_sync}"
assert all(dep_sync["gates"].values()), f"Deploy scripts gates failed: {dep_sync['gates']}"
dep_chk = prepare_and_verify_deploy_scripts(workspace_root=cfg.workspace_root, check_only=True)
assert dep_chk["ok"] is True, f"Deploy scripts check_only failed: {dep_chk}"
assert (cfg.core_dir / "deploy" / "push-all-to-git-libre-audio.sh").read_text(encoding="utf-8") == (
cfg.workspace_root / "push-all-to-git-libre-audio.sh"
).read_text(encoding="utf-8")
# Verify Plan #60: /calc/ (haiperdohpjematreeah) Homepage Group 3 UI Parity, Zero "Cypher Calculator" & hyperdope-ci-build Patch Integration
calc_dir = cfg.paths["gematria_js_dir"]
calc_html = (calc_dir / "index.html").read_text(encoding="utf-8")
assert "<title>haiperdohpjematreeah</title>" in calc_html
assert 'id="hsCalcHeader"' in calc_html and 'class="btn-donate-pill"' in calc_html
assert "hs-group3-basalt-chamfer.css" in calc_html
for chk_p in (
calc_dir / "index.html",
calc_dir / "config.default.js",
calc_dir / "manifest.json",
calc_dir / "docs" / "ONBOARDING-INGGLISH-AQ.md",
(cfg.paths.get("ci_repo_dir") or (cfg.workspace_root / "hyperdope-ci-build")) / "config.default.js",
):
if chk_p.is_file():
assert re.search(r"(?i)cypher\s*calculator", chk_p.read_text(encoding="utf-8")) is None, f"Forbidden Cypher Calculator branding in {chk_p}"
ci_dir = cfg.paths.get("ci_repo_dir") or (cfg.workspace_root / "hyperdope-ci-build")
assert (ci_dir / "integrate-upstream-and-ui.sh").is_file()
assert (ci_dir / "patches" / "0001-feat-calc-ingglish-priority-toggle.patch").is_file()
assert (ci_dir / "patches" / "0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch").is_file()
# Verify Plan #59 (Strategies 1A, 2A, 3A): normalize_speech_prosody(), master_wav_broadcast_warmth(), and WebAudio BiquadFilterNode EQ
from hyperstitionstud_io.publishing.quant_voice import normalize_speech_prosody
norm_p = normalize_speech_prosody("Inspecting NVDA and ASML with CIDv1 and 81 bps.")
assert "Nvidia" in norm_p and "A S M L" in norm_p and "C I D version 1" in norm_p and "basis points" in norm_p
assert "createBiquadFilter" in (cfg.core_dir / "site" / "quant" / "quant-tutorials.js").read_text(encoding="utf-8")
# Verify Plan #61: Homepage UI Quadrant Closeup Bounding-Box Containment & Geometry Audit (Invariants B1-B3)
closeups_man_p = cfg.core_dir / "site" / "assets" / "closeups" / "ui-elements-manifest.json"
assert closeups_man_p.is_file()
closeups_man_obj = json.loads(closeups_man_p.read_text(encoding="utf-8"))
geom_audit = closeups_man_obj.get("geometry_audit") or {}
assert geom_audit.get("all_clean") is True, f"Closeup geometry audit not clean: {geom_audit}"
assert geom_audit.get("breach_count") == 0
assert geom_audit.get("border_crossing_count") == 0
assert geom_audit.get("text_overlap_count") == 0
# Verify Plan #63 & Plan #65: Homepage Navigation Immutability + Intra-Page & Cross-Page UI Style/Font/Background Parity (Gates S1-S3)
from hyperstitionstud_io.ci.public_regression import verify_ui_style_and_navigation_consistency
style_audit = verify_ui_style_and_navigation_consistency(workspace_root=cfg.workspace_root)
assert style_audit["ok"] is True, f"UI style and navigation consistency audit failed: {style_audit}"
assert all(style_audit["gates"].values()), f"Style gates failed: {style_audit['gates']}"
# Verify PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS # Verify PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS
from hyperstitionstud_io.ci.erofs_harness import run_introspective_erofs_suite from hyperstitionstud_io.ci.erofs_harness import run_introspective_erofs_suite
+1 -1
View File
@@ -1,6 +1,6 @@
# workspace.example.toml — Location-Independent Workspace Configuration Template (v1.2.0) # workspace.example.toml — Location-Independent Workspace Configuration Template (v1.2.0)
# Copy to your parent workspace folder: cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml # Copy to your parent workspace folder: cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
schema_version = "2.13.0" schema_version = "2.17.0"
namespace_urn = "urn:io:hyperstitionstud" namespace_urn = "urn:io:hyperstitionstud"
[paths] [paths]