Release v2.8.1: Add piecewise explication plans for /engineering/ and /math/ with anti-self-reference closure

This commit is contained in:
Hermes Agent committed 2026-12-01 06:45:28 +00:00
1 parent 77849c2d8a
commit fe4c013319
5 files changed
+227 -1

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
> **Gitea Commit & Release Telemetry (`v2.8.1` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive → [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.8.1 release state across 4 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `docs/cross-repo-dependency-and-audit-flow-diagram.html`, `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`, `index.html`, `scripts/build_encyclopedia_knowledge_graph.py`
> - **Touched Files / Surfaces:** `docs/PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION.md`, `docs/PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION.pdf`, `docs/PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION.md`, `docs/PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION.pdf`
> - **Live Verified Ecosystem Metrics (`v2.8.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END -->
@@ -0,0 +1,114 @@
# PLAN: Piecewise Complete Mathematics & Information Science Explication Across `/math/` (`Unit M0` Hub & Subpages `M1–M5`, Strict Anti-Self-Reference Closure Boundary, `Audit Points 1–6`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION`
**Status:** `ACTIVE / READY FOR STEPWISE PIECEWISE REVIEW & IMPLEMENTATION`
**Target Ecosystem Version:** `v2.9.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Strict Anti-Self-Reference / Non-Circular Closure Invariant (`Zero Self-Explication of /math/*`)
To prevent self-referential fixed-point and `IPLD dag-json CIDv1` closure issues (where modifying `/math/` to describe `/math/` alters `math_docs.py` / `math-manifest.json` / `hs-math-docs` counts, hashes, or routes in a circular feedback loop):
1. **Strict Explication Boundary (What `/math/*` Must NEVER Explicate):**
- `/math/` (`Unit M0` Hub and Subpages `M1–M5`) is the **observer/explication lens**, never the **observed subject**.
- Therefore, `/math/` and its subpages (`M1–M5`) **must omit `/math/` (`site/math/*`), `publishing/math_docs.py`, `hs-math-docs`, `math-manifest.json`, and the `/math/` subpages themselves (`M0–M5`) from the subject matter being explicated** (and likewise omit `/engineering/`, `publishing/engineering_docs.py`, and `hs-eng-docs`).
- All self-referential subtitle phrases (`"Non-Sequentially Revertible via hs-math-docs --disable <slug>"`, `"Commutative Empirical Introspection • Piecewise & Non-Sequentially Revertible"`) and self-referential `math-manifest.json` / `M0–M5` references inside the expository tables and prose are removed.
2. **What `/math/*` Explicates Instead (100% of the Target Domain Mathematics & Information Science):**
- Explicates exclusively the **underlying mathematical, statistical, calculus, and information-science foundations** of `hyperstitionstud.io`'s operational corpora and engines:
- **Domain 1 (Abstract Algebra & Elementary Number Theory):** Base-36 monoid homomorphisms (`ciphers`), prime-counting index $\pi(n)$, $37 \times 3k$ repdigit attractors, mod-9 digital root ring congruence $dr_9(n)$, `9`-sum syzygy involution $\sigma(r)=9-r$, and `--revise-anchor` perturbation algebra $\Delta_Q$.
- **Domain 2 (Information Theory, Phonemic Compression & Full-Text Retrieval):** Surjective phonemic projection $\Phi: \Sigma_{\text{eng}}^* \to \Sigma_{\text{ing}}^*$ (`phonetics`), equivalence kernel $\ker(\text{AQ} \circ \Phi)$, data-processing entropy reduction $H(\text{AQ}(\Phi(W))) \le H(\text{AQ}(W))$, Genealogical Vectors `G1–G6`, and SQLite FTS5 **Okapi BM25** full-text ranking (`db/sqlite_meta.py`).
- **Domain 3 (Graph Theory, Convex Optimization & Polar Geometry):** 6-partite directed multigraph $G = (V, E, R)$ (`388` nodes, `1,282` edges), convex Ecological Trophic Index (`ETI`) inner product ($\sum_{k=1}^6 w_k = 1.00$), 4-key lexicographic tie-breaking total order, Mode 2 Concentric Polar Radar affine mapping $(r, \theta) \mapsto (x, y)$, and 1-hop induced ego subgraphs $G[N_1(v)]$.
- **Domain 4 (Nonparametric Order Statistics, Sabermetric Moments & Z-Combinator Calculus):** 4-species Confluence Dose $D_{i,t} \in \{0..4\}$, heavy-tailed order statistics ($P_{50}, P_{90}$), longitudinal moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`), lead-lag Pearson $r(\tau)$ with Student-$t$ statistic, and **Thomas' Calculus enacted via the applicative-order `Z` combinator** (`guile_prelude.scm`: recursive limit halving, central difference derivative, $n$-th derivative, midpoint Riemann sum, and adaptive Simpson quadrature).
- **Domain 5 (Macroeconomic Identities, Discrete Bayesian Simplex & Content-Addressed Merkle Cryptography):** St. Louis Fed (`FRED`) monetary spread and velocity identities ($M2 - M1$, $V_{M2} = \text{GDP}/M2$), discrete 3-state Bayes' Theorem on the simplex $\Delta^2$, Birthday-Problem multiple-testing collision bounds (*"Grand Central Station"* vs. *"The Room Filter"*), **RFC 8785 JCS + IPLD `dag-json` (`0x0129`) `CIDv1` Merkle cryptography** (`ipld/__init__.py` & HTTP `ETag` equivalence), and the $N_{\text{ext}} \ge 500$ binomial confidence bound.
---
## 2. Ground-Truth Audit: Live Target Domain Math (`v2.8.1`) vs. Current `/math/` Explication Gaps (`Rule C.1`)
| Audit Point & `/math/` Surface | What Is Currently Rendered on `/math/` (`v2.8.1`) | Self-Reference Bugs, Variance Discrepancies, Stale Counts & Undocumented Domains Found in Audit (`Gaps to Fix`) |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Hub `M0` (`/math/index.html`)* | • `5` `.stat-tile` counters (`ETI Convex Sum: 1.00`, `Bayesian Simplex: 1.0000`, `292 G1 Collapse: 310.22 -> 0.0`, `G4 Fixed Points: 21`, `Real Bars / FRED: 472 / 14`)<br/>• Subtitles across `M0–M5` reference `hs-math-docs --disable <slug>` | **1. Eliminate Self-Reference Across `M0–M5`:** Remove all references to `hs-math-docs --disable <slug>`, `math-manifest.json`, and `M0–M5` self-descriptions from subtitles and tables.<br/>**2. Resolve Internal Cluster `292` Variance Discrepancy (`310.22` vs. `514.89`):** Harmonize `introspect_math_manifest()` (`[292, 265, 250]` $\to \sigma^2_0 = 2792/9 \approx 310.22$) and the 3-point REPL benchmark (`[264, 317, 276]` $\to 4634/9 \approx 514.89$).<br/>**3. Add Non-Self-Referential 6-Domain Mathematics & Information Science Reference Table:** Map the 6 target mathematical/info-science domains directly to their underlying corpus registries and equations (without referencing `/math/` subpages). |
| **Audit Point 2**<br/>*Subpage `M1` (`base36-algebra-and-primes`)* | • `Section 1`: Base-36 homomorphism $v: \{0..9, A..Z\} \to \{0..35\}$<br/>• `Section 2`: Repdigit $37 \times 3k$ attractors & prime index $\pi(n)$ | **1. Undocumented Mod-9 Digital Root Congruence (`dr_9(n)`) & CCRU `9`-Sum Syzygy Involution:** `guile_prelude.scm` defines `digital-root-mod9`, but `M1` has no section explaining the ring homomorphism $\mathbb{Z} \to \mathbb{Z}/9\mathbb{Z}$ or the `9`-sum syzygy involution $\sigma(r) = 9 - r$ (`1::8, 2::7, 3::6, 4::5`).<br/>**2. Undocumented Quantitative Anchor Revision Algebra (`--revise-anchor`):** Omits the 3 quantization modes (`digit`, `spoken`, `off`) and the anchor perturbation $\Delta_Q = \text{AQ}(Q_{\text{new}}) - \text{AQ}(Q_{\text{old}})$ (`Paths A/B/C`). |
| **Audit Point 3**<br/>*Subpage `M2` (`phonemic-projections-and-g-vectors`)* | • `Section 1`: Vector `G1` Variance Collapse ($\Delta\sigma^2_{\text{G1}}$)<br/>• `Section 2`: Vectors `G3`, `G4`, & `G5` | **1. Missing Vectors `G2` & `G6` in "G1–G6":** Sections 1–2 omit **Vector `G2` (Cross-Generational Twin Locks: $\text{AQ}_{\text{eng}}(w_a) = \text{AQ}_{\text{ing}}(\Phi(w_b))$)** and **Vector `G6` (Multi-Scale Repdigit Closure `333 / 666 / 777`)**!<br/>**2. Undocumented Information-Theoretic Entropy Reduction & SQLite FTS5 BM25 Ranking:** Omits how phonemic projection $\Phi: \Sigma_{\text{eng}}^* \to \Sigma_{\text{ing}}^*$ acts as a lossy homomorphic compression channel ($H(\text{AQ}(\Phi(W))) \le H(\text{AQ}(W))$), and omits the **Okapi BM25** information-retrieval ranking formula used by `fts_catalog` in `sqlite_meta.py`. |
| **Audit Point 4**<br/>*Subpage `M3` (`graph-topology-and-eti-scoring`)* | • `Section 1`: 6-Partite Property Graph $G = (V, E, R)$ (`388` nodes, `1,282` edges)<br/>• `Section 2`: Convex `ETI` functional ($\sum_{k=1}^6 w_k = 1.00$) | **1. Undocumented Concentric Polar Radar Geometry (`Mode 2: S+ Center to D Periphery`):** Omits the invertible affine radial mapping $r(\text{ETI}_i) = R_{\min} + \frac{100 - \text{ETI}_i}{100}(R_{\max} - R_{\min})$ and angular guild sector partitioning $(r_i, \theta_i) \mapsto (x_i, y_i)$ from `specification-concentric-eti-tier-ring-radar-d-periphery.md`.<br/>**2. Undocumented 4-Key Lexicographic Tie-Breaker & 1-Hop Ego-Subgraph Operator:** Omits the total ordering $(\text{ETI}_i, \text{CAP}_i, \text{COL}_i, \text{ARM}_i)$ and the 1-hop ego-network induced subgraph $G[N_1(v)]$. |
| **Audit Point 5**<br/>*Subpage `M4` (`timeseries-moments-and-confluence-dose`)* | • `Section 1`: 4-Species Confluence Dose $D_{i,t} \in \{0..4\}$<br/>• `Section 2`: Nonparametric Order Statistics ($P_{50}, P_{90}$) | **1. Stale Bar Count (`440` vs `472`):** Line 256 hardcodes `"across the 440 real November 2026 bars"` instead of dynamically interpolating the live `472` real exchange bars!<br/>**2. Undocumented Longitudinal Sabermetric Moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`) & Thomas' Calculus via `Z` (`guile_prelude.scm`):** `timeseries.py` computes `SNAP%`, `WOPR`, `LOE`/`WAR_30d`, and lead-lag Pearson $r(\tau)$ with Student-$t$ statistic, and `guile_prelude.scm` implements limits, derivatives, and Simpson quadrature via `Z`, but none of those formulas are written out in `M4`'s sections! |
| **Audit Point 6**<br/>*Subpage `M5` (`macro-spreads-and-bayesian-inference`)* | • `Section 1`: FRED Macroeconomic Spread & Velocity Identities<br/>• `Section 2`: Discrete 3-State Bayes' Rule & "The Room Filter" Collision Bound | **1. Undocumented Information-Science Cryptography (`RFC 8785 JCS + IPLD dag-json 0x0129 + Multihash SHA-256 CIDv1`):** Explicate the exact binary construction of `CIDv1 = 'b' || base32([0x01, 0xA9, 0x02, 0x12, 0x20] || SHA256(JCS(X)))` over target domain registries (excluding `math-manifest.json` self-reference).<br/>**2. Undocumented Binomial Sample-Size Confidence Bound ($N_{\text{ext}} \ge 500$):** Explicate why a worst-case ($p=0.5$) 95% confidence interval half-width $\pm 1.96\sqrt{p(1-p)/N} \le \pm 4.38\%$ requires $N_{\text{ext}} \ge 500$. |
---
## 3. Four Factual Binary Engineering & Mathematical Gates (`G1–G4`, Zero Self-Reference & Zero Synthetic Data)
- **`Gate G1` (Strict Anti-Self-Reference Closure):** Zero prose, formulas, subtitles, or tables on `/math/*` may reference `math_docs.py`, `hs-math-docs`, `math-manifest.json`, or `/math/` itself as a subject of explication.
- **`Gate G2` (100% Exact Algebraic & Numerical Consistency):** Harmonizes the Cluster `292` variance numbers across `M0`, `M2`, and `guile_prelude.scm` and dynamically interpolates live `total_real_bars_n` (`472`).
- **`Gate G3` (`0` LLM Tokens, `0` External Math CDNs & `ReadOnlyIsolationGuard` Safe):** Renders 100% offline with zero mutations to locked upstream registries (`all_unchanged: True`).
- **`Gate G4` (Complete 6-Domain Mathematics & Information Science Coverage):** Covers Abstract Algebra/Number Theory, Information Theory/Phonemic Compression & BM25 Retrieval, Graph Theory & Polar Geometry, Nonparametric Order Statistics, Sabermetrics & Z-Combinator Calculus, and Macroeconomics, Bayesian Inference & Content-Addressed Merkle Cryptography.
---
## 4. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `6A–6C`)
---
### Audit Point 1: Hub `M0` (`/math/index.html`) — Purge Self-Reference (`hs-math-docs --disable`), Harmonize Cluster `292` Variance & Add Non-Self-Referential 6-Domain Reference Table
- **Strategy `1A` (Purge Self-Referential Subtitles Across `M0–M5` + Harmonize Cluster `292` Variance + Add Non-Self-Referential 6-Domain Mathematical & Information-Science Reference Table on `M0` — Recommended Candidate):**
- Removes all self-referential `"Non-Sequentially Revertible via hs-math-docs --disable <slug>"` subtitle text across `M0–M5`.
- Harmonizes the Cluster `292` variance text between `M0` and `M2` (`{'schizoanalysis': 292, 'abstract machine': 265, 'synthetic data': 250}` $\to \sigma^2_0 = 2792/9 \approx 310.22 \to 0.0$ alongside the 3-point REPL vector `[264, 317, 276]` $\to 4634/9 \approx 514.89 \to 0.0$).
- Adds a **6-Domain Mathematical & Information-Science Reference Table** on `/math/index.html` mapping each formal equation and invariant directly to its underlying target domain module/registry (`ciphers`, `phonetics`, `sqlite_meta`, `encyclopedia-graph`, `timeseries`, `macro`, `daily_brief`, `guile_prelude.scm`, `ipld`) with **zero reference to `/math/` or `M0–M5` themselves**.
- **Strategy `1B` (Purge Self-Reference & Harmonize Variance Numbers Only — Minimal Candidate):**
- Removes `hs-math-docs` self-references and aligns the Cluster `292` variance text without adding the 6-domain reference table to `M0`.
- **Strategy `1C` (Leave `M0` Unchanged — Status Quo):**
- Retains self-referential `hs-math-docs --disable` subtitles and the `310.22` vs `514.89` discrepancy.
---
### Audit Point 2: Unit `M1` (`base36-algebra-and-primes`) — Mod-9 Digital Root Ring Homomorphism, CCRU `9`-Sum Syzygy Involution & Anchor Perturbation Algebra
- **Strategy `2A` (Add Section 3 to `M1`: Mod-9 Digital Root Congruence `dr_9(n)`, `9`-Sum Syzygy Involution & Quantitative Anchor Perturbation Algebra `Δ_Q` — Recommended Candidate):**
- Adds **Section 3 (`3. Mod-9 Digital Root Congruence dr_9(n), 9-Sum Syzygy Involution & Anchor Perturbation Δ_Q`)** explicating $dr_9(n) = 1 + ((n - 1) \bmod 9) \in \{1..9\}$, the syzygy involution $\sigma(r) = 9 - r$ (`{(1,8), (2,7), (3,6), (4,5)}`), and the anchor revision delta $\Delta_Q = \text{AQ}(Q_{\text{new}}) - \text{AQ}(Q_{\text{old}})$ across `Paths A/B/C`.
- **Strategy `2B` (Add `dr_9(n)` Only — Partial Candidate):**
- Covers `dr_9(n)` without `--revise-anchor` perturbation algebra.
- **Strategy `2C` (Leave `M1` at 2 Sections — Status Quo):**
- Leaves `dr_9(n)` and `--revise-anchor` undocumented.
---
### Audit Point 3: Unit `M2` (`phonemic-projections-and-g-vectors`) — Complete All 6 Vectors (`G1–G6`), Shannon Entropy Compression & SQLite FTS5 Okapi BM25 Ranking
- **Strategy `3A` (Complete Vectors `G2` & `G6` in Section 2 + Add Section 3 on Information-Theoretic Phonemic Compression & SQLite FTS5 Okapi BM25 Retrieval — Recommended Candidate):**
- Completes all six vectors (`G1` through `G6`, adding `G2` Cross-Generational Twin Locks and `G6` Multi-Scale Repdigit Closure) and adds **Section 3 (`3. Information-Theoretic Entropy Reduction H(Φ(W)) ≤ H(W) & SQLite FTS5 Okapi BM25 Full-Text Ranking`)** covering equivalence quotients $\Sigma_{\text{eng}}^* / \ker(\text{AQ} \circ \Phi)$ and the Okapi BM25 scoring equation in `fts_catalog`.
- **Strategy `3B` (Add Missing Vectors `G2` & `G6` Only — Partial Candidate):**
- Completes `G1–G6` without Section 3 on Shannon entropy and FTS5 BM25.
- **Strategy `3C` (Leave `M2` Unchanged — Status Quo):**
- Leaves `G2`, `G6`, and BM25 omitted.
---
### Audit Point 4: Unit `M3` (`graph-topology-and-eti-scoring`) — Concentric Polar Radar Geometry (`Mode 2`), 4-Key Lexicographic Total Order & 1-Hop Ego Subgraphs
- **Strategy `4A` (Add Section 3 to `M3`: Concentric Polar Radar Affine Mapping `(r, θ) -> (x, y)`, 4-Key Lexicographic Tie-Breaker & 1-Hop Induced Ego Subgraphs — Recommended Candidate):**
- Adds **Section 3** explicating the Mode 2 Concentric Polar Radar radial mapping $r(\text{ETI}_i) = R_{\min} + \frac{100 - \text{ETI}_i}{100}(R_{\max} - R_{\min})$, the 4-key lexicographic total order $(\text{ETI}_i, \text{CAP}_i, \text{COL}_i, \text{ARM}_i)$, and the 1-hop ego-network induced subgraph $G[N_1(v)]$.
- **Strategy `4B` (Add Polar Radar Formula Only — Partial Candidate):**
- Adds $r(\text{ETI}_i)$ without the 4-key lexicographic tie-breaker or ego-subgraph formula.
- **Strategy `4C` (Leave `M3` at 2 Sections — Status Quo):**
- Leaves Mode 2 radar geometry undocumented on `/math/`.
---
### Audit Point 5: Unit `M4` (`timeseries-moments-and-confluence-dose`) — Dynamic `472` Bar Count, Sabermetric Moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`) & Thomas' Calculus via `Z`
- **Strategy `5A` (Replace Hardcoded `440` with Live `472` Bar Count + Add Section 3 on Longitudinal Sabermetric Moments, Lead-Lag $t$-Statistics & Thomas' Calculus via `Z` Combinator — Recommended Candidate):**
- Dynamically interpolates live `472` real exchange bars (`19` trading days per public ticker) and adds **Section 3** covering `SNAP%`, `WOPR`, `LOE`, `WAR_30d`, lead-lag Pearson $r(\tau)$ with Student-$t$ statistic ($df = n - 2$), and the formal equations for limits, central difference derivatives, $n$-th derivatives, Riemann sums, and adaptive Simpson quadrature enacted via the applicative-order `Z` combinator (`guile_prelude.scm`).
- **Strategy `5B` (Fix `440 -> 472` Count Only — Minimal Candidate):**
- Updates the bar count without explicating `SNAP%`/`WOPR`/`WAR_30d` or the `Z`-calculus formulas.
- **Strategy `5C` (Leave `M4` Unchanged — Status Quo):**
- Retains the stale `440` bar count.
---
### Audit Point 6: Unit `M5` (`macro-spreads-and-bayesian-inference`) — Content-Addressed Merkle Cryptography (`RFC 8785 JCS + IPLD dag-json CIDv1`) & Sample-Size Confidence Bounds
- **Strategy `6A` (Add Section 3 to `M5`: Content-Addressed Merkle Cryptography `RFC 8785 JCS + IPLD dag-json (0x0129) CIDv1` Over Target Registries & Binomial Sample-Size Confidence Bounds — Recommended Candidate):**
- Adds **Section 3** explicating RFC 8785 JCS canonicalization, binary multihash `CIDv1 = 'b' || Base32([0x01, 0xA9, 0x02, 0x12, 0x20] || SHA256(JCS(X)))` over target domain registries (omitting `math-manifest.json` self-reference), HTTP `ETag` equivalence, and why a worst-case ($p=0.5$) 95% binomial confidence interval half-width $\le \pm 4.38\%$ requires $N_{\text{ext}} \ge 500$.
- **Strategy `6B` (Add `CIDv1` Formula Only — Partial Candidate):**
- Documents `CIDv1` byte construction without the $N_{\text{ext}} \ge 500$ binomial confidence bound.
- **Strategy `6C` (Leave `M5` at 2 Sections — Status Quo):**
- Leaves `IPLD dag-json CIDv1` and the $N_{\text{ext}} \ge 500$ confidence bound undocumented.
@@ -0,0 +1,112 @@
# PLAN: Piecewise Complete Software Engineering Explication Across `/engineering/` (`Unit E0` Hub & Subpages `E1–E5`, Strict Anti-Self-Reference Closure Boundary, `Audit Points 1–6`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION`
**Status:** `ACTIVE / READY FOR STEPWISE PIECEWISE REVIEW & IMPLEMENTATION`
**Target Ecosystem Version:** `v2.9.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Strict Anti-Self-Reference / Non-Circular Closure Invariant (`Zero Self-Explication of /engineering/*`)
To prevent self-referential fixed-point and `IPLD dag-json CIDv1` closure issues (where modifying `/engineering/` to describe `/engineering/` alters `engineering_docs.py` / `engineering-manifest.json` / `hs-eng-docs` counts and routes in a circular feedback loop):
1. **Strict Explication Boundary (What `/engineering/*` Must NEVER Explicate):**
- `/engineering/` (`Unit E0` Hub and Subpages `E1–E5`) is the **observer/explication lens**, never the **observed subject**.
- Therefore, `/engineering/` and its subpages (`E1–E5`) **must omit `/engineering/` (`site/engineering/*`), `publishing/engineering_docs.py`, `hs-eng-docs`, `engineering-manifest.json`, and the `/engineering/` subpages themselves (`E0–E5`) from the subject matter being explicated** (and likewise omit `publishing/math_docs.py` / `hs-math-docs` self-reference).
- In `ENGINEERING_GUILE_CARTRIDGES["E0"]` and the Hub `E0` tables, replace self-referential `introspect_engineering_manifest()` examples with non-self-referential workspace target introspection (`load_workspace_config()`, `MCP_TOOLS_SCHEMA`, `REST_DOMAIN_ALIASES`, and core domain CLI entrypoints excluding `hs-eng-docs`/`hs-math-docs` from self-referential prose).
2. **What `/engineering/*` Explicates Instead (100% of the Target Domain Software Engineering):**
- Explicates exclusively the **underlying operational software systems** of `hyperstitionstud.io`:
- **Domain `E1`:** `ciphers`, `phonetics`, `packages-js/ciphers-aq`, `/calc/` (`haiperdohp-jemaytreeah`), and the 4-Gate CI provisioner (`ci_provision_ingglish.py`).
- **Domain `E2`:** `glossary` (`ReadOnlyIsolationGuard`), `graph` (`build_encyclopedia_knowledge_graph.py`), and `db/sqlite_meta.py` (`hyperstition-catalog.db` & `api-telemetry.db`).
- **Domain `E3`:** `quant/{collector,timeseries,macro,daily_brief}.py`, `lenses/__init__.py`, and `/quant/` (`quant-app.js`, `quant-tutorials.js`).
- **Domain `E4`:** `mcp/{server,rest,tools,resources,prompts}.py`, `quant/cards.py`, `ipld/__init__.py`, and `publishing/polyglot_sandbox.py` (`hs-guile-scheme-repl.js`).
- **Domain `E5`:** `deploy/{sync-vps-repos.sh,run-vps-data-production.sh,run-vps-archive-rotation.sh,Caddyfile}`, `push-all-to-git-libre-audio.sh`, `version_sync.py`, `publishing/{pdf_compiler,archive_rotator,readme_sync,highlights,flow_diagram}.py`, `ci/{doctor,citation_sources,erofs_harness,public_regression}.py`, and `site/assets/{hs-group3-basalt-chamfer.css,hs-matrix-coderain.js}`.
---
## 2. Ground-Truth Audit: Live Target Codebase Modules (`v2.8.1`) vs. Current `/engineering/` Explication Gaps (`Rule C.1`)
| Audit Point & `/engineering/` Surface | What Is Currently Rendered on `/engineering/` (`v2.8.1`) | Self-Reference Bugs, Stale Counts & Undocumented Target Modules Found in Audit (`Gaps to Fix`) |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Hub `E0` (`/engineering/index.html`)* | • `E0` Polyglot Cartridge currently calls `manifest = introspect_engineering_manifest()` (self-referential!) and hardcodes stale `tools=15` and `lenses=4`<br/>• Includes an `Enabled Subpages: 5 / 5` stat tile and `hs-eng-docs` / `hs-math-docs` in the CLI table | **1. Eliminate Self-Reference on `E0`:** Replace `introspect_engineering_manifest()` in `ENGINEERING_GUILE_CARTRIDGES["E0"]` with non-self-referential `load_workspace_config()` / `MCP_TOOLS_SCHEMA` (`20` tools, `6` lenses), remove the self-referential `Enabled Subpages` stat tile, and filter `hs-eng-docs` & `hs-math-docs` out of the target domain CLI table.<br/>**2. Add Non-Self-Referential 6-Repository & Core Subpackage Architecture Table:** Map the 6 repositories and core domain subpackages (`config`, `ciphers`, `phonetics`, `glossary`, `graph`, `quant`, `lenses`, `db`, `ipld`, `mcp`, `ci`) without referencing `/engineering/` itself. |
| **Audit Point 2**<br/>*Subpage `E1` (`ciphers-and-phonetics`)* | • `Section 1`: Base-36 mapping & quantization modes (`digit`, `off`, `spoken`)<br/>• `Section 2`: 3-Tier `translate_batch()` phonetics transducer (`4,943` `cmudict_fallback.json` keys) | **1. Undocumented `packages-js/ciphers-aq` Dual-Runtime Parity & `/calc/` Progressive DB Hydration:** Omits how the browser/ESM package (`packages-js/ciphers-aq`) and `/calc/` (`haiperdohp-jemaytreeah/tools/generate_db_json.py`, progressive `db_lite.json` + `db.json` hydration over `231,615` `db.txt` entries) stay in lockstep with Python `hyperstitionstud_io.ciphers`.<br/>**2. Undocumented `4-Gate CI Provisioner` (`ci_provision_ingglish.py`):** Omits the 4 gates (`Gate A` Format, `Gate B` Phonemic Determinism, `Gate C` Isopsephic Parity, `Gate D` Deduplication) that filter candidates into `db.txt`. |
| **Audit Point 3**<br/>*Subpage `E2` (`knowledge-graph-and-sqlite`)* | • `Section 1`: `ReadOnlyIsolationGuard` (`glossary/__init__.py`)<br/>• `Section 2`: 6-Gate KG compiler & `api-telemetry.db` `100M` quiescent `logrotate` | **1. Undocumented `v2.8.0` Zero-PII Market-Research Telemetry Schema (`sqlite_meta.py`):** Omits the `external_requests` vs `internal_requests` split (`N>=500` `"No data available"` gate), the closed-set allowlist `api_parameter_rollups` table (`symbol`, `lens`, `lang`, `surface`, `donate_from`, `donate_copy`, `export_action`), `static_route_rollups` (`--ingest-caddy-route-counts`), and `get_longitudinal_telemetry_summary()` (`--telemetry-history` across `.1.gz..12.gz`).<br/>**2. Undocumented 6 Knowledge Graph Verification Gates:** Mentions "6-Gate" without listing what Gates `1–6` in `build_encyclopedia_knowledge_graph.py` verify. |
| **Audit Point 4**<br/>*Subpage `E3` (`quant-macro-and-bayesian-brief`)* | • `Section 1`: `collector.py` & `macro.py`<br/>• `Section 2`: 14-Point Census, Confluence Dose ($D \in \{0..4\}$), & `daily_brief.py` | **1. Stale Bar Count (`440` vs `472`):** Line 282 hardcodes `"23 public tickers load 440 verified daily exchange bars"` instead of dynamically reading the live `472` real exchange bars (`19` trading days across `24` instruments)!<br/>**2. Undocumented `LENS_REGISTRY` (`lenses/__init__.py`) & Frontend Quant Engine (`quant-app.js` / `quant-tutorials.js`):** Omits how `LENS_REGISTRY` projects `struct_*` and `ts_*` keys across the 6 lenses and how the Zero-MP4 25-scene canvas choreographer (`quant-tutorials.js`) and 27 `ⓘ` glossary popovers work. |
| **Audit Point 5**<br/>*Subpage `E4` (`mcp-chatbot-rest-and-ipld`)* | • `Section 1`: Stateless MCP (`/mcp`) & OpenAPI 3.1 REST (`/api/v1/*`)<br/>• `Section 2`: `quant/cards.py` (`900×1260` TCG stats cards) & `ipld/__init__.py` (`CIDv1`) | **1. Stale Tool Count (`15` vs `20`) & Self-Referential Tool Exclusion:** Line 311 hardcodes `"expose all 15 tools in MCP_TOOLS_SCHEMA"` instead of the live domain tools, static URN resources (`mcp/resources.py`), URI templates, and prompts (`mcp/prompts.py`).<br/>**2. Undocumented HTTP `ETag` (`304 Not Modified`) Middleware & `34x` Stats-Card Fast-Path:** Omits `compute_response_etag()` / `matches_if_none_match()` in `mcp/rest.py` and the pre-compiled `quant-timeseries.json` fast-path (`1,186 ms -> ~35 ms`) in `quant/cards.py`.<br/>**3. Undocumented 4-Ring Polyglot Sandbox (`publishing/polyglot_sandbox.py` & `hs-guile-scheme-repl.js`):** Never explains how the 4-Ring Zero-`eval()` AST sandbox (`Ring 1` Lexer Gate, `Ring 2` Step/Depth Quota, `Ring 3` Pure AST Evaluator for Guile/TS/Rust, `Ring 4` Read-Only Isolation) works. |
| **Audit Point 6**<br/>*Subpage `E5` (`cicd-vps-tmpfs-and-regression`)* | • `Section 1`: Zero-`/dev/null` scripts & `HYPERSTITION_SYNC_REEXEC`<br/>• `Section 2`: `pdf_compiler.py`, `archive_rotator.py`, & `public_regression.py` (`Gates P1–P6`) | **1. Eliminate Self-Referential Subtitle Text (`Non-Sequentially Revertible via hs-eng-docs --disable ...`):** Subtitles across `E0–E5` currently describe `hs-eng-docs --disable` (self-reference!). Replace with non-self-referential domain authority subtitles.<br/>**2. Undocumented `ProtectSystem=strict` (`EROFS`) Syscall Test Harness (`ci/erofs_harness.py`), `readme_sync.py` (`hs-readme-sync`), Git Hooks (`pre-commit` & `commit-msg`), `citation_sources.py` (`hs-citations`), & `hs-matrix-coderain.js`:** Add sections covering these core CI/CD and frontend modules without mentioning `engineering_docs.py`. |
---
## 3. Four Factual Binary Engineering Gates (`G1–G4`, Zero Self-Reference & Zero Synthetic Data)
- **`Gate G1` (Strict Anti-Self-Reference Closure):** Zero prose, code examples, subtitles, or tables on `/engineering/*` may reference `engineering_docs.py`, `hs-eng-docs`, `engineering-manifest.json`, or `/engineering/` itself as a subject of explication.
- **`Gate G2` (100% Live Introspected Domain Counts — Zero Stale Numbers):** Every domain count (`472` real exchange bars, `4,943` CMUdict entries, `24` watchlist tickers, `14` FRED series, `388` KG nodes, `1,282` edges) is interpolated dynamically from the target domain registries.
- **`Gate G3` (`0` LLM Tokens & `ProtectSystem=strict` `EROFS` / `ReadOnlyIsolationGuard` Safe):** Zero mutations to locked upstream registries (`all_unchanged: True`).
- **`Gate G4` (100% Target Domain Module Coverage):** Every target operational module in `hyperstitionstud_io.*` (excluding the observer modules `engineering_docs.py` and `math_docs.py`) is explicated.
---
## 4. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `6A–6C`)
---
### Audit Point 1: Hub `E0` (`/engineering/index.html`) — Remove Self-Reference (`introspect_engineering_manifest`, `Enabled Subpages`, `hs-eng-docs`) & Add 6-Repo Target Domain Architecture Map
- **Strategy `1A` (Purge Self-Reference from `E0` Cartridge/Tiles/Tables + Add Non-Self-Referential 6-Repository & Core Subpackage Architecture Table — Recommended Candidate):**
- Replaces `introspect_engineering_manifest()` in `ENGINEERING_GUILE_CARTRIDGES["E0"]` with `load_workspace_config()` (`hyperstitionstud_io.config`) and live domain counts (`repositories=6`, `watchlist=24`, `fred=14`, `lenses=6`), removes the self-referential `Enabled Subpages` stat tile and `hs-eng-docs`/`hs-math-docs` rows from the CLI table, removes self-referential `hs-eng-docs --disable` text from `E0–E5` subtitles, and adds a **6-Repository & Core PEP 420 Subpackage Architecture Table** describing the target operational codebase (`config`, `ciphers`, `phonetics`, `glossary`, `graph`, `quant`, `lenses`, `db`, `ipld`, `mcp`, `ci`).
- **Strategy `1B` (Purge Self-Reference & Fix Counts Only — Minimal Candidate):**
- Removes self-references and fixes stale counts in `E0` without adding the 6-repository & subpackage architecture table.
- **Strategy `1C` (Leave `E0` Unchanged — Status Quo):**
- Retains self-referential `introspect_engineering_manifest()` and stale `15` / `4` counts.
---
### Audit Point 2: Unit `E1` (`ciphers-and-phonetics`) — Dual-Runtime JS/Python Cipher Parity, `/calc/` Progressive DB Hydration & 4-Gate CI Provisioner
- **Strategy `2A` (Add Section 3 to `E1`: Browser/ESM `packages-js/ciphers-aq` Parity, Progressive `db_lite.json` + `db.json` Hydration (`231,615` Entries) & 4-Gate `ci_provision_ingglish.py` — Recommended Candidate):**
- Explains how `packages-js/ciphers-aq` and `haiperdohp-jemaytreeah/tools/generate_db_json.py` maintain 100% parity with Python `compute_aq()`, how `/calc/` progressively hydrates `db_lite.json` $\to$ `db.json`, and how `ci_provision_ingglish.py` enforces Gates `A–D`.
- **Strategy `2B` (Document `ci_provision_ingglish.py` Only — Partial Candidate):**
- Covers the 4-Gate CI script without `/calc/`'s progressive DB hydration.
- **Strategy `2C` (Leave `E1` at 2 Sections — Status Quo):**
- Leaves `/calc/` and `hyperdope-ci-build` undocumented.
---
### Audit Point 3: Unit `E2` (`knowledge-graph-and-sqlite`) — 6-Gate KG Verifier Specification & `v2.8.0` Zero-PII SQLite Telemetry Schema
- **Strategy `3A` (Expand `E2` with Explicit 6-Gate KG Verifier Breakdown + `v2.8.0` 4-Table Zero-PII SQLite Telemetry Architecture — Recommended Candidate):**
- Explicitly enumerates Gates `1–6` of `build_encyclopedia_knowledge_graph.py --verify-only` and documents both `hyperstition-catalog.db` (`8` tables including FTS5 BM25 `fts_catalog`, omitting any self-referential manifest rows) and `/var/lib/hyperstitionstud.io/api-telemetry.db` (`api_endpoint_rollups` `external_requests` vs `internal_requests`, closed-set allowlist `api_parameter_rollups`, zero-IP Caddy `static_route_rollups`, `get_longitudinal_telemetry_summary()` across `.1.gz..12.gz`, and $N_{\text{ext}} \ge 500$ `"No data available"` confidence gating).
- **Strategy `3B` (Update `sqlite_meta.py` Prose Only — Partial Candidate):**
- Mentions `api_parameter_rollups` without enumerating the 6 KG gates.
- **Strategy `3C` (Leave `E2` Unchanged — Status Quo):**
- Leaves the `v2.8.0` telemetry tables and 6 KG gates undocumented.
---
### Audit Point 4: Unit `E3` (`quant-macro-and-bayesian-brief`) — Dynamic Bar Count (`472`), `LENS_REGISTRY` Architecture & Zero-MP4 Canvas Tour Engine
- **Strategy `4A` (Replace Hardcoded `440` with Live `472` Bar Introspection + Add Section 3 Covering `LENS_REGISTRY`, 27 `ⓘ` Popovers & Zero-MP4 25-Scene `quant-tutorials.js` — Recommended Candidate):**
- Dynamically interpolates live `472` real exchange bars (`19` trading days across `23` public tickers + `ANTHR-PVT` private = `null`) and adds Section 3 covering `lenses/__init__.py` (`project_build_through_lens()`), `quant-app.js` (`QUANT_TERM_GLOSSARY` 27 `ⓘ` popovers), and `quant-tutorials.js` (5-episode × 5-scene canvas choreographer + WebAudio fallback chime).
- **Strategy `4B` (Fix `440 -> 472` Count Only — Minimal Candidate):**
- Fixes the stale bar count without documenting `lenses/__init__.py` or `quant-tutorials.js`.
- **Strategy `4C` (Leave `E3` Unchanged — Status Quo):**
- Retains the stale `440` bar count.
---
### Audit Point 5: Unit `E4` (`mcp-chatbot-rest-and-ipld`) — HTTP `ETag` (`304`), `34x` Stats-Card Fast-Path & 4-Ring Polyglot AST Sandbox (`polyglot_sandbox.py`)
- **Strategy `5A` (Document HTTP `ETag` `304`, `34x` Stats-Card Fast-Path & Add Section 3 on the 4-Ring Zero-Eval Polyglot AST Sandbox (`polyglot_sandbox.py` & `hs-guile-scheme-repl.js`) — Recommended Candidate):**
- Updates Section 1 with deterministic HTTP `ETag` (`"<dag_json_cidv1>"`) + `If-None-Match` (`304 Not Modified`) caching in `mcp/rest.py` and `mcp/server.py` (omitting self-referential `hs_inspect_engineering_and_math_docs` / `engineering-manifest` from the prose examples), updates Section 2 with the `34x` stats-card fast-path (`1,186 ms -> ~35 ms`) in `quant/cards.py`, and adds Section 3 detailing the 4-Ring Zero-`eval()` Polyglot AST Sandbox (`Ring 1` Lexer Gate, `Ring 2` `max_steps=2000` Quota, `Ring 3` Pure AST/S-Expression Evaluator, `Ring 4` `ReadOnlyIsolationGuard`).
- **Strategy `5B` (Update Section 1 & 2 Prose Only — Partial Candidate):**
- Adds `ETag` `304` and the `34x` fast-path without Section 3 on `polyglot_sandbox.py`.
- **Strategy `5C` (Leave `E4` Unchanged — Status Quo):**
- Leaves `ETag` `304` and `polyglot_sandbox.py` undocumented.
---
### Audit Point 6: Unit `E5` (`cicd-vps-tmpfs-and-regression`) — `ProtectSystem=strict` (`EROFS`) Syscall Harness, `hs-readme-sync` + Git Hooks, `hs-citations` & Group 3 Frontend Engine
- **Strategy `6A` (Add `v2.8.1` `--hooks-only` VPS Merge Fix + Section 3 on `ci/erofs_harness.py` & `ci/citation_sources.py` + Section 4 on `readme_sync.py`, `commit-msg` Gate, `highlights.py --corpus-delta` & `hs-matrix-coderain.js` — Recommended Candidate):**
- Updates Section 1 with the `v2.8.1` VPS fast-forward merge protection (`git checkout -- README.md` + `hs-readme-sync --hooks-only`), adds Section 3 covering `simulate_protect_system_strict()` (`ci/erofs_harness.py`) and `verify_draft()` (`ci/citation_sources.py`), and adds Section 4 covering `readme_sync.py` (`.git/hooks/{pre-commit,commit-msg}`), `highlights.py --corpus-delta`, and the Group 3 + `hs-matrix-coderain.js` (`matrix-font.woff2`, `12.5 fps`, `-60%` center-well vignette) frontend engine.
- **Strategy `6B` (Add `erofs_harness.py` & `readme_sync.py` Only — Partial Candidate):**
- Documents `erofs_harness.py` and `readme_sync.py` without `citation_sources.py` or `hs-matrix-coderain.js`.
- **Strategy `6C` (Leave `E5` at 2 Sections — Status Quo):**
- Leaves `erofs_harness.py`, `readme_sync.py`, `citation_sources.py`, and `hs-matrix-coderain.js` undocumented.