diff --git a/directory-structure-discrepancy-resolution-and-verification.md b/directory-structure-discrepancy-resolution-and-verification.md new file mode 100644 index 0000000..f30759b --- /dev/null +++ b/directory-structure-discrepancy-resolution-and-verification.md @@ -0,0 +1,130 @@ +# Directory Structure & Skill Program Discrepancy Resolution: Planning, Execution & Dry-Run Verification Report + +- **Date:** November 3, 2026 (`2026-11-03 UTC`) +- **Target Workspace:** `/workspace` (`/home/m00t/hermes/workspace` on host) +- **Peer Sibling Repositories Audited:** + 1. `/workspace/ingglish-hyperdope-gematria` (`origin: ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-gematria.git`, branch `testing`) + 2. `/workspace/hyperdope-ci-build` (`origin: ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-ci.git`, branch `feat/ingglish-aq-corpus`) + 3. `/workspace/hyperdope-gematria` (`origin: https://github.com/malonehunter/hyperdope-gematria.git`, branch `feat/ingglish-priority-toggle`) +- **Creative Ingglish AQ Skill Suite Audited (8 Skills):** `phonetic-and-gematria-ciphers`, `hyperdope-ingglish-ci`, `bidirectional-aq-evaluation`, `aq-tier-list-visualizer`, `current-events-isopsephic-exegesis`, `isopsephic-humor-and-exegesis`, `isopsephic-lecture-synthesis`, `isopsephic-wire-report-synthesis` (plus `pdf`). + +--- + +## Executive Summary & Summary Table of the 6 Discrepancies + +An end-to-end structural and functional audit of `/workspace` and the 8-skill Ingglish Alphanumeric Qabbala (AQ) suite confirmed that the three peer sibling Git repositories, the 38 core archive Markdown files, and all 767 canonical Base-36 AQ equations were arithmetically exact (`0` sum mismatches). However, initial dry-run testing uncovered **six structural and path-resolution discrepancies** left over from separating the single `/workspace` directory into three peer sibling repositories and isolating the container mount boundary. All six discrepancies were systematically planned, executed, and verified via non-destructive dry runs. + +| # | Discrepancy Subject | Root Cause Identified | Resolution Executed | Dry-Run Verification Outcome | +| :--- | :--- | :--- | :--- | :--- | +| **1** | **Container SELinux / DAC Boundary & Missing Skill Scripts** | `/root/.hermes/skills` is unreadable (`Errno 13`) inside the container; `evaluate_aq.mjs`, `generate_aq_tier_list.py`, `pdf_create.py`, and `pdf_read.py` were missing from `ingglish-aq-archive/scripts/`. | Provisioned all 4 missing scripts (`0755`) in `ingglish-aq-archive/scripts/` with `reportlab`/`pypdf`/`pdfplumber` auto-bootstrap; unified all host skill wrappers via `skill_manage`. | **7 / 7 dry runs passed (`Exit 0`)** from `cwd=/root` (`evaluate_aq.mjs` Modes A/B/C, `generate_aq_tier_list.py`, `pdf_create.py`, `pdf_read.py --meta`). | +| **2** | **Out-of-Sync Scripts & Incomplete Skills in `packaging/`** | `packaging/bundle/scripts/` had stale pre-separation scripts (`16` CI entries instead of `872`; `collect_news_aq.py` failed with `ERR_MODULE_NOT_FOUND`); `bundle/skills/` had only 3 stub folders. | Added dual-path fallback to `ci_provision_ingglish.py` & `collect_news_aq.py`; synced all 8 scripts and full `SKILL.md` + `references/` for all 8 skills into `packaging/bundle/`; updated `install.sh` & `Containerfile.ubi9`; rebuilt `.tar.gz` and `.tar.xz`. | **3 / 3 dry runs passed (`Exit 0`)**: `ci_provision_ingglish.py` (`872` entries, `100%` pass), `collect_news_aq.py` (`48` headlines), and `install.sh` staging install (`8` skills, `8` scripts). | +| **3** | **Stale Paths in `reconstruct_option4_curve.py` & Manifest** | `reconstruct_option4_curve.py` and all 14 entries in `option-4-curve-migration-manifest.json` hardcoded `/workspace/...`, raising `FileNotFoundError`. | Updated all 14 manifest paths and `reconstruct_option4_curve.py` (plus `README-option-4-migration.md`) to `/workspace/ingglish-hyperdope-gematria/...` and updated `00-index-and-methodology.md` hunk hashes. | **3 / 3 dry runs passed (`Exit 0`)**: `--status` (`14/14 OPTION-4`), `--to-pre-curve --dry-run` (`14/14 pre_sha256` verified), and `--to-option-4 --dry-run` (`14/14 post_sha256` verified). | +| **4** | **Stale Pre-Separation Paths in `SKILL.md` Documentation** | Several `SKILL.md` and `references/*.md` files still referenced `/workspace/ingglish-aq-archive`, `/workspace/.gitignore`, or `cwd=/workspace`. | Patched all 8 creative AQ skills via `skill_manage` to use `/workspace/ingglish-hyperdope-gematria/...` paths and resynchronized the packaging tarballs. | **6 / 6 documented CLI dry runs passed (`Exit 0`)** across all patched skills (`node -e import("ingglish")`, `manage_lecture_artifacts.py --verify-pair`, etc.). | +| **5** | **Archive File Hygiene, Root Duplicates & Missing Eval 47** | Duplicate `top-10-landian-outsideness-movies-compendium.pdf` inside `ingglish-aq-archive/`; duplicate root dossiers `25` & `46`; missing bidirectional evaluation for Dossier `46`. | Removed the 3 verified duplicates; created `47-eval-news-2026-11-02-bidirectional.{md,pdf}` (`97/100 Class S+`); registered in `00-index` & manifest; rebuilt 17-dossier tier list (`.md`, `.pdf`, `.png`). | **All checks passed (`Exit 0`)**: `0` non-joke PDFs inside `ingglish-aq-archive/`; all `17` dossiers paired with `17` evaluations (`537` dossier equations); `767/767` total archive equations verified. | +| **6** | **Uncommitted Working Tree State in `ingglish-hyperdope-gematria`** | `83` modified/deleted/untracked files remained uncommitted on branch `testing` after repo separation and artifact generation. | Audited `.gitignore` (`lecture-*-ingglish-aq.mp3` ignored), dry-ran `git add -A -n`, and committed all 83 changes cleanly on branch `testing`. | **3 / 3 peer repos verified clean (`git status -sb`)** with `0` modified or untracked files. | + +--- + +## Detailed Discrepancy Reports (Planning, Execution & Verification) + +### Discrepancy 1: Container SELinux / DAC Permission Boundary & Skill Script Parity + +1. **Initial Finding & Dry-Run Diagnosis:** + - Inside the Podman sandbox, `/root` and `/root/.hermes/skills` are mounted from the host without container read/traverse permissions (`ls: cannot open directory '/root/.hermes/skills': Permission denied`). + - Meanwhile, `bidirectional-aq-evaluation/SKILL.md` instructed running `node /root/.hermes/skills/creative/bidirectional-aq-evaluation/scripts/evaluate_aq.mjs`, `isopsephic-humor-and-exegesis/SKILL.md` instructed running `/root/.hermes/skills/productivity/pdf/scripts/pdf_create.py`, `aq-tier-list-visualizer/scripts/generate_aq_tier_list.py` was absent from `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/`, and the host skill copy of `hyperdope-ingglish-ci/scripts/ci_provision_ingglish.py` was a stale 51,258-byte file rather than an `os.execv` wrapper. +2. **Plan:** + - Provision `evaluate_aq.mjs`, `generate_aq_tier_list.py`, `pdf_create.py`, and `pdf_read.py` directly inside `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/` (which carries `container_file_t` SELinux labels and full `rw` access). + - Add automatic `reportlab`, `pypdf`, and `pdfplumber` installation fallback into the PDF-generating scripts so fresh container sessions never fail on `ModuleNotFoundError`. + - Convert all host skill scripts into uniform dual-path entrypoint wrappers resolving `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/