11 KiB
Architecture & Implementation Plan: Open-Source Interactive Knowledge Graph of the Encyclopedia of Technocapital Singularity Zoology (With Strict Glossary Isolation)
- Target Repository:
/workspace/technocapital-singularity-zoology(v1.7.0) - Planned Knowledge Graph Directory:
/workspace/technocapital-singularity-zoology/knowledge-graph/(Planned — Read-Only Consumer ofencyclopedia/&taxonomy/) - Glossary & Encyclopedia Isolation Rule: 100% Enforced (
0Graph/Visualization Concepts Added totaxonomy/glossary-registry.json,technocapital-singularity-zoology-comprehensive-glossary.{md,pdf}, orencyclopedia/)
1. Strict Glossary & Encyclopedia Isolation Architecture (One-Way Read-Only Data Flow)
To guarantee that zero resultant concepts from graph theory, network science, or UI visualization tooling (Cytoscape.js, Sigma.js, Graphology, NetworkX, ForceAtlas2, fCoSE, GraphML, GEXF, JSON Canvas, betweenness centrality, bipartite projection, Louvain modularity, etc.) ever enter the Technocapital Singularity Zoology Glossary or the 22-Volume PDF Encyclopedia:
- Strictly Unidirectional Read-Only Ingestion:
The planned graph compiler (
scripts/build_encyclopedia_knowledge_graph.py) readstaxonomy/glossary-registry.json,encyclopedia/encyclopedia-manifest.json,taxonomy/singularity-zoology-matrix.json,taxonomy/memetic-superclass-registry.json,taxonomy/quantitative-economic-anchors.json, andtaxonomy/assemblage-builds-tier-list.jsonin read-only mode (open(..., "r")). - Decoupled CLI Entrypoint:
Unlike
--build-tier-listor--build-encyclopedia, the knowledge-graph builder will live in a separate script (scripts/build_encyclopedia_knowledge_graph.py) that never imports or invokessync_glossary(),--add-glossary-term, orbuild_encyclopedia(). - Pre/Post SHA-256 Registry Assertion:
At the start and end of every graph build, the script will compute
sha256(taxonomy/glossary-registry.json)and assert byte-for-byte identity before exiting (assert pre_sha256 == post_sha256).
2. Multi-Partite Property Graph Schema (6 Node Types & 8 Typed Edge Relations)
The Encyclopedia's 282 unique headwords (291 volume placements), 9 Ontological Divisions, 22 PDF Volumes, 9 Ranked ETI Assemblage Builds, 189 verified 333 / 666 / 777 equations, and 60+ Base-36 AQ coordinate rings map onto a typed multi-partite property graph (~365 nodes, ~1,480 edges):
2.1 Node Ontology (6 Node Classes)
| Node Class | Est. Count | Visual Encoding (Shape / Color / Size) | Core Node Properties (data Payload) |
|---|---|---|---|
OntologicalDivision |
9 |
Compound Parent Bounding Box (#1E2026 dark frame) |
div_id (00..08), div_title, description, volume_count |
EncyclopediaVolume |
22 |
Rounded Hexagon (#8B1A1A Crimson accent) |
volume_number, slug, title, pdf_path, host_file_url, page_count, article_count |
TaxonAssemblageBuild |
9 |
Large Octagon sized by ETI (49–93), colored by Tier (#FF4D4D S+ down to #7FBFFF D) |
rank (#1..#9), tier_Band (S+..D), eti_score, roster_slot, double_articulated, stats_6 (ARM, VEL, COL, CAP, PRM, RES), gen0_var_collapsed |
ConceptualOperatorOrIdiom |
92 |
Diamond (#E6A800 Gold for Operators, #7FBFFF for Stakeholder Idioms) |
term, category, definition, eng_aq, ing, ing_aq, delta, isometric, volume_pdf |
BilingualLexicalSpecimen |
190 |
Circle sized by ring degree, colored by primary guild (S1–S6, M1–M7+) |
eng, eng_aq, eng_prime_rank, ing, ing_aq, ing_prime_rank, delta, isometric, twin_prime, g3_quantized_step, classes, sample_equations |
AQCoordinateHub |
~45 |
Star / Bullseye Hub (#7FFF7F Mint for Primes, #FFBF7F Amber for Powers/Cubes 81, 125, 128, 256, #FF4D4D for 333/666/777) |
aq_value (71..390, 333/666/777), factorization, prime_rank, gen0_variance_collapsed, is_flex_pivot (13 multi-build coordinates) |
2.2 Edge Ontology (8 Typed Mathematical & Structural Relations)
Edge Type (relation) |
Direction | Est. Count | Visual Encoding & Mathematical Semantics |
|---|---|---|---|
IN_VOLUME / IN_DIVISION |
Directed (Article -> Vol -> Div) |
313 |
Structural containment hierarchy matching the encyclopedia/00..08-*/ directory tree |
G1_COLLAPSES_TO_ING_AQ |
Directed (Specimen -> AQHub) |
282 |
Solid cyan edge (width proportional to log(1 + Gen0_Var_Collapsed)), labeled with Δ = ing_aq - eng_aq |
GEN0_WRITTEN_COLLISION |
Undirected (Specimen <-> Specimen) |
~110 |
Dashed silver edge linking terms that share AQ_Eng prior to phonetic translation (e.g., corporation == supply chain = 243) |
G2_CROSS_GEN_TWIN |
Directed (Gen0_Term -> Gen1_Term) |
~95 |
Magenta curved arrow where AQ_Eng(A) == AQ_Ing(B) (e.g., Dario Amodei [193] -> anthropik [193], asset management [292] -> abstrakt masheen [292]) |
G4_ISOMETRIC_INVARIANT |
Self-Loop / Gold Halo (Δ = 0) |
24 |
Heavy gold double-border around immovable chokepoints (ASML=81, TSMC=91, GPU=71, kapatal=125, charter=136, kansorsheeam=237, transformer=246, nacheral kontrakt=316) |
G5_TWIN_PRIME_MUTATION |
Directed (Prime_A -> Prime_B) |
14 |
Violet lightning edge connecting Gen 0 prime to Gen 1 prime (Nvidia 113 -> envideea 137, monopoly 197 -> manopalee 163, reported 173 -> reeportid 191) |
TROPHIC_GUILD_BRIDGE |
Directed (Build_A -> Coord -> Build_B) |
38 |
Thick crimson/amber food-web artery across the 13 Multi-Build Hybrid Flex Singularities (292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 81/91) |
CLOSES_REPDIGIT_EQ |
Directed (Specimen -> 333/666/777) |
~600 |
Dotted green/gold hyperedge linking constituent words to their verified 333, 666, or 777 dossier equation |
3. Open-Source Tooling Stack (100% FOSS, Offline-First & Multi-Target Export)
Rather than locking the knowledge graph into a single heavy server database, the planned pipeline uses a modular, zero-cost open-source stack that generates four interoperable targets from one Python script:
| Layer / Target | Open-Source Tool / Library | License | Role in the Encyclopedia Knowledge Graph |
|---|---|---|---|
| 1. Graph Compiler & Network Analytics | Python 3.10+ & NetworkX (networkx) |
BSD-3-Clause | Builds the multi-di-graph from taxonomy/*.json and encyclopedia/*.json, computes node degree, PageRank, eigenvector centrality, and betweenness centrality (mathematically proving that the 13 Flex Coordinates have the highest betweenness centrality across S1–S6), and exports JSON/GraphML/GEXF. |
| 2. Interactive Browser Workbench | Cytoscape.js + cytoscape-fcose / dagre (or Sigma.js + Graphology) |
MIT | Single-file/local static HTML5 canvas/WebGL workbench (knowledge-graph/index.html) requiring zero backend server (python3 -m http.server or direct file:// open). Supports compound folder nodes, multi-layout animations, edge-type toggles, and instant search. |
| 3. Desktop Network Science Export | GraphML & GEXF (for Gephi / yEd / Cytoscape Desktop) | GPLv3 / LGPL | Exports encyclopedia-graph.graphml and encyclopedia-graph.gexf with pre-computed (x, y) coordinates, RGB node colors, and edge weights so researchers can open the full network in Gephi or Cytoscape Desktop. |
| 4. Markdown / Obsidian Graph View & JSON Canvas | JSON Canvas (1.0 Spec) + [[wikilink]] Markdown Vault |
MIT / Open Spec | Generates knowledge-graph/encyclopedia.canvas and an optional interlinked [[wikilink]] mirror compatible with Obsidian's native Graph View and llm-wiki conventions. |
4. Planned Interactive Workbench Features (knowledge-graph/index.html)
- Five Interactive Layout Modes (One-Click Toolbar Switcher):
- Mode 1 — Trophic Food-Web Layout (
fCoSE/ Force-Directed): ClustersS1–S6andM1–M7+guilds organically around sharedAQCoordinateHubstars (292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 81/91). - Mode 2 — Concentric
ETITier-Ring Radar (S+Center ->DPeriphery): PlacesTier S+Apex Predators (#1 S1 AI [93 ETI],#2 S2 Liquidity [90 ETI]) in the bullseye ring, surrounded concentrically byTier SKeystone Guilds (#3 S6 Capture [87],#4 S3 EUV [83]),Tier ASymbionts (#5 M1 Vampiric [73]),Tier BNomads (#6 S5 BwO [61],#7 S4 Carrier-Wave [61]),Tier CNucleation Stubs (#8 M6 Zeptoverse [53]&M7_candidate_2026_11_28), andTier DEpisodic Anchors (#9 Q-Stub [49]). - Mode 3 — Bipartite Variance-Collapse Funnel (
Gen 0 Left Column -> Δ Edges -> Gen 1 Right Column): Visualizes VectorG1directly by placing dispersedGen 0written English values on the left and showing their directedΔedges converging onto single zero-varianceGen 1Ingglish nodes on the right. - Mode 4 — Ontological Folder Hierarchy (
Compound Nodes 00–08): Groups all291article nodes inside expandable/collapsible compound boxes matching the9Encyclopedia divisions (00-index-and-ontological-atlasthrough08-stakeholder-registers-idioms-and-pokedex-semiotics) and22PDF volumes. - Mode 5 — 13-Flex-Pivot & Ego-Network Subgraph Isolator: Clicking any coordinate hub (e.g.,
129,125,137,193,256,292) isolates its 1-hop and 2-hop neighborhood acrossGen 0,Gen 1,G2Cross-Gen Twins, and333/666/777equations.
- Mode 1 — Trophic Food-Web Layout (
- Right-Hand Encyclopedia Article Inspector & Direct PDF Launcher:
- Clicking any node opens a slide-out inspector displaying the full 7-field Encyclopedia Article (
Gen 0&Gen 1AQ,Δ, Prime/Isometric/Twin-Prime badges,G1variance collapsed,6-Stat ETIradar bar, verified333/666/777equations, and a clickable button that opens the exact Encyclopedia Volume.pdf!).
- Clicking any node opens a slide-out inspector displaying the full 7-field Encyclopedia Article (
- Live Filter & Search Bar:
- Instant filter by headword substring, Ingglish spelling, exact integer
AQvalue (e.g., 125or193), Division (00–08), Guild (S1–S6,M1–M7+), or Structural Flag (Isometric Δ=0 Only,Twin-Prime Only,G3 Quantized Step Only,13 Flex Pivots Only).
- Instant filter by headword substring, Ingglish spelling, exact integer
5. Phased Execution Roadmap (Upon Approval to Implement)
- Phase 1 (Read-Only Graph Extractor & NetworkX Analytics —
scripts/build_encyclopedia_knowledge_graph.py): Ingest the existing JSON registries in read-only mode, build the 6-class node set and 8-relation edge set, compute betweenness/PageRank centralities, verifysha256(taxonomy/glossary-registry.json)is unchanged, and emitencyclopedia-graph.json,encyclopedia-graph.graphml,encyclopedia-graph.gexf, andencyclopedia.canvas. - Phase 2 (Interactive Dark-Mode Cytoscape.js Workbench —
knowledge-graph/index.html): Build the self-contained HTML5/JS/CSS interactive application with the 5 layout modes, edge-relation toggles,AQcalculator search bar, and slide-out Encyclopedia PDF inspector. - Phase 3 (Headless Browser Verification & High-Resolution Graph Atlas Snapshots):
Render and inspect all 5 layout views via headless browser /
vision_analyzeto verify zero label clipping and clean interactive responsiveness.