From 472195f3336349c830440f394dbe4bd2a6535cac Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 29 Nov 2026 19:55:52 +0000 Subject: [PATCH] docs(modularity): add cross-repository modularity and coupling audit PDF (v1.7.0) --- docs/MODULARITY-AUDIT-THREE-REPOSITORIES.md | 62 ++++++++++ docs/MODULARITY-AUDIT-THREE-REPOSITORIES.pdf | 124 +++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 docs/MODULARITY-AUDIT-THREE-REPOSITORIES.md create mode 100644 docs/MODULARITY-AUDIT-THREE-REPOSITORIES.pdf diff --git a/docs/MODULARITY-AUDIT-THREE-REPOSITORIES.md b/docs/MODULARITY-AUDIT-THREE-REPOSITORIES.md new file mode 100644 index 0000000..d8c3384 --- /dev/null +++ b/docs/MODULARITY-AUDIT-THREE-REPOSITORIES.md @@ -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//.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` | diff --git a/docs/MODULARITY-AUDIT-THREE-REPOSITORIES.pdf b/docs/MODULARITY-AUDIT-THREE-REPOSITORIES.pdf new file mode 100644 index 0000000..b50c744 --- /dev/null +++ b/docs/MODULARITY-AUDIT-THREE-REPOSITORIES.pdf @@ -0,0 +1,124 @@ +%PDF-1.4 +%“Œ‹ž ReportLab Generated PDF document (opensource) +1 0 obj +<< +/F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 5 0 R +>> +endobj +2 0 obj +<< +/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font +>> +endobj +3 0 obj +<< +/BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding /Name /F2 /Subtype /Type1 /Type /Font +>> +endobj +4 0 obj +<< +/BaseFont /Courier /Encoding /WinAnsiEncoding /Name /F3 /Subtype /Type1 /Type /Font +>> +endobj +5 0 obj +<< +/BaseFont /Helvetica-BoldOblique /Encoding /WinAnsiEncoding /Name /F4 /Subtype /Type1 /Type /Font +>> +endobj +6 0 obj +<< +/Contents 12 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +7 0 obj +<< +/Contents 13 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +8 0 obj +<< +/Contents 14 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +9 0 obj +<< +/PageMode /UseNone /Pages 11 0 R /Type /Catalog +>> +endobj +10 0 obj +<< +/Author (Hermes Agent) /CreationDate (D:20261129195551+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261129195551+00'00') /Producer (ReportLab PDF Library - \(opensource\)) + /Subject (\(unspecified\)) /Title (Cross-Repository Modularity & Coupling Audit: encyclopedia-knowledge-graph, technocapital-singularity-zoology & hyperdope-ci-build) /Trapped /False +>> +endobj +11 0 obj +<< +/Count 3 /Kids [ 6 0 R 7 0 R 8 0 R ] /Type /Pages +>> +endobj +12 0 obj +<< +/Filter [ /ASCII85Decode /FlateDecode ] /Length 2240 +>> +stream +GauHLqbPs;&H868@YAi'g5DNSEF.jN;Tki3.YT*]:No,lMnM]jfXpQt*D$5,S$a:"iPc?>#7*\?4Zi8[I.LGFgA(&G^\nGr_\cQ)%QH)"-fB6X#NIIV4PotG=0)h:Ksj,m(@4fi"kug5eSdF$poZ]c^&AR(4W$]9\0+]Wc)Hhc-p4QR7qLJfCSF\-)*0I>c]c:!bK6o)0#2fL1n3+RCDn'cfdK;CW2P>3:46+Oc"6P7dt&aPa@]9!4qC/$"2BA*!D)NCWQI7=)P(I!\D,,(:[=iKXV0-NY:?#0m7Xbr03)7)b*AUlgD5-o-)('Y_fD'R["fN%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AYZ]BPC^9-ahu[sj9?22/bgpP>noFE6K^9@\pG\~>endstream +endobj +xref +0 15 +0000000000 65535 f +0000000061 00000 n +0000000122 00000 n +0000000229 00000 n +0000000341 00000 n +0000000446 00000 n +0000000565 00000 n +0000000760 00000 n +0000000955 00000 n +0000001150 00000 n +0000001219 00000 n +0000001616 00000 n +0000001688 00000 n +0000004020 00000 n +0000006646 00000 n +trailer +<< +/ID +[<88e5a02483b0e55eeb88af0ebce10f8f><88e5a02483b0e55eeb88af0ebce10f8f>] +% ReportLab generated PDF document -- digest (opensource) + +/Info 10 0 R +/Root 9 0 R +/Size 15 +>> +startxref +7633 +%%EOF