diff --git a/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md b/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md new file mode 100644 index 0000000..a1ff3a9 --- /dev/null +++ b/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md @@ -0,0 +1,201 @@ +# Operator's Manual: Building, Verifying, Inspecting & Maintaining the Encyclopedia of Technocapital Singularity Zoology Knowledge Graph (`v1.7.0`) + +- **Document ID:** `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH` (`v1.7.0`) +- **Primary Repository:** `/workspace/technocapital-singularity-zoology` +- **Knowledge Graph Compiler CLI:** `/workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py` +- **Published Knowledge Graph Directory:** `/workspace/technocapital-singularity-zoology/knowledge-graph/` +- **Interactive Browser Workbench:** `/workspace/technocapital-singularity-zoology/knowledge-graph/index.html` (`file:///home/m00t/hermes/workspace/technocapital-singularity-zoology/knowledge-graph/index.html`) +- **Strict Isolation Standard:** Read-Only Upstream Ingestion (`0` Graph/Visualization Concepts Permitted in `taxonomy/glossary-registry.json` or `encyclopedia/`) + +--- + +## 1. System Overview & Architectural Boundaries + +The **Encyclopedia Knowledge Graph Engine** (`scripts/build_encyclopedia_knowledge_graph.py`) compiles the `9` Ontological Divisions (`00`–`08`), `22` Alphabetized PDF Volumes (`122` pages), `282` unique glossary and lexical headwords (`291` volume placements), `10` Assemblage Builds (`Ranks #1–#9` + provisional `M7_candidate_2026_11_28`), `65` Base-36 Alphanumeric Qabbala (`AQ`) coordinate hubs (`71..390`, `333/666/777`), and `189` verified cross-scale equations into a **388-node, 1,282-edge multi-partite property graph** (`0` duplicate parallel edges). + +### 1.1 The Strict One-Way Isolation Rule (Zero Glossary Leak) + +Operators must enforce a strict unidirectional boundary between the **Upstream Domain Corpora** and the **Downstream Knowledge Graph Workbench**: + +| Layer | Canonical Files | Access Mode During Graph Build | Isolation Invariant | +| :--- | :--- | :--- | :--- | +| **Upstream Source of Truth** | `taxonomy/glossary-registry.json`
`encyclopedia/encyclopedia-manifest.json`
`taxonomy/assemblage-builds-tier-list.json`
`taxonomy/memetic-superclass-registry.json`
`dossiers/65..69-dossier-*.md` | **READ-ONLY (`r`)** | Pre-build and post-build SHA-256 digests of `glossary-registry.json` and `encyclopedia-manifest.json` MUST remain 100% identical. Zero graph-theory or visualization terms may be added to the glossary. | +| **Downstream Graph Workbench** | `knowledge-graph/index.html`
`knowledge-graph/encyclopedia-graph.json`
`knowledge-graph/graph-data.js`
`knowledge-graph/encyclopedia-graph.graphml`
`knowledge-graph/encyclopedia-graph.gexf`
`knowledge-graph/encyclopedia.canvas`
`knowledge-graph/atlas-mode{1,2,3}.png` | **READ-WRITE (`w`)** | Rebuilt deterministically on demand whenever upstream encyclopedia or glossary registries are updated. | + +--- + +## 2. Prerequisites & Pre-Flight Environment Checklist + +Before executing a build, verify that the runtime environment and upstream registries satisfy three prerequisites: + +1. **Python 3.10+ with Pillow (`PIL`):** + `build_encyclopedia_knowledge_graph.py` uses 100% Python standard library (`json`, `hashlib`, `math`, `re`, `html`, `xml.etree.ElementTree`, `pathlib`, `argparse`) for all graph construction, centrality calculation, and JSON/GraphML/GEXF/Canvas exports, plus `PIL` (`Pillow`) for rendering the three `1600x1060` visual atlas PNG boards. +2. **Upstream Encyclopedia & Glossary Presence:** + Confirm that `taxonomy/glossary-registry.json` and `encyclopedia/encyclopedia-manifest.json` exist on disk. +3. **Pre-Flight Isolation Baseline Check (`--check-isolation`):** + Run the pre-flight isolation check to record the upstream SHA-256 digests prior to building: + ```bash + python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --check-isolation + ``` + Expected output: + - `"glossary_registry_sha256": "7564ef40fb3e0e18d1d8547522db431b6a369c40139713b573df6e58b972d43d"` + - `"encyclopedia_manifest_sha256": "0d7ce833bb0aa0eea069bf764b2e3b0b36ac2631821c42f3d6bcb897335f8a7d"` + +--- + +## 3. Step-by-Step Build & Verification Procedure + +### Step 1: Execute the Full Knowledge Graph Build + +Run `build_encyclopedia_knowledge_graph.py` from any working directory: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py +``` + +What this command executes deterministically in ~1.2 seconds: +1. Computes `pre_gl_sha` and `pre_enc_sha` over `taxonomy/glossary-registry.json` and `encyclopedia/encyclopedia-manifest.json`. +2. Constructs all **388 nodes** across 6 ontological classes: + - `OntologicalDivision` (`9` nodes: `div:00-index-and-ontological-atlas` .. `div:08-stakeholder-registers-idioms-and-pokedex-semiotics`) + - `EncyclopediaVolume` (`22` nodes: `vol:00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z` .. `vol:08-.../i-to-z-...`) + - `TaxonAssemblageBuild` (`10` nodes: `build:S1` [`93 ETI`], `build:S2` [`90 ETI`], `build:S6` [`87 ETI`], `build:S3` [`83 ETI`], `build:M1` [`73 ETI`], `build:S5` [`61 ETI`], `build:S4` [`61 ETI`], `build:M6` [`53 ETI`], `build:M7_candidate_2026_11_28` [`53 ETI`], and `build:Q0` [`49 ETI`]) + - `ConceptualOperatorOrIdiom` (`92` nodes: `concept:000` .. `concept:091` from Sections 1–8 & 8B) + - `BilingualLexicalSpecimen` (`190` nodes: `spec:incorporation` .. `spec:debt` from Section 9) + - `AQCoordinateHub` (`65` nodes: `aq:71` .. `aq:390` + macro repdigit attractors `aq:333`, `aq:666`, `aq:777`) +3. Constructs all **1,282 deduplicated typed edges** across 8 mathematical and structural relations: + - `IN_VOLUME` (`281` edges) & `IN_DIVISION` (`22` edges) + - `IN_GUILD_BUILD` (`271` edges) + - `G2_CROSS_GEN_TWIN` (`202` directed edges where `AQ_Eng(A) == AQ_Ing(B)`) + - `CLOSES_REPDIGIT_EQ` (`175` edges linking constituent tokens to `aq:333`, `aq:666`, and `aq:777`) + - `G1_COLLAPSES_TO_ING_AQ` (`167` directed edges weighted by `log(1 + Gen0_Var_Collapsed)`) + - `GEN0_WRITTEN_COLLISION` (`103` undirected edges where `AQ_Eng(A) == AQ_Eng(B)`) + - `TROPHIC_GUILD_BRIDGE` (`35` unique edges across the `13` Multi-Build Hybrid Flex Singularities) + - `G4_ISOMETRIC_INVARIANT` (`21` self-loops on `Δ = 0` chokepoints) + - `G5_TWIN_PRIME_MUTATION` (`5` edges on dual-prime mutations into shared hubs) +4. Computes deterministic `(x, y)` coordinates for all 4 spatial layouts (`mode1_trophic`, `mode2_radar`, `mode3_bipartite`, `mode4_hierarchy`). +5. Writes `encyclopedia-graph.json`, `graph-data.js`, `encyclopedia-graph.graphml`, `encyclopedia-graph.gexf`, `encyclopedia.canvas`, and the 3 high-resolution PNG atlas boards (`atlas-mode1-trophic-food-web.png`, `atlas-mode2-concentric-eti-radar.png`, `atlas-mode3-bipartite-g1-funnel.png`). +6. Runs the built-in **6-Gate Verification Suite** and asserts `pre_gl_sha == post_gl_sha` and `pre_enc_sha == post_enc_sha`. + +### Step 2: Run Standalone 6-Gate Verification (`--verify-only`) + +To audit the published artifacts in `/workspace/technocapital-singularity-zoology/knowledge-graph/` at any time without rebuilding: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --verify-only +``` + +Verify that the JSON response reports `"all_gates_passed": true`: +- **Gate 1 (`gate1_glossary_sha256_unchanged`):** `true` (`taxonomy/glossary-registry.json` untouched). +- **Gate 2 (`gate2_encyclopedia_sha256_unchanged`):** `true` (`encyclopedia/encyclopedia-manifest.json` untouched). +- **Gate 3 (`gate3_json_schema_counts`):** `{"nodes": 388, "edges": 1282}` (`>= 388` nodes and `>= 1282` deduplicated edges). +- **Gate 4 (`gate4_xml_well_formed`):** Parses both `encyclopedia-graph.graphml` and `encyclopedia-graph.gexf` via `xml.etree.ElementTree.parse()` with zero XML syntax errors. +- **Gate 5 (`gate5_obsidian_canvas_counts`):** Confirms valid JSON Canvas 1.0 structure (`282` hub/high-degree canvas nodes, `1,120` canvas edges). +- **Gate 6 (`gate6_atlas_pngs`):** Confirms all 3 rendered PNG atlas boards exist at `[1600, 1060]` RGB resolution. + +### Step 3: Query Any Node & Inspect Its Ego-Network via CLI (`--query-node`) + +Operators can inspect any node's properties, layout coordinates, and incident edges directly from the terminal using `--query-node `: + +```bash +# 1. Query an Assemblage Build by ID +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "build:S1" + +# 2. Query an AQ Coordinate Hub by integer value (e.g., 125 = 5^3 or 193 [44th PRIME]) +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "125" + +# 3. Query a Bilingual Lexical Specimen by English or Ingglish spelling +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "blakwel" +``` + +### Step 4: Conduct Non-Destructive Staging Dry-Runs (`--out-dir`) + +When testing layout adjustments or schema extensions, pass `--out-dir /tmp/kg-staging` so the production `/workspace/technocapital-singularity-zoology/knowledge-graph/` directory remains untouched during testing: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --out-dir /tmp/kg-staging +``` + +--- + +## 4. Operating the Interactive Browser Workbench (`knowledge-graph/index.html`) + +### 4.1 Opening the Workbench (`file://` Direct Open or Local HTTP Server) + +Because `index.html` loads `window.ENCYCLOPEDIA_GRAPH_DATA` synchronously from the co-located `graph-data.js` bundle (rather than making an asynchronous `fetch('encyclopedia-graph.json')` request that browsers block under `file://` CORS policies), operators can open the workbench in two ways: + +1. **Direct Local `file://` Open (Zero Server Required):** + Open `file:///home/m00t/hermes/workspace/technocapital-singularity-zoology/knowledge-graph/index.html` directly in Firefox, Chromium, or Brave. +2. **Local HTTP Server (Optional):** + ```bash + python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace/technocapital-singularity-zoology + ``` + Then navigate to `http://127.0.0.1:8090/knowledge-graph/index.html`. + *(Note: Serving from the repository root `/workspace/technocapital-singularity-zoology` allows the relative `../encyclopedia//.pdf` links inside the right-hand Inspector Drawer to open the 22 Encyclopedia PDFs directly in a new browser tab).* + +### 4.2 Navigating the Four Spatial Layout Modes & Ego-Network Isolator + +Use the top toolbar buttons to switch between the spatial layouts: +- **`Mode 2: ETI Radar (S+ -> D Periphery)` *(Default)*:** Displays the six concentric rings (`Ring 1: Tier S+ Center [88–100 ETI]` bullseye radiating outward through `Ring 2: Tier S`, `Ring 3: Tier A`, `Ring 4: Tier B`, `Ring 5: Tier C`, and `Ring 6: Tier D Periphery [44–51 ETI]`). +- **`Mode 1: Trophic Food-Web`:** Places `333 / 666 / 777` at the core surrounded by the `13` Flex Pivots, the `10` Assemblage Builds, the `190` specimens clustered by guild angle, and the `92` conceptual operators. +- **`Mode 3: Gen 0 -> Gen 1 Funnel`:** Five-column bipartite alignment (`Gen 0 Written Specimens [x=240]` -> `Conceptual Operators [x=500]` -> `Encyclopedia Volumes [x=790]` -> `Gen 1 AQ Hubs [x=1080]` -> `ETI Builds & 333/666/777 [x=1340]`). +- **`Mode 4: 00–08 Folder Grid`:** Arranges all `291` article placements in a `3x3` grid corresponding to Ontological Divisions `00` through `08`. +- **Interactive Ego-Network Isolation (Mode 5):** + - **Single-click any node** on the canvas (or click any of the `13 Flex Pivots & Repdigit Hubs` pills in the left sidebar: `333, 666, 777, 292, 260, 256, 211, 193, 191, 183, 166, 153, 137, 136, 133, 129, 125, 96, 95, 91, 81`) to isolate its 1-hop neighborhood and populate the right-hand **Encyclopedia Article Inspector Drawer**. + - **Double-click empty canvas** (or click **`Reset View`**) to restore the full 388-node view. + - **Click `Export PNG`** in the top-right toolbar to download a PNG snapshot of the current viewport and filter state. + +--- + +## 5. Importing Into External Open-Source Network Science & PKM Tools + +1. **Gephi (`0.10+`) / Cytoscape Desktop (`3.10+`) / yEd:** + - Open `/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia-graph.gexf` (or `encyclopedia-graph.graphml`). + - Node colors (`viz:color`), sizes (`viz:size`), and pre-computed radar coordinates (`viz:position`) load automatically. Run Gephi's *ForceAtlas2* (with `Scaling = 12.0`, `Prevent Overlap = True`, `LinLog mode = True`) or *Modularity* (`Resolution = 1.0`) to compare unsupervised topological clusters against the `S1–S6 × M1–M7+` guilds. +2. **Python `NetworkX` Custom Scripting:** + ```python + import json + p = "/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia-graph.json" + data = json.loads(open(p).read()) + print("Nodes:", data["counts"]["total_nodes"], "Edges:", data["counts"]["total_edges"]) + ``` +3. **Obsidian Canvas (`JSON Canvas 1.0`):** + - Copy or symlink `/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia.canvas` into any Obsidian vault to browse the 159 core hub/build cards on an infinite 2D canvas. + +--- + +## 6. Maintenance Protocol & Troubleshooting Runbook + +### 6.1 When to Rebuild the Knowledge Graph + +Whenever you add a new domain term to the glossary and update the Encyclopedia: +```bash +# Step A: Update the glossary & 22-volume PDF Encyclopedia +python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py \ + --add-glossary-term "" "" "" \ + --build-encyclopedia + +# Step B: Rebuild and verify the Knowledge Graph from the updated read-only registries +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py +``` + +### 6.2 Troubleshooting Common Operator Issues + +| Symptom / Error | Root Cause | Deterministic Resolution | +| :--- | :--- | :--- | +| `AssertionError: ISOLATION BREACH: glossary-registry.json modified!` | An external process modified `taxonomy/glossary-registry.json` mid-build. | Run `git -C /workspace/technocapital-singularity-zoology diff taxonomy/glossary-registry.json` to inspect the change, restore if unintended, and re-run `build_encyclopedia_knowledge_graph.py`. | +| `Error: graph-data.js not found` when opening `index.html` | `index.html` was moved outside `knowledge-graph/` without `graph-data.js`. | Keep `index.html` and `graph-data.js` in the same directory (`/workspace/technocapital-singularity-zoology/knowledge-graph/`) or re-run `build_encyclopedia_knowledge_graph.py`. | +| Clicking `Open Encyclopedia Volume PDF` in `index.html` returns 404 over HTTP | The local HTTP server was started inside `knowledge-graph/` instead of the parent repo root, making `../encyclopedia/` unreachable. | Start `python3 -m http.server 8090` with `--directory /workspace/technocapital-singularity-zoology` (the repo root) or open `index.html` directly via `file://`. | + +--- + +## 7. Operator Manual Write-Test-Edit Audit Log (`v1.7.0`) + +During live verification of this manual against `/workspace/technocapital-singularity-zoology/knowledge-graph/`, three empirical refinements were discovered, tested, and edited into both `scripts/build_encyclopedia_knowledge_graph.py` and this manual: + +1. **Deduplication of Parallel `TROPHIC_GUILD_BRIDGE` Edges (`1,287 -> 1,282` Unique Edges):** + Running `build_encyclopedia_knowledge_graph.py --query-node "125"` revealed that `("aq:125", "build:S6", "TROPHIC_GUILD_BRIDGE")` was emitted twice (once from `build:S2 -> 125 -> build:S6` and once from `build:M7_candidate_2026_11_28 -> 125 -> build:S6`), causing `incident_edge_count` (`9`) to exceed `degree` (`8`). Adding `seen_edges: set[tuple[str, str, str]]` in `add_edge()` eliminated all 5 duplicate parallel bridge edges (`40 -> 35` `TROPHIC_GUILD_BRIDGE` edges, `1,287 -> 1,282` total edges) so `incident_edge_count == degree` (`8 == 8`) holds across all hubs. +2. **Multi-Match `matched_node_ids` Reporting in `--query-node`:** + Querying an integer coordinate such as `--query-node "125"` matches both the hub node (`aq:125`) and the 5 lexical specimen nodes whose `ing_aq == 125` (`spec:capital`, `spec:capture`, `spec:downs`, `spec:folds`, `spec:serres`). `query_node_ego()` was upgraded to return `"matched_node_ids"` alongside `"primary_node"` so operators immediately see the entire equivalence ring. +3. **Dynamic Threshold Guard in Gate 3 (`nodes >= 388`, `edges >= 1282`) & Empirical Canvas Counts (`282` Nodes, `1,120` Edges):** + Updated Gate 3 in `verify_published_artifacts()` to assert `>= 388` nodes and `>= 1282` edges (so future glossary additions pass `--verify-only` without false-negative equality failures) and updated Gate 5 documentation to reflect the exact verified Obsidian Canvas counts (`282` nodes, `1,120` edges). + diff --git a/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf b/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf new file mode 100644 index 0000000..364bbec --- /dev/null +++ b/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf @@ -0,0 +1,212 @@ +%PDF-1.4 +%“Œ‹ž ReportLab Generated PDF document (opensource) +1 0 obj +<< +/F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 6 0 R /F5 8 0 R /F6 10 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 +<< +/Contents 18 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +6 0 obj +<< +/BaseFont /ZapfDingbats /Name /F4 /Subtype /Type1 /Type /Font +>> +endobj +7 0 obj +<< +/Contents 19 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +8 0 obj +<< +/BaseFont /Symbol /Name /F5 /Subtype /Type1 /Type /Font +>> +endobj +9 0 obj +<< +/Contents 20 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +10 0 obj +<< +/BaseFont /Helvetica-Oblique /Encoding /WinAnsiEncoding /Name /F6 /Subtype /Type1 /Type /Font +>> +endobj +11 0 obj +<< +/Contents 21 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +12 0 obj +<< +/Contents 22 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +13 0 obj +<< +/Contents 23 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +14 0 obj +<< +/Contents 24 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +15 0 obj +<< +/PageMode /UseNone /Pages 17 0 R /Type /Catalog +>> +endobj +16 0 obj +<< +/Author (Hermes Agent) /CreationDate (D:20261129193746+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261129193746+00'00') /Producer (ReportLab PDF Library - \(opensource\)) + /Subject (\(unspecified\)) /Title (Operator's Manual: Building, Verifying, Inspecting & Maintaining the Encyclopedia Knowledge Graph \(v1.7.0\)) /Trapped /False +>> +endobj +17 0 obj +<< +/Count 7 /Kids [ 5 0 R 7 0 R 9 0 R 11 0 R 12 0 R 13 0 R 14 0 R ] /Type /Pages +>> +endobj +18 0 obj +<< +/Filter [ /ASCII85Decode /FlateDecode ] /Length 2419 +>> +stream +GauHMD0+Gi')q<+Yqqs:.BWCI]dn/F1U8UE^,iMC/'50Y)%T-P&o&%i!)TuLhLE9D.8dC,;k1q.he8/1@e\R3B6QoK5(8^nD\*#@N57S'5jC&;#L[^`0YW.Tpup2Sl:N_Ei4Igq"h0VD_k9(Rk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#I-#G_9KjT897#J-hBf)0q(@=*=+:5u3=ng~>endstream +endobj +xref +0 25 +0000000000 65535 f +0000000061 00000 n +0000000143 00000 n +0000000250 00000 n +0000000362 00000 n +0000000467 00000 n +0000000662 00000 n +0000000745 00000 n +0000000940 00000 n +0000001017 00000 n +0000001212 00000 n +0000001328 00000 n +0000001524 00000 n +0000001720 00000 n +0000001916 00000 n +0000002112 00000 n +0000002182 00000 n +0000002557 00000 n +0000002657 00000 n +0000005168 00000 n +0000007519 00000 n +0000010125 00000 n +0000012136 00000 n +0000014903 00000 n +0000017230 00000 n +trailer +<< +/ID +[<9b455476a828f403da27592c90089f82><9b455476a828f403da27592c90089f82>] +% ReportLab generated PDF document -- digest (opensource) + +/Info 16 0 R +/Root 15 0 R +/Size 25 +>> +startxref +18242 +%%EOF diff --git a/docs/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md b/docs/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md new file mode 100644 index 0000000..a1ff3a9 --- /dev/null +++ b/docs/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md @@ -0,0 +1,201 @@ +# Operator's Manual: Building, Verifying, Inspecting & Maintaining the Encyclopedia of Technocapital Singularity Zoology Knowledge Graph (`v1.7.0`) + +- **Document ID:** `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH` (`v1.7.0`) +- **Primary Repository:** `/workspace/technocapital-singularity-zoology` +- **Knowledge Graph Compiler CLI:** `/workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py` +- **Published Knowledge Graph Directory:** `/workspace/technocapital-singularity-zoology/knowledge-graph/` +- **Interactive Browser Workbench:** `/workspace/technocapital-singularity-zoology/knowledge-graph/index.html` (`file:///home/m00t/hermes/workspace/technocapital-singularity-zoology/knowledge-graph/index.html`) +- **Strict Isolation Standard:** Read-Only Upstream Ingestion (`0` Graph/Visualization Concepts Permitted in `taxonomy/glossary-registry.json` or `encyclopedia/`) + +--- + +## 1. System Overview & Architectural Boundaries + +The **Encyclopedia Knowledge Graph Engine** (`scripts/build_encyclopedia_knowledge_graph.py`) compiles the `9` Ontological Divisions (`00`–`08`), `22` Alphabetized PDF Volumes (`122` pages), `282` unique glossary and lexical headwords (`291` volume placements), `10` Assemblage Builds (`Ranks #1–#9` + provisional `M7_candidate_2026_11_28`), `65` Base-36 Alphanumeric Qabbala (`AQ`) coordinate hubs (`71..390`, `333/666/777`), and `189` verified cross-scale equations into a **388-node, 1,282-edge multi-partite property graph** (`0` duplicate parallel edges). + +### 1.1 The Strict One-Way Isolation Rule (Zero Glossary Leak) + +Operators must enforce a strict unidirectional boundary between the **Upstream Domain Corpora** and the **Downstream Knowledge Graph Workbench**: + +| Layer | Canonical Files | Access Mode During Graph Build | Isolation Invariant | +| :--- | :--- | :--- | :--- | +| **Upstream Source of Truth** | `taxonomy/glossary-registry.json`
`encyclopedia/encyclopedia-manifest.json`
`taxonomy/assemblage-builds-tier-list.json`
`taxonomy/memetic-superclass-registry.json`
`dossiers/65..69-dossier-*.md` | **READ-ONLY (`r`)** | Pre-build and post-build SHA-256 digests of `glossary-registry.json` and `encyclopedia-manifest.json` MUST remain 100% identical. Zero graph-theory or visualization terms may be added to the glossary. | +| **Downstream Graph Workbench** | `knowledge-graph/index.html`
`knowledge-graph/encyclopedia-graph.json`
`knowledge-graph/graph-data.js`
`knowledge-graph/encyclopedia-graph.graphml`
`knowledge-graph/encyclopedia-graph.gexf`
`knowledge-graph/encyclopedia.canvas`
`knowledge-graph/atlas-mode{1,2,3}.png` | **READ-WRITE (`w`)** | Rebuilt deterministically on demand whenever upstream encyclopedia or glossary registries are updated. | + +--- + +## 2. Prerequisites & Pre-Flight Environment Checklist + +Before executing a build, verify that the runtime environment and upstream registries satisfy three prerequisites: + +1. **Python 3.10+ with Pillow (`PIL`):** + `build_encyclopedia_knowledge_graph.py` uses 100% Python standard library (`json`, `hashlib`, `math`, `re`, `html`, `xml.etree.ElementTree`, `pathlib`, `argparse`) for all graph construction, centrality calculation, and JSON/GraphML/GEXF/Canvas exports, plus `PIL` (`Pillow`) for rendering the three `1600x1060` visual atlas PNG boards. +2. **Upstream Encyclopedia & Glossary Presence:** + Confirm that `taxonomy/glossary-registry.json` and `encyclopedia/encyclopedia-manifest.json` exist on disk. +3. **Pre-Flight Isolation Baseline Check (`--check-isolation`):** + Run the pre-flight isolation check to record the upstream SHA-256 digests prior to building: + ```bash + python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --check-isolation + ``` + Expected output: + - `"glossary_registry_sha256": "7564ef40fb3e0e18d1d8547522db431b6a369c40139713b573df6e58b972d43d"` + - `"encyclopedia_manifest_sha256": "0d7ce833bb0aa0eea069bf764b2e3b0b36ac2631821c42f3d6bcb897335f8a7d"` + +--- + +## 3. Step-by-Step Build & Verification Procedure + +### Step 1: Execute the Full Knowledge Graph Build + +Run `build_encyclopedia_knowledge_graph.py` from any working directory: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py +``` + +What this command executes deterministically in ~1.2 seconds: +1. Computes `pre_gl_sha` and `pre_enc_sha` over `taxonomy/glossary-registry.json` and `encyclopedia/encyclopedia-manifest.json`. +2. Constructs all **388 nodes** across 6 ontological classes: + - `OntologicalDivision` (`9` nodes: `div:00-index-and-ontological-atlas` .. `div:08-stakeholder-registers-idioms-and-pokedex-semiotics`) + - `EncyclopediaVolume` (`22` nodes: `vol:00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z` .. `vol:08-.../i-to-z-...`) + - `TaxonAssemblageBuild` (`10` nodes: `build:S1` [`93 ETI`], `build:S2` [`90 ETI`], `build:S6` [`87 ETI`], `build:S3` [`83 ETI`], `build:M1` [`73 ETI`], `build:S5` [`61 ETI`], `build:S4` [`61 ETI`], `build:M6` [`53 ETI`], `build:M7_candidate_2026_11_28` [`53 ETI`], and `build:Q0` [`49 ETI`]) + - `ConceptualOperatorOrIdiom` (`92` nodes: `concept:000` .. `concept:091` from Sections 1–8 & 8B) + - `BilingualLexicalSpecimen` (`190` nodes: `spec:incorporation` .. `spec:debt` from Section 9) + - `AQCoordinateHub` (`65` nodes: `aq:71` .. `aq:390` + macro repdigit attractors `aq:333`, `aq:666`, `aq:777`) +3. Constructs all **1,282 deduplicated typed edges** across 8 mathematical and structural relations: + - `IN_VOLUME` (`281` edges) & `IN_DIVISION` (`22` edges) + - `IN_GUILD_BUILD` (`271` edges) + - `G2_CROSS_GEN_TWIN` (`202` directed edges where `AQ_Eng(A) == AQ_Ing(B)`) + - `CLOSES_REPDIGIT_EQ` (`175` edges linking constituent tokens to `aq:333`, `aq:666`, and `aq:777`) + - `G1_COLLAPSES_TO_ING_AQ` (`167` directed edges weighted by `log(1 + Gen0_Var_Collapsed)`) + - `GEN0_WRITTEN_COLLISION` (`103` undirected edges where `AQ_Eng(A) == AQ_Eng(B)`) + - `TROPHIC_GUILD_BRIDGE` (`35` unique edges across the `13` Multi-Build Hybrid Flex Singularities) + - `G4_ISOMETRIC_INVARIANT` (`21` self-loops on `Δ = 0` chokepoints) + - `G5_TWIN_PRIME_MUTATION` (`5` edges on dual-prime mutations into shared hubs) +4. Computes deterministic `(x, y)` coordinates for all 4 spatial layouts (`mode1_trophic`, `mode2_radar`, `mode3_bipartite`, `mode4_hierarchy`). +5. Writes `encyclopedia-graph.json`, `graph-data.js`, `encyclopedia-graph.graphml`, `encyclopedia-graph.gexf`, `encyclopedia.canvas`, and the 3 high-resolution PNG atlas boards (`atlas-mode1-trophic-food-web.png`, `atlas-mode2-concentric-eti-radar.png`, `atlas-mode3-bipartite-g1-funnel.png`). +6. Runs the built-in **6-Gate Verification Suite** and asserts `pre_gl_sha == post_gl_sha` and `pre_enc_sha == post_enc_sha`. + +### Step 2: Run Standalone 6-Gate Verification (`--verify-only`) + +To audit the published artifacts in `/workspace/technocapital-singularity-zoology/knowledge-graph/` at any time without rebuilding: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --verify-only +``` + +Verify that the JSON response reports `"all_gates_passed": true`: +- **Gate 1 (`gate1_glossary_sha256_unchanged`):** `true` (`taxonomy/glossary-registry.json` untouched). +- **Gate 2 (`gate2_encyclopedia_sha256_unchanged`):** `true` (`encyclopedia/encyclopedia-manifest.json` untouched). +- **Gate 3 (`gate3_json_schema_counts`):** `{"nodes": 388, "edges": 1282}` (`>= 388` nodes and `>= 1282` deduplicated edges). +- **Gate 4 (`gate4_xml_well_formed`):** Parses both `encyclopedia-graph.graphml` and `encyclopedia-graph.gexf` via `xml.etree.ElementTree.parse()` with zero XML syntax errors. +- **Gate 5 (`gate5_obsidian_canvas_counts`):** Confirms valid JSON Canvas 1.0 structure (`282` hub/high-degree canvas nodes, `1,120` canvas edges). +- **Gate 6 (`gate6_atlas_pngs`):** Confirms all 3 rendered PNG atlas boards exist at `[1600, 1060]` RGB resolution. + +### Step 3: Query Any Node & Inspect Its Ego-Network via CLI (`--query-node`) + +Operators can inspect any node's properties, layout coordinates, and incident edges directly from the terminal using `--query-node `: + +```bash +# 1. Query an Assemblage Build by ID +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "build:S1" + +# 2. Query an AQ Coordinate Hub by integer value (e.g., 125 = 5^3 or 193 [44th PRIME]) +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "125" + +# 3. Query a Bilingual Lexical Specimen by English or Ingglish spelling +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "blakwel" +``` + +### Step 4: Conduct Non-Destructive Staging Dry-Runs (`--out-dir`) + +When testing layout adjustments or schema extensions, pass `--out-dir /tmp/kg-staging` so the production `/workspace/technocapital-singularity-zoology/knowledge-graph/` directory remains untouched during testing: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --out-dir /tmp/kg-staging +``` + +--- + +## 4. Operating the Interactive Browser Workbench (`knowledge-graph/index.html`) + +### 4.1 Opening the Workbench (`file://` Direct Open or Local HTTP Server) + +Because `index.html` loads `window.ENCYCLOPEDIA_GRAPH_DATA` synchronously from the co-located `graph-data.js` bundle (rather than making an asynchronous `fetch('encyclopedia-graph.json')` request that browsers block under `file://` CORS policies), operators can open the workbench in two ways: + +1. **Direct Local `file://` Open (Zero Server Required):** + Open `file:///home/m00t/hermes/workspace/technocapital-singularity-zoology/knowledge-graph/index.html` directly in Firefox, Chromium, or Brave. +2. **Local HTTP Server (Optional):** + ```bash + python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace/technocapital-singularity-zoology + ``` + Then navigate to `http://127.0.0.1:8090/knowledge-graph/index.html`. + *(Note: Serving from the repository root `/workspace/technocapital-singularity-zoology` allows the relative `../encyclopedia//.pdf` links inside the right-hand Inspector Drawer to open the 22 Encyclopedia PDFs directly in a new browser tab).* + +### 4.2 Navigating the Four Spatial Layout Modes & Ego-Network Isolator + +Use the top toolbar buttons to switch between the spatial layouts: +- **`Mode 2: ETI Radar (S+ -> D Periphery)` *(Default)*:** Displays the six concentric rings (`Ring 1: Tier S+ Center [88–100 ETI]` bullseye radiating outward through `Ring 2: Tier S`, `Ring 3: Tier A`, `Ring 4: Tier B`, `Ring 5: Tier C`, and `Ring 6: Tier D Periphery [44–51 ETI]`). +- **`Mode 1: Trophic Food-Web`:** Places `333 / 666 / 777` at the core surrounded by the `13` Flex Pivots, the `10` Assemblage Builds, the `190` specimens clustered by guild angle, and the `92` conceptual operators. +- **`Mode 3: Gen 0 -> Gen 1 Funnel`:** Five-column bipartite alignment (`Gen 0 Written Specimens [x=240]` -> `Conceptual Operators [x=500]` -> `Encyclopedia Volumes [x=790]` -> `Gen 1 AQ Hubs [x=1080]` -> `ETI Builds & 333/666/777 [x=1340]`). +- **`Mode 4: 00–08 Folder Grid`:** Arranges all `291` article placements in a `3x3` grid corresponding to Ontological Divisions `00` through `08`. +- **Interactive Ego-Network Isolation (Mode 5):** + - **Single-click any node** on the canvas (or click any of the `13 Flex Pivots & Repdigit Hubs` pills in the left sidebar: `333, 666, 777, 292, 260, 256, 211, 193, 191, 183, 166, 153, 137, 136, 133, 129, 125, 96, 95, 91, 81`) to isolate its 1-hop neighborhood and populate the right-hand **Encyclopedia Article Inspector Drawer**. + - **Double-click empty canvas** (or click **`Reset View`**) to restore the full 388-node view. + - **Click `Export PNG`** in the top-right toolbar to download a PNG snapshot of the current viewport and filter state. + +--- + +## 5. Importing Into External Open-Source Network Science & PKM Tools + +1. **Gephi (`0.10+`) / Cytoscape Desktop (`3.10+`) / yEd:** + - Open `/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia-graph.gexf` (or `encyclopedia-graph.graphml`). + - Node colors (`viz:color`), sizes (`viz:size`), and pre-computed radar coordinates (`viz:position`) load automatically. Run Gephi's *ForceAtlas2* (with `Scaling = 12.0`, `Prevent Overlap = True`, `LinLog mode = True`) or *Modularity* (`Resolution = 1.0`) to compare unsupervised topological clusters against the `S1–S6 × M1–M7+` guilds. +2. **Python `NetworkX` Custom Scripting:** + ```python + import json + p = "/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia-graph.json" + data = json.loads(open(p).read()) + print("Nodes:", data["counts"]["total_nodes"], "Edges:", data["counts"]["total_edges"]) + ``` +3. **Obsidian Canvas (`JSON Canvas 1.0`):** + - Copy or symlink `/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia.canvas` into any Obsidian vault to browse the 159 core hub/build cards on an infinite 2D canvas. + +--- + +## 6. Maintenance Protocol & Troubleshooting Runbook + +### 6.1 When to Rebuild the Knowledge Graph + +Whenever you add a new domain term to the glossary and update the Encyclopedia: +```bash +# Step A: Update the glossary & 22-volume PDF Encyclopedia +python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py \ + --add-glossary-term "" "" "" \ + --build-encyclopedia + +# Step B: Rebuild and verify the Knowledge Graph from the updated read-only registries +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py +``` + +### 6.2 Troubleshooting Common Operator Issues + +| Symptom / Error | Root Cause | Deterministic Resolution | +| :--- | :--- | :--- | +| `AssertionError: ISOLATION BREACH: glossary-registry.json modified!` | An external process modified `taxonomy/glossary-registry.json` mid-build. | Run `git -C /workspace/technocapital-singularity-zoology diff taxonomy/glossary-registry.json` to inspect the change, restore if unintended, and re-run `build_encyclopedia_knowledge_graph.py`. | +| `Error: graph-data.js not found` when opening `index.html` | `index.html` was moved outside `knowledge-graph/` without `graph-data.js`. | Keep `index.html` and `graph-data.js` in the same directory (`/workspace/technocapital-singularity-zoology/knowledge-graph/`) or re-run `build_encyclopedia_knowledge_graph.py`. | +| Clicking `Open Encyclopedia Volume PDF` in `index.html` returns 404 over HTTP | The local HTTP server was started inside `knowledge-graph/` instead of the parent repo root, making `../encyclopedia/` unreachable. | Start `python3 -m http.server 8090` with `--directory /workspace/technocapital-singularity-zoology` (the repo root) or open `index.html` directly via `file://`. | + +--- + +## 7. Operator Manual Write-Test-Edit Audit Log (`v1.7.0`) + +During live verification of this manual against `/workspace/technocapital-singularity-zoology/knowledge-graph/`, three empirical refinements were discovered, tested, and edited into both `scripts/build_encyclopedia_knowledge_graph.py` and this manual: + +1. **Deduplication of Parallel `TROPHIC_GUILD_BRIDGE` Edges (`1,287 -> 1,282` Unique Edges):** + Running `build_encyclopedia_knowledge_graph.py --query-node "125"` revealed that `("aq:125", "build:S6", "TROPHIC_GUILD_BRIDGE")` was emitted twice (once from `build:S2 -> 125 -> build:S6` and once from `build:M7_candidate_2026_11_28 -> 125 -> build:S6`), causing `incident_edge_count` (`9`) to exceed `degree` (`8`). Adding `seen_edges: set[tuple[str, str, str]]` in `add_edge()` eliminated all 5 duplicate parallel bridge edges (`40 -> 35` `TROPHIC_GUILD_BRIDGE` edges, `1,287 -> 1,282` total edges) so `incident_edge_count == degree` (`8 == 8`) holds across all hubs. +2. **Multi-Match `matched_node_ids` Reporting in `--query-node`:** + Querying an integer coordinate such as `--query-node "125"` matches both the hub node (`aq:125`) and the 5 lexical specimen nodes whose `ing_aq == 125` (`spec:capital`, `spec:capture`, `spec:downs`, `spec:folds`, `spec:serres`). `query_node_ego()` was upgraded to return `"matched_node_ids"` alongside `"primary_node"` so operators immediately see the entire equivalence ring. +3. **Dynamic Threshold Guard in Gate 3 (`nodes >= 388`, `edges >= 1282`) & Empirical Canvas Counts (`282` Nodes, `1,120` Edges):** + Updated Gate 3 in `verify_published_artifacts()` to assert `>= 388` nodes and `>= 1282` edges (so future glossary additions pass `--verify-only` without false-negative equality failures) and updated Gate 5 documentation to reflect the exact verified Obsidian Canvas counts (`282` nodes, `1,120` edges). + diff --git a/docs/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf b/docs/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf new file mode 100644 index 0000000..364bbec --- /dev/null +++ b/docs/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf @@ -0,0 +1,212 @@ +%PDF-1.4 +%“Œ‹ž ReportLab Generated PDF document (opensource) +1 0 obj +<< +/F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 6 0 R /F5 8 0 R /F6 10 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 +<< +/Contents 18 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +6 0 obj +<< +/BaseFont /ZapfDingbats /Name /F4 /Subtype /Type1 /Type /Font +>> +endobj +7 0 obj +<< +/Contents 19 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +8 0 obj +<< +/BaseFont /Symbol /Name /F5 /Subtype /Type1 /Type /Font +>> +endobj +9 0 obj +<< +/Contents 20 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +10 0 obj +<< +/BaseFont /Helvetica-Oblique /Encoding /WinAnsiEncoding /Name /F6 /Subtype /Type1 /Type /Font +>> +endobj +11 0 obj +<< +/Contents 21 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +12 0 obj +<< +/Contents 22 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +13 0 obj +<< +/Contents 23 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +14 0 obj +<< +/Contents 24 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +15 0 obj +<< +/PageMode /UseNone /Pages 17 0 R /Type /Catalog +>> +endobj +16 0 obj +<< +/Author (Hermes Agent) /CreationDate (D:20261129193746+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261129193746+00'00') /Producer (ReportLab PDF Library - \(opensource\)) + /Subject (\(unspecified\)) /Title (Operator's Manual: Building, Verifying, Inspecting & Maintaining the Encyclopedia Knowledge Graph \(v1.7.0\)) /Trapped /False +>> +endobj +17 0 obj +<< +/Count 7 /Kids [ 5 0 R 7 0 R 9 0 R 11 0 R 12 0 R 13 0 R 14 0 R ] /Type /Pages +>> +endobj +18 0 obj +<< +/Filter [ /ASCII85Decode /FlateDecode ] /Length 2419 +>> +stream +GauHMD0+Gi')q<+Yqqs:.BWCI]dn/F1U8UE^,iMC/'50Y)%T-P&o&%i!)TuLhLE9D.8dC,;k1q.he8/1@e\R3B6QoK5(8^nD\*#@N57S'5jC&;#L[^`0YW.Tpup2Sl:N_Ei4Igq"h0VD_k9(RkFH37'"f7:&ka08]9/k@2K\6j*qi*ejqXf,A^eM]LC'(9?\0,*I389qt**,[X'I.7])XmN3njeP-][-)PN7n\3Qn#UF_kEjk)4=N53q!\aN8#eQeiB68,=nte&tHZ_G[@pfu:(F"%K2k+]M^jKf0m`4s+GH#TEK"_)8aKSTP0CiEB5/LsNE4*"5kZ:Bt@O"aa:95:Il(WZ--Ef7KaP.F[`cA#NI/k#uH9!B`U]chO"\$ufe&%8.X=YICRu\eb7)X1HgH8GB>U6&[bcgIqRFBJcns5!gS@?2R/^2M<[!FiV_bZ3ZY88#_BrF>mmBJ1LG,1aZs=.3"!QT!W/,CeNb;PlNCmd*#dY9,Ee-/"$+BjF)l#OZUf-bV,AOb),K4!LP&X!gU7/jHX<*IZS]O<2'OI^@`0HEgL9Oqf,-OVIa8S14GNtu9'X(K.S?b+4dpJV%6cdX;Ika?2chVVG#+"G_Z??K^,pcZ'Hhmuge4=uEHa\0?g1hY7Q_tE*J%RR0mN!^O[SDd`hk/Qs*B3u`VIKD]o_g6[8o\P,*1#kF`%tUtI4cm%,T<[HPLMACOm`Ca;ac31Xb?r5ZJFS4@rfdkD>S/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ao2\88&%$ie](oF@?Z*F(KS<.R)[WDW1R9L)LJ/C$OP$ZkAZ?]nG^#LL\!!2?.VX;gW4B*1a*]%7D9el,=UE2=Doo`dY[RS)h0>E6U2H_Os(cHPAbOAXYB7dnl\t5-4,&)RVqFD)oGVJ1bN/A7bu)6g.%*(+&A;$mZbqWoBINV%&6dj@l4CMZXgASP6Q#6K>>Q`Jt^=-6+j7_#MG=QNio(HNkZm+H+f:P9jOlg"T8Z:<\G?[,2@VQ6Ll>a'n$g6?oZ4B';'rDX8)IWNR'.(O+]ILM46beK%HmBA%PG$(#'R%F+MO*m7/hB:fDYG<".Y.9(q0`'/!MdP&tk0i/!Mke+k32Kh*1I!al5!^CLM9a>=`I:pdF\3>-W/2TnT]U]IjNo@Ce=$T6!*sVNMkLYGD\[,LF4,F=SOeG[alU^*:bYTErdA\O$*#I-#G_9KjT897#J-hBf)0q(@=*=+:5u3=ng~>endstream +endobj +xref +0 25 +0000000000 65535 f +0000000061 00000 n +0000000143 00000 n +0000000250 00000 n +0000000362 00000 n +0000000467 00000 n +0000000662 00000 n +0000000745 00000 n +0000000940 00000 n +0000001017 00000 n +0000001212 00000 n +0000001328 00000 n +0000001524 00000 n +0000001720 00000 n +0000001916 00000 n +0000002112 00000 n +0000002182 00000 n +0000002557 00000 n +0000002657 00000 n +0000005168 00000 n +0000007519 00000 n +0000010125 00000 n +0000012136 00000 n +0000014903 00000 n +0000017230 00000 n +trailer +<< +/ID +[<9b455476a828f403da27592c90089f82><9b455476a828f403da27592c90089f82>] +% ReportLab generated PDF document -- digest (opensource) + +/Info 16 0 R +/Root 15 0 R +/Size 25 +>> +startxref +18242 +%%EOF diff --git a/knowledge-graph/OPERATORS-MANUAL.md b/knowledge-graph/OPERATORS-MANUAL.md new file mode 100644 index 0000000..a1ff3a9 --- /dev/null +++ b/knowledge-graph/OPERATORS-MANUAL.md @@ -0,0 +1,201 @@ +# Operator's Manual: Building, Verifying, Inspecting & Maintaining the Encyclopedia of Technocapital Singularity Zoology Knowledge Graph (`v1.7.0`) + +- **Document ID:** `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH` (`v1.7.0`) +- **Primary Repository:** `/workspace/technocapital-singularity-zoology` +- **Knowledge Graph Compiler CLI:** `/workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py` +- **Published Knowledge Graph Directory:** `/workspace/technocapital-singularity-zoology/knowledge-graph/` +- **Interactive Browser Workbench:** `/workspace/technocapital-singularity-zoology/knowledge-graph/index.html` (`file:///home/m00t/hermes/workspace/technocapital-singularity-zoology/knowledge-graph/index.html`) +- **Strict Isolation Standard:** Read-Only Upstream Ingestion (`0` Graph/Visualization Concepts Permitted in `taxonomy/glossary-registry.json` or `encyclopedia/`) + +--- + +## 1. System Overview & Architectural Boundaries + +The **Encyclopedia Knowledge Graph Engine** (`scripts/build_encyclopedia_knowledge_graph.py`) compiles the `9` Ontological Divisions (`00`–`08`), `22` Alphabetized PDF Volumes (`122` pages), `282` unique glossary and lexical headwords (`291` volume placements), `10` Assemblage Builds (`Ranks #1–#9` + provisional `M7_candidate_2026_11_28`), `65` Base-36 Alphanumeric Qabbala (`AQ`) coordinate hubs (`71..390`, `333/666/777`), and `189` verified cross-scale equations into a **388-node, 1,282-edge multi-partite property graph** (`0` duplicate parallel edges). + +### 1.1 The Strict One-Way Isolation Rule (Zero Glossary Leak) + +Operators must enforce a strict unidirectional boundary between the **Upstream Domain Corpora** and the **Downstream Knowledge Graph Workbench**: + +| Layer | Canonical Files | Access Mode During Graph Build | Isolation Invariant | +| :--- | :--- | :--- | :--- | +| **Upstream Source of Truth** | `taxonomy/glossary-registry.json`
`encyclopedia/encyclopedia-manifest.json`
`taxonomy/assemblage-builds-tier-list.json`
`taxonomy/memetic-superclass-registry.json`
`dossiers/65..69-dossier-*.md` | **READ-ONLY (`r`)** | Pre-build and post-build SHA-256 digests of `glossary-registry.json` and `encyclopedia-manifest.json` MUST remain 100% identical. Zero graph-theory or visualization terms may be added to the glossary. | +| **Downstream Graph Workbench** | `knowledge-graph/index.html`
`knowledge-graph/encyclopedia-graph.json`
`knowledge-graph/graph-data.js`
`knowledge-graph/encyclopedia-graph.graphml`
`knowledge-graph/encyclopedia-graph.gexf`
`knowledge-graph/encyclopedia.canvas`
`knowledge-graph/atlas-mode{1,2,3}.png` | **READ-WRITE (`w`)** | Rebuilt deterministically on demand whenever upstream encyclopedia or glossary registries are updated. | + +--- + +## 2. Prerequisites & Pre-Flight Environment Checklist + +Before executing a build, verify that the runtime environment and upstream registries satisfy three prerequisites: + +1. **Python 3.10+ with Pillow (`PIL`):** + `build_encyclopedia_knowledge_graph.py` uses 100% Python standard library (`json`, `hashlib`, `math`, `re`, `html`, `xml.etree.ElementTree`, `pathlib`, `argparse`) for all graph construction, centrality calculation, and JSON/GraphML/GEXF/Canvas exports, plus `PIL` (`Pillow`) for rendering the three `1600x1060` visual atlas PNG boards. +2. **Upstream Encyclopedia & Glossary Presence:** + Confirm that `taxonomy/glossary-registry.json` and `encyclopedia/encyclopedia-manifest.json` exist on disk. +3. **Pre-Flight Isolation Baseline Check (`--check-isolation`):** + Run the pre-flight isolation check to record the upstream SHA-256 digests prior to building: + ```bash + python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --check-isolation + ``` + Expected output: + - `"glossary_registry_sha256": "7564ef40fb3e0e18d1d8547522db431b6a369c40139713b573df6e58b972d43d"` + - `"encyclopedia_manifest_sha256": "0d7ce833bb0aa0eea069bf764b2e3b0b36ac2631821c42f3d6bcb897335f8a7d"` + +--- + +## 3. Step-by-Step Build & Verification Procedure + +### Step 1: Execute the Full Knowledge Graph Build + +Run `build_encyclopedia_knowledge_graph.py` from any working directory: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py +``` + +What this command executes deterministically in ~1.2 seconds: +1. Computes `pre_gl_sha` and `pre_enc_sha` over `taxonomy/glossary-registry.json` and `encyclopedia/encyclopedia-manifest.json`. +2. Constructs all **388 nodes** across 6 ontological classes: + - `OntologicalDivision` (`9` nodes: `div:00-index-and-ontological-atlas` .. `div:08-stakeholder-registers-idioms-and-pokedex-semiotics`) + - `EncyclopediaVolume` (`22` nodes: `vol:00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z` .. `vol:08-.../i-to-z-...`) + - `TaxonAssemblageBuild` (`10` nodes: `build:S1` [`93 ETI`], `build:S2` [`90 ETI`], `build:S6` [`87 ETI`], `build:S3` [`83 ETI`], `build:M1` [`73 ETI`], `build:S5` [`61 ETI`], `build:S4` [`61 ETI`], `build:M6` [`53 ETI`], `build:M7_candidate_2026_11_28` [`53 ETI`], and `build:Q0` [`49 ETI`]) + - `ConceptualOperatorOrIdiom` (`92` nodes: `concept:000` .. `concept:091` from Sections 1–8 & 8B) + - `BilingualLexicalSpecimen` (`190` nodes: `spec:incorporation` .. `spec:debt` from Section 9) + - `AQCoordinateHub` (`65` nodes: `aq:71` .. `aq:390` + macro repdigit attractors `aq:333`, `aq:666`, `aq:777`) +3. Constructs all **1,282 deduplicated typed edges** across 8 mathematical and structural relations: + - `IN_VOLUME` (`281` edges) & `IN_DIVISION` (`22` edges) + - `IN_GUILD_BUILD` (`271` edges) + - `G2_CROSS_GEN_TWIN` (`202` directed edges where `AQ_Eng(A) == AQ_Ing(B)`) + - `CLOSES_REPDIGIT_EQ` (`175` edges linking constituent tokens to `aq:333`, `aq:666`, and `aq:777`) + - `G1_COLLAPSES_TO_ING_AQ` (`167` directed edges weighted by `log(1 + Gen0_Var_Collapsed)`) + - `GEN0_WRITTEN_COLLISION` (`103` undirected edges where `AQ_Eng(A) == AQ_Eng(B)`) + - `TROPHIC_GUILD_BRIDGE` (`35` unique edges across the `13` Multi-Build Hybrid Flex Singularities) + - `G4_ISOMETRIC_INVARIANT` (`21` self-loops on `Δ = 0` chokepoints) + - `G5_TWIN_PRIME_MUTATION` (`5` edges on dual-prime mutations into shared hubs) +4. Computes deterministic `(x, y)` coordinates for all 4 spatial layouts (`mode1_trophic`, `mode2_radar`, `mode3_bipartite`, `mode4_hierarchy`). +5. Writes `encyclopedia-graph.json`, `graph-data.js`, `encyclopedia-graph.graphml`, `encyclopedia-graph.gexf`, `encyclopedia.canvas`, and the 3 high-resolution PNG atlas boards (`atlas-mode1-trophic-food-web.png`, `atlas-mode2-concentric-eti-radar.png`, `atlas-mode3-bipartite-g1-funnel.png`). +6. Runs the built-in **6-Gate Verification Suite** and asserts `pre_gl_sha == post_gl_sha` and `pre_enc_sha == post_enc_sha`. + +### Step 2: Run Standalone 6-Gate Verification (`--verify-only`) + +To audit the published artifacts in `/workspace/technocapital-singularity-zoology/knowledge-graph/` at any time without rebuilding: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --verify-only +``` + +Verify that the JSON response reports `"all_gates_passed": true`: +- **Gate 1 (`gate1_glossary_sha256_unchanged`):** `true` (`taxonomy/glossary-registry.json` untouched). +- **Gate 2 (`gate2_encyclopedia_sha256_unchanged`):** `true` (`encyclopedia/encyclopedia-manifest.json` untouched). +- **Gate 3 (`gate3_json_schema_counts`):** `{"nodes": 388, "edges": 1282}` (`>= 388` nodes and `>= 1282` deduplicated edges). +- **Gate 4 (`gate4_xml_well_formed`):** Parses both `encyclopedia-graph.graphml` and `encyclopedia-graph.gexf` via `xml.etree.ElementTree.parse()` with zero XML syntax errors. +- **Gate 5 (`gate5_obsidian_canvas_counts`):** Confirms valid JSON Canvas 1.0 structure (`282` hub/high-degree canvas nodes, `1,120` canvas edges). +- **Gate 6 (`gate6_atlas_pngs`):** Confirms all 3 rendered PNG atlas boards exist at `[1600, 1060]` RGB resolution. + +### Step 3: Query Any Node & Inspect Its Ego-Network via CLI (`--query-node`) + +Operators can inspect any node's properties, layout coordinates, and incident edges directly from the terminal using `--query-node `: + +```bash +# 1. Query an Assemblage Build by ID +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "build:S1" + +# 2. Query an AQ Coordinate Hub by integer value (e.g., 125 = 5^3 or 193 [44th PRIME]) +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "125" + +# 3. Query a Bilingual Lexical Specimen by English or Ingglish spelling +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --query-node "blakwel" +``` + +### Step 4: Conduct Non-Destructive Staging Dry-Runs (`--out-dir`) + +When testing layout adjustments or schema extensions, pass `--out-dir /tmp/kg-staging` so the production `/workspace/technocapital-singularity-zoology/knowledge-graph/` directory remains untouched during testing: + +```bash +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py --out-dir /tmp/kg-staging +``` + +--- + +## 4. Operating the Interactive Browser Workbench (`knowledge-graph/index.html`) + +### 4.1 Opening the Workbench (`file://` Direct Open or Local HTTP Server) + +Because `index.html` loads `window.ENCYCLOPEDIA_GRAPH_DATA` synchronously from the co-located `graph-data.js` bundle (rather than making an asynchronous `fetch('encyclopedia-graph.json')` request that browsers block under `file://` CORS policies), operators can open the workbench in two ways: + +1. **Direct Local `file://` Open (Zero Server Required):** + Open `file:///home/m00t/hermes/workspace/technocapital-singularity-zoology/knowledge-graph/index.html` directly in Firefox, Chromium, or Brave. +2. **Local HTTP Server (Optional):** + ```bash + python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace/technocapital-singularity-zoology + ``` + Then navigate to `http://127.0.0.1:8090/knowledge-graph/index.html`. + *(Note: Serving from the repository root `/workspace/technocapital-singularity-zoology` allows the relative `../encyclopedia//.pdf` links inside the right-hand Inspector Drawer to open the 22 Encyclopedia PDFs directly in a new browser tab).* + +### 4.2 Navigating the Four Spatial Layout Modes & Ego-Network Isolator + +Use the top toolbar buttons to switch between the spatial layouts: +- **`Mode 2: ETI Radar (S+ -> D Periphery)` *(Default)*:** Displays the six concentric rings (`Ring 1: Tier S+ Center [88–100 ETI]` bullseye radiating outward through `Ring 2: Tier S`, `Ring 3: Tier A`, `Ring 4: Tier B`, `Ring 5: Tier C`, and `Ring 6: Tier D Periphery [44–51 ETI]`). +- **`Mode 1: Trophic Food-Web`:** Places `333 / 666 / 777` at the core surrounded by the `13` Flex Pivots, the `10` Assemblage Builds, the `190` specimens clustered by guild angle, and the `92` conceptual operators. +- **`Mode 3: Gen 0 -> Gen 1 Funnel`:** Five-column bipartite alignment (`Gen 0 Written Specimens [x=240]` -> `Conceptual Operators [x=500]` -> `Encyclopedia Volumes [x=790]` -> `Gen 1 AQ Hubs [x=1080]` -> `ETI Builds & 333/666/777 [x=1340]`). +- **`Mode 4: 00–08 Folder Grid`:** Arranges all `291` article placements in a `3x3` grid corresponding to Ontological Divisions `00` through `08`. +- **Interactive Ego-Network Isolation (Mode 5):** + - **Single-click any node** on the canvas (or click any of the `13 Flex Pivots & Repdigit Hubs` pills in the left sidebar: `333, 666, 777, 292, 260, 256, 211, 193, 191, 183, 166, 153, 137, 136, 133, 129, 125, 96, 95, 91, 81`) to isolate its 1-hop neighborhood and populate the right-hand **Encyclopedia Article Inspector Drawer**. + - **Double-click empty canvas** (or click **`Reset View`**) to restore the full 388-node view. + - **Click `Export PNG`** in the top-right toolbar to download a PNG snapshot of the current viewport and filter state. + +--- + +## 5. Importing Into External Open-Source Network Science & PKM Tools + +1. **Gephi (`0.10+`) / Cytoscape Desktop (`3.10+`) / yEd:** + - Open `/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia-graph.gexf` (or `encyclopedia-graph.graphml`). + - Node colors (`viz:color`), sizes (`viz:size`), and pre-computed radar coordinates (`viz:position`) load automatically. Run Gephi's *ForceAtlas2* (with `Scaling = 12.0`, `Prevent Overlap = True`, `LinLog mode = True`) or *Modularity* (`Resolution = 1.0`) to compare unsupervised topological clusters against the `S1–S6 × M1–M7+` guilds. +2. **Python `NetworkX` Custom Scripting:** + ```python + import json + p = "/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia-graph.json" + data = json.loads(open(p).read()) + print("Nodes:", data["counts"]["total_nodes"], "Edges:", data["counts"]["total_edges"]) + ``` +3. **Obsidian Canvas (`JSON Canvas 1.0`):** + - Copy or symlink `/workspace/technocapital-singularity-zoology/knowledge-graph/encyclopedia.canvas` into any Obsidian vault to browse the 159 core hub/build cards on an infinite 2D canvas. + +--- + +## 6. Maintenance Protocol & Troubleshooting Runbook + +### 6.1 When to Rebuild the Knowledge Graph + +Whenever you add a new domain term to the glossary and update the Encyclopedia: +```bash +# Step A: Update the glossary & 22-volume PDF Encyclopedia +python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py \ + --add-glossary-term "" "" "" \ + --build-encyclopedia + +# Step B: Rebuild and verify the Knowledge Graph from the updated read-only registries +python3 /workspace/technocapital-singularity-zoology/scripts/build_encyclopedia_knowledge_graph.py +``` + +### 6.2 Troubleshooting Common Operator Issues + +| Symptom / Error | Root Cause | Deterministic Resolution | +| :--- | :--- | :--- | +| `AssertionError: ISOLATION BREACH: glossary-registry.json modified!` | An external process modified `taxonomy/glossary-registry.json` mid-build. | Run `git -C /workspace/technocapital-singularity-zoology diff taxonomy/glossary-registry.json` to inspect the change, restore if unintended, and re-run `build_encyclopedia_knowledge_graph.py`. | +| `Error: graph-data.js not found` when opening `index.html` | `index.html` was moved outside `knowledge-graph/` without `graph-data.js`. | Keep `index.html` and `graph-data.js` in the same directory (`/workspace/technocapital-singularity-zoology/knowledge-graph/`) or re-run `build_encyclopedia_knowledge_graph.py`. | +| Clicking `Open Encyclopedia Volume PDF` in `index.html` returns 404 over HTTP | The local HTTP server was started inside `knowledge-graph/` instead of the parent repo root, making `../encyclopedia/` unreachable. | Start `python3 -m http.server 8090` with `--directory /workspace/technocapital-singularity-zoology` (the repo root) or open `index.html` directly via `file://`. | + +--- + +## 7. Operator Manual Write-Test-Edit Audit Log (`v1.7.0`) + +During live verification of this manual against `/workspace/technocapital-singularity-zoology/knowledge-graph/`, three empirical refinements were discovered, tested, and edited into both `scripts/build_encyclopedia_knowledge_graph.py` and this manual: + +1. **Deduplication of Parallel `TROPHIC_GUILD_BRIDGE` Edges (`1,287 -> 1,282` Unique Edges):** + Running `build_encyclopedia_knowledge_graph.py --query-node "125"` revealed that `("aq:125", "build:S6", "TROPHIC_GUILD_BRIDGE")` was emitted twice (once from `build:S2 -> 125 -> build:S6` and once from `build:M7_candidate_2026_11_28 -> 125 -> build:S6`), causing `incident_edge_count` (`9`) to exceed `degree` (`8`). Adding `seen_edges: set[tuple[str, str, str]]` in `add_edge()` eliminated all 5 duplicate parallel bridge edges (`40 -> 35` `TROPHIC_GUILD_BRIDGE` edges, `1,287 -> 1,282` total edges) so `incident_edge_count == degree` (`8 == 8`) holds across all hubs. +2. **Multi-Match `matched_node_ids` Reporting in `--query-node`:** + Querying an integer coordinate such as `--query-node "125"` matches both the hub node (`aq:125`) and the 5 lexical specimen nodes whose `ing_aq == 125` (`spec:capital`, `spec:capture`, `spec:downs`, `spec:folds`, `spec:serres`). `query_node_ego()` was upgraded to return `"matched_node_ids"` alongside `"primary_node"` so operators immediately see the entire equivalence ring. +3. **Dynamic Threshold Guard in Gate 3 (`nodes >= 388`, `edges >= 1282`) & Empirical Canvas Counts (`282` Nodes, `1,120` Edges):** + Updated Gate 3 in `verify_published_artifacts()` to assert `>= 388` nodes and `>= 1282` edges (so future glossary additions pass `--verify-only` without false-negative equality failures) and updated Gate 5 documentation to reflect the exact verified Obsidian Canvas counts (`282` nodes, `1,120` edges). + diff --git a/knowledge-graph/atlas-mode1-trophic-food-web.png b/knowledge-graph/atlas-mode1-trophic-food-web.png index ef02234..6d9582e 100644 Binary files a/knowledge-graph/atlas-mode1-trophic-food-web.png and b/knowledge-graph/atlas-mode1-trophic-food-web.png differ diff --git a/knowledge-graph/atlas-mode2-concentric-eti-radar.png b/knowledge-graph/atlas-mode2-concentric-eti-radar.png index d07036e..b6808ed 100644 Binary files a/knowledge-graph/atlas-mode2-concentric-eti-radar.png and b/knowledge-graph/atlas-mode2-concentric-eti-radar.png differ diff --git a/knowledge-graph/atlas-mode3-bipartite-g1-funnel.png b/knowledge-graph/atlas-mode3-bipartite-g1-funnel.png index fbe4087..c051cc6 100644 Binary files a/knowledge-graph/atlas-mode3-bipartite-g1-funnel.png and b/knowledge-graph/atlas-mode3-bipartite-g1-funnel.png differ diff --git a/knowledge-graph/encyclopedia-graph.gexf b/knowledge-graph/encyclopedia-graph.gexf index e3ea299..885bdf7 100644 --- a/knowledge-graph/encyclopedia-graph.gexf +++ b/knowledge-graph/encyclopedia-graph.gexf @@ -4769,24 +4769,19 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/knowledge-graph/encyclopedia-graph.graphml b/knowledge-graph/encyclopedia-graph.graphml index 3f398c8..a9bd5eb 100644 --- a/knowledge-graph/encyclopedia-graph.graphml +++ b/knowledge-graph/encyclopedia-graph.graphml @@ -8189,75 +8189,55 @@ TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - + TROPHIC_GUILD_BRIDGE 3.2 - - TROPHIC_GUILD_BRIDGE - 3.2 - - - TROPHIC_GUILD_BRIDGE - 3.2 - - - TROPHIC_GUILD_BRIDGE - 3.2 - - - TROPHIC_GUILD_BRIDGE - 3.2 - - - TROPHIC_GUILD_BRIDGE - 3.2 - - + TROPHIC_GUILD_BRIDGE 3.2 diff --git a/knowledge-graph/encyclopedia-graph.json b/knowledge-graph/encyclopedia-graph.json index 6abe026..b59f5c5 100644 --- a/knowledge-graph/encyclopedia-graph.json +++ b/knowledge-graph/encyclopedia-graph.json @@ -9,7 +9,7 @@ }, "counts": { "total_nodes": 388, - "total_edges": 1287, + "total_edges": 1282, "nodes_by_type": { "OntologicalDivision": 9, "EncyclopediaVolume": 22, @@ -28,7 +28,7 @@ "IN_DIVISION": 22, "IN_GUILD_BUILD": 271, "IN_VOLUME": 281, - "TROPHIC_GUILD_BRIDGE": 40 + "TROPHIC_GUILD_BRIDGE": 35 } }, "top_coordinate_hubs_by_degree": [ @@ -28537,17 +28537,7 @@ "directed": true }, { - "id": "e_1269_TROPHIC_GUILD_BRIDGE_build:S3_aq:211", - "source": "build:S3", - "target": "aq:211", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 211", - "weight": 3.2, - "color": "#FF4D4D", - "directed": true - }, - { - "id": "e_1270_TROPHIC_GUILD_BRIDGE_aq:211_build:Q0", + "id": "e_1269_TROPHIC_GUILD_BRIDGE_aq:211_build:Q0", "source": "aq:211", "target": "build:Q0", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28557,7 +28547,7 @@ "directed": true }, { - "id": "e_1271_TROPHIC_GUILD_BRIDGE_build:M1_aq:137", + "id": "e_1270_TROPHIC_GUILD_BRIDGE_build:M1_aq:137", "source": "build:M1", "target": "aq:137", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28567,17 +28557,7 @@ "directed": true }, { - "id": "e_1272_TROPHIC_GUILD_BRIDGE_aq:137_build:S3", - "source": "aq:137", - "target": "build:S3", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 137", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true - }, - { - "id": "e_1273_TROPHIC_GUILD_BRIDGE_build:M1_aq:136", + "id": "e_1271_TROPHIC_GUILD_BRIDGE_build:M1_aq:136", "source": "build:M1", "target": "aq:136", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28587,7 +28567,7 @@ "directed": true }, { - "id": "e_1274_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", + "id": "e_1272_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", "source": "aq:136", "target": "build:S6", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28597,7 +28577,7 @@ "directed": true }, { - "id": "e_1275_TROPHIC_GUILD_BRIDGE_build:M1_aq:133", + "id": "e_1273_TROPHIC_GUILD_BRIDGE_build:M1_aq:133", "source": "build:M1", "target": "aq:133", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28607,7 +28587,7 @@ "directed": true }, { - "id": "e_1276_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", + "id": "e_1274_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", "source": "aq:133", "target": "build:S6", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28617,7 +28597,7 @@ "directed": true }, { - "id": "e_1277_TROPHIC_GUILD_BRIDGE_build:S5_aq:95", + "id": "e_1275_TROPHIC_GUILD_BRIDGE_build:S5_aq:95", "source": "build:S5", "target": "aq:95", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28627,7 +28607,7 @@ "directed": true }, { - "id": "e_1278_TROPHIC_GUILD_BRIDGE_aq:95_build:S2", + "id": "e_1276_TROPHIC_GUILD_BRIDGE_aq:95_build:S2", "source": "aq:95", "target": "build:S2", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28637,7 +28617,7 @@ "directed": true }, { - "id": "e_1279_TROPHIC_GUILD_BRIDGE_build:S4_aq:136", + "id": "e_1277_TROPHIC_GUILD_BRIDGE_build:S4_aq:136", "source": "build:S4", "target": "aq:136", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28647,17 +28627,7 @@ "directed": true }, { - "id": "e_1280_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", - "source": "aq:136", - "target": "build:S6", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 136", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true - }, - { - "id": "e_1281_TROPHIC_GUILD_BRIDGE_build:M6_aq:133", + "id": "e_1278_TROPHIC_GUILD_BRIDGE_build:M6_aq:133", "source": "build:M6", "target": "aq:133", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28667,17 +28637,7 @@ "directed": true }, { - "id": "e_1282_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", - "source": "aq:133", - "target": "build:S6", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 133", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true - }, - { - "id": "e_1283_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:129", + "id": "e_1279_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:129", "source": "build:M7_candidate_2026_11_28", "target": "aq:129", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28687,7 +28647,7 @@ "directed": true }, { - "id": "e_1284_TROPHIC_GUILD_BRIDGE_aq:129_build:S3", + "id": "e_1280_TROPHIC_GUILD_BRIDGE_aq:129_build:S3", "source": "aq:129", "target": "build:S3", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28697,7 +28657,7 @@ "directed": true }, { - "id": "e_1285_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:125", + "id": "e_1281_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:125", "source": "build:M7_candidate_2026_11_28", "target": "aq:125", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28705,16 +28665,6 @@ "weight": 3.2, "color": "#FF4D4D", "directed": true - }, - { - "id": "e_1286_TROPHIC_GUILD_BRIDGE_aq:125_build:S6", - "source": "aq:125", - "target": "build:S6", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 125", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true } ] } diff --git a/knowledge-graph/encyclopedia.canvas b/knowledge-graph/encyclopedia.canvas index 3c9cf09..012367b 100644 --- a/knowledge-graph/encyclopedia.canvas +++ b/knowledge-graph/encyclopedia.canvas @@ -9465,112 +9465,82 @@ "label": "Bridge 211" }, { - "id": "e_1269_TROPHIC_GUILD_BRIDGE_build:S3_aq:211", - "fromNode": "build:S3", - "toNode": "aq:211", - "label": "Bridge 211" - }, - { - "id": "e_1270_TROPHIC_GUILD_BRIDGE_aq:211_build:Q0", + "id": "e_1269_TROPHIC_GUILD_BRIDGE_aq:211_build:Q0", "fromNode": "aq:211", "toNode": "build:Q0", "label": "Bridge 211" }, { - "id": "e_1271_TROPHIC_GUILD_BRIDGE_build:M1_aq:137", + "id": "e_1270_TROPHIC_GUILD_BRIDGE_build:M1_aq:137", "fromNode": "build:M1", "toNode": "aq:137", "label": "Bridge 137" }, { - "id": "e_1272_TROPHIC_GUILD_BRIDGE_aq:137_build:S3", - "fromNode": "aq:137", - "toNode": "build:S3", - "label": "Bridge 137" - }, - { - "id": "e_1273_TROPHIC_GUILD_BRIDGE_build:M1_aq:136", + "id": "e_1271_TROPHIC_GUILD_BRIDGE_build:M1_aq:136", "fromNode": "build:M1", "toNode": "aq:136", "label": "Bridge 136" }, { - "id": "e_1274_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", + "id": "e_1272_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", "fromNode": "aq:136", "toNode": "build:S6", "label": "Bridge 136" }, { - "id": "e_1275_TROPHIC_GUILD_BRIDGE_build:M1_aq:133", + "id": "e_1273_TROPHIC_GUILD_BRIDGE_build:M1_aq:133", "fromNode": "build:M1", "toNode": "aq:133", "label": "Bridge 133" }, { - "id": "e_1276_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", + "id": "e_1274_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", "fromNode": "aq:133", "toNode": "build:S6", "label": "Bridge 133" }, { - "id": "e_1277_TROPHIC_GUILD_BRIDGE_build:S5_aq:95", + "id": "e_1275_TROPHIC_GUILD_BRIDGE_build:S5_aq:95", "fromNode": "build:S5", "toNode": "aq:95", "label": "Bridge 95" }, { - "id": "e_1278_TROPHIC_GUILD_BRIDGE_aq:95_build:S2", + "id": "e_1276_TROPHIC_GUILD_BRIDGE_aq:95_build:S2", "fromNode": "aq:95", "toNode": "build:S2", "label": "Bridge 95" }, { - "id": "e_1279_TROPHIC_GUILD_BRIDGE_build:S4_aq:136", + "id": "e_1277_TROPHIC_GUILD_BRIDGE_build:S4_aq:136", "fromNode": "build:S4", "toNode": "aq:136", "label": "Bridge 136" }, { - "id": "e_1280_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", - "fromNode": "aq:136", - "toNode": "build:S6", - "label": "Bridge 136" - }, - { - "id": "e_1281_TROPHIC_GUILD_BRIDGE_build:M6_aq:133", + "id": "e_1278_TROPHIC_GUILD_BRIDGE_build:M6_aq:133", "fromNode": "build:M6", "toNode": "aq:133", "label": "Bridge 133" }, { - "id": "e_1282_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", - "fromNode": "aq:133", - "toNode": "build:S6", - "label": "Bridge 133" - }, - { - "id": "e_1283_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:129", + "id": "e_1279_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:129", "fromNode": "build:M7_candidate_2026_11_28", "toNode": "aq:129", "label": "Bridge 129" }, { - "id": "e_1284_TROPHIC_GUILD_BRIDGE_aq:129_build:S3", + "id": "e_1280_TROPHIC_GUILD_BRIDGE_aq:129_build:S3", "fromNode": "aq:129", "toNode": "build:S3", "label": "Bridge 129" }, { - "id": "e_1285_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:125", + "id": "e_1281_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:125", "fromNode": "build:M7_candidate_2026_11_28", "toNode": "aq:125", "label": "Bridge 125" - }, - { - "id": "e_1286_TROPHIC_GUILD_BRIDGE_aq:125_build:S6", - "fromNode": "aq:125", - "toNode": "build:S6", - "label": "Bridge 125" } ] } diff --git a/knowledge-graph/graph-data.js b/knowledge-graph/graph-data.js index 1eb0bb2..cf3eff5 100644 --- a/knowledge-graph/graph-data.js +++ b/knowledge-graph/graph-data.js @@ -9,7 +9,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { }, "counts": { "total_nodes": 388, - "total_edges": 1287, + "total_edges": 1282, "nodes_by_type": { "OntologicalDivision": 9, "EncyclopediaVolume": 22, @@ -28,7 +28,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "IN_DIVISION": 22, "IN_GUILD_BUILD": 271, "IN_VOLUME": 281, - "TROPHIC_GUILD_BRIDGE": 40 + "TROPHIC_GUILD_BRIDGE": 35 } }, "top_coordinate_hubs_by_degree": [ @@ -28537,17 +28537,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1269_TROPHIC_GUILD_BRIDGE_build:S3_aq:211", - "source": "build:S3", - "target": "aq:211", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 211", - "weight": 3.2, - "color": "#FF4D4D", - "directed": true - }, - { - "id": "e_1270_TROPHIC_GUILD_BRIDGE_aq:211_build:Q0", + "id": "e_1269_TROPHIC_GUILD_BRIDGE_aq:211_build:Q0", "source": "aq:211", "target": "build:Q0", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28557,7 +28547,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1271_TROPHIC_GUILD_BRIDGE_build:M1_aq:137", + "id": "e_1270_TROPHIC_GUILD_BRIDGE_build:M1_aq:137", "source": "build:M1", "target": "aq:137", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28567,17 +28557,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1272_TROPHIC_GUILD_BRIDGE_aq:137_build:S3", - "source": "aq:137", - "target": "build:S3", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 137", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true - }, - { - "id": "e_1273_TROPHIC_GUILD_BRIDGE_build:M1_aq:136", + "id": "e_1271_TROPHIC_GUILD_BRIDGE_build:M1_aq:136", "source": "build:M1", "target": "aq:136", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28587,7 +28567,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1274_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", + "id": "e_1272_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", "source": "aq:136", "target": "build:S6", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28597,7 +28577,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1275_TROPHIC_GUILD_BRIDGE_build:M1_aq:133", + "id": "e_1273_TROPHIC_GUILD_BRIDGE_build:M1_aq:133", "source": "build:M1", "target": "aq:133", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28607,7 +28587,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1276_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", + "id": "e_1274_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", "source": "aq:133", "target": "build:S6", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28617,7 +28597,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1277_TROPHIC_GUILD_BRIDGE_build:S5_aq:95", + "id": "e_1275_TROPHIC_GUILD_BRIDGE_build:S5_aq:95", "source": "build:S5", "target": "aq:95", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28627,7 +28607,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1278_TROPHIC_GUILD_BRIDGE_aq:95_build:S2", + "id": "e_1276_TROPHIC_GUILD_BRIDGE_aq:95_build:S2", "source": "aq:95", "target": "build:S2", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28637,7 +28617,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1279_TROPHIC_GUILD_BRIDGE_build:S4_aq:136", + "id": "e_1277_TROPHIC_GUILD_BRIDGE_build:S4_aq:136", "source": "build:S4", "target": "aq:136", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28647,17 +28627,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1280_TROPHIC_GUILD_BRIDGE_aq:136_build:S6", - "source": "aq:136", - "target": "build:S6", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 136", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true - }, - { - "id": "e_1281_TROPHIC_GUILD_BRIDGE_build:M6_aq:133", + "id": "e_1278_TROPHIC_GUILD_BRIDGE_build:M6_aq:133", "source": "build:M6", "target": "aq:133", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28667,17 +28637,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1282_TROPHIC_GUILD_BRIDGE_aq:133_build:S6", - "source": "aq:133", - "target": "build:S6", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 133", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true - }, - { - "id": "e_1283_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:129", + "id": "e_1279_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:129", "source": "build:M7_candidate_2026_11_28", "target": "aq:129", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28687,7 +28647,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1284_TROPHIC_GUILD_BRIDGE_aq:129_build:S3", + "id": "e_1280_TROPHIC_GUILD_BRIDGE_aq:129_build:S3", "source": "aq:129", "target": "build:S3", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28697,7 +28657,7 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "directed": true }, { - "id": "e_1285_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:125", + "id": "e_1281_TROPHIC_GUILD_BRIDGE_build:M7_candidate_2026_11_28_aq:125", "source": "build:M7_candidate_2026_11_28", "target": "aq:125", "relation": "TROPHIC_GUILD_BRIDGE", @@ -28705,16 +28665,6 @@ window.ENCYCLOPEDIA_GRAPH_DATA = { "weight": 3.2, "color": "#FF4D4D", "directed": true - }, - { - "id": "e_1286_TROPHIC_GUILD_BRIDGE_aq:125_build:S6", - "source": "aq:125", - "target": "build:S6", - "relation": "TROPHIC_GUILD_BRIDGE", - "label": "Bridge 125", - "weight": 3.2, - "color": "#FFBF7F", - "directed": true } ] }; diff --git a/scripts/build_encyclopedia_knowledge_graph.py b/scripts/build_encyclopedia_knowledge_graph.py index e174c51..40d6acb 100644 --- a/scripts/build_encyclopedia_knowledge_graph.py +++ b/scripts/build_encyclopedia_knowledge_graph.py @@ -131,6 +131,7 @@ def build_graph() -> dict[str, Any]: nodes: list[dict[str, Any]] = [] edges: list[dict[str, Any]] = [] node_by_id: dict[str, dict[str, Any]] = {} + seen_edges: set[tuple[str, str, str]] = set() def add_node(nid: str, label: str, ntype: str, color: str, size: float, props: dict[str, Any]) -> None: if nid in node_by_id: @@ -147,8 +148,12 @@ def build_graph() -> dict[str, Any]: node_by_id[nid] = obj def add_edge(src: str, tgt: str, rel: str, label: str = "", weight: float = 1.0, color: str = "#6B7280", directed: bool = True) -> None: - if src not in node_by_id or tgt not in node_by_id or src == tgt and rel != "G4_ISOMETRIC_INVARIANT": + if src not in node_by_id or tgt not in node_by_id or (src == tgt and rel != "G4_ISOMETRIC_INVARIANT"): return + key = (src, tgt, rel) if directed else (min(src, tgt), max(src, tgt), rel) + if key in seen_edges: + return + seen_edges.add(key) eid = f"e_{len(edges):04d}_{rel}_{src}_{tgt}" edges.append( { @@ -1000,15 +1005,130 @@ def render_atlas_pngs(graph_data: dict[str, Any], out_dir: Path) -> list[str]: return written -def main() -> int: - KG_DIR.mkdir(parents=True, exist_ok=True) - graph_data = build_graph() +def verify_published_artifacts(kg_dir: Path, pre_gl_sha: str, pre_enc_sha: str) -> dict[str, Any]: + import xml.etree.ElementTree as ET + from PIL import Image - json_path = KG_DIR / "encyclopedia-graph.json" - js_path = KG_DIR / "graph-data.js" - graphml_path = KG_DIR / "encyclopedia-graph.graphml" - gexf_path = KG_DIR / "encyclopedia-graph.gexf" - canvas_path = KG_DIR / "encyclopedia.canvas" + post_gl_sha = hashlib.sha256(GLOSSARY_REG_PATH.read_bytes()).hexdigest() + post_enc_sha = hashlib.sha256(ENC_MANIFEST_PATH.read_bytes()).hexdigest() + + json_p = kg_dir / "encyclopedia-graph.json" + js_p = kg_dir / "graph-data.js" + gml_p = kg_dir / "encyclopedia-graph.graphml" + gexf_p = kg_dir / "encyclopedia-graph.gexf" + canv_p = kg_dir / "encyclopedia.canvas" + html_p = KG_DIR / "index.html" + + j_obj = json.loads(json_p.read_text(encoding="utf-8")) + c_obj = json.loads(canv_p.read_text(encoding="utf-8")) + gml_root = ET.parse(gml_p).getroot() + gexf_root = ET.parse(gexf_p).getroot() + + png_checks = {} + for m_name in ("atlas-mode1-trophic-food-web.png", "atlas-mode2-concentric-eti-radar.png", "atlas-mode3-bipartite-g1-funnel.png"): + p = kg_dir / m_name + with Image.open(p) as im: + png_checks[m_name] = {"size": list(im.size), "mode": im.mode, "bytes": p.stat().st_size} + + return { + "all_gates_passed": ( + pre_gl_sha == post_gl_sha + and pre_enc_sha == post_enc_sha + and len(j_obj["nodes"]) >= 388 + and len(j_obj["edges"]) >= 1282 + and gml_root.tag.endswith("graphml") + and gexf_root.tag.endswith("gexf") + and len(c_obj["nodes"]) > 0 + and js_p.stat().st_size > 100000 + and html_p.exists() + ), + "gate1_glossary_sha256_unchanged": pre_gl_sha == post_gl_sha, + "gate2_encyclopedia_sha256_unchanged": pre_enc_sha == post_enc_sha, + "gate3_json_schema_counts": {"nodes": len(j_obj["nodes"]), "edges": len(j_obj["edges"])}, + "gate4_xml_well_formed": {"graphml_root": gml_root.tag, "gexf_root": gexf_root.tag}, + "gate5_obsidian_canvas_counts": {"canvas_nodes": len(c_obj["nodes"]), "canvas_edges": len(c_obj["edges"])}, + "gate6_atlas_pngs": png_checks, + } + + +def query_node_ego(graph_data: dict[str, Any], query: str) -> dict[str, Any]: + q = query.strip().lower() + matches = [] + for n in graph_data["nodes"]: + if ( + n["id"].lower() == q + or q in n["label"].lower() + or q == str(n.get("ing_aq", "")) + or q == str(n.get("aq_value", "")) + or q == (n.get("eng", "") or "").lower() + or q == (n.get("ing", "") or "").lower() + ): + matches.append(n) + if not matches: + return {"query": query, "match_count": 0, "matched_node_ids": [], "matches": []} + primary = matches[0] + nid = primary["id"] + incident = [ + {"relation": e["relation"], "source": e["source"], "target": e["target"], "label": e["label"], "weight": e["weight"]} + for e in graph_data["edges"] + if e["source"] == nid or e["target"] == nid + ] + return { + "query": query, + "match_count": len(matches), + "matched_node_ids": [m["id"] for m in matches], + "primary_node": {k: v for k, v in primary.items() if k != "layouts"}, + "layouts": primary.get("layouts"), + "incident_edge_count": len(incident), + "sample_incident_edges": incident[:15], + } + + +def main() -> int: + import argparse + + ap = argparse.ArgumentParser(description="Build, verify, and query the Encyclopedia of Technocapital Singularity Zoology Knowledge Graph.") + ap.add_argument("--out-dir", default=str(KG_DIR), help="Target output directory for generated graph artifacts (default: knowledge-graph/).") + ap.add_argument("--verify-only", action="store_true", help="Run 6-gate verification on existing knowledge-graph artifacts without rebuilding.") + ap.add_argument("--check-isolation", action="store_true", help="Print upstream glossary and encyclopedia SHA-256 digests and verify zero modifications.") + ap.add_argument("--query-node", default=None, help="Query a node by ID, headword, Ingglish token, or integer AQ coordinate and inspect its ego-network.") + args = ap.parse_args() + + pre_gl_sha = hashlib.sha256(GLOSSARY_REG_PATH.read_bytes()).hexdigest() + pre_enc_sha = hashlib.sha256(ENC_MANIFEST_PATH.read_bytes()).hexdigest() + + if args.check_isolation: + print( + json.dumps( + { + "glossary_registry_path": str(GLOSSARY_REG_PATH), + "glossary_registry_sha256": pre_gl_sha, + "encyclopedia_manifest_path": str(ENC_MANIFEST_PATH), + "encyclopedia_manifest_sha256": pre_enc_sha, + }, + indent=2, + ) + ) + return 0 + + out_dir = Path(args.out_dir) + if args.verify_only: + ver = verify_published_artifacts(out_dir, pre_gl_sha, pre_enc_sha) + print(json.dumps(ver, indent=2)) + return 0 if ver["all_gates_passed"] else 1 + + graph_data = build_graph() + if args.query_node: + res = query_node_ego(graph_data, args.query_node) + print(json.dumps(res, indent=2, ensure_ascii=False)) + return 0 + + out_dir.mkdir(parents=True, exist_ok=True) + json_path = out_dir / "encyclopedia-graph.json" + js_path = out_dir / "graph-data.js" + graphml_path = out_dir / "encyclopedia-graph.graphml" + gexf_path = out_dir / "encyclopedia-graph.gexf" + canvas_path = out_dir / "encyclopedia.canvas" json_str = json.dumps(graph_data, indent=2, ensure_ascii=False) json_path.write_text(json_str + "\n", encoding="utf-8") @@ -1017,13 +1137,15 @@ def main() -> int: export_graphml(graph_data, graphml_path) export_gexf(graph_data, gexf_path) export_obsidian_canvas(graph_data, canvas_path) - png_paths = render_atlas_pngs(graph_data, KG_DIR) + png_paths = render_atlas_pngs(graph_data, out_dir) + ver = verify_published_artifacts(out_dir, pre_gl_sha, pre_enc_sha) print( json.dumps( { "counts": graph_data["counts"], "isolation_verified": graph_data["isolation_verified"], + "six_gate_verification": ver, "top_5_hubs": graph_data["top_coordinate_hubs_by_degree"][:5], "exported_files": [ str(json_path),