# PLAN: Comprehensive Root-Cause Resolution of All Namespace & Path Discrepancies Between Localhost & VPS (`PLAN #71`) **Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION` **Status:** `ACTIVE (docs/plans/active/)` **Target Ecosystem Version:** `v2.17.2` (Baseline: `v2.17.1`) **Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph` **Author:** m00t & Hermes Agent **Date:** 2026-12-02 --- ## 1. Context & Scope of Discrepancies ### Ecosystem-Wide Namespace & Path Discrepancies Beyond the CI repository naming divergence (`hyperdope-ci-build` ↔ `ingglish-hyperdope-ci`), subtle namespace and path discrepancies can occur across environments due to: 1. **Repository Naming Aliases**: Alternative folder clones for the CI artifact generator. 2. **Configuration Synchronization**: Decoupled `workspace.toml` (untracked) vs `workspace.example.toml` (template), requiring programmatic schema version synchronization. 3. **Host Path Leakage**: Absolute container host path references breaking offline URN invariants (`test_offline_urn_namespaces_and_no_external_https_fonts`). 4. **Persistent Source vs. Tmpfs RAM Webroot**: Divergence between persistent source checkouts (`REPOS_ROOT`) and RAM-backed webroots (`LIVE_REPOS` at `/var/www/hyperstitionstud.io/repos`). ### Architectural Goal Establish a **comprehensive single-source-of-truth namespace standardization framework** that resolves all path, directory, and configuration discrepancies at the root across local development and production VPS environments. --- ## 2. Technical Implementation Specifications ### 1. Complete CI Repository Standardization (`hyperdope-ci-build`) Eliminate `ingglish-hyperdope-ci` entirely across Gitea remotes, clone guides (`README.md`), deployment scripts (`sync-vps-repos.sh`), and configuration accessors (`config/__init__.py`), enforcing `hyperdope-ci-build` as the sole canonical repository key. ### 2. Strict Workspace Configuration & Schema Parity (`workspace.toml`) Enforce programmatic `schema_version` synchronization between `hyperstitionstud_io.__version__` and `workspace.toml` during version bumps and deployments, ensuring configuration keys never drift. ### 3. Container-Relative URN & Path Normalization (`normalize_workspace_relpath`) Ensure all configuration paths, IPLD DAG CIDs, and metadata registries utilize container-relative `/workspace/...` or `/srv/hyperstitionstud.io/repos/...` representations, backed by `ReadOnlyIsolationGuard` and `test_offline_urn_namespaces_and_no_external_https_fonts`. --- ## 3. Verification & Preservation Assurances 1. **8-Gate Deployment Readiness**: Verified via `hs-deploy-scripts-sync` (`D1`–`D8`). 2. **Full Test Suite Enforcement**: Verified via `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`). 3. **AST Invariance**: Guaranteed zero behavioral or functional changes to executable code.