docs(modularity): add cross-repository modularity and coupling audit PDF (v1.0.0)
This commit is contained in:
1 parent
8625bb2cb9
commit
f0c881a3df
2 files changed
+186
No files matched your search
@@ -0,0 +1,62 @@
|
||||
# Cross-Repository Modularity & Coupling Audit: `encyclopedia-knowledge-graph`, `technocapital-singularity-zoology` & `hyperdope-ci-build`
|
||||
|
||||
- **Evaluated Sibling Repositories in `/workspace`:**
|
||||
1. `/workspace/encyclopedia-knowledge-graph` (`v1.0.0`, branch `main`)
|
||||
2. `/workspace/technocapital-singularity-zoology` (`v1.7.0`, branch `main`)
|
||||
3. `/workspace/hyperdope-ci-build` (branch `feat/ingglish-aq-corpus`)
|
||||
- **Upstream Shared Reference Repository:** `/workspace/ingglish-hyperdope-gematria` (`node_modules/ingglish` & `ingglish-aq-archive/`)
|
||||
- **Glossary & Encyclopedia Isolation:** Verified (`0` changes to `taxonomy/glossary-registry.json` or `encyclopedia/`).
|
||||
|
||||
---
|
||||
|
||||
## 1. `/workspace/encyclopedia-knowledge-graph` *(Modularity Rating: HIGH at Runtime / MEDIUM-HIGH at Compile Time)*
|
||||
|
||||
### 1.1 What Is Fully Modular & Self-Contained
|
||||
- **Zero-Server, `100%` Standalone Runtime Bundle:**
|
||||
Once compiled, the interactive workbench (`index.html` + `graph-data.js`) and the four open-source exports (`encyclopedia-graph.json`, `.graphml`, `.gexf`, and `encyclopedia.canvas`) have zero runtime dependencies on Python, Node.js, CDN scripts, or sibling repositories. You can copy `/workspace/encyclopedia-knowledge-graph` to another machine and open `index.html` directly via `file://`.
|
||||
- **Parameterized CLI & Strictly Unidirectional Read-Only Ingestion:**
|
||||
`scripts/build_encyclopedia_knowledge_graph.py` accepts `--upstream-repo` and `--out-dir`, reads upstream JSON and Markdown files strictly in read-only mode (`open(..., "r")`), and enforces pre/post `SHA-256` assertions so zero graph concepts ever leak back into the upstream glossary or encyclopedia.
|
||||
|
||||
### 1.2 Remaining Coupling Points
|
||||
- **Upstream Schema Coupling at Build Time:**
|
||||
Rebuilding the graph requires `--upstream-repo` (default `/workspace/technocapital-singularity-zoology`) to provide the expected JSON files (`taxonomy/glossary-registry.json`, `encyclopedia/encyclopedia-manifest.json`, `taxonomy/assemblage-builds-tier-list.json`, `taxonomy/memetic-superclass-registry.json`) and `dossiers/*.md`.
|
||||
- **Relative PDF Deep-Links in `index.html`:**
|
||||
The `"Open Encyclopedia Volume PDF"` button inside the right-hand Inspector Drawer links to `../technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf`, assuming the sibling repository sits beside it under `/workspace/` (and operator-manual PDF compilation calls `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/build_wire_report_pdf.py`).
|
||||
|
||||
---
|
||||
|
||||
## 2. `/workspace/technocapital-singularity-zoology` *(Modularity Rating: MEDIUM-HIGH — Self-Contained Data & Encyclopedia, Coupled to Upstream Runtime Helpers)*
|
||||
|
||||
### 2.1 What Is Fully Modular & Self-Contained
|
||||
- **Isolated Domain Data, Taxonomies & 22-Volume Encyclopedia Compiler:**
|
||||
Owns all `S1–S6`, `M1–M7+`, `ETI` tier-list, quantitative-anchor, citation-ledger, and glossary JSON registries (`taxonomy/*.json`), canonical dossiers (`dossiers/65..69-dossier-*.md`), and the 22-volume PDF Encyclopedia (`encyclopedia/`). Notably, `build_encyclopedia()` compiles all 22 Encyclopedia PDFs in-process using ReportLab directly without calling any external script.
|
||||
- **Configurable CLI Paths:**
|
||||
`scripts/classify_technocapital_singularity.py` exposes `--workdir`, `--anchors-file`, `--memetic-registry`, `--terms`, `--quant-mode`, and `--out`.
|
||||
|
||||
### 2.2 Remaining Coupling Points to `/workspace/ingglish-hyperdope-gematria`
|
||||
- **Node.js `ingglish` (`CMUdict`) Package Resolution:**
|
||||
`batch_translate()` spawns `node --input-type=module` with `cwd=--workdir` (defaulting to `/workspace/ingglish-hyperdope-gematria`) because `node_modules/ingglish` is installed there rather than in `/workspace/technocapital-singularity-zoology/node_modules/`.
|
||||
- **Visual Tier-List & Glossary PDF Subprocess Handoffs:**
|
||||
By deliberate DRY design, `build_assemblage_tier_list()` delegates `.pdf`/`.png` rendering to `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/generate_aq_tier_list.py --rows-json`, and `sync_glossary()` delegates glossary PDF compilation to `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/build_wire_report_pdf.py`. To make `technocapital-singularity-zoology` `100%` standalone on a machine without `ingglish-hyperdope-gematria`, it would need its own local `node_modules/ingglish` install and local fallbacks for those two helper scripts.
|
||||
|
||||
---
|
||||
|
||||
## 3. `/workspace/hyperdope-ci-build` *(Modularity Rating: HIGH as a Downstream PR Artifact Repo / COUPLED to Upstream Provisioner for Ingestion)*
|
||||
|
||||
### 3.1 What Is Fully Modular & Self-Contained
|
||||
- **Clean Upstream Fork Structure for Pull Requests:**
|
||||
Once provisioned, `/workspace/hyperdope-ci-build` (branch `feat/ingglish-aq-corpus`) is a `100%` self-contained clone of `malonehunter/hyperdope-gematria` containing `db.txt`, `config.default.js`, `docs/ONBOARDING-INGGLISH-AQ.md`, its own `tools/` (`normalize_caps.py`, `classify_candidates.py`, `generate_db_json.py`), pre-verified PR artifacts (`ci-audit-report.json`, `pr-body.md`, `pr-payload.json`), and an autonomous `submit-pr.sh` script that pushes and opens a GitHub PR with zero external sibling dependencies.
|
||||
|
||||
### 3.2 Remaining Coupling Points to `/workspace/ingglish-hyperdope-gematria`
|
||||
- **External Provisioning Engine (By Design):**
|
||||
To avoid polluting the upstream PR diff with custom archive-scraping scripts, the ingestion driver (`ci_provision_ingglish.py`) lives outside the repo at `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py` and reads `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/*.md`. Thus, `hyperdope-ci-build` is completely modular for testing, building `db.json`, and submitting PRs, but relies on `ingglish-hyperdope-gematria` whenever new dossiers are ingested into `db.txt`.
|
||||
|
||||
---
|
||||
|
||||
## 4. Summary Comparison Matrix
|
||||
|
||||
| Repository | Standalone Runtime? | Standalone Rebuild? | External Sibling Dependencies |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`encyclopedia-knowledge-graph`** | **YES** (`100%` offline via `index.html` + `graph-data.js`) | Needs upstream JSONs (`--upstream-repo`) | Reads `technocapital-singularity-zoology` JSONs & dossiers (strictly read-only) |
|
||||
| **`technocapital-singularity-zoology`** | **YES** (`taxonomy/*.json`, `dossiers/*.md`, `encyclopedia/*.pdf`) | Needs Node `ingglish` (`--workdir`) | Uses `ingglish-hyperdope-gematria` for `node_modules/ingglish` & 2 PDF helper scripts |
|
||||
| **`hyperdope-ci-build`** | **YES** (`tools/*.py`, `db.txt`, `submit-pr.sh`) | Needs external provisioner | Populated by `ci_provision_ingglish.py` from `ingglish-aq-archive/*.md` |
|
||||
Reference in new issue
Block a user