diff --git a/README.md b/README.md index 69f5d02..93d561d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.7.0`) +# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.8.0`) -> **Gitea Commit & Release Telemetry (`v2.7.0` • Namespace `urn:io:hyperstitionstud`)** +> **Gitea Commit & Release Telemetry (`v2.8.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 → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) -> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.7.0 release state across 48 tracked module/artifact surface(s) -> - **Touched Files / Surfaces:** `deploy/run-vps-data-production.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`, `site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png` (+40 more) -> - **Live Verified Ecosystem Metrics (`v2.7.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.8.0 release state across 48 tracked module/artifact surface(s) +> - **Touched Files / Surfaces:** `deploy/Caddyfile`, `deploy/run-vps-archive-rotation.sh`, `deploy/sync-vps-repos.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py`, `site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png` (+40 more) +> - **Live Verified Ecosystem Metrics (`v2.8.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 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.7.0`) +## Key Architecture & Capabilities (`v2.8.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`. diff --git a/deploy/Caddyfile b/deploy/Caddyfile index fdacd5f..a19fc12 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -12,6 +12,24 @@ www.hyperstitionstud.io { hyperstitionstud.io { encode zstd gzip + # Zero-PII Route Counter Log (Strategy 3A — remote_ip, client_ip, Cookie, User-Agent, and Referer deleted) + log { + output file /var/log/caddy/hyperstition-access.json { + roll_size 50MiB + roll_keep 3 + } + format filter { + wrap json + fields { + request>remote_ip delete + request>client_ip delete + request>headers>Cookie delete + request>headers>User-Agent delete + request>headers>Referer delete + } + } + } + header { Alt-Svc "h3=\":443\"; ma=2592000" Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" diff --git a/deploy/run-vps-archive-rotation.sh b/deploy/run-vps-archive-rotation.sh index 5bd7b9f..62928b9 100755 --- a/deploy/run-vps-archive-rotation.sh +++ b/deploy/run-vps-archive-rotation.sh @@ -56,8 +56,9 @@ else fi echo "${ROTATE_JSON}" -echo "[2/3] Running Quiescent SQLite Telemetry Logrotate Check (100M threshold)..." +echo "[2/3] Ingesting Zero-IP Caddy Route Counts (Strategy 3A) & Running Quiescent SQLite Telemetry Logrotate Check (100M threshold)..." if [[ "${DRY_RUN}" -eq 0 ]]; then + python3 -m hyperstitionstud_io.db.sqlite_meta --ingest-caddy-route-counts python3 -m hyperstitionstud_io.db.sqlite_meta --compress-archive --truncate-quiescent --max-mb 100 fi diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index c9681ba..8f1bed0 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -198,6 +198,12 @@ if [[ "${DO_CADDY}" -eq 1 ]]; then if [[ -w "/var/lib" ]] || [[ -n "${SUDO}" ]]; then run_checked "mkdir /var/lib/hyperstitionstud.io" ${SUDO} mkdir -p "/var/lib/hyperstitionstud.io" fi + if [[ -w "/var/log" ]] || [[ -n "${SUDO}" ]]; then + run_checked "mkdir /var/log/caddy" ${SUDO} mkdir -p "/var/log/caddy" + if getent passwd caddy >&2; then + ${SUDO} chown -R caddy:caddy "/var/log/caddy" || true + fi + fi SRC_LOGROTATE="${DEPLOY_DIR}/logrotate.d/hyperstition-sqlite-meta" DST_LOGROTATE="/etc/logrotate.d/hyperstition-sqlite-meta" if [[ -f "${SRC_LOGROTATE}" ]] && [[ -d "/etc/logrotate.d" ]] && { [[ -w "/etc/logrotate.d" ]] || [[ -n "${SUDO}" ]]; }; then diff --git a/package.json b/package.json index 92aa48d..d92042c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/workspace-core", - "version": "2.7.0", + "version": "2.8.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", diff --git a/packages-js/ciphers-aq/package.json b/packages-js/ciphers-aq/package.json index e2b6805..c4a269d 100644 --- a/packages-js/ciphers-aq/package.json +++ b/packages-js/ciphers-aq/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/ciphers-aq", - "version": "2.7.0", + "version": "2.8.0", "type": "module", "main": "index.js", "license": "MIT" diff --git a/pyproject.toml b/pyproject.toml index 6c3f447..d112dcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hyperstitionstudio-core" -version = "2.7.0" +version = "2.8.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" diff --git a/scripts/build_gallery_manifest.py b/scripts/build_gallery_manifest.py index 1c4431d..70615aa 100755 --- a/scripts/build_gallery_manifest.py +++ b/scripts/build_gallery_manifest.py @@ -144,8 +144,8 @@ def main() -> int: }) manifest = { - "version": "2.7.0", - "namespace_urn": "urn:io:hyperstitionstud:gallery:2.7.0", + "version": "2.8.0", + "namespace_urn": "urn:io:hyperstitionstud:gallery:2.8.0", "total_items": len(items), "items": items, } diff --git a/site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png b/site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png index fe4ff87..cc661d4 100644 Binary files a/site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png and b/site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png differ diff --git a/site/assets/closeups/quadrant-2-esoteric-finance-quant.png b/site/assets/closeups/quadrant-2-esoteric-finance-quant.png index 66b947f..a90538d 100644 Binary files a/site/assets/closeups/quadrant-2-esoteric-finance-quant.png and b/site/assets/closeups/quadrant-2-esoteric-finance-quant.png differ diff --git a/site/assets/closeups/quadrant-3-info-science-novice-learn-polyglot.png b/site/assets/closeups/quadrant-3-info-science-novice-learn-polyglot.png index f55dd73..c775c4f 100644 Binary files a/site/assets/closeups/quadrant-3-info-science-novice-learn-polyglot.png and b/site/assets/closeups/quadrant-3-info-science-novice-learn-polyglot.png differ diff --git a/site/assets/closeups/quadrant-4-operators-deployment-vps.png b/site/assets/closeups/quadrant-4-operators-deployment-vps.png index 6122734..b4e4329 100644 Binary files a/site/assets/closeups/quadrant-4-operators-deployment-vps.png and b/site/assets/closeups/quadrant-4-operators-deployment-vps.png differ diff --git a/site/assets/hs-matrix-coderain.js b/site/assets/hs-matrix-coderain.js index a53927f..abf4ef2 100644 --- a/site/assets/hs-matrix-coderain.js +++ b/site/assets/hs-matrix-coderain.js @@ -308,6 +308,47 @@ applyMode(currentMode); + // Strategy 3B, 4B & 5B: Zero-PII Conditional ETag Surface, Donate-From, Donate-Copy & Export-Action Handshake + try { + if (window.location && (window.location.protocol === "http:" || window.location.protocol === "https:") && typeof window.fetch === "function") { + var pathStr = window.location.pathname || "/"; + var surfSlug = "home"; + if (pathStr.indexOf("/calc") === 0) surfSlug = "calc"; + else if (pathStr.indexOf("/quant") === 0) surfSlug = "quant"; + else if (pathStr.indexOf("/graph") === 0) surfSlug = "graph"; + else if (pathStr.indexOf("/learn") === 0) surfSlug = "learn"; + else if (pathStr.indexOf("/engineering") === 0) surfSlug = "engineering"; + else if (pathStr.indexOf("/math") === 0) surfSlug = "math"; + else if (pathStr.indexOf("/donate") === 0) surfSlug = "donate"; + + var qParts = ["surface=" + encodeURIComponent(surfSlug)]; + if (surfSlug === "donate" && window.location.search) { + var mFrom = window.location.search.match(/[?&]from=([a-z]+)/i); + if (mFrom && mFrom[1]) qParts.push("donate_from=" + encodeURIComponent(mFrom[1].toLowerCase())); + } + window.fetch("/api/v1/status?" + qParts.join("&"), { method: "GET" }).catch(function () {}); + + var exportBindings = [ + ["#btnDownloadState", "learn_state_json"], + ["#exportCsvBtn", "quant_csv"], + ["#exportJsonBtn", "quant_json"], + ["#openTradingViewBtn", "quant_tradingview"], + ["#panel3TvBtn", "quant_tradingview"], + ["#exportPngBtn", "graph_png"] + ]; + exportBindings.forEach(function (pair) { + document.querySelectorAll(pair[0]).forEach(function (el) { + if (!el.__hsExportBound) { + el.__hsExportBound = true; + el.addEventListener("click", function () { + window.fetch("/api/v1/status?export_action=" + pair[1], { method: "GET" }).catch(function () {}); + }); + } + }); + }); + } + } catch (_e) {} + return { applyMode: applyMode, cycleMode: cycleMode, diff --git a/site/donate/index.html b/site/donate/index.html index 2d92b1a..537f4f8 100644 --- a/site/donate/index.html +++ b/site/donate/index.html @@ -4,7 +4,7 @@
Strictly Periodic Telemetry (21:30 UTC US Closing Bell × 00:00 UTC News-Wire Dossiers • 24 Watchlist Instruments • 14 FRED Macro Series) • Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.7.0)
+Strictly Periodic Telemetry (21:30 UTC US Closing Bell × 00:00 UTC News-Wire Dossiers • 24 Watchlist Instruments • 14 FRED Macro Series) • Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.8.0)