Compare commits

..
8 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
Hermes Agent 6624209f2b Release v2.13.0: Protect /quant/audio in rsync, auto-provision espeak-ng on VPS in sync-vps-repos.sh, add .wav to Caddyfile, and verify Fedora 41 RPM packaging in push-all-to-git-libre-audio.sh 2026-12-01 11:26:34 +00:00
Hermes Agent 6af5d32b15 Release v2.13.0: Implement zero-Git-audio /quant/ guided tour voice narration (Strategies 1A/2A/3A via hs-quant-voice-build, 250ms onstart watchdog & WebAudio formant fallback) and turnkey Fedora 41 OpenRouter exegesis & git.libre.audio push package (Plan #56 & Plan #57) 2026-12-01 11:24:07 +00:00
62 changed files with 3026 additions and 608 deletions

No files matched your search

+1
View File
@@ -6,3 +6,4 @@ build/
dist/
*.tmp
.cache/
site/quant/audio/
+6 -6
View File
@@ -1,11 +1,11 @@
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.12.0`)
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.17.0`)
<!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.12.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/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.12.0 release state across 2 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`, `src/hyperstitionstud_io/publishing/archive_rotator.py`
> - **Live Verified Ecosystem Metrics (`v2.12.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
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.0 release state across 44 tracked module/artifact surface(s)
> - **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.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 -->
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.12.0`)
## Key Architecture & Capabilities (`v2.17.0`)
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`.
+11 -2
View File
@@ -10,7 +10,7 @@ www.hyperstitionstud.io {
}
hyperstitionstud.io {
@compressible not path *.gz *.br *.tgz *.xz *.zst *.zip *.woff2 *.png *.mp3 *.pdf
@compressible not path *.gz *.br *.tgz *.xz *.zst *.zip *.woff2 *.png *.mp3 *.wav *.pdf
encode @compressible zstd gzip
# Zero-PII Route Counter Log (Strategy 3A — remote_ip, client_ip, Cookie, User-Agent, and Referer deleted)
@@ -39,12 +39,21 @@ hyperstitionstud.io {
-Server
}
@immutable_media path *.pdf *.png *.mp3 *.graphml *.gexf *.canvas *.woff2
@immutable_media path *.pdf *.png *.mp3 *.wav *.graphml *.gexf *.canvas *.woff2
header @immutable_media Cache-Control "public, max-age=86400, stale-while-revalidate=604800"
@html_js path *.html *.js *.json
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/*
handle_path /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}."
+19
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# /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),
# 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
@@ -157,6 +158,7 @@ if p.is_file():
'
fi
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 "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
@@ -179,6 +181,7 @@ for entry in "${REPOS[@]}"; do
run_checked "rsync ${repo}" ${LIVE_SUDO} rsync -a --delete \
--filter='P *.gz' \
--filter='P *.br' \
--filter='P site/quant/audio/***' \
--exclude='.git' \
--exclude='completed-plans-archive.tar.gz' \
--exclude='inactive-plans-archive.tar.gz' \
@@ -199,6 +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/quant" "${LIVE_REPOS}/quant"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"
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 flite || true)" ]] || [[ -z "$(type -P espeak-ng || true)" ]]; then
if [[ "${DO_CADDY}" -eq 1 ]]; then
if [[ -n "$(type -P dnf || true)" ]]; then
echo " -> Installing flite & espeak-ng via dnf for natural spoken English tour narration..."
${SUDO} dnf install -y -q flite espeak-ng || true
elif [[ -n "$(type -P apt-get || true)" ]]; then
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
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}" \
--out-dir "${LIVE_REPOS}/hyperstitionstudio-core/site/quant/audio" \
--upgrade-slt-background
if [[ -d "${LIVE_REPOS}/hyperstitionstudio-core/site/engineering" ]]; then
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/engineering" "${LIVE_REPOS}/engineering"
fi
+4
View File
@@ -55,6 +55,7 @@ ROUTES=(
"/assets/hs-group3-basalt-chamfer.css"
"/assets/hs-guile-scheme-repl.js"
"/assets/hs-matrix-coderain.js"
"/assets/hs-mobile-ui.js"
"/assets/matrix-font.woff2"
"/assets/closeups/quadrant-1-cybermemetics-calc-graph.png"
"/assets/closeups/quadrant-1-tab-2-graph.png"
@@ -73,6 +74,9 @@ ROUTES=(
"/quant/index.html"
"/quant/quant-app.js"
"/quant/quant-tutorials.js"
"/quant/audio/voice-manifest.json"
"/quant/audio/ep01-s1.wav"
"/quant/audio/ep04-s1.wav"
"/quant/quant-timeseries-data.js"
"/quant/quant-timeseries.json"
"/quant/real-market-history.json"
@@ -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",
"version": "2.12.0",
"version": "2.17.0",
"private": true,
"description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.",
"license": "MIT",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hyperstitionstud.io/ciphers-aq",
"version": "2.12.0",
"version": "2.17.0",
"type": "module",
"main": "index.js",
"license": "MIT"
+3 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "hyperstitionstudio-core"
version = "2.12.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."
readme = "README.md"
requires-python = ">=3.10"
@@ -41,6 +41,8 @@ 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"
[tool.setuptools.packages.find]
where = ["src"]
+2 -2
View File
@@ -144,8 +144,8 @@ def main() -> int:
})
manifest = {
"version": "2.12.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.12.0",
"version": "2.17.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.17.0",
"total_items": len(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

+52 -20
View File
@@ -1,6 +1,6 @@
{
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
"ui_elements_fingerprint_sha256": "fa44109fa10578953fb173c9e1df91cc4ebf4b33882c2bd5b1a9e317bb5d8cca",
"ui_elements_fingerprint_sha256": "850e947100a471119f43bcc9317c1979447cd4c1ce3c06f4e98747be54b713b6",
"closeup_images": [
"quadrant-1-cybermemetics-calc-graph.png",
"quadrant-1-tab-2-graph.png",
@@ -24,7 +24,7 @@
},
"engineering_counts": {
"repositories": 6,
"cli_entrypoints": 18,
"cli_entrypoints": 20,
"mcp_tools": 20,
"rest_domain_aliases": 12,
"enabled_lenses": 6,
@@ -69,8 +69,8 @@
]
},
"quant": {
"ui_structure_sha256": "6a8617125aa3a61d26a55c87cb39c0be18aff4fcf79e62e6d4700c49389283e6",
"id_count": 67,
"ui_structure_sha256": "2ab4047333b1c330987a5ee5b67ed3e19125c508a603ed51a8b4be54a324a4ae",
"id_count": 68,
"button_count": 21,
"option_count": 0,
"input_count": 2,
@@ -106,6 +106,7 @@
"navLearn",
"navManual",
"navMath",
"navQuant",
"nextDateBtn",
"openTradingViewBtn",
"panel1Meta",
@@ -168,7 +169,7 @@
]
},
"learn": {
"ui_structure_sha256": "e268fa263952e761a2d79b45a8881691495831178886770566532c30c2100316",
"ui_structure_sha256": "c3313aa013d20695e27cb78dde64a1e17b0dd90c09b0f47555af1b6aba72101d",
"id_count": 48,
"button_count": 11,
"option_count": 29,
@@ -266,7 +267,7 @@
]
},
"engineering_hub": {
"ui_structure_sha256": "12b0496d2f082fa2d29bf68c4b186f40be901f79a7be87fc435241ffa7123145",
"ui_structure_sha256": "9d8f350da3fb9ad545b7bcaa14879a36ad185b890e313efbe0cd354046e08f0d",
"id_count": 14,
"button_count": 16,
"option_count": 16,
@@ -331,7 +332,7 @@
]
},
"engineering_e4": {
"ui_structure_sha256": "4521e10d2e556ada980e8ba3bde5bb0748fa5ef72f15b69a1030ce07cd28904d",
"ui_structure_sha256": "1c819c615e418eec10caefaf53aa76100655c1cb7bbe7b2914e54c9b62c97996",
"id_count": 15,
"button_count": 17,
"option_count": 16,
@@ -391,7 +392,7 @@
]
},
"math_hub": {
"ui_structure_sha256": "9ce686c475325b7c3eef2abada48a3aac3cfa30bec087adb46b5226ff9a39cb6",
"ui_structure_sha256": "614ba230cf6545ababf2d4e02c46a7e3893b7b8ac2cc5795efc270e9d192abc8",
"id_count": 12,
"button_count": 16,
"option_count": 16,
@@ -450,7 +451,7 @@
]
},
"math_m1": {
"ui_structure_sha256": "3141f7e0e3e816edc7f2c49e813ca76637fa85768c57a8aa291348e7f6231736",
"ui_structure_sha256": "37fc8b04d52192d7c1e5f509944916bba270599db0f7a5f38ecfa8ad9feef13f",
"id_count": 12,
"button_count": 16,
"option_count": 16,
@@ -506,9 +507,9 @@
]
},
"graph": {
"ui_structure_sha256": "771d70e8e41e4f466d29b04274b3403753f82c7a8e8680ba5c8a732b2b00fd29",
"id_count": 16,
"button_count": 6,
"ui_structure_sha256": "095cf74cd75866d3135d0eb0cac88c85fe2f9da1c5080c1f6f528f85e4ea1505",
"id_count": 26,
"button_count": 8,
"option_count": 11,
"input_count": 1,
"heading_count": 5,
@@ -518,6 +519,14 @@
"flagFilter",
"flexPills",
"graphCanvas",
"graphNavCalc",
"graphNavDonate",
"graphNavEng",
"graphNavHome",
"graphNavLearn",
"graphNavMath",
"graphNavQuant",
"graphNavSelf",
"hudStats",
"inspBadges",
"inspBody",
@@ -525,6 +534,8 @@
"inspectorDrawer",
"isolationBox",
"minDegreeFilter",
"mobileGraphFiltersBtn",
"mobileGraphInspectorBtn",
"nbrList",
"nodeTypeToggles",
"resetViewBtn",
@@ -539,7 +550,9 @@
"Mode 3: Gen 0 -> Gen 1 Funnel",
"Mode 4: 00–08 Folder Grid",
"Reset View",
"Export PNG"
"Export PNG",
"&#x2699; Ontology &amp; Filters",
"&#x24D8; Node Inspector"
],
"sample_options": [
"Filter: All Nodes",
@@ -563,12 +576,12 @@
]
},
"calc": {
"ui_structure_sha256": "a955885aeba700ece09389b80de203aff79128b8bb153d22b69993bd7ab528a6",
"id_count": 26,
"ui_structure_sha256": "b12869b3987b92b014ca25a0b18e75728df5ce2cefb5666d404af4a927f2dbb9",
"id_count": 35,
"button_count": 0,
"option_count": 0,
"input_count": 1,
"heading_count": 0,
"heading_count": 1,
"ids": [
"BreakdownDetails",
"BreakdownSpot",
@@ -578,6 +591,14 @@
"autoMatchBtn",
"calcLogo",
"calcMain",
"calcNavDonate",
"calcNavEng",
"calcNavGraph",
"calcNavHome",
"calcNavLearn",
"calcNavMath",
"calcNavQuant",
"calcNavSelf",
"calcOptionsPanel",
"canv",
"clearFilterButton",
@@ -589,6 +610,7 @@
"enterPhraseBtn",
"highlightBox",
"hltModeBtn",
"hsCalcHeader",
"hsGlobalFooter",
"inputArea",
"loadPanel",
@@ -602,7 +624,9 @@
],
"sample_buttons": [],
"sample_options": [],
"sample_headings": []
"sample_headings": [
"HYPERSTITIONSTUD.IO/CALC // HAIPERDOHPJEMATREEAH WORKBENCH"
]
}
},
"js_surfaces": {
@@ -657,7 +681,7 @@
"has_lens_select_highlight": true
},
"quant_tutorials_js": {
"js_ui_sha256": "b9174978ea8b9dce2d35f557bcb8b3b4c7f367dc41d0d7c3de8ee7f4dd8f894c",
"js_ui_sha256": "3a3aa865c6ce2b10c26b8d45d2d3c08dfd864b2e4f86b85e887787e7b7adad86",
"dom_ids": [
"tutCitationPills",
"tutClearSpotlightBtn",
@@ -670,7 +694,8 @@
"tutSpeechBtn",
"tutStepBadge",
"tutSubtitleText",
"tutUiElementIndicator"
"tutUiElementIndicator",
"tutVoiceAudio"
],
"ui_targets": [
"\"dailyBriefPanel\", \"lensSelect\"",
@@ -778,6 +803,13 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeeraf5ku7guwa7g4hbwsnidffhvynxf43wvipn7qsoxtburh6stp3xea"
"/": "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 {
--font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--bg-void: #020617;
--bg-deep: #020617;
--bg-well: #070d1b;
--bg-card: #0c1324;
--bg-panel: #0c1324;
--bg-surface: #0c1324;
--bg-elevated: #111a2e;
--bg-bezel: #182338;
@@ -35,6 +37,18 @@
--accent-violet: #a855f7;
}
body,
button,
input,
select,
textarea,
code,
pre,
kbd,
samp {
font-family: var(--font-mono);
}
body {
background-color: var(--bg-void);
background-image:
@@ -611,3 +625,192 @@ html[data-sigil-accents="off"] .panel::after {
.closeup-bar-cta:hover {
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 name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Signal Patronage &amp; Open-Instrument Notes — hyperstitionstud.io/donate</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--bg-deep: #090d16;
--border: #334155;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -42,30 +42,34 @@
border: 1px solid var(--border);
border-left: 4px solid var(--gold);
border-radius: 10px;
padding: 1.25rem 1.5rem;
padding: 1.1rem 1.35rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
flex-wrap: nowrap;
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 {
width: 11px;
height: 11px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--gold);
box-shadow: 0 0 10px var(--gold);
flex-shrink: 0;
}
h1 { font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; }
.subtitle { font-size: 0.77rem; color: var(--text-muted); margin-top: 0.3rem; }
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;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
flex-wrap: wrap;
gap: 0.38rem;
flex-wrap: nowrap;
}
.btn {
text-decoration: none;
@@ -73,8 +77,8 @@
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.42rem 0.78rem;
font-size: 0.74rem;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
@@ -343,14 +347,18 @@
<span class="dot"></span>
<h1>hyperstitionstud.io/donate — Signal Patronage &amp; Open-Instrument Notes</h1>
</div>
<p class="subtitle">Open-Readout Phonemic, Graph &amp; Closing-Bell Telemetry Workbench &bull; Namespace Authority: urn:io:hyperstitionstud:donate:v2.12.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>
<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="quant" href="/quant/index.html">Time-Series (/quant/)</a>
<a class="btn" data-donate-route="graph" href="/graph/index.html">Knowledge Graph (/graph/)</a>
<a class="btn" data-donate-route="learn" href="/learn/index.html">Learning Track (/learn/)</a>
<a class="btn" data-donate-route="calc" href="/calc/index.html">Calculator (/calc/)</a>
<a class="btn" data-donate-route="calc" href="/calc/index.html">Calculator</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="graph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</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>
</header>
@@ -406,12 +414,12 @@
</section>
<footer>
<div>hyperstitionstud.io/donate v2.12.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>
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script>
(function () {
"use strict";
@@ -477,5 +485,6 @@
}
})();
</script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.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.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke</h1>
<p class="subtitle">Cartridge E5 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="../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="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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.12.0"></script>
<script src="../engineering-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation</h1>
<p class="subtitle">Cartridge E1 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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: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="../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="../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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.12.0"></script>
<script src="../engineering-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -1 +1 @@
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.12.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": 18, "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"}, "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", "title": "Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & BidirectionalLine 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
+6 -4
View File
@@ -1,6 +1,6 @@
{
"$id": "urn:io:hyperstitionstud:engineering-manifest",
"version": "2.12.0",
"version": "2.17.0",
"enabled_subpages": [
"ciphers-and-phonetics",
"knowledge-graph-and-sqlite",
@@ -19,7 +19,7 @@
],
"introspected_counts": {
"repositories": 6,
"cli_entrypoints": 18,
"cli_entrypoints": 20,
"mcp_tools": 20,
"rest_domain_aliases": 12,
"enabled_lenses": 6,
@@ -45,7 +45,9 @@
"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-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",
@@ -356,6 +358,6 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeera4t5khcifroxpnuucfvjp2gpmh2jlj26mjcsmuifwuojzlysjjr5q"
"/": "baguqeeralhggheqvujuoexizpm3m2ygjxh4l53ibxetlgp4xallhicw2j2mq"
}
}
+38 -23
View File
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.12.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.12rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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; }
.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; }
@@ -26,23 +27,36 @@
<div class="container">
<header>
<div>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<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:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</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="/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="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="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="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 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>
<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>
</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>
</nav>
<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()
@@ -50,7 +64,7 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
<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);">CLI Entrypoints</div><div style="font-size:1.35rem;font-weight:700;color:var(--cyan);">18</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);">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>
@@ -76,7 +90,7 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
</div>
<table id="engCliTable">
<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-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>
<script>
(function(){
@@ -93,12 +107,13 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
</section>
<footer>
hyperstitionstud.io/engineering v2.12.0 &bull; CIDv1: <code>baguqeera4t5khcifroxpnuucfvjp2gpmh2j...</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>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="engineering-manifest-data.js?v=2.12.0"></script>
<script src="engineering-app.js?v=2.12.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine</h1>
<p class="subtitle">Cartridge E2 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="../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="../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 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>
<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>
</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>
</nav>
<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:
@@ -50,12 +64,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.12.0"></script>
<script src="../engineering-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,27 +22,40 @@
<div class="container">
<header>
<div>
<h1>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1</h1>
<p class="subtitle">Cartridge E4 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="../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="../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 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>
<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>
</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>
</nav>
<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>
<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.12.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;">
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html">&larr; Prev: E3: Quant, Macro & Bayesian</a>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.12.0"></script>
<script src="../engineering-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief</h1>
<p class="subtitle">Cartridge E3 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="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="../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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.12.0"></script>
<script src="../engineering-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+21 -11
View File
@@ -4,12 +4,13 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--border: #334155;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -189,14 +190,22 @@
<div class="container">
<header>
<div>
<h1>MEMETIC ARTIFACT &amp; VISUAL ATLAS GALLERY // HYPERSTITIONSTUD.IO</h1>
<p class="subtitle">Read-Only Specimen Browser Across Pokedex Field Cards, Philosophical &amp; Stand-Up Exegesis, Template Benchmarks &amp; ETI Visual Boards</p>
<div class="title-row">
<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>
<nav class="top-nav">
<a class="btn" id="navHome" href="../index.html">&larr; Portal Home</a>
<a class="btn" id="navLearn" href="../learn/index.html">Learning Track</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator</a>
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="navHome" href="../index.html">Portal Home (/)</a>
<a class="btn" id="navCalc" href="/calc/index.html">Calculator</a>
<a class="btn" id="navQuant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</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>
</header>
@@ -217,7 +226,7 @@
<main class="gallery-grid" id="galleryGrid"></main>
<footer>
<div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.12.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>
</footer>
</div>
@@ -390,5 +399,6 @@
renderGrid();
})();
</script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body>
</html>
+6 -5
View File
@@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hyperstitionstud.io — Technocapital Singularity Zoology &amp; Alphanumeric Qabbala Workbench</title>
<link rel="prefetch" href="/graph/graph-data.js?v=2.12.0" as="script" />
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
:root {
--bg-canvas: #020617;
@@ -151,7 +151,7 @@
<span class="dot"></span>
<h1>HYPERSTITIONSTUD.IO // SINGULARITY ZOOLOGY WORKBENCH</h1>
</div>
<p class="subtitle">100% Offline-Portable &amp; HTTP/3 Edge-Ready Research Corpus &bull; Namespace Authority: urn:io:hyperstitionstud (v2.12.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 class="meta-badges">
<a class="btn primary" data-route="calc-app" href="/calc/index.html">Calculator</a>
@@ -313,12 +313,12 @@
</main>
<footer>
<div>hyperstitionstud.io &bull; Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.12.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>
</footer>
</div>
<script src="assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script>
// Automatic offline file:// relative-path adaptation when opened directly from hyperstitionstudio-core/site/index.html
(function() {
@@ -371,5 +371,6 @@
});
})();
</script>
<script src="assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body>
</html>
+32 -24
View File
@@ -4,13 +4,13 @@
<meta charset="UTF-8" />
<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>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--border: #334155;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -35,25 +35,28 @@
border: 1px solid var(--border);
border-left: 4px solid var(--emerald);
border-radius: 10px;
padding: 1.2rem 1.5rem;
margin-bottom: 1rem;
padding: 1.1rem 1.35rem;
margin-bottom: 1.15rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
flex-wrap: nowrap;
gap: 0.85rem;
}
h1 { font-size: 1.25rem; font-weight: 700; }
.subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 1220px) {
header { flex-wrap: wrap; }
}
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 {
text-decoration: none;
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.45rem 0.8rem;
font-size: 0.74rem;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
@@ -211,16 +214,20 @@
<div class="container">
<header>
<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>
</div>
<nav class="top-nav">
<a class="btn" data-learn-route="nav-home" href="../index.html">&larr; 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-eng" href="/engineering/index.html">Engineering (/engineering/)</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">Knowledge Graph</a>
<a class="btn" data-learn-route="nav-calc" href="/calc/index.html">AQ Calculator</a>
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" data-learn-route="nav-home" href="../index.html">Portal Home (/)</a>
<a class="btn" data-learn-route="nav-calc" href="/calc/index.html">Calculator</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-graph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">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-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>
<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>
@@ -421,12 +428,13 @@
</main>
<footer>
<div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.12.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>
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="learn-app.js?v=2.12.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></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>
</html>
+1 -1
View File
@@ -265,7 +265,7 @@
const base = {
$schema: "../schemas/v1/learn-progress-state.schema.json",
$id: SCHEMA_ID,
version: "2.12.0",
version: "2.17.0",
updated_at_utc: new Date().toISOString(),
preferred_register: "fund_manager",
completed_modules: [],
+36 -21
View File
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)</h1>
<p class="subtitle">Cartridge M1 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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: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="../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="../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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/base36-algebra-and-primes v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../math-manifest-data.js?v=2.12.0"></script>
<script src="../math-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY</h1>
<p class="subtitle">Cartridge M3 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="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="../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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../math-manifest-data.js?v=2.12.0"></script>
<script src="../math-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+36 -21
View File
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mathematical Foundations &amp; Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.12.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.12rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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; }
.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; }
@@ -24,23 +25,36 @@
<div class="container">
<header>
<div>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<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:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</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="/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="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="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="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 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>
<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>
</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>
</nav>
<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)
@@ -59,12 +73,13 @@ Z = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)
</section>
<footer>
hyperstitionstud.io/math v2.12.0 &bull; CIDv1: <code>baguqeeraq7uejpzp46zjm6wuxrafilp7rp2...</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>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="math-manifest-data.js?v=2.12.0"></script>
<script src="math-app.js?v=2.12.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds</h1>
<p class="subtitle">Cartridge M5 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="../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="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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../math-manifest-data.js?v=2.12.0"></script>
<script src="../math-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+1 -1
View File
@@ -1 +1 @@
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.12.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",
"version": "2.12.0",
"version": "2.17.0",
"enabled_subpages": [
"base36-algebra-and-primes",
"phonemic-projections-and-g-vectors",
@@ -301,6 +301,6 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeeraq7uejpzp46zjm6wuxrafilp7rp2h3ya7fbpxmd2lhf2nalq2swba"
"/": "baguqeerawoxbn5nceunfl7ndrduowkfboz5mgqqk425t6zzvhrc2yvuxrf6q"
}
}
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6</h1>
<p class="subtitle">Cartridge M2 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="../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="../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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../math-manifest-data.js?v=2.12.0"></script>
<script src="../math-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<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.12.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.12.0" />
<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.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.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; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
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; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.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); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}</h1>
<p class="subtitle">Cartridge M4 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> &bull; v2.12.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="/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="../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="../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="../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 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>
<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>
</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>
</nav>
<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>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.12.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>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="../math-manifest-data.js?v=2.12.0"></script>
<script src="../math-app.js?v=2.12.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></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">
<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>
@@ -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>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.12.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+39 -29
View File
@@ -4,14 +4,14 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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.12.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--bg-deep: #090d16;
--border: #334155;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -36,24 +36,27 @@
border: 1px solid var(--border);
border-left: 4px solid var(--gold);
border-radius: 10px;
padding: 1.1rem 1.4rem;
padding: 1.1rem 1.35rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.9rem;
flex-wrap: nowrap;
gap: 0.85rem;
}
h1 { font-size: 1.18rem; font-weight: 700; color: var(--text-main); }
.subtitle { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 1220px) {
header { flex-wrap: wrap; }
}
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 {
text-decoration: none;
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.42rem 0.72rem;
font-size: 0.73rem;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
@@ -316,23 +319,26 @@
padding-top: 1rem;
}
</style>
<script src="quant-timeseries-data.js?v=2.12.0"></script>
<script src="quant-timeseries-data.js?v=2.17.0"></script>
</head>
<body>
<div class="container">
<header>
<div>
<h1>hyperstitionstud.io/quant — Quantitative Finance &amp; Memetic Gematria Time-Series Workbench</h1>
<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.12.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<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>
<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="navEng" href="/engineering/index.html">Engineering (/engineering/)</a>
<a class="btn" id="navMath" href="/math/index.html">Applied Math (/math/)</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph (/graph/)</a>
<a class="btn" id="navLearn" href="/learn/index.html">Learning Track (/learn/)</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator (/calc/)</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="navCalc" href="/calc/index.html">Calculator</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" 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=quant" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
@@ -342,7 +348,10 @@
<section class="panel" id="quantTutorialBar" aria-label="Interactive Tutorial Series Player">
<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-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 class="pill-row" id="tutEpisodeTabs"></div>
<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>
<footer>
hyperstitionstud.io/quant v2.12.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>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.12.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.12.0"></script>
<script src="daily-brief-data.js?v=2.12.0"></script>
<script src="quant-app.js?v=2.12.0"></script>
<script src="quant-tutorials.js?v=2.12.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.17.0"></script>
<script src="daily-brief-data.js?v=2.17.0"></script>
<script src="quant-app.js?v=2.17.0"></script>
<script src="quant-tutorials.js?v=2.17.0"></script>
</body>
</html>
+25 -6
View File
@@ -1,5 +1,5 @@
// /workspace/hyperstitionstudio-core/site/quant/quant-app.js
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.12.0)
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.17.0)
(function () {
"use strict";
@@ -1050,19 +1050,38 @@
renderDailyBrief();
}
// Canvas scrub interaction
canvas.addEventListener("click", function (ev) {
// Canvas scrub interaction (mouse click + Strategy 4A mobile touchstart/touchmove scrubbing)
function scrubCanvasAtClientX(clientX) {
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 ratio = (relX - padL) / (canvas.width - padL - padR);
const rng = getActiveDateRange();
const span = Math.max(1, rng.endIdx - rng.startIdx - 1);
const idx = rng.startIdx + Math.round(ratio * span);
state.selectedDateIdx = Math.max(rng.startIdx, Math.min(rng.endIdx - 1, idx));
renderAll();
const nextIdx = Math.max(rng.startIdx, Math.min(rng.endIdx - 1, idx));
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 () {
state.selectedDateIdx = Math.max(0, state.selectedDateIdx - 1);
renderAll();
+251 -36
View File
@@ -446,8 +446,12 @@
let isPlaying = false;
let playTimer = null;
let speechEnabled = true; // Enabled by default so tour playback narrates immediately
let activeVoiceEngine = "Auto";
let cachedVoices = [];
let audioCtx = null;
let activeAudioEl = null;
let activeAudioEqConnected = false;
let formantStopFlag = false;
function refreshVoices() {
if (typeof window === "undefined" || typeof window.speechSynthesis === "undefined") return;
@@ -493,13 +497,15 @@
const baseFreqs = [292.0, 333.0, 394.0, 444.0, 528.0];
const f0 = baseFreqs[stepIdx % baseFreqs.length];
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) {
const osc = audioCtx.createOscillator();
const gain = audioCtx.createGain();
osc.type = i === 0 ? "triangle" : "sine";
osc.frequency.setValueAtTime(freq, 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);
osc.connect(gain);
gain.connect(audioCtx.destination);
@@ -517,7 +523,173 @@
}, delayMs);
}
// Strategy 1B & 3A: Synchronous unblocked window.speechSynthesis.speak() + natural-English speechText
function stopAllVoiceOutputs() {
formantStopFlag = true;
if (activeAudioEl) {
try {
activeAudioEl.pause();
activeAudioEl.currentTime = 0;
} catch (_) {}
}
if (typeof window !== "undefined" && typeof window.speechSynthesis !== "undefined") {
try {
if (window.speechSynthesis.speaking || window.speechSynthesis.pending) {
window.speechSynthesis.cancel();
}
} catch (_) {}
}
rootObj.__hsActiveUtterance = null;
}
// Tier 3 In-Browser Klatt Formant WebAudio Speech Synthesizer (for offline file:// when getVoices() === [])
function playInBrowserFormantSpeech(speechText, onFinish) {
try {
const Ctx = (typeof window !== "undefined") && (window.AudioContext || window.webkitAudioContext);
if (!Ctx) {
if (onFinish) onFinish();
return;
}
if (!audioCtx) audioCtx = new Ctx();
if (audioCtx.state === "suspended") audioCtx.resume();
formantStopFlag = false;
activeVoiceEngine = "Formant Synth";
renderTutorialUI();
const words = String(speechText || "").toLowerCase().match(/[a-z0-9]+|[.,;:!?]/g) || [];
const vowelMap = {
a: [660, 1350],
e: [510, 1880],
i: [370, 2050],
o: [520, 950],
u: [380, 1050],
y: [320, 2100]
};
let tOffset = audioCtx.currentTime + 0.04;
const maxWords = Math.min(words.length, 48);
for (let wi = 0; wi < maxWords; wi++) {
const w = words[wi];
if (w === "." || w === "!" || w === "?") {
tOffset += 0.14;
continue;
}
if (w === "," || w === ";" || w === ":") {
tOffset += 0.07;
continue;
}
const vowels = w.match(/[aeiouy]/g) || ["a"];
const f0 = 116.0 - 14.0 * ((wi % 10) / 10.0);
for (let vi = 0; vi < Math.min(vowels.length, 3); vi++) {
const vf = vowelMap[vowels[vi]] || [580, 1250];
const dur = 0.075;
const osc0 = audioCtx.createOscillator();
const osc1 = audioCtx.createOscillator();
const osc2 = audioCtx.createOscillator();
const gain = audioCtx.createGain();
osc0.type = "sawtooth";
osc1.type = "sine";
osc2.type = "sine";
osc0.frequency.setValueAtTime(f0, tOffset);
osc1.frequency.setValueAtTime(vf[0], tOffset);
osc2.frequency.setValueAtTime(vf[1], tOffset);
gain.gain.setValueAtTime(0.0001, tOffset);
gain.gain.linearRampToValueAtTime(0.045, tOffset + 0.015);
gain.gain.exponentialRampToValueAtTime(0.0001, tOffset + dur);
osc0.connect(gain);
osc1.connect(gain);
osc2.connect(gain);
gain.connect(audioCtx.destination);
osc0.start(tOffset);
osc1.start(tOffset);
osc2.start(tOffset);
osc0.stop(tOffset + dur + 0.01);
osc1.stop(tOffset + dur + 0.01);
osc2.stop(tOffset + dur + 0.01);
tOffset += dur;
}
tOffset += 0.025;
}
const totalDurMs = Math.max(2500, Math.round((tOffset - audioCtx.currentTime) * 1000));
setTimeout(function () {
if (!formantStopFlag && onFinish) onFinish();
}, totalDurMs);
} catch (_) {
if (onFinish) onFinish();
}
}
// Tier 2 Deploy-Time Untracked WAV Playback (/quant/audio/ep0X-sY.wav) -> Tier 3 Formant Fallback
function playDeployTimeWavOrFormant(clipId, rawSpeech, onFinish) {
if (typeof document === "undefined" || typeof Audio === "undefined") {
playInBrowserFormantSpeech(rawSpeech, onFinish);
return;
}
try {
if (!activeAudioEl) {
activeAudioEl = document.getElementById("tutVoiceAudio");
if (!activeAudioEl) {
activeAudioEl = document.createElement("audio");
activeAudioEl.id = "tutVoiceAudio";
activeAudioEl.preload = "auto";
activeAudioEl.style.display = "none";
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";
let handled = false;
const doneOnce = function () {
if (handled) return;
handled = true;
if (onFinish) onFinish();
};
activeAudioEl.onended = doneOnce;
activeAudioEl.onerror = function () {
if (handled) return;
handled = true;
playInBrowserFormantSpeech(rawSpeech, onFinish);
};
activeAudioEl.src = wavUrl;
const playPromise = activeAudioEl.play();
activeVoiceEngine = "WAV Audio";
renderTutorialUI();
if (playPromise && typeof playPromise.catch === "function") {
playPromise.catch(function () {
if (handled) return;
handled = true;
playInBrowserFormantSpeech(rawSpeech, onFinish);
});
}
} catch (_) {
playInBrowserFormantSpeech(rawSpeech, onFinish);
}
}
// Strategies 1A, 2A & 3A: Guarded cancel(), GC-pinned utterance, 250ms onstart watchdog & 3-tier fallback
function speakSubtitle(kfOrText, onDoneCallback) {
if (!speechEnabled) {
if (onDoneCallback) scheduleNextStep(7000);
@@ -526,51 +698,94 @@
const rawSpeech = (kfOrText && typeof kfOrText === "object")
? (kfOrText.speechText || cleanTextForSpeech(kfOrText.subtitle, kfOrText.uiElementLabel))
: cleanTextForSpeech(String(kfOrText || ""), "");
const clipId = "ep0" + (curEpIdx + 1) + "-s" + (curStepIdx + 1);
stopAllVoiceOutputs();
playWebAudioTelemetryChime(curStepIdx);
refreshVoices();
if (typeof window.speechSynthesis === "undefined" || typeof SpeechSynthesisUtterance === "undefined") {
if (onDoneCallback) scheduleNextStep(7500);
let settled = false;
const finishSceneSpeech = function () {
if (settled) return;
settled = true;
rootObj.__hsActiveUtterance = null;
if (onDoneCallback && isPlaying) {
scheduleNextStep(1600);
}
};
const estMs = Math.max(8500, Math.min(22000, rawSpeech.split(/\s+/).length * 410));
if (onDoneCallback && isPlaying) {
scheduleNextStep(estMs);
}
// If browser has no speechSynthesis or 0 installed OS voices (common on Linux/Fedora desktops),
// immediately play the deploy-time WAV track (or Formant Synth fallback) so voice is 100% audible!
if (
typeof window === "undefined" ||
typeof window.speechSynthesis === "undefined" ||
typeof SpeechSynthesisUtterance === "undefined" ||
cachedVoices.length === 0
) {
playDeployTimeWavOrFormant(clipId, rawSpeech, finishSceneSpeech);
return;
}
try {
window.speechSynthesis.cancel();
if (typeof window.speechSynthesis.resume === "function") {
window.speechSynthesis.resume();
}
const u = new SpeechSynthesisUtterance(rawSpeech);
if (cachedVoices.length > 0) {
const preferred = cachedVoices.find(function (v) {
return /en(-|_)(US|GB)/i.test(v.lang) && /natural|neural|google|english/i.test(v.name);
}) || cachedVoices.find(function (v) {
return /^en/i.test(v.lang);
}) || cachedVoices[0];
if (preferred) u.voice = preferred;
}
// Strategy 2A: Pin u on rootObj so Chromium/WebKit GC never collects the utterance mid-speech
rootObj.__hsActiveUtterance = u;
const preferred = cachedVoices.find(function (v) {
return /en(-|_)(US|GB)/i.test(v.lang) && /natural|neural|google|english/i.test(v.name);
}) || cachedVoices.find(function (v) {
return /^en/i.test(v.lang);
}) || cachedVoices[0];
if (preferred) u.voice = preferred;
u.lang = "en-US";
u.rate = 1.03;
u.pitch = 1.0;
u.volume = 1.0;
let settled = false;
const finish = function () {
if (settled) return;
settled = true;
if (onDoneCallback && isPlaying) {
scheduleNextStep(1800);
}
let speechStarted = false;
let fallbackTriggered = false;
const triggerFallback = function () {
if (fallbackTriggered || settled || !speechEnabled) return;
fallbackTriggered = true;
try {
if (window.speechSynthesis.speaking || window.speechSynthesis.pending) {
window.speechSynthesis.cancel();
}
} catch (_) {}
playDeployTimeWavOrFormant(clipId, rawSpeech, finishSceneSpeech);
};
u.onend = finish;
u.onerror = finish;
// Call speak(u) synchronously without blocking on cachedVoices.length === 0 or setTimeout
u.onstart = function () {
speechStarted = true;
activeVoiceEngine = "WebSpeech";
renderTutorialUI();
};
u.onend = function () {
if (!fallbackTriggered) finishSceneSpeech();
};
u.onerror = function () {
if (!speechStarted) triggerFallback();
else finishSceneSpeech();
};
window.speechSynthesis.speak(u);
const estMs = Math.max(8500, Math.min(22000, rawSpeech.split(/\s+/).length * 410));
if (onDoneCallback && isPlaying) {
scheduleNextStep(estMs);
}
// Strategy 2A: 250ms hardware watchdog — if OS speech-dispatcher socket is hung and onstart never fires,
// automatically switch to deploy-time WAV / WebAudio formant synth so the user always hears the narration!
setTimeout(function () {
if (!speechStarted && !settled && speechEnabled) {
triggerFallback();
}
}, 250);
} catch (_) {
if (onDoneCallback) scheduleNextStep(7500);
playDeployTimeWavOrFormant(clipId, rawSpeech, finishSceneSpeech);
}
}
@@ -691,9 +906,7 @@
clearTimeout(playTimer);
playTimer = null;
}
if (typeof window.speechSynthesis !== "undefined") {
try { window.speechSynthesis.cancel(); } catch (_) {}
}
stopAllVoiceOutputs();
renderTutorialUI();
}
@@ -731,9 +944,13 @@
if (speechBtn) {
speechBtn.textContent = speechEnabled ? "\uD83D\uDD0A Voice: ON" : "\uD83D\uDD07 Voice: OFF";
speechBtn.className = speechEnabled ? "btn primary" : "btn";
speechBtn.title = speechEnabled
? ("Active Voice Engine: " + activeVoiceEngine + " (Click to mute)")
: "Voice Narration Muted (Click to enable spoken narration)";
}
if (stepBadge) {
stepBadge.textContent = ep.code + " \u2022 Scene " + (curStepIdx + 1) + "/" + ep.keyframes.length + (kf.uiElementLabel ? " \u2022 [" + kf.uiElementLabel + "]" : "");
const voxTag = speechEnabled ? (" \u2022 \uD83D\uDD0A " + activeVoiceEngine) : "";
stepBadge.textContent = ep.code + " \u2022 Scene " + (curStepIdx + 1) + "/" + ep.keyframes.length + voxTag + (kf.uiElementLabel ? " \u2022 [" + kf.uiElementLabel + "]" : "");
}
if (scrubber) {
scrubber.max = String(ep.keyframes.length - 1);
@@ -784,9 +1001,7 @@
speechBtn.onclick = function () {
speechEnabled = !speechEnabled;
if (speechEnabled) speakSubtitle(getActiveKeyframe(), isPlaying);
else if (typeof window.speechSynthesis !== "undefined") {
try { window.speechSynthesis.cancel(); } catch (_) {}
}
else stopAllVoiceOutputs();
renderTutorialUI();
};
}
@@ -806,7 +1021,7 @@
}
const exportedApi = {
version: "2.12.0",
version: "2.17.0",
episodes: EPISODES,
allHighlightableDomIds: ALL_HIGHLIGHTABLE_DOM_IDS,
cleanTextForSpeech: cleanTextForSpeech,
+2 -2
View File
@@ -1,3 +1,3 @@
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.12.0)."""
__version__ = "2.12.0"
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.17.0)."""
__version__ = "2.17.0"
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 hashlib
import json
import re
import urllib.error
import urllib.request
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}")
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())
return {
"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_total": len(gate_results),
"gate_results": gate_results,
"style_consistency_audit": style_audit,
"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:
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).")
+2 -2
View File
@@ -39,8 +39,8 @@ from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool # noq
SERVER_INFO = {
"name": "hyperstitionstudio-mcp",
"version": "2.12.0",
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.12.0",
"version": "2.17.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`)
whenever any page's UI elements (`id=...`, `<select><option>`, `.pill`, `<button>`,
`<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
@@ -17,6 +23,7 @@ import hashlib
import json
import math
import re
import shutil
from pathlib import Path
from typing import Any
@@ -68,6 +75,209 @@ def _fnt(path: str, size: int) -> Any:
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]:
"""
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():
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_obj = load_json_cached(ts_p, copy_result=False) if ts_p.is_file() else {}
total_bars = sum(
@@ -207,6 +416,7 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
combined_hash = hashlib.sha256(
json.dumps(
{
"layout_engine": "bounded_box_v2_plan61",
"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())},
"total_bars": total_bars,
@@ -236,9 +446,9 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
return manifest
def _new_canvas() -> tuple[Image.Image, ImageDraw.ImageDraw]:
def _new_canvas() -> tuple[Image.Image, _TrackedCanvasDraw]:
im = Image.new("RGB", (680, 260), VOID)
d = ImageDraw.Draw(im)
d = _TrackedCanvasDraw(im)
for gx in range(0, 680, 32):
d.line([(gx, 0), (gx, 260)], fill=(12, 18, 30), width=1)
for gy in range(0, 260, 32):
@@ -247,7 +457,7 @@ def _new_canvas() -> tuple[Image.Image, ImageDraw.ImageDraw]:
def _draw_chamfer_box(
d: ImageDraw.ImageDraw,
d: _TrackedCanvasDraw,
box: tuple[int, int, int, int],
fill: 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`
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)
out_dir = cfg.core_dir / "site" / "assets" / "closeups"
@@ -317,7 +528,6 @@ def render_all_quadrant_closeups(
eng_c = metrics["engineering_counts"]
surfaces = live_manifest["surfaces"]
# Detect live controls on /graph/, /quant/, /learn/, /engineering/ (HTML + JS)
quant_ids = set(surfaces.get("quant", {}).get("ids") 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 [])
@@ -330,15 +540,17 @@ def render_all_quadrant_closeups(
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 [])
# 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()
_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.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)
ciphers = [
("haiperdohp-jemaytreeah", "292", EMERALD),
("haiperdohpjematreeah", "292", EMERALD),
("Phonemic Ingglish AQ", "292", CYAN),
("Written English AQ", "250", GOLD),
("Simple Ordinal", "178", ROSE),
@@ -346,8 +558,9 @@ def render_all_quadrant_closeups(
cw = (656 - 24 - 24) // 4
for i, (clab, cval, ccol) in enumerate(ciphers):
bx = 24 + i * (cw + 8)
_draw_chamfer_box(d, (bx, 84, bx + cw, 152), WELL, ccol, chamfer=7, pip=ccol)
d.text((bx + 10, 90), clab[:19], font=f_mono_xs, fill=MUTED)
tile_box = (bx, 84, bx + cw, 152)
_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)
rows = [
("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((335, ry + 4), rmeta, font=f_mono, fill=CYAN)
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
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)
for nx, ny, ncol, nlab in nodes:
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
if nlab == "aq:777":
lx, ly = nx - 24, ny - 20
lx, ly = nx - nw // 2, ny - 20
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)
_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, 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
for btxt, bcol in badges:
d.rectangle([bx_i, 96, bx_i + 86, 116], fill=PLATE, outline=bcol)
d.text((bx_i + 6, 99), btxt, font=f_mono_xs, fill=bcol)
bx_i += 92
for btxt, bw, bcol in badges:
bbox = (bx_i, 96, bx_i + bw, 116)
d.rectangle(list(bbox), fill=PLATE, outline=bcol)
_draw_box_text(d, bbox, btxt, bcol, pad_x=5, align="center", preferred_size=10, min_size=8)
bx_i += bw + 6
insp_lines = [
("Filter:", "9-Sum Syzygies • MinDeg ≥ 0"),
("Gen 1 Locks:", "sinthetik dayta • abstrakt masheen"),
("Variance:", "σ²_0 = 310.22 -> σ²_1 = 0.00 (G1)"),
("Neighbors:", "Top 40 Cap + [Show All] Button"),
("Gen 1 Locks:", "sinthetik dayta • abstrakt"),
("Variance:", "σ²_0 = 310.22 -> σ²_1 = 0.00"),
("Neighbors:", "Top 40 Cap + [Show All]"),
]
for li, (lk, lv) in enumerate(insp_lines):
ly = 128 + li * 25
d.rectangle([372, ly, 644, ly + 21], fill=PLATE, outline=BORDER)
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)
_draw_kv_row(d, (372, ly, 644, ly + 21), lk, lv, key_size=11, val_size=10, min_val_x=472)
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()
_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 ""
flt_badge = "Filter•" if quant_has_quick_filter else ""
vox_badge = "🔊Voice:ON•" if quant_has_speech_btn else ""
d.rectangle([388, 16, 656, 36], fill=WELL, outline=GOLD)
d.text((394, 19), f"{vox_badge}{win_badge}{flt_badge}NVDA", font=f_mono_xs, fill=GOLD)
vox_badge = "Vox:ON•" if quant_has_speech_btn else ""
pill_box = (398, 16, 656, 36)
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.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)
@@ -431,11 +656,11 @@ def render_all_quadrant_closeups(
for px, py in pts:
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.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.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.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.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):
@@ -445,6 +670,7 @@ def render_all_quadrant_closeups(
bcol = CYAN if dose == 3 else (EMERALD if dose == 2 else (71, 85, 105))
d.rectangle([bx, 234 - bh, bx + 22, 234], fill=bcol)
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
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, 38 + int(280 * min(1.0, bval)), by + 32], fill=bcol)
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)
d.text((360, 52), "PANEL 5: 14 REAL FRED MACRO SERIES", font=f_mono_b, fill=CYAN)
fred_rows = [
("EFFR / SOFR", "4.58% / 4.68%", "+10 bps Repo Spread"),
("M2 - M1 Spread", "$3,365.9B", "$3.37T -> 337 (68th Prime)"),
("M2 Velocity V_M2", "1.405x", "GDP / M2SL Ratio"),
("10Y - EFFR Slope", "+97 bps", "'naintee sevan' = 237"),
("Missing / Closed", "null", "Zero Forward-Fill Policy"),
("EFFR / SOFR", "4.58 / 4.68%", "+10 bps Spread"),
("M2 - M1 Spread", "$3,365.9B", "337 (68th Prime)"),
("M2 Velocity V", "1.405x", "GDP / M2 Ratio"),
("10Y - EFFR", "+97 bps", "AQ('97') = 237"),
("Closed Market", "null", "0 Forward-Fill"),
]
for fi, (fk, fv, fn) in enumerate(fred_rows):
fy = 78 + fi * 30
d.rectangle([360, fy, 642, fy + 25], fill=PLATE, outline=BORDER)
d.text((368, fy + 5), fk, font=f_mono_b, fill=GOLD)
d.text((488, fy + 5), fv, font=f_mono_b, fill=TEXT)
d.text((568, fy + 5), fn[:11], font=f_mono_xs, fill=EMERALD)
rbox = (360, fy, 642, fy + 25)
d.rectangle(list(rbox), fill=PLATE, outline=BORDER)
f_k = _fnt(FONT_MONO_B, 10)
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")
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()
_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)
if quant_has_ui_indicator:
d.rectangle([476, 15, 656, 35], fill=WELL, outline=GOLD)
d.text((482, 18), "▼ UI: #lensSelect", font=f_mono_xs, fill=GOLD)
ind_box = (476, 15, 656, 35)
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)
lenses = ["[Fund Mgr]", "[TierZoo]", "[Board]", "[Sabermetric]"]
for li, ltxt in enumerate(lenses):
lx = 36 + li * 92
d.rectangle([lx, 50, lx + 86, 70], fill=PLATE, outline=GOLD if li == 0 else BORDER)
d.text((lx + 6, 53), ltxt, font=f_mono_xs, fill=GOLD if li == 0 else MUTED)
lenses = [("[Fund Mgr]", 84), ("[TierZoo]", 78), ("[Board]", 66), ("[Sabermetric]", 104)]
lx = 36
for li, (ltxt, lw) in enumerate(lenses):
lbox = (lx, 50, lx + lw, 70)
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 = [
("#1 S1 Cybernetic", "ETI 93", "Tier S+", "NVDA / PLTR / MSFT", GOLD),
("#2 S2 High-Freq", "ETI 90", "Tier S", "COIN / CME / VIRT", CYAN),
("#3 S6 Sovereign", "ETI 87", "Tier S", "BLK / JPM / GS", EMERALD),
("#4 S3 Lithography", "ETI 83", "Tier A", "ASML / TSM / AVGO", ROSE),
("#5 M3 Convergence", "ETI 76", "Tier B", "Cluster 292 / 333", VIOLET),
("#1 S1 Cybernetic", "ETI 93", "Tier S+", "NVDA/PLTR/MSFT", GOLD),
("#2 S2 High-Freq", "ETI 90", "Tier S", "COIN/CME/VIRT", CYAN),
("#3 S6 Sovereign", "ETI 87", "Tier S", "BLK/JPM/GS", EMERALD),
("#4 S3 Lithography", "ETI 83", "Tier A", "ASML/TSM/AVGO", ROSE),
("#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):
ty = 80 + ti * 30
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((196, ty + 5), teti, font=f_mono_b, fill=tcol)
d.text((258, ty + 5), ttier, font=f_mono_xs, fill=GOLD)
d.text((314, ty + 5), tsyms[:12], font=f_mono_xs, fill=MUTED)
d.text((42, ty + 6), tname, font=f_tr_b, fill=TEXT)
d.text((172, ty + 6), teti, font=f_tr_b, fill=tcol)
d.text((228, ty + 6), ttier, font=f_tr, fill=GOLD)
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)
d.text((442, 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)
d.text((440, 52), "NVDA • S3 / S1 APEX", font=f_mono_b, fill=CYAN)
_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)]
for si, (slab, sval, scol) in enumerate(stats):
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.text((612, sy), str(sval), font=f_mono_b, fill=scol)
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")
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()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD)
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)
d.text((38, 52), "STEP-BY-STEP PREREQUISITE TRACK", font=f_mono_b, fill=EMERALD)
levels = [
("Level 1", "Base-36 Place Value & Mod-9", "1-2 hrs"),
("Level 2", "Set Mappings & Pop Variance σ²", "3-5 hrs"),
("Level 3", "Property Graphs & Dot Products", "6-10 hrs"),
("Level 4", "Bayes' Simplex & Z-Combinator", "12+ hrs"),
("Level 1", "Base-36 Place Value & Mod-9"),
("Level 2", "Set Maps & Pop Variance σ²"),
("Level 3", "Property Graphs & Dot Prod"),
("Level 4", "Bayes Simplex & Z-Calculus"),
]
for li, (llab, ldesc, _) in enumerate(levels):
for li, (llab, ldesc) in enumerate(levels):
ly = 76 + li * 30
d.rectangle([38, ly, 330, ly + 25], fill=PLATE, outline=BORDER)
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)
_draw_kv_row(d, (38, ly, 330, ly + 25), llab, ldesc, key_size=11, val_size=10, min_val_x=108)
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)
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)
@@ -561,10 +796,12 @@ def render_all_quadrant_closeups(
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 + 12, 142), val, font=f_mono_b, fill=GOLD)
d.rectangle([370, 178, 642, 228], fill=PLATE, outline=EMERALD)
d.text((382, 186), "21 + 14 + 22 + 30 + 27 = 114", font=f_mono_md, fill=EMERALD)
d.text((382, 206), "Mod-9 Digital Root dr_9(114) = 6 (3::6)", font=f_mono_xs, fill=CYAN)
res_box = (370, 178, 642, 228)
d.rectangle(list(res_box), fill=PLATE, outline=EMERALD)
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")
tracked_draws["quadrant-3-info-science-novice-learn-polyglot.png"] = d
# 7. Quadrant 03 Tab 2: /math/ 2-Col Guile & Z-REPL
im, d = _new_canvas()
@@ -574,8 +811,9 @@ def render_all_quadrant_closeups(
px = 24
for ptxt, pact in pills:
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)
d.text((px + 10, 44), ptxt, font=f_mono_xs, fill=GOLD if pact else MUTED)
pbox = (px, 40, px + pw, 62)
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
_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)
@@ -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, 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")
tracked_draws["quadrant-3-tab-2-math-guile.png"] = d
# 8. Quadrant 03 Tab 3: /math/ 2-Col TypeScript & Rust
im, d = _new_canvas()
@@ -628,6 +867,7 @@ def render_all_quadrant_closeups(
col = EMERALD if ln.startswith("//") else TEXT
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")
tracked_draws["quadrant-3-tab-3-math-ts-rust.png"] = d
# 9. Quadrant 04 Tab 1: /engineering/ DevOps & CLIs
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)
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.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.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)
_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)"
@@ -663,10 +903,9 @@ def render_all_quadrant_closeups(
]
for ci_i, (cname, cmod) in enumerate(clis):
cy_c = 134 + ci_i * 25
d.rectangle([358, cy_c, 644, cy_c + 21], fill=PLATE, outline=BORDER)
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)
_draw_kv_row(d, (358, cy_c, 644, cy_c + 21), cname, cmod, key_size=11, val_size=10, min_val_x=478)
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
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)
d.text((36, 52), f"{eng_c.get('mcp_tools', 20)} TOOLS • 14 RESOURCES • 4 PROMPTS", font=f_mono_b, fill=CYAN)
eps = [
("POST /mcp", "JSON-RPC 2.0 Streamable"),
("POST /mcp", "JSON-RPC Streamable"),
("GET /api/v1/status", "Health + CIDv1 ETag"),
("GET /api/v1/quant/*", "24 Tickers + 14 FRED"),
("GET /api/v1/ipld/cid", "RFC 8785 JCS + SHA-256"),
("ProtectSystem=strict", "EROFS Verified (20/20)"),
("GET /api/v1/ipld/cid", "RFC 8785 + SHA-256"),
("ProtectSystem=strict", "EROFS Verified 20/20"),
]
for ei, (ep, edesc) in enumerate(eps):
ey = 78 + ei * 30
d.rectangle([36, ey, 322, ey + 25], fill=PLATE, outline=BORDER)
d.text((44, ey + 5), ep, font=f_mono_b, fill=GOLD)
d.text((184, ey + 5), edesc[:18], font=f_mono_xs, fill=TEXT)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, EMERALD, chamfer=8, pip=EMERALD)
d.text((360, 52), "LIVE API & ETAG 304 PROBE (#live-smoke-probe)", font=f_mono_b, fill=EMERALD)
d.rectangle([360, 76, 642, 104], fill=(18, 28, 46), outline=EMERALD)
d.text((374, 83), "[ ⚛ Run /api/v1/status & ETag 304 Probe ]", font=f_mono_b, fill=TEXT)
_draw_kv_row(d, (36, ey, 322, ey + 25), ep, edesc, key_size=10, val_size=10, min_val_x=184)
right_e4_box = (346, 42, 656, 240)
_draw_chamfer_box(d, right_e4_box, 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)
btn_e4_box = (360, 76, 642, 104)
d.rectangle(list(btn_e4_box), fill=(18, 28, 46), outline=EMERALD)
_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 = [
("1st Fetch:", "HTTP 200 OK (4.2 ms)"),
("ETag:", "\"baguqeera7x9m...\""),
("2nd Fetch:", "If-None-Match -> HTTP 304 (0.8 ms)"),
("2nd Fetch:", "If-None-Match -> HTTP 304 (0.8ms)"),
("Isolation:", "ReadOnlyIsolationGuard: PASS"),
]
for pi, (pk, pv) in enumerate(probe_lines):
py_p = 114 + pi * 28
d.rectangle([360, py_p, 642, py_p + 23], fill=PLATE, outline=BORDER)
d.text((368, py_p + 4), pk, font=f_mono_b, fill=GOLD)
d.text((456, py_p + 4), pv, font=f_mono_xs, fill=EMERALD if "304" in pv or "PASS" in pv else TEXT)
_draw_kv_row(
d,
(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")
tracked_draws["quadrant-4-tab-2-mcp-etag.png"] = d
# 11. Quadrant 04 Tab 3: /ci/ 4-Gate Pipeline & P1-P6 Smoke
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)
d.text((36, 52), "4-GATE CI PROVISIONER (db.txt)", font=f_mono_b, fill=GOLD)
gates = [
("Gate A: Format", "ASCII Lowercase Clean [PASS]"),
("Gate B: Phonemic", "CMUdict 126k Purity [PASS]"),
("Gate C: AQ Parity", "Base-36 Sum Lock [PASS]"),
("Gate D: Dedup", f"{db_cnt_str} Unique Rows [PASS]"),
("Gate A: Format", "ASCII Lowercase [PASS]"),
("Gate B: Phonemic", "CMUdict 126k [PASS]"),
("Gate C: AQ Parity", "Base-36 Sum Lock [PASS]"),
("Gate D: Dedup", f"{db_cnt_str} Rows [PASS]"),
]
for gi, (gn, gdesc) in enumerate(gates):
gy = 80 + gi * 36
d.rectangle([36, gy, 322, gy + 30], fill=PLATE, outline=BORDER)
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_kv_row(d, (36, gy, 322, gy + 30), gn, gdesc, key_size=10, val_size=10, val_fill=EMERALD, min_val_x=162)
_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)
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"),
("P3: REST API v1", "4/4 Endpoints + ETag"),
("P4: MCP JSON-RPC", f"{eng_c.get('mcp_tools', 20)} Tools + 14 Resources"),
("P5/P6: Assets & PDF", "0 /Helvetica • Brotli-11"),
("P4: MCP JSON-RPC", f"{eng_c.get('mcp_tools', 20)} Tools + 14 Res"),
("P5/P6: Assets & PDF", "0 /Helvetica • Brotli"),
]
for pi, (pn, pdesc) in enumerate(p_gates):
py_g = 78 + pi * 30
d.rectangle([360, py_g, 642, py_g + 25], fill=PLATE, outline=BORDER)
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)
_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)
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")
# 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 {
"ok": True,
"rerendered": True,
"ui_elements_fingerprint_sha256": live_manifest["ui_elements_fingerprint_sha256"],
"cidv1": live_manifest["ipld_dag_json_cidv1"]["/"],
"closeup_count": len(ALL_CLOSEUP_FILENAMES),
"geometry_audit": geometry_audit,
"isolation_receipt": guard.audit_receipt(),
}
@@ -412,9 +412,28 @@ def introspect_engineering_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 = [
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>',
]
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")
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'<a class="btn" href="{rel_prefix}../math/index.html">Math Hub (/math/)</a>')
links.append(_render_polyglot_selector_html())
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
links.append(
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>'
unit_links_html = "\n ".join(links)
return (
f'<div class="hs-subnav-links">\n {unit_links_html}\n </div>\n'
f' {_render_polyglot_selector_html()}'
)
return "\n ".join(links)
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:
enabled = manifest["enabled_subpages"]
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(
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; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.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; }}
h1 {{ font-size: 1.12rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
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; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.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; }}
.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; }}
@@ -538,14 +556,21 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
<div class="container">
<header>
<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>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_hub_html}
@@ -598,6 +623,7 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
</footer>
</div>
<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-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</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:
enabled = manifest["enabled_subpages"]
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"], "../")
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 ""
@@ -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; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.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; }}
h1 {{ font-size: 1.05rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
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; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.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); }}
</style>
</head>
@@ -684,14 +712,21 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
<div class="container">
<header>
<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>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_sub_html}
{secs_html}
@@ -706,6 +741,7 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
</footer>
</div>
<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-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</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:
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>',
]
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>')
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>')
links.append(_render_polyglot_selector_html())
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
links.append(
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>'
unit_links_html = "\n ".join(links)
return (
f'<div class="hs-subnav-links">\n {unit_links_html}\n </div>\n'
f' {_render_polyglot_selector_html()}'
)
return "\n ".join(links)
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:
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"]
inv = manifest["algebraic_invariants"]
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(
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; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.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; }}
h1 {{ font-size: 1.12rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
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; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.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; }}
.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; }}
@@ -437,14 +438,21 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
<div class="container">
<header>
<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>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_hub_html}
@@ -465,6 +473,7 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
</footer>
</div>
<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-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</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:
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"]
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"], "../")
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 ""
@@ -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; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.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; }}
h1 {{ font-size: 1.05rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
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; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.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); }}
</style>
</head>
@@ -518,14 +532,21 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
<div class="container">
<header>
<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>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_sub_html}
{secs_html}
@@ -540,6 +561,7 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
</footer>
</div>
<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-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body>
@@ -0,0 +1,511 @@
#!/usr/bin/env python3
"""
hyperstitionstud_io.publishing.quant_voice (`hs-quant-voice-build`)
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`)
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:
- Strategy 1A (Per-Clip SHA-256 Incremental Cache + Parallel 8-Worker Build + Background `slt` Upgrade):
* Stage 1 (`~1.22s` cold / `< 15ms` warm): Synthesizes any missing or modified scene clips in parallel
using `flite -voice kal16` (`16 kHz` recorded human diphone voice, or `espeak-ng -v en-us+klatt4 -s 160 -p 46`
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
import argparse
import array
import concurrent.futures
import hashlib
import json
import math
import os
import re
import shutil
import struct
import subprocess
import sys
import wave
from pathlib import Path
from typing import Any
from hyperstitionstud_io import __version__ as CURRENT_VERSION
from hyperstitionstud_io.config import load_workspace_config
from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard
from hyperstitionstud_io.phonetics import translate_batch
# 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]] = {
"aa": (730.0, 1090.0, 2440.0, 0.085),
"ae": (660.0, 1720.0, 2410.0, 0.080),
"ah": (640.0, 1190.0, 2390.0, 0.075),
"ao": (570.0, 840.0, 2410.0, 0.085),
"aw": (680.0, 1100.0, 2400.0, 0.095),
"ay": (700.0, 1550.0, 2420.0, 0.095),
"eh": (530.0, 1840.0, 2480.0, 0.075),
"er": (490.0, 1350.0, 1690.0, 0.085),
"ey": (450.0, 2100.0, 2600.0, 0.090),
"ih": (390.0, 1990.0, 2550.0, 0.068),
"iy": (270.0, 2290.0, 3010.0, 0.082),
"oh": (490.0, 910.0, 2350.0, 0.088),
"oo": (300.0, 870.0, 2240.0, 0.085),
"oy": (520.0, 1400.0, 2400.0, 0.095),
"uh": (580.0, 1220.0, 2380.0, 0.068),
"uu": (440.0, 1020.0, 2240.0, 0.070),
"a": (640.0, 1350.0, 2400.0, 0.068),
"e": (510.0, 1880.0, 2480.0, 0.068),
"i": (370.0, 2050.0, 2600.0, 0.068),
"o": (520.0, 950.0, 2380.0, 0.072),
"u": (380.0, 1050.0, 2300.0, 0.070),
"m": (280.0, 950.0, 2200.0, 0.052),
"n": (280.0, 1450.0, 2450.0, 0.050),
"l": (360.0, 1100.0, 2650.0, 0.052),
"r": (420.0, 1300.0, 1680.0, 0.055),
"w": (310.0, 780.0, 2200.0, 0.052),
"y": (290.0, 2150.0, 2900.0, 0.052),
"v": (320.0, 1150.0, 2300.0, 0.045),
"z": (340.0, 1650.0, 2600.0, 0.048),
"b": (300.0, 1000.0, 2250.0, 0.042),
"d": (320.0, 1550.0, 2500.0, 0.042),
"g": (310.0, 1800.0, 2300.0, 0.042),
}
_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]]:
"""
Extract all 25 `(ep01-s1 .. ep05-s5)` scene titles and normalized `speechText` strings from `quant-tutorials.js`.
"""
node_bin = shutil.which("node")
raw_list: list[dict[str, Any]] = []
if node_bin:
proc = subprocess.run(
[
node_bin,
"-e",
f"const QT = require({json.dumps(str(tutorials_js_path.resolve()))});"
"const out = [];"
"QT.episodes.forEach((ep, ei) => {"
" ep.keyframes.forEach((kf, si) => {"
" const clipId = `ep0${ei + 1}-s${si + 1}`;"
" const speech = kf.speechText || QT.cleanTextForSpeech(kf.subtitle, kf.uiElementLabel);"
" out.push({clip_id: clipId, ep_idx: ei, step_idx: si, title: kf.title, speech_text: speech});"
" });"
"});"
"process.stdout.write(JSON.stringify(out));",
],
capture_output=True,
text=True,
check=False,
)
if proc.returncode == 0 and proc.stdout.strip():
raw_list = json.loads(proc.stdout)
if not raw_list:
txt = tutorials_js_path.read_text(encoding="utf-8")
speeches = re.findall(r'speechText:\s*"([^"]+)"', txt)
titles = re.findall(r'title:\s*"(\d+\.\d+\s+[^"]+)"', txt)
for idx, sp in enumerate(speeches[:25]):
ei = idx // 5
si = idx % 5
raw_list.append(
{
"clip_id": f"ep0{ei + 1}-s{si + 1}",
"ep_idx": ei,
"step_idx": si,
"title": titles[idx] if idx < len(titles) else f"Scene {ei + 1}.{si + 1}",
"speech_text": sp,
}
)
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]:
tokens: list[str] = []
i = 0
s = re.sub(r"[^a-z]", "", ing_word.lower())
digraphs = ("sh", "ch", "th", "ng", "zh", "aa", "ae", "ah", "ao", "aw", "ay", "eh", "er", "ey", "ih", "iy", "oh", "oo", "oy", "uh", "uu")
while i < len(s):
if i + 1 < len(s) and s[i : i + 2] in digraphs:
tokens.append(s[i : i + 2])
i += 2
else:
tokens.append(s[i])
i += 1
return tokens or ["a"]
def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_rate: int = 16000) -> dict[str, Any]:
raw_words = re.findall(r"[A-Za-z0-9]+|[.,;:!?]", speech_text)
alpha_words = sorted({w.lower() for w in raw_words if w.isalpha()})
ing_map = translate_batch(alpha_words) if alpha_words else {}
samples = bytearray()
phase_f0 = 0.0
phase_f1 = 0.0
phase_f2 = 0.0
phase_f3 = 0.0
two_pi = 2.0 * math.pi
lfsr = 0xACE1
for w_idx, tok in enumerate(raw_words):
if tok in (".", "!", "?"):
samples.extend(b"\x00\x00" * int(sample_rate * 0.14))
continue
if tok in (",", ";", ":"):
samples.extend(b"\x00\x00" * int(sample_rate * 0.07))
continue
ing_w = ing_map.get(tok.lower(), tok.lower())
phones = _tokenize_ingglish_phonemes(ing_w)[:8]
f0 = 118.0 - 16.0 * ((w_idx % 12) / 12.0)
for p_tok in phones:
if p_tok in _FORMANT_TABLE:
f1, f2, f3, dur_s = _FORMANT_TABLE[p_tok]
n_samp = max(1, int(sample_rate * dur_s * 0.62))
for s_i in range(n_samp):
env = math.sin(math.pi * (s_i / n_samp))
phase_f0 = (phase_f0 + two_pi * f0 / sample_rate) % two_pi
phase_f1 = (phase_f1 + two_pi * f1 / 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
glottal = 0.50 * math.sin(phase_f0) + 0.28 * math.sin(2.0 * phase_f0)
reson = 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)))
samples.extend(struct.pack("<h", val))
elif p_tok in _FRICATIVE_SET:
n_samp = max(1, int(sample_rate * 0.032))
for s_i in range(n_samp):
env = math.sin(math.pi * (s_i / n_samp))
lfsr = ((lfsr >> 1) ^ (-(lfsr & 1) & 0xB400)) & 0xFFFF
noise = ((lfsr / 32768.0) - 1.0) * 0.38
val = int(max(-32000.0, min(32000.0, env * noise * 9000.0)))
samples.extend(struct.pack("<h", val))
samples.extend(b"\x00\x00" * int(sample_rate * 0.022))
out_wav_path.parent.mkdir(parents=True, exist_ok=True)
with wave.open(str(out_wav_path), "wb") as wf:
wf.setnchannels(1)
wf.setsampwidth(2)
wf.setframerate(sample_rate)
wf.writeframes(bytes(samples))
master_wav_broadcast_warmth(out_wav_path)
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(
out_dir: str | Path | None = None,
workspace_root: str | Path | None = None,
force: bool = False,
flite_voice: str = "kal16",
spawn_slt_background_upgrade: bool = False,
) -> dict[str, Any]:
"""
Generate `.gitignore`d `.wav` voice narration clips (`ep01-s1.wav .. ep05-s5.wav`) and
`voice-manifest.json` into `out_dir` (default: `site/quant/audio/`).
Uses per-clip SHA-256 caching and parallel `ThreadPoolExecutor` (`~1.22s` cold / `< 15ms` warm).
"""
cfg = load_workspace_config(workspace_root=workspace_root)
tut_js_p = cfg.core_dir / "site" / "quant" / "quant-tutorials.js"
target_dir = Path(out_dir).resolve() if out_dir else (cfg.core_dir / "site" / "quant" / "audio").resolve()
target_dir.mkdir(parents=True, exist_ok=True)
manifest_p = target_dir / "voice-manifest.json"
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
scenes = extract_scene_speech_scripts(tut_js_p)
flite_bin = shutil.which("flite")
espeak_bin = shutil.which("espeak-ng") or shutil.which("espeak")
engine_name = f"flite_{flite_voice}" if flite_bin else ("espeak_ng_klatt4" if espeak_bin else "klatt_formant_wav")
prev_clips_by_id: dict[str, dict[str, Any]] = {}
if not force and manifest_p.is_file():
try:
prev_man = json.loads(manifest_p.read_text(encoding="utf-8"))
for c_item in prev_man.get("clips") or []:
cid = str(c_item.get("clip_id") or "")
if cid and (target_dir / f"{cid}.wav").is_file():
prev_clips_by_id[cid] = c_item
except Exception:
prev_clips_by_id = {}
scenes_to_build: list[dict[str, Any]] = []
reused_clips: dict[str, dict[str, Any]] = {}
for sc in scenes:
cid = sc["clip_id"]
prev_c = prev_clips_by_id.get(cid)
# Reuse existing clip if text_sha256 matches and it was built with the requested (or higher-tier slt) engine
if (
prev_c
and prev_c.get("text_sha256") == sc["text_sha256"]
and prev_c.get("engine") in (engine_name, "flite_slt")
and (flite_voice != "slt" or prev_c.get("engine") == "flite_slt")
):
reused_clips[cid] = prev_c
else:
scenes_to_build.append(sc)
if scenes_to_build:
max_w = min(8, max(1, os.cpu_count() or 4))
with concurrent.futures.ThreadPoolExecutor(max_workers=max_w) as pool:
built_list = list(
pool.map(
lambda s: _synthesize_single_clip(s, target_dir, flite_bin, espeak_bin, flite_voice=flite_voice),
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 = {
"version": CURRENT_VERSION,
"engine": ordered_clips[0]["engine"] if ordered_clips else engine_name,
"scripts_sha256": scripts_sha,
"clip_count": len(ordered_clips),
"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")
# 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 {
"ok": True,
"rebuilt": len(scenes_to_build) > 0,
"rebuilt_clip_count": len(scenes_to_build),
"engine": man_obj["engine"],
"clip_count": len(ordered_clips),
"slt_background_upgrade_spawned": bg_spawned,
"scripts_sha256": scripts_sha,
"isolation_receipt": guard.audit_receipt(),
}
def main(argv: list[str] | None = None) -> int:
ap = argparse.ArgumentParser(
prog="hs-quant-voice-build",
description="Build untracked deploy-time .wav speech clips for the /quant/ Interactive Guided Tour (0 audio files in Git).",
)
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("--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.")
args = ap.parse_args(argv)
res = build_quant_tour_voice_assets(
out_dir=args.out_dir,
workspace_root=args.workspace_root,
force=args.force,
flite_voice=args.voice,
spawn_slt_background_upgrade=args.upgrade_slt_background,
)
print(json.dumps(res, indent=2))
return 0 if res.get("ok") else 1
if __name__ == "__main__":
raise SystemExit(main())
@@ -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`
qs_idx = existing.find("## Quick Start")
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}
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()}"""
@@ -475,7 +476,8 @@ def sync_all_repo_readmes(
PRE_COMMIT_HOOK_SCRIPT = """#!/usr/bin/env bash
# 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
REPO_ROOT="$(git rev-parse --show-toplevel)"
@@ -485,6 +487,11 @@ CORE_SRC="${WS_ROOT}/hyperstitionstudio-core/src"
if [[ -d "${CORE_SRC}" ]]; then
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
if [[ -d "${WS_ROOT}/hyperstitionstudio-core/site/assets/closeups" ]] && [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
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():
continue
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",)),
):
hook_path = hooks_dir / h_name
+1 -1
View File
@@ -684,7 +684,7 @@ def build_financial_quant_harvest(
payload: dict[str, Any] = {
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
"version": "2.12.0",
"version": "2.17.0",
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"harvest_mode": harvest_mode,
"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'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}"),
],
),
(
@@ -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'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}"),
],
),
(
@@ -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'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}"),
],
),
(
@@ -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'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}"),
],
),
(
core / "site" / "gallery" / "index.html",
[
(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'(?: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'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})"),
],
),
(
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",
[
@@ -435,6 +449,16 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
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'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:
repl = repl_tmpl.replace("{V}", v)
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))
elif updated != orig:
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")
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
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)
if check_only and not readme_res["all_in_sync"]:
mismatched_files.extend(readme_res["mismatched_readmes"])
+115
View File
@@ -1266,6 +1266,121 @@ def test_ipld_quant_and_mcp_server() -> None:
)
assert node_quant_tut_test.returncode == 0, f"Node QuantTutorials check failed ({node_quant_tut_test.returncode}): {node_quant_tut_test.stderr}"
# Verify Plan #57 (Strategies 1A, 2A, 3A): Zero-Git-Audio deploy-time WAV voice compiler (quant_voice.py) & 0 audio files in Git
from hyperstitionstud_io.publishing.quant_voice import build_quant_tour_voice_assets
tmp_voice_dir = tmp_path / "quant_audio"
v_res = build_quant_tour_voice_assets(out_dir=tmp_voice_dir, workspace_root=cfg.workspace_root)
assert v_res["ok"] is True and v_res["clip_count"] == 25
assert (tmp_voice_dir / "ep01-s1.wav").is_file() and (tmp_voice_dir / "ep01-s1.wav").read_bytes()[:4] == b"RIFF"
assert (tmp_voice_dir / "ep04-s1.wav").is_file() and (tmp_voice_dir / "voice-manifest.json").is_file()
git_gitignore = (cfg.core_dir / ".gitignore").read_text(encoding="utf-8")
assert "site/quant/audio/" in git_gitignore, "site/quant/audio/ must be in .gitignore so 0 audio files enter Git"
assert "__hsActiveUtterance" in quant_tut_txt and "playDeployTimeWavOrFormant" in quant_tut_txt
# Verify Plan #56: Fedora 41 OpenRouter Exegesis Synthesizer, Pre-Solved 333/666/777 Equation Engine & Push Worker
import importlib.util
synth_script_p = cfg.archive_dir / "ingglish-aq-archive" / "scripts" / "synthesize_news_dossier_openrouter.py"
assert synth_script_p.is_file()
spec_s = importlib.util.spec_from_file_location("synthesize_news_dossier_openrouter", synth_script_p)
assert spec_s is not None and spec_s.loader is not None
mod_s = importlib.util.module_from_spec(spec_s)
spec_s.loader.exec_module(mod_s)
sample_harvest = {
"temporal_metadata": {"target_date_utc": "2026-12-01"},
"counts": {"total_headlines": 2, "cross_story_collision_classes": 1, "isometric_locks": 1},
"headlines": [
{"headline": "Nvidia unveils next-generation Blackwell wafer cluster", "eng_aq": 812, "ing_aq": 834},
{"headline": "Spanish election coalition talks continue in Madrid", "eng_aq": 745, "ing_aq": 761},
],
"entities": [
{"eng": "Nvidia", "ing": "envideea", "eng_aq": 115, "ing_aq": 137, "story": "Silicon Wire"},
{"eng": "Spanish", "ing": "spanish", "eng_aq": 149, "ing_aq": 149, "story": "Europe Wire"},
],
"isometric_locks": [{"eng": "Spanish", "ing": "spanish", "eng_aq": 149, "ing_aq": 149}],
"cross_story_collisions": {},
}
solved_30 = mod_s.solve_cluster_equations_333_666_777(sample_harvest)
assert len(solved_30["eq_333"]) == 10 and len(solved_30["eq_666"]) == 10 and len(solved_30["eq_777"]) == 10
tmp_arc_d = tmp_path / "test_exegesis_arc"
tmp_arc_d.mkdir(parents=True, exist_ok=True)
(tmp_arc_d / "00-index-and-methodology.md").write_text("# Index\n\n### Category D:\n", encoding="utf-8")
tmp_harv_f = tmp_path / "sample-harvest.json"
tmp_harv_f.write_text(json.dumps(sample_harvest), encoding="utf-8")
syn_out = mod_s.synthesize_news_dossier(
harvest_path=tmp_harv_f,
archive_dir=tmp_arc_d,
api_key="",
allow_deterministic_fallback=True,
)
assert syn_out["ok"] is True and syn_out["equations_verified_count"] == 30 and syn_out["aq_mismatches"] == 0
assert Path(syn_out["dossier_path"]).is_file()
for pkg_f in (
cfg.archive_dir / "packaging" / "build-fedora41-rpm.sh",
cfg.archive_dir / "packaging" / "bundle" / "scripts" / "run_exegesis_and_push_fedora41.sh",
cfg.archive_dir / "packaging" / "rpm" / "ingglish-isopsephic-exegesis.spec",
cfg.archive_dir / "packaging" / "rpm" / "ingglish-exegesis.sysconfig",
):
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")
# 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
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)
# Copy to your parent workspace folder: cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
schema_version = "2.12.0"
schema_version = "2.17.0"
namespace_urn = "urn:io:hyperstitionstud"
[paths]