Compare commits

...
11 Commits
Author SHA1 Message Date
Hermes Agent 17385fd89f Release v2.8.0: Authentic 2x2 homepage UI closeups and zero-synthetic-data market research & zero-PII telemetry suite (Strategies 1A/1B/2A/2B/2C/3A/3B/4B/4C/5A/5B) 2026-12-01 06:27:22 +00:00
Hermes Agent 7844e6da2f Release v2.7.0: Subtle cybernetic code rain, micro-sigil accents, 2x2 persona UI-closeup homepage showcase, v2.4.0 donate pill single-source-of-truth, and per-commit root README & commit-msg version parity 2026-12-01 05:17:52 +00:00
Hermes Agent 4700965731 Release v2.3.3: Implement PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS 2026-12-01 03:15:56 +00:00
Hermes Agent 5d55e646f3 Release v2.4.0: Complete PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC (HTTP ETag + If-None-Match 304 Not Modified & full SQLite catalog query modes) 2026-12-01 03:12:51 +00:00
Hermes Agent 99d1118c80 Release v2.3.1: Fix polyglot TS/Rust REPL general AST evaluation, cross-language input sync, and HTML escaping in cartridges 2026-12-01 02:45:20 +00:00
Hermes Agent 9f312880bb Author PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES and normalize untracked highlights path serialization 2026-12-01 02:32:49 +00:00
Hermes Agent df832b2aa5 Release v2.3.0: Eliminate container host paths, add 4-Ring hardened Guile/TS/Rust polyglot lens & 5-state selector, add hs-highlights (untracked output), and expose all 20 MCP/Chatbot REST tools & 14 URN resources 2026-12-01 02:27:19 +00:00
Hermes Agent 1287e52b1f Release v2.2.2: Fix Fedora 41 ReportLab ps2tt('dejavu-bold') font family mapping and add bundled Vera.ttf fallback + PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE 2026-12-01 01:15:36 +00:00
Hermes Agent 73eed52a43 Release v2.2.1: Validate pdf_path directory before importing optional reportlab/pypdf in compile_markdown_to_pdf and remove unused pdfplumber dependency 2026-12-01 01:07:58 +00:00
Hermes Agent d9f4413847 Release v2.2.0: EROFS ProtectSystem=strict test harness (34x stats-card fast-path), homepage /engineering/ & /math/ navigation wiring, and additive Guile Scheme lens + offline Z-combinator REPL 2026-12-01 01:02:43 +00:00
Hermes Agent 40be2ac8d3 Release v2.1.1: Fix ProtectSystem=strict read-only filesystem handling in hs_generate_ticker_stats_card and hyperstition-mcp.service 2026-12-01 00:34:27 +00:00
36 changed files with 1474 additions and 902 deletions

No files matched your search

@@ -4,7 +4,7 @@
- **Standalone Knowledge Graph Repository:** `/workspace/encyclopedia-knowledge-graph` (`branch: main`, `tag: v1.0.0`)
- **Upstream Read-Only Sibling Repository:** `/workspace/technocapital-singularity-zoology` (`v1.7.0`)
- **Knowledge Graph Compiler CLI:** `/workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py`
- **Interactive Browser Workbench:** `/workspace/encyclopedia-knowledge-graph/index.html` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/index.html`)
- **Interactive Browser Workbench:** `/workspace/encyclopedia-knowledge-graph/index.html` (`https://hyperstitionstud.io/graph/index.html`)
- **Strict Isolation Standard:** Read-Only Upstream Ingestion (`0` Graph/Visualization Concepts Permitted in `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json` or `encyclopedia/`)
---
@@ -124,7 +124,7 @@ python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowl
Because `index.html` loads `window.ENCYCLOPEDIA_GRAPH_DATA` synchronously from the co-located `graph-data.js` bundle, operators can open the workbench in two ways:
1. **Direct Local `file://` Open (Zero Server Required):**
Open `file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/index.html` directly in Firefox, Chromium, or Brave.
Open `https://hyperstitionstud.io/graph/index.html` directly in Firefox, Chromium, or Brave.
2. **Local HTTP Server (Serving `/workspace` Parent Directory):**
```bash
python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace
Binary file not shown.
+21 -57
View File
@@ -1,78 +1,42 @@
# `encyclopedia-knowledge-graph` (`v2.0.0`)
# `encyclopedia-knowledge-graph` (`v2.8.0` — `https://hyperstitionstud.io/graph/`)
Standalone open-source interactive knowledge graph workbench, multi-format graph compiler (`JSON`, `GraphML`, `GEXF`, `Obsidian JSON Canvas`), visual atlas renderer, and operator's manual for the **Encyclopedia of Technocapital Singularity Zoology**.
<!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.8.0` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive &rarr; [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.8.0 release state across 11 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `docs/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.md`, `docs/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.pdf`, `docs/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md`, `docs/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.pdf`, `docs/archive/README.md`, `docs/archive/archive-manifest.json`, `docs/archive/completed-plans-archive.tar.gz`, `docs/cross-repo-dependency-and-audit-flow-diagram.html` (+3 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
<!-- HS-COMMIT-STATUS:END -->
Standalone open-source interactive knowledge graph workbench, multi-format graph compiler (`JSON`, `GraphML`, `GEXF`, `Obsidian JSON Canvas`), visual atlas renderer, architectural plan ledger, and operator's manual for the **Encyclopedia of Technocapital Singularity Zoology**.
Powered by `hyperstitionstud_io.*` (`urn:io:hyperstitionstud:ns:kg:1.0`). Ingests `technocapital-singularity-zoology` strictly in **read-only mode** with cryptographic pre/post `SHA-256` isolation verification so zero knowledge-graph or visualization concepts ever enter the upstream glossary or encyclopedia.
---
## 5-Minute New-User Onboarding (Public HTTP Clone into Any Directory)
## 5-Minute Verification & Graph Build
```bash
# 1. Create a parent workspace folder anywhere on your machine
mkdir -p ~/hyperstition-workspace && cd ~/hyperstition-workspace
# 2. Clone the peer repositories over public HTTPS (no SSH key required)
git clone https://git.libre.audio/seasharp/hyperstitionstudio-core.git
git clone https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git
git clone https://git.libre.audio/seasharp/technocapital-singularity-zoology.git
git clone https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git
git clone https://git.libre.audio/seasharp/haiperdohp-jemaytreeah.git
git clone -b feat/ingglish-aq-corpus https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git
# 2b. Supply the 3 untracked runtime files listed in haiperdohp-jemaytreeah/.gitignore (config.js, db.json, db_lite.json)
cp haiperdohp-jemaytreeah/config.default.js haiperdohp-jemaytreeah/config.js
(cd haiperdohp-jemaytreeah && python3 tools/generate_db_json.py db.txt db.json)
# 3. Create & activate a local Python virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r hyperstitionstudio-core/requirements.txt
pip install --no-deps -e ./hyperstitionstudio-core
# 4. Copy the location-independent workspace configuration and run the health check
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
hs-doctor
# 5. Rebuild or verify all 6 Knowledge Graph CI gates (location-independent, zero flags needed)
# Rebuild or verify all 6 Knowledge Graph CI gates (location-independent, zero flags needed)
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
# Run cold-storage archive rotation check for completed architectural plans
hs-archive-rotate
```
---
## Dual Deployment Modes (`Scenario A: file://` Offline Browser vs. `Scenario B: http://` Server)
### Scenario A — 100% Offline In-Browser Application (Zero Server, `file://`)
Open `encyclopedia-knowledge-graph/index.html` directly from your file manager or browser (`xdg-open encyclopedia-knowledge-graph/index.html` on Linux, `open encyclopedia-knowledge-graph/index.html` on macOS). All `388` nodes, `1,282` edges, `4` spatial layout modes, ego-network isolator, PNG canvas export, and `../technocapital-singularity-zoology/encyclopedia/*.pdf` links work offline via `graph-data.js`.
### Scenario B — Static HTTP Server Hosting (`http://`)
- **Option B1 (Serve Parent Workspace Directory so `../technocapital-singularity-zoology/encyclopedia/*.pdf` Resolves):**
```bash
python3 -m http.server 8090 --bind 127.0.0.1 --directory .
# Open: http://127.0.0.1:8090/encyclopedia-knowledge-graph/index.html
```
- **Option B2 (Serve `encyclopedia-knowledge-graph` as a Single Standalone Web Root):**
```bash
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --bundle-encyclopedia
python3 -m http.server 8090 --bind 127.0.0.1 --directory ./encyclopedia-knowledge-graph
# Open: http://127.0.0.1:8090/index.html
```
---
## Repository Structure (Current Operational Files & Docs)
## Repository Structure (`v2.8.0`)
| Path | Description |
| :--- | :--- |
| `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.{md,pdf}` | Step-by-step Operator's Manual (`7` pages PDF) |
| `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.{md,pdf}` | Step-by-step Operator's Manual (`7` pages PDF) at `https://hyperstitionstud.io/graph/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf` |
| `scripts/build_encyclopedia_knowledge_graph.py` | Location-independent graph compiler, 6-gate verifier, and CLI ego-network query engine |
| `index.html` & `graph-data.js` | Offline-capable interactive dark-mode HTML5/Canvas workbench (`388` nodes, `1,282` deduplicated edges) |
| `encyclopedia-graph.{json,graphml,gexf}` & `encyclopedia.canvas` | Open-source graph interchange exports (`xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"`) |
| `atlas-mode{1,2,3}.png` | High-resolution (`1600x1060`) visual atlas boards (Trophic Food-Web, Concentric ETI Radar `S+ -> D Periphery`, Bipartite `Gen 0 -> Gen 1` Funnel) |
| `docs/MILESTONE-V2-RELEASE-WINS-AND-LESSONS-LEARNED.{md,pdf}` | `v2.0.0` Milestone Release Report: Wins Achieved, 6-Repo Architecture & 8 Technical Lessons Codified |
| `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` | Unified Git Operator (`git.libre.audio`) & Linode/Akamai VPS per-repo deployment guide (`v2.0.0`) |
| `docs/cross-repo-dependency-and-audit-flow-diagram.{html,png,pdf,md}` | Visual Dependency Flow Diagram & 3-Stage `BUILD -> TEST -> STAGE_COMMIT` Audit Pipeline |
| `docs/specification-concentric-eti-tier-ring-radar-d-periphery.{md,pdf}` | Geometric & ecological specification of Mode 2 Concentric ETI Tier-Ring Radar (`S+` Center to `D` Periphery) |
| `docs/archive/` | Historical `v1.x` pre-implementation plans and iterative design records (`docs/archive/README.md`) |
| `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` | Two-Script Git Operator (`git.libre.audio`) & Linode/Akamai VPS deployment guide (`v2.8.0`) |
| `docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` | Operator's Manual for zero-token VPS timers vs. LLM-token exegesis pipelines |
| `docs/cross-repo-dependency-and-audit-flow-diagram.{html,png,pdf,md}` & `docs/periodic-harvest-cicd-to-vps-flow-diagram.png` | Visual Dependency & Periodic Harvest CI/CD Flow Diagrams |
| `docs/archive/completed-plans-archive.tar.gz` & `docs/archive/archive-manifest.json` | Cold-rotated gzipped tar archive of completed architectural plans (`hs-archive-rotate`) |
@@ -40,7 +40,7 @@
| **2** | `ModuleNotFoundError: No module named 'io.hyperstitionstud'; 'io' is not a package`. | `io` is a built-in C stdlib module in Python (`sys.builtin_module_names`), which cannot act as a PEP 420 namespace package root. | Named the top-level Python package `hyperstitionstud_io` (`from hyperstitionstud_io.ciphers import ...`) while retaining `urn:io:hyperstitionstud:*` for XML/JSON URNs. |
| **3** | Citation URL resolution risked coupling to `git remote` subprocesses or fabricating dead global namespace URLs. | Mixing code/schema identity (`hyperstitionstud.io`) with artifact hosting location. | Restricted `resolve_citation_target()` in `hyperstitionstud_io.ci.citation_sources` strictly to `[citations.path_mounts]` in local `workspace.toml`, falling back to the verified local filesystem path (`0%` VCS subprocesses). |
| **4** | Outside `/workspace`, `build_encyclopedia_knowledge_graph.py` dropped all `281` `IN_VOLUME` edges. | `encyclopedia-manifest.json` stores `/workspace/...` in `vol["md_path"]`; checking `Path(vol["md_path"]).exists()` failed in other directories. | Resolved volume Markdown files relative to `upstream_repo / "encyclopedia" / div_id / f"{slug}.md"` first, keeping `encyclopedia-manifest.json`'s locked SHA-256 untouched. |
| **5** | `push-all-to-git-libre-audio.sh` failed under host `zsh`/`sh` with `No module named 'hyperstitionstud_io'`. | `${BASH_SOURCE[0]}` is unset in `zsh`/`sh`, and `PYTHONPATH` had no exported default value. | Used `${BASH_SOURCE[0]:-$0}` with explicit `/home/m00t/hermes/workspace` fallback and `export PYTHONPATH="${WORKSPACE_DIR}/hyperstitionstudio-core/src..."`. |
| **5** | `push-all-to-git-libre-audio.sh` failed under host `zsh`/`sh` with `No module named 'hyperstitionstud_io'`. | `${BASH_SOURCE[0]}` is unset in `zsh`/`sh`, and `PYTHONPATH` had no exported default value. | Used `${BASH_SOURCE[0]:-$0}` with explicit `/workspace` fallback and `export PYTHONPATH="${WORKSPACE_DIR}/hyperstitionstudio-core/src..."`. |
| **6** | `hs-doctor` failed on the VPS in Step 5 (`Verify environment & all 6 Knowledge Graph CI gates`). | In `src/hyperstitionstud_io/config/__init__.py`, `Path(__file__).resolve().parents[2]` stopped at `hyperstitionstudio-core/src` instead of `parents[3]` (`hyperstitionstudio-core`), so `WORKSPACE_ROOT` missed `/srv/hyperstitionstud.io/repos/workspace.toml`. | Updated `CORE_REPO_ROOT` to `parents[3]` and added `Path.cwd() / "workspace.toml"` to the configuration search candidates. |
| **7** | `haiperdohp-jemaytreeah` fresh clones lacked `config.js`, `db.json`, and `db_lite.json` (`404` on `/calc/*`). | `haiperdohp-jemaytreeah/.gitignore` excludes those 3 files, and `generate_db_json.py` requires explicit `db.txt db.json` arguments. | Added explicit Step 2b / Step 5 instructions and automated `cp config.default.js config.js` + `python3 tools/generate_db_json.py db.txt db.json` inside `deploy/sync-vps-repos.sh`. |
| **8** | `sudo apt update` on Debian VPS reported `NO_PUBKEY ABA1F9B8875A6661` on Caddy's Cloudsmith repo. | Cloudsmith rotated the GPG signing key for `dl.cloudsmith.io/public/caddy/stable`. | Added the GPG keyring refresh (`curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' \| sudo gpg --dearmor --yes -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg`) directly into Step 3 of the VPS deployment guide. |
@@ -0,0 +1,67 @@
# Plan: Ecosystem-Wide Economization Evaluation & Concrete Optimization Vectors (`Vectors E1–E7`) Across CPU, LLM Tokens, Disk/Web Footprint & Operator Time (`v2.2.2`)
- **Document ID:** `PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS` (`v2.2.2`)
- **Roadmap Status:** **DEFERRED (Long-Term Inactive — Preserved for Future Reference)**
- **Core Conservation Constraint (What Must NEVER Be Economized Away):**
1. **Zero-Synthetic-Data Mandate:** Never trade away observational honesty (`None`/`null` -> `"No data available"`).
2. **Gematria-Pipeline Richness Invariant:** Never prune or compress live gematria, phonemic, zoological, or knowledge-graph corpora (`146` dossiers, `282` glossary entries, `190` bilingual specimens, `388` KG nodes, `1,282` edges, `4,943+` offline CMUdict mappings).
3. **Two-Script Manual Operator Deployment Invariant:** `/workspace/push-all-to-git-libre-audio.sh` and `deploy/sync-vps-repos.sh` remain the only two manual deployment steps.
- **Target Modules & Scripts:**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/phonetics/{__init__.py,cmudict_fallback.json}` (`Vector E1`)
- `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` (`Vector E2`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/daily_brief.py` (`Vector E3`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py` (`Vector E4`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/version_sync.py` (`Vector E5`)
- `/workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py` (`Vector E6`)
---
## 1. Synthesis of Prior Economizations Already Achieved in Session History (`v2.0.25–v2.2.2`)
| Prior Economization Milestone | Primary Dimension Saved | Measured Impact |
| :--- | :--- | :--- |
| **1. `T_math/T_char/T_elem/T_box` PDF Sanitizer (`pdf_compiler.py`)** | LLM Token Spend | **`-11,488` BPE tokens** saved across `38` docs (`0` LLM tokens per PDF compile) |
| **2. Cold-Storage Plan Archive Rotator (`hs-archive-rotate`)** | Disk / `rglob` / Token Spend | **`76` completed `.md`/`.pdf` plan files (`4.30 MB`)** compressed into `completed-plans-archive.tar.gz` (`3.59 MB`) and excluded from stylistic PDF refreshes |
| **3. Decommissioning Non-Exegesis `localhost` Cronjobs (`29c871eb6b78` & `7effa9679803`)** | Metered LLM Cron Turns | **`-12` LLM agent cron turns/week (`-63%`)** by migrating deterministic harvests to VPS `systemd` timers (`0` LLM tokens) |
| **4. Programmatic SemVer Heuristics (`hs-sync-version --auto-bump`)** | LLM & Operator Time | **`0` LLM tokens** and **`< 80 ms`** to classify `noop / patch / minor / major` from Git & archive deltas |
| **5. Pre-Compiled `quant-timeseries.json` Fast-Path in `quant/cards.py`** | CPU Time (API & Tests) | **`34x` speedup (`1,186 ms -> ~35 ms` per card)**, saving `~3.4 s` per test suite run |
| **6. Single Introspective `ProtectSystem=strict` (`EROFS`) Harness (`ci/erofs_harness.py`)** | LLM Maintenance & Operator Time | Automatically sweeps all `MCP_TOOLS_SCHEMA` tools under simulated `EROFS` with **`0` future test-authoring tokens** |
---
## 2. Empirical Profiling of Current Bottlenecks (`v2.2.2` Baseline Telemetry)
Profiling `tests/test_core_suite.py` (`6,653.8 ms` total) and repository artifact sizes across `/workspace` reveals exactly where the remaining CPU time, disk/Git churn, and payload bytes are concentrated:
- **Test Suite CPU Breakdown:**
- Suites `1–6` combined (`test_offline_urn_namespaces` through `test_doctor_all_checks_pass`): **`85.3 ms` (`1.3%`)**
- Suite `7` (`test_ipld_quant_and_mcp_server`): **`6,568.5 ms` (`98.7%`)**, dominated by:
- `build_quant_timeseries_bundle()` (called 2x in Suite 7): **`1,147.2 ms` + `1,107.8 ms` = `2,255.0 ms`**
- `run_introspective_erofs_suite()`: **`780.2 ms`**
- `build_catalog_sqlite_db()`: **`442.0 ms`**
- `render_periodic_harvest_cicd_flow_diagram_png()`: **`295.9 ms`**
- **Root Cause of the `1,147 ms` `build_quant_timeseries_bundle()` Bottleneck:**
- Out of `~350` English strings passed to `translate_batch()` in `timeseries.py`, `332` hit `cmudict_fallback.json` in `0.2 ms`, while **18 static ticker abbreviations** (`ANTHR`, `AVGO`, `BLK`, `BTC`, `CEG`, `ETH`, `GOOGL`, `HG`, `LLY`, `LMT`, `MSFT`, `NVDA`, `ORCL`, `PLTR`, `RTX`, `SOL`, `TNX`, `TSM`) are absent from `cmudict_fallback.json` (`4,943` entries), causing `translate_batch()` to spawn a cold `node --input-type=module` subprocess (`~1,100 ms`) on every single call without memoizing the result in `_FALLBACK_CACHE`!
---
## 3. Seven Concrete Project-Wide Economization Vectors (`Vectors E1–E7`)
| Vector | Target Module / Script | Economization Mechanism | Dimension(s) Optimized | Measured Expected Savings |
| :---: | :--- | :--- | :--- | :--- |
| **`E1`** | `src/hyperstitionstud_io/phonetics/{__init__.py,cmudict_fallback.json}` | 1. Add the 18 canonical watchlist ticker symbols (and FRED unit tokens) to `cmudict_fallback.json` (`4,943 -> 4,961` entries).<br/>2. Memoize any runtime `node` translations into `_FALLBACK_CACHE` in memory so `node` is never spawned twice for the same token in a process. | **CPU Time** & **Offline Phonetic Richness** | • `build_quant_timeseries_bundle()` drops from **`1,147 ms` to `~18 ms` (`63x` faster)**.<br/>• `test_core_suite.py` saves **`~2.2 seconds` (`-34%`)** per run. |
| **`E2`** | `deploy/sync-vps-repos.sh` (Step `[4/5]`) | Replace unconditional `find ... -exec gzip -9 -k -f` and `brotli -q 11 -k -f` over every file in `${LIVE_REPOS}` with an incremental `mtime` check (`[[ ! -f "${f}.gz" \|\| "${f}" -nt "${f}.gz" ]]` and `[[ ! -f "${f}.br" \|\| "${f}" -nt "${f}.br" ]]`). | **VPS Sync CPU Time** & **Deploy Latency** | Cuts Step `[4/5]` pre-compression CPU time on incremental deploys and `00:20 UTC` / `21:30 UTC` VPS runs by **`~85–92%`**. |
| **`E3`** | `src/hyperstitionstud_io/quant/daily_brief.py` | Compute `input_observations_sha256` over `(real-market-history.json, real-macro-indicators.json, latest_dated_dossier)`. When unchanged (and `--force-advance` is not passed), preserve the current `run_number` (`Q-RUN-NNNN`) and Bayesian posterior state instead of advancing a duplicate run on code-only releases. | **Git Repo Churn**, **Bayesian State Integrity** & **Operator Diff Clarity** | Eliminates spurious `Q-RUN-NNNN` state mutations and `ingglish-hyperdope-gematria` commits on code/doc-only releases. |
| **`E4`** | `src/hyperstitionstud_io/mcp/tools.py` | Add `mtime_ns`-keyed in-memory read-only JSON registry caching (`_load_json_cached(path)`) across `glossary-registry.json`, `encyclopedia-graph.json`, `quant-timeseries.json`, `real-macro-indicators.json`, and `daily-brief-latest.json`. | **API / MCP Latency** & **Test Suite CPU Time** | • Cuts `run_introspective_erofs_suite()` from `780 ms` to **`< 90 ms`**.<br/>• Speeds up live `/api/v1/*` and `/mcp` queries by **`5x–15x`**. |
| **`E5`** | `src/hyperstitionstud_io/version_sync.py` (`--prepare-release`) | Add `--prepare-release` to `hs-sync-version` to run `hs-archive-rotate`, `--auto-bump`, and selective regeneration of derived manifests in a single zero-token Python invocation. | **Manual Operator Time** & **LLM Turn Count** | Collapses **10 separate pre-push CLI commands into 1 command** (`0` LLM tokens). |
| **`E6`** | `encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py` | Keep `encyclopedia-graph.json` pretty-printed (`indent=2`) for Git readability, while serializing `graph-data.js` with compact `separators=(",", ":")` (matching `engineering-manifest-data.js` and `math-manifest-data.js`). | **Web / RAM `tmpfs` Footprint** | Reduces `graph-data.js` from **`892 KB` to `~625 KB` (`-267 KB` / `-30%`)** with `0` data loss. |
| **`E7`** | `hyperstitionstudio-roadmap-and-release/SKILL.md` | Keep `SKILL.md` `< 8,000` chars (`< 2,000` BPE tokens) by storing completed/active plan ledger tables in `references/roadmap-plan-ledger.md`. | **LLM Context Window** | Saves **`~4,200` BPE tokens** on every session turn where the skill is loaded. |
---
## 4. Test-Suite Appropriateness & Verification Gates (`tests/test_core_suite.py`)
1. **Appropriate for `tests/test_core_suite.py`:**
- Assert that `cmudict_fallback.json` contains `>= 4,961` entries including all 18 canonical ticker abbreviations (`"nvda"`, `"pltr"`, `"sol"`, `"tsm"`, `"anthr"`, etc.) so `build_quant_timeseries_bundle(write_files=False)` completes in `< 150 ms` with `0` subprocess spawns.
- Assert that calling `build_daily_portfolio_brief(allow_live_network=False, write_files=False)` twice on identical underlying market/macro/dossier inputs preserves the same `run_number` (`Q-RUN-NNNN`) and `input_observations_sha256` unless `force_advance=True` is passed.
- Assert that `graph-data.js` is compactly serialized (`< 700,000` bytes) while `encyclopedia-graph.json` retains all `388` nodes and `1,282` edges.
@@ -1,118 +0,0 @@
# Plan: Additive Guile Scheme Mode Toggle (`[ λ GUILE SCHEME LENS ]`) & Offline In-Browser Z-Combinator REPL Across `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`) (`v2.1.0`)
- **Document ID:** `PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL` (`v2.1.0`)
- **Roadmap Status:** **ACTIVE / READY**
- **Core Pedagogical & Architectural Mandate:**
1. **Zero Eclipse of Existing Curriculum:** The existing `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`) curriculum (Novice Prerequisite Ladders `.hs-prereq-ladder`, formal theorems, Python/SQL/JS implementation tables, and live manifest invariants) remains **100% primary and untouched**. By default (`localStorage["hs:guile-scheme-mode:v1"] == "off"`), pages load in standard mode; toggling **`[ λ GUILE SCHEME LENS: ON ]`** (`Alt+S`) reveals additive **Guile Scheme Teaching Cartridges (`.hs-guile-cartridge`)** alongside each section plus a dockable **In-Browser Guile Scheme & Z-Combinator REPL Drawer (`#hsGuileReplDrawer`)**.
2. **Multi-Modal Guile Scheme Pedagogy (`z-calculus-scheme` Integration):** Uses GNU Guile Scheme and the applicative-order `Z` combinator (`Z = λf. (λx. f (λv. (x x) v)) (λx. f (λv. (x x) v))`) to teach in **6 complementary ways**:
- **(1) Homoiconic Tri-View (`Math Formula <-> Python/JS <-> Guile S-Expression AST`)**,
- **(2) Anonymous Fixed-Point Recursion via `Z` (Thomas' Calculus & Discrete State Fold Lab)**,
- **(3) Interactive Step-by-Step `β-Reduction` & Environment Substitution Tracer**,
- **(4) Exact Rational (`p/q`) vs. IEEE-754 Floating-Point Precision Lab**,
- **(5) Live Equivalence Proof (verifying Scheme output against live `engineering-manifest.json` / `math-manifest.json` invariants)**, and
- **(6) One-Click `"Load in REPL"` Guided Lambda Micro-Challenges**.
3. **Zero Metered LLM Tokens & Zero External CDN Dependencies:** All 12 subpage cartridges, the canonical `guile_prelude.scm` library, and the in-browser Scheme interpreter (`site/assets/hs-guile-scheme-repl.js`) are 100% deterministic local Python/JS/Scheme (`0` LLM tokens, `0` external HTTPS scripts).
- **Target Modules & Assets:**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/guile_prelude.scm` (Canonical GNU Guile Scheme + `z-calculus-scheme` prelude)
- `/workspace/hyperstitionstudio-core/site/assets/hs-guile-scheme-repl.js` (Offline client-side Guile Scheme S-Expression evaluator, exact rational tower, tail-call trampoline, β-reduction stepper, and dockable REPL UI)
- `/workspace/hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css` (Group 3 Stealth Basalt styling for `#guileSchemeModeToggle`, `.hs-guile-cartridge`, and `#hsGuileReplDrawer`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/{engineering_docs.py,math_docs.py}` (Piecewise toggleable `--with-guile-lens` / `--without-guile-lens` cartridge injection across `E0–E5` & `M0–M5`)
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
---
## 1. Non-Eclipsing UI & State Architecture (`Group 3 Stealth Basalt` Compliant)
### 1.1 Header Toggle Pill & Cross-Page State Persistence
- **Control Placement:** In the top navigation / command bar of `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`), adjacent to the cross-links between `/engineering/` and `/math/`, add a `34px`-height Group 3 Stealth Basalt toggle button:
```html
<button id="guileSchemeModeToggle" class="hs-btn-basalt hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)">
<span class="hs-guile-lambda-badge">&lambda;</span>
<span class="hs-guile-toggle-label">GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span>
</button>
```
- **Sensory Budget Compliance (`90%` Basalt / `7%` `#38bdf8` Interactive / `3%` `#f59e0b` Beacon):**
- When `OFF`, the toggle button sits quietly in matte basalt (`#0c1324` fill, `#1e293b` hairline border) and `.hs-guile-cartridge` blocks are hidden (`display: none`), ensuring zero visual distraction for readers focused solely on the core curriculum.
- When toggled `ON` (`document.documentElement.setAttribute("data-guile-scheme-mode", "on")` + `localStorage.setItem("hs:guile-scheme-mode:v1", "on")`), the `28px` left-shoulder Signal Pip on each `.hs-guile-cartridge` lights up in `#38bdf8` cyan, expanding the Guile Scheme teaching foil directly beneath each curriculum card without hiding or displacing a single word of the primary explication.
### 1.2 Piecewise & Non-Sequential Revertability
- In `publishing/engineering_docs.py` and `publishing/math_docs.py`, the Guile Scheme layer is governed by an orthogonal feature flag (`ENABLE_GUILE_SCHEME_LENS: bool = True`, CLI flags `--disable-guile-lens` / `--enable-guile-lens`) as well as per-unit overrides (`E0..E5`, `M0..M5`).
- Disabling the Guile lens on any single subpage or globally requires a single deterministic `--sync` command (`0` LLM tokens) and leaves all `E0–E5` and `M0–M5` cartridges intact.
---
## 2. Six Pedagogical Ways Guile Scheme Teaches Across `/math/` (`M0–M5`) and `/engineering/` (`E0–E5`)
| # | Pedagogical Modality | How It Works Inside Each `.hs-guile-cartridge` | Why It Deepens Understanding Without Eclipsing the Main Text |
| :---: | :--- | :--- | :--- |
| **1** | **Homoiconic `S-Expression <-> Math <-> Python` Tri-View** | Side-by-side comparison showing how the mathematical notation ($\sum$, $\prod$, $\nabla$, $\pi_{\text{IPA}}$) and the production Python function map to a pure prefix S-expression `(op arg1 arg2 ...)`. | Eliminates operator-precedence ambiguity and shows novices that formulas, ASTs, and data structures are isomorphic. |
| **2** | **Applicative-Order `Z`-Combinator Fixed-Point Enactment (`z-calculus-scheme`)** | Every iterative or recursive algorithm (limits, derivatives, Simpson quadrature, Base-36 folds, graph degree traversals, Bayesian updates) is written **without named self-reference** using `(Z (lambda (recur) (lambda (...) ...)))`. | Connects discrete software engineering (`E1–E5`) and continuous/discrete applied math (`M1–M5`) to a single atomic primitive from lambda calculus. |
| **3** | **Interactive `β-Reduction` & Substitution Stepper** | Clicking `[ Step β-Reduction ]` advances one evaluation step at a time, showing the environment bindings (`chars`, `acc`, `priors`, `h`) and intermediate return values. | Makes invisible loop state and recursive call frames concretely visible to novices. |
| **4** | **Exact Rational (`p/q`) vs. Floating-Point Contrast** | Evaluates expressions using exact rationals (`7/20 + 1/4 + 1/5 + 1/5 => 1`, `16378/45`) alongside IEEE-754 floats (`363.9555555555556`). | Teaches why exact rational arithmetic prevents rounding drift in convex combinations (`ETI`) and probability simplices, and why inexact floats (`1e-6`) are chosen for deep `Z` convergence loops. |
| **5** | **Live Equivalence Verification Badge** | Automatically runs the cartridge's Scheme program on page load (when Scheme Mode is `ON`) and asserts `Scheme Result === Live Manifest Invariant` (`[ VERIFIED EQUAL ]`). | Proves to the learner that the functional Scheme specification and the production Python engine compute identical results on real repository data. |
| **6** | **Guided `"Load in REPL"` Lambda Micro-Challenges** | Each subpage provides an interactive prompt (e.g., *"Change the prior in `(bayes-update ...)` or compute the 2nd derivative via `((nth-derivative f 2 1e-4) x)`"*) with a one-click `[ Send to REPL ]` button. | Turns passive reading into active experimentation inside the browser. |
---
## 3. Subpage-by-Subpage Guile Scheme Cartridge Curriculum (`M0–M5` & `E0–E5`)
### 3.1 Applied Mathematics & Statistics Subpages (`/math/` — Units `M0–M5`)
- **`M0` (`/math/index.html` — Hub & Prerequisite Bridge):**
- Introduces the applicative-order `Z` combinator (`(define Z (lambda (f) ((lambda (x) (f (lambda args (apply (x x) args)))) (lambda (x) (f (lambda args (apply (x x) args)))))))`), explains why the unguarded Y combinator diverges in strict evaluation while eta-expanded `Z` converges, and adds free novice Scheme resources (*Structure and Interpretation of Computer Programs (SICP)*, *The Little Schemer*, and the GNU Guile Reference Manual) to `.hs-prereq-ladder`.
- **`M1` (`/math/base36-algebra-and-primes/` — Base-36 Semiring & Primes):**
- Enacts `aq-base36` (homomorphic fold over character lists via `Z`), `digital-root-mod9` (fixed-point digit sum until `< 10`), and `prime-factors` (`(prime-factors 666) => (2 3 3 37)`, `(prime-factors 777) => (3 7 37)`).
- **`M2` (`/math/phonemic-projections-and-g-vectors/` — Phonemic Projections & Variance Collapse):**
- Enacts exact rational population & sample `variance` via `Z` on the `292` Synonym Cluster (`(variance-pop '(120 116 144 103 157)) => 8189/25` = `327.56` vs. `(variance-pop '(112 112 112 112 112)) => 0`) and classifies `G1` (`ing_aq` collapse) and `G4` (`eng_aq == ing_aq` fixed point).
- **`M3` (`/math/graph-topology-and-eti-scoring/` — Graph Topology & ETI Scoring):**
- Enacts exact rational `eti-score` (`(+ (* 7/20 s) (* 1/4 p) (* 1/5 c) (* 1/5 m))`) verifying that the rational weights sum to `1` (`20/20`), plus polar radar coordinate projection `(eti->polar eti theta r-min r-max)`.
- **`M4` (`/math/timeseries-moments-and-confluence-dose/` — Time-Series Moments, Confluence Dose & Thomas' Calculus):**
- Enacts `confluence-dose` ($D_{i,t} \in \{0..4\}$ as a `Z`-fold over the 4 species predicates) AND connects discrete bar series to continuous Thomas' Calculus via `limit` and central-difference `derivative` (`(derivative (lambda (t) (* 0.024 t t)) 1e-6)`).
- **`M5` (`/math/macro-spreads-and-bayesian-inference/` — FRED Macro Spreads, Bayesian Inference & Quadrature):**
- Enacts exact rational 3-state `bayes-update` (`P(R_k | E_t)`), `brier-score`, and `adaptive-simpson` numerical quadrature over continuous probability densities via `Z`.
### 3.2 Software Engineering Subpages (`/engineering/` — Units `E0–E5`)
- **`E0` (`/engineering/index.html` — Hub & Homoiconic Introspection):**
- Demonstrates homoiconic S-expression manifest introspection (`(assoc-ref manifest 'version) => "2.1.0"`) and how treating configuration, code, and theorems as uniform S-expression trees eliminates schema drift.
- **`E1` (`/engineering/ciphers-and-phonetics/` — Pure Functional Phonetic Transducers):**
- Enacts the zero-global-state lookup pipeline `(translate-word "hyperstition" cmudict-alist)` with fallback rule composition via `Z`.
- **`E2` (`/engineering/knowledge-graph-and-sqlite/` — Immutable Graph Queries & Isolation Guards):**
- Enacts higher-order `(with-isolation-guard pre-sha256 thunk post-sha256)` and `Z`-combinator multigraph edge filtering `(filter-edges-by-type edges 'G4_ISOMETRIC_INVARIANT)`.
- **`E3` (`/engineering/quant-macro-and-bayesian-brief/` — Zero-Synthetic `#f` Option Semantics):**
- Enacts explicit `#f` (`None`/`null`) handling in Scheme time-series folds: `(filter-valid-bars '((2026-11-27 135.40) (2026-11-28 #f) (2026-11-29 #f) (2026-11-30 138.25)))`, proving how functional filtering naturally forbids synthetic weekend/holiday interpolation.
- **`E4` (`/engineering/mcp-chatbot-rest-and-ipld/` — S-Expression JSON-RPC Dispatcher & Canonical Sorting):**
- Enacts a pure functional MCP tool router `((mcp-router tool-table) '(tools/call "hs_evaluate_aq_and_ingglish" "LEMUR"))` and recursive lexicographic key sorting for IPLD `dag-json` (`0x0129`) via `Z`.
- **`E5` (`/engineering/cicd-vps-tmpfs-and-regression/` — Programmatic SemVer Heuristics & DAG Sort in Scheme):**
- Enacts `evaluate-bump-scope` (the exact 4-tier `noop / patch / minor / major` decision tree from `version_sync.py`) and 6-gate regression conjunction `(all-gates-pass? gates)` via `Z`.
---
## 4. In-Browser Guile Scheme & Z-Combinator Interactive REPL Specification (`site/assets/hs-guile-scheme-repl.js`)
### 4.1 Capabilities of the Client-Side Scheme Engine (`0` External Dependencies)
1. **Complete Core Scheme Special Forms & Tail-Call Trampoline:**
- Supports `define`, `lambda` (both fixed `(lambda (x y) ...)` and variadic `(lambda args ...)` / dotted `(lambda (x . rest) ...)` required by the `Z` combinator!), `let`, `let*`, `if`, `cond`, `and`, `or`, `begin`, `quote` (`'expr`), and `apply`.
- Uses a tail-call optimization (TCO) loop so deep `Z`-combinator recursions (thousands of steps in `riemann-integral`, `adaptive-simpson`, `series-sum`, or `rk4-integrate`) execute in `O(1)` JS stack frames without `RangeError: Maximum call stack size exceeded`.
2. **Exact Rational (`p/q`) + Inexact Float Number Tower:**
- Literal fractions like `7/20`, `1/3`, or exact integer divisions `(/ 16378 45)` preserve exact numerator/denominator GCD-reduced rationals (`363 43/45` / `16378/45`) until combined with an inexact float (`2.0`, `0.5`, `1e-6`) or converted via `(exact->inexact x)` / `(inexact->exact x)`.
3. **Built-In `z-calculus-scheme` & Hyperstition Prelude:**
- Pre-defines `Z`, `limit`, `derivative`, `nth-derivative`, `newton-solve`, `riemann-integral`, `adaptive-simpson`, `series-sum`, `rk4-integrate`, `gradient`, `aq-base36`, `digital-root-mod9`, `prime-factors`, `variance-pop`, `eti-score`, `confluence-dose`, `bayes-update`, `brier-score`, and `evaluate-bump-scope`.
4. **Interactive REPL Drawer UI (`#hsGuileReplDrawer`):**
- Docked at the bottom-right of any `/engineering/*` or `/math/*` page when Guile Scheme Mode is `ON` (collapsible/expandable).
- Features:
- Preset selector dropdown (loads any of the 12 subpage labs or `z-calculus-scheme` Modules 1–5),
- Multi-line S-expression editor with parenthesis matching & `Ctrl+Enter` / `[ Evaluate (λ) ]` execution,
- `[ Step β-Reduction ]` button showing the first 12 evaluation reductions step-by-step,
- Exact Rational vs. Float display toggle, and
- Command history (`Up`/`Down` arrows, persisted in `sessionStorage`).
---
## 5. Test-Suite Appropriateness Analysis & Verification Gates (`tests/test_core_suite.py` & `hs-public-smoke`)
1. **In-Process & Subprocess Verification (`tests/test_core_suite.py`):**
- Verify that `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/guile_prelude.scm` and `/workspace/hyperstitionstudio-core/site/assets/hs-guile-scheme-repl.js` exist and contain `0` external `https://` script/font URLs.
- Verify that all 6 `/engineering/*` HTML files and all 6 `/math/*` HTML files include `#guileSchemeModeToggle`, `.hs-guile-cartridge`, `#hsGuileReplDrawer`, and `/assets/hs-guile-scheme-repl.js` while retaining 100% of their existing curriculum sections and `.hs-prereq-ladder` blocks.
- Verify piecewise revertability: calling `build_engineering_site(..., include_guile_lens=False)` and `build_math_site(..., include_guile_lens=False)` cleanly omits `.hs-guile-cartridge` while keeping all `E0–E5` and `M0–M5` content intact.
- When `node` is available (already used in `test_core_suite.py`), execute `/workspace/hyperstitionstudio-core/site/assets/hs-guile-scheme-repl.js` headlessly in Node to verify that the in-browser Scheme engine evaluates `Z`-combinator `limit`, `derivative`, `adaptive-simpson`, `aq-base36`, exact rational `eti-score`, `variance-pop` on Cluster `292`, and `bayes-update` to the exact expected analytical values!
2. **Public Surface Regression Gate (`hs-public-smoke` Gate `P6` & `deploy/test-first-deployment.sh`):**
- Add `/assets/hs-guile-scheme-repl.js` to `ROUTES=()` in `deploy/test-first-deployment.sh` and verify `HTTP 200 OK`.
@@ -0,0 +1,106 @@
# PLAN: Piecewise Exploratory Persona Features & Below-Closeup Button Geometry for the Homepage 2×2 Showcase Grid (`Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY`
**Status:** `ACTIVE / READY FOR STEPWISE PIECEWISE REVIEW & IMPLEMENTATION`
**Target Ecosystem Version:** `v2.8.0`
**Target Repositories:** `hyperstitionstudio-core`, `haiperdohp-jemaytreeah`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Ground-Truth Audit: What Already Exists in the Codebase vs. Where Data or Code Is Missing (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release` (**Piecewise Plan Authoring & Stepwise Review Protocol**), this plan opens with an empirical Ground-Truth Audit separating (a) capabilities and data that **already exist and are 100% verified in the workspace today**, from (b) net-new UI code or statistical sample-size limits (`"Insufficient data to merit confidence / No data available"`):
| Audit Point | Target Surface & Persona | What Already Exists in the Codebase Today (`100%` Verified) | What Is Net-New or Statistically Constrained (`"No data available"`) |
| :--- | :--- | :--- | :--- |
| **Audit Point 1**<br/>*Below-the-Closeup Button Bar Geometry (`site/index.html`)* | Homepage `2×2` Showcase Quadrants (`Q1–Q4`, `680px` inner width below `680×260` `.closeup-frame`) | • `.card.hs-plate-g3` (`padding: 1.15rem 1.25rem` / `18.4px 20px`, `gap: 0.75rem` / `12px`)<br/>• `.closeup-frame` (`680×260` aspect ratio)<br/>• `34px`/`30px` chamfered `.btn` styling in `hs-group3-basalt-chamfer.css` | • **Net-New CSS Container (`.actions.below-closeup-bar`):** Whether each quadrant renders `1`, `2`, or `3` buttons on a single non-wrapping `680px` row depends on how many strategies (`A / B / C`) are affirmed per quadrant (`grid-template-columns: repeat(N, minmax(0, 1fr))`).<br/>• **External Click-Through Data:** `"No data available"` (`0` external clicks recorded yet). |
| **Audit Point 2**<br/>*Quadrant 01: Cybermemetics & Personal Magical Practice (`/calc/`, `/graph/`, `/learn/`)* | `ICP-H1` (Cybernetic & Occult Enthusiasts) | • **100% Live Today (`Strategy 2A`):** `☉ Personal Grimoire Ledger` already exists in `/learn/index.html` (`#statePortabilityBar`, `#inputBookmarkCoord`, `.note-area`, `#m06RegisterSelect`, `WebCrypto` `CIDv1` export/import).<br/>• **90% Live Today (`Strategy 2B`):** `/graph/index.html` already supports `?select=aq:<N>` URL deep-linking, 1-hop ego isolation, and `#flexPills`.<br/>• **Data Ready (`Strategy 2C`):** `cmudict_fallback.json` (`4,943` keys) + Base-36 `AQ` already live in `/calc/` and `hyperstitionstud_io.phonetics`. | • **`Strategy 2A`:** `0` new backend code needed (`1` deep-link button).<br/>• **`Strategy 2B` (`Numogram Syzygy Compass`):** Needs a small JS helper in `/graph/index.html` to compute `dr9(x)` and its `9`-sum twin (`1::8, 2::7, 3::6, 4::5`).<br/>• **`Strategy 2C` (`Sigil & Mantra Forge`):** Requires net-new 2D canvas/SVG kamea wheel rendering code. |
| **Audit Point 3**<br/>*Quadrant 02: Finance & Esoteric Non-Correlation (`/quant/`)* | `ICP-H2` (Finance & Alternative-Data Researchers) | • **Data & UI Ready (`Strategy 3A`):** `quant-timeseries-data.js` already ships all `9` `S1–S6` / `M1–M7+` builds with their exact 6-stat `ETI` vectors (`ARM, VEL, COL, CAP, PRM, RES`), and `/quant/` already has `#guildFilterPills` and `#lensProjectionCard`.<br/>• **Data Ready (`Strategy 3B`):** `24` watchlist tickers (`19` trading days / `472` real bars) + `14` FRED series + `confluence_dose` ($D_{i,t} \in \{0..4\}$) already pre-computed in `quant-timeseries-data.js`. | • **Statistical Sample-Size Caveat (`N = 19` trading days per ticker):** While `19` trading days (`30` UTC days) is 100% verified for **descriptive 30-day event inspection** (`Strategy 3B`) and **cross-sectional `ETI` screening** (`Strategy 3A`), it is **statistically insufficient (`"No data available"` for long-horizon $p$-values)** to claim multi-year backtested alpha or stable 252-day trailing price correlation (`Strategy 3C`). |
| **Audit Point 4**<br/>*Quadrant 03: Novice-Friendly Information Science (`/learn/`, `/engineering/`, `/math/`)* | `ICP-H3` (Novice-to-Intermediate CS & Math Learners) | • **100% Live Today (`Strategy 4A`):** `λ Visual AST & Z-Trace Tree` (`#hsGuileReplStepBtn` `"Step AST Trace"`, `#hsPolyglotReplLang`, `#hsGuileReplPreset`) is already implemented in `site/assets/hs-guile-scheme-repl.js` across all 12 `/engineering/*` & `/math/*` pages.<br/>• **100% Live Today (`Strategy 4B`):** Interactive Base-36 & `Ingglish` variance-collapse sandboxes (`Module 1`, `Module 2`, `Module 3`) are already live in `/learn/index.html` (`learn-app.js`). | • **`Strategy 4A` & `4B`:** `0` new code required beyond URL hash/query auto-focus (`#hsGuileReplDrawer`, `#mod-M02`).<br/>• **`Strategy 4C` (`1-Hop Graph Walk Builder`):** Requires net-new interactive node/edge toy builder JS on `/math/graph-topology-and-eti-scoring/`. |
| **Audit Point 5**<br/>*Quadrant 04: Operators & Two-Script DevOps (`/engineering/`)* | `ICP-H4` (Systems Operators, Self-Hosters & MCP Builders) | • **100% Live Today (`Strategy 5A`):** `◈ DAG-JSON CIDv1 Verifier` is already implemented in `/learn/learn-app.js` (`computeDagJsonCidv1()`) and `/api/v1/ipld/cid?registry=all` (`hs_compute_ipld_dag_json_cid`).<br/>• **Data & API Ready (`Strategy 5B`):** `/api/v1/status`, `/mcp`, and `engineering-manifest-data.js` are already live on `/engineering/`. | • **`Strategy 5A`:** Can link directly to `/api/v1/ipld/cid?registry=all` or `/engineering/mcp-chatbot-rest-and-ipld/` with `0` new backend code.<br/>• **`Strategy 5B` (`Live P1–P6 Smoke & ETag Probe`):** Lightweight `fetch('/api/v1/status')` button on `Unit E5`.<br/>• **`Strategy 5C` (`EROFS & tmpfs Mount Simulator UI`):** Requires net-new interactive UI widget. |
---
## 2. Four Factual Binary Engineering Gates (`G1–G4`, Zero Synthetic Scores)
Every candidate strategy across Audit Points `1–5` is evaluated strictly against four binary engineering gates:
- **`Gate G1` (100% Extant Verified Data):** Uses only verified local registries/corpora with `0` synthetic data and `0` unverified statistical claims.
- **`Gate G2` (`0` LLM Tokens):** Runs 100% deterministically in browser JS or existing stdlib Python.
- **`Gate G3` (`ProtectSystem=strict` `EROFS` Safe):** Zero writes to read-only rootfs paths.
- **`Gate G4` (Reuse-First / Minimal Code Delta):** Reuses existing live DOM/JS capabilities where available before adding new code.
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `5A–5C`)
---
### Audit Point 1: Below-the-Closeup Button Bar Geometry, Proportionality & Adaptive Column Grid (`site/index.html`)
Inside `.showcase-grid` (`max-width: 1320px`, `gap: 1.15rem`), each quadrant `.card.hs-plate-g3` (`padding: 1.15rem 1.25rem` / `18.4px 20px`, `gap: 0.75rem` / `12px`) frames a `680×260` `.closeup-frame`. When exploratory buttons are placed beneath `.closeup-frame`, their vertical height (`30px` vs `260px` image = `11.5%` / `1:8.7` vertical ratio) and horizontal grid columns must adapt cleanly to the number of affirmed buttons per quadrant:
- **Strategy `1A` (Adaptive `1`-to-`3` Column Flush Grid `.actions.below-closeup-bar` — Recommended Candidate):**
- Uses `display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem (8px); width: 100%; margin: 0.1rem 0 0 0; padding: 0;` with `.actions.below-closeup-bar .btn { height: 30px; padding: 0.35rem 0.62rem; font-size: 0.70rem; text-align: center; justify-content: center; }`.
- **Why It Is Commutative:** Whether a quadrant has **1**, **2**, or **3** affirmed exploratory feature buttons, `repeat(auto-fit, minmax(180px, 1fr))` automatically stretches them flush across the exact `680px` width of the `.closeup-frame` above (`1` button = `680px`; `2` buttons = `2 × 336px + 8px gap = 680px`; `3` buttons = `3 × 221.3px + 2 × 8px gap = 680px`) and stacks to `1fr` on mobile (`@media (max-width: 680px)`).
- **Strategy `1B` (Fixed `3`-Column Grid Only `repeat(3, minmax(0, 1fr))` — Candidate):**
- Requires every quadrant to always have exactly `3` buttons (`221.3px` each), leaving empty whitespace if fewer than `3` strategies are affirmed for a quadrant.
- **Strategy `1C` (Keep `0` Buttons Below Closeups on `site/index.html` — Option 2 Baseline Currently Live in `v2.7.0`):**
- Leaves `site/index.html` with `0` buttons below the `680×260` UI closeups and exposes exploratory features only inside their respective subpages (`/calc/`, `/graph/`, `/quant/`, `/learn/`, `/engineering/`, `/math/`).
---
### Audit Point 2: Quadrant 01 Exploratory Features — Cybermemetics, Isopsephy & Personal Magical Practice (`ICP-H1`)
- **Strategy `2A` (`☉ Personal Grimoire Ledger` Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ ☉ Personal Grimoire Ledger ]` to `/learn/index.html#m06RegisterSelect` (and adds a 5-line hash handler in `/learn/learn-app.js` that scrolls to `#statePortabilityBar` / `#inputBookmarkCoord`), giving practitioners immediate 1-click access to the existing private `localStorage` coordinate bookmarking, `.note-area` synchronicity journal, and RFC 8785 `dag-json` `CIDv1` talisman exporter/importer (`0` new backend code).
- **Strategy `2B` (`☍ Numogram Syzygy Compass` Mode in `/graph/index.html` — 90% Live in Codebase Today, `4/4` Gates):**
- Links `[ ☍ Numogram Syzygy Compass ]` to `/graph/index.html?filter=syzygy` and adds `<option value="syzygy">CCRU 9-Sum Numogram Syzygies (1::8, 2::7, 3::6, 4::5)</option>` to the existing `#flagFilter` dropdown in `/workspace/encyclopedia-knowledge-graph/index.html` (`~15` lines of JS), highlighting nodes whose `AQ` mod-9 digital roots form twin syzygy pairs.
- **Strategy `2C` (`☿ Sigil & Mantra Forge` Canvas Modal in `/calc/index.html` — Net-New UI Widget, `3/4` Gates):**
- Builds a net-new SVG/Canvas kamea wheel sigil drawer inside `/workspace/haiperdohp-jemaytreeah/index.html` (`?mode=sigil-forge`). *(Higher code complexity; touches the upstream fork `haiperdohp-jemaytreeah`).*
---
### Audit Point 3: Quadrant 02 Exploratory Features — Finance & Esoteric Non-Correlation (`ICP-H2`)
- **Strategy `3A` (`♄ Uncaptured Gem Screener` Filter Pill in `/quant/index.html` — Extant `ETI` Data, `4/4` Gates):**
- Links `[ ♄ Uncaptured Gem Screener ]` to `/quant/index.html?screen=uncaptured-gems` and adds a 1-click filter preset in `/workspace/hyperstitionstudio-core/site/quant/quant-app.js` (`~20` lines of JS) that filters the `24` instruments and `9` assemblage builds to those matching the Fund Manager Proposal's `"Uncaptured Gem"` criterion (`COL >= 75` or `ARM >= 75`, `VEL >= 80`, and low institutional crowding `CAP <= 65`).
- **Strategy `3B` (`∆ 30-Day Dose D≥3 Event Inspector` Filter in `/quant/index.html` — Extant `N=19` Trading-Day Data, `4/4` Gates):**
- Links `[ ∆ 30-Day Dose D≥3 Inspector ]` to `/quant/index.html?screen=dose-d3` and highlights all `(Ticker, Date)` cells in `PANEL 2` (`#heatmapTable`) and `PANEL 1` (`#tsCanvas`) where `confluence_dose >= 3` across the `30` UTC days (`19` trading days), explicitly labeled as a **30-Day Descriptive Event Inspector ($N = 19$ trading days)** so it never overstates statistical sample size.
- **Strategy `3C` (`☍ Zero-Beta Pair Finder` — Statistically Constrained at `N = 19` Trading Days, `2/4` Gates):**
- Computing sample Pearson correlation $\rho_{\text{price}}$ over only $N = 19$ trading days has a wide standard error ($SE \approx 1/\sqrt{19 - 3} = 0.25$), which is **insufficient data to merit confidence** for claiming true "Zero-Beta" price independence until the historical bar cache accumulates $\ge 60–252$ trading days.
---
### Audit Point 4: Quadrant 03 Exploratory Features — Novice-Friendly Information Science & Polyglot CS (`ICP-H3`)
- **Strategy `4A` (`λ Visual AST & Z-Trace Tree` Auto-Open Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ λ Visual AST & Z-Trace Tree ]` to `/math/base36-algebra-and-primes/index.html?repl=trace` and adds a 6-line URL query check in `site/assets/hs-guile-scheme-repl.js` so `?repl=trace` automatically expands `#hsGuileReplDrawer`, selects `(prime-factors 666)`, and triggers `Step AST Trace` (`#hsGuileReplStepBtn`) on page load (`0` new backend code).
- **Strategy `4B` (`◈ Phonemic Compression Sandbox` Deep-Link — 100% Live in `/learn/index.html` Modules 1–3, `4/4` Gates):**
- Links `[ ◈ Phonemic Compression Sandbox ]` directly to `/learn/index.html#mod-M02` (where the live interactive `Gen 0 -> Gen 1 Ingglish` phonetic translator and `Module 3` Cluster `292` variance-collapse calculator already run in `learn-app.js`), avoiding duplicating `/learn/`'s sandbox on `/engineering/`.
- **Strategy `4C` (`☉ 1-Hop Graph Walk Builder` Toy Widget on `/math/graph-topology-and-eti-scoring/` — Net-New UI Code, `3/4` Gates):**
- Builds a net-new 5-node toy graph editor in `publishing/math_docs.py`. *(Redundant with `/graph/index.html`'s existing 1-hop ego-network isolator).*
---
### Audit Point 5: Quadrant 04 Exploratory Features — Operators & Two-Script DevOps (`ICP-H4`)
- **Strategy `5A` (`◈ DAG-JSON CIDv1 & Isolation Verifier` Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ ◈ DAG-JSON CIDv1 Verifier ]` to `/engineering/mcp-chatbot-rest-and-ipld/index.html#cid-verifier` (or `/api/v1/ipld/cid?registry=all`), where `Unit E4` and the Polyglot REPL already evaluate and verify RFC 8785 JCS + `SHA-256` `CIDv1` digests (`baguqeera...`) and `ReadOnlyIsolationGuard` receipts.
- **Strategy `5B` (`⚛ Live API & ETag 304 Probe` on `/engineering/cicd-vps-tmpfs-and-regression/` — Lightweight Live Probe, `4/4` Gates):**
- Links `[ ⚛ Live API & ETag 304 Probe ]` to `/engineering/cicd-vps-tmpfs-and-regression/index.html#live-smoke-probe` and adds a compact interactive probe panel in `Unit E5` (`publishing/engineering_docs.py`, `~25` lines) that fetches `/api/v1/status` twice (second time with `If-None-Match: <ETag>`) to demonstrate live `HTTP 200 OK` $\to$ `HTTP 304 Not Modified` conditional caching, latency, and `ReadOnlyIsolationGuard` status in the visitor's browser.
- **Strategy `5C` (`⚚ EROFS & tmpfs Mount Simulator UI` — Net-New UI Widget, `3/4` Gates):**
- Builds a separate interactive mount-table visualizer in `Unit E4/E5`. *(Redundant with `Unit E2` and `Unit E5`'s existing architecture prose and `periodic-harvest-cicd-to-vps-flow-diagram.png`).*
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review
| Audit Point | Strategy `A` (Reuse-First / High-Confidence) | Strategy `B` (Lightweight High-Signal Addition) | Strategy `C` (High Complexity or Insufficient Data) |
| :--- | :--- | :--- | :--- |
| **Point 1 (Button Geometry)** | **`1A`:** Adaptive `1..3` Column Flush Grid (`repeat(auto-fit, minmax(180px, 1fr))`) | **`1B`:** Fixed `3`-Column Grid Only | **`1C`:** `0` Buttons on Homepage (Option 2 Baseline) |
| **Point 2 (Quadrant 01: Cybermemetics)** | **`2A`:** `☉ Personal Grimoire Ledger` (`100%` Live in `/learn/`) | **`2B`:** `☍ Numogram Syzygy Compass` (`~15` lines in `/graph/` `#flagFilter`) | **`2C`:** `☿ Sigil & Mantra Forge` (Net-new canvas in `/calc/`) |
| **Point 3 (Quadrant 02: Finance/Quant)** | **`3A`:** `♄ Uncaptured Gem Screener` (`~20` lines in `/quant/` over extant `ETI`) | **`3B`:** `∆ 30-Day Dose D≥3 Inspector` (`~20` lines in `/quant/` over $N=19$ days) | **`3C`:** `☍ Zero-Beta Pair Finder` (*Insufficient data at $N=19$ days*) |
| **Point 4 (Quadrant 03: Novice Info Sci)** | **`4A`:** `λ Visual AST & Z-Trace Tree` (`100%` Live in `hs-guile-scheme-repl.js`) | **`4B`:** `◈ Phonemic Compression Sandbox` (`100%` Live in `/learn/#mod-M02`) | **`4C`:** `☉ 1-Hop Graph Walk Builder` (Net-new toy widget) |
| **Point 5 (Quadrant 04: Operators/SRE)** | **`5A`:** `◈ DAG-JSON CIDv1 Verifier` (`100%` Live in `Unit E4` & `/learn/`) | **`5B`:** `⚛ Live API & ETag 304 Probe` (`~25` lines in `Unit E5`) | **`5C`:** `⚚ EROFS & tmpfs Simulator UI` (Redundant widget) |
@@ -0,0 +1,143 @@
# PLAN: HyperstitionStudio Polyglot SDK & Zero-Drift Client Libraries (`hs-sdk-build` & `/sdk/`)
**Document ID:** `PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES`
**Status:** `DEFERRED (Long-Term Inactive — Preserved for Future Reference)`
**Target Ecosystem Version:** `v2.4.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Executive Summary & Architectural Objective
As of `v2.3.0`, `hyperstitionstud.io` exposes **20 deterministic MCP & Chatbot REST API tools** (`/api/v1/tools/*` and JSON-RPC 2.0 `/mcp`), **14 static URN resources** (`/api/v1/resources/*`), **6 parameterized URI templates**, **4 guided prompts**, **5 JSON Schema Draft 2020-12 contracts** (`/schemas/v1/*.schema.json`), and a **3-language polyglot pedagogical lens** (`Guile Scheme`, `TypeScript`, and `Rust`) across `/engineering/` and `/math/`.
This plan specifies the **HyperstitionStudio Polyglot Software Development Kit (`hs-sdk-build` & `/sdk/`)**: a **zero-LLM-token, schema-driven SDK generator and multi-language client library suite** providing ergonomic, strongly-typed programmatic access to `hyperstitionstud.io` across **Python**, **TypeScript / JavaScript (ESM + `.d.ts`)**, **Rust**, and **GNU Guile Scheme**.
### Core Design Principles
1. **Zero-Drift Schema-Driven Code Generation (`0` LLM Tokens):**
- `src/hyperstitionstud_io/sdk/generator.py` (`hs-sdk-build`) introspects `MCP_TOOLS_SCHEMA` (`20` tools), `STATIC_RESOURCES` (`14` URN resources), `RESOURCE_TEMPLATES` (`6` templates), `build_openapi_v1_spec()`, and `site/schemas/v1/*.schema.json` directly in Python (`<40 ms`, `0` LLM tokens) to emit synchronized client libraries, type declarations, and `/sdk/sdk-manifest.json`.
- Adding a 21st tool to `MCP_TOOLS_SCHEMA` automatically generates the corresponding typed method across Python, TypeScript, Rust, and Guile Scheme on the next `hs-sdk-build --sync` pass.
2. **Offline Local Algebra (`LocalAlgebra`) + Remote API Client (`HyperstitionClient`) Dual Architecture:**
- Every SDK target ships with two complementary modules:
- **`LocalAlgebra` (Offline, `0` Network Calls):** Pure, deterministic implementations of Base-36 Alphanumeric Qabbala (`aq_base36`), mod-9 digital root (`dr9`), trial-division prime factorization (`prime_factors`), exact/IEEE-754 population variance (`variance_pop`), Ecological Trophic Index (`eti_score`), 3-state discrete Bayesian updating (`bayes_update`), and RFC 8785 JCS + SHA-256 `CIDv1` (`baguqeera...`) verification.
- **`HyperstitionClient` (Typed Remote & In-Process Client):** Strongly-typed methods for all `20` MCP/REST tools, `14` static URN resources, `6` URI templates, and `4` prompts, targeting `https://hyperstitionstud.io` by default or any custom `base_url` (including `in_process` zero-socket dispatch in Python).
3. **Strict Zero-Synthetic-Data Contract Preservation:**
- SDK response types explicitly model nullable observations (`float | None` in Python, `number | null` in TypeScript, `Option<f64>` in Rust, `#f` / `'null` in Guile Scheme) alongside `data_available: bool` and `status: "No data available"`. The SDK never coerces missing or private-equity observations (`ANTHR-PVT`, weekend/holiday bars) to `0.0` or synthetic defaults.
4. **Global Zero-Host-Path & Two-Script Deployment Compliance:**
- All public SDK download routes, module imports, and documentation deep-links target `https://hyperstitionstud.io/sdk/...` (`Class W`), while all `localhost` developer CLI instructions use container-relative `/workspace/...` paths (`Class L`).
- `hs-sdk-build --sync` is wired into `/workspace/push-all-to-git-libre-audio.sh` and `/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh` so the **Two-Script Deployment Invariant** remains unbroken.
---
## 2. Four Target SDK Languages & Distribution Surfaces
| SDK Target | Generated Artifact Path (Web Route under `https://hyperstitionstud.io/sdk/`) | Runtime Dependencies | Supported Transports | Primary Audience & Use Case |
| :--- | :--- | :--- | :--- | :--- |
| **1. Python SDK (`hyperstitionstud_io.sdk` + standalone single-file `hyperstition_sdk.py`)** | `/sdk/python/hyperstition_sdk.py` (also importable via `from hyperstitionstud_io.sdk import HyperstitionClient, LocalAlgebra`) | **Zero external deps** (Python `>=3.10` stdlib `urllib.request`, `dataclasses`, `fractions.Fraction`, `hashlib`) | `rest` (`/api/v1/*`), `mcp_http` (JSON-RPC 2.0 `/mcp`), and `in_process` (`ReadOnlyIsolationGuard`) | Quantitative researchers, data pipelines, Jupyter notebooks, and AI agents |
| **2. TypeScript / JavaScript ESM SDK (`hyperstition-sdk.mjs` + `hyperstition-sdk.d.ts`)** | `/sdk/ts/hyperstition-sdk.mjs`, `/sdk/ts/hyperstition-sdk.d.ts`, `/sdk/ts/package.json` | **Zero external deps** (Standard `fetch` + `WebCrypto` `crypto.subtle.digest`) | `rest` (`/api/v1/*`) & `mcp_http` (`/mcp`) in Browser `<script type="module">`, Node.js `>=18`, Deno, and Bun | Web developers, browser dashboards, TradingView/quant integrations, and TypeScript apps |
| **3. Rust Typed SDK (`hyperstition_sdk.rs` + `Cargo.toml`)** | `/sdk/rust/hyperstition_sdk.rs`, `/sdk/rust/Cargo.toml` | Pure `std` for `local_algebra`; optional `serde` + `serde_json` + `ureq`/`reqwest` for HTTP transport | `rest` (`/api/v1/*`) & `mcp_http` (`/mcp`) + zero-allocation `local_algebra` | Systems engineers, low-latency quant backtesters, and CLI tool authors |
| **4. GNU Guile Scheme SDK (`hyperstition-sdk.scm`)** | `/sdk/guile/hyperstition-sdk.scm` | GNU Guile `3.0+` (`(web client)`, `(web uri)`, `(ice-9 match)`, plus `guile_prelude.scm`) | `rest` (`/api/v1/*`), `mcp_http` (`/mcp`), & pure functional Z-calculus `local-algebra` | Functional programmers, `z-calculus-scheme` learners, and symbolic algebra explorers |
---
## 3. Detailed SDK Architecture & API Specification
### 3.1 Python SDK (`src/hyperstitionstud_io/sdk/client.py` & `/sdk/python/hyperstition_sdk.py`)
The Python SDK provides both a rich multi-transport package inside `hyperstitionstudio-core` and a self-contained single-file distribution (`/sdk/python/hyperstition_sdk.py`) that external users can download via `curl -sSLO https://hyperstitionstud.io/sdk/python/hyperstition_sdk.py`:
```python
from hyperstitionstud_io.sdk import HyperstitionClient, LocalAlgebra
# 1. Offline Local Algebra (0 network calls, exact rational & Base-36 AQ math)
assert LocalAlgebra.aq_base36("LEMUR") == 114
assert LocalAlgebra.prime_factors(666) == [2, 3, 3, 37]
assert LocalAlgebra.variance_pop_exact([272, 276, 286, 290, 292, 336]) == "4634/9"
assert LocalAlgebra.bayes_update_exact(["1/3", "1/3", "1/3"], ["1/10", "3/10", "6/10"]) == ["1/10", "3/10", "3/5"]
# 2. Remote REST / MCP HTTP or Local In-Process Client
client = HyperstitionClient(
base_url="https://hyperstitionstud.io", # or transport="in_process" inside /workspace
transport="rest", # "rest" | "mcp_http" | "in_process"
verify_cidv1=True, # Auto-verifies RFC 8785 JCS CIDv1 receipts when present
)
# Strongly-typed methods for all 20 MCP/Chatbot REST tools:
aq_res = client.evaluate_aq_and_ingglish(terms=["schizoanalysis", "abstract machine", "synthetic data"])
nvda_ts = client.inspect_quant_timeseries(symbol="NVDA", lens="fund_manager")
anthr_ts = client.inspect_quant_timeseries(symbol="ANTHR-PVT")
assert anthr_ts["instruments"][0]["data_available"] is False # Zero-Synthetic-Data preserved
macro_res = client.inspect_macro_indicators(category="all")
brief_res = client.generate_daily_portfolio_brief(refresh=False)
card_res = client.generate_ticker_stats_card(symbol="NVDA", register="fund_manager")
poly_res = client.evaluate_guile_scheme_z_calculus(expression='aq_base36("LEMUR")', lang="rust")
```
### 3.2 TypeScript / JavaScript ESM SDK (`/sdk/ts/hyperstition-sdk.mjs` & `/sdk/ts/hyperstition-sdk.d.ts`)
Can be imported directly in any browser or Deno/Node.js script from `https://hyperstitionstud.io/sdk/ts/hyperstition-sdk.mjs` (or locally from `/sdk/ts/hyperstition-sdk.mjs`):
```ts
import { HyperstitionClient, LocalAlgebra } from "https://hyperstitionstud.io/sdk/ts/hyperstition-sdk.mjs";
// Offline deterministic algebra (shared with /engineering/ and /math/ TS lens)
const aq = LocalAlgebra.aqBase36("LEMUR"); // 114
const factors = LocalAlgebra.primeFactors(666); // [2, 3, 3, 37]
// Typed REST + MCP JSON-RPC 2.0 client
const client = new HyperstitionClient({ baseUrl: "https://hyperstitionstud.io", transport: "rest" });
const brief = await client.generateDailyPortfolioBrief({ refresh: false });
const nvdaCard = await client.generateTickerStatsCard({ symbol: "NVDA", register: "fund_manager" });
```
### 3.3 Rust SDK (`/sdk/rust/hyperstition_sdk.rs` & `/sdk/rust/Cargo.toml`)
Provides zero-allocation `local_algebra` functions (`aq_base36`, `dr9`, `prime_factors`, `variance_pop`, `eti_score`, `bayes_update`) that compile with `rustc --edition=2021` using only the Rust standard library (`std`), plus typed request/response structs and a `HyperstitionClient` builder for all 20 tools.
### 3.4 GNU Guile Scheme SDK (`/sdk/guile/hyperstition-sdk.scm`)
Integrates `guile_prelude.scm` (applicative-order `Z` combinator, exact rational `p/q` arithmetic, Thomas' Calculus `derivative` / `adaptive-simpson`, and `aq-base36`) with JSON-RPC 2.0 / REST HTTP helpers (`hs-call-tool`, `hs-read-resource`, `hs-verify-isolation`).
---
## 4. Cryptographic `CIDv1` Verification & Zero-Synthetic-Data Guards
1. **Client-Side RFC 8785 JCS + `CIDv1` (`baguqeera...`) Verification (`LocalAlgebra.compute_dag_json_cidv1`):**
- Both the Python and TypeScript SDKs include a pure implementation of RFC 8785 JSON Canonicalization Scheme (JCS) + SHA-256 multihash + RFC 4648 lower-case Base32 (`baguqeera...`) so callers can verify offline that any registry fetched via `/api/v1/resources/<name>` or `/api/v1/tools/hs_compute_ipld_dag_json_cid` is bit-for-bit authentic.
2. **Explicit `NoDataAvailable` Helpers (`ZeroSyntheticDataGuard`):**
- The SDK includes helper predicates (`HyperstitionClient.is_observation_available(bar)`) that check `bar.get("data_available") is True and bar.get("close_usd") is not None` and raise a descriptive `SyntheticFallbackForbiddenError` if user code attempts an unsafe numeric coercion on a `"No data available"` record without explicit filtering.
---
## 5. Interactive `/sdk/` Documentation Hub & MCP/REST Introspection
1. **Group 3 Stealth Basalt `/sdk/` Hub (`site/sdk/index.html`):**
- Renders a Group 3 (`Stealth Basalt Plate & Micro-Pip Signal Ribbon`, `10px/4px` `45°` chamfers) developer portal at `https://hyperstitionstud.io/sdk/` featuring:
- Direct download links and SHA-256 checksums for all 4 language SDK bundles (`/sdk/python/hyperstition_sdk.py`, `/sdk/ts/hyperstition-sdk.mjs`, `/sdk/ts/hyperstition-sdk.d.ts`, `/sdk/rust/hyperstition_sdk.rs`, `/sdk/guile/hyperstition-sdk.scm`, `/sdk/sdk-manifest.json`),
- Synchronized 5-state polyglot code examples (`#hsPolyglotModeSelector`) showing identical SDK workflows across Python, TypeScript, Rust, and Guile Scheme,
- Complete method reference table auto-generated from the `20` `MCP_TOOLS_SCHEMA` entries and `14` `STATIC_RESOURCES`.
- Navigation buttons to `/sdk/` (`SDK (/sdk/)`) wired into `/engineering/index.html` and `/math/index.html`.
2. **Container-Relative Local CLI & Public Web Invocation:**
- **Localhost Terminal CLI (`/workspace`):**
```bash
PYTHONPATH=/workspace/hyperstitionstudio-core/src python3 -m hyperstitionstud_io.sdk.generator --sync
```
- **Public Web & REST Discovery (`https://hyperstitionstud.io`):**
- `https://hyperstitionstud.io/sdk/sdk-manifest.json`
- `https://hyperstitionstud.io/api/v1/resources/sdk-manifest` (`urn:io:hyperstitionstud:resource:sdk-manifest`)
---
## 6. Implementation & Verification Gates
1. **Unit & Cross-Language Parity Gate (`tests/test_core_suite.py`):**
- Verify that Python `HyperstitionClient(transport="in_process")` and `LocalAlgebra` execute all 20 tool methods and match the TypeScript ESM SDK (`/sdk/ts/hyperstition-sdk.mjs` tested via `node --input-type=module -e ...`) on `aqBase36("LEMUR") == 114`, `primeFactors(666) == [2, 3, 3, 37]`, and `computeDagJsonCidv1(...)`.
- Verify that `hs-sdk-build --check` detects zero drift between `MCP_TOOLS_SCHEMA` and `/sdk/sdk-manifest.json`.
- Verify that `run_introspective_erofs_suite()` passes with `0` `EROFS` escapes when `hs-sdk-build` or SDK tools run under simulated `ProtectSystem=strict`.
2. **Two-Script Deployment & 6-Gate Public Smoke (`deploy/test-first-deployment.sh`):**
- Wire `/sdk` symlink creation and `.gz`/`.br` pre-compression into `deploy/sync-vps-repos.sh` and `push-all-to-git-libre-audio.sh` (`0` `/dev/null` redirections).
- Verify `/sdk/index.html`, `/sdk/sdk-manifest.json`, `/sdk/python/hyperstition_sdk.py`, `/sdk/ts/hyperstition-sdk.mjs`, `/sdk/ts/hyperstition-sdk.d.ts`, `/sdk/rust/hyperstition_sdk.rs`, and `/sdk/guile/hyperstition-sdk.scm` return `HTTP 200 OK`.
@@ -0,0 +1,121 @@
# Plan: Lightweight Local Server-Side Web Chatbot GUI (`/chat/` & Dockable Widget) Powered by `hyperstition-mcp.service` & SQLite FTS5 at Zero (`0`) LLM Token Cost (`v2.2.0`)
- **Document ID:** `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI` (`v2.2.2`)
- **Roadmap Status:** **DEFERRED (Long-Term Inactive — Preserved for Future Reference)**
- **Default UI Placement Choice:** **Option 2 — Dedicated `/chat/` Subpage Only (`site/chat/index.html`) + Single `Ask Corpus (/chat/)` Header Button on `/` (Zero Floating Widget Injection on `/` or Subpages)**
- **Core Architectural & Resource Mandates:**
1. **100% Local on the Web Host (`0` LLM Tokens, `0` External API Keys, `0` GPU RAM):**
Runs entirely inside the existing `hyperstition-mcp.service` Python daemon (`127.0.0.1:8095`) using a deterministic **Hybrid Intent Router + SQLite FTS5 BM25 Full-Text Retriever + 15-Tool MCP Orchestrator (`src/hyperstitionstud_io/mcp/chatbot.py`)**. Consumes `0` metered LLM tokens, `0` external API keys, `< 15 ms` CPU time per query, and `< 5 MB` RSS memory.
2. **Chatbot REST API Exclusivity (`0` New Bespoke REST Routes in `rest.py`):**
Exposes the server-side question-answering engine by registering **`hs_ask_chatbot`** in `MCP_TOOLS_SCHEMA` (`src/hyperstitionstud_io/mcp/tools.py`). The existing generic tool dispatcher in `src/hyperstitionstud_io/mcp/rest.py` automatically serves it at **`GET/POST /api/v1/tools/hs_ask_chatbot`** (and via MCP JSON-RPC `tools/call` on `/mcp`) with **`0` new custom route patterns** in `rest.py`.
3. **Strict Zero-Synthetic-Data & `ProtectSystem=strict` (`EROFS`) Compliance:**
Every answer is synthesized deterministically from verified server-side registries (`glossary-registry.json`, `encyclopedia-graph.json`, `quant-timeseries.json`, `real-macro-indicators.json`, `daily-brief-latest.json`, `hyperstition-meta.db` FTS5, and `72` archive dossiers). Missing/private/holiday fields report `"No data available"` (`null`), and `hs_ask_chatbot` is automatically swept under simulated `ProtectSystem=strict` (`EROFS`) by `src/hyperstitionstud_io/ci/erofs_harness.py`.
4. **Two-Script Deployment Invariant Preserved:**
All assets, symlinks (`/chat`), and tests are wired into `/workspace/push-all-to-git-libre-audio.sh` and `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` so deployment requires no additional manual operator steps.
- **Target Modules & Web Surfaces:**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/chatbot.py` (`answer_chatbot_query()` 8-intent router + SQLite FTS5 BM25 retriever + multi-tool orchestrator)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py` (Registers `hs_ask_chatbot` in `MCP_TOOLS_SCHEMA`)
- `/workspace/hyperstitionstudio-core/site/assets/hs-chatbot-widget.js` (Lightweight `< 16 KB` dockable Group 3 Stealth Basalt chatbot drawer injected across `/`, `/quant/`, `/learn/`, `/engineering/*`, and `/math/*`)
- `/workspace/hyperstitionstudio-core/site/chat/index.html` (Full-screen split-pane `/chat/` Corpus & Telemetry Query Workbench with live JSON/CIDv1 & Stats-Card inspector)
- `/workspace/hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css` (Group 3 Stealth Basalt styling for `#hsChatbotToggleBtn`, `#hsChatbotDrawer`, and `/chat/`)
- `/workspace/hyperstitionstudio-core/deploy/{sync-vps-repos.sh,test-first-deployment.sh}` & `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
---
## 1. Local Server-Side Question-Answering Architecture (`src/hyperstitionstud_io/mcp/chatbot.py`)
When the browser sends a user question `q` to `POST /api/v1/tools/hs_ask_chatbot` (or `GET /api/v1/tools/hs_ask_chatbot?query=...`), `answer_chatbot_query(query, page_context, lens, include_card)` executes a deterministic 3-stage pipeline in `< 15 ms`:
```text
[User Question q in Browser]
│
▼ POST /api/v1/tools/hs_ask_chatbot (Caddy -> 127.0.0.1:8095 hyperstition-mcp.service)
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│ Stage 1: Deterministic Intent & Entity Extractor (Regex + Watchlist/Glossary/Coord Matcher) │
│ Extracts: ticker symbols (NVDA..ANTHR-PVT), AQ integers (1..999), FRED slugs (CPI..INDPRO), │
│ quoted phrases ("..."), and intent keywords (price, dose, card, macro, brief, define, aq). │
└───────────────────────────────────────────────┬───────────────────────────────────────────────┘
│
▼
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│ Stage 2: Server-Side Tool & SQLite FTS5 Orchestration (100% Read-Only under EROFS) │
│ • Intent 1 (Ticker / Price / Dose / Stats Card) -> hs_inspect_quant_timeseries + cards.py │
│ • Intent 2 (Macro / Rates / CPI / M2 / GDP / Brief) -> hs_inspect_macro_indicators + brief │
│ • Intent 3 (Calculate AQ / Ingglish / Prime / Mod-9) -> hs_evaluate_aq_and_ingglish │
│ • Intent 4 (Define Term / S1-S6 / M1-M7 / G1-G6 / ETI) -> hs_search_glossary_encyclopedia │
│ • Intent 5 (Graph Node / Hub / Coordinate aq:N) -> hs_query_knowledge_graph │
│ • Intent 6 (333/666/777 Equations / News Dossier) -> hs_search_archive_equations │
│ • Intent 7 (Guile Scheme / Z-Combinator / Novice Track) -> guile_prelude + /learn/ ladder │
│ • Intent 8 (Open-Ended Question Fallback) -> SQLite FTS5 BM25 search across catalog tables │
└───────────────────────────────────────────────┬───────────────────────────────────────────────┘
│
▼
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│ Stage 3: Grounded Response Composer (Zero Hallucination, Full Citation & CIDv1 Provenance) │
│ Returns: { answer_markdown, summary_bullets, detected_intent, invoked_tools, │
│ citations: [{label, url}], stats_card_preview, data_available, ipld_cidv1 } │
└───────────────────────────────────────────────────────────────────────────────────────────────┘
```
### 1.1 Detailed Behavior of the 8 Server-Side Intent Handlers
| Intent ID | Example User Questions Answered Locally | Server-Side Data Sources Queried | Structured Output Returned to GUI |
| :--- | :--- | :--- | :--- |
| **`1. ticker_and_card`** | • *"What is NVDA's latest price and Confluence Dose?"*<br/>• *"Show me the stats card for SOL-USD"*<br/>• *"What is ANTHR-PVT's price?"* | `site/quant/quant-timeseries.json` + `quant/cards.py` (`35 ms` fast-path) | • Real close (`$135.40`), `change_bps`, `Vol20d`, `Dose 0..3+` taxon label, 6 TierZoo base stats, optional inline `900×1260` PNG card preview, and deep links to `/quant/` & `/graph/`.<br/>• For `ANTHR-PVT`: *"No market data available (private entity — 0 synthetic bars)."* |
| **`2. macro_and_regime_brief`** | • *"What are the current Fed rates and M2 spread?"*<br/>• *"What is today's Bayesian market regime and key question?"*<br/>• *"What is the latest CPI and PPI?"* | `site/quant/real-macro-indicators.json` + `site/quant/daily-brief-latest.json` | • Live 3-state Bayesian posteriors (`R1`, `R2`, `R3`), active Daily Key Macro Question $Q_t$, and exact FRED series values (`EFFR = 388 bps`, `SOFR = 398 bps`, `M2-M1 = $3.37T`, `GDP`, `CPI`, `PPI`) with native cadence metadata. |
| **`3. aq_and_ingglish_eval`** | • *"What is the AQ and Ingglish of 'abstract machine'?"*<br/>• *"Evaluate 'hyperstition'"* | `ciphers/aq.py` + `phonetics/__init__.py` (`4,943` offline CMUdict + fallback rules) + `encyclopedia-graph.json` | • `Gen 0` (`eng_aq`), `Gen 1` (`ing_aq` + Ingglish spelling), phonemic drift $\Delta$, prime rank $\pi(n)$, mod-9 digital root, and any matching specimens at that AQ coordinate. |
| **`4. glossary_and_zoology`** | • *"What is Vector G1?"*<br/>• *"Explain The Room Filter"*<br/>• *"What are the S+ Apex builds in the ETI tier list?"* | `taxonomy/glossary-registry.json` (`282` terms, `190` bilingual specimens) + `assemblage-builds-tier-list.json` | • Concise definition, ontological division (`Div 00–08`), verbatim grounded quote, ETI score, and clickable `#page=N&search=...` deep-link to `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf`. |
| **`5. knowledge_graph_hub`** | • *"What connects to coordinate 292 or 666?"*<br/>• *"Inspect node aq:333"* | `encyclopedia-graph.json` (`388` nodes, `1,282` edges) | • Node type, degree centrality, incident `G1–G5` edges, guild membership, and `[ Open in /graph/?select=aq:N ]` deep-link. |
| **`6. archive_equations_and_news`** | • *"Show me archive equations that equal 333 or 666"*<br/>• *"What is in the latest news dossier?"* | `ingglish-aq-archive/01..72-*.md` | • Matching verified `Gen 1 [Ingglish] = 333/666/777` equations with dossier numbers and `/api/v1/dossiers/{N}?highlight=...` links. |
| **`7. guile_scheme_and_curriculum`** | • *"How does the Z combinator work in Guile Scheme?"*<br/>• *"Where should a novice start?"* | `publishing/guile_prelude.scm` + `engineering-manifest.json` + `math-manifest.json` | • Explains the `Z` combinator (`z-calculus-scheme`) or Novice Prerequisite Ladder, with links to `/learn/`, `/math/`, and `/engineering/`. |
| **`8. sqlite_fts5_fallback`** | • Any free-form question across the 6 repositories | `.cache/hyperstition-meta.db` (`sqlite_meta.py` FTS5 tables + JSON fallback) | • Top-ranked corpus matches with verbatim snippets and deep links (or explicit `"No matching corpus record found"` with `0` hallucination). |
---
## 2. Review of Pros and Cons of Chatbot Placement on the Homepage (`/`) vs. Elsewhere & Default Choice (`Option 2`)
### 2.1 Baseline for Comparison Prior to Review
- **In the Live Codebase (`v2.2.2`):** No web chatbot GUI exists on any page; the backend Chatbot OpenAPI 3.1.0 REST Adapter (`/api/v1/tools/*`) and MCP server (`/mcp` on `127.0.0.1:8095`) run headlessly while the homepage (`/workspace/hyperstitionstudio-core/site/index.html`) is a pure, static 6-Card Portal (`< 18 KB` HTML, `0` external JS state machines).
- **In the Initial Draft of This Plan:** Originally proposed a Dual-Surface layout injecting a floating dockable widget (`site/assets/hs-chatbot-widget.js`) across `/`, `/quant/`, `/learn/`, `/engineering/*`, and `/math/*` alongside a dedicated `/chat/index.html` workbench.
### 2.2 Pros of Placing the Chatbot on the Homepage (`/`) Rather Than on Subpages
1. **Immediate "Concierge / Wayfinder" Discovery for First-Time Visitors:** A visitor landing on `https://hyperstitionstud.io/` encounters 6 dense domain cards (`388` graph nodes, `22` encyclopedia PDFs, `ETI` tier lists, `24` quant tickers, `FRED` macro series, `/engineering/`, `/math/`). Having the chatbot accessible from `/` lets a newcomer ask *"Where should I start?"* or *"What is NVDA's latest price and Dose?"* and receive a direct deep-link.
2. **Zero Floating-Drawer Collisions with Subpage Workbenches:** The subpages already host dense, specialized interactive overlays in the viewport corners (`/engineering/*` and `/math/*` have the dockable `#hsGuileReplDrawer` and 5-state `#hsPolyglotModeSelector`; `/quant/` has `#quantInfoPopover` and the `410px` canvas; `/graph/` has the full-viewport force/radar explorer). Keeping the chatbot off those subpages prevents overlapping drawers and z-index clutter.
3. **Single-Surface Maintenance & Smaller Subpage Footprint:** Avoids injecting chatbot JS/DOM into 16+ subpage HTML templates and multiple Python compilers (`engineering_docs.py`, `math_docs.py`).
### 2.3 Cons of Placing an Embedded/Floating Chatbot Widget Directly on the Homepage (`/`) Rather Than on a Dedicated `/chat/` Subpage
1. **Risk to the Homepage's Clean 6-Card Grid & Group 3 `90/7/3%` Sensory Budget:** `site/index.html` is a balanced `2 × 3` (6-card) grid with zero JavaScript state machines. Adding an embedded chat panel or floating drawer directly onto `/` would either break the 6-card symmetry or obscure Cards `05` and `06` on laptop/mobile screens, consuming part of the strict `7%` `#38bdf8` interactive highlight budget on `/`.
2. **Loss of Context-In-Place When Reading Deep Subpages:** If the chatbot only lived as an inline widget on `/`, a user reading `/quant/` or `/math/` would have to navigate back to `/` anyway (whereas a dedicated `/chat/` subpage can be kept open in a companion tab).
3. **Constrained Screen Real Estate for Rich Outputs (`900×1260` Stats Cards & Raw JSON/CIDv1 Provenance):** A small corner widget on `/` is far too cramped to comfortably render a `900×1260` Ticker Stats Card PNG preview, a table of `333/666/777` archive equations, and an expandable IPLD `dag-json` `CIDv1` provenance receipt side-by-side.
### 2.4 Comparison of the 3 Placement Options & Designation of Option 2 as the Default Choice
| Placement Option | Homepage (`/`) Impact | Subpage (`/quant/`, `/math/`, `/engineering/`) Impact | Status |
| :--- | :--- | :--- | :---: |
| **Option 1 (Homepage `/` Widget Only — Collapsed Drawer on `/`, Zero Subpage Injection)** | Adds a floating drawer/bar to `/` (`site/index.html`). | Zero clutter on subpages (`0` collision with `#hsGuileReplDrawer` or `#quantInfoPopover`). | Alternative |
| **Option 2 (DEFAULT CHOICE: Dedicated `/chat/` Subpage Only + Single Header Button on `/`)** | **Keeps `/` 100% pure static HTML** (adds only one `Ask Corpus (/chat/)` button in `<header>`). | **Zero clutter on subpages; full-screen split-pane space on `/chat/index.html` for `900×1260` cards & JSON/CIDv1 receipts.** | **DEFAULT** |
| **Option 3 (Initial Draft: Floating Widget on `/` + All Subpages + `/chat/`)** | Adds floating widget to `/` plus `/chat/` link. | High risk of corner-drawer collision with `#hsGuileReplDrawer` on `/engineering/` & `/math/` and `#quantInfoPopover` on `/quant/`. | Superseded |
### 2.5 Specification of the Default Option 2 (`/chat/index.html` Full-Screen Split-Pane Workbench)
- Accessible at `/chat/index.html` via a single `34px`-height Group 3 Stealth Basalt header button (`Ask Corpus (/chat/)`) on `/workspace/hyperstitionstudio-core/site/index.html` (with `0` floating widget scripts injected into `/`, `/quant/`, `/learn/`, `/engineering/*`, or `/math/*`).
- Provides a 2-column Group 3 Stealth Basalt layout:
- **Left Column (`60%`):** Full conversational Q&A history, categorized prompt library across all 8 intents (Watchlist Tickers, FRED Macro & Bayesian Brief, Base-36 & Ingglish Calculator, Glossary & Zoology, Knowledge Graph Hubs, 333/666/777 Archive Equations, Guile Scheme & Z-Calculus, and Novice Onboarding), and exportable `.json` transcript button.
- **Right Column (`40%`):** Live Server-Side Telemetry & Provenance Inspector displaying the triggered MCP tool chain, raw JSON response, IPLD `dag-json` `CIDv1` hash, and any rendered `900×1260` Ticker Stats Card PNG.
---
## 3. Test-Suite & Deployment Integration (`tests/test_core_suite.py`, `erofs_harness.py`, `sync-vps-repos.sh`)
1. **`src/hyperstitionstud_io/ci/erofs_harness.py`:**
- Because `hs_ask_chatbot` is registered in `MCP_TOOLS_SCHEMA` (bringing the total MCP tool count from `15` to `16`), `run_introspective_erofs_suite()` **automatically** sweeps `hs_ask_chatbot` under simulated `ProtectSystem=strict` (`EROFS`) with zero extra harness code!
2. **`tests/test_core_suite.py`:**
- Test `hs_ask_chatbot` across all 8 intent families via `dispatch_rest_v1("GET", "/api/v1/tools/hs_ask_chatbot?query=...")` and `POST /api/v1/tools/hs_ask_chatbot`:
- Verify `NVDA` ticker query returns real close `$135.40` and `data_available: True`,
- Verify `ANTHR-PVT` query returns `data_available: False` and `"No data available"` (`0` synthetic data),
- Verify FRED macro & Bayesian brief query returns `EFFR = 388 bps` and valid posterior simplex sum `== 1.0`,
- Verify AQ/Ingglish query on `"schizoanalysis"` returns `eng_aq = 264`, `ing_aq = 292`,
- Verify glossary query on `"Vector G1"` returns a valid `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=` deep-link.
- Verify `0` new bespoke routes were added to `rest.py` (all chatbot queries flow through `/api/v1/tools/hs_ask_chatbot` and `/mcp`).
3. **`deploy/sync-vps-repos.sh` & `deploy/test-first-deployment.sh`:**
- Add `${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/chat" "${LIVE_REPOS}/chat"` to Step `[3/5]` of `deploy/sync-vps-repos.sh`.
- Add `/chat/index.html` and `/assets/hs-chatbot-widget.js` to `ROUTES=()` in `deploy/test-first-deployment.sh` and `hs-public-smoke` Gate `P1`/`P6`.
Binary file not shown.
+1 -1
View File
@@ -74,4 +74,4 @@ Currently, `/workspace/memes` is an un-remoted local directory in `/workspace`.
### Phase 3: Wire into `deploy/sync-vps-repos.sh`, `test-first-deployment.sh` & `test_core_suite.py`
1. Add `${SUDO} ln -sfn "hyperstitionstudio-core/site/gallery" "${LIVE_REPOS}/gallery"` in `deploy/sync-vps-repos.sh`.
2. Add `/gallery/index.html` and `/gallery/gallery-data.js` to `deploy/test-first-deployment.sh` and `tests/test_core_suite.py`, verify `HTTP 200 OK` across all routes, commit, and push via `/home/m00t/hermes/workspace/push-all-to-git-libre-audio.sh`.
2. Add `/gallery/index.html` and `/gallery/gallery-data.js` to `deploy/test-first-deployment.sh` and `tests/test_core_suite.py`, verify `HTTP 200 OK` across all routes, commit, and push via `/workspace/push-all-to-git-libre-audio.sh`.
Binary file not shown.
@@ -0,0 +1,147 @@
# PLAN: Migrate Final `00:00 UTC` Exegesis Cronjob (`d28b479ec217`) Off `localhost` with First-Class Dual-Mode Support, Offline-First Execution & Anonymous BTC/XMR Token-Budget Funding
**Document ID:** `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING`
**Status:** `DEFERRED (Long-Term Inactive — Preserved for Future Reference)`
**Target Ecosystem Version:** `v2.4.0`
**Target Repositories:** `hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Executive Summary & Architectural Objective
Following `PLAN-MIGRATE-PERIODIC-DATA-PRODUCTION-FROM-LOCALHOST-TO-VPS` (`v2.0.30`) and `PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO` (`v2.1.0`), only **one** recurring job remained on `localhost`:
- **`d28b479ec217` (`current-events-isopsephic-exegesis-daily-0000-gmt`, `00:00 UTC` / `19:00 EST` Daily)** — which runs `collect_news_aq.py` (Step A, `0` tokens), synthesizes the daily news-wire dossier `<NN>-dossier-news-YYYY-MM-DD.md` under Division `08` *"The Room Filter"* (Step B), and runs `ci_provision_ingglish.py --tier 2 --apply-repo` (Step C, `0` tokens).
This plan completes the migration of the **final recurring cronjob (`d28b479ec217`) off `localhost` onto `hyperstitionstud.io`**, while:
1. **Preserving the current `localhost` Hermes configuration (`execution_mode = "localhost_hermes"`) as a first-class, one-switch option**,
2. **Enforcing `hyperstitionstud.io`'s Offline-First, Zero-External-Network-Dependencies ethos** via a 3-Tier Synthesis Hierarchy (`Tier 1: Offline Local GGUF Weights via llama.cpp` $\rightarrow$ `Tier 2: Optional Anonymous BTC/XMR-Funded Prepaid API` $\rightarrow$ `Tier 3: 100% Deterministic Zero-Token Structural Dossier Compiler`), so that `<NN>-dossier-news-YYYY-MM-DD.md` is guaranteed to compile at `00:00 UTC` even with **zero external LLM API keys, zero cloud tokens, and zero internet access to LLM providers**, and
3. **Integrating an Anonymous BTC (`bc1q...`) & Monero (`XMR` `83ZC...`) Token-Budget & Compute Funding Architecture** connected to `/donate/index.html` (`site/donate/reactor-fuel-status.json`), with strict Zero-Synthetic-Data compliance (`"No data available"` whenever live wallet/credit telemetry is absent).
---
## 2. Three First-Class Execution Topologies (`[exegesis] execution_mode` in `workspace.toml`)
Both `/workspace/workspace.toml` and `/workspace/hyperstitionstudio-core/workspace.example.toml` gain a declarative `[exegesis]` configuration section supporting three first-class operational modes without code edits:
| `execution_mode` Value | Where `00:00 UTC` Exegesis Runs | Status of `localhost` Hermes Cronjob `d28b479ec217` | Synthesis Engine Hierarchy (`hs-exegesis-run`) | External LLM API Dependency |
| :--- | :--- | :--- | :--- | :--- |
| **`"vps_offline_first"` (New Default — Moves Final Cronjob Off `localhost`)** | **`hyperstitionstud.io` VPS** (`hyperstition-utc-rollover-harvest.timer` at `00:00 UTC` Daily) | **Decommissioned / Removed on `localhost`** (`cronjob_manage(action="remove", job_id="d28b479ec217")`, leaving **`0` cronjobs on `localhost`**) | **1.** Local offline GGUF model (`/var/lib/hyperstitionstud.io/models/*.gguf` via `llama-cli --offline`) if present;<br/>**2.** Deterministic Zero-Token Structural Dossier Compiler (`compile_deterministic_news_dossier()`, `0` LLM tokens) | **`0` External LLM Network Calls / `0` API Keys** |
| **`"vps_crypto_funded"` (Autonomous VPS with BTC/XMR Prepaid Token Budget)** | **`hyperstitionstud.io` VPS** (`hyperstition-utc-rollover-harvest.timer` at `00:00 UTC` Daily) | **Decommissioned / Removed on `localhost`** (`0` cronjobs on `localhost`) | **1.** Checks anonymous BTC/XMR-funded prepaid credit ledger (`/etc/hyperstitionstud.io/exegesis-budget.env`, capped at `<= 35,000` tokens/day);<br/>**2.** Automatic zero-downtime fallback to `vps_offline_first` (`local_gguf` $\rightarrow$ `deterministic_structural`) if budget is `$0.00` or offline | Optional isolated `00:00 UTC` call when funded; `100%` offline fallback guaranteed |
| **`"localhost_hermes"` (Preserved First-Class Current Configuration)** | **`localhost` Hermes Agent** (`d28b479ec217` at `00:00 UTC` Daily, pushing to `git.libre.audio`) | **Active on `localhost`** (restorable in one command via `hs-exegesis-run --print-localhost-cron-spec`) | Localhost Hermes agent writes `<NN>-dossier-news-YYYY-MM-DD.md` and pushes to `git.libre.audio`; if `localhost` is asleep past `00:20 UTC`, VPS `run-vps-archive-rotation.sh` optionally backfills via `vps_offline_first` | Metered on `localhost` only; `0` keys on VPS |
---
## 3. Aligning Exegesis with the Offline-First, "Zero External Network Dependencies" Ethos (`src/hyperstitionstud_io/publishing/exegesis_runner.py`)
Why did `d28b479ec217` previously require an LLM agent? Only **Step B** (arranging the already-solved `collect_news_aq.py` `333 / 666 / 777` equations and story clusters into the Markdown dossier `<NN>-dossier-news-YYYY-MM-DD.md` and appending a row to `00-index-and-methodology.md`) used an LLM.
By introducing `src/hyperstitionstud_io/publishing/exegesis_runner.py` (`hs-exegesis-run` CLI & MCP tool `hs_inspect_exegesis_runner_status`), Step A, Step B, and Step C are unified into a deterministic, idempotent pipeline with a **3-Tier Offline-First Synthesis Hierarchy**:
### Tier 1: Airgapped Local CPU GGUF Weights (`synthesis_backend = "local_gguf"`, `0` External Network Calls)
- When a local quantized GGUF weight file (e.g., `Qwen2.5-7B-Instruct-Q4_K_M.gguf` or `Llama-3.1-8B-Instruct-Q4_K_M.gguf`) and `llama-cli` (`llama.cpp`) are present at `/var/lib/hyperstitionstud.io/models/`, `hs-exegesis-run` invokes `llama-cli` inside a network-isolated subprocess (`bwrap --unshare-net` when available).
- Every equation `(word, ing, eng_aq, ing_aq, breakdown = 333/666/777)` is injected from `collect_news_aq.py` as an immutable table block and verified post-generation by `ci_provision_ingglish.py` Gate 4 (`aq_mismatches == 0`).
### Tier 2: Deterministic Zero-Token Structural Exegesis Compiler (`synthesis_backend = "deterministic_structural"`, `0` LLM Tokens, `< 150 ms`)
- When no local GGUF model and no prepaid API token budget are configured, `compile_deterministic_news_dossier()` compiles `<NN>-dossier-news-YYYY-MM-DD.md` directly in pure Python (`0` LLM tokens, `0` external network calls):
1. Ingests the dated story clusters and verified `333 / 666 / 777` `eng_aq` and `ing_aq` equation locks from `news-aq-harvest-YYYY-MM-DD.json` (or cached local RSS/Wikipedia corpus).
2. Runs `hs_classify_singularity` across each story cluster to assign exact Landian-Deleuzean Singularity Classes (`S1–S6`), `S×S6` Double Articulation flags, and Two-Gate state-matched `M1–M7+` memetic activations.
3. Computes exact `G1` intergenerational variance collapse ($\Delta\sigma^2_{\text{G1}} = \sigma^2_0 - \sigma^2_1$), `G3` quantized steps, `G4` isometric fixed points ($\Delta = 0$), and `G5` twin-prime mutations for every equation lock.
4. Renders the complete Division `08` *"The Room Filter"* Markdown dossier (including YAML/header metadata, Story Cluster Analysis, Verified `333 / 666 / 777` Equation Ledger, Cross-Scale `S1–S6` & `Dose 0..3+` Market Confluence Table, and Grounded Citation Sources `[1]..[k]`), updates `00-index-and-methodology.md`, and runs `ci_provision_ingglish.py --tier 2 --apply-repo`.
5. **Explicit UI Provenance Tag:** Every dossier compiled in `deterministic_structural` mode carries the header badge `Synthesis Mode: DETERMINISTIC_ZERO_TOKEN_STRUCTURAL (0 LLM Tokens)` so readers and downstream tools know its exact provenance.
### Tier 3: Optional Anonymous Crypto-Funded Prepaid API (`synthesis_backend = "crypto_funded_api"`)
- Opt-in only when `/etc/hyperstitionstud.io/exegesis-budget.env` is populated and `remaining_tokens_budget >= 35000`; automatically degrades to Tier 1 or Tier 2 on any network error, `HTTP 402`, or budget exhaustion.
---
## 4. Anonymous BTC & Monero (XMR) Funding Architecture for the Exegesis Token & Compute Budget
`hyperstitionstud.io/donate/` already publishes two sovereign, zero-tracker contribution channels:
- **Bitcoin (`BTC // Layer-1`):** `bc1qcgkpl0j2ayxd68haeutfvarjgla2lmz30yd23e` (`AQ("bitcoin") = 152`)
- **Monero (`XMR // Zero-Trace`):** `83ZCDY7YpUHJRwwj4ETL2THYYWVxWti6sbyxvdJ7kGBoWyKR2Wt4of6YyFjmjZqJCjYSwKdWkBK36dhsNzrnwbnvMajDaEJ` (`193`, 44th Prime)
### 4.1 Token Economics of the Daily `00:00 UTC` Exegesis Job
- **Cadence:** `1` run per day (`365` runs/year).
- **Token Footprint (when using LLM synthesis):** `~18,000` input tokens + `~4,000` output tokens = `~22,000` tokens/day (`~660,000` tokens/month).
- **Monthly Cost Envelope:**
- **Pathway A (`vps_offline_first` — Deterministic or Local GGUF):** **`$0.00 / month` marginal token cost** (`100%` covered by existing VPS base lease).
- **Pathway B (`vps_crypto_funded` — Open-Weight / Frontier API via Anonymous XMR/BTC Gateway):** **`~$0.20 to $1.85 USD / month` (`~$2.40 to $22.00 USD / year`)**. A single `$10` equivalent contribution in XMR or BTC funds **5 to 48 months** of daily `00:00 UTC` exegesis runs.
### 4.2 Evaluation of Anonymous Crypto-to-Token & Crypto-to-Compute Pathways
| Pathway | Mechanism | Privacy & KYC Profile | Alignment with Offline-First / Zero-External-Deps Ethos | Recommended Role |
| :--- | :--- | :--- | :--- | :--- |
| **1. Direct XMR/BTC VPS Compute Funding + Local GGUF (`Pathway C1`)** | Patron BTC/XMR funds the VPS host directly (e.g. privacy-native hosts accepting XMR/BTC with zero KYC); exegesis runs locally via `llama.cpp` or `deterministic_structural`. | **Maximum (Zero KYC, Zero External API Traffic, Zero Prompt Logging)** | **100% Aligned:** `0` outbound network requests during Step B exegesis; works on an airgapped LAN. | **Primary Default (`vps_offline_first`)** |
| **2. Anonymous XMR / BTC-Lightning Prepaid Inference Gateways (`Pathway C2`: NanoGPT / PPQ.ai / L402 Macaroons)** | Non-KYC inference gateways (`nano-gpt.com` native XMR/BTC deposit, `ppq.ai` Lightning/XMR, or HTTP `402 Payment Required` L402 Lightning Macaroons) issue a bearer credential or per-call preimage funded directly from a Monero subaddress or Lightning channel. | **High (No account identity, email, or credit card; XMR ring-CT shields sender/receiver graph)** | **Opt-In Secondary (`vps_crypto_funded`):** Outbound HTTPS call occurs only once per 24h inside one-shot `hyperstition-exegesis.service` (never inside `hs-mcp`), with instant fallback to `Pathway C1`. | **First-Class Opt-In for Cloud-Model Prose** |
| **3. Watch-Only / View-Key Local Budget Ledger (`Pathway C3`: `reactor-fuel-status.json`)** | Operator or offline view-only wallet (`monero-wallet-cli --view-only` / BTC descriptor) exports a signed static JSON receipt (`site/donate/reactor-fuel-status.json`) consumed by `hs-exegesis-run` and `/donate/`. | **Maximum (`0` private spend keys ever touch the VPS; `0` third-party blockchain explorer scripts in the browser)** | **100% Aligned:** Browser loads only local static `reactor-fuel-status.json` from `tmpfs` (`0` external RPC calls from visitor browsers). | **Canonical Telemetry & Budget Governor** |
### 4.3 Security & Isolation Invariants for Crypto-Funded Credentials
1. **Zero Private Spend Keys on VPS:** Neither the BTC private key nor the XMR private spend key is ever stored on `hyperstitionstud.io` or in any Git repository. Only public addresses (`bc1q...`, `83ZC...`) and static signed budget receipts (`site/donate/reactor-fuel-status.json`) exist in the webroot.
2. **Process & Environment Isolation:** When `execution_mode = "vps_crypto_funded"` is used, the prepaid token key resides exclusively in `/etc/hyperstitionstud.io/exegesis-budget.env` (`chmod 0600 root:root`), read only by the one-shot `00:00 UTC` runner—never passed to `hyperstition-mcp.service` (`:8095`) or Caddy.
3. **Hard Daily Token Circuit-Breaker (`MAX_DAILY_EXEGESIS_TOKENS = 35,000`):** `hs-exegesis-run` tracks daily token usage in `/var/lib/hyperstitionstud.io/exegesis-budget-state.json`. If a run exceeds the daily cap or the prepaid balance is exhausted (`available_usd_equivalent <= 0`), it automatically switches to `vps_offline_first` (`local_gguf` $\rightarrow$ `deterministic_structural`) so the `00:00 UTC` dossier never fails.
4. **Strict Zero-Synthetic-Data Rule on `/donate/`:** In `site/donate/reactor-fuel-status.json` and `/donate/index.html`, if live wallet/credit balance telemetry has not been populated (`data_available: false`), all balance and runway fields serialize strictly as `null` (`"No data available"`)—never simulated or fabricated numbers.
---
## 5. Step-by-Step Implementation Specification
1. **Create `src/hyperstitionstud_io/publishing/exegesis_runner.py` (`hs-exegesis-run` CLI):**
- Implements:
- `run_daily_exegesis_pipeline(date_utc=None, execution_mode=None, synthesis_backend=None, dry_run=False)`:
- **Idempotency Gate:** Checks whether `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/<NN>-dossier-news-YYYY-MM-DD.md` already exists for `target_date_utc`. If present (e.g. already pushed by `localhost` in `localhost_hermes` mode), logs `"already_synthesized": True` and proceeds directly to Step C verification (`0` duplicate work).
- **Step A:** Runs `collect_news_aq.py --date YYYY-MM-DD` (`0` tokens).
- **Step B:** Dispatches according to `[exegesis] execution_mode` and `synthesis_backend` (`local_gguf` $\rightarrow$ `crypto_funded_api` [if enabled & funded] $\rightarrow$ `deterministic_structural`).
- **Step C:** Runs `ci_provision_ingglish.py --tier 2 --apply-repo`, verifies all 4 CI gates (`aq_mismatches == 0`), and updates `site/donate/reactor-fuel-status.json`.
- `--print-localhost-cron-spec`: Prints the exact `cronjob_manage` JSON specification for `d28b479ec217` so an operator can restore `localhost_hermes` mode in one step at any time.
2. **Wire `hs-exegesis-run` into `deploy/run-vps-data-production.sh --window=utc-rollover` (`00:00 UTC` Daily on VPS):**
- Before recomputing `timeseries.py`, `hs-daily-brief`, and `build_encyclopedia_knowledge_graph.py`, `run-vps-data-production.sh --window=utc-rollover` invokes `hs-exegesis-run --auto` so the new UTC day's news dossier `<NN>-dossier-news-YYYY-MM-DD.md` is synthesized, verified by `ci_provision_ingglish.py`, and committed/pushed to `git.libre.audio` autonomously on `hyperstitionstud.io`.
3. **Decommission `d28b479ec217` on `localhost` (`Rule A` Source-Decommissioning) While Preserving First-Class Re-Enablement:**
- Remove `d28b479ec217` from the active `localhost` Hermes cron scheduler via `cronjob_manage(action="remove", job_id="d28b479ec217")` when activating `execution_mode = "vps_offline_first"`, bringing `localhost` recurring cronjobs from `1` down to **`0`**.
- Update `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` with the 3-mode switch table (`vps_offline_first`, `vps_crypto_funded`, `localhost_hermes`), one-command restoration instructions, and **SOP 3: Explicit `localhost` Exegesis Push & VPS Reflection Procedure** (detailed in Section 6 below).
4. **Add Static Reactor Fuel & Exegesis Mode Readout to `/donate/index.html` & `MCP_TOOLS_SCHEMA`:**
- Create `site/donate/reactor-fuel-status.json` (`data_available: false`, `status: "No data available"` for unpopulated balances; live introspection of `execution_mode`, `synthesis_backend`, `btc_address`, `xmr_address`, and `daily_token_cap: 35000`).
- Expose `reactor-fuel-status` via `hs_query_workspace_catalog_and_release_state` and `/donate/index.html`.
5. **Verification Gates (`tests/test_core_suite.py` & `deploy/test-first-deployment.sh`):**
- Test `compile_deterministic_news_dossier()` in `tests/test_core_suite.py` inside a temporary directory and under simulated `ProtectSystem=strict` (`EROFS`), verifying 4-gate `ci_provision_ingglish.py` compliance (`0` AQ mismatches, `0` external network calls, `0` LLM tokens) and strict `"No data available"` behavior on unpopulated wallet balances.
---
## 6. Explicit Documentation Plan for the `localhost` Exegesis Push Procedure in `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}`
### 6.1 Audit of Extant Operator PDFs
An audit of all extant Operator's Manual PDFs confirmed a documentation gap:
- In `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}`, Section 1 (Row 1) and Section 3 (`SOP 1: Running or Backfilling d28b479ec217 for a Specific UTC Date (YYYY-MM-DD) on localhost`) stop at **Step C** (`ci_provision_ingglish.py --tier 2 --apply-repo`).
- While `SOP 2` mentions in a brief clause that `d28b479ec217` *"backfills the missed UTC news dossier ... and pushes to `git.libre.audio`"*, **neither `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf` nor `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` explicitly documents the step-by-step `localhost` exegesis push procedure**—specifically: which repositories are dirtied by an exegesis run, how downstream time-series/Bayesian artifacts ingest the new dossier's `333 / 666 / 777` equation locks, and the exact commands required to push from `localhost` (`/workspace`) to `git.libre.audio` and reflect the dossier on `https://hyperstitionstud.io`.
### 6.2 Exact Addition to `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` (and Cross-Reference in `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}`)
This plan updates `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.md` and recompiles `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf` via `hs-pdf-build` (`--refresh-all-web-pdfs`) to add **Step D** to the Master Boundary Table and a complete **SOP 3: End-to-End `localhost` Exegesis Push & VPS Reflection Procedure** (strictly using container-relative `/workspace/...` paths):
#### A. Repositories & Files Dirtied on `localhost` by an Exegesis Run (`Steps A–C`)
1. `/workspace/ingglish-hyperdope-gematria`:
- `ingglish-aq-archive/<NN>-dossier-news-YYYY-MM-DD.md` (new Division `08` *"The Room Filter"* dossier),
- `ingglish-aq-archive/00-index-and-methodology.md` (updated master index table & dossier count),
- `ingglish-aq-archive/news-aq-harvest-YYYY-MM-DD.json` (raw deterministic headline + `eng_aq`/`ing_aq` harvest).
2. `/workspace/hyperdope-ci-build` & `/workspace/haiperdohp-jemaytreeah` (via Step C `ci_provision_ingglish.py --tier 2 --apply-repo`):
- `db.txt`, `db_ingglish_entries.txt`, `ci-audit-report.json`, and `ONBOARDING-INGGLISH-AQ.{md,pdf}` (plus untracked `haiperdohp-jemaytreeah/db.json` and `db_lite.json` when regenerated).
3. `/workspace/hyperstitionstudio-core` (Downstream Time-Series & Bayesian Brief Integration):
- `site/quant/quant-timeseries.json` and `site/quant/quant-timeseries-data.js` (`daily_wire_series` and `Dose 2 / Dose 3+` intersection counts for `YYYY-MM-DD`),
- `site/quant/daily-brief-latest.json` (5-Agenda Bayesian regime update incorporating the new wire dossier).
#### B. Two Supported Push & Deployment Workflows from `localhost` (`/workspace`)
- **Workflow 1 — Canonical Two-Script Operator Push & Immediate VPS Reflection (Recommended after Manual / Backfill Runs):**
1. **On `localhost` (`/workspace`):** Run the single master topological push script, which automatically recomputes `quant-timeseries.json` and `daily-brief-latest.json` against the new `<NN>-dossier-news-YYYY-MM-DD.md`, runs `hs-sync-version --auto-bump` (`0` LLM tokens), runs all 7 test suites in `tests/test_core_suite.py`, commits all modified repositories, and pushes commits and tags to `git.libre.audio`:
```bash
/workspace/push-all-to-git-libre-audio.sh
```
2. **On `hyperstitionstud.io` (VPS):** Run the single master VPS hydration script to pull from `git.libre.audio`, rebuild untracked `.cache/hyperstition-meta.db` and `haiperdohp-jemaytreeah/db.json`, and sync the RAM-backed `tmpfs` webroot (`/var/www/hyperstitionstud.io/repos`) with `.br` / `.gz` pre-compression:
```bash
sudo /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh
```
- **Workflow 2 — Unattended `00:00 UTC` `localhost_hermes` Push into the `00:20 UTC` VPS Pull Window:**
1. When `execution_mode = "localhost_hermes"` is active, `d28b479ec217` executes `/workspace/push-all-to-git-libre-audio.sh` as its final deterministic **Step D** terminal command (~`00:05 UTC`) after `ci_provision_ingglish.py --tier 2 --apply-repo` passes with `0` AQ mismatches.
2. At `00:20 UTC`, the VPS `/etc/cron.d/hyperstition-archive-rotate` / `hyperstition-archive-rotate.timer` job (`deploy/run-vps-archive-rotation.sh`) automatically pulls the pushed commits from `git.libre.audio` and hydrates `/var/www/hyperstitionstud.io/repos` (`tmpfs`) with zero manual operator intervention.
@@ -0,0 +1,28 @@
# PLAN: Deferred / Unaffirmed Candidate Market-Research Strategies (`Strategies 1C, 3C, 4A, 5C`) Extracted from `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`
**Document ID:** `PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES`
**Status:** `DEFERRED (Long-Term Inactive Piecewise Plan — Preserved for Future Reference)`
**Parent Active Plan:** `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`
**Target Ecosystem Version:** `v2.8.0+`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Executive Summary & Extraction Rationale
During the stepwise Ground-Truth Audit review (`Audit Points 1–5`) of `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`, nine strategies were affirmed for active implementation/retention (`Strategies 1A, 1B, 2A, 2B, 2C, 3A, 3B, 4B, 4C, 5A, 5B`), while **four candidate strategies (`Strategies 1C, 3C, 4A, 5C`)** were left unaffirmed.
Per `Rule C.4` of `hyperstitionstudio-roadmap-and-release` (**Active vs. Inactive Partitioning of Piecewise Plans**), this companion long-term inactive plan preserves those four unaffirmed candidate strategies outside the active build queue so `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY` contains **exclusively affirmed, ready-to-execute deliverables**.
---
## 2. Preserved Unaffirmed Candidate Strategies (`Strategies 1C, 3C, 4A, 5C`)
| Audit Point | Deferred Strategy ID & Name | Mechanism & Target Modules | Why Deferred / Condition for Future Re-Activation |
| :--- | :--- | :--- | :--- |
| **Audit Point 1**<br/>*(Internal Technical & Corpus Inventory)* | **`Strategy 1C` — Schema-Driven Polyglot SDK Distribution (`hs-sdk-build` & `/sdk/`)** | Introspects `MCP_TOOLS_SCHEMA` (`20` tools), `STATIC_RESOURCES` (`14` URN resources), `RESOURCE_TEMPLATES` (`6`), and `/schemas/v1/*.schema.json` via `src/hyperstitionstud_io/sdk/generator.py` (`0` LLM tokens) to emit zero-dependency client libraries (`HyperstitionClient` + `LocalAlgebra`) for Python, TypeScript/ESM, Rust, and GNU Guile Scheme *(tracked in detail in `PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES.{md,pdf}`)*. | **Condition to Activate:** Wait until `Strategy 2A` (`get_api_telemetry_summary()`) and `Strategy 2C` (`--telemetry-history`) record `external_production_requests >= 500` on `/api/v1/*` and `/mcp` so external API demand is empirically proven before maintaining 4 generated client SDKs. |
| **Audit Point 3**<br/>*(Static HTML, PDF & PNG Route Traffic)* | **`Strategy 3C` — Pure Zero-Telemetry Stance for Static Pages** | Leaves all static HTML, PDF, and PNG routes (`69` routes) completely uncounted on the server, relying solely on `/api/v1/*` and `/mcp` tool calls (`Strategies 2A–2C`). | **Superseded by Affirmed `Strategies 3A & 3B`:** Preserved only as a fallback option if the operator ever wishes to disable `Strategy 3A` (`--ingest-caddy-route-counts`) and `Strategy 3B` (`GET /api/v1/status?surface=<slug>`). |
| **Audit Point 4**<br/>*(Patronage Conversion on `/donate/`)* | **`Strategy 4A` — Watch-Only Public BTC Mempool/Block-Explorer Balance Check (`bc1q...`) + Manual Operator XMR View-Key Ledger (`site/donate/reactor-fuel-status.json`)** | Queries a keyless public Bitcoin block explorer for confirmed UTXO balances on `bc1qcgkpl0j2ayxd68haeutfvarjgla2lmz30yd23e` and merges an optional operator-maintained Monero (`XMR`) view-key balance from `/etc/hyperstitionstud.io/exegesis-budget.env` into `site/donate/reactor-fuel-status.json` (`null` / `"No data available"` when offline) *(tracked in detail in `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING.{md,pdf}`)*. | **Condition to Activate:** Deferred alongside `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING`; affirmed `Strategy 4B` (`donate_from` & `donate_copy=BTC\|XMR` in `api_parameter_rollups`) and `Strategy 4C` (`stakeholder-proposal-authoring` + `Strategy 3A` PDF route counters) cover `/donate/` attribution with `0` external network calls. |
| **Audit Point 5**<br/>*(External User Feedback & PMF Qualification)* | **`Strategy 5C` — Opt-In 1-Question Static Feedback Link (`?template=feedback.md` / `mailto`) in Global Footer** | Appends a direct feedback link (`https://git.libre.audio/seasharp/hyperstitionstudio-core/issues/new?template=feedback.md`) to the global `<footer>` across `/`, `/learn/`, `/quant/`, `/donate/`, `/engineering/*`, and `/math/*`. | **Superseded by Affirmed `Strategies 5A & 5B`:** Omitted to keep the global footer clean (`⚚ · ☿ · ☍ · ☉ · ♄ • Made with ♥ by Lemurs` + `☿ RAIN: SUBTLE` toggle) while `Strategy 5A` (Gitea issues/stars/PRs) and `Strategy 5B` (`export_action` revealed-preference counters) capture user signal with zero footer clutter. |
@@ -1,73 +0,0 @@
# Plan: Expose SQLite `/api/v1/meta/*` REST Endpoints, HTTP `ETag` (`304 Not Modified`), `hs_query_sqlite_catalog` MCP Tool & `sync-vps-repos.sh` Hydration (`v2.0.18`)
- **Document ID:** `PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC` (`v2.0.18`)
- **Roadmap Status:** **LONG-TERM INACTIVE PLAN (Deferred)** — Extracted from `PLAN-SQLITE-REST-API-METADATA-DB` and preserved as a long-term architectural specification alongside `PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING`, `PLAN-MEMETIC-GALLERY-SUBPAGE`, and `Episodes 06–09` of *The Encyclopedia Expeditions*; not scheduled for active implementation unless explicitly activated.
- **Prerequisite Module:** `hyperstitionstud_io.db.sqlite_meta` (`hs-db-build` CLI, `hyperstition-catalog.db`, and `api-telemetry.db` automatically populated by `dispatch_rest_v1()` and `dispatch_jsonrpc()`, defined in the active plan `/workspace/encyclopedia-knowledge-graph/docs/PLAN-SQLITE-REST-API-METADATA-DB.{md,pdf}`).
- **Target Modules (When Activated):**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py` & `server.py`
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py`
- `/workspace/hyperstitionstudio-core/deploy/hyperstition-mcp.service`
- `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` & `deploy/test-first-deployment.sh`
---
## 1. Scope of Deferred Integration
Once the standalone `hyperstitionstud_io.db.sqlite_meta` engine (`hyperstition-catalog.db` + `api-telemetry.db`) is built, this long-term plan specifies how to expose it over the public `/api/v1/meta/*` HTTP REST surface and `/mcp` JSON-RPC server and wire automatic RAM-`tmpfs` database hydration into the VPS deployment pipeline:
1. **Five `/api/v1/meta/*` HTTP REST Endpoints:**
Expose `/api/v1/meta/{manifests,search,coordinate/{aq_int},timeseries/query,telemetry}` on `hyperstitionstud_io.mcp.rest` and `server.py`.
2. **HTTP `ETag` / `If-None-Match` (`304 Not Modified`) Conditional Caching Middleware:**
Serve deterministic `ETag` headers backed by `registry_manifests.dag_json_cidv1` (or SHA-256) and short-circuit matching `If-None-Match` requests with `HTTP 304 Not Modified` in `< 0.1 ms`.
3. **MCP Tool `hs_query_sqlite_catalog`:**
Register `hs_query_sqlite_catalog` in `MCP_TOOLS_SCHEMA` (`src/hyperstitionstud_io/mcp/tools.py`) and expose it at `/mcp` (`tools/call`) and `/api/v1/tools/hs_query_sqlite_catalog`.
4. **VPS `tmpfs` Hydration in `deploy/sync-vps-repos.sh` & Systemd Sandboxing:**
Run `hs-db-build` (`"${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build`) inside `deploy/sync-vps-repos.sh` so `/var/www/hyperstitionstud.io/repos/hyperstition-catalog.db` refreshes in the `512 MB` RAM `tmpfs` mount on every pull while keeping `ProtectSystem=strict` and `ReadOnlyIsolationGuard` intact.
---
## 2. `/api/v1/meta/*` REST Endpoints & `hs_query_sqlite_catalog` MCP Tool Specification
### 2.1 REST Endpoints (`src/hyperstitionstud_io/mcp/rest.py`)
| HTTP Method & Path | Query Parameters | What It Queries in SQLite (`< 1 ms`) |
| :--- | :--- | :--- |
| `GET /api/v1/meta/manifests` | `?registry=glossary-registry` (optional) | Calls `query_registry_manifests()` on `registry_manifests` for all compiled schemas/registries, their record counts, `raw_sha256`, `dag_json_cidv1`, and `ETag` headers. |
| `GET /api/v1/meta/search` | `?q=envideea+137&type=all\|glossary\|equation\|node&limit=25` | Calls `query_fts_catalog()` to execute a ranked **FTS5 `BM25` full-text search** across `fts_catalog` (searching glossary terms, 1,850+ equations, 388 graph nodes, and 24 tickers in `< 0.6 ms`). |
| `GET /api/v1/meta/coordinate/{aq_int}` | `aq_int` in `1..999` (e.g. `/api/v1/meta/coordinate/137` or `/api/v1/meta/coordinate/125`) | Calls `query_coordinate_join(aq_int)` for a **Unified Cross-Corpus Coordinate Join**: in a single indexed SQL query, returns every glossary term, bilingual specimen, Knowledge Graph node/edge, `333/666/777` archive equation, and `/quant/` closing-bell bar that locks onto integer coordinate `{aq_int}`. |
| `GET /api/v1/meta/timeseries/query` | `?symbol=NVDA&start=2026-11-10&end=2026-11-30&min_points=1.5` | Calls `query_timeseries_bars()` to execute indexed range queries over `quant_timeseries_bars` (`WHERE symbol = ? AND date_utc BETWEEN ? AND ? AND contingent_points >= ?`). |
| `GET /api/v1/meta/telemetry` | None | Calls `get_api_telemetry_summary()` on `api-telemetry.db`, returning live server uptime, total calls, cache hit rate (`304`), mean/max latency ($\mu\text{s}$) per endpoint, and `100%` isolation verification counts. |
### 2.2 MCP Tool `hs_query_sqlite_catalog` (`src/hyperstitionstud_io/mcp/tools.py`)
- **Tool Name:** `hs_query_sqlite_catalog`
- **Input Schema (`inputSchema`):**
- `mode`: `"manifests" | "search" | "coordinate" | "timeseries" | "telemetry"` (default `"search"`)
- `query`: `str` (FTS5 `BM25` search query when `mode == "search"`)
- `doc_type`: `"all" | "glossary" | "equation" | "node" | "dossier" | "instrument"` (default `"all"`)
- `aq_int`: `int` (`1..999`, required when `mode == "coordinate"`)
- `symbol`: `str` (optional ticker filter when `mode == "timeseries"`)
- `start_date`, `end_date`: `str` (`YYYY-MM-DD` bounds when `mode == "timeseries"`)
- `min_points`: `float` (default `0.0`)
- `limit`: `int` (`1..100`, default `25`)
- **Execution Guarantees:** Runs strictly inside `ReadOnlyIsolationGuard` against `file:/.../hyperstition-catalog.db?mode=ro` (`PRAGMA query_only = ON;`).
---
## 3. HTTP `ETag` / `If-None-Match` (`304 Not Modified`) & VPS Systemd Sandboxing
1. **HTTP `ETag` & `If-None-Match` (`304 Not Modified`) Middleware in `_MCPHTTPHandler` (`mcp/server.py`):**
- Every `GET /api/v1/*` response computes or looks up its deterministic `ETag` (`"<dag_json_cidv1>"` from `registry_manifests` or SHA-256 payload digest).
- If the client sends `If-None-Match: "<etag>"` (or a comma-separated list containing `"<etag>"`), `_MCPHTTPHandler` records a `status_304` hit in `api-telemetry.db` and returns `HTTP 304 Not Modified` with an empty body immediately (`~95%` bandwidth reduction on repeat polls).
2. **Read-Only Catalog DB Hydration in `deploy/sync-vps-repos.sh`:**
- During Step 2 of `deploy/sync-vps-repos.sh`, invoke `"${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build --db "${LIVE_REPOS}/hyperstition-catalog.db"` so the `512 MB` RAM-backed `tmpfs` mount always holds an up-to-date catalog DB after every repository pull.
3. **Preserving `ProtectSystem=strict` & `ReadOnlyIsolationGuard` in `deploy/hyperstition-mcp.service`:**
- Configure `RuntimeDirectory=hyperstition-mcp` (or `PrivateTmp=true` writing to `/tmp/hyperstition-api-telemetry.db`) so `hyperstition-mcp.service` writes `api-telemetry.db` only to an ephemeral tmpfs path while `/srv/hyperstitionstud.io/repos` and `/var/www/hyperstitionstud.io/repos` remain **100% read-only**.
---
## 4. Activation & Verification Checklist (When Promoted from Inactive Backlog)
1. Wire `/api/v1/meta/{manifests,search,coordinate/{aq_int},timeseries/query,telemetry}` and `ETag` / `If-None-Match` (`304 Not Modified`) into `src/hyperstitionstud_io/mcp/rest.py` and `server.py`.
2. Add `hs_query_sqlite_catalog` to `MCP_TOOLS_SCHEMA` in `src/hyperstitionstud_io/mcp/tools.py`.
3. Wire `hs-db-build` into `deploy/sync-vps-repos.sh` and add HTTP checks for `/api/v1/meta/manifests`, `/api/v1/meta/search?q=envideea`, `/api/v1/meta/coordinate/137`, `If-None-Match` -> `304 Not Modified`, and `/api/v1/meta/telemetry` to `tests/test_core_suite.py` and `deploy/test-first-deployment.sh`.
@@ -51,7 +51,7 @@ Operators can supply these three untracked files on the target machine using **e
*(Note: `deploy/sync-vps-repos.sh` checks for `config.js`, `db.json`, and `db_lite.json` automatically and runs both commands if any of the three files is missing).*
- **Option B — Fast `rsync` Transfer of Pre-Built Files from Workstation to VPS (Skips ~3-Min CPU Build):**
```bash
rsync -avP /home/m00t/hermes/workspace/haiperdohp-jemaytreeah/{config.js,db.json,db_lite.json} \
rsync -avP /workspace/haiperdohp-jemaytreeah/{config.js,db.json,db_lite.json} \
<user>@<LINODE_IP>:/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah/
```
Binary file not shown.
+18 -1
View File
@@ -7,7 +7,7 @@
> - **Production VPS & Git Operator Deployment Guide:** `../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` (and `.md`)
> - **Cross-Repository Dependency & Audit Flow Diagram:** `../cross-repo-dependency-and-audit-flow-diagram.html` (and `.png` / `.pdf`)
> - **Concentric ETI Radar (`D Periphery`) Specification:** `../specification-concentric-eti-tier-ring-radar-d-periphery.pdf` (and `.md`)
> - **Active / Deferred Roadmap Plans in `../`:** `../PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION.{md,pdf}`, `../PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`, `../PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}`, `../PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}`, and `../PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` are preserved in `../` as long-term inactive/deferred plans.
> - **Active / Deferred Roadmap Plans in `../`:** `../PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION.{md,pdf}`, `../PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`, `../PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}`, `../PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}`, `../PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.{md,pdf}`, `../PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI.{md,pdf}`, and `../PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` are preserved in `../` as long-term inactive/deferred plans.
---
@@ -50,3 +50,20 @@
| `PLAN-MATHEMATICAL-EXPLICATION-HUB-AND-SUBPAGES.{md,pdf}` | Specification for the live-introspected `/math/` Hub (`M0`) and 5 orthogonal subpages (`M1–M5`) with Novice Prerequisite Ladders and non-sequential revertability (`hs-math-docs`); now implemented in `src/hyperstitionstud_io/publishing/math_docs.py` and `site/math/`. |
| `PLAN-PROGRAMMATIC-VERSION-BUMP-HEURISTICS-ZERO-TOKEN.{md,pdf}` | Specification for zero-LLM-token programmatic semantic version determination (`hs-sync-version --auto-bump` & `--explain-bump`) using change-scope heuristics and plan/skill artifacts; now implemented in `src/hyperstitionstud_io/version_sync.py`. |
| `PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO.{md,pdf}` | Specification for daily `00:20 UTC` cold-archive rotation (`hs-archive-rotate`) and quiescent SQLite telemetry logrotate (`100M` `.1.gz`) on `hyperstitionstud.io` (`deploy/run-vps-archive-rotation.sh`, `deploy/cron.d/hyperstition-archive-rotate`, `deploy/hyperstition-archive-rotate.{service,timer}`, `0` LLM tokens, `0` API keys); now implemented in `deploy/`. |
| `PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS.{md,pdf}` | Specification for the single in-process `ProtectSystem=strict` (`EROFS`) test harness (`src/hyperstitionstud_io/ci/erofs_harness.py`) sweeping all `MCP_TOOLS_SCHEMA` tools, `dispatch_rest_v1` routes, and Contract B builders, plus the `34x` stats-card fast-path (`1,186 ms -> ~35 ms` in `quant/cards.py`); now implemented and cached in `.cache/internal-test-baseline-latest.json`. |
| `PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING.{md,pdf}` | Specification for wiring `Engineering (/engineering/)` and `Applied Math (/math/)` navigation buttons into `site/index.html`, `/learn/index.html`, `/quant/index.html`, and `hs-public-smoke` Gate `P6`; now implemented across all web surfaces. |
| `PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL.{md,pdf}` | Specification for the additive `[ λ GUILE SCHEME LENS: OFF / ON ]` toggle, 6 pedagogical modalities grounded in `z-calculus-scheme` (`guile_prelude.scm`), and the offline in-browser Guile Scheme & Z-combinator REPL (`site/assets/hs-guile-scheme-repl.js`) across `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-ELIMINATE-CONTAINER-HOST-PATHS-AND-TARGET-PUBLIC-WEB-ROUTES.{md,pdf}` | Specification for eliminating all container host path references across scripts, Python modules, `encyclopedia-graph.json`/`graph-data.js` (`304` nodes rewritten to `https://hyperstitionstud.io/encyclopedia/...`), live `.md`/`.pdf` manuals, and cold-rotated `.tar.gz` archives; now implemented and enforced by `test_offline_urn_namespaces_and_no_external_https_fonts()`. |
| `PLAN-POLYGLOT-PROGRAMMING-LENS-GUILE-TYPESCRIPT-RUST-AND-SELECTOR.{md,pdf}` | Specification for the 3-language polyglot pedagogical lens (`λ Guile Scheme`, `TS TypeScript`, `Rs Rust`), `34px` 5-state segmented radiogroup (`#hsPolyglotModeSelector`), and 4-Ring Zero-Escape Sandbox (`polyglot_sandbox.py` & `hs-guile-scheme-repl.js`); now implemented across `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`). |
| `PLAN-ADHOC-MESSENGER-HIGHLIGHTS-SUMMARY-FOR-ENGINEERS-AND-MATH.{md,pdf}` | Specification for the zero-Web-UI, `<= 2` paragraph (`<= 1,100` char) phone-messenger highlights generator (`hs-highlights` CLI & `hs_generate_highlights_summary`, `src/hyperstitionstud_io/publishing/highlights.py`) writing exclusively to `/workspace/untracked/recent-highlights/`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE.{md,pdf}` | Specification for exposing all `/engineering/`, `/math/`, manuals, cold-rotated `.tar.gz` plans, `/learn/`, `/quant/` popovers, polyglot sandbox evaluations, and SQLite FTS5 / release state diagnostics via `MCP_TOOLS_SCHEMA` (`20` tools) and `STATIC_RESOURCES` (`14` resources) with `0` new custom REST routes in `rest.py`; now implemented in `src/hyperstitionstud_io/mcp/{tools,resources}.py`. |
| `PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}` | Specification for SQLite catalog query modes (`manifests`, `fts_search`, `coordinate_join`, `timeseries_bars`, `telemetry`), VPS `tmpfs` catalog hydration in `deploy/sync-vps-repos.sh`, and deterministic HTTP `ETag` (`"<dag_json_cidv1>"`) + `If-None-Match` (`304 Not Modified`) conditional caching middleware in `src/hyperstitionstud_io/mcp/{rest,server}.py`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS.{md,pdf}` | Specification for surgically removing all references to `assert_zero_d_filter`, `Zero-d-Filter`, `d-filter`, and `10-letter decagram` (`nuoagmhysl`) filters from `/engineering/` and `/math/` while preserving 100% of geometric (`d-periphery`), Confluence Dose ($D_{i,t}$), calculus ($d/dx$), and statistical ($df$) uses of `d`/`D`; now implemented in `src/hyperstitionstud_io/publishing/engineering_docs.py` and guarded in `tests/test_core_suite.py`. |
| `PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND.{md,pdf}` | Specification for adapting `haiperdohp-jemaytreeah/calc/coderain.js` and offline `font/matrix-font.woff2` into the Subtle Basalt-Phosphor Cybernetic Code Rain background (`site/assets/hs-matrix-coderain.js` & `site/assets/matrix-font.woff2`, `12.5px` glyphs, `24px` sparse columns, `80 ms` `12.5 fps` descent, center-well reading vignette attenuation, and `SUBTLE / CLASSIC / OFF` `Alt+M` toggle) across `/`, `/learn/`, `/quant/`, `/donate/`, `/engineering/*`, and `/math/*`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS.{md,pdf}` | Specification for the DejaVu-cmap-verified 8-sigil cybernetic & Hermetic/occult micro-vocabulary (`☿`, `☍`, `☉`, `♄`, `⚚`, `⚛`, `∆`/`◈`, `⊗`/`λ`) across Group 3 `.hs-plate-g3::after` corner watermarks, header namespace seals, section kickers, footer colophons, and `hs-matrix-coderain.js` leading-droplet glints; now implemented in `site/assets/hs-group3-basalt-chamfer.css` and verified in `tests/test_core_suite.py`. |
| `PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA.{md,pdf}` | Specification for deterministic root `README.md` synchronization across all 6 repositories (`src/hyperstitionstud_io/publishing/readme_sync.py`, `hs-readme-sync`), the above-the-fold `<!-- HS-COMMIT-STATUS -->` Gitea commit telemetry banner, and idempotent `.git/hooks/pre-commit` hooks across all 6 repositories; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX.{md,pdf}` | Specification for eliminating mixed version strings (`parent HEAD`) and `.strip()` porcelain truncation (`EADME.md`) in `readme_sync.py`, enforcing `set(re.findall(r"\bv(\d+\.\d+\.\d+)\b", txt)) == {CURRENT_VERSION}` across all 6 root `README.md` files, and installing `.git/hooks/commit-msg` across all 6 repositories; now implemented in `src/hyperstitionstud_io/publishing/readme_sync.py` and verified in `tests/test_core_suite.py`. |
| `PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER.{md,pdf}` | Specification for the Proposal A (Option 2 Pure Visual Showcase) `2×2` Persona UI-Closeup Showcase Grid (`site/index.html` + `site/assets/closeups/quadrant-{1..4}-*.png`), non-overlapping single-row right-justified `<header>` navigation bar, removal of `-44` static/duplicate elements (`388 Graph Nodes`, `1,282 Typed Edges`, `24 Quant Tickers`, `.stat-row`, body buttons), and proportional relocation of `24 Watchlist Instruments • 14 FRED Macro Series` to `/quant/index.html`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.{md,pdf}` | Specification for restoring the exact `v2.4.0` `.btn-donate-pill`, `.btn-donate-pill:hover`, `.donate-pill-emblem`, and `.nav-donate-sep` CSS rules (`34px` stadium pill, `padding: 0.28rem 0.9rem 0.28rem 0.35rem`, `gap: 0.45rem`, `font-size: 0.74rem`, 3-stop `#ffd86b -> #f59e0b -> #d97706` gradient, and `20×20` `#0f172a` circular rose-heart emblem) as a Single Source of Truth in `site/assets/hs-group3-basalt-chamfer.css`, removing duplicate inline `<style>` overrides from HTML surfaces, and enforcing non-brittle cross-page structural parity in `tests/test_core_suite.py`; now implemented and verified. |
| `PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.{md,pdf}` | Specification for replacing all synthesized widgets and `"UI CLOSEUP //"` banners in `site/assets/closeups/quadrant-{1..4}-*.png` (`680×260`) with 100% authentic, omission-only proportional renders of the actual live pages (`/calc/`, `/graph/`, `/quant/`, `/learn/`, `/engineering/`, `/math/`); now implemented and verified. |
| `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.{md,pdf}` | Specification for the Zero-Synthetic-Data Piecewise Market Research Strategy (`Affirmed Strategies 1A, 1B, 2A, 2B, 2C, 3A, 3B, 4B, 4C, 5A, 5B`): `--corpus-delta` in `hs-highlights` & `hs-sync-version`, `external_requests` vs `internal_requests` + `N>=500` `"No data available"` gate, `api_parameter_rollups` closed-set allowlist table, `get_longitudinal_telemetry_summary()` (`--telemetry-history` across `.1.gz..12.gz`), zero-IP Caddy `format filter` route counting (`--ingest-caddy-route-counts`), and conditional `ETag` `surface` / `donate_from` / `donate_copy` / `export_action` handshakes; now implemented and verified in `tests/test_core_suite.py`. |
+195 -25
View File
@@ -1,11 +1,11 @@
{
"version": "2.1.0",
"version": "2.7.0",
"bundle_filename": "completed-plans-archive.tar.gz",
"bundle_size_bytes": 3329253,
"bundle_sha256": "b7789c11c6f3e19b49578a0feb494a4f92067abfef283fc89d53b9c97d5a59df",
"bundle_size_bytes": 4851270,
"bundle_sha256": "ced490142a89ee8f3cc1c30c89145b148a5ec51cf8d213e8fc0e12495be5d02d",
"require_companion_md": true,
"member_count": 70,
"total_uncompressed_bytes": 3998770,
"member_count": 104,
"total_uncompressed_bytes": 5772282,
"preserved_standalone_pdfs": [],
"members": [
{
@@ -38,6 +38,16 @@
"size_bytes": 88362,
"sha256": "7b486fe3ac4ee7fa88342fd29c784da8e2d32a32f4670e7d834e6b27a051d6f3"
},
{
"name": "PLAN-ADHOC-MESSENGER-HIGHLIGHTS-SUMMARY-FOR-ENGINEERS-AND-MATH.md",
"size_bytes": 10374,
"sha256": "965e61b6974278a3da0b07f86739738512b3c512b2fd340571fafa186bf69f1c"
},
{
"name": "PLAN-ADHOC-MESSENGER-HIGHLIGHTS-SUMMARY-FOR-ENGINEERS-AND-MATH.pdf",
"size_bytes": 92433,
"sha256": "f9cd167b43e6c78a9f8e1a1a441b0136f809de4c080e6b1e796f9a873824b132"
},
{
"name": "PLAN-ADHOC-PUBLIC-API-AND-SURFACE-REGRESSION-TEST-SUITE.md",
"size_bytes": 12558,
@@ -48,6 +58,16 @@
"size_bytes": 93922,
"sha256": "fd6eaaaa654e47cdb147e50936135e1d1bd447138705baca4bc78cdabecce967"
},
{
"name": "PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.md",
"size_bytes": 9835,
"sha256": "14618431cd9ba8823e2d9abe2d9f7007b80cd55ef877b5762be8b56e888d025d"
},
{
"name": "PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.pdf",
"size_bytes": 94482,
"sha256": "1b7fc5b453dbc1d9d11cbde1dc9a63591415060d6addabd65e3f65cf42438a65"
},
{
"name": "PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER.md",
"size_bytes": 15811,
@@ -58,15 +78,35 @@
"size_bytes": 97718,
"sha256": "0062d778c98aa9029cfbda50d655d47e70d72e8afe9b08154123af1a297226d1"
},
{
"name": "PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA.md",
"size_bytes": 10432,
"sha256": "80ffeb48a5f819161ba9e920835703ece13ec519813a112075bfc1c885cca8c6"
},
{
"name": "PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA.pdf",
"size_bytes": 92356,
"sha256": "e36f4c0c537af2db59f6c498cd97bfba29be21e88b5f93190db30a870e2eddf1"
},
{
"name": "PLAN-COMMON-LIBRARY-HYPERSTITIONSTUDIO.md",
"size_bytes": 17158,
"sha256": "54296f2cbc7cf80e557c9fde7614d44cdf6023a80c5a01ff0d7661194dd41af8"
"size_bytes": 17128,
"sha256": "f2a8af70dc688a3e71ec4124341f7c042d3c82e00d893ee7fc61659ee810139a"
},
{
"name": "PLAN-COMMON-LIBRARY-HYPERSTITIONSTUDIO.pdf",
"size_bytes": 97869,
"sha256": "aa03394a82c67edf785eeea8619f4b4be6b0ebe585b6785c330257966dd48b42"
"size_bytes": 97861,
"sha256": "a8955ce0f55c97db5343e035b91c268fe227fc12d22dfa6660a99e0370440df2"
},
{
"name": "PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE.md",
"size_bytes": 12193,
"sha256": "124cc90e14fc23ee07ca619c73faf015a613f9b05633449364db6b977bb9e652"
},
{
"name": "PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE.pdf",
"size_bytes": 94648,
"sha256": "e379b74dbdcb601509bfd3068fd613b45404cd4a437daa6563b71f5a8167acad"
},
{
"name": "PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO.md",
@@ -78,6 +118,16 @@
"size_bytes": 90913,
"sha256": "7335c35b0612536b10ea22f698f947e5b659484fca1fd5ec856b3f8845151610"
},
{
"name": "PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS.md",
"size_bytes": 9067,
"sha256": "1bdc374f36a40a4c0eff533183dbcd37e77e628d7c78cfd2d92d47fa7ac6acd1"
},
{
"name": "PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS.pdf",
"size_bytes": 94810,
"sha256": "cf1a40cbecb5bef5ffda7259268f5a2ba985f73834848b231b0ecbcffead8539"
},
{
"name": "PLAN-DAILY-PORTFOLIO-AND-MEMETIC-REGIME-UPDATE-FEATURE.md",
"size_bytes": 17984,
@@ -98,6 +148,16 @@
"size_bytes": 86622,
"sha256": "6c4f6cc2a6100a2dfa4c362b94767644652d720eea0a1a6d7a42046948e39321"
},
{
"name": "PLAN-ELIMINATE-CONTAINER-HOST-PATHS-AND-TARGET-PUBLIC-WEB-ROUTES.md",
"size_bytes": 12067,
"sha256": "2aa48c49d5e8be605b1f4de6bf8044f456cc69ec6ab09b880cb1428afa5f283c"
},
{
"name": "PLAN-ELIMINATE-CONTAINER-HOST-PATHS-AND-TARGET-PUBLIC-WEB-ROUTES.pdf",
"size_bytes": 93000,
"sha256": "136b94379f9d82098dd74dc37172e2eed59dfaf23c7edb74bd042b34338f9e4c"
},
{
"name": "PLAN-GIT-LIBRE-AUDIO-REPO-SYNC-FOR-VPS-INSTALL-DIRS.md",
"size_bytes": 16330,
@@ -120,13 +180,23 @@
},
{
"name": "PLAN-GLOBAL-SITE-FOOTER-LEMURS.md",
"size_bytes": 4043,
"sha256": "01d29260eca06d71cc9f11115bcb10cf9f87b33e2599523c7d07b93315e4cb9d"
"size_bytes": 4026,
"sha256": "b29be8241dd6167d451510559e7402b92e850e8da64db65db602098d59879c4f"
},
{
"name": "PLAN-GLOBAL-SITE-FOOTER-LEMURS.pdf",
"size_bytes": 85729,
"sha256": "31806f4bf3075a3e907aafcf5418932fa4f02b43cd1e0ce35a2723fde75ee470"
"size_bytes": 85710,
"sha256": "38efad63b69e66664c506398392be8b06aabc7360495028a908645bf04f1a1f9"
},
{
"name": "PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL.md",
"size_bytes": 15736,
"sha256": "f29581a99474c8c4cd0e581fcef70e4d09093b12fe869d565f3ab436a9ccf835"
},
{
"name": "PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL.pdf",
"size_bytes": 100062,
"sha256": "9c343742b0f654d63de73c67f57365af7db821a45be22084d989c8a6da0c63c8"
},
{
"name": "PLAN-HAIPERDOHP-SILHOUETTE-HYPERSTITION-PALETTE-UNIFIED-STYLE-AUGMENTATION.md",
@@ -138,6 +208,26 @@
"size_bytes": 115427,
"sha256": "9569f5fb06bbe8680b6a99f47b1714bfb1fa4458dae67f5560f2faa81ad520f8"
},
{
"name": "PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING.md",
"size_bytes": 5880,
"sha256": "f41583700c51c85e750ffb12f35ff55b993cf446ffacee0cd37194ea35c940d3"
},
{
"name": "PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING.pdf",
"size_bytes": 85808,
"sha256": "69d9f8114060dae54128ddf0306ab9609818ab90bc953d84d049235dcc92d8c8"
},
{
"name": "PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER.md",
"size_bytes": 13285,
"sha256": "528e94485ac5b158a261b99885936291de403cfa3ddfe45b7fae454ffd6bfc83"
},
{
"name": "PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER.pdf",
"size_bytes": 98298,
"sha256": "a49486d6b313bd2aa51fb32125aae4d3b0c37a049a758a0b9b3ff96f045747c4"
},
{
"name": "PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION.md",
"size_bytes": 19409,
@@ -148,6 +238,16 @@
"size_bytes": 108319,
"sha256": "be2a0b6115f8b4c80b0e85b4d2ca35a7734511590adf25be734dfb764bcfbe37"
},
{
"name": "PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS.md",
"size_bytes": 7708,
"sha256": "61fe0af6c52ea7dc6f21154cc3c229222a2b664f9eb31333e2b02f67a67b6228"
},
{
"name": "PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS.pdf",
"size_bytes": 89514,
"sha256": "f5e6b0f1b28cf5d550838677cfba4921d69f0f6c44828e95d5c404075f578814"
},
{
"name": "PLAN-LEARNING-SUBPAGE-AND-LOCAL-STATE-PORTABILITY.md",
"size_bytes": 13512,
@@ -160,13 +260,13 @@
},
{
"name": "PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md",
"size_bytes": 11793,
"sha256": "a544c349b642fcb90342f463e73fe77afb70aae304cc39dda09287afc7dcfe54"
"size_bytes": 11776,
"sha256": "0c54a023403f7a4b034ca7da782af5b7b103e69c593ec818279b5adc5797e73e"
},
{
"name": "PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.pdf",
"size_bytes": 93572,
"sha256": "36a04cd2788a29dfb1a132f7573edd2e52af8c2cc76a23341064d39fe513cf2b"
"size_bytes": 93548,
"sha256": "b3570d5ef49aef6c6aee41fc7c6bb2c34baf501a10a3060842092709a3650b21"
},
{
"name": "PLAN-MACROECONOMIC-INDICATORS-INTEGRATION-CPI-PPI-RATES-M2-GDP.md",
@@ -200,13 +300,13 @@
},
{
"name": "PLAN-MCP-SERVER-HYPERSTITIONSTUDIO.md",
"size_bytes": 16435,
"sha256": "cf1f5c8cf9ddcde1b0a63af8ba3a36438cafd5eb00f27eb9104e2e51772b6893"
"size_bytes": 16401,
"sha256": "bca396d0685f9e31f0043a2b915c90e7e4fa62bd006baeb014aed22b58d021b2"
},
{
"name": "PLAN-MCP-SERVER-HYPERSTITIONSTUDIO.pdf",
"size_bytes": 99316,
"sha256": "7ec7f48410d6025dd2f5ddbe3aac2e6c2badfd988989f15d7ccef4b0baae8806"
"size_bytes": 99275,
"sha256": "fdbf9114bcdf10cd464e4cfe75769cc6d378f4df59c0c6370e6497cd9e83dac7"
},
{
"name": "PLAN-MIGRATE-PERIODIC-DATA-PRODUCTION-FROM-LOCALHOST-TO-VPS.md",
@@ -238,6 +338,26 @@
"size_bytes": 102299,
"sha256": "069cf4c2a294a30a4823548471fc5b4661a929882ac25313715749572dd3037b"
},
{
"name": "PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.md",
"size_bytes": 16021,
"sha256": "b56f7d40a98c86795a97ac94cb1ef1c87de6434aca1c6f04da273764060f7569"
},
{
"name": "PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.pdf",
"size_bytes": 99676,
"sha256": "ace08d957159469d0ebcc4a8d8aaf3672a0a8eb4a1e7ffb2289e8f247fee6cf9"
},
{
"name": "PLAN-POLYGLOT-PROGRAMMING-LENS-GUILE-TYPESCRIPT-RUST-AND-SELECTOR.md",
"size_bytes": 19580,
"sha256": "bc1eeb0f18975f246832522317b86ffa0edc13951a0317e1bf799640e051fa68"
},
{
"name": "PLAN-POLYGLOT-PROGRAMMING-LENS-GUILE-TYPESCRIPT-RUST-AND-SELECTOR.pdf",
"size_bytes": 104641,
"sha256": "cc8cdc2f1ad665cfe0d21f2c4b382d795b2370cc514c89ce3948a6c93ea11af0"
},
{
"name": "PLAN-PROGRAMMATIC-VERSION-BUMP-HEURISTICS-ZERO-TOKEN.md",
"size_bytes": 8606,
@@ -298,6 +418,36 @@
"size_bytes": 97326,
"sha256": "4411a46a00e79cf8a891766432e1b748c7feb85f394091d8983ce0315e9c7503"
},
{
"name": "PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX.md",
"size_bytes": 7510,
"sha256": "df4c4fa7e3bf8ed72ea4985352ab8d5020720215b0c2abb720b6adb7177a8c0c"
},
{
"name": "PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX.pdf",
"size_bytes": 89308,
"sha256": "4ee8453ffcf1e701f2efa5a217196838feb5c3579576bf9aadafb53ea127c15a"
},
{
"name": "PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS.md",
"size_bytes": 7744,
"sha256": "66e8086edfffe148d6cdeac645315a52b4f270fcbb18a0276da38f6407722c7c"
},
{
"name": "PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS.pdf",
"size_bytes": 89036,
"sha256": "56324f894bbeed5dab80666cd865df84db70c1d70ef7d6bc4655f4c54485a07a"
},
{
"name": "PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.md",
"size_bytes": 9743,
"sha256": "876f4ba52b9e5fa3c8bc742006ae9adbbbb9f0a76ffa402a8fec7cbe5235a0c6"
},
{
"name": "PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.pdf",
"size_bytes": 89979,
"sha256": "41e46777ae2ef41f97f5ab0ad03400e62377cbb107ee372c3049d6c5169c6ee4"
},
{
"name": "PLAN-SOFTWARE-ENGINEERING-EXPLICATION-HUB-AND-SUBPAGES.md",
"size_bytes": 19681,
@@ -308,6 +458,16 @@
"size_bytes": 105359,
"sha256": "ee62cbd81e85e90b8b35c5d32ba14f369155d2f23d2bda24937f0cd28bb2b7be"
},
{
"name": "PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.md",
"size_bytes": 7611,
"sha256": "c0bb178c893ee471099e6cc0a811261eb5b6e653c8cf5843ba2c479ed9a6888d"
},
{
"name": "PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.pdf",
"size_bytes": 89845,
"sha256": "6b4f3afe660fa38ada61f96a317f80bb5d4fb391b6b88ea2628a604ac018ba54"
},
{
"name": "PLAN-SQLITE-REST-API-METADATA-DB.md",
"size_bytes": 20367,
@@ -328,6 +488,16 @@
"size_bytes": 98984,
"sha256": "ead0638ef15e319d8d03ccf7a5305f3bee626a5abbee308307d5b9819b680196"
},
{
"name": "PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND.md",
"size_bytes": 9186,
"sha256": "fdaca23ac12f7784090c04cc1162a785515305ac00cc0ff8d28031247d95785a"
},
{
"name": "PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND.pdf",
"size_bytes": 91891,
"sha256": "170390d916769a144e5475247e151b4382dad0a318bda42ed120c4c4bd6b43bb"
},
{
"name": "PLAN-TIERZOO-AND-POKEDEX-TIMESERIES-SABERMETRICS-ENRICHMENT.md",
"size_bytes": 28006,
@@ -340,13 +510,13 @@
},
{
"name": "REVIEW-OUTSTANDING-PLANS-POST-V2-0-8.md",
"size_bytes": 5772,
"sha256": "8c2c3da4bfc0c9b5e9eca15e1b7aa39adfb11d90d2e358c1308aeab276fb05f3"
"size_bytes": 5742,
"sha256": "ce4d541462b463e7badc076cc13fbf4d934b184316928797332dbee2f07caec9"
},
{
"name": "REVIEW-OUTSTANDING-PLANS-POST-V2-0-8.pdf",
"size_bytes": 87220,
"sha256": "f3620c0b3f531612de5776f34cbd4b0717a50264edfcf00667af944c64177fc7"
"size_bytes": 87193,
"sha256": "18c9850c0fd78cbf3e197874b7944fc2d9e31627fda61162827f5e0570e6105a"
},
{
"name": "plan-interactive-knowledge-graph-encyclopedia.md",
Binary file not shown.
@@ -120,7 +120,7 @@
<div class="pulse-dot"></div>
<h1>Cross-Repository Dependency Graph &amp; Auditable Build &rarr; Test &rarr; Stage_Commit Pipeline</h1>
</div>
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria &bull; technocapital-singularity-zoology (v2.1.0) &bull; encyclopedia-knowledge-graph (v2.1.0)</p>
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria &bull; technocapital-singularity-zoology (v2.8.0) &bull; encyclopedia-knowledge-graph (v2.8.0)</p>
</div>
<!-- Main SVG Diagram -->
@@ -1,8 +1,8 @@
# Cross-Repository Dependency Graph & Auditable `BUILD -> TEST -> STAGE_COMMIT` Pipeline (`v1.0.0`)
- **Interactive HTML/SVG Diagram:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`)
- **High-Resolution PNG Flow Diagram (`1600x1120`):** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png`)
- **Companion Printable PDF:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf`)
- **Interactive HTML/SVG Diagram:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`)
- **High-Resolution PNG Flow Diagram (`1600x1120`):** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png`)
- **Companion Printable PDF:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf`)
---
Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 KiB

After

Width:  |  Height:  |  Size: 285 KiB

+305 -305
View File
File diff suppressed because it is too large. Load diff
+305 -305
View File
File diff suppressed because it is too large. Load diff
+4 -4
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.1.0)</title>
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.8.0)</title>
<style>
:root {
--bg-canvas: #020617;
@@ -268,7 +268,7 @@
<header>
<div class="brand">
<h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1>
<p>Standalone Sibling Repository (/workspace/encyclopedia-knowledge-graph) • 388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.1.0</p>
<p>Standalone Sibling Repository (/workspace/encyclopedia-knowledge-graph) • 388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.8.0</p>
</div>
<div class="toolbar">
<button class="btn active" data-mode="mode2_radar">Mode 2: ETI Radar (S+ -> D Periphery)</button>
@@ -321,10 +321,10 @@
</aside>
</div>
<footer class="hs-global-footer" style="background:#1A1D26;border-top:1px solid #323846;padding:4px 14px;text-align:center;font-size:11px;color:#9BA3B8;z-index:20;">
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.1.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.8.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
</footer>
<script src="graph-data.js?v=2.1.0"></script>
<script src="graph-data.js?v=2.8.0"></script>
<script>
(function() {
const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.EncyclopediaGraphData) || window.ENCYCLOPEDIA_GRAPH_DATA;
@@ -51,7 +51,7 @@ except ImportError:
return f"urn:io:hyperstitionstud:{domain}:{entity_type}:{entity_id}"
UPSTREAM_REPO_DEFAULT = WORKSPACE_ROOT / "technocapital-singularity-zoology"
HOST_UPSTREAM_ROOT = "/home/m00t/hermes/workspace/technocapital-singularity-zoology"
PUBLIC_WEB_ORIGIN = "https://hyperstitionstud.io"
FLEX_13_COORDS = {292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 91, 81}
@@ -225,7 +225,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"article_count": vol["article_count"],
"page_count": vol["page_count"],
"pdf_container_path": vol["pdf_path"],
"pdf_host_url": f"file://{HOST_UPSTREAM_ROOT}/encyclopedia/{pdf_rel}",
"pdf_host_url": f"{PUBLIC_WEB_ORIGIN}/encyclopedia/{pdf_rel}",
"vol_index": v_idx,
},
)
@@ -395,7 +395,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"primary_guild": prim_cls,
"sample_equations": matched_eqs,
"volume_pdf_rel": pdf_rel,
"pdf_host_url": f"file://{HOST_UPSTREAM_ROOT}/encyclopedia/{pdf_rel}",
"pdf_host_url": f"{PUBLIC_WEB_ORIGIN}/encyclopedia/{pdf_rel}",
},
)
@@ -468,7 +468,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"ing_aq": i_aq,
"delta": i_aq - e_aq,
"volume_pdf_rel": pdf_rel,
"pdf_host_url": f"file://{HOST_UPSTREAM_ROOT}/encyclopedia/{pdf_rel}",
"pdf_host_url": f"{PUBLIC_WEB_ORIGIN}/encyclopedia/{pdf_rel}",
},
)
if vol_nid:
@@ -705,7 +705,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"$schema": "./schemas/v1/encyclopedia-graph.schema.json",
"$id": URN_SCHEMA_GRAPH,
"namespace_urn": URN_GRAPH_NS,
"version": "2.1.0",
"version": "2.8.0",
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
"upstream_repository": str(upstream_repo),
"isolation_verified": {