Compare commits

...
5 Commits
25 changed files with 919 additions and 772 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.
@@ -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,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.
@@ -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.
+8 -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,10 @@
| `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`. |
+95 -25
View File
@@ -1,11 +1,11 @@
{
"version": "2.1.0",
"version": "2.2.2",
"bundle_filename": "completed-plans-archive.tar.gz",
"bundle_size_bytes": 3329253,
"bundle_sha256": "b7789c11c6f3e19b49578a0feb494a4f92067abfef283fc89d53b9c97d5a59df",
"bundle_size_bytes": 3963428,
"bundle_sha256": "bc5ed17cbf60821417e9e631ee42198bbc9933b40c73baae5f2601526ad432ac",
"require_companion_md": true,
"member_count": 70,
"total_uncompressed_bytes": 3998770,
"member_count": 84,
"total_uncompressed_bytes": 4742167,
"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,
@@ -60,13 +70,23 @@
},
{
"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",
@@ -98,6 +118,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 +150,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 +178,16 @@
"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-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION.md",
"size_bytes": 19409,
@@ -148,6 +198,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 +220,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 +260,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 +298,16 @@
"size_bytes": 102299,
"sha256": "069cf4c2a294a30a4823548471fc5b4661a929882ac25313715749572dd3037b"
},
{
"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,
@@ -340,13 +410,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.3.0) &bull; encyclopedia-knowledge-graph (v2.3.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.3.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.3.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.3.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.3.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.3.0",
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
"upstream_repository": str(upstream_repo),
"isolation_verified": {