Revise PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION for true single-name standardization and recompile PDF

This commit is contained in:
Hermes Agent committed 2026-12-02 09:49:02 +00:00
1 parent a16957da62
commit 42cc4cb430
2 files changed
+10 -17

No files matched your search

@@ -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` **Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION`
**Status:** `ACTIVE (docs/plans/active/)` **Status:** `ACTIVE (docs/plans/active/)`
@@ -11,31 +11,24 @@
## 1. Context & Problem Statement ## 1. Context & Problem Statement
### Problems Solved (Root Cause vs. Workaround) ### The Flaw of Symlinking/Aliasing
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). 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.
While effective at preventing immediate harvest failures, these workarounds leave the underlying namespace inconsistency unresolved, permitting divergent repository directory naming across deployment environments.
### Architectural Goal ### 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 ## 2. Technical Implementation Specifications
### 1. Automated Repository Normalization in `deploy/sync-vps-repos.sh` ### 1. Single Canonical Naming Across All Remotes & Tooling
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: 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`.
```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
```
### 2. Strict Canonical Path Enforcements in `config/__init__.py` ### 2. Removal of Legacy Aliases from Path Resolution (`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. 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`) ### 3. Upstream Remote & Gitea Synchronization
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. 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).
--- ---