Files
ingglish-hyperdope-gematria/HYPERDOPE-INGGLISH-THREE-REPO-ARCHITECTURE.md
T

132 lines
16 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.
# Companion Guide: Three-Repository Architecture, Directory Inventory & Functional Roles
**Author:** Hermes Agent (`m00t` / Nous Research)
**Companion To:** `HYPERDOPE-INGGLISH-CI-INTEGRATION-GUIDE.pdf`
**Workspace Root:** `/workspace` (Three Peer Sibling Git Repositories)
**Date:** November 4, 2026 UTC
---
## 1. Architectural Purpose: Why Three Peer Repositories?
The `/workspace` environment is intentionally organized as **three independent, peer sibling Git repositories** with no outer `/workspace/.git` wrapper. Each repository isolates a distinct stage of the **Ingglish Alphanumeric Qabbala (AQ)** research, continuous integration (CI), and production web-application lifecycle:
| Repository Path | Functional Domain | Size Profile | Primary Consumers |
| :--- | :--- | :--- | :--- |
| `/workspace/ingglish-hyperdope-gematria` | **Research Archive, Authoring & Automation Engine:** Houses the canonical markdown ledgers, dossiers, 100-point rubric evaluations, lecture series, and Python/Node.js CLI scripts. | Source `.md`, `.py`, `.mjs`, `.pdf`, `.png` (plus gitignored `.mp3` audio) | Researchers, daily `00:00 GMT` news harvest cron, and `ci_provision_ingglish.py` extractor |
| `/workspace/hyperdope-ci-build` | **Lightweight CI Staging & PR Artifact Hub:** Isolates the exact `1,117`-entry Ingglish delta, 4-gate CI audit report, and zero-ambiguity GitHub PR submission objects without carrying the 230k-line upstream database. | Lightweight text & JSON (`~160 KB` tracked) | Daily `00:10 GMT` CI cron, code reviewers, and upstream PR submission scripts |
| `/workspace/hyperdope-gematria` | **Full Production Web Calculator (`Cypher Calculator`):** Complete clone of `malonehunter/hyperdope-gematria` (`v2.6.1`) with the `1,117` Ingglish entries merged into the `231,060`-line `db.txt`, precompiled `db.json` (`77 MB`) + `db_lite.json` (`19 MB`), and the `ING ↑` UI toggle. | Full application (`4.0 MB` `db.txt` + `96 MB` precomputed JSON bundles) | Local/hosted browser users querying 69–82 simultaneous ciphers in `<100ms` |
---
## 2. Repository 1: `/workspace/ingglish-hyperdope-gematria` (Research Archive & Script Engine)
- **Remote (`origin`):** `ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-gematria.git`
- **Active Branches:** `main` (merged production archive), `testing`
- **Core Function:** Serves as the **Single Source of Truth** for all Ingglish phonetic translations, Base-36 AQ (`0-9=0-9, A=10..Z=35`) equivalence classes, bidirectional evaluations, audio lectures, and automation tooling.
### 2.1 `ingglish-aq-archive/` (Canonical Corpus Directory)
Every `.md` file in this directory is scanned directly by `ci_provision_ingglish.py` during Stage 1 extraction:
- **Foundational Index & Tier-1 Lexicon (`00–01`):**
- `00-index-and-methodology.md`: Master registry of all archive dossiers, Base-36 AQ rules, Type I–III isometric bridge taxonomy (`Δ = 0`), and methodology standards.
- `01-ingglish-aq-lexicon.md`: Canonical Tier-1 atomic lexicon containing single words, acoustic homophone compression hubs (`Nait [Ingglish: Night / Knight] = 80`, `Rait [Ingglish: Write / Right / Rite] = 84`, `Ai [Ingglish: I / Eye / AI] = 28`), and compensatory isometries (`Aiern [Ingglish: Iron] = 92`, `Gohst [Ingglish: Ghost] = 114`, `Deeman [Ingglish: Demon] = 96`, `Spaider Hed [Ingglish: Spider Head] = 179`).
- **Attractor & Syzygy Ledgers (`10–19`):**
- `10-ledger-aq-333.md`: Multi-word phrases and fixed-affix equations (`<X> be my god`) summing to `333` (`9 × 37`).
- `11-ledger-aq-666.md`: Solar/sorcerous equations summing to `666` (`18 × 37`).
- `12-ledger-aq-777.md`: Higher-scale repdigit equations summing to `777` (`21 × 37`).
- `19-ledger-numogram-syzygies.md`: Equations locked to Ccru Numogram constants (`81 = 3^4`, `108`, `216`, `495`) and repdigits (`111..999`).
- **Thematic & Film Dossiers (`20–24, 26–35`):**
- `20-dossier-typhonian-entities.md`, `21-dossier-theorists-and-philosophers.md`, `22-dossier-bellows-lungs-voices.md`: Deep-dive thematic dossiers on occult/Typhonian entities, continental/cybernetic theorists (`Nik Land`, `Joshooa Raymee`), and pneumatic motifs.
- `23-dossier-the-dark-tower.md`, `24-dossier-the-thing.md`, `26-dossier-prince-of-darkness.md`, `27-dossier-in-the-mouth-of-madness.md`, `28-dossier-event-horizon.md`, `29-dossier-annihilation.md`, `30-dossier-videodrome.md`, `31-dossier-under-the-skin.md`, `32-dossier-color-out-of-space.md`, `33-dossier-hellraiser.md`, `34-dossier-the-void.md`, `35-dossier-possession.md`: Ten film dossiers mapping plot-critical triads and character/artifact collisions (e.g., `chaildz == ayleean == wiskee == 126` in *The Thing*).
- **Daily UTC Current-Events Dossiers (`25, 46, 48+`):**
- `25-dossier-news-2026-11-01.md`, `46-dossier-news-2026-11-02.md`, `48-dossier-news-2026-11-03.md`: Generated daily at `00:00 GMT` (`19:00 EST`) from Wikipedia `Portal:Current_events`, BBC News, and AP Wire, documenting prime-valued headlines, cross-story collision classes, and isometric locks.
- **Bidirectional 100-Point Rubric Evaluations (`30–45, 47-eval-*-bidirectional.md`):**
- Side-by-side `Gen 0` (Standard English) vs. `Gen 1` (Ingglish) evaluations scored on the 100-point rubric (`Mean Abs(Δ)`, anti-padding discipline, and `G1–G6` genealogical vectors).
- **Exegetical Humor & Compendiums:**
- `*-aq-joke-and-explanation.md` (12 files): Gematria jokes and line-by-line arithmetic proofs for each film dossier.
- `top-10-ingglish-aq-lists.md` & `top-10-landian-outsideness-movies-compendium.md`: Master synthesis compendiums.
### 2.2 `ingglish-aq-archive/scripts/` (Canonical CLI Tooling)
All executable scripts live here (mounted read-write inside the container and wrapped by host skills):
| Script File | Language / Deps | Primary Function |
| :--- | :--- | :--- |
| `ci_provision_ingglish.py` | Python 3 (`reportlab`, `pypdf`, `pdfplumber`) | Extracts Tier 1+2 entries from `ingglish-aq-archive/`, runs the 4-gate CI audit, builds onboarding docs, emits PR payloads, and applies updates to target Git repos (`--apply-repo`). |
| `collect_news_aq.py` | Python 3 + Node `ingglish` | Fetches completed 24h UTC news feeds (`Wikipedia`, `BBC`, `AP`), translates headlines/entities to Ingglish, and outputs structured JSON (`news-aq-harvest-latest.json`) for daily news dossiers. |
| `evaluate_aq.mjs` | Node.js (`ingglish`, `@ingglish/dictionary`) | Evaluates single phrases or markdown tables across English and Ingglish AQ, computing `Δ`, `reverseTranslate()` homophone forks, and 100-point rubric scores. |
| `generate_aq_tier_list.py` | Python 3 (`Pillow`, `reportlab`) | Computes the Option 4 Hybrid Numogrammatic Curve and renders `S+` to `F` tier lists as Markdown, PDF, and dark-themed PNGs. |
| `manage_lecture_artifacts.py` | Python 3 | Enforces `lecture-NN-<slug>-ingglish-aq.{md,mp3}` naming, audits inline arithmetic, strips markdown for TTS, and verifies `.md`/`.mp3` pairs. |
| `build_wire_report_pdf.py` | Python 3 (`reportlab`, `pypdf`, `pdfplumber`) | Compiles markdown reports and guides into paginated PDFs while safely masking inline code spans (`\x00CODE\x00`) and Greek/math symbols. |
| `forensic_timeline_audit.py` | Python 3 | Audits `stat` (`btime`/`mtime`), Git commit history, and SHA-256 provenance across workspace artifacts. |
| `pdf_create.py` / `pdf_read.py` | Python 3 (`reportlab`, `pypdf`, `pdfplumber`) | General-purpose JSON-to-PDF builder and metadata/text/table extractor. |
### 2.3 Repository Root Deliverables & `packaging/`
- **Lectures (`lecture-01..20-*-ingglish-aq.md` & `.mp3`):** Five lecture series (Series I: `100% d-pure` ten-letter regime; Series II: `d = 0` disjoint cuts; Series III: Serresian clinamen & turbulent fluid; Series IV: Ordinary sensory room repeats; Series V: Meta-archival synthesis).
- **Tier Lists & Wire Reports:** `dossier-bidirectional-eval-tier-list.{md,pdf,png}`, `tier-list-lecture-series-i-to-iv.{md,pdf,png}`, and `wire-report-draft-ingglish-aq-lecture-series.{md,pdf}`.
- **Onboarding & Integration Guides:** `ONBOARDING-INGGLISH-AQ.{md,pdf}`, `HYPERDOPE-INGGLISH-CI-INTEGRATION-GUIDE.{md,pdf}`, and `HYPERDOPE-INGGLISH-THREE-REPO-ARCHITECTURE.{md,pdf}`.
- **`packaging/`:** Contains `bundle/` (with relative symlinks to canonical scripts and `install.sh`), `quadlet/Containerfile.ubi9` for rootless Podman deployment, and redistributable `.tar.gz` / `.tar.xz` archives.
---
## 3. Repository 2: `/workspace/hyperdope-ci-build` (CI Staging & PR Hub)
- **Remote (`origin`):** `ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-ci.git`
- **Active Branches:** `master`, `main`, and `feat/ingglish-aq-corpus` (all aligned at `e907467`)
- **Core Function:** Acts as a clean, fast-diffing staging ground updated automatically at `00:10 GMT` by the `hyperdope-ingglish-ci-daily-0010-gmt` cron job. Because it tracks only the `1,117` provisioned Ingglish entries rather than the full 230,000-line upstream `db.txt`, every daily commit clearly shows the exact newly added equations (e.g., `+49` lines from Dossier 48).
### 3.1 File-by-File Inventory of `/workspace/hyperdope-ci-build`
| File / Directory | Role in the CI Pipeline |
| :--- | :--- |
| `db.txt` (`1,119` lines) | Staging database containing `CREATE_GEMATRO_DB`, baseline target entries, and all `1,117` normalized, sorted `<Ingglish> [Ingglish: <English Gloss>]` entries. |
| `db_ingglish_entries.txt` (`1,118` lines) | Pure export of `CREATE_GEMATRO_DB` + the `1,117` extracted Ingglish entries prior to merging with any external baseline. |
| `tools/normalize_caps.py` | Upstream case-normalizer patched with `INGGLISH_NON_ROMAN = {"di", "li", "mi", "vi", "iv", "ci", "xi"}` to prevent short phonetic syllables from being uppercased as Roman numerals. |
| `config.default.js` | Upstream default configuration file demonstrating the `databaseVersion` increment (`4 -> 5`) used to cache-bust browser JSON fetches. |
| `docs/ONBOARDING-INGGLISH-AQ.md` | Newcomer onboarding guide formatted for inclusion in upstream `docs/`. |
| `ONBOARDING-INGGLISH-AQ.pdf` | 2-page PDF compilation of the newcomer onboarding guide (`4,727` extracted characters). |
| `ci-audit-report.json` | Machine-readable output of the 4-gate CI verification (`gate1_normalize_idempotent: true`, `gate2_classify_keep_rate: 1.0`, `gate3_comment_strip_clean: true`, `gate4_aq_mismatches: 0`). |
| `commit-message.txt` | Ready-to-use Conventional Commit message (`feat(db): provision verified Ingglish phonetic lexicon and AQ attractor corpus`) with exact Tier-1 (`343`) and Tier-2 (`774`) counts. |
| `pr-body.md` | Complete GitHub Pull Request markdown description including architectural notes, sample equations table, and pre-checked `[x]` verification boxes. |
| `pr-payload.json` | Complete JSON request body for `POST /repos/malonehunter/hyperdope-gematria/pulls` (`base: "master"`, `head: "feat/ingglish-aq-corpus"`) plus SHA-256 file digests. |
| `submit-pr.sh` | Executable bash script (`0755`) that configures `origin`, checks out `feat/ingglish-aq-corpus`, stages deterministic target files, commits with `commit-message.txt`, and (when `SUBMIT_REMOTE=1`) pushes and creates the GitHub PR. |
---
## 4. Repository 3: `/workspace/hyperdope-gematria` (Production Web Calculator)
- **Remotes:**
- `origin` (Upstream): `https://github.com/malonehunter/hyperdope-gematria.git` (`master` at `d025c7e`, `v2.6.1`)
- `downstream` (Custom Fork): `ssh://git@git.libre.audio:2222/seasharp/haiperdohp-jemaytreeah.git`
- **Active Branches:**
- `feat/ingglish-aq-corpus` (`c1e6a98`): Clean upstream-compatible PR branch containing **only** the `db.txt` corpus addition (`231,060` entries), `tools/normalize_caps.py` guard, `docs/ONBOARDING-INGGLISH-AQ.md`, and `config.default.js` version bump on top of `origin/master` (`d025c7e`).
- `feat/ingglish-priority-toggle`, `main`, `master` (`01aee23`): Stacked production branch combining `feat/ingglish-aq-corpus` with the custom `ING ↑` match-priority sort toggle in the calculator UI.
- **Core Function:** Full, locally runnable browser application (`Cypher Calculator`) where users type any English or Ingglish word/phrase and receive instant (`<100ms`) matches across `231,060` database phrases and up to `82` ciphers.
### 4.1 File-by-File Inventory of `/workspace/hyperdope-gematria`
| File / Directory | Role in the Web Application |
| :--- | :--- |
| `index.html` & `manifest.json` | Main single-page web application entry point and Progressive Web App (PWA) manifest. |
| `calc/calc.js` | Core UI controller, options menu builder (`createOptionsMenu`), and state manager. Patched on `feat/ingglish-priority-toggle` with `optPrioritizeIngglish`, checkbox `#chkbox_PIM`, and handler `conf_PIM()`. |
| `calc/database.js` | Precomputed database loader (`db_lite.json` -> `db.json`) and query matcher (`searchDBcrossCipher`, `searchDBsameCipher`, `updateDatabaseQueryTable`). Patched with `isIngglishEntry()`, `compareQueryMatches(a, b, searchPhrase)`, and the in-modal `ING ↑` button (`#queryIngPriorityBtn`). |
| `calc/gematria.js` & `calc/ciphers.js` | Definitions and evaluation engines for all 69–82 ciphers (including `Alphanumeric Qabbala`, `Synx`, `Based Atlanteanism`, `Ordinal`, `Reduction`, `Primes`) and `[...]` bracketed comment stripping (`optAllowPhraseComments`). |
| `calc/styles.css`, `theme/`, `font/`, `res/`, `lib/` | Stylesheets (including `.ingPriorityBtn` / `.ingPriorityOn`), color themes, fonts, icons, and third-party client libraries. |
| `config.default.js` & `config.js` | Tracked template (`config.default.js`) and local active runtime config (`config.js`, gitignored) specifying `databaseVersion: 5` and `prioritizeIngglishMatches: false`. |
| `db.txt` (`4.0 MB`, `231,060` entries) | Master plaintext phrase list combining `229,943` Standard English entries with `1,117` verified `Ingglish [Ingglish: Gloss]` entries. |
| `db_lite.json` (`19 MB`, gitignored) | Fast-paint precomputed JSON bundle containing all `231,060` phrases scored across the 16 default/common ciphers for instant initial load. |
| `db.json` (`77 MB`, gitignored) | Complete precomputed JSON bundle containing all `231,060` phrases scored across all 82 ciphers, loaded asynchronously in the background. |
| `tools/` | Python/HTML maintenance suite: `normalize_caps.py` (Proper-Case normalizer & deduplicator), `classify_candidates.py` (11-rule junk filter), `generate_db_json.py` (`db.txt` -> `db.json` + `db_lite.json` compiler), `build_Primes_full.py`, and `review_candidates.html`. |
| `docs/ONBOARDING-INGGLISH-AQ.md` | Embedded newcomer onboarding guide explaining Hyperdope-Gematria and Ingglish AQ. |
---
## 5. End-to-End Data Flow Across All Three Repositories
1. **Authoring & Daily Harvest (`/workspace/ingglish-hyperdope-gematria`):**
- New equations, lecture discoveries, or daily `00:00 GMT` current-events dossiers (`collect_news_aq.py`) are written in canonical format into `ingglish-aq-archive/*.md`.
2. **CI Extraction, 4-Gate Audit & Staging (`/workspace/hyperdope-ci-build`):**
- At `00:10 GMT` (or on demand), `ci_provision_ingglish.py` reads `ingglish-aq-archive/*.md`, formats all `1,117` entries as `<Ingglish> [Ingglish: <English Gloss>]`, verifies `100%` pass rates across all 4 CI gates, writes the PR artifacts and `ci-audit-report.json` into `/workspace/hyperdope-ci-build`, and commits to `feat/ingglish-aq-corpus` (merged to `master` and `main`).
3. **Production Sync & JSON Precomputation (`/workspace/hyperdope-gematria`):**
- `ci_provision_ingglish.py --repo-dir /workspace/hyperdope-gematria --apply-repo` merges the verified entries into the full `231,060`-entry `db.txt` on `feat/ingglish-aq-corpus`, rebases `feat/ingglish-priority-toggle` (and `main`/`master`) on top, and `tools/generate_db_json.py` recompiles `db_lite.json` (`19 MB`) and `db.json` (`77 MB`) for immediate browser querying.