8.8 KiB
PLAN: Global [A-Z][0-9] Shorthand Disambiguation (<PREFIX><NN>.<DOMAIN_TAG>) 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
- 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<text>, atlas/mockup captions).
- Markdown documentation (
- 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_SCHEMAdescriptions/arguments,ReadOnlyIsolationGuardSHA-256-locked source files (glossary-registry.json,encyclopedia-manifest.json), and historical cold.tar.gzarchives. - Ast-Equivalence Guarantee: Every
.pyfile modified only in comments must pass an exact Pythonast.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 (<PREFIX><NN>.<DOMAIN_TAG>)
Whenever considering [A-Z][0-9] shorthand in documentation, comments, or the like across any of the 6 repositories, apply <PREFIX><NN>.<DOMAIN_TAG>:
| Subsystem / Category | Legacy Bare Form | Canonical Disambiguated Form (<PREFIX><NN>.<DOMAIN_TAG>) |
|---|---|---|
| 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
- Repository Policy Standard (
hyperstitionstudio-core/docs/SHORTHAND-DISAMBIGUATION-STANDARD.md):- Documents the canonical
<PREFIX><NN>.<DOMAIN_TAG>table, the Global Executable Code Exemption, and theast.dumpinvariance guarantee under Git source control.
- Documents the canonical
- Comment/Doc-Only Audit Helper (
src/hyperstitionstud_io/ci/shorthand_lint.py, CLIhs-shorthand-lint):- Strict Code Exemption via Real Lexers (
0Regex False Positives on Code):- Python (
.py): Usesstdlib tokenize.generate_tokensand checks onlytokenize.COMMENTtokens (# ...). 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<script>/<style>code bodies. - Markdown (
.md): Checks prose outside fenced code blocks (```...```) and inline backtick code spans (`...`).
- Python (
- Staged-Diff Gate & Ratchet:
.git/hooks/pre-commit(--staged-diff) prevents new bare[A-Z][0-9]tokens in newly authored docs/comments across all6repositories, while--check-alltracks migration progress against.cache/shorthand-legacy-baseline.jsonwith zero runtime impact.
- Strict Code Exemption via Real Lexers (
- Phased 6-Repository Documentation & Comment Migration:
- Phase 1 (
hyperstitionstudio-core): Migrate.py/.sh/.js/.css/.htmlcomments only (ast.dumpunchanged),README.md, and active operator manuals. - Phase 2 (
encyclopedia-knowledge-graph): Migratedocs/plans/active/**,docs/*.md,OPERATORS-MANUAL-*.md,scripts/*.pycomments only, andREADME.md. - Phase 3 (
ingglish-hyperdope-gematria): Migrateingglish-aq-archive/scripts/**&packaging/**comments only,00-index-and-methodology.md,ONBOARDING-INGGLISH-AQ.md, andREADME.md. - Phase 4 (
technocapital-singularity-zoology): Migratescripts/*.pycomments only,proposal-*.md, andREADME.md(ReadOnlyIsolationGuardJSON/encyclopedia files untouched). - Phase 5 (
hyperdope-ci-build&haiperdohp-jemaytreeah): MigrateREADME.md,docs/ONBOARDING-INGGLISH-AQ.md, and script/tool comments only without alteringdb.txt/db.json/UI logic. - Phase 6: Recompile updated
.pdfmanuals viahs-pdf-build --refresh-all-web-pdfsand verify full regression pass.
- Phase 1 (
4. Verification Plan (Once Implemented)
- Zero Functional Code Impact Verification: Run an automated Python
ast.dumpparity check across every modified.pyfile (ast.dump(old_ast) == ast.dump(new_ast)), and confirmbash -n+node --check+tests/test_core_suite.py(ALL 7 TEST SUITES PASSED) pass with 0 code/test changes. - Tokenizer Exemption Verification: Confirm
hs-shorthand-lintignores bareG1,M2,S3inside Python variables, string literals, JSON files, and fenced Markdown code blocks, while flagging bareG1/M2/S3inside#///comments and Markdown prose. - Deployment Parity: Run
hs-deploy-scripts-sync --check(GatesDEPLOY-GATE-D01.MIRROR_PARITY..D08) anddeploy/test-first-deployment.sh.