Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99d1118c80 | ||
|
|
9f312880bb | ||
|
|
df832b2aa5 |
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. |
|
||||
Binary file not shown.
@@ -1,95 +0,0 @@
|
||||
# Plan: Comprehensive Exposure of All Workspace Capabilities, Compilers, Curricula & Documentation via MCP (`/mcp`) and Chatbot REST API (`/api/v1/*`) (`v2.2.1`)
|
||||
|
||||
- **Document ID:** `PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE` (`v2.2.1`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Core Architectural & Governance Mandates:**
|
||||
1. **100% Capability & Documentation Coverage Across All 6 Repositories:** Every functional capability, quantitative/macro/Bayesian dataset, Guile Scheme `Z`-combinator evaluator, programmatic SemVer/EROFS diagnostic, `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`) explication hub/subpage, Novice Prerequisite Ladder, `/learn/` module, `/quant/` tutorial episode & `ⓘ` popover glossary, Operator's Manual, stakeholder proposal, active/deferred plan, and cold-rotated historical plan (`completed-plans-archive.tar.gz`) must be inspectable and queryable via both **MCP (`/mcp`)** and the **Chatbot OpenAPI 3.1.0 REST Adapter (`/api/v1/tools/*` & `/api/v1/resources/*`)**.
|
||||
2. **Zero New Bespoke REST Routes in `src/hyperstitionstud_io/mcp/rest.py`:** All new capabilities are registered in `MCP_TOOLS_SCHEMA` (`src/hyperstitionstud_io/mcp/tools.py`), `STATIC_RESOURCES` / `RESOURCE_TEMPLATES` (`src/hyperstitionstud_io/mcp/resources.py`), and `MCP_PROMPTS` (`src/hyperstitionstud_io/mcp/prompts.py`), so the existing generic `/api/v1/tools/{tool_name}`, `/api/v1/resources/{slug}`, and `/api/v1/openapi.json` adapter exposes them automatically (`0` custom route patterns added to `rest.py`).
|
||||
3. **100% Read-Only & `ProtectSystem=strict` (`EROFS`) Compliant (`0` LLM Tokens):** Cold-rotated plans inside `completed-plans-archive.tar.gz` are extracted strictly in memory via `tarfile` without touching disk, and every new tool is automatically swept under simulated `ProtectSystem=strict` (`EROFS`) by `src/hyperstitionstud_io/ci/erofs_harness.py`.
|
||||
- **Target Modules & Files:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py`
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/resources.py`
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/prompts.py`
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/ci/erofs_harness.py`
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Exhaustive Capability & Documentation Gap Audit (`v2.2.1`)
|
||||
|
||||
| Capability / Documentation Domain | Current State in `v2.2.1` | Gap Addressed by This Plan |
|
||||
| :--- | :--- | :--- |
|
||||
| **1. `/engineering/` (`E0–E5`) & `/math/` (`M0–M5`) Explication Hubs, Subpages & Novice Prerequisite Ladders** | Generated as static HTML/JSON in `site/engineering/` and `site/math/`, but **not** exposed via MCP tools or `/api/v1/*`. | Expose via new MCP tool **`hs_inspect_engineering_and_math_docs`** and static resources `engineering-manifest` & `math-manifest`. |
|
||||
| **2. Guile Scheme & `Z`-Combinator Pedagogical Lens (`guile_prelude.scm` & S-Expression Evaluation)** | Runs in browser (`hs-guile-scheme-repl.js`), but cannot be evaluated or queried via MCP or Chatbot REST API. | Expose via new MCP tool **`hs_evaluate_guile_scheme_z_calculus`** (supporting exact rationals `p/q`, float conversion, `β-reduction` trace, and cartridge lookup) + resource `guile-prelude`. |
|
||||
| **3. Operator's Manuals, Deployment Guides, Stakeholder Proposals & Specifications** | Stored as `.md`/`.pdf` files on disk (`OPERATORS-MANUAL-*`, `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE`, `ONBOARDING-INGGLISH-AQ`, `proposal-*`, `specification-*`), but only `dossier:{01..71}` is readable via MCP. | Expose via new MCP tool **`hs_inspect_documentation_and_manuals`** (with keyword/passage search, full Markdown retrieval, and PDF deep-link URLs) and resource template `urn:io:hyperstitionstud:doc:{doc_slug}`. |
|
||||
| **4. Cold-Rotated Completed Plans (`completed-plans-archive.tar.gz`) & Active/Deferred Roadmap Plans** | `76` completed `.md`/`.pdf` files in `encyclopedia-knowledge-graph/docs/archive/completed-plans-archive.tar.gz` + `5` in `zoology/docs/archive/` are indexed in `archive-manifest.json` but not queryable via API. | Expose in-memory `.tar.gz` plan listing and full `.md` extraction inside **`hs_inspect_documentation_and_manuals`** (`archive_rotator.py` in-memory `tarfile` reader — `0` disk writes, `EROFS`-safe). |
|
||||
| **5. Interactive `/learn/` Curriculum (`Modules 1–6`) & `/quant/` Guided Tour (`5` Episodes) + `27` `ⓘ` Glossary Popovers** | Embedded in `site/learn/learn-app.js`, `site/quant/quant-tutorials.js`, and `site/quant/quant-app.js`, but not exposed via `/mcp` or `/api/v1/*`. | Expose structured `/learn/` curriculum modules, `/quant/` 5-episode tutorial scenes, and all `27` `QUANT_TERM_GLOSSARY` `ⓘ` definitions + PDF deep-links via **`hs_inspect_documentation_and_manuals`**. |
|
||||
| **6. SQLite FTS5 Unified Catalog Search (`hyperstition-meta.db`), Programmatic Version Heuristics (`--explain-bump`) & `EROFS`/Baseline Audit State** | Implemented in `db/sqlite_meta.py`, `version_sync.py`, and `ci/public_regression.py`, but not exposed via MCP tools. | Expose via new MCP tool **`hs_query_workspace_catalog_and_release_state`**. |
|
||||
| **7. IPLD `dag-json` (`0x0129`) `CIDv1` Registry Map (`hs_compute_ipld_dag_json_cid`)** | `reg_map` in `mcp/tools.py` only lists 7 v1 registries (`glossary-registry` .. `encyclopedia-graph`). | Expand `reg_map` to include `quant-timeseries`, `real-macro-indicators`, `daily-brief-latest`, `engineering-manifest`, `math-manifest`, and `archive-manifest` (`13` named registries total). |
|
||||
|
||||
---
|
||||
|
||||
## 2. Detailed Specification of the 4 New MCP / Chatbot REST Tools (`MCP_TOOLS_SCHEMA`)
|
||||
|
||||
### 2.1 `hs_inspect_engineering_and_math_docs`
|
||||
- **Endpoint:** `GET/POST /api/v1/tools/hs_inspect_engineering_and_math_docs` & MCP `tools/call`
|
||||
- **Parameters:**
|
||||
- `domain` (`"all" | "engineering" | "math"`, default `"all"`): Select `/engineering/` (`E0–E5`), `/math/` (`M0–M5`), or both.
|
||||
- `unit_filter` (`string`, default `""`): Optional unit ID or subpage slug (`"E0".."E5"`, `"M0".."M5"`, `"ciphers-and-phonetics"`, `"base36-algebra-and-primes"`, etc.).
|
||||
- `include_guile_cartridges` (`boolean`, default `True`): Include the 3-column Homoiconic Tri-View (`math_view`, `py_view`, `scm_expr`, and `challenge`) for each unit.
|
||||
- **Returns:**
|
||||
- Full live-introspected manifests (`engineering-manifest.json` & `math-manifest.json`), algebraic conservation invariants, CLI scripts table, Novice Prerequisite Ladders (`expertise_level`, `prerequisites`, `public_resources`), subpage explication sections, and Guile Scheme cartridges.
|
||||
|
||||
### 2.2 `hs_inspect_documentation_and_manuals`
|
||||
- **Endpoint:** `GET/POST /api/v1/tools/hs_inspect_documentation_and_manuals` & MCP `tools/call`
|
||||
- **Parameters:**
|
||||
- `category` (`"all" | "manuals" | "proposals_and_specs" | "active_and_deferred_plans" | "archived_plans" | "learn_and_tutorials" | "quant_glossary_popovers"`, default `"all"`).
|
||||
- `doc_id` (`string`, default `""`): Optional document slug or plan ID (e.g. `"OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES"`, `"VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE"`, `"PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI"`, or any cold-archived plan like `"PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION"`).
|
||||
- `search_query` (`string`, default `""`): Optional case-insensitive keyword or phrase to search across all manuals, plans (including inside `completed-plans-archive.tar.gz` in memory!), `/learn/` modules, and `/quant/` tutorial scenes / `ⓘ` popovers.
|
||||
- `include_full_markdown` (`boolean`, default `False`): When `True` (or when `doc_id` is specified), returns the complete Markdown text of the matching document(s).
|
||||
- **Returns:**
|
||||
- Catalog of all documentation artifacts with canonical web PDF routes (`/graph/*.pdf`, `/quant/*.pdf`, `/zoology/*.pdf`, `/ci/*.pdf`), cold-archive manifest metadata (`bundle_sha256`, `member_count`), matched passages with line numbers, `/learn/` modules, `/quant/` tutorial scenes, and `27` `ⓘ` popover definitions.
|
||||
|
||||
### 2.3 `hs_evaluate_guile_scheme_z_calculus`
|
||||
- **Endpoint:** `GET/POST /api/v1/tools/hs_evaluate_guile_scheme_z_calculus` & MCP `tools/call`
|
||||
- **Parameters:**
|
||||
- `expression` (`string`, default `'(aq-base36 "LEMUR")'`): S-expression to evaluate against the preloaded `guile_prelude.scm` environment (`Z`, `limit`, `derivative`, `nth-derivative`, `riemann-integral`, `adaptive-simpson`, `aq-base36`, `digital-root-mod9`, `prime-factors`, `variance-pop`, `eti-score`, `confluence-dose`, `bayes-update`, `evaluate-bump-scope`).
|
||||
- `include_trace` (`boolean`, default `True`): Return step-by-step `β-reduction` call trace.
|
||||
- `include_prelude_source` (`boolean`, default `False`): Include the full canonical `publishing/guile_prelude.scm` source code.
|
||||
- **Returns:**
|
||||
- Exact rational / symbolic result (`formatted`), floating-point approximation (`float_value`), `β-reduction` trace steps, and optional `guile_prelude.scm` source.
|
||||
|
||||
### 2.4 `hs_query_workspace_catalog_and_release_state`
|
||||
- **Endpoint:** `GET/POST /api/v1/tools/hs_query_workspace_catalog_and_release_state` & MCP `tools/call`
|
||||
- **Parameters:**
|
||||
- `fts_query` (`string`, default `""`): Optional SQLite FTS5 full-text search query across `glossary_entries`, `kg_nodes`, and `dossiers` in `.cache/hyperstition-meta.db` (with automatic read-only JSON fallback if the `.cache` DB is absent).
|
||||
- `include_version_bump_heuristics` (`boolean`, default `True`): Include the zero-token `compute_programmatic_version_bump()` (`--explain-bump`) report.
|
||||
- `include_baseline_and_telemetry` (`boolean`, default `True`): Include the cached `.cache/internal-test-baseline-latest.json` summary (`erofs_protect_system_strict_audit`, canary values, `CIDv1` map) and `get_api_telemetry_summary()`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Expanded MCP URN Resources (`src/hyperstitionstud_io/mcp/resources.py`)
|
||||
|
||||
Add 7 new static URN resources to `STATIC_RESOURCES` (all automatically accessible via `GET /api/v1/resources/{slug}` and MCP `resources/read`):
|
||||
1. `urn:io:hyperstitionstud:resource:quant-timeseries` (`site/quant/quant-timeseries.json`)
|
||||
2. `urn:io:hyperstitionstud:resource:macro-indicators` (`site/quant/real-macro-indicators.json`)
|
||||
3. `urn:io:hyperstitionstud:resource:daily-brief` (`site/quant/daily-brief-latest.json`)
|
||||
4. `urn:io:hyperstitionstud:resource:engineering-manifest` (`site/engineering/engineering-manifest.json`)
|
||||
5. `urn:io:hyperstitionstud:resource:math-manifest` (`site/math/math-manifest.json`)
|
||||
6. `urn:io:hyperstitionstud:resource:archive-manifest` (`encyclopedia-knowledge-graph/docs/archive/archive-manifest.json`)
|
||||
7. `urn:io:hyperstitionstud:resource:guile-prelude` (`src/hyperstitionstud_io/publishing/guile_prelude.scm`, `text/x-scheme`)
|
||||
|
||||
---
|
||||
|
||||
## 4. Synergy with `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI` & Verification Gates
|
||||
|
||||
- **Seamless Integration with `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI`:**
|
||||
- When `PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE` is implemented first, `chatbot.py` (`hs_ask_chatbot`) can delegate documentation, manual, archived-plan, `/engineering/`, `/math/`, `/learn/`, Guile Scheme `Z`-combinator, and SQLite FTS5 queries directly to these 4 new MCP tools!
|
||||
- **Automated Verification (`tests/test_core_suite.py` & `ci/erofs_harness.py`):**
|
||||
- Because `ci/erofs_harness.py` dynamically iterates over `MCP_TOOLS_SCHEMA`, all 4 new tools are automatically tested under simulated `ProtectSystem=strict` (`EROFS`) on every test run.
|
||||
- Add explicit assertions in `tests/test_core_suite.py` verifying:
|
||||
- `hs_inspect_engineering_and_math_docs` returns all `E0–E5` and `M0–M5` units, Novice Prerequisite Ladders, and Guile cartridges,
|
||||
- `hs_inspect_documentation_and_manuals` reads both live Operator's Manuals and cold-rotated `.md` plans from `completed-plans-archive.tar.gz` in memory under `EROFS`,
|
||||
- `hs_evaluate_guile_scheme_z_calculus` evaluates `Z`-combinator expressions and returns exact rationals + `β-reduction` traces,
|
||||
- `hs_query_workspace_catalog_and_release_state` returns SQLite FTS5 search hits, `--explain-bump` heuristics, and the `EROFS` baseline receipt, and
|
||||
- `hs_compute_ipld_dag_json_cid` supports all 13 workspace registries.
|
||||
Binary file not shown.
@@ -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.
|
||||
Binary file not shown.
@@ -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:** `ACTIVE / READY FOR IMPLEMENTATION`
|
||||
**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`.
|
||||
Binary file not shown.
@@ -1,7 +1,8 @@
|
||||
# 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.0`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **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.
|
||||
@@ -71,23 +72,32 @@ When the browser sends a user question `q` to `POST /api/v1/tools/hs_ask_chatbot
|
||||
|
||||
---
|
||||
|
||||
## 2. Lightweight Group 3 Stealth Basalt Web Chatbot GUI (`site/assets/hs-chatbot-widget.js` & `/chat/index.html`)
|
||||
## 2. Review of Pros and Cons of Chatbot Placement on the Homepage (`/`) vs. Elsewhere & Default Choice (`Option 2`)
|
||||
|
||||
### 2.1 Floating Dockable Widget Across All Primary Pages (`site/assets/hs-chatbot-widget.js`)
|
||||
- **Header & Bottom-Left Launcher (`#hsChatbotToggleBtn`):**
|
||||
- Styled in Group 3 Stealth Basalt (`10px/4px` `45°` chamfers, `34px` height, `#38bdf8` interactive border/pip, keyboard shortcut `Alt+K`).
|
||||
- Does not eclipse or clutter any page: remains a single compact pill (`[ ◈ ASK CORPUS ]`) until clicked.
|
||||
- **Interactive Drawer (`#hsChatbotDrawer`, `420 × 540 px`):**
|
||||
- **Context-Aware Quick-Prompt Chips:** Displays 5 one-click starter questions tailored to the current page (`/`, `/quant/`, `/learn/`, `/engineering/*`, `/math/*`).
|
||||
- **Instant Local Execution Badge:** Shows `0 LLM Tokens • Local Server-Side Engine (<15 ms) • CIDv1 Verified` in the drawer header.
|
||||
- **Rich Answer Cards:**
|
||||
- Formatted answer text + bulleted key metrics,
|
||||
- Clickable deep-link pills (`Open in /quant/`, `Open in /graph/`, `Glossary PDF #page=N`),
|
||||
- Inline `900×1260` `.png` Stats Card preview whenever a ticker card is queried,
|
||||
- Collapsible `<details>` block showing the exact `/api/v1/tools/hs_ask_chatbot` JSON payload and IPLD `CIDv1` receipt.
|
||||
### 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 Dedicated Full-Screen `/chat/` Workbench (`site/chat/index.html`)
|
||||
- Accessible at `/chat/index.html` (with a navigation button added to `site/index.html` and the widget header `[ Expand Full /chat/ 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.
|
||||
|
||||
Binary file not shown.
@@ -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.
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
@@ -53,3 +53,7 @@
|
||||
| `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`. |
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"version": "2.1.1",
|
||||
"version": "2.2.2",
|
||||
"bundle_filename": "completed-plans-archive.tar.gz",
|
||||
"bundle_size_bytes": 3593868,
|
||||
"bundle_sha256": "107d4855162a725cb7864c4e39734df135fb6887456b12962972cd795fda6e29",
|
||||
"bundle_size_bytes": 3963428,
|
||||
"bundle_sha256": "bc5ed17cbf60821417e9e631ee42198bbc9933b40c73baae5f2601526ad432ac",
|
||||
"require_companion_md": true,
|
||||
"member_count": 76,
|
||||
"total_uncompressed_bytes": 4303478,
|
||||
"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,13 @@
|
||||
},
|
||||
{
|
||||
"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",
|
||||
@@ -190,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",
|
||||
@@ -230,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",
|
||||
@@ -268,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,
|
||||
@@ -370,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 & Auditable Build → Test → Stage_Commit Pipeline</h1>
|
||||
</div>
|
||||
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria • technocapital-singularity-zoology (v2.2.2) • encyclopedia-knowledge-graph (v2.2.2)</p>
|
||||
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria • technocapital-singularity-zoology (v2.3.1) • encyclopedia-knowledge-graph (v2.3.1)</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.
Binary file not shown.
|
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 284 KiB |
+305
-305
File diff suppressed because it is too large.
Load diff
+305
-305
File diff suppressed because it is too large.
Load diff
+4
-4
@@ -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.2.2)</title>
|
||||
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.3.1)</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 • v2.2.2</p>
|
||||
<p>Standalone Sibling Repository (/workspace/encyclopedia-knowledge-graph) • 388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak • v2.3.1</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.2.2 • Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">♥</span> by Lemurs.</span>
|
||||
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.3.1 • Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">♥</span> by Lemurs.</span>
|
||||
</footer>
|
||||
|
||||
<script src="graph-data.js?v=2.2.2"></script>
|
||||
<script src="graph-data.js?v=2.3.1"></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.2.2",
|
||||
"version": "2.3.1",
|
||||
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
|
||||
"upstream_repository": str(upstream_repo),
|
||||
"isolation_verified": {
|
||||
|
||||
Reference in new issue
Block a user