diff --git a/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md index 027d4f6..81afec2 100644 --- a/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md +++ b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md @@ -1,4 +1,4 @@ -# PLAN: Root-Cause Resolution of Filesystem & Namespace Discrepancies Between Localhost & VPS (`PLAN #71`) +# PLAN: True Root-Cause Resolution of Namespace Discrepancies via Single-Name Standardization (`PLAN #71`) **Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION` **Status:** `ACTIVE (docs/plans/active/)` @@ -11,31 +11,24 @@ ## 1. Context & Problem Statement -### Problems Solved (Root Cause vs. Workaround) -Previously, path discrepancies between dev localhost (`/workspace`) and production VPS (`/srv/hyperstitionstud.io/repos`)—specifically between `hyperdope-ci-build` and `ingglish-hyperdope-ci`—were handled via defensive workarounds (flexible fallbacks in `WorkspaceConfig`, `try/except` guards, and loose filename globbing in test assertions). - -While effective at preventing immediate harvest failures, these workarounds leave the underlying namespace inconsistency unresolved, permitting divergent repository directory naming across deployment environments. +### The Flaw of Symlinking/Aliasing +As correctly noted, relying on symlinking or runtime aliasing between `hyperdope-ci-build` and `ingglish-hyperdope-ci` preserves the underlying naming discrepancy rather than resolving it. Maintaining two separate folder names across environments introduces cognitive overhead, fragile path checks, and structural ambiguity. ### Architectural Goal -**True Root-Cause Resolution**: Eliminate repository naming divergence entirely by standardizing canonical directory naming, automated directory aliasing/symlinking during VPS hydration (`sync-vps-repos.sh`), and strict workspace-wide path invariants that require identical directory structures across localhost and VPS. +**True Root-Cause Elimination**: Eliminate the discrepancy entirely by establishing a **single canonical directory name** (`hyperdope-ci-build`) across local development (`/workspace`), production VPS (`/srv/hyperstitionstud.io/repos`), Gitea remotes, clone documentation, and ecosystem tooling, with zero runtime aliases or symlinks. --- ## 2. Technical Implementation Specifications -### 1. Automated Repository Normalization in `deploy/sync-vps-repos.sh` -Update `sync-vps-repos.sh` to automatically detect and normalize alternative repository clone names (e.g., ensuring `ingglish-hyperdope-ci` is transparently symlinked or aliased to `hyperdope-ci-build` upon checkout on the VPS), guaranteeing identical filesystem paths across environments: -```bash -if [[ -d "${REPOS_ROOT}/ingglish-hyperdope-ci" ]] && [[ ! -e "${REPOS_ROOT}/hyperdope-ci-build" ]]; then - ln -sfn "ingglish-hyperdope-ci" "${REPOS_ROOT}/hyperdope-ci-build" -fi -``` +### 1. Single Canonical Naming Across All Remotes & Tooling +Standardize `hyperdope-ci-build` as the sole canonical repository key across `sync-vps-repos.sh`, `push-all-to-git-libre-audio.sh`, `README.md` onboarding instructions, and `workspace.toml`. -### 2. Strict Canonical Path Enforcements in `config/__init__.py` -Refactor `resolve_workspace_repo_dir()` to enforce strict canonical directory resolution without silent fallback compromises, asserting that expected repository directories exist in their canonical form or establishing deterministic symlinks. +### 2. Removal of Legacy Aliases from Path Resolution (`config/__init__.py`) +Refactor `resolve_workspace_repo_dir()` to drop legacy alias fallbacks for the CI repository, enforcing that the repository folder must exist strictly at `ws_root / "hyperdope-ci-build"`. -### 3. Restoration of Strict Uncompromised Test Assertions (`test_core_suite.py`) -Remove loose globbing and fallback checks from `test_core_suite.py`, replacing them with strict, deterministic assertions (`assert (ci_dir / "patches" / "0001-...").is_file()`) that prove complete filesystem parity between localhost and production VPS. +### 3. Upstream Remote & Gitea Synchronization +Align Gitea remote clone URLs and deployment automation to pull and push exclusively to `hyperdope-ci-build` (`ingglish-hyperdope-ci` is formally deprecated and retired). --- diff --git a/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf index 66a9f5c..f36b2a7 100644 Binary files a/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf and b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf differ