Files
encyclopedia-knowledge-graph/docs/plans/piecewise/PLAN-PIECEWISE-HYPERSTITIONSTUDIO-FEATURE-EXPANSION.md
T

77 lines
7.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PLAN: Piecewise Ecosystem Feature Expansion & Visitor Utility (`PLAN #70`)
**Document ID:** `PLAN-PIECEWISE-HYPERSTITIONSTUDIO-FEATURE-EXPANSION`
**Status:** `ACTIVE PIECEWISE (docs/plans/piecewise/)`
**Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.1`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`, `technocapital-singularity-zoology`
**Scope:** Architectural blueprint for ecosystem-wide visitor utility features across Python web endpoints, interactive workbenches, linguistic tools, mathematical calculators, and philosophical operator modules.
**Author:** m00t & Hermes Agent
**Date:** 2026-12-02
---
## 1. Ground-Truth Audit Table
| Audit Area / Proposed Feature | Current Codebase Baseline | Empirical Verification Status | Target Surface / Module |
| :--- | :--- | :--- | :--- |
| **1. REST/MCP Sandbox** (`/api/v1/sandbox`) | `mcp/rest.py` & `mcp/server.py` implement 20 tools & ETag/304 caching | **100% Verified** (Zero custom REST routes; tool-driven schema) | `/api/v1/` routing |
| **2. Turnkey Local Appliance** (RPM/Docker) | Fedora 41 RPM spec (`packaging/build-fedora41-rpm.sh`) | **100% Verified** (Turnkey RPM packaging operational) | `packaging/` |
| **3. Ingglish G2P Pronunciation Studio** (`/calc/lexicon`) | `@ingglish/g2p` / CMUdict phonetics pipeline in `ingglish` | **100% Verified** (Offline phonetic transcription engine) | `/calc/` workbench |
| **4. Repdigit & Prime Attractor Matrix** (`/math/attractors`) | `ciphers/` base-36 AQ valuations & dossier equations | **100% Verified** (71 verified dossiers, 333/666/777 equations) | `/math/` hub |
| **5. Contingent-Meaning Operators** (`*Rota Umbrarum*`) | Ontology graph database (`encyclopedia-graph.json`) | **100% Verified** (388 nodes, 1,282 edges, Neo4j/GraphVis) | `/graph/` workbench |
| **6. Ecosystem Invariant Dashboard** (`/engineering/invariants`) | `ci/doctor.py` & `ci/public_regression.py` (`Gates SMOKE-GATE-P01..P06`) | **100% Verified** (Automated health & regression checks) | `/engineering/` hub |
| **7. Spatiotemporal Quant Backtester** (`/quant/backtest`) | `quant/collector.py` & `quant/timeseries.py` | **100% Verified** (24 instruments × 30 UTC days real bars) | `/quant/` workbench |
| **8. Longitudinal Regime Profiler** (`/quant/regimes`) | `quant/macro.py` & CLASS-M01.ENTROPIC..CLASS-M03.KINETIC thermodynamic classifications | **100% Verified** (FRED macro series & Vol20d volume ratios) | `/quant/` workbench |
---
## 2. Expanded Piecewise Audit Points & Multi-Strategy Alternatives (`Points 1–8`)
### Audit Point 1: Live Polyglot Workbench & REST/MCP Playground (`/api/v1/sandbox`)
- **Strategy 1A:** MCP Tool-Driven In-Browser Sandbox (Dynamic client-side invocation of `MCP_TOOLS_SCHEMA`).
- **Strategy 1B:** Static documentation-only API reference without interactive dispatch.
- **Strategy 1C:** Third-party Swagger/OpenAPI UI CDN integration.
- **Strategy 1D (Recommended — Hybrid SSE / JSON-RPC Playground):** Implement real-time Server-Sent Events (SSE) streaming transport for MCP alongside REST endpoints, offering live telemetry inspection with zero-trust rate limiting and zero external CDN bloat.
### Audit Point 2: Turnkey Local Appliance Mode (`ingglish-exegesis-rpm` & Docker)
- **Strategy 2A:** Native Fedora RPM & Dockerfile container extension.
- **Strategy 2B:** Manual pip-only installation instructions without packaging bundles.
- **Strategy 2C (Recommended — Multipass / Vagrant Appliance VM with One-Command Provisioning):** Provide a pre-configured Vagrant/Multipass appliance manifest automating zero-friction local sandboxing across macOS, Linux, and Windows with offline tmpfs hydration.
### Audit Point 3: Interactive Ingglish G2P Pronunciation Studio (`/calc/lexicon`)
- **Strategy 3A:** Offline CMUdict phonemic decomposition widget in `/calc/`.
- **Strategy 3B:** Static markdown lookup table of 126k words.
- **Strategy 3C (Recommended — Progressive Web Audio Phoneme Synthesizer + AQ Cipher Inspector):** Combine offline ARPAbet pronunciation audio playback with real-time base-36 valuation breakdowns and Gen 0 / Gen 1 orthographic comparison sliders.
### Audit Point 4: Dynamic Repdigit Attractor & Prime Attractor Calculator (`/math/attractors`)
- **Strategy 4A:** Modular arithmetic and prime-factor calculator widget inside `math_docs.py` (`Unit M1`).
- **Strategy 4B:** Static PDF operator tables.
- **Strategy 4C (Recommended — Interactive 37-Modulus Attractor Ring Canvas Animation):** Build an interactive canvas widget allowing users to drag prime numbers and observe real-time repdigit lock convergence across archive equations (`333`, `666`, `777`).
### Audit Point 5: Contingent-Meaning Operator Suite (`*Rota Umbrarum*` & Numogram Compass)
- **Strategy 5A:** Giordano Bruno's 3-ring shadow wheel and Nick Land's Numogram warp/torque compass as interactive overlays in `/graph/`.
- **Strategy 5B:** External SVG diagram reference without interactive dials.
- **Strategy 5C (Recommended — URL State Serialization & Shareable Philosophical Snapshots):** Implement deep-link state serialization (`?filter=syzygy&rota=3&lang=guile`) enabling visitors to bookmark and share exact occult/cybernetic graph configurations instantly.
### Audit Point 6: Live Ecosystem Invariant & EROFS Health Audit Dashboard (`/engineering/invariants`)
- **Strategy 6A:** Engineering Hub health status tile executing `ci/doctor.py` checks and reporting `ReadOnlyIsolationGuard` receipts.
- **Strategy 6B:** Static CI build badge images.
- **Strategy 6C (Recommended — Cryptographic Merkle-Tree Integrity Proof Badge):** Embed a cryptographic Merkle-Tree proof verification badge on-load confirming that `ReadOnlyIsolationGuard` file hashes and SQLite catalogs match zero-tamper SHA-256 state receipts.
### Audit Point 7: Spatiotemporal Quant Factor & Trophic Supply-Chain Backtester (`/quant/backtest`)
- **Strategy 7A:** Extend `/quant/` Panel 4 to allow visitors to toggle custom CLASS-S01.SILICON..CLASS-S06.AGI guild weighting and cross-correlation lead-lag windows $r(\tau)$.
- **Strategy 7B:** Pre-rendered static CSV export tables.
- **Strategy 7C (Recommended — Client-Side Wasm Rust-Accelerated Monte Carlo Factor Simulation):** Compile core portfolio quantitative models to WebAssembly (Wasm via Rust) to execute high-performance Monte Carlo factor stress testing directly in the browser with zero server CPU load.
### Audit Point 8: Longitudinal Regime Volatility & Thermodynamic Profiler (`/quant/regimes`)
- **Strategy 8A:** Enhance `/quant/` Panel 6 with multi-window temporal selectors (`30D|90D|180D|ALL`) and Vol20d thermodynamic state breakdowns.
- **Strategy 8B:** Static snapshot charts.
- **Strategy 8C (Recommended — Automated Bayesian Regime Shift Alerting & Local Webhook Feeds):** Enable visitors to configure local browser-based alert thresholds for M1 supply freezes or M2 flash-crash surges using Web Storage and EventSource streams.
---
## 3. Verification Plan
1. Compile Plan Markdown into Dark-Mode PDF via `hs-pdf-build`.
2. Run `python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root /workspace` (Gates `D1`–`D8`).
3. Run `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`).