# PLAN: Global `[A-Z][0-9]` Shorthand Disambiguation (`.`) Across Documentation & Comments (`PLAN #68`) **Document ID:** `PLAN-HUMAN-TEXT-AND-COMMENT-SHORTHAND-DISAMBIGUATION` **Status:** `ACTIVE (docs/plans/active/)` **Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.0`) **Target Repositories:** All `6` repositories (`hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `technocapital-singularity-zoology`, `encyclopedia-knowledge-graph`, `haiperdohp-jemaytreeah`, `hyperdope-ci-build`) **Scope:** **All human-read documentation, comments, and prose tracked anywhere in the repositories. Executable code is globally exempt so software functionality is 100% unimpacted.** **Author:** m00t & Hermes Agent **Date:** 2026-12-01 --- ## 1. Objective & Strict Code-Exemption Invariant Across the `6` `hyperstitionstud.io` repositories, bare `[A-Z][0-9]{1,2}` shorthands (`G0..G8`, `M0..M7`, `S1..S7`, `E0..E5`, `D0..D8`, `P1..P6`, `R1..R6`) overlap across independent subsystems (`RULE-G01.COLLAPSE` vs. `PLAN-GATE-G01.EXTANT_DATA` vs. `GEN-01.INGGLISH` vs. `ATLAS-G01.QUANT`; `CLASS-M01.ENTROPIC` vs. `UNIT-M01.BASE36_AQ` vs. `LEARN-M01.CABBALA` vs. `FRED M1/M2`; `CLASS-S01.SILICON` vs. `STYLE-GATE-S01.NO_SLATE_BG`; `DEPLOY-GATE-D01.MIRROR_PARITY` vs. `DOSE-D01.SINGLE_LOCK`; `REGIME-R01.BULL` vs. `RING-R01.AST_WHITELIST`). ### Hard Boundary: Human-Read Text & Comments vs. Executable Code 1. **In Scope (Human-Read Text & Comments Only):** - Markdown documentation (`README.md`, `docs/*.md`, active/piecewise plans, operator's manuals, `00-index-and-methodology.md`, proposals) and compiled Dark-Mode PDFs (`.pdf`). - Non-executable source comments (`# ...` in `.py`/`.sh`/`.toml`/`.yaml`, `// ...` and `/* ... */` in `.js`/`.mjs`/`.css`, `` in `.html`/`.svg`). - Non-functional standalone module/file header docstrings (when **not** inspected at runtime or asserted by tests) and purely visual diagram labels (`.svg` ``, atlas/mockup captions). 2. **Globally Exempt (Zero Software Functionality Impact):** - **All executable code and machine-parsed identifiers:** variable/function/class/constant names, imports, expressions, control flow, CLI flags, HTTP routes, JSON/TOML keys, schema enums, CSS selectors/classes, HTML element IDs, and regexes. - **All runtime-consumed string literals & test assertions:** strings compared by `tests/test_core_suite.py`, `public_regression.py`, `deploy_scripts_sync.py`, `MCP_TOOLS_SCHEMA` descriptions/arguments, `ReadOnlyIsolationGuard` SHA-256-locked source files (`glossary-registry.json`, `encyclopedia-manifest.json`), and historical cold `.tar.gz` archives. - **Ast-Equivalence Guarantee:** Every `.py` file modified only in comments must pass an exact Python `ast.dump(ast.parse(before)) == ast.dump(ast.parse(after))` parity check (excluding purely cosmetic comment tokens) — guaranteeing **zero behavioral or functional change**. --- ## 2. Canonical Disambiguation Standard (`.`) Whenever considering `[A-Z][0-9]` shorthand in documentation, comments, or the like across any of the `6` repositories, apply `.`: | Subsystem / Category | Legacy Bare Form | Canonical Disambiguated Form (`.`) | | :--- | :--- | :--- | | **Architecture Atlas Tool Groups** | `G1..G8` | `G01.QUANT`, `G02.CALC_CI`, `G03.GRAPH`, `G04.ZOOLOGY`, `G05.ARCHIVE`, `G06.ENG_MATH`, `G07.PORTAL_LEARN`, `G08.MCP_DEPLOY` | | **Orthographic Generations** | `G0`, `G1` | `GEN-00.ENGLISH`, `GEN-01.INGGLISH` *(or `Gen 0 (GEN-00.ENGLISH)`)* | | **Cipher & Phonemic Rules** | `G1..G5` | `RULE-G01.COLLAPSE`, `RULE-G02.CROSS_GEN_TWIN`, `RULE-G03.STRUCTURAL`, `RULE-G04.ISOMETRIC`, `RULE-G05.TWIN_PRIME` | | **Engineering Plan Binary Gates** | `G1..G4` | `PLAN-GATE-G01.EXTANT_DATA`, `PLAN-GATE-G02.ZERO_LLM`, `PLAN-GATE-G03.EROFS_SAFE`, `PLAN-GATE-G04.EXPORTABLE` | | **Deploy Script Gates** | `D1..D8` | `DEPLOY-GATE-D01.MIRROR_PARITY` .. `DEPLOY-GATE-D08.PRE_COMMIT_STAGE` | | **Public Smoke Gates** | `P1..P6` | `SMOKE-GATE-P01.STATIC_ROUTES` .. `SMOKE-GATE-P06.NAV_STYLE_PARITY` | | **Style & Mobile Regression Gates** | `S1..S4` | `STYLE-GATE-S01.NO_SLATE_BG`, `STYLE-GATE-S02.DEJAVU_FONT`, `STYLE-GATE-S03.HEADER_PARITY`, `STYLE-GATE-S04.MOBILE_UI` | | **Engineering Hub Units** | `E0..E5` | `UNIT-E00.HUB`, `UNIT-E01.CIPHERS`, `UNIT-E02.GRAPH_SQLITE`, `UNIT-E03.QUANT_BRIEF`, `UNIT-E04.MCP_REST_IPLD`, `UNIT-E05.CICD_VPS` | | **Applied Math Hub Units** | `M0..M5` | `UNIT-M00.HUB`, `UNIT-M01.BASE36_AQ`, `UNIT-M02.PHONETICS_ENTROPY`, `UNIT-M03.GRAPH_SPECTRAL`, `UNIT-M04.Z_CALCULUS`, `UNIT-M05.MACRO_BAYESIAN` | | **`/learn/` Track Folios** | `M01..M06` | `LEARN-M01.CABBALA`, `LEARN-M02.PARASITE`, `LEARN-M03.SERIES`, `LEARN-M04.STRATA`, `LEARN-M05.RHIZOME`, `LEARN-M06.GEOMANCY` | | **Singularity & Memetic Classes** | `S1..S6`, `M1..M7+` | `CLASS-S01.SILICON` .. `CLASS-S06.AGI`; `CLASS-M01.ENTROPIC` .. `CLASS-M07.HYPERSTITIONAL` *(paired `S1 (CLASS-S01.SILICON)` near locked JSON keys)* | | **Confluence Dose & Regimes** | `D0..D4`, `R1..R3` | `DOSE-D00.NONE` .. `DOSE-D04.FULL_LOCK`; `REGIME-R01.BULL`, `REGIME-R02.PINNED_ISOMETRIC`, `REGIME-R03.TAIL_DRAWDOWN` | | **Polyglot Sandbox Security Rings** | `R1..R4` | `RING-R01.AST_WHITELIST`, `RING-R02.ZERO_EVAL`, `RING-R03.BOUNDED_FUEL`, `RING-R04.PURE_SUBSET` | - **DOM/CSS Safety:** Keep HTML/CSS anchors lowercase hyphenated (`#g01-quant`, `#unit-e03-quant-brief`) so `.` never breaks CSS selectors. - **Explicit Non-Shorthand Allowlist:** `H1/H2/H3` (HTTP), `V8` (Yahoo API), `FRED M1/M2` (monetary aggregates), `P20/P50/P90` (percentiles), `UTF-8`, `CIDv1`, `SHA-256`, `H01..H39` (harvest keys), `EUV`, `AI`. --- ## 3. Tokenizer-Based Scope Separation & 6-Repository Rollout 1. **Repository Policy Standard (`hyperstitionstudio-core/docs/SHORTHAND-DISAMBIGUATION-STANDARD.md`):** - Documents the canonical `.` table, the **Global Executable Code Exemption**, and the `ast.dump` invariance guarantee under Git source control. 2. **Comment/Doc-Only Audit Helper (`src/hyperstitionstud_io/ci/shorthand_lint.py`, CLI `hs-shorthand-lint`):** - **Strict Code Exemption via Real Lexers (`0` Regex False Positives on Code):** - **Python (`.py`):** Uses `stdlib tokenize.generate_tokens` and checks **only `tokenize.COMMENT` tokens** (`# ...`). All code tokens (`NAME`, `STRING`, `OP`, `NUMBER`, runtime docstrings) are skipped completely. - **JS / CSS / Shell / HTML:** Extracts **only** comment blocks (`//`, `/*...*/`, `# ...`, ``) and skips all executable code, strings, and `