# Cross-Repository Dependency Graph & Auditable `BUILD -> TEST -> STAGE_COMMIT` Pipeline (`v1.0.0`) - **Interactive HTML/SVG Diagram:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`) - **High-Resolution PNG Flow Diagram (`1600x1120`):** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png`) - **Companion Printable PDF:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf`) --- ## 1. Visual Dependency Topology Across the Three Repositories ```text +========================================================================================================================+ | TIER 1 (UPSTREAM RUNTIME & ARCHIVE): /workspace/ingglish-hyperdope-gematria (branch: main) | | | | [node_modules/ingglish] [ingglish-aq-archive/*.md] [Shared Renderers (ingglish-aq-archive/scripts)]| | CMUdict G2P Engine • 01..64 Canonical Dossiers • generate_aq_tier_list.py (--rows-json) | | Gen 0 English -> Gen 1 Ingglish • 65..69 Zoology Dossiers (Synced) • build_wire_report_pdf.py (ReportLab .md->.pdf)| | | • 70-dossier-news-2026-11-28.md • ci_provision_ingglish.py (4-Gate CI) | +----------|--------------------------------------|--------------------------------------|--------------------+----------+ | | ^ | | (1) --workdir | (2) Bidirectional Sync | (3) Subprocess | (4) Manual | (batch_translate) | of 65..69-dossier-*.md | --rows-json | PDF v v | & .md->.pdf | Build +=============================================================================================================|==========+ | TIER 2 (DOMAIN TAXONOMY & ENCYCLOPEDIA): /workspace/technocapital-singularity-zoology (branch: main, tag: v1.7.0) | | | | | [scripts/classify_technocapital_singularity.py (v1.7.0) + scripts/sources.py] ---------------------------->+ | | | | | | | | +---> [Core Taxonomy JSONs] +---> [Locked Glossary & Citations] +---> [22-Volume Encyclopedia] | | | • singularity-zoology (v1.2) • glossary-registry (v1.6.0) • encyclopedia-manifest | | | • quantitative-anchors (v1.3) 282 Entries (SHA Locked) (v1.7.0, SHA Locked) | | | • memetic-superclass (v1.4) • citations-ledger-common • 9 Divisions (00..08) | | | • assemblage-tier-list (v2.0) • citations-ledger-english • 22 PDFs (122 Pages) | | +=====================================================|========================================|==============|==========+ | ^ | ================================================+========================================|==============|===== STRICT READ-ONLY INGESTION BOUNDARY (open("r") via --upstream-repo) | | PRE/POST SHA-256 LOCK ON glossary-registry.json & encyclopedia-manifest.json | (5) Relative | ZERO KNOWLEDGE-GRAPH OR PODCAST CONCEPTS PERMITTED IN UPSTREAM GLOSSARY | PDF Link | ================================================+========================================|==============|===== | | | v | v +========================================================================================================================+ | TIER 3 (DOWNSTREAM KNOWLEDGE GRAPH): /workspace/encyclopedia-knowledge-graph (branch: main, tag: v1.0.0) | | | | [scripts/build_encyclopedia_knowledge_graph.py] ---> [4 Open-Source Exports] ---> [Interactive Workbench & Docs] | | • --upstream-repo (Read-Only) • encyclopedia-graph.json • index.html + graph-data.js | | • --out-dir (Staging / Prod) • encyclopedia-graph.graphml • 388 Nodes, 1,282 Unique Edges| | • --check-isolation (SHA-256) • encyclopedia-graph.gexf • atlas-mode{1,2,3}.png | | • --verify-only (6-Gate Suite) • encyclopedia.canvas (282/1120) • OPERATORS-MANUAL.{md,pdf} | | • --query-node (1-Hop Ego CLI) • push-to-origin.sh | +========================================================================================================================+ ``` --- ## 2. Auditable Three-Stage `BUILD -> TEST -> STAGE_COMMIT` Execution Protocol ### Stage 1: `/workspace/ingglish-hyperdope-gematria` (Upstream Runtime & Archive) 1. **`BUILD`:** Synchronize shared canonical dossiers (`65..69-dossier-*.md`) and daily `00:00 GMT` wire harvests (`news-aq-harvest-latest.json`). 2. **`TEST` (4-Gate CI Provisioning Audit):** ```bash python3 /workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py \ --archive-dir /workspace/ingglish-hyperdope-gematria/ingglish-aq-archive \ --repo-dir /workspace/hyperdope-ci-build \ --out-dir /workspace/hyperdope-ci-build \ --tier 2 --apply-repo ``` Verify `"all_gates_passed": true` and `"dropped_count": 0` in `/workspace/hyperdope-ci-build/ci-audit-report.json`. 3. **`STAGE_COMMIT`:** ```bash cd /workspace/ingglish-hyperdope-gematria && git add ingglish-aq-archive/ && git commit -m "chore(archive): sync verified dossiers" && git status -s -b ``` ### Stage 2: `/workspace/technocapital-singularity-zoology` (`v1.7.0` Domain Taxonomy, Glossary & Encyclopedia) 1. **`BUILD`:** ```bash python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --build-tier-list python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --sync-glossary python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --build-encyclopedia ``` 2. **`TEST` (Domain, Provenance & SHA-256 Lock Audit):** - Verify `0` references to the 10-letter `d` decagram across `/workspace/technocapital-singularity-zoology`. - Verify `0` podcast or knowledge-graph meta-terms in `taxonomy/glossary-registry.json` (`282` entries) and `encyclopedia/` (`22` PDFs, `122` pages). - Verify citation ledgers via `python3 /workspace/technocapital-singularity-zoology/scripts/sources.py verify --evidence`. - Record cryptographic baseline digests: - `SHA-256(taxonomy/glossary-registry.json) == 7564ef40fb3e0e18d1d8547522db431b6a369c40139713b573df6e58b972d43d` - `SHA-256(encyclopedia/encyclopedia-manifest.json) == 0d7ce833bb0aa0eea069bf764b2e3b0b36ac2631821c42f3d6bcb897335f8a7d` 3. **`STAGE_COMMIT`:** ```bash cd /workspace/technocapital-singularity-zoology && git add -A && git commit -m "feat(zoology): sync domain registries and encyclopedia (v1.7.0)" && git tag -f v1.7.0 && git status -s -b ``` ### Stage 3: `/workspace/encyclopedia-knowledge-graph` (`v1.0.0` Read-Only Graph Compiler & Workbench) 1. **`BUILD` (Staging Dry-Run -> Production Build):** ```bash # Optional non-destructive staging dry-run: python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --out-dir /tmp/kg-staging # Production build into /workspace/encyclopedia-knowledge-graph: python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py ``` 2. **`TEST` (6-Gate Knowledge Graph & Isolation Verification Suite):** ```bash python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only ``` Verify `"all_gates_passed": true`: - `gate1_glossary_sha256_unchanged: true` (`7564ef40fb3e...`) - `gate2_encyclopedia_sha256_unchanged: true` (`0d7ce833bb0a...`) - `gate3_json_schema_counts: {"nodes": 388, "edges": 1282}` (`0` duplicate parallel edges) - `gate4_xml_well_formed: true` (`.graphml` and `.gexf` parsed via `xml.etree.ElementTree`) - `gate5_obsidian_canvas_counts: {"canvas_nodes": 282, "canvas_edges": 1120}` - `gate6_atlas_pngs: true` (all 3 `atlas-mode{1,2,3}.png` verified `1600x1060` RGB) 3. **`STAGE_COMMIT` & Remote Push:** ```bash cd /workspace/encyclopedia-knowledge-graph && git add -A && git commit -m "feat(graph): rebuild and verify knowledge graph artifacts (v1.0.0)" && git tag -f v1.0.0 && git status -s -b # Push to remote origin (automatically re-runs --verify-only before git push): /workspace/encyclopedia-knowledge-graph/push-to-origin.sh ```