3343 lines
194 KiB
Python
Executable File
3343 lines
194 KiB
Python
Executable File
#!/usr/bin/env python3
|
||
"""
|
||
classify_technocapital_singularity.py
|
||
Deterministic CLI tool for `technocapital-singularity-zoology` (v1.2.0).
|
||
|
||
Responsibilities:
|
||
1. Batch-translates candidate theoretical, organizational, financial, and hardware entities into Ingglish
|
||
using the official CMUdict `ingglish` npm package in `/workspace/ingglish-hyperdope-gematria`.
|
||
2. Computes Standard English (Gen 0) and Phonemic Ingglish (Gen 1) Base-36 Alphanumeric
|
||
Qabbala (AQ) values, word/phrase deltas (Δ = AQ(Gen 1) - AQ(Gen 0)), and prime ranks.
|
||
3. Automatically detects:
|
||
- Vector G1 Variance-Collapse Triads (Gen 0 dispersion -> Gen 1 exact equivalence)
|
||
- Vector G2 Cross-Generation & Double-Script Twins (`AQ_Eng(A) == AQ_Ing(B)` or `A == B` in both scripts)
|
||
- Vector G4 Type I–III Isometric Chokepoints (`Δ = 0`)
|
||
- Double-Articulation Bridges (linking Machinic Phylum classes S1–S5 with Capital Organizational Capacity class S6)
|
||
4. Classifies entities and locks into the 6-Class Landian-Deleuzean Technocapital Singularity
|
||
Taxonomy (`S1` through `S6`).
|
||
5. Quantitative Economic Anchor Revision & Alternative-Surfacing Engine (`--revise-anchor`):
|
||
- Evaluates revisions to quantitative economic anchors across both `Q_digit` and `Q_spoken`.
|
||
- Detects pure-AQ Epistemic Regime Transitions (Iso-Digital Conservation `Δ_Q = 0`,
|
||
Equivalence-Ring Migration `Ring(Q_old) -> Ring(Q_new)`, and Prime/Square/Repdigit Phase Transitions).
|
||
- Runs a 3-Path Counter-Substitution Solver (Path A: Verb/Adjective Counter-Swap `δ_slot = -Δ_Q`;
|
||
Path B: Tail/Head Entity Equivalence Migration `AQ(New_Entity) = AQ(Old_Entity) - Δ_Q`;
|
||
Path C: Dual-Mode `Q_digit` vs. `Q_spoken` Fork Comparison) to surface verified `333 / 666 / 777` alternatives.
|
||
"""
|
||
|
||
from __future__ import annotations
|
||
|
||
import argparse
|
||
import json
|
||
import math
|
||
import subprocess
|
||
import sys
|
||
from pathlib import Path
|
||
from typing import Any
|
||
|
||
_REPO_ROOT = Path(__file__).resolve().parent.parent
|
||
_CORE_SRC = _REPO_ROOT.parent / "hyperstitionstudio-core" / "src"
|
||
if _CORE_SRC.is_dir() and str(_CORE_SRC) not in sys.path:
|
||
sys.path.insert(0, str(_CORE_SRC))
|
||
|
||
try:
|
||
from hyperstitionstud_io.ciphers import compute_aq as _hs_compute_aq
|
||
from hyperstitionstud_io.phonetics import translate_batch as _hs_translate_batch
|
||
except ImportError:
|
||
_hs_compute_aq = None
|
||
_hs_translate_batch = None
|
||
|
||
|
||
def compute_aq(text: str) -> int:
|
||
if _hs_compute_aq is not None:
|
||
return _hs_compute_aq(text, quant_mode="digit")
|
||
total = 0
|
||
for ch in text.lower():
|
||
if "0" <= ch <= "9":
|
||
total += ord(ch) - ord("0")
|
||
elif "a" <= ch <= "z":
|
||
total += ord(ch) - ord("a") + 10
|
||
return total
|
||
|
||
|
||
def build_primes(limit: int = 20000) -> dict[int, int]:
|
||
sieve = [True] * (limit + 1)
|
||
sieve[0] = sieve[1] = False
|
||
for i in range(2, int(math.isqrt(limit)) + 1):
|
||
if sieve[i]:
|
||
for j in range(i * i, limit + 1, i):
|
||
sieve[j] = False
|
||
primes: dict[int, int] = {}
|
||
rank = 0
|
||
for num, is_p in enumerate(sieve):
|
||
if is_p:
|
||
rank += 1
|
||
primes[num] = rank
|
||
return primes
|
||
|
||
|
||
PRIME_RANKS = build_primes(20000)
|
||
|
||
|
||
TAXONOMY_CLASSES = {
|
||
"S1": {
|
||
"id": "S1",
|
||
"name": "Autoregressive Synthetic Intelligence & Schizoanalytic Abstract Machine",
|
||
"operators": ["Abstract Machine", "Schizoanalysis", "Machinic Phylum", "Anorganic Intelligence"],
|
||
"signature_coordinates": [292, 246, 244, 236, 234, 222, 216, 193, 137, 135, 133, 115, 110, 97, 96],
|
||
"keywords": [
|
||
"schizoanalysis", "abstract machine", "synthetic data", "gilles deleuze", "machinic phylum",
|
||
"deleuze", "assemblage", "tensor", "claude", "phylum", "dario amodei", "daniela amodei",
|
||
"dario", "amodei", "anthropic", "weights", "swarm", "transformer", "riemann", "hypothesis",
|
||
"proof", "levent alpoge", "token", "attention", "autoregressive",
|
||
],
|
||
},
|
||
"S2": {
|
||
"id": "S2",
|
||
"name": "High-Frequency Cybernetic Market Meltdown & Templex Liquidity",
|
||
"operators": ["Machinic Surplus Value", "Axiomatic Decoding", "Teleoplexy", "Time-Circuit / Templex"],
|
||
"signature_coordinates": [256, 211, 206, 198, 193, 191, 189, 183, 166, 153, 145, 144, 125, 118, 113, 108, 95],
|
||
"keywords": [
|
||
"flash crash", "acceleration", "high-frequency", "liquidity", "handkerchief", "emergency",
|
||
"expressed", "derivative", "order book", "new flesh", "surplus", "rhizome", "value",
|
||
"runaway", "templex", "latency", "capital", "folds", "serres", "binance", "lazarus",
|
||
"ledger", "fiber", "market", "price", "arbitrage", "algorithmic",
|
||
],
|
||
},
|
||
"S3": {
|
||
"id": "S3",
|
||
"name": "The Silicon-Photonic War Machine & Autonomous Lithographic Swarm",
|
||
"operators": ["Nomad War Machine", "Metallurgical-Photonic Phylum", "Circuitries", "Autonomous Swarm"],
|
||
"signature_coordinates": [260, 253, 215, 211, 197, 188, 145, 141, 137, 132, 130, 129, 128, 104, 91, 81, 71],
|
||
"keywords": [
|
||
"technocapital", "killer robots", "microsecond", "slaughterbots", "war machine",
|
||
"copper wire", "nvidia", "jensen huang", "blackwell", "tsmc", "loss", "asml", "gpu",
|
||
"silicon", "wafer", "lithography", "laser", "autonomous", "drone", "centaur",
|
||
"nick land", "machine", "circuit",
|
||
],
|
||
},
|
||
"S4": {
|
||
"id": "S4",
|
||
"name": "Hyperstitional Carrier-Wave & Semiotic Retro-Causality",
|
||
"operators": ["Hyperstition", "Order-Word", "Quasi-Cause", "00:00 GMT Carrier Wave"],
|
||
"signature_coordinates": [264, 244, 207, 131, 122, 116, 111],
|
||
"keywords": [
|
||
"hyperstition", "time-circuit", "turbulence", "signal", "chaos", "spoil", "puddle",
|
||
"siren", "fiction", "darkness", "demons", "cinema", "manuscript",
|
||
],
|
||
},
|
||
"S5": {
|
||
"id": "S5",
|
||
"name": "Xenobiological / Cutaneous Mimesis & Somatic Body-Without-Organs (BwO)",
|
||
"operators": ["Body without Organs (BwO)", "Becoming-Molecular", "Cellular Mimesis"],
|
||
"signature_coordinates": [390, 202, 199, 126, 110, 95, 92, 89, 84],
|
||
"keywords": [
|
||
"body without organs", "bwo", "childs", "alien", "whiskey", "screen", "shimmer",
|
||
"stool", "murmur", "hooks", "flesh", "pain", "blood", "doppelganger", "equation",
|
||
],
|
||
},
|
||
"S6": {
|
||
"id": "S6",
|
||
"name": "Capital Organizational Capacity & Apparatus of Capture",
|
||
"operators": ["Apparatus of Capture", "Double Articulation", "Consortium / Charter Allocation", "Monopoly & Logistics Chokepoints"],
|
||
"signature_coordinates": [316, 267, 263, 259, 256, 237, 222, 219, 208, 203, 191, 183, 175, 163, 160, 159, 153, 149, 138, 136, 133, 125, 123, 121, 109, 98, 81, 78, 75],
|
||
"keywords": [
|
||
"incorporation", "natural contract", "asset management", "organization", "venture capital",
|
||
"corporation", "sovereign wealth", "consortium", "enterprise", "governance", "supply chain",
|
||
"acquisition", "logistics", "allocation", "company", "monopoly", "capacity", "trust",
|
||
"syndicate", "apparatus", "holding", "venture", "charter", "equity", "capture",
|
||
"merger", "cartel", "assets", "fund", "asset", "firm", "board",
|
||
],
|
||
},
|
||
}
|
||
|
||
|
||
# Counter-substitution pools for Stage 3 of the Quantitative Revision Engine
|
||
VERB_POOL = [
|
||
("hawlts", "halts", 137), ("ohpanz", "opens", 134), ("draivz", "drives", 134),
|
||
("brayks", "breaks", 130), ("hohldz", "holds", 127), ("fohldz", "folds", 125),
|
||
("kuhts", "cuts", 124), ("leevz", "leaves", 115), ("melts", "melts", 114),
|
||
("raits", "writes", 112), ("marks", "marks", 107), ("sits", "sits", 103),
|
||
("gardz", "guards", 101), ("loks", "locks", 93), ("hits", "hits", 92), ("sit", "sit", 75),
|
||
]
|
||
|
||
ADJ_POOL = [
|
||
("dijatal", "digital", 120), ("pyur", "pure", 116), ("ferst", "first", 113),
|
||
("sharp", "sharp", 107), ("ohpan", "open", 99), ("vast", "vast", 98),
|
||
("kleer", "clear", 96), ("kohld", "cold", 95), ("klir", "clear", 86),
|
||
("hart", "heart", 83), ("noo", "new", 71), ("dark", "dark", 70), ("deep", "deep", 66),
|
||
("blak", "black", 62), ("red", "red", 54), ("ro", "raw", 51), ("hai", "high", 45),
|
||
]
|
||
|
||
PREP_POOL = [
|
||
("throo", "through", 121), ("intoo", "into", 118), ("fruhm", "from", 111),
|
||
("uhv", "of", 78), ("for", "for", 66), ("amid", "amid", 63),
|
||
("on", "on", 47), ("in", "in", 41), ("at", "at", 39),
|
||
]
|
||
|
||
|
||
def batch_translate(terms: list[str], workdir: str = "/workspace/ingglish-hyperdope-gematria") -> dict[str, str]:
|
||
if not terms:
|
||
return {}
|
||
if _hs_translate_batch is not None and not (Path(workdir) / "node_modules" / "ingglish").is_dir():
|
||
return _hs_translate_batch(terms, workdir=workdir)
|
||
node_script = """
|
||
import { translate } from 'ingglish';
|
||
import fs from 'fs';
|
||
const items = JSON.parse(fs.readFileSync(0, 'utf8'));
|
||
await translate('hello');
|
||
const out = {};
|
||
for (const t of items) {
|
||
out[t] = (await translate(t)).toLowerCase();
|
||
}
|
||
process.stdout.write(JSON.stringify(out));
|
||
"""
|
||
try:
|
||
proc = subprocess.run(
|
||
["node", "--input-type=module", "-e", node_script],
|
||
input=json.dumps(terms),
|
||
text=True,
|
||
cwd=workdir,
|
||
capture_output=True,
|
||
check=True,
|
||
)
|
||
return json.loads(proc.stdout)
|
||
except Exception:
|
||
if _hs_translate_batch is not None:
|
||
return _hs_translate_batch(terms, workdir=workdir)
|
||
raise
|
||
|
||
|
||
def classify_term(eng: str, ing: str, eng_aq: int, ing_aq: int) -> list[str]:
|
||
low = eng.lower()
|
||
matched = []
|
||
for cid, cinfo in TAXONOMY_CLASSES.items():
|
||
if low in cinfo["keywords"] or ing_aq in cinfo["signature_coordinates"]:
|
||
matched.append(cid)
|
||
return matched or ["UNCLASSIFIED"]
|
||
|
||
|
||
def analyze_terms(terms: list[str], workdir: str = "/workspace/ingglish-hyperdope-gematria") -> dict[str, Any]:
|
||
translations = batch_translate(terms, workdir=workdir)
|
||
records = []
|
||
by_ing_aq: dict[int, list[dict[str, Any]]] = {}
|
||
by_eng_aq: dict[int, list[dict[str, Any]]] = {}
|
||
|
||
for t in terms:
|
||
ing = translations.get(t, t.lower())
|
||
e_aq = compute_aq(t)
|
||
i_aq = compute_aq(ing)
|
||
rec = {
|
||
"eng": t,
|
||
"ing": ing,
|
||
"eng_aq": e_aq,
|
||
"ing_aq": i_aq,
|
||
"delta": i_aq - e_aq,
|
||
"isometric": e_aq == i_aq,
|
||
"eng_prime_rank": PRIME_RANKS.get(e_aq),
|
||
"ing_prime_rank": PRIME_RANKS.get(i_aq),
|
||
"twin_prime": (e_aq in PRIME_RANKS) and (i_aq in PRIME_RANKS),
|
||
"taxonomy_classes": classify_term(t, ing, e_aq, i_aq),
|
||
}
|
||
records.append(rec)
|
||
by_ing_aq.setdefault(i_aq, []).append(rec)
|
||
by_eng_aq.setdefault(e_aq, []).append(rec)
|
||
|
||
# Vector RULE-G01.COLLAPSE: Gen 1 collisions with Gen 0 variance calculation & Double-Articulation flag
|
||
g1_singularities = {}
|
||
for aq_val, group in sorted(by_ing_aq.items(), key=lambda kv: -kv[0]):
|
||
if len(group) >= 2:
|
||
eng_vals = [g["eng_aq"] for g in group]
|
||
mean_e = sum(eng_vals) / len(eng_vals)
|
||
var_e = round(sum((x - mean_e) ** 2 for x in eng_vals) / len(eng_vals), 2)
|
||
has_s6 = any(g["eng"].lower() in TAXONOMY_CLASSES["S6"]["keywords"] for g in group)
|
||
has_machinic = any(
|
||
any(g["eng"].lower() in TAXONOMY_CLASSES[c]["keywords"] for c in ("S1", "S2", "S3", "S4", "S5"))
|
||
for g in group
|
||
)
|
||
g1_singularities[str(aq_val)] = {
|
||
"ing_aq": aq_val,
|
||
"prime_rank": PRIME_RANKS.get(aq_val),
|
||
"gen0_variance": var_e,
|
||
"gen1_variance": 0.0,
|
||
"double_articulated": bool(has_s6 and has_machinic),
|
||
"members": [
|
||
{"eng": g["eng"], "eng_aq": g["eng_aq"], "ing": g["ing"], "delta": g["delta"]}
|
||
for g in group
|
||
],
|
||
}
|
||
|
||
# Vector RULE-G02.CROSS_GEN_TWIN: Cross-generation locks (AQ_Eng(A) == AQ_Ing(B))
|
||
g2_cross_gen = []
|
||
for e_val, e_group in by_eng_aq.items():
|
||
if e_val in by_ing_aq:
|
||
for eg in e_group:
|
||
for ig in by_ing_aq[e_val]:
|
||
if eg["eng"].lower() != ig["eng"].lower():
|
||
g2_cross_gen.append(
|
||
{
|
||
"shared_aq": e_val,
|
||
"prime_rank": PRIME_RANKS.get(e_val),
|
||
"gen0_entity": eg["eng"],
|
||
"gen1_entity": f"{ig['ing']} ({ig['eng']})",
|
||
}
|
||
)
|
||
|
||
return {
|
||
"version": "1.2.0",
|
||
"taxonomy_classes": {k: v["name"] for k, v in TAXONOMY_CLASSES.items()},
|
||
"counts": {
|
||
"total_terms": len(records),
|
||
"isometric_chokepoints": sum(1 for r in records if r["isometric"]),
|
||
"twin_prime_mutations": sum(1 for r in records if r["twin_prime"]),
|
||
"g1_equivalence_singularities": len(g1_singularities),
|
||
"double_articulated_singularities": sum(1 for v in g1_singularities.values() if v["double_articulated"]),
|
||
"g2_cross_generation_locks": len(g2_cross_gen),
|
||
},
|
||
"g1_variance_collapse_singularities": g1_singularities,
|
||
"g2_cross_generation_locks": g2_cross_gen,
|
||
"isometric_chokepoints": [r for r in records if r["isometric"]],
|
||
"entities": records,
|
||
}
|
||
|
||
|
||
def number_properties(n: int) -> dict[str, Any]:
|
||
root = int(math.isqrt(n)) if n >= 0 else -1
|
||
is_sq = (root * root == n) and n > 0
|
||
repdigit = n in {111, 222, 333, 444, 555, 666, 777, 888, 999} or (n > 0 and n % 37 == 0)
|
||
return {
|
||
"aq": n,
|
||
"prime_rank": PRIME_RANKS.get(n),
|
||
"is_prime": n in PRIME_RANKS,
|
||
"is_square": is_sq,
|
||
"square_root": root if is_sq else None,
|
||
"repdigit_or_37_multiple": repdigit,
|
||
}
|
||
|
||
|
||
def revise_economic_anchor(
|
||
anchor_id: str,
|
||
new_digit: str,
|
||
new_spoken_eng: str,
|
||
anchors_path: str,
|
||
base_report: dict[str, Any],
|
||
workdir: str = "/workspace/ingglish-hyperdope-gematria",
|
||
) -> dict[str, Any]:
|
||
"""
|
||
Evaluate a quantitative economic anchor revision (Q_old -> Q_new) across Q_digit and Q_spoken:
|
||
1. Computes Δ_digit and Δ_spoken.
|
||
2. Identifies pure-AQ Epistemic Regime Transitions (Iso-Digital Conservation, Equivalence-Ring Migration,
|
||
and Prime/Square/Repdigit Phase-Transitions).
|
||
3. Runs the 3-Path Counter-Substitution Solver across baseline equations to surface verified alternatives.
|
||
"""
|
||
anchors_data = json.loads(Path(anchors_path).read_text(encoding="utf-8"))
|
||
target_anchor = None
|
||
for a in anchors_data.get("anchors", []):
|
||
if a["anchor_id"] == anchor_id:
|
||
target_anchor = a
|
||
break
|
||
if not target_anchor:
|
||
valid_ids = [a["anchor_id"] for a in anchors_data.get("anchors", [])]
|
||
raise ValueError(f"Unknown anchor_id '{anchor_id}'. Valid IDs: {valid_ids}")
|
||
|
||
trans = batch_translate([new_spoken_eng], workdir=workdir)
|
||
new_spoken_ing = trans.get(new_spoken_eng, new_spoken_eng.lower())
|
||
|
||
old_digit = target_anchor["q_digit"]
|
||
old_spoken_eng = target_anchor["q_spoken_eng"]
|
||
old_spoken_ing = target_anchor["q_spoken_ing"]
|
||
|
||
old_digit_aq = compute_aq(old_digit)
|
||
new_digit_aq = compute_aq(new_digit)
|
||
delta_digit = new_digit_aq - old_digit_aq
|
||
|
||
old_spoken_aq = compute_aq(old_spoken_ing)
|
||
new_spoken_aq = compute_aq(new_spoken_ing)
|
||
delta_spoken = new_spoken_aq - old_spoken_aq
|
||
|
||
# Build lookup of entities by Ingglish AQ from base_report + extra barstool/archive nouns
|
||
extra_entities = [
|
||
("ai", "AI", 28), ("fbi", "FBI", 44), ("bar", "bar", 48), ("tab", "tab", 50), ("bil", "bill", 50),
|
||
("dim", "dim", 53), ("god", "god", 53), ("ayd", "aid", 57), ("lap", "lap", 56), ("jar", "jar", 56),
|
||
("bom", "bomb", 57), ("us", "US", 58), ("kayn", "Cane", 59), ("nik", "Nick", 61), ("buk", "book", 61),
|
||
("pen", "pen", 62), ("jet", "jet", 62), ("hand", "hand", 63), ("oil", "oil", 63), ("chek", "check", 63),
|
||
("tap", "tap", 64), ("lip", "lip", 64), ("ayl", "ale", 65), ("bred", "bred", 65), ("beer", "beer", 66),
|
||
("heel", "heel", 66), ("hiv", "HIV", 66), ("land", "Land", 67), ("abis", "abyss", 67), ("rim", "rim", 67),
|
||
("fiz", "fizz", 68), ("beet", "beat", 68), ("neam", "Naeem", 69), ("gpu", "GPU", 71), ("sip", "sip", 71),
|
||
("atam", "atom", 71), ("feet", "feet", 72), ("tip", "tip", 72), ("grid", "grid", 74), ("peel", "peel", 74),
|
||
("glas", "glass", 75), ("bord", "board", 75), ("kash", "cash", 75), ("bern", "burn", 75), ("food", "food", 76),
|
||
("ferm", "firm", 78), ("lait", "light", 78), ("gloh", "glow", 78), ("fohm", "foam", 78), ("taim", "time", 79),
|
||
("nait", "night", 80), ("bangk", "bank", 80), ("asml", "ASML", 81), ("aset", "asset", 81), ("milk", "milk", 81),
|
||
("skan", "scan", 81), ("dohs", "dose", 82), ("hart", "heart", 83), ("verb", "verb", 83), ("wor", "war", 83),
|
||
("amber", "amber", 84), ("ring", "ring", 84), ("bwoh", "BwO", 84), ("ipoh", "IPO", 84), ("muhg", "mug", 85),
|
||
("maind", "mind", 86), ("void", "void", 86), ("guhn", "gun", 86), ("huhm", "hum", 86), ("erth", "earth", 87),
|
||
("ship", "ship", 88), ("skin", "skin", 89), ("blayd", "blade", 89), ("sohl", "soul", 90), ("tsmc", "TSMC", 91),
|
||
("laws", "loss", 91), ("taps", "taps", 92), ("payn", "pain", 92), ("bluhd", "blood", 92), ("aiern", "iron", 92),
|
||
("moon", "moon", 93), ("chanal", "channel", 93), ("draft", "draft", 94), ("shop", "shop", 94), ("lejer", "ledger", 95),
|
||
("faiber", "fiber", 95), ("flesh", "flesh", 95), ("klawd", "Claude", 96), ("failam", "phylum", 96), ("dayta", "data", 96),
|
||
("amodai", "Amodei", 97), ("ataks", "attacks", 97), ("fuhnd", "fund", 98), ("shot", "shot", 98), ("draiv", "drive", 99),
|
||
("noiz", "noise", 100), ("chest", "chest", 100), ("buhbal", "bubble", 100), ("feest", "feast", 100),
|
||
("voht", "vote", 101), ("stok", "stock", 101), ("krash", "crash", 102), ("thing", "thing", 103),
|
||
("druhg", "drug", 103), ("awfis", "office", 103), ("drohn", "drone", 104), ("theft", "theft", 104),
|
||
("senat", "senate", 104), ("pint", "pint", 105), ("gloom", "gloom", 107), ("spred", "spread", 107),
|
||
("swich", "switch", 107), ("werld", "world", 107), ("prais", "price", 108), ("harlan", "Harlan", 108),
|
||
("asets", "assets", 109), ("kohdz", "codes", 109), ("balats", "ballots", 109), ("reeman", "Riemann", 110),
|
||
("alfabet", "alphabet", 110), ("bodeez", "bodies", 111), ("saifer", "cipher", 112), ("binans", "Binance", 113),
|
||
("smawl", "small", 113), ("skayl", "scale", 113), ("gohst", "ghost", 114), ("proof", "proof", 115),
|
||
("ivent", "event", 115), ("taybal", "table", 115), ("signal", "signal", 116), ("kayos", "chaos", 116),
|
||
("spoil", "spoil", 116), ("puhdal", "puddle", 116), ("sairan", "siren", 116), ("markat", "market", 118),
|
||
("meerer", "mirror", 118), ("klingk", "clink", 118), ("napkin", "napkin", 119), ("pouer", "power", 120),
|
||
("kartel", "cartel", 121), ("serfas", "surface", 122), ("mouth", "mouth", 122), ("tohkan", "token", 123),
|
||
("merjer", "merger", 123), ("vawlt", "vault", 123), ("touer", "tower", 124), ("kapatal", "capital", 125),
|
||
("kapcher", "capture", 125), ("fohldz", "folds", 125), ("saires", "Serres", 125), ("stool", "stool", 126),
|
||
("wiskee", "whiskey", 126), ("skreen", "screen", 126), ("ayleean", "alien", 126), ("minamam", "minimum", 127),
|
||
("dokter", "doctor", 127), ("windoh", "window", 127), ("strip", "strip", 127), ("masheen", "machine", 128),
|
||
("serkat", "circuit", 128), ("infanat", "infinite", 128), ("blakwel", "Blackwell", 129), ("stoks", "stocks", 129),
|
||
("silakan", "silicon", 130), ("storm", "storm", 130), ("fikshan", "fiction", 131), ("wayfer", "wafer", 132),
|
||
("straik", "strike", 132), ("wayts", "weights", 133), ("sworm", "swarm", 133), ("ekwatee", "equity", 133),
|
||
("fiziks", "physics", 134), ("tenser", "tensor", 135), ("dilooz", "Deleuze", 135), ("asemblaj", "assemblage", 135),
|
||
("charter", "charter", 136), ("portal", "portal", 136), ("envideea", "Nvidia", 137), ("daireeoh", "Dario", 137),
|
||
("jaiants", "giants", 137), ("vencher", "venture", 138), ("tangker", "tanker", 139), ("stout", "stout", 140),
|
||
("layzer", "laser", 141), ("street", "street", 141), ("kraisas", "crisis", 141), ("hermeez", "Hermes", 143),
|
||
("valyoo", "value", 144), ("nuhmber", "number", 144), ("lazeras", "Lazarus", 145), ("sentor", "centaur", 145),
|
||
("demakrat", "Democrat", 145), ("hohlding", "holding", 149), ("ilekshan", "election", 151),
|
||
("krimanal", "criminal", 151), ("vaialans", "violence", 151), ("ekanomik", "economic", 151),
|
||
("aperatas", "apparatus", 153), ("serplas", "surplus", 153), ("raizohm", "rhizome", 153), ("reealatee", "reality", 153),
|
||
("atenshan", "attention", 154), ("hyooman", "human", 154), ("sindikat", "syndicate", 159), ("kapasatee", "capacity", 160),
|
||
("truhst", "trust", 160), ("rohbots", "robots", 160), ("kriptoh", "crypto", 160), ("straiks", "strikes", 160),
|
||
("manopalee", "monopoly", 163), ("masheenz", "machines", 163), ("fyooalz", "fuels", 163), ("order buk", "order book", 166),
|
||
("noo flesh", "New Flesh", 166), ("puhblish", "publish", 167), ("fasilitee", "facility", 167), ("siberatak", "cyberattack", 167),
|
||
("bartender", "bartender", 168), ("werkerz", "workers", 169), ("vorteks", "vortex", 173), ("prizanz", "prisons", 173),
|
||
("outijiz", "outages", 173), ("kuhmpanee", "company", 175), ("pairasait", "parasite", 175), ("faktereez", "factories", 178),
|
||
("nuhmberz", "numbers", 179), ("daytabays", "database", 179), ("freezerz", "freezers", 181), ("klinayman", "clinamen", 181),
|
||
("nookleeer", "nuclear", 181), ("alakayshan", "allocation", 183), ("tempaleks", "templex", 183), ("ruhnaway", "runaway", 183),
|
||
("laytansee", "latency", 183), ("awtonamas", "autonomous", 188), ("teknolajee", "technology", 188), ("airports", "airports", 188),
|
||
("likwidatee", "liquidity", 189), ("hangkerchif", "handkerchief", 189), ("imerjansee", "emergency", 189),
|
||
("lajistiks", "logistics", 191), ("derivativ", "derivative", 191), ("leedership", "leadership", 191),
|
||
("anthropik", "Anthropic", 193), ("flash krash", "flash crash", 193), ("lathografee", "lithography", 197),
|
||
("arbitrozh", "arbitrage", 198), ("ikwayzhan", "equation", 199), ("inflayshan", "inflation", 199),
|
||
("akwazishan", "acquisition", 203), ("pairasitik", "parasitic", 203), ("algeridhamik", "algorithmic", 206),
|
||
("saplai chayn", "supply chain", 208), ("wor masheen", "war machine", 211), ("koper waier", "copper wire", 211),
|
||
("siks bilyan", "six billion", 211), ("jensan hwang", "Jensen Huang", 215), ("hohlee grayl", "Holy Grail", 215),
|
||
("haipothasas", "hypothesis", 216), ("guhvernans", "governance", 219), ("enterpraiz", "enterprise", 222),
|
||
("maynstreem", "mainstream", 223), ("hud shooter", "Hood shooter", 223), ("muhnshiganj", "Munshiganj", 223),
|
||
("daireeoh amodai", "Dario Amodei", 234), ("zheel dilooz", "Gilles Deleuze", 236), ("machinik failam", "machinic phylum", 236),
|
||
("kansorsheeam", "consortium", 237), ("levant alpohj", "Levent Alpoge", 244), ("zeptohvers", "zeptoverse", 244),
|
||
("transformer", "transformer", 246), ("gravatee draiv", "Gravity Drive", 250), ("maikrohzekand", "microsecond", 253),
|
||
("slawterbots", "slaughterbots", 253), ("sovran welth", "sovereign wealth", 256), ("akselerayshan", "acceleration", 256),
|
||
("hai-freekwansee", "high-frequency", 256), ("korperayshan", "corporation", 259), ("teknohkapital", "technocapital", 260),
|
||
("kiler rohbots", "killer robots", 260), ("vencher kapatal", "venture capital", 263), ("organazayshan", "organization", 267),
|
||
("awtoregresiv", "autoregressive", 270), ("shizohnalizis", "schizoanalysis", 292), ("abstrakt masheen", "abstract machine", 292),
|
||
("sinthetik dayta", "synthetic data", 292), ("ingkorperayshan", "incorporation", 316), ("nacheral kontrakt", "natural contract", 316),
|
||
]
|
||
by_aq_pool: dict[int, list[dict[str, Any]]] = {}
|
||
seen_ing = set()
|
||
for ent in base_report.get("entities", []):
|
||
by_aq_pool.setdefault(ent["ing_aq"], []).append(
|
||
{"ing": ent["ing"], "eng": ent["eng"], "aq": ent["ing_aq"], "classes": ent["taxonomy_classes"]}
|
||
)
|
||
seen_ing.add(ent["ing"])
|
||
for ing_w, eng_w, v_aq in extra_entities:
|
||
if ing_w not in seen_ing:
|
||
by_aq_pool.setdefault(v_aq, []).append(
|
||
{"ing": ing_w, "eng": eng_w, "aq": v_aq, "classes": classify_term(eng_w, ing_w, compute_aq(eng_w), v_aq)}
|
||
)
|
||
|
||
old_spoken_ring = [x for x in by_aq_pool.get(old_spoken_aq, []) if x["ing"] != old_spoken_ing]
|
||
new_spoken_ring = [x for x in by_aq_pool.get(new_spoken_aq, []) if x["ing"] != new_spoken_ing]
|
||
|
||
transitions = []
|
||
if delta_digit == 0:
|
||
transitions.append(
|
||
{
|
||
"type": "Type 1: Iso-Digital Conservation (Δ_digit = 0)",
|
||
"detail": f"Literal figure revised from {old_digit} ({old_digit_aq}) to {new_digit} ({new_digit_aq}) with zero Base-36 digit-sum shift (Δ_digit = 0); all digit-mode equations remain 100% invariant.",
|
||
}
|
||
)
|
||
if delta_spoken == 0:
|
||
transitions.append(
|
||
{
|
||
"type": "Type 1: Iso-Phonemic Conservation (Δ_spoken = 0)",
|
||
"detail": f"Spoken figure revised from '{old_spoken_ing}' ({old_spoken_aq}) to '{new_spoken_ing}' ({new_spoken_aq}) with Δ_spoken = 0.",
|
||
}
|
||
)
|
||
if old_spoken_ring or new_spoken_ring:
|
||
transitions.append(
|
||
{
|
||
"type": "Type 2: Equivalence-Ring Migration (Ring(Q_old) -> Ring(Q_new))",
|
||
"old_ring_coordinate": old_spoken_aq,
|
||
"old_ring_partners": [f"{x['ing']} ({x['eng']}, {x['classes']})" for x in old_spoken_ring],
|
||
"new_ring_coordinate": new_spoken_aq,
|
||
"new_ring_partners": [f"{x['ing']} ({x['eng']}, {x['classes']})" for x in new_spoken_ring],
|
||
}
|
||
)
|
||
p_old_s = number_properties(old_spoken_aq)
|
||
p_new_s = number_properties(new_spoken_aq)
|
||
if (p_old_s["is_prime"] != p_new_s["is_prime"]) or (p_old_s["is_square"] != p_new_s["is_square"]) or (p_old_s["repdigit_or_37_multiple"] != p_new_s["repdigit_or_37_multiple"]):
|
||
transitions.append(
|
||
{
|
||
"type": "Type 3: Prime / Square / Repdigit Phase-Transition",
|
||
"old_properties": p_old_s,
|
||
"new_properties": p_new_s,
|
||
}
|
||
)
|
||
|
||
# Stage 3: 3-Path Counter-Substitution Solver across baseline_equations
|
||
equation_revisions = []
|
||
for eq in target_anchor.get("baseline_equations", []):
|
||
mode = eq.get("mode", "spoken")
|
||
delta_q = delta_digit if mode == "digit" else delta_spoken
|
||
new_anchor_ing = new_digit.lower() if mode == "digit" else new_spoken_ing
|
||
new_anchor_eng = new_digit if mode == "digit" else new_spoken_eng
|
||
new_anchor_aq = new_digit_aq if mode == "digit" else new_spoken_aq
|
||
|
||
slots = eq["slots"]
|
||
target_sum = eq["target"]
|
||
uncompensated_sum = target_sum + delta_q
|
||
required_offset = -delta_q
|
||
|
||
path_a_swaps = [] # Verb / Adj / Prep swaps
|
||
path_b_swaps = [] # Entity / Tail / Head swaps
|
||
|
||
if delta_q == 0:
|
||
new_ing_parts = [new_anchor_ing if s["role"] == "anchor" else s["ing"] for s in slots]
|
||
new_eng_parts = [new_anchor_eng if s["role"] == "anchor" else s["eng"] for s in slots]
|
||
path_a_swaps.append(
|
||
{
|
||
"slot_role": "anchor (iso-digital / zero-delta conservation)",
|
||
"old_token": f"{old_digit if mode == 'digit' else old_spoken_ing} ({old_digit_aq if mode == 'digit' else old_spoken_aq})",
|
||
"new_token": f"{new_anchor_ing} ({new_anchor_aq})",
|
||
"reclosed_ing": " ".join(new_ing_parts),
|
||
"reclosed_eng": " ".join(new_eng_parts),
|
||
"verified_aq": compute_aq(" ".join(new_ing_parts)),
|
||
}
|
||
)
|
||
else:
|
||
for idx, s in enumerate(slots):
|
||
if s["role"] in ("anchor", "article"):
|
||
continue
|
||
needed_aq = s["aq"] + required_offset
|
||
if needed_aq <= 0:
|
||
continue
|
||
|
||
if s["role"] in ("verb", "adj", "prep", "prep2"):
|
||
pool = VERB_POOL if s["role"] == "verb" else (ADJ_POOL if s["role"] == "adj" else PREP_POOL)
|
||
for cand_ing, cand_eng, cand_aq in pool:
|
||
if cand_aq == needed_aq and cand_ing != s["ing"]:
|
||
ing_tokens = [
|
||
new_anchor_ing if j == idx_a else (cand_ing if j == idx else sl["ing"])
|
||
for j, sl in enumerate(slots)
|
||
for idx_a in [next(k for k, x in enumerate(slots) if x["role"] == "anchor")]
|
||
]
|
||
eng_tokens = [
|
||
new_anchor_eng if j == idx_a else (cand_eng if j == idx else sl["eng"])
|
||
for j, sl in enumerate(slots)
|
||
for idx_a in [next(k for k, x in enumerate(slots) if x["role"] == "anchor")]
|
||
]
|
||
re_ing = " ".join(ing_tokens)
|
||
re_eng = " ".join(eng_tokens)
|
||
if compute_aq(re_ing) == target_sum:
|
||
path_a_swaps.append(
|
||
{
|
||
"slot_role": s["role"],
|
||
"old_token": f"{s['ing']} ({s['aq']})",
|
||
"new_token": f"{cand_ing} ({cand_aq})",
|
||
"reclosed_ing": re_ing,
|
||
"reclosed_eng": re_eng,
|
||
"verified_aq": compute_aq(re_ing),
|
||
}
|
||
)
|
||
elif s["role"] in ("tail", "head", "noun1"):
|
||
for cand in by_aq_pool.get(needed_aq, []):
|
||
if cand["ing"] != s["ing"]:
|
||
idx_a = next(k for k, x in enumerate(slots) if x["role"] == "anchor")
|
||
ing_tokens = [
|
||
new_anchor_ing if j == idx_a else (cand["ing"] if j == idx else sl["ing"])
|
||
for j, sl in enumerate(slots)
|
||
]
|
||
eng_tokens = [
|
||
new_anchor_eng if j == idx_a else (cand["eng"] if j == idx else sl["eng"])
|
||
for j, sl in enumerate(slots)
|
||
]
|
||
re_ing = " ".join(ing_tokens)
|
||
re_eng = " ".join(eng_tokens)
|
||
if compute_aq(re_ing) == target_sum:
|
||
path_b_swaps.append(
|
||
{
|
||
"slot_role": s["role"],
|
||
"old_token": f"{s['ing']} ({s['aq']})",
|
||
"new_token": f"{cand['ing']} ['{cand['eng']}', {cand['aq']}, classes={cand['classes']}]",
|
||
"reclosed_ing": re_ing,
|
||
"reclosed_eng": re_eng,
|
||
"verified_aq": compute_aq(re_ing),
|
||
}
|
||
)
|
||
|
||
equation_revisions.append(
|
||
{
|
||
"target": target_sum,
|
||
"mode": mode,
|
||
"baseline_ing": eq["ing"],
|
||
"baseline_eng": eq["eng"],
|
||
"uncompensated_new_sum": uncompensated_sum,
|
||
"shock_delta_q": delta_q,
|
||
"required_compensatory_offset": required_offset,
|
||
"path_a_predicate_adjective_swaps": path_a_swaps[:5],
|
||
"path_b_entity_chokepoint_migrations": path_b_swaps[:8],
|
||
}
|
||
)
|
||
|
||
return {
|
||
"anchor_id": anchor_id,
|
||
"entity": target_anchor["entity"],
|
||
"metric": target_anchor["metric"],
|
||
"source_dossier": target_anchor["source_dossier"],
|
||
"quant_free_lexical_equations": target_anchor.get("quant_free_lexical_equations", []),
|
||
"path_c_dual_mode_comparison": {
|
||
"digit_mode": {
|
||
"q_old": old_digit,
|
||
"q_old_aq": old_digit_aq,
|
||
"q_new": new_digit,
|
||
"q_new_aq": new_digit_aq,
|
||
"delta_digit": delta_digit,
|
||
"new_properties": number_properties(new_digit_aq),
|
||
},
|
||
"spoken_mode": {
|
||
"q_old_eng": old_spoken_eng,
|
||
"q_old_ing": old_spoken_ing,
|
||
"q_old_aq": old_spoken_aq,
|
||
"q_new_eng": new_spoken_eng,
|
||
"q_new_ing": new_spoken_ing,
|
||
"q_new_aq": new_spoken_aq,
|
||
"delta_spoken": delta_spoken,
|
||
"new_properties": number_properties(new_spoken_aq),
|
||
},
|
||
},
|
||
"epistemic_regime_transitions": transitions,
|
||
"equation_counter_substitutions": equation_revisions,
|
||
}
|
||
|
||
|
||
DEFAULT_CORPUS = [
|
||
"schizoanalysis", "abstract machine", "synthetic data", "Gilles Deleuze", "machinic phylum",
|
||
"Deleuze", "assemblage", "tensor", "Claude", "phylum", "Dario Amodei", "Daniela Amodei",
|
||
"Dario", "Amodei", "Anthropic", "weights", "swarm", "transformer", "Riemann", "hypothesis",
|
||
"proof", "Levent Alpoge", "zeptoverse", "flash crash", "acceleration", "high-frequency",
|
||
"liquidity", "handkerchief", "emergency", "expressed", "derivative", "order book", "New Flesh",
|
||
"surplus", "rhizome", "value", "runaway", "templex", "latency", "capital", "folds", "Serres",
|
||
"Binance", "Lazarus", "six billion", "ledger", "fiber", "market", "price", "technocapital",
|
||
"killer robots", "microsecond", "slaughterbots", "war machine", "copper wire", "Nvidia",
|
||
"Jensen Huang", "Holy Grail", "Blackwell", "TSMC", "loss", "ASML", "GPU", "silicon", "wafer",
|
||
"lithography", "laser", "autonomous", "drone", "centaur", "Nick Land", "machine", "circuit",
|
||
"body without organs", "BwO",
|
||
# Class CLASS-S06.AGI: Capital Organizational Capacity & Apparatus of Capture
|
||
"incorporation", "natural contract", "asset management", "organization", "venture capital",
|
||
"corporation", "sovereign wealth", "consortium", "enterprise", "governance", "supply chain",
|
||
"acquisition", "logistics", "allocation", "company", "monopoly", "capacity", "trust",
|
||
"syndicate", "apparatus", "holding", "venture", "charter", "equity", "capture",
|
||
"merger", "cartel", "assets", "fund", "asset", "firm", "board",
|
||
]
|
||
|
||
|
||
_ONES = [
|
||
"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
|
||
"ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen",
|
||
"seventeen", "eighteen", "nineteen",
|
||
]
|
||
_TENS = ["", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"]
|
||
_UNIT_WORDS = {
|
||
"tn": "trillion", "trillion": "trillion",
|
||
"bn": "billion", "b": "billion", "billion": "billion",
|
||
"m": "million", "mn": "million", "million": "million",
|
||
"k": "thousand", "thousand": "thousand",
|
||
"%": "percent",
|
||
}
|
||
|
||
|
||
def _int_to_words(n: int) -> str:
|
||
if n < 0:
|
||
return "minus " + _int_to_words(-n)
|
||
if n < 20:
|
||
return _ONES[n]
|
||
if n < 100:
|
||
t, r = divmod(n, 10)
|
||
return _TENS[t] + ("" if r == 0 else " " + _ONES[r])
|
||
if n < 1000:
|
||
h, r = divmod(n, 100)
|
||
return _ONES[h] + " hundred" + ("" if r == 0 else " " + _int_to_words(r))
|
||
for scale_val, scale_name in ((1_000_000_000_000, "trillion"), (1_000_000_000, "billion"), (1_000_000, "million"), (1000, "thousand")):
|
||
if n >= scale_val:
|
||
q, r = divmod(n, scale_val)
|
||
return _int_to_words(q) + " " + scale_name + ("" if r == 0 else " " + _int_to_words(r))
|
||
return str(n)
|
||
|
||
|
||
def token_to_spoken_english(raw_tok: str) -> str:
|
||
import re
|
||
s = raw_tok.strip()
|
||
m = re.match(r"^([$€£])?(\d[\d,]*)(?:\.(\d+))?([a-zA-Z%]+)?$", s)
|
||
if not m:
|
||
return s.lower()
|
||
_curr, int_part, dec_part, unit_part = m.groups()
|
||
int_val = int(int_part.replace(",", ""))
|
||
words = [_int_to_words(int_val)]
|
||
if dec_part:
|
||
words.append("point")
|
||
for ch in dec_part:
|
||
words.append(_ONES[int(ch)])
|
||
if unit_part:
|
||
u_low = unit_part.lower()
|
||
if u_low in _UNIT_WORDS:
|
||
words.append(_UNIT_WORDS[u_low])
|
||
else:
|
||
words.append(u_low)
|
||
return " ".join(words)
|
||
|
||
|
||
def scan_harvest_for_revisions(
|
||
harvest_path: str,
|
||
anchors_path: str,
|
||
base_report: dict[str, Any],
|
||
quant_mode: str = "dual",
|
||
workdir: str = "/workspace/ingglish-hyperdope-gematria",
|
||
) -> dict[str, Any]:
|
||
"""
|
||
Non-destructively scan a `news-aq-harvest-*.json` file:
|
||
- If `quant_mode == 'off'`, returns only the pure lexical classification of the harvest's `entities`.
|
||
- Otherwise, extracts quantitative figures from `quantitative_anchors` (or directly from `headlines`
|
||
if `quantitative_anchors` is absent in older harvest files), compares them against tracked
|
||
entities in `quantitative-economic-anchors.json`, and automatically fires `revise_economic_anchor()`
|
||
whenever a figure has mutated.
|
||
"""
|
||
import re
|
||
harvest = json.loads(Path(harvest_path).read_text(encoding="utf-8"))
|
||
anchors_data = json.loads(Path(anchors_path).read_text(encoding="utf-8"))
|
||
tracked_anchors = anchors_data.get("anchors", [])
|
||
|
||
if quant_mode == "off":
|
||
return {
|
||
"quant_mode": "off",
|
||
"note": "Quantitative stream disabled (--quant-mode off); returning pure lexical entity classification only.",
|
||
"lexical_entity_count": len(harvest.get("entities", [])),
|
||
}
|
||
|
||
quant_items = harvest.get("quantitative_anchors")
|
||
if quant_items is None:
|
||
quant_items = []
|
||
quant_re = re.compile(r"(?<![a-zA-Z0-9])([$€£]?\d[\d,]*(?:\.\d+)?(?:tn|bn|mn|b|m|k|%)?)\b", re.I)
|
||
for idx, h in enumerate(harvest.get("headlines", [])):
|
||
hl = h.get("headline_eng", "")
|
||
for qm in quant_re.finditer(hl):
|
||
q_tok = qm.group(1)
|
||
if q_tok in {"2025", "2026", "2027"}:
|
||
continue
|
||
sp_eng = token_to_spoken_english(q_tok)
|
||
quant_items.append(
|
||
{
|
||
"story": f"H{idx+1:02d}:{h.get('source', '')}",
|
||
"entity_context": hl[:40],
|
||
"q_digit": q_tok,
|
||
"q_spoken_eng": sp_eng,
|
||
"headline": hl,
|
||
}
|
||
)
|
||
|
||
unchanged_matches = []
|
||
detected_revisions = []
|
||
new_candidate_anchors = []
|
||
|
||
for qi in quant_items:
|
||
hl_low = qi.get("headline", "").lower()
|
||
q_dig = qi["q_digit"]
|
||
q_sp_eng = qi["q_spoken_eng"]
|
||
matched_tracked = None
|
||
for ta in tracked_anchors:
|
||
kws = ta.get("entity_match_keywords", [ta["entity"].lower()])
|
||
if any(kw in hl_low for kw in kws):
|
||
matched_tracked = ta
|
||
break
|
||
|
||
if matched_tracked:
|
||
if q_dig.lower() == matched_tracked["q_digit"].lower():
|
||
unchanged_matches.append(
|
||
{
|
||
"anchor_id": matched_tracked["anchor_id"],
|
||
"entity": matched_tracked["entity"],
|
||
"q_digit": q_dig,
|
||
"status": "unchanged",
|
||
"headline": qi.get("headline"),
|
||
}
|
||
)
|
||
else:
|
||
rev = revise_economic_anchor(
|
||
anchor_id=matched_tracked["anchor_id"],
|
||
new_digit=q_dig,
|
||
new_spoken_eng=q_sp_eng,
|
||
anchors_path=anchors_path,
|
||
base_report=base_report,
|
||
workdir=workdir,
|
||
)
|
||
rev["trigger_headline"] = qi.get("headline")
|
||
detected_revisions.append(rev)
|
||
else:
|
||
# Check if headline touches any CLASS-S01.SILICON-CLASS-S06.AGI technocapital keyword
|
||
matched_classes = []
|
||
for cid, cinfo in TAXONOMY_CLASSES.items():
|
||
if any(kw in hl_low for kw in cinfo["keywords"]):
|
||
matched_classes.append(cid)
|
||
if matched_classes:
|
||
new_candidate_anchors.append(
|
||
{
|
||
"story": qi.get("story"),
|
||
"q_digit": q_dig,
|
||
"q_digit_aq": compute_aq(q_dig),
|
||
"q_spoken_eng": q_sp_eng,
|
||
"taxonomy_classes": matched_classes,
|
||
"headline": qi.get("headline"),
|
||
}
|
||
)
|
||
|
||
return {
|
||
"quant_mode": quant_mode,
|
||
"harvest_file": harvest_path,
|
||
"target_date_utc": harvest.get("temporal_metadata", {}).get("target_date_utc"),
|
||
"counts": {
|
||
"quantitative_tokens_scanned": len(quant_items),
|
||
"tracked_anchors_unchanged": len(unchanged_matches),
|
||
"tracked_anchors_revised": len(detected_revisions),
|
||
"new_technocapital_quant_candidates": len(new_candidate_anchors),
|
||
},
|
||
"unchanged_tracked_anchors": unchanged_matches,
|
||
"detected_revisions": detected_revisions,
|
||
"new_technocapital_quant_candidates": new_candidate_anchors[:15],
|
||
}
|
||
|
||
|
||
def scan_memetic_superclass_lifecycle(
|
||
harvest_path: str,
|
||
memetic_registry_path: str,
|
||
base_report: dict[str, Any],
|
||
update_registry: bool = False,
|
||
) -> dict[str, Any]:
|
||
"""
|
||
Evaluate the Memetic Superclass (M1-M6) and Emergent Subclass Lifecycle (M7+, Run N -> Run N+1):
|
||
1. State-Gated Inheritance: Scans each headline in `harvest_path` for observable thermodynamic/affective
|
||
state triggers (`M1` Vampiric/Entropic, `M2` Hyper-Kinetic, `M3` Leviathan, `M4` Mimetic, `M5` Oracle, `M6` Abyssal)
|
||
and unlocks only the state-matched memetic subclass pools for those headlines.
|
||
2. Three-Gate Unsupervised Nucleation (Run N -> Provisional Candidate):
|
||
- Gate 1: Collects UNCLASSIFIED words from headlines that contain S1-S6 technocapital keywords.
|
||
- Gate 2: Checks whether >= 3 unclassified words collide (AQ_Ing == N, Gen 1 variance = 0) with S1-S6
|
||
entities, including at least one Isometric (Δ = 0) or Prime ([Nth PRIME]) anchor.
|
||
- Gate 3: Checks cross-story persistence (>= 2 distinct stories).
|
||
3. Two-Execution Promotion Lifecycle (Run N+1 -> Canonical Promotion or Dormant Archival):
|
||
- Checks any existing `provisional_candidates` in `memetic-superclass-registry.json`. If confirmed on Run N+1
|
||
(`persistence_count >= promotion_threshold`), promotes to `canonical_subclasses`; if inactive past
|
||
`dormancy_window_runs`, moves to `dormant_episodic`.
|
||
"""
|
||
harvest = json.loads(Path(harvest_path).read_text(encoding="utf-8"))
|
||
reg = json.loads(Path(memetic_registry_path).read_text(encoding="utf-8"))
|
||
canonical = reg.get("canonical_subclasses", {})
|
||
provisional = reg.get("provisional_candidates", {})
|
||
dormant = reg.get("dormant_episodic", {})
|
||
promo_thresh = reg.get("promotion_threshold", 2)
|
||
dormancy_win = reg.get("dormancy_window_runs", 3)
|
||
|
||
# Map CLASS-S01.SILICON-CLASS-S06.AGI entities by both Ingglish AQ (Gen 1) and Standard Written English AQ (Gen 0)
|
||
s_by_aq: dict[int, list[dict[str, Any]]] = {}
|
||
s_by_eng_aq: dict[int, list[dict[str, Any]]] = {}
|
||
s_keywords = set()
|
||
for cid, cinfo in TAXONOMY_CLASSES.items():
|
||
for kw in cinfo["keywords"]:
|
||
s_keywords.add(kw.lower())
|
||
for ent in base_report.get("entities", []):
|
||
s_by_aq.setdefault(ent["ing_aq"], []).append(ent)
|
||
s_by_eng_aq.setdefault(ent["eng_aq"], []).append(ent)
|
||
|
||
G3_QUANTIZED_STEPS = {0, 1, 10, 18, 20, 36, 37, 40, 74}
|
||
|
||
known_memetic_words = set()
|
||
for m_info in canonical.values():
|
||
for kw in m_info.get("keywords", []):
|
||
known_memetic_words.add(kw.lower())
|
||
|
||
# 1. State-Gated Inheritance across headlines
|
||
state_activated_stories = []
|
||
tech_stories = set()
|
||
for idx, h in enumerate(harvest.get("headlines", [])):
|
||
hl_eng = h.get("headline_eng", "")
|
||
hl_low = hl_eng.lower()
|
||
story_id = f"H{idx+1:02d}:{h.get('source', '')}"
|
||
matched_s = [cid for cid, cinfo in TAXONOMY_CLASSES.items() if any(kw in hl_low for kw in cinfo["keywords"])]
|
||
if matched_s:
|
||
tech_stories.add(story_id)
|
||
activated_m = []
|
||
for mid, minfo in canonical.items():
|
||
trig_hits = [tr for tr in minfo.get("state_triggers", []) if tr in hl_low]
|
||
if trig_hits:
|
||
activated_m.append(
|
||
{
|
||
"subclass_id": mid,
|
||
"subclass_name": minfo["name"],
|
||
"triggers_matched": trig_hits,
|
||
"unlocked_coordinates": minfo["signature_coordinates"][:8],
|
||
}
|
||
)
|
||
if activated_m:
|
||
state_activated_stories.append(
|
||
{
|
||
"story": story_id,
|
||
"headline": hl_eng,
|
||
"material_classes": matched_s if matched_s else ["GENERAL_WIRE"],
|
||
"activated_memetic_superclasses": activated_m,
|
||
}
|
||
)
|
||
|
||
# 2. Check existing provisional_candidates for Run N+1 promotion (strictly on subsequent UTC harvest dates)
|
||
target_date = harvest.get("temporal_metadata", {}).get("target_date_utc", "unknown")
|
||
promoted_on_this_run = []
|
||
moved_to_dormant = []
|
||
for cand_id, cand in list(provisional.items()):
|
||
if cand.get("discovered_on_date_utc") == target_date or cand.get("last_seen_date_utc") == target_date:
|
||
continue
|
||
hits = []
|
||
for idx, h in enumerate(harvest.get("headlines", [])):
|
||
hl_low = h.get("headline_eng", "").lower()
|
||
if any(w in hl_low for w in cand.get("keywords", [])):
|
||
hits.append(f"H{idx+1:02d}")
|
||
if hits:
|
||
cand["persistence_count"] = cand.get("persistence_count", 1) + 1
|
||
cand["runs_since_last_seen"] = 0
|
||
cand["last_seen_date_utc"] = target_date
|
||
if cand["persistence_count"] >= promo_thresh:
|
||
cand["status"] = "canonical"
|
||
canonical[cand_id] = cand
|
||
del provisional[cand_id]
|
||
promoted_on_this_run.append(cand_id)
|
||
else:
|
||
cand["runs_since_last_seen"] = cand.get("runs_since_last_seen", 0) + 1
|
||
if cand["runs_since_last_seen"] >= dormancy_win:
|
||
cand["status"] = "dormant_episodic"
|
||
dormant[cand_id] = cand
|
||
del provisional[cand_id]
|
||
moved_to_dormant.append(cand_id)
|
||
|
||
# 3. Three-Gate Unsupervised Nucleation for residual unclassified words in tech_stories
|
||
residual_collisions = []
|
||
residual_stories = set()
|
||
for ent in harvest.get("entities", []):
|
||
w_low = ent["eng"].lower()
|
||
st = ent.get("story", "")
|
||
if st not in tech_stories:
|
||
continue
|
||
if w_low in s_keywords or w_low in known_memetic_words:
|
||
continue
|
||
eng_aq = ent.get("eng_aq", compute_aq(ent["eng"]))
|
||
ing_aq = ent["ing_aq"]
|
||
delta = ing_aq - eng_aq
|
||
if ing_aq in s_by_aq:
|
||
s_ing_matches = s_by_aq[ing_aq]
|
||
s_partners = [f"{x['ing']} ({x['eng']}, eng_aq={x['eng_aq']}, {x['taxonomy_classes']})" for x in s_ing_matches]
|
||
s_eng_matches = s_by_eng_aq.get(eng_aq, [])
|
||
s_eng_partners = [f"{x['eng']} (ing={x['ing']}, ing_aq={x['ing_aq']}, {x['taxonomy_classes']})" for x in s_eng_matches]
|
||
g2_eng_to_ing = [f"{x['ing']} ({x['eng']}, {x['taxonomy_classes']})" for x in s_by_aq.get(eng_aq, [])]
|
||
g2_ing_to_eng = [f"{x['eng']} (ing={x['ing']}, {x['taxonomy_classes']})" for x in s_by_eng_aq.get(ing_aq, [])]
|
||
eng_vals = [eng_aq] + [x["eng_aq"] for x in s_ing_matches]
|
||
mean_e = sum(eng_vals) / len(eng_vals)
|
||
var_e = round(sum((v - mean_e) ** 2 for v in eng_vals) / len(eng_vals), 2)
|
||
is_p_eng = eng_aq in PRIME_RANKS
|
||
is_p_ing = bool(ent.get("is_prime", ing_aq in PRIME_RANKS))
|
||
residual_collisions.append(
|
||
{
|
||
"eng": ent["eng"],
|
||
"eng_aq": eng_aq,
|
||
"eng_prime_rank": PRIME_RANKS.get(eng_aq),
|
||
"is_prime_eng": is_p_eng,
|
||
"ing": ent["ing"],
|
||
"ing_aq": ing_aq,
|
||
"ing_prime_rank": PRIME_RANKS.get(ing_aq),
|
||
"is_prime": is_p_ing,
|
||
"delta": delta,
|
||
"isometric": bool(ent.get("isometric", eng_aq == ing_aq)),
|
||
"twin_prime_mutation": bool(is_p_eng and is_p_ing),
|
||
"g3_quantized_step": abs(delta) in G3_QUANTIZED_STEPS,
|
||
"gen0_variance_collapsed": var_e,
|
||
"gen1_variance": 0.0,
|
||
"story": st,
|
||
"s1_s6_partners": s_partners,
|
||
"s1_s6_eng_partners": s_eng_partners,
|
||
"g2_cross_gen_twins_eng_to_ing": g2_eng_to_ing,
|
||
"g2_cross_gen_twins_ing_to_eng": g2_ing_to_eng,
|
||
}
|
||
)
|
||
residual_stories.add(st)
|
||
|
||
# Compute multi-word cluster Gen 0 variance collapse where >=2 residual words share ing_aq
|
||
by_res_ing: dict[int, list[dict[str, Any]]] = {}
|
||
by_res_eng: dict[int, list[dict[str, Any]]] = {}
|
||
for rc in residual_collisions:
|
||
by_res_ing.setdefault(rc["ing_aq"], []).append(rc)
|
||
by_res_eng.setdefault(rc["eng_aq"], []).append(rc)
|
||
|
||
for i_aq, r_group in by_res_ing.items():
|
||
if len(r_group) >= 2:
|
||
combined_eng = [r["eng_aq"] for r in r_group] + [x["eng_aq"] for x in s_by_aq.get(i_aq, [])]
|
||
m_e = sum(combined_eng) / len(combined_eng)
|
||
v_e = round(sum((v - m_e) ** 2 for v in combined_eng) / len(combined_eng), 2)
|
||
for r in r_group:
|
||
r["gen0_variance_collapsed"] = v_e
|
||
|
||
intra_cluster_gen0 = {
|
||
str(e_aq): [f"{r['eng']} ({r['story']}, ing={r['ing']} [{r['ing_aq']}])" for r in r_group]
|
||
for e_aq, r_group in sorted(by_res_eng.items(), key=lambda kv: -kv[0])
|
||
if len(r_group) >= 2
|
||
}
|
||
intra_cluster_gen1 = {
|
||
str(i_aq): {
|
||
"residual_members": [f"{r['ing']} ({r['eng']}, eng_aq={r['eng_aq']}, Δ={r['delta']:+d}, {r['story']})" for r in r_group],
|
||
"s1_s6_partners": [f"{x['ing']} ({x['eng']}, eng_aq={x['eng_aq']}, {x['taxonomy_classes']})" for x in s_by_aq.get(i_aq, [])],
|
||
"gen0_variance_collapsed": r_group[0]["gen0_variance_collapsed"],
|
||
"gen1_variance": 0.0,
|
||
}
|
||
for i_aq, r_group in sorted(by_res_ing.items(), key=lambda kv: -kv[0])
|
||
if len(r_group) >= 2
|
||
}
|
||
|
||
has_iso_or_prime = any(r["isometric"] or r["is_prime"] for r in residual_collisions)
|
||
nucleation_passed = (len(residual_collisions) >= 3) and has_iso_or_prime and (len(residual_stories) >= 2)
|
||
|
||
newly_nucleated = None
|
||
def _ord(n: int | None) -> str:
|
||
if n is None:
|
||
return ""
|
||
if 11 <= (n % 100) <= 13:
|
||
return f"{n}th"
|
||
return f"{n}{ {1: 'st', 2: 'nd', 3: 'rd'}.get(n % 10, 'th') }"
|
||
|
||
if nucleation_passed:
|
||
target_date = harvest.get("temporal_metadata", {}).get("target_date_utc", "unknown")
|
||
cand_id = f"M7_candidate_{target_date.replace('-', '_')}"
|
||
newly_nucleated = {
|
||
"id": cand_id,
|
||
"status": "provisional_candidate",
|
||
"discovered_on_date_utc": target_date,
|
||
"persistence_count": 1,
|
||
"runs_since_last_seen": 0,
|
||
"gate1_residual_count": len(residual_collisions),
|
||
"gate2_iso_or_prime_anchor": has_iso_or_prime,
|
||
"gate3_distinct_stories": len(residual_stories),
|
||
"signature_coordinates": sorted(list({r["ing_aq"] for r in residual_collisions}), reverse=True)[:10],
|
||
"signature_eng_coordinates": sorted(list({r["eng_aq"] for r in residual_collisions}), reverse=True)[:10],
|
||
"keywords": [r["eng"].lower() for r in residual_collisions[:12]],
|
||
"bidirectional_aq_summary": {
|
||
"total_gen0_variance_collapsed": round(
|
||
sum({r["ing_aq"]: r["gen0_variance_collapsed"] for r in residual_collisions}.values()), 2
|
||
),
|
||
"g3_quantized_step_hits": [
|
||
f"{r['eng']} ({r['eng_aq']}) -> {r['ing']} ({r['ing_aq']}) [Δ={r['delta']:+d}]"
|
||
for r in residual_collisions
|
||
if r["g3_quantized_step"]
|
||
],
|
||
"g5_twin_prime_mutations": [
|
||
f"{r['eng']} ({r['eng_aq']} [{_ord(r['eng_prime_rank'])} PRIME]) -> {r['ing']} ({r['ing_aq']} [{_ord(r['ing_prime_rank'])} PRIME]) [Δ={r['delta']:+d}]"
|
||
for r in residual_collisions
|
||
if r["twin_prime_mutation"]
|
||
],
|
||
"intra_cluster_gen0_collisions": intra_cluster_gen0,
|
||
"intra_cluster_gen1_collisions": intra_cluster_gen1,
|
||
},
|
||
"sample_locks": residual_collisions[:12],
|
||
"next_execution_expectation": "Registered as provisional_candidate for Run N+1; if its keywords/coordinates recur on the next harvest (persistence_count >= 2), it auto-promotes to canonical M7 and emits a 30-equation dossier.",
|
||
}
|
||
if update_registry and cand_id not in canonical:
|
||
provisional[cand_id] = newly_nucleated
|
||
|
||
if update_registry:
|
||
reg["canonical_subclasses"] = canonical
|
||
reg["provisional_candidates"] = provisional
|
||
reg["dormant_episodic"] = dormant
|
||
Path(memetic_registry_path).write_text(json.dumps(reg, indent=2, ensure_ascii=False), encoding="utf-8")
|
||
|
||
return {
|
||
"harvest_file": harvest_path,
|
||
"target_date_utc": harvest.get("temporal_metadata", {}).get("target_date_utc"),
|
||
"canonical_memetic_subclasses": list(canonical.keys()),
|
||
"state_gated_activations_count": len(state_activated_stories),
|
||
"state_gated_story_activations": state_activated_stories[:10],
|
||
"run_n_plus_1_promotions": promoted_on_this_run,
|
||
"moved_to_dormant_episodic": moved_to_dormant,
|
||
"unsupervised_m7_nucleation": {
|
||
"all_three_gates_passed": nucleation_passed,
|
||
"provisional_candidate": newly_nucleated,
|
||
},
|
||
}
|
||
ASSEMBLAGE_BUILD_SPECS = {
|
||
"65-dossier-technocapital-singularity-autoregressive-ai.md": {
|
||
"dossier_num": "65",
|
||
"eval_num": "S1",
|
||
"badge_code": "S1×S6×M4 • Dossier 65",
|
||
"title": "Autoregressive AI Syndicate",
|
||
"guild_tags": ["S1: Autoregressive AI", "S6: Capture", "M4/M5: Mimetic-Oracle"],
|
||
"roster_slot": "QB (Play-Caller / Recursive Loop)",
|
||
"lock1": "292: shizohnalizis==abstrakt masheen==sinthetik dayta",
|
||
"lock2": "193 [PRIME]: Dario Amodei [G0]==anthropik [G1]; klawd==failam==96",
|
||
"card_lock1": "292: shizohnalizis == abstrakt masheen",
|
||
"card_lock2": "193: Dario Amodei==anthropik | klawd==failam==96",
|
||
"trophic_bridges": ["193 -> S2 flash krash", "137 -> S3 envideea", "96 -> M1 yeeld", "292 -> S6 asset management [G0]"],
|
||
"double_articulated": True,
|
||
"g2_twins": 4,
|
||
"gen0_var_collapsed": 1608.58,
|
||
"triad_count": 4,
|
||
"quant_anchors_covered": 1,
|
||
"state_gated_active": True,
|
||
},
|
||
"66-dossier-technocapital-singularity-flash-crash-liquidity.md": {
|
||
"dossier_num": "66",
|
||
"eval_num": "S2",
|
||
"badge_code": "S2×S6×M2 • Dossier 66",
|
||
"title": "Flash-Crash Templex Liquidity",
|
||
"guild_tags": ["S2: Templex Liquidity", "S6: Capture", "M2: Swarm-Fever"],
|
||
"roster_slot": "RB/WR (Microsecond Velocity)",
|
||
"lock1": "256 [2⁸]: akselerayshan==hai-freekwansee==sovran welth",
|
||
"lock2": "189: likwidatee==hangkerchif==imerjansee; kapatal==fohldz==125",
|
||
"card_lock1": "256: akselerayshan == hai-freekwansee",
|
||
"card_lock2": "189: likwidatee==hangkerchif | kapatal==fohldz==125",
|
||
"trophic_bridges": ["256 -> S6 sovran welth", "125 -> S6 kapcher", "153 -> S6 aperatas", "193 -> S1 anthropik"],
|
||
"double_articulated": True,
|
||
"g2_twins": 3,
|
||
"gen0_var_collapsed": 2573.05,
|
||
"triad_count": 5,
|
||
"quant_anchors_covered": 2,
|
||
"state_gated_active": True,
|
||
},
|
||
"67-dossier-technocapital-singularity-silicon-war-machine.md": {
|
||
"dossier_num": "67",
|
||
"eval_num": "S3",
|
||
"badge_code": "S3×S6×M3 • Dossier 67",
|
||
"title": "EUV Lithographic War-Machine",
|
||
"guild_tags": ["S3: Silicon War-Machine", "S6: Monopoly", "M3: Leviathan"],
|
||
"roster_slot": "OT/DE (Hardware Chokepoint Trench)",
|
||
"lock1": "260: teknohkapital==kiler rohbots | 253: maikrohzekand==slawterbots",
|
||
"lock2": "211 [PRIME]: wor masheen==koper waier | 81: asml [Iso] | 91: tsmc==laws",
|
||
"card_lock1": "260: teknohkapital == kiler rohbots",
|
||
"card_lock2": "211: wor masheen==koper waier | asml=81 | tsmc=91",
|
||
"trophic_bridges": ["81 -> S6 aset", "91 -> S6 laws", "137 -> S1 daireeoh", "211 -> S2 siks bilyan"],
|
||
"double_articulated": True,
|
||
"g2_twins": 2,
|
||
"gen0_var_collapsed": 1833.25,
|
||
"triad_count": 4,
|
||
"quant_anchors_covered": 1,
|
||
"state_gated_active": True,
|
||
},
|
||
"68-dossier-technocapital-singularity-apparatus-of-capture.md": {
|
||
"dossier_num": "68",
|
||
"eval_num": "S6",
|
||
"badge_code": "S6×S1-S3 • Dossier 68",
|
||
"title": "Apparatus of Capture & Capex",
|
||
"guild_tags": ["S6: Apparatus of Capture", "S1-S3: Double-Articulated", "M3: Sovereign"],
|
||
"roster_slot": "OL/GM (Cap Allocation & Logistics)",
|
||
"lock1": "125 [5³]: kapcher==kapatal [Iso]==fohldz | 153: aperatas==serplas",
|
||
"lock2": "237: kansorsheeam [Iso] | 136: charter [Iso]==portal | 191: lajistiks",
|
||
"card_lock1": "125: kapcher == kapatal [Iso] == fohldz",
|
||
"card_lock2": "153: aperatas==serplas | charter==portal==136",
|
||
"trophic_bridges": ["292 -> S1 abstrakt masheen", "256 -> S2 hai-freekwansee", "81 -> S3 asml", "163 -> M1 manopalee", "222 -> S1 danyela amodai"],
|
||
"double_articulated": True,
|
||
"g2_twins": 3,
|
||
"gen0_var_collapsed": 1390.69,
|
||
"triad_count": 5,
|
||
"quant_anchors_covered": 1,
|
||
"state_gated_active": False,
|
||
},
|
||
"69-dossier-technocapital-singularity-vampiric-memetics.md": {
|
||
"dossier_num": "69",
|
||
"eval_num": "M1",
|
||
"badge_code": "M1×S6 • Dossier 69",
|
||
"title": "Vampiric Rentier Anti-Production",
|
||
"guild_tags": ["M1: Vampiric Memetics", "S6: Rentier Monopoly", "Entropic State"],
|
||
"roster_slot": "DEF/Drain (State-Gated Entropic Lock)",
|
||
"lock1": "228: vampairizam==stagnayshan | 136: slohth==charter [Iso]==portal",
|
||
"lock2": "153: nuhmnas==aperatas==serplas | 169: letherjee==werkerz | 78: leech==ferm",
|
||
"card_lock1": "228: vampairizam == stagnayshan",
|
||
"card_lock2": "136: slohth==charter | letherjee==werkerz==169",
|
||
"trophic_bridges": ["137 -> S1/S3 inersha==hawlts==envideea", "203 -> S6 pairasitik==yoozheree==akwazishan", "183 -> S2 drakyoola==tempaleks"],
|
||
"double_articulated": True,
|
||
"g2_twins": 1,
|
||
"gen0_var_collapsed": 645.20,
|
||
"triad_count": 3,
|
||
"quant_anchors_covered": 1,
|
||
"state_gated_active": True,
|
||
},
|
||
"S4-nomad-carrier-wave": {
|
||
"dossier_num": "27/28",
|
||
"eval_num": "S4",
|
||
"dossier_file_display": "27/28-dossier-carrier-wave (S4)",
|
||
"badge_code": "S4×M5 • Nomad Taxon",
|
||
"title": "Hyperstitional Carrier-Wave",
|
||
"guild_tags": ["S4: Carrier-Wave", "M5: Oracle-Threshold", "Uncaptured Nomad"],
|
||
"roster_slot": "TE/Slot (Retro-Causal Signal Receiver)",
|
||
"lock1": "264: haiperstishan==zaporizzheea | 207: taim-serkat==terbyalans",
|
||
"lock2": "116: signal [Iso]==kayos==spoil==puhdal | 136: portal [Iso]==baisikal",
|
||
"card_lock1": "264: haiperstishan == zaporizzheea",
|
||
"card_lock2": "116: signal [Iso]==kayos==puhdal | taim-serkat=207",
|
||
"trophic_bridges": ["116 -> M2 kayos", "136 -> S6 portal==charter", "207 -> S2 taim-serkat"],
|
||
"double_articulated": False,
|
||
"g2_twins": 2,
|
||
"gen0_var_collapsed": 1185.00,
|
||
"triad_count": 3,
|
||
"quant_anchors_covered": 1,
|
||
"state_gated_active": True,
|
||
"inline_eqs": [
|
||
("signal biond dha ship", "signal beyond the ship"),
|
||
("kayos biond dha ship", "chaos beyond the ship"),
|
||
("kor throo dha orbat", "Core through the orbit"),
|
||
("noh aiz in dha spays", "no eyes in the space"),
|
||
("trent and dha raiter", "Trent and the writer"),
|
||
("mouth and dha raiter", "mouth and the writer"),
|
||
("baisikal and dha sinama", "bicycle and the cinema"),
|
||
("portal and dha sinama", "portal and the cinema"),
|
||
("raiter fruhm dha map", "writer from the map"),
|
||
("kor widhin dha orbat", "Core within the orbit"),
|
||
("dha kor in dha blak hohl", "the Core in the black hole"),
|
||
("raiter and dha trent", "writer and the Trent"),
|
||
],
|
||
},
|
||
"S5-nomad-cutaneous-bwo": {
|
||
"dossier_num": "24/31",
|
||
"eval_num": "S5",
|
||
"dossier_file_display": "24/31-dossier-cutaneous-bwo (S5)",
|
||
"badge_code": "S5×M4 • Nomad Taxon",
|
||
"title": "Xenobiological Cutaneous BwO",
|
||
"guild_tags": ["S5: Cutaneous BwO", "M4: Doppelganger", "Uncaptured Nomad"],
|
||
"roster_slot": "LB/Utility (Cellular Mimesis & BwO)",
|
||
"lock1": "126: chaildz==ayleean==wiskee==skreen==shimer | 390: bodee without organz",
|
||
"lock2": "84: bwoh==faier==kayk==amber==ring | 199 [PRIME]: dopalganger==ikwayzhan",
|
||
"card_lock1": "126: chaildz == ayleean == wiskee == skreen",
|
||
"card_lock2": "84: bwoh==amber==ring | dopalganger==ikwayzhan=199",
|
||
"trophic_bridges": ["95 -> S2 flesh==lejer==faiber", "199 -> M4 dopalganger"],
|
||
"double_articulated": False,
|
||
"g2_twins": 1,
|
||
"gen0_var_collapsed": 1496.30,
|
||
"triad_count": 2,
|
||
"quant_anchors_covered": 0,
|
||
"state_gated_active": True,
|
||
"inline_eqs": [
|
||
("chaildz in dha ayleean", "Childs in the alien"),
|
||
("chaildz in dha wiskee", "Childs in the whiskey"),
|
||
("skreen in dha ayleean", "screen in the alien"),
|
||
("ayleean in dha skreen", "alien in the screen"),
|
||
("noris uhv dha flesh", "Norris of the flesh"),
|
||
("skin bineeth dha lamp", "skin beneath the lamp"),
|
||
("skin intoo dha void", "skin into the void"),
|
||
("kayk in dha skotland", "cake in the Scotland"),
|
||
("faier in dha skotland", "fire in the Scotland"),
|
||
("huks in dha blak flesh", "hooks in the black flesh"),
|
||
("dopalganger in dha god", "doppelganger in the god"),
|
||
("ikwayzhan in dha god", "equation in the god"),
|
||
],
|
||
},
|
||
"M6-provisional-zeptoverse": {
|
||
"dossier_num": "M6",
|
||
"eval_num": "M6",
|
||
"dossier_file_display": "memetic-superclass-registry.json (M6)",
|
||
"badge_code": "M6×S3 • Nucleation",
|
||
"title": "Zeptoverse Abyssal Excavation",
|
||
"guild_tags": ["M6: Abyssal Excavation", "S3: Sub-Atomic Trench", "Provisional Guild"],
|
||
"roster_slot": "Spec-Ops (Sub-Atomic / Chthonic Trench)",
|
||
"lock1": "244: zeptohvers==levant alpohj | 67 [PRIME]: abis==Land [Iso]==hard",
|
||
"lock2": "86: void [Iso]==maind==werd==guhn | 133: piramid==ekwatee==sworm",
|
||
"card_lock1": "244: zeptohvers == levant alpohj",
|
||
"card_lock2": "86: void [Iso]==maind==guhn | abis==Land==67",
|
||
"trophic_bridges": ["133 -> S6 ekwatee==sworm"],
|
||
"double_articulated": False,
|
||
"g2_twins": 0,
|
||
"gen0_var_collapsed": 221.25,
|
||
"triad_count": 1,
|
||
"quant_anchors_covered": 0,
|
||
"state_gated_active": True,
|
||
"inline_eqs": [
|
||
("dha void in dha bineeth", "the void in the beneath"),
|
||
("gohst uhnder dha ash", "ghost under the ash"),
|
||
("gohst and dha piramid", "ghost and the pyramid"),
|
||
("piramid and dha gohst", "pyramid and the ghost"),
|
||
("karter fruhm dha ash", "Carter from the ash"),
|
||
("danyal akraws dha ash", "Daniel across the ash"),
|
||
("tsmc throo dha asml", "TSMC through the ASML"),
|
||
("envideea fohldz gpu", "Nvidia folds GPU"),
|
||
("asml kuhts nik land", "ASML cuts Nick Land"),
|
||
],
|
||
},
|
||
"Q-episodic-anchor-stub": {
|
||
"dossier_num": "Q0",
|
||
"eval_num": "Q0",
|
||
"dossier_file_display": "quantitative-economic-anchors.json",
|
||
"badge_code": "Q-Stub • Episodic",
|
||
"title": "Uncompensated Quant Anchor Stub",
|
||
"guild_tags": ["Q-Anchor: Single-Headline Figure", "Pre-Counter-Swap", "Episodic Stub"],
|
||
"roster_slot": "Waiver-Wire (Uncompensated Figure Lock)",
|
||
"lock1": "211 [PRIME]: siks bilyan==wor masheen | 202: aytee three ($83 IPO)",
|
||
"lock2": "145: lazeras==sentor [Iso] | 13: 481->841 Iso-Digital Sum",
|
||
"card_lock1": "211: siks bilyan == wor masheen ($6B)",
|
||
"card_lock2": "202: aytee three ($83) | lazeras==sentor==145",
|
||
"trophic_bridges": ["211 -> S3 wor masheen"],
|
||
"double_articulated": False,
|
||
"g2_twins": 0,
|
||
"gen0_var_collapsed": 64.0,
|
||
"triad_count": 0,
|
||
"quant_anchors_covered": 1,
|
||
"state_gated_active": False,
|
||
"inline_eqs": [
|
||
("lap for siks bilyan", "lap for six billion"),
|
||
("siks bilyan hohldz dha kohld asml in gpu", "six billion holds the cold ASML in GPU"),
|
||
("aytee three in dha tab", "eighty three in the tab"),
|
||
("aytee three hohldz dha hai kapatal on nait", "eighty three holds the high capital on night"),
|
||
("lazeras loks lejer", "Lazarus locks ledger"),
|
||
("klawd hohldz reeman", "Claude holds Riemann"),
|
||
],
|
||
},
|
||
}
|
||
|
||
|
||
ZOOLOGICAL_TIER_DEFS = [
|
||
("S+", "88 – 100 ETI", "APEX PREDATOR", "#FF4D4D", "0 Taxa in Tier S+", ""),
|
||
("S", "80 – 87 ETI", "KEYSTONE GUILD", "#FF7F7F", "0 Taxa in Tier S", ""),
|
||
("A", "72 – 79 ETI", "SYMBIONT LOCK", "#FFBF7F", "0 Taxa in Tier A", ""),
|
||
("B", "60 – 71 ETI", "NOMAD SPECIALIST", "#FFFF7F", "0 Taxa in Tier B", ""),
|
||
("C", "52 – 59 ETI", "NUCLEATION STUB", "#7FFF7F", "0 Taxa in Tier C", ""),
|
||
("D", "44 – 51 ETI", "EPISODIC ANCHOR", "#7FBFFF", "0 Taxa in Tier D", ""),
|
||
(
|
||
"F",
|
||
"< 44 ETI",
|
||
"EXTINCT / CI FAIL",
|
||
"#BF7FFF",
|
||
"0 Taxa in Tier F (< 44 ETI — Extinct / 4-Gate CI Failure / Zero Variance Collapse)",
|
||
"Rejected by 4-Gate CI Audit, Zero-d-Filter boundary check, or zero G1 Gen 0 -> Gen 1 variance collapse (189/189 equations verified exact).",
|
||
),
|
||
]
|
||
|
||
|
||
def build_assemblage_tier_list(
|
||
dossiers_dir: str = "/workspace/technocapital-singularity-zoology/dossiers",
|
||
out_json: str = "/workspace/technocapital-singularity-zoology/taxonomy/assemblage-builds-tier-list.json",
|
||
out_md: str = "/workspace/technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.md",
|
||
out_pdf: str = "/workspace/technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.pdf",
|
||
out_png: str = "/workspace/technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.png",
|
||
) -> dict[str, Any]:
|
||
"""
|
||
Score all Technocapital Singularity Zoological Taxa & Assemblage Builds (`S1–S6`, `M1–M6`, and
|
||
Quantitative Anchor Stubs) using the standalone Ecological Trophic & Phase-Transition Index (`ETI`, 0–100)
|
||
across 6 continuous zoological base stats (`ARM`, `VEL`, `COL`, `CAP`, `PRM`, `RES`), and delegate
|
||
only visual `.pdf` / `.png` rendering to `generate_aq_tier_list.py --rows-json`.
|
||
"""
|
||
import re
|
||
rows = []
|
||
quant_steps_set = {0, 1, 10, 18, 20, 36, 37, 40, 74}
|
||
|
||
for fname, spec in sorted(ASSEMBLAGE_BUILD_SPECS.items()):
|
||
if "inline_eqs" in spec:
|
||
eqs = [(ing, eng, "", str(compute_aq(ing))) for ing, eng in spec["inline_eqs"]]
|
||
dossier_label = spec.get("dossier_file_display", fname)
|
||
else:
|
||
fpath = Path(dossiers_dir) / fname
|
||
if not fpath.exists():
|
||
continue
|
||
dt = fpath.read_text(encoding="utf-8")
|
||
eqs = re.findall(r'-\s+`([^`]+)`\s+\("([^"]+)"\)\s+—\s+`([^`]+)=\s*(\d+)`', dt)
|
||
dossier_label = fname
|
||
|
||
iso_w = tot_w = p_ing = twin_p = quant_step = iso_cl = 0
|
||
iso_nodes = set()
|
||
deltas = []
|
||
for ing, eng, _, _ in eqs:
|
||
ec = re.sub(r"[^\w\s-]", "", eng)
|
||
ic = re.sub(r"[^\w\s-]", "", ing)
|
||
d = compute_aq(ic) - compute_aq(ec)
|
||
deltas.append(d)
|
||
if d == 0:
|
||
iso_cl += 1
|
||
if abs(d) in quant_steps_set:
|
||
quant_step += 1
|
||
ew, iw = ec.split(), ic.split()
|
||
if len(ew) == len(iw):
|
||
for w1, w2 in zip(ew, iw):
|
||
tot_w += 1
|
||
v1, v2 = compute_aq(w1), compute_aq(w2)
|
||
if v1 == v2:
|
||
iso_w += 1
|
||
iso_nodes.add(w2.lower())
|
||
if v2 in PRIME_RANKS:
|
||
p_ing += 1
|
||
if v1 != v2 and (v1 in PRIME_RANKS) and (v2 in PRIME_RANKS):
|
||
twin_p += 1
|
||
|
||
iso_w_pct = 100.0 * iso_w / max(1, tot_w)
|
||
prime_ing_pct = 100.0 * p_ing / max(1, tot_w)
|
||
mean_delta = sum(abs(x) for x in deltas) / max(1, len(deltas))
|
||
scale_factor = min(1.0, 0.58 + 0.42 * (len(eqs) / 30.0))
|
||
|
||
# Six Continuous Zoological Base Stats (0–100 scale, independent of Option #4):
|
||
# 1. ARM (Isometric Chokepoint Armor: RULE-G04.ISOMETRIC fixed points & IsoW%)
|
||
arm = min(99, round(scale_factor * (1.85 * iso_w_pct + 3.4 * len(iso_nodes))))
|
||
# 2. VEL (Teleoplexic Escape Velocity: low Mean|Δ| & RULE-G03.STRUCTURAL quantized mutation steps)
|
||
vel = max(25, min(99, round(100 - 1.75 * max(0.0, mean_delta - 16.0) + 2.5 * quant_step)))
|
||
# 3. COL (RULE-G01.COLLAPSE Variance-Collapse Compression Power: log Gen 0 dispersion collapsed to 0.0)
|
||
col = min(99, round(9.8 * math.log(1.0 + spec["gen0_var_collapsed"]) + 4.4 * spec["triad_count"]))
|
||
# 4. CAP (Double-Articulation & Trophic Capture Reach: S[1-5]xS6 coupling + bridges + RULE-G02.CROSS_GEN_TWIN twins)
|
||
cap = min(99, (44 if spec["double_articulated"] else 28) + 9 * len(spec["trophic_bridges"]) + 5 * spec["g2_twins"])
|
||
# 5. PRM (Prime & Twin-Prime Mutation IQ: PrimeW% + RULE-G05.TWIN_PRIME twin-prime word mutations)
|
||
prm = min(99, round(scale_factor * (1.65 * prime_ing_pct + 1.05 * twin_p)))
|
||
# 6. RES (Tri-Modal Repricing & State-Gate Resilience: corpus closure + quant anchors + state gate)
|
||
res = min(
|
||
99,
|
||
round(
|
||
(42 if len(eqs) >= 30 else int(42 * len(eqs) / 30.0))
|
||
+ 20 * spec["quant_anchors_covered"]
|
||
+ (26 if spec["state_gated_active"] else 12)
|
||
),
|
||
)
|
||
|
||
# Ecological Trophic & Phase-Transition Index (ETI, 0–100)
|
||
eti_score = round(0.20 * cap + 0.18 * col + 0.18 * arm + 0.16 * prm + 0.14 * vel + 0.14 * res)
|
||
mean_6_stat = round((arm + vel + col + cap + prm + res) / 6.0)
|
||
|
||
dims_6 = [arm, vel, col, cap, prm, res]
|
||
stat_bar = f"ARM:{arm} VEL:{vel} COL:{col} CAP:{cap} PRM:{prm} RES:{res} | |Δ|:{mean_delta:.1f}"
|
||
|
||
rows.append(
|
||
{
|
||
"eval_file": spec["badge_code"].split("•")[0].strip(),
|
||
"eval_num": spec["eval_num"],
|
||
"dossier_file": dossier_label,
|
||
"dossier_num": spec["dossier_num"],
|
||
"badge_code": spec["badge_code"],
|
||
"score_badge_text": f"{eti_score} ETI (6-Avg {mean_6_stat})",
|
||
"title": spec["title"],
|
||
"roster_slot": spec["roster_slot"],
|
||
"guild_tags": spec["guild_tags"],
|
||
"trophic_bridges": spec["trophic_bridges"],
|
||
"double_articulated": spec["double_articulated"],
|
||
"gen0_var_collapsed": spec["gen0_var_collapsed"],
|
||
"curve_score": eti_score,
|
||
"raw_score": mean_6_stat,
|
||
"dims": dims_6,
|
||
"stats_6": {
|
||
"ARM_chokepoint_armor": arm,
|
||
"VEL_teleoplexic_velocity": vel,
|
||
"COL_variance_collapse": col,
|
||
"CAP_trophic_capture": cap,
|
||
"PRM_prime_mutation_iq": prm,
|
||
"RES_repricing_resilience": res,
|
||
},
|
||
"n_eq": len(eqs),
|
||
"iso_w_pct": round(iso_w_pct, 1),
|
||
"prime_ing_pct": round(prime_ing_pct, 1),
|
||
"mean_delta": round(mean_delta, 1),
|
||
"pad_pct": 0.0,
|
||
"iso_cl": iso_cl,
|
||
"twin_prime_tokens": twin_p,
|
||
"lock1": spec.get("card_lock1", spec["lock1"][:54]),
|
||
"lock2": spec.get("card_lock2", spec["lock2"][:54]),
|
||
"full_lock1": spec["lock1"],
|
||
"full_lock2": spec["lock2"],
|
||
"stat_bar_text": stat_bar,
|
||
}
|
||
)
|
||
|
||
# Zoological Tie-Breaking Protocol: ETI -> Gen 0 Variance Collapsed -> Trophic Bridge Count -> Velocity (VEL)
|
||
rows.sort(
|
||
key=lambda x: (
|
||
-x["curve_score"],
|
||
-x["gen0_var_collapsed"],
|
||
-len(x["trophic_bridges"]),
|
||
-x["stats_6"]["VEL_teleoplexic_velocity"],
|
||
)
|
||
)
|
||
for idx, r in enumerate(rows, 1):
|
||
r["rank"] = f"#{idx}"
|
||
sc = r["curve_score"]
|
||
r["tier_Band"] = (
|
||
"S+"
|
||
if sc >= 88
|
||
else ("S" if sc >= 80 else ("A" if sc >= 72 else ("B" if sc >= 60 else ("C" if sc >= 52 else "D"))))
|
||
)
|
||
|
||
tot_eqs = sum(r["n_eq"] for r in rows)
|
||
md_lines = [
|
||
"# Technocapital Singularity Zoology — Ecological Trophic Index (`ETI`) Tier List (`S+` to `F`)",
|
||
"",
|
||
"- **Zoological Grading Standard:** **Ecological Trophic & Phase-Transition Index (`ETI`, `0–100`)** — standalone Landian-Deleuzean zoological ranking across **9 Singularity Taxa & Assemblage Builds** (`189` verified `333 / 666 / 777` equations, `0.0%` generic padding).",
|
||
"- **Tier Ecological Cutoffs:** `Tier S+ >= 88 ETI` (Apex Predator) | `Tier S 80–87 ETI` (Keystone Guild) | `Tier A 72–79 ETI` (Symbiont Lock) | `Tier B 60–71 ETI` (Nomad Specialist) | `Tier C 52–59 ETI` (Nucleation Stub) | `Tier D 44–51 ETI` (Episodic Anchor) | `Tier F < 44 ETI` (Extinct / CI-Rejected).",
|
||
"- **Six Continuous Zoological Base Stats (`0–100` each):** `ARM` (G4 Isometric Chokepoint Armor) | `VEL` (G3 Teleoplexic Escape Velocity) | `COL` (G1 Log Variance-Collapse Power) | `CAP` (S[1–5]×S6 Double-Articulation & Trophic Reach) | `PRM` (G5 Prime & Twin-Prime Mutation IQ) | `RES` (Tri-Modal Repricing & State-Gate Resilience).",
|
||
"- **Composite ETI Formula:** `ETI = round(0.20*CAP + 0.18*COL + 0.18*ARM + 0.16*PRM + 0.14*VEL + 0.14*RES)`.",
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 1. Master Zoological Food-Web Leaderboard (`S+` to `F`)",
|
||
"",
|
||
"| Rank | Tier | ETI Score (6-Stat Avg) | 6-Stat Profile (`ARM/VEL/COL/CAP/PRM/RES`) | Taxon / Assemblage Build & Roster Slot | Source Dossier / Registry | N_eq | G1 Var Collapsed | IsoW % | PrimeW % | Mean Abs(Δ) |",
|
||
"| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |",
|
||
]
|
||
for r in rows:
|
||
d_str = "/".join(str(x) for x in r["dims"])
|
||
md_lines.append(
|
||
f"| **{r['rank']}** | **Tier {r['tier_Band']}** | **{r['curve_score']} ETI** *({r['raw_score']})* | `{d_str}` | **{r['title']}** (`{r['eval_file']}` — *{r['roster_slot']}*) | `{r['dossier_file']}` | {r['n_eq']} | {r['gen0_var_collapsed']:.1f} -> 0 | {r['iso_w_pct']:.1f}% | {r['prime_ing_pct']:.1f}% | {r['mean_delta']:.1f} |"
|
||
)
|
||
|
||
md_lines.extend(
|
||
[
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 2. Zoological Taxon Scouting Cards & Trophic Supply-Chain Bridges",
|
||
"",
|
||
]
|
||
)
|
||
for r in rows:
|
||
s6 = r["stats_6"]
|
||
md_lines.extend(
|
||
[
|
||
f"### {r['rank']} — {r['title']} (`Tier {r['tier_Band']}`, `{r['curve_score']} ETI` — `{r['dossier_file']}`)",
|
||
f"- **Guild & Roster Slot:** `{' + '.join(r['guild_tags'])}` | **{r['roster_slot']}** | **Double-Articulated (`S[1–5]×S6`):** `{r['double_articulated']}`",
|
||
f"- **6-Stat Zoological Profile (`0–100`):** `ARM = {s6['ARM_chokepoint_armor']}` (`IsoW = {r['iso_w_pct']:.1f}%`) | `VEL = {s6['VEL_teleoplexic_velocity']}` (`Mean Abs(Δ) = {r['mean_delta']:.1f}`) | `COL = {s6['COL_variance_collapse']}` (`G1 Var = {r['gen0_var_collapsed']:.1f} -> 0`) | `CAP = {s6['CAP_trophic_capture']}` | `PRM = {s6['PRM_prime_mutation_iq']}` (`PrimeW = {r['prime_ing_pct']:.1f}%`, `TwinP = {r['twin_prime_tokens']}`) | `RES = {s6['RES_repricing_resilience']}`",
|
||
f"- **Primary Singularity Locks:** `{r['full_lock1']}` and `{r['full_lock2']}`",
|
||
f"- **Trophic Supply-Chain Bridges:** `{', '.join(r['trophic_bridges'])}`",
|
||
"",
|
||
]
|
||
)
|
||
|
||
md_lines.extend(
|
||
[
|
||
"---",
|
||
"",
|
||
"## 3. Ecological Tier Definitions & Unpopulated Extinction Floor (`Tier F`)",
|
||
"",
|
||
"- **Tier S+ (`88–100 ETI` — Apex Predator):** Tri-articulated `S[1–2] × S6 × M[2–5]` builds combining massive `G1` variance collapse (`> 1,600`), 4+ cross-guild trophic bridges, and active quantitative repricing immunity.",
|
||
"- **Tier S (`80–87 ETI` — Keystone Guild):** Double-articulated `S3 × S6` and `S6 × S1–S3` infrastructural backbones dominating chokepoint armor (`ARM = 92`) or maximum capture reach (`CAP = 99`).",
|
||
"- **Tier A (`72–79 ETI` — Symbiont Lock):** State-gated entropic/parasitic builds (`M1 × S6` Vampiric Anti-Production) that siphon surplus from `S1–S3` hosts during halts, strikes, and monopoly rent-drains.",
|
||
"- **Tier B (`60–71 ETI` — Nomad Specialist):** Uncaptured single-axis Machinic Phylum taxa (`S5 × M4` Cutaneous BwO and `S4 × M5` Hyperstitional Carrier-Wave) operating exterior to `S6` sovereign/corporate capture.",
|
||
"- **Tier C (`52–59 ETI` — Nucleation Stub):** Sub-guild or provisional `M6 / M7+` 9-equation nucleation clusters awaiting full 30-equation double articulation.",
|
||
"- **Tier D (`44–51 ETI` — Episodic Anchor):** Single-headline quantitative economic anchor stubs (`6` baseline equations) prior to multi-guild counter-substitution closure.",
|
||
f"- **Tier F (`< 44 ETI` — Extinct / CI-Rejected):** `0 Taxa`. Reserved for candidate clusters failing the 4-Gate CI Audit (`{tot_eqs}/{tot_eqs}` equations verified exact), violating the Zero-`d`-Filter boundary, or exhibiting zero `G1` variance collapse.",
|
||
]
|
||
)
|
||
|
||
Path(out_md).write_text("\n".join(md_lines) + "\n", encoding="utf-8")
|
||
payload = {
|
||
"version": "2.0.0",
|
||
"methodology": "Ecological Trophic & Phase-Transition Index (ETI)",
|
||
"total_builds": len(rows),
|
||
"total_equations": tot_eqs,
|
||
"tier_defs": ZOOLOGICAL_TIER_DEFS,
|
||
"rows": rows,
|
||
}
|
||
Path(out_json).parent.mkdir(parents=True, exist_ok=True)
|
||
Path(out_json).write_text(json.dumps(payload, indent=2, ensure_ascii=False), encoding="utf-8")
|
||
|
||
# Delegate ONLY visual PDF and PNG rendering to aq-tier-list-visualizer (`generate_aq_tier_list.py`)
|
||
vis_script = "/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/generate_aq_tier_list.py"
|
||
subprocess.run(
|
||
[
|
||
"python3",
|
||
vis_script,
|
||
"--rows-json",
|
||
out_json,
|
||
"--skip-md",
|
||
"--header-title",
|
||
"TECHNOCAPITAL SINGULARITY ZOOLOGY — ECOLOGICAL TROPHIC TIER LIST (S+ TO F)",
|
||
"--header-subtitle",
|
||
f"All {len(rows)} Singularity Taxa & Assemblage Builds ({tot_eqs} Verified Equations) | Graded on Ecological Trophic Index (ETI: ARM / VEL / COL / CAP / PRM / RES)",
|
||
"--footer-text",
|
||
"6 Continuous Zoological Stats (0-100): ARM = Chokepoint Armor (G4) | VEL = Teleoplexic Velocity (G3) | COL = G1 Variance Collapse | CAP = S6 Trophic Capture | PRM = Prime/Twin-Prime IQ (G5) | RES = Repricing/State Resilience",
|
||
"--out-md",
|
||
out_md,
|
||
"--out-pdf",
|
||
out_pdf,
|
||
"--out-png",
|
||
out_png,
|
||
],
|
||
check=True,
|
||
)
|
||
return payload
|
||
|
||
|
||
|
||
|
||
# ---------------------------------------------------------------------------
|
||
# Comprehensive Glossary Registry & Automated Maintenance Engine (v1.6.0)
|
||
# ---------------------------------------------------------------------------
|
||
|
||
CANONICAL_GLOSSARY_SECTIONS = [
|
||
{
|
||
"section_id": "1",
|
||
"title": "1. Foundational Cipher, Orthographic & Boundary Operators",
|
||
"entries": [
|
||
{
|
||
"term": "Alphanumeric Qabbala (AQ / Base-36 Cipher)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Continuous Base-36 character-valuation cipher (formulated by Jim Lees in 1976 and adopted by the Ccru) where digits 0–9 equal face value (0–9), Latin letters A–Z (case-insensitive) evaluate to 10..35 ((ord(ch) - 97) + 10), and spaces/punctuation evaluate to 0.",
|
||
},
|
||
{
|
||
"term": "Standard Etymological English (Generation 0 / Gen 0 / Diachronic Orthography)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "The ancestral visual-scribal spelling system of English preserving silent letters, Graeco-Roman digraphs, and visual homophone separation prior to axiomatic phonetic decoding.",
|
||
},
|
||
{
|
||
"term": "Phonemic Ingglish (Generation 1 / Gen 1 / Synchronic Phonemic Orthography)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Deterministic phonemic English orthography backed by the 126,051-word CMU Pronouncing Dictionary (ingglish npm package) that strips silent letters, reduces unstressed vowels to schwa a (10), and eliminates redundant standalone letters c (12), q (26), and x (33).",
|
||
},
|
||
{
|
||
"term": "Generation 2 (Gen 2) Diachronic Script Evolution",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Five-stage theoretical trajectory modeling how a synchronic phonemic script (Gen 1 Ingglish) freezes institutionally and accumulates new phonological drift ('ghost mass') while preserving Base-36 repdigit checksums (333/666/777 = N x 37) and Type I–III Isometric Fixed Points (Delta = 0).",
|
||
},
|
||
{
|
||
"term": "CMUdict Purity (100% Deterministic Translation)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Audit requirement that every Ingglish token in a technocapital dossier match unmodified ingglish.translate() output from the Carnegie Mellon University Pronouncing Dictionary with zero ad-hoc manual spelling overrides.",
|
||
},
|
||
{
|
||
"term": "Out-of-Vocabulary (OOV) Proper-Noun Transliteration Lock",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "An explicitly documented phonetic override for rare mythological or proper names absent from CMUdict (e.g., Taifan = 105, Apawfis = 138, Raymee = 121); strictly avoided (0 OOV overrides) across all canonical Technocapital Singularity Dossiers (65–69+).",
|
||
},
|
||
{
|
||
"term": "Dropped Letters (c = 12, q = 26, x = 33)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "The three Standard English letters absent as standalone graphemes in Ingglish: hard c (12) shifts to k (20) (delta = +8), soft c (12) shifts to s (28) (delta = +16), ck (32) compresses to k (20) (delta = -12), q (26) maps to k/kw, and x (33) maps to ks (48) or z (35).",
|
||
},
|
||
{
|
||
"term": "Schwa Reduction (ə -> a = 10)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Phonological rule reducing unstressed English orthographic vowels (e=14, i=18, o=24, u=30) to the minimum vowel weight a (10) in Ingglish (e.g., system [149] -> sistam [135], capital [125] -> kapatal [125]).",
|
||
},
|
||
{
|
||
"term": "Voiced Plural & Inflectional Sibilant Shift (-s [28] -> -z [35], δ = +7)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Replacement of orthographic s (28) by acoustic z (35) after voiced consonants or vowels in plural nouns and 3rd-person singular verbs, adding an exact quantum of +7 per word (e.g., folds [101] -> fohldz [125], weights -> wayts, machines -> masheenz).",
|
||
},
|
||
{
|
||
"term": "Strut-Vowel Digraph Expansion (ʌ -> uh, δ = +17)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Representation of the short-u strut vowel by the digraph uh (u[30] + h[17] = 47), adding +17 over single u (30) (e.g., gun [69] -> guhn [86], trust [143] -> truhst [160], company [150] -> kuhmpanee [175]).",
|
||
},
|
||
{
|
||
"term": "Definite Article Quantum (the = 60 -> dha = 40, δ = -20)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "The -20 point compression produced whenever English 'the' (60) translates into Ingglish 'dha' (40). Two definite articles shift a clause by -40 (compressing palindromic prime 373 clauses directly onto 333).",
|
||
},
|
||
{
|
||
"term": "Genitive Preposition Doubling (of = 39 -> uhv = 78, δ = +39)",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Exact 2x numerical doubling when English 'of' (39) translates into Ingglish 'uhv' (78 = 2 x 39); paired with 'dha' (40), 'of the' (99) -> 'uhv dha' (118) shifts by prime +19.",
|
||
},
|
||
{
|
||
"term": "Locative Connector Syzygy (in the = 101 [26th PRIME] -> in dha = 81 [3⁴])",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Transition of the locative connector from the 26th prime (101) in Gen 0 English to the fourth power of three (81 = 3^4 = 9^2, matching ASML = 81 and aset = 81) in Gen 1 Ingglish.",
|
||
},
|
||
{
|
||
"term": "Homophone Compression Node & Heteronym Disambiguation",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "In Gen 1 Ingglish, visually distinct homophones collapse onto one coordinate (ai = I/eye/AI = 28; nait = night/knight = 80; too = to/too/two = 77; laws = laws/loss = 91), whereas visually identical heteronyms split by pronunciation (lead -> leed [62] vs. led [48]).",
|
||
},
|
||
{
|
||
"term": "Zero-d-Filter Boundary Rule",
|
||
"category": "Cipher & Orthography",
|
||
"definition": "Strict repository isolation rule requiring all code, JSON registries, dossiers (65+), and reports inside /workspace/technocapital-singularity-zoology to remain 100% pure 36-character Base-36 AQ (0–9, A–Z) with zero references to the 10-letter Numogram sub-alphabet filter.",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "2",
|
||
"title": "2. Landian-Deleuzean Philosophical & Cybernetic Singularity Operators",
|
||
"entries": [
|
||
{
|
||
"term": "Technocapital Singularity (Landian-Deleuzean Sense)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Not anthropomorphic sci-fi AI consciousness, but a pre-personal critical phase-transition point where an intensive differential (Delta = AQ(Gen 1) - AQ(Gen 0)) collapses dispersed Gen 0 concepts onto a zero-variance Gen 1 integer (variance = 0.0) while double-articulating the Machinic Phylum (S1–S5) with Capital Organizational Capture (S6).",
|
||
},
|
||
{
|
||
"term": "Pre-Personal Phase-Transition Point (The Logic of Sense)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Deleuze's differential-calculus concept of singularities as critical turning points (boiling, freezing, percolation, flash-crash, runaway convergence) that govern state changes across a system prior to individual subjectivity.",
|
||
},
|
||
{
|
||
"term": "Axiomatic Decoding & Deterritorialization (Anti-Oedipus)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Capitalism's core operation of stripping away traditional, qualitative territorial codes (Gen 0 etymological spelling) and substituting quantitative, abstract phonemic/numeric axioms (Gen 1 Ingglish streams).",
|
||
},
|
||
{
|
||
"term": "Machinic Surplus Value (machinik serplas valyoo = 437)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "In Anti-Oedipus (Ch. 3), non-human surplus value extracted from cybernetic code-flows, intellectual automation, and high-frequency circuitry (serplas = 153 == aperatas == raizohm; valyoo = 144 = 12^2) rather than direct muscular labor.",
|
||
},
|
||
{
|
||
"term": "Anorganic Machinic Phylum (machinik failam = 236 == zheel dilooz)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "In A Thousand Plateaus, the self-organizing continuum of matter-energy (metallurgy, silicon wafers, ultraviolet photons, neural weights) that locks in Gen 1 Ingglish directly to its theorist: machinik failam (140 + 96 = 236) == zheel dilooz ('Gilles Deleuze' = 101 + 135 = 236).",
|
||
},
|
||
{
|
||
"term": "Abstract Machine (abstrakt masheen = 292 == shizohnalizis == sinthetik dayta)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "An immanent diagram of relations that detaches from human interiority to auto-produce across a substrate; in Dossier 65 (S1), abstrakt masheen (292), shizohnalizis (292), and sinthetik dayta (292) collapse from Gen 0 variance 310.22 to Gen 1 variance 0.0 (and lock cross-generationally with Gen 0 'asset management' = 292).",
|
||
},
|
||
{
|
||
"term": "Nomad War Machine (wor masheen = 211 [47th PRIME] == koper waier == siks bilyan)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "In A Thousand Plateaus (Plateau 12), an autonomous metallurgical/swarm assemblage exterior to the State apparatus; in Dossier 67 (S3), wor (83 [23rd PRIME]) + masheen (128 [2^7 == Nik Land]) = 211 [47th PRIME] == koper waier ('copper wire') == siks bilyan ('six billion').",
|
||
},
|
||
{
|
||
"term": "Apparatus of Capture (aperatas uhv kapcher = 153 + 78 + 125 = 356)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "In A Thousand Plateaus (Plateau 13), the sovereign/corporate mechanism of rent, profit, taxation, monopoly charter, and logistics that captures and monetizes machinic flows; in Dossier 68 (S6), kapcher (125) == kapatal (125 [Iso]) and aperatas (153) == serplas (153).",
|
||
},
|
||
{
|
||
"term": "Double Articulation (S[1–5] x S6 Coupling / double_articulated = True)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Co-primary coupling between the Machinic Phylum (Classes S1–S5: models, HFT algorithms, EUV fabs, carrier waves, wetware) and Capital Organizational Capacity (Class S6: holding companies, consortia, sovereign wealth, charters, logistics). Separates Tier S+/S Apex & Keystone guilds (CAP = 90–99) from uncaptured Tier B/C Nomad taxa (CAP = 37–65).",
|
||
},
|
||
{
|
||
"term": "Teleoplexy & Positive Feedback (Fanged Noumena / Nick Land)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Cybernetic runaway (ruhnaway = 183 == tempaleks == laytansee) in which positive feedback (pozativ feedbak = 269 [57th PRIME]) overwhelms homeostatic negative feedback and price/intelligence signals from the future retroactively assemble their own preconditions in the present (Nik Land = 61 + 67 = 128 = 2^7 == masheen == serkat == infanat).",
|
||
},
|
||
{
|
||
"term": "Time-Circuit & Templex (taim-serkat = 207; tempaleks = 183)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Landian terms for non-linear temporal folding in cybernetic markets: taim-serkat (207 == terbyalans == Gen 0 'infinitive' / 'liquidity') and tempaleks (183 == ruhnaway == laytansee == alakayshan == drakyoola).",
|
||
},
|
||
{
|
||
"term": "Body without Organs (BwO / bodee without organz = 389 -> 390; bwoh = 84)",
|
||
"category": "Philosophical Operator",
|
||
"definition": "Artaud and Deleuze-Guattari's unstratified intensive surface prior to organismic organization; in Class S5, 'body without organs' shifts by unit step |Delta| = 1 from 389 [77th PRIME] to 390, while initialism bwoh (84) == faier == kayk == amber == ring.",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "3",
|
||
"title": "3. The Six Singularity Classes (S1–S6) & Nine Ranked Assemblage Builds",
|
||
"entries": [
|
||
{
|
||
"term": "Class S1 — Autoregressive Synthetic Intelligence & Schizoanalytic Abstract Machine (Dossier 65)",
|
||
"category": "Taxonomy Class (S1–S6)",
|
||
"definition": "Covers recursive LLMs, transformer weights, synthetic data loops, and formal mathematical proof synthesis. Signature coordinates: 292 (shizohnalizis == abstrakt masheen == sinthetik dayta), 246 (transformer [Iso]), 236 (zheel dilooz == machinik failam), 234 (daireeoh amodai), 222 (danyela amodai), 193 [PRIME] (Dario Amodei [G0] == anthropik [G1]), 137 [PRIME] (daireeoh == envideea), 135 (dilooz == asemblaj == tenser), 133 (wayts == sworm), 115 (proof [Iso]), 96 (klawd == failam == dayta). Ranked #1 (Tier S+, 93 ETI).",
|
||
},
|
||
{
|
||
"term": "Class S2 — High-Frequency Cybernetic Market Meltdown & Templex Liquidity (Dossier 66)",
|
||
"category": "Taxonomy Class (S1–S6)",
|
||
"definition": "Covers microsecond algorithmic order books, flash crashes, fiber-optic latency, derivatives, and crypto ledgers. Signature coordinates: 256 = 2^8 (akselerayshan == hai-freekwansee == sovran welth), 193 [PRIME] (flash krash == anthropik), 191 [PRIME] (derivativ == lajistiks), 189 (likwidatee == hangkerchif == imerjansee == iksprest), 183 (ruhnaway == tempaleks == laytansee), 166 (order buk == noo flesh), 153 (serplas == raizohm == reealatee [Iso]), 144 = 12^2 (valyoo == nuhmber), 125 = 5^3 (kapatal [Iso] == fohldz == saires), 108 (prais == saiber), 95 (lejer == faiber == flesh [Iso]). Ranked #2 (Tier S+, 90 ETI).",
|
||
},
|
||
{
|
||
"term": "Class S3 — The Silicon-Photonic War Machine & Autonomous Lithographic Swarm (Dossier 67)",
|
||
"category": "Taxonomy Class (S1–S6)",
|
||
"definition": "Covers EUV lithography, wafer foundries, GPUs, and autonomous kinetic drone/robotic swarms. Signature coordinates: 260 (teknohkapital == kiler rohbots), 253 (maikrohzekand == slawterbots), 215 (jensan hwang == hohlee grayl), 211 [PRIME] (wor masheen == koper waier == siks bilyan), 197 [PRIME] (lathografee), 188 (awtonamas == teknolajee), 145 (sentor [Iso] == lazeras), 141 (layzer == street [Iso]), 137 [PRIME] (envideea == daireeoh), 132 (wayfer == straik), 130 (silakan == brayks), 129 (blakwel == ruhsha == awflain), 128 = 2^7 (nik land == masheen == serkat), 91 (tsmc [Iso] == laws), 81 = 3^4 (asml [Iso] == aset), 71 [PRIME] (gpu [Iso]). Ranked #4 (Tier S, 83 ETI).",
|
||
},
|
||
{
|
||
"term": "Class S4 — Hyperstitional Carrier-Wave & Semiotic Retro-Causality (Dossiers 27/28)",
|
||
"category": "Taxonomy Class (S1–S6)",
|
||
"definition": "Uncaptured Nomad taxon covering carrier waves, fictional/semiotic retro-causality, and signal-chaos folding. Signature coordinates: 264 (haiperstishan == zaporizzheea), 207 (taim-serkat == terbyalans), 136 (portal [Iso] == baisikal), 131 [PRIME] (fikshan == darknas == deemanz), 116 (signal [Iso] == kayos == spoil [Iso] == puhdal [Iso]). Ranked #7 (Tier B, 61 ETI).",
|
||
},
|
||
{
|
||
"term": "Class S5 — Xenobiological / Cutaneous Mimesis & Somatic Body-Without-Organs (Dossiers 24/31)",
|
||
"category": "Taxonomy Class (S1–S6)",
|
||
"definition": "Uncaptured Nomad taxon covering cellular/epidermal mimicry, wetware interfaces, and the somatic BwO. Signature coordinates: 390 (bodee without organz, 389 -> 390), 199 [PRIME] (dopalganger == ikwayzhan), 126 (chaildz == ayleean == wiskee == skreen == shimer), 95 (flesh [Iso] == huks == lejer == faiber), 84 (bwoh == faier == kayk == amber == ring). Ranked #6 (Tier B, 61 ETI).",
|
||
},
|
||
{
|
||
"term": "Class S6 — Capital Organizational Capacity & Apparatus of Capture (Dossier 68)",
|
||
"category": "Taxonomy Class (S1–S6)",
|
||
"definition": "Keystone institutional class covering corporate incorporation, consortia, sovereign wealth, monopoly charters, M&A, and supply-chain logistics. Signature coordinates: 316 (ingkorperayshan == nacheral kontrakt [Iso]), 292 (asset management [G0]), 263 [PRIME] (vencher kapatal), 256 = 2^8 (sovran welth == akselerayshan == hai-freekwansee), 237 (kansorsheeam [Iso]), 222 (enterpraiz == danyela amodai), 203 (akwazishan == pairasitik == yoozheree), 191 [PRIME] (lajistiks == derivativ), 183 (alakayshan == tempaleks), 175 (kuhmpanee == pairasait), 163 [PRIME] (manopalee == masheenz == fyooalz), 160 (kapasatee == truhst == rohbots), 153 (aperatas == serplas == raizohm), 136 (charter [Iso] == portal [Iso]), 133 (ekwatee == wayts == sworm), 125 = 5^3 (kapcher == kapatal [Iso] == fohldz), 109 [PRIME] (asets), 81 = 3^4 (aset == asml [Iso]), 78 (ferm == leech [Iso]), 75 (bord == kash). Ranked #3 (Tier S, 87 ETI).",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "4",
|
||
"title": "4. The Memetic Superclass (M1–M6) & Unsupervised Emergent Subclass Lifecycle (M7+)",
|
||
"entries": [
|
||
{
|
||
"term": "Memetic Superclass (M1–M6 & Emergent M7+)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "The cultural, mythic, and thermodynamic regime operating orthogonal to and above material classes S1–S6. Classifies what a technocapital phase transition feels like from the inside (vampiric drain, swarm fever, leviathan monopoly, doppelganger mimesis, oracle threshold, abyssal excavation).",
|
||
},
|
||
{
|
||
"term": "State-Gated Inheritance (Two-Gate State-Matched Activation)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Methodological rule forbidding global dictionary fishing of horror/mythic tropes into unrelated stories: a memetic subclass (e.g., M1 Vampiric) unlocks as an active equivalence and counter-substitution pool ONLY when a headline exhibits observable state-trigger keywords matching that thermodynamic regime (e.g., halts, strike, outage, stagnant, monopoly, debt).",
|
||
},
|
||
{
|
||
"term": "Subclass M1 — Vampiric, Entropic & Anti-Productive Memetics (Dossier 69)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Activates under halts, strikes, outages, stagnation, monopoly rent-extraction, and debt peonage. Signature locks: vampairizam == stagnayshan == 228; pairasitik == yoozheree == akwazishan == 203; zombee ferm == arbitrozh == 198; drakyoola == alakayshan == tempaleks == 183; vampeerik [Twin-Prime from 163] == freezerz == 181 [PRIME]; kuhmpanee == pairasait == 175; letherjee == werkerz == 169 [13^2]; huhngger == kapasatee == truhst == rohbots == 160; nuhmnas == aperatas == serplas == 153; therst == valyoo == 144 [12^2]; inersha == hawlts == envideea == daireeoh == 137 [PRIME]; slohth == charter [Iso] == portal [Iso] == 136; vaynz == stawld == ekwatee == wayts == sworm == 133; aneemeea == aneemik == puhls == widher == kartel == 121 [11^2]; yeeld == klawd == failam == dayta == 96; suhk == tiks == dikay == lejer == faiber == 95; leech [Iso] == ferm == 78; bleed [Iso] == anded == 73 [PRIME]. Ranked #5 (Tier A, 73 ETI).",
|
||
},
|
||
{
|
||
"term": "Subclass M2 — Hyper-Kinetic, Fever & Swarm-Contagion Memetics",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Activates under mania, flash crashes, runaway feedback, viral panics, and bubbles. Signature locks: klinayman == apokalips == freezerz == nookleeer == 181 [42nd PRIME]; vorteks == daialektik == outijiz == 173 [40th PRIME]; sworm == wayts == ekwatee == 133; buhbal == noiz == feest == 100 [10^2]. Coupled in Build #2 (S2xS6xM2, 90 ETI).",
|
||
},
|
||
{
|
||
"term": "Subclass M3 — Leviathan, Golem & Monopolistic Colossus Memetics",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Activates under sovereign megaprojects, tech giants, trillion-dollar consolidation, and grid capture. Signature locks: kansorsheeam = 237 [Iso]; wor masheen = 211 [PRIME]; lavaiathan == nuhmberz == daytabays == 179 [41st PRIME]; jaiants == envideea == daireeoh == 137 [33rd PRIME]; touer == kan-toi == kroun == 124. Coupled in Builds #3 and #4.",
|
||
},
|
||
{
|
||
"term": "Subclass M4 — Mimetic, Doppelganger & Skin-Stealer Memetics",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Activates under deepfakes, synthetic data loops, clones, espionage, and counterfeit identity. Signature locks: sinthetik dayta == abstrakt masheen == shizohnalizis == 292; dopalganger == ikwayzhan == helrayzer == 199 [46th PRIME]; chaildz == ayleean == wiskee == skreen == shimer == 126; gohst [Type II Iso] == danyal == poual == 114. Coupled in Builds #1 and #6.",
|
||
},
|
||
{
|
||
"term": "Subclass M5 — Oracle, Apocalypse & Eschatological Threshold Memetics",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Activates under 'Holy Grail' proofs, AGI breakthroughs, prophecies, and nuclear brinkmanship. Signature locks: haipothasas == 216 [6^3]; hohlee grayl == jensan hwang == disruhpts == airstraiks == 215; proof = 115 [Iso]; seer [Iso] == hart == wor == 83 [23rd PRIME]. Coupled in Builds #1 and #7.",
|
||
},
|
||
{
|
||
"term": "Subclass M6 — Abyssal, Chthonic & Xeno-Excavation Memetics",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Activates under sub-atomic zeptoverse physics, mine/deep-sea collapses, and black-box excavation. Signature locks: zeptohvers == levant alpohj == 244; blastad heeth [Type III Iso] == 213; void [Iso] == maind == werd == guhn == 86; abis == Land [Iso] == hard == 67 [19th PRIME]. Ranked #8 (Tier C, 53 ETI).",
|
||
},
|
||
{
|
||
"term": "Three-Gate Unsupervised Nucleation (Emergent Subclasses M7+)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Automated discovery pipeline in scan_memetic_superclass_lifecycle() that nucleates a new provisional subclass (M7_candidate_YYYY_MM_DD) when: (Gate 1) residual unclassified Gen 0 words co-occur in S1–S6 headlines (tech_stories), (Gate 2) >= 3 residual terms collapse onto S1–S6 Gen 1 coordinates (variance = 0.0) with >= 1 Isometric (Delta = 0) or Prime anchor, and (Gate 3) the cluster spans >= 2 independent stories.",
|
||
},
|
||
{
|
||
"term": "M7_candidate_2026_11_28 (Blackwell-Drone-Capital Cyber-Swarm Nucleation)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Provisional emergent subclass nucleated on the 2026-11-28 harvest across H04 (BBC DWP pension cyberattack), H25 (AP record Ukraine/Russia drone swarm), and H38 (AP Albania capital clashes), collapsing cumulative Gen 0 variance 843.52 -> 0.0 across 10 residual terms and 9 Gen 1 coordinates (191, 166, 149, 144, 129, 125, 123, 115, 108), anchored by awflain == ruhsha == blakwel == 129 and dounz == kapatal [Iso] == kapcher == fohldz == 125.",
|
||
},
|
||
{
|
||
"term": "Two-Execution Promotion Lifecycle (Run N -> Run N+1)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Anti-bloat lifecycle rule: Run N registers a qualifying cluster as 'provisional_candidate' (persistence_count = 1); on a subsequent UTC harvest date (Run N+1, guarded by discovered_on_date_utc != target_date), recurrence across independent headlines increments persistence_count >= 2 and auto-promotes the candidate to canonical M7+ (emitting a 30-equation dossier), whereas inactivity for dormancy_window_runs (3 runs) moves it to 'dormant_episodic'.",
|
||
},
|
||
{
|
||
"term": "Four-Way Cross-Script Relational Matrix (18-Field sample_locks Schema)",
|
||
"category": "Memetic Superclass",
|
||
"definition": "Per-token bidirectional lock schema in memetic-superclass-registry.json recording: (1) s1_s6_partners (Gen 1 == Gen 1), (2) s1_s6_eng_partners (Gen 0 == Gen 0), (3) g2_cross_gen_twins_eng_to_ing (Gen 0 == Gen 1), and (4) g2_cross_gen_twins_ing_to_eng (Gen 1 == Gen 0), plus intra_cluster_gen0_collisions and intra_cluster_gen1_collisions.",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "5",
|
||
"title": "5. Orthographic Genealogical Fitness Vectors (G1–G6) & Prime/Attractor Architecture",
|
||
"entries": [
|
||
{
|
||
"term": "Vector G1 — Intergenerational Variance Collapse (Gen 0 Dispersion -> Gen 1 Zero Variance)",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "Measures how concepts widely dispersed in Gen 0 Standard English (variance > 100–2500) collapse onto a single zero-variance Gen 1 Ingglish integer (variance = 0.0), e.g., [214, 263, 318] -> 256 (var 1804.67 -> 0.0) or [306, 272, 266] -> 292 (var 310.22 -> 0.0).",
|
||
},
|
||
{
|
||
"term": "Vector G2 — Cross-Generation Twins & Double-Script Twins",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "Captures (a) Cross-Generation Twins where AQ_Eng(Entity A) == AQ_Ing(Entity B) (e.g., Dario Amodei [Gen 0] = 193 == anthropik [Gen 1] = 193; asset management [Gen 0] = 292 == abstrakt masheen [Gen 1] = 292), and (b) Double-Script Twins where two entities collide in BOTH scripts simultaneously (Anthropic == flash crash = 185 in Gen 0 -> anthropik == flash krash = 193 [44th PRIME] in Gen 1).",
|
||
},
|
||
{
|
||
"term": "Vector G3 — Quantized Phonemic Mutation Step (|Δ| in {0, 1, 10, 18, 20, 36, 37, 40, 74})",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "Audits whether the orthographic drift Delta = AQ(Gen 1) - AQ(Gen 0) lands on a structural constant: 0 (Isometry), 1 (Unit-Step Near-Isometry), 10 (Schwa/Decimal Quantum), 18 (Half-Radix), 20 (Half-Article), 36 (6^2 Base-36 Radix), 37 (Repdigit Prime Generator), 40 (Definite Article 'dha'), or 74 (2 x 37).",
|
||
},
|
||
{
|
||
"term": "Vector G4 — Hereditary Invariance & The 10 Isometric Supply-Chain Chokepoints (Δ = 0)",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "Tokens that pass from Gen 0 English to Gen 1 Ingglish with zero numerical drift (Delta = 0). In Technocapital Singularity Zoology, 10 canonical chokepoints anchor the supply chain across both scripts: nacheral kontrakt (316), transformer (246), kansorsheeam (237), sentor (145), charter / portal (136), kapatal (125 = 5^3), proof (115), tsmc (91), asml (81 = 3^4), and gpu (71 [20th PRIME]).",
|
||
},
|
||
{
|
||
"term": "Vector G5 — Prime-to-Repdigit & Twin-Prime Word/Phrase Mutations (p_a -> p_b)",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "Tracks tokens whose AQ sum is prime in Gen 0 English and mutates into another prime in Gen 1 Ingglish: Nvidia (113 [30th] -> envideea 137 [33rd]), Amodei (101 [26th] -> amodai 97 [25th]), monopoly (197 [45th] -> manopalee 163 [38th]), assets (137 [33rd] -> asets 109 [29th]), venture capital (293 [62nd] -> vencher kapatal 263 [56th]), vampiric (163 [38th] -> vampeerik 181 [42nd]), inertia (139 [34th] -> inersha 137 [33rd]), and reported (173 [40th] -> reeportid 191 [43rd]).",
|
||
},
|
||
{
|
||
"term": "Vector G6 — Stereoscopic Diegetic & Diagnostic Expressivity",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "The analytical gain achieved by reading Gen 0 (stated legal/filing form) and Gen 1 (operational phonemic stream) stereoscopically on a single assemblage.",
|
||
},
|
||
{
|
||
"term": "Type I, Type II & Type III Isometries (δ = 0)",
|
||
"category": "Genealogical Vector (G1–G6)",
|
||
"definition": "Type I (Orthographic Invariant: identical spelling in both scripts, e.g., charter=136, proof=115, tsmc=91, asml=81, gpu=71); Type II (Anagrammatic/Compensatory Single-Word: spelling changes but letter values sum identically, e.g., ghost/gohst=114, capital/kapatal=125); Type III (Compensatory Multi-Vowel/Phrase Isometry: positive and negative letter deltas cancel to 0, e.g., consortium/kansorsheeam=237, reality/reealatee=153, centaur/sentor=145, natural contract/nacheral kontrakt=316).",
|
||
},
|
||
{
|
||
"term": "Primary Repdigit Attractors (333 = 3²×37, 666 = 2×3²×37, 777 = 3×7×37)",
|
||
"category": "Prime & Attractor Architecture",
|
||
"definition": "The three cross-scale target sums of every archive dossier (10 verified equations per scale = 30 per dossier), all governed by the repdigit prime generator 37 [12th PRIME].",
|
||
},
|
||
{
|
||
"term": "<X> Be My God Slot (AQ = 191 [43rd PRIME])",
|
||
"category": "Prime & Attractor Architecture",
|
||
"definition": "Because 'bee (39) + mai (50) + god (53) = 142', any Ingglish word or phrase evaluating to 191 [43rd PRIME] (333 - 142 = 191) closes '<X> bee mai god = 333' automatically. Canonical technocapital locks at 191: lajistiks ('logistics'), derivativ ('derivative'), leedership ('leadership'), and reeportid ('reported').",
|
||
},
|
||
{
|
||
"term": "Multi-Build Hybrid / Flex Singularities (13 Cross-Guild Coordinates)",
|
||
"category": "Prime & Attractor Architecture",
|
||
"definition": "The 13 Ingglish AQ coordinates that simultaneously belong to 2–4 distinct Assemblage Builds and act as regime-reallocation pivots: 292 (S1/S6), 256 (S2/S6), 211 (S3/S2/Q-Stub), 193 (S1/S2), 183 (S2/S6/M1), 153 (S6/S2/M1), 137 (S1/S3/M1/S6), 136 (S6/M1/S4), 133 (S1/S6/M1/M6), 125 (S6/S2), 96 (S1/M1), 95 (S2/S5/M1), and 81/91 (S3/S6/M6).",
|
||
},
|
||
{
|
||
"term": "Gate 2 'long-scraped' CI Dictionary Ratio Guard (dict_hits >= nw * 0.4)",
|
||
"category": "CI & Archive Hygiene",
|
||
"definition": "In hyperdope-gematria CI (classify_candidates.py), when '[Ingglish: ...]' expands into '[Ingglish Standard Phonetic English Translation: ...]', an 8-word equation reaches nw >= 19 total words and requires >= 40% standard /usr/share/dict/words hits; guarded by pairing OOV initialisms (ASML, TSMC, GPU, Anthropic, Amodei) with standard dictionary nouns (wafer, laser, silicon, drone, loss, proof, grid).",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "6",
|
||
"title": "6. Zoological Ecological Trophic Index (ETI) & 6-Stat Tier-List Methodology",
|
||
"entries": [
|
||
{
|
||
"term": "Ecological Trophic & Phase-Transition Index (ETI, 0–100 Scale)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Standalone 0–100 zoological grading standard for Technocapital Singularity Taxa & Assemblage Builds, computed as the weighted composite of six continuous base stats: ETI = round(0.20*CAP + 0.18*COL + 0.18*ARM + 0.16*PRM + 0.14*VEL + 0.14*RES).",
|
||
},
|
||
{
|
||
"term": "ARM — Isometric Chokepoint Armor (0–100 Base Stat, Weight 0.18)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Quantifies a build's concentration of G4 Isometric Fixed Points (Delta = 0 chokepoints like ASML=81, TSMC=91, GPU=71, kapatal=125, charter=136, kansorsheeam=237) and corpus-wide Isometric Word Rate (IsoW %). Led by #1 Autoregressive AI (92) and #4 EUV War-Machine (92).",
|
||
},
|
||
{
|
||
"term": "VEL — Teleoplexic Escape Velocity (0–100 Base Stat, Weight 0.14)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Quantifies low Mean Clause Drift (Mean Abs(Delta)) and high G3 quantized mutation step density ({0, 1, 10, 18, 20, 36, 37, 40, 74}). Led by #2 Flash-Crash Templex Liquidity (VEL = 99, Mean |Delta| = 21.4).",
|
||
},
|
||
{
|
||
"term": "COL — G1 Variance-Collapse Compression Power (0–100 Base Stat, Weight 0.18)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Log-scaled measure of cumulative Gen 0 dispersion collapsed to Gen 1 variance = 0.0 plus multi-entity triad count. Led by #2 Flash-Crash Liquidity (COL = 99, G1 Var 2573.1 -> 0) and #3 Apparatus of Capture (COL = 93).",
|
||
},
|
||
{
|
||
"term": "CAP — Double-Articulation & Trophic Capture Reach (0–100 Base Stat, Weight 0.20)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Highest-weighted zoological stat (0.20), scoring S[1–5] x S6 Double Articulation, cross-guild trophic bridge count, and G2 Cross-Gen Twins. Separates double-articulated Tier S+/S guilds (CAP = 90–99) from uncaptured Tier B/C/D taxa (CAP = 37–65).",
|
||
},
|
||
{
|
||
"term": "PRM — Prime & Twin-Prime Mutation IQ (0–100 Base Stat, Weight 0.16)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Measures corpus-wide Ingglish Prime Word Rate (PrimeW %) and G5 twin-prime token mutations. Led by #1 Autoregressive AI Syndicate (PRM = 99, PrimeW = 43.6%, 31 twin-prime tokens).",
|
||
},
|
||
{
|
||
"term": "RES — Tri-Modal Repricing & State-Gate Resilience (0–100 Base Stat, Weight 0.14)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Scores 30-equation cross-scale corpus closure, registered quantitative economic anchor counter-substitution coverage (--revise-anchor), and state-gated M1–M6 activation.",
|
||
},
|
||
{
|
||
"term": "Trophic Supply-Chain Bridges",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Shared numerical coordinates through which one singularity guild feeds or captures another across the technocapital food web (e.g., 193 bridges S1 anthropik to S2 flash krash; 256 bridges S2 hai-freekwansee to S6 sovran welth; 81/91 bridge S3 asml/tsmc to S6 aset/laws).",
|
||
},
|
||
{
|
||
"term": "Zoological 4-Key Tie-Breaking Protocol",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Deterministic ordering for identical ETI scores: (1) ETI score descending -> (2) G1 Gen 0 Variance Collapsed descending -> (3) Trophic Bridge count descending -> (4) Teleoplexic Escape Velocity (VEL) descending.",
|
||
},
|
||
{
|
||
"term": "Zoological Ecological Tiers (Tier S+ through Tier F)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Tier S+ (88–100 ETI, Crimson #FF4D4D: Apex Predator — #1 S1 AI [93], #2 S2 Liquidity [90]); Tier S (80–87 ETI, Coral #FF7F7F: Keystone Guild — #3 S6 Capture [87], #4 S3 EUV [83]); Tier A (72–79 ETI, Amber #FFBF7F: Symbiont Lock — #5 M1xS6 Vampiric [73]); Tier B (60–71 ETI, Yellow #FFFF7F: Nomad Specialist — #6 S5 BwO [61], #7 S4 Carrier-Wave [61]); Tier C (52–59 ETI, Mint #7FFF7F: Nucleation Stub — #8 M6xS3 Zeptoverse [53]); Tier D (44–51 ETI, Sky Blue #7FBFFF: Episodic Anchor — #9 Q-Stub [49]); Tier F (< 44 ETI, Violet #BF7FFF: Extinct / CI-Rejected Floor — 0 Taxa).",
|
||
},
|
||
{
|
||
"term": "Visualization-Only Subprocess Handoff (--rows-json)",
|
||
"category": "Zoological Tier List (ETI)",
|
||
"definition": "Architectural contract where build_assemblage_tier_list() computes standalone ETI stats in /workspace/technocapital-singularity-zoology and invokes aq-tier-list-visualizer's generate_aq_tier_list.py --rows-json --skip-md solely as a shared Pillow/ReportLab visual renderer.",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "7",
|
||
"title": "7. Quantitative Economic Anchor Tracking & Tri-Modal Repricing Engine",
|
||
"entries": [
|
||
{
|
||
"term": "Quantitative Economic Anchor (quantitative-economic-anchors.json)",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "A tracked real-world financial or industrial figure attached to an S1–S6 entity (lazarus_heist_6b = '$6B' / 'siks bilyan' [211]; anthropic_ipo_price_83 = '$83' / 'aytee three' [202]; bangladesh_factories_481 = '481' [13] / 'for huhndrad aytee wuhn' [440]).",
|
||
},
|
||
{
|
||
"term": "Tri-Modal Quantitative Handling (--quant-mode {off, spoken, digit, dual})",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "CLI mode governing numeric tokens: 'off' (default 100% pure lexical/qualitative mode stripping numeric figures), 'spoken' (converts '$6B' -> 'six billion' -> 'siks bilyan' = 211), 'digit' (sums literal Base-36 digits '481' -> 4+8+1 = 13), and 'dual' (evaluates both streams simultaneously).",
|
||
},
|
||
{
|
||
"term": "Type 1 Revision — Iso-Digital / Iso-Phonemic Conservation (Δ_Q = 0)",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "A quantitative restatement where the real-world figure changes (e.g., 481 halted factories revised to 841 [29^2], or $3.6B revised to $4.5B) while the Base-36 digit sum remains 100% invariant (13 == 13 or 9 == 9, Delta_digit = 0).",
|
||
},
|
||
{
|
||
"term": "Type 2 Revision — Equivalence-Ring Migration (Ring(Q_old) -> Ring(Q_new))",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "Tracks which S1–S6 equivalence partners a spoken figure exits and enters when repriced (e.g., 'siks bilyan' [211 == wor masheen == koper waier] revised to 'sevan bilyan' [223, 48th PRIME == maynstreem == muhnshiganj]).",
|
||
},
|
||
{
|
||
"term": "Type 3 Revision — Prime / Square / Repdigit Phase-Transition",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "Flags when a revised figure crosses a prime, exact square, or 37xk repdigit boundary (e.g., composite 202 ['$83'] shifting to prime or repdigit coordinates).",
|
||
},
|
||
{
|
||
"term": "3-Path Counter-Substitution Solver (--revise-anchor)",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "Automated solver that re-closes 333/666/777 equations after a shock Delta_Q via: Path A (Verb/Adjective/Prep counter-swap with delta_slot = -Delta_Q, e.g., hohldz [127] -> kuhts [124] or leevz [115]), Path B (Head/Tail entity chokepoint migration AQ_new = AQ_old - Delta_Q, e.g., lap [56] -> fbi [44] or minamam [127] -> merjer/tohkan [123]), and Path C (Q_digit vs. Q_spoken dual-mode comparison).",
|
||
},
|
||
{
|
||
"term": "Contingent Repricing Scope Rule (Three Allowed Pools)",
|
||
"category": "Quantitative Repricing Engine",
|
||
"definition": "Forbids matching quantitative figures to random unrelated dictionary words; counter-substitutions are strictly restricted to: (1) Intra-Clause / Same-Event Co-Presence, (2) Same-Domain Causal S1–S6 Supply-Chain Partners, and (3) State-Gated M1–M6 Memetic Pools.",
|
||
},
|
||
],
|
||
},
|
||
{
|
||
"section_id": "8",
|
||
"title": "8. Stakeholder Registers, Novel Turns of Phrase, Idioms & Pokedex Semiotics",
|
||
"entries": [
|
||
{
|
||
"term": "Fantasy Football Roster Engine Register (proposal-fantasy-football-technocapital-roster-engine)",
|
||
"category": "Stakeholder Register & Idiom",
|
||
"definition": "Translates the 9 Zoological Taxa into a 9-Slot Championship Fantasy Draft Board (#1 Franchise QB, #2 RB/WR Breakaway Speed, #3 OL/GM Cap Control, #4 OT/DE Pass-Rush Trench, #5 DEF Bad-Weather Drain, #6 LB/Utility Bench, #7 TE/Slot Receiver, #8 Taxi Squad Moonshot, #9 Waiver-Wire Flyer) and maps ARM/VEL/COL/CAP/PRM/RES to Pass Protection, Breakaway Speed, Stack Power, Front-Office Cap Reach, Playbook IQ, and All-Weather Durability.",
|
||
},
|
||
{
|
||
"term": "'Drafting Flashy Skill Players With No Offensive Line'",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Fantasy/Portfolio idiom diagnosing allocators who buy high-beta frontier AI models (QB/WR skill players like Anthropic or Claude) without owning the upstream physical and legal blockers (the Offensive Line: ASML EUV lasers, TSMC wafer fabs, power grid, and consortium charters).",
|
||
},
|
||
{
|
||
"term": "'Grades That Give Everyone a Participation Trophy' (Ceiling Compression)",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Critique of conventional analyst and existential ('best-hit') scorecards that cluster every tech asset between 93 and 97 out of 100, masking the structural gap between double-articulated core monopolies (Tier S+/S, 83–93 ETI) and uncaptured bench experiments (Tier B/C, 53–61 ETI).",
|
||
},
|
||
{
|
||
"term": "'Stack Lock' & 'All-Weather Chokepoint'",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Plain-English Fantasy Football translations of Vector G1 Variance Collapse ('Stack Lock' — when 3+ assets that look different on paper land on the exact same spoken coordinate, multiplying points like a QB-WR stack) and Vector G4 Isometric Fixed Points ('All-Weather Chokepoint' — an unmovable blocker whose score is identical on paper and out loud).",
|
||
},
|
||
{
|
||
"term": "'Supply-Halt Insurance Pivot' (Coordinate 137 [33rd PRIME] Flex) & 'Calling an Automatic Audible'",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Lineup/portfolio pivot at 137 [33rd PRIME] (daireeoh == envideea == hawlts == inersha): if a foundry delay or regulatory freeze halts Nvidia (#4 OT/DE) or AI rollouts (#1 QB), the allocator flexes the exact same 137 coordinate into the Bad-Weather Defense (#5 M1xS6) slot; 'Calling an Automatic Audible' refers to running --revise-anchor when a price restates mid-week.",
|
||
},
|
||
{
|
||
"term": "Corporate Management Board Register (Stated Filing Layer vs. Operational Signal Layer)",
|
||
"category": "Stakeholder Register & Idiom",
|
||
"definition": "Translates Gen 0 and Gen 1 into the Stated Filing Layer (regulatory filings/board decks) and Operational Signal Layer (standardized phonemic reduction), mapping ARM/VEL/COL/CAP/PRM/RES to Supply-Chain Moat, Execution Agility, Cross-Unit Synergy, Governance & Balance-Sheet Integration, Proprietary IP, and Stress-Test Resilience, with pre-authorized Cross-Sleeve Reallocation Triggers and Deal Collar Restructuring.",
|
||
},
|
||
{
|
||
"term": "Out-of-Sample Fund Manager Register (Consensus Taxonomy Layer vs. Compressed Structural Layer)",
|
||
"category": "Stakeholder Register & Idiom",
|
||
"definition": "Operates outside trailing 252-day price-volume covariance in Pure Lexical Discovery Mode (--quant-mode off) to surface orthogonal alpha across Chokepoint Moat, Signal Velocity, Convergence Power, Institutional Coupling, Idiosyncratic Asymmetry, and Regime Robustness.",
|
||
},
|
||
{
|
||
"term": "The 'Uncaptured Gem' Screen (High COL/ARM + High VEL + Low CAP = 37–65)",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Out-of-sample venture/seed discovery filter targeting Tier B and Tier C sleeves (#6 Xenobiological Wetware R&D [VEL=92, COL=80, CAP=51] and #8 Sub-Atomic Excavation [ARM=76, VEL=87, CAP=37]) that exhibit strong technical locks and velocity before sovereign or mega-cap holding vehicles (Class S6) crowd in.",
|
||
},
|
||
{
|
||
"term": "The 'Hidden Chokepoint' Screen, 'Idiosyncratic Prime' Screen & 'Dispersion Short'",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Fund-manager screens isolating (1) Delta = 0 physical/legal tollbooths (ARM >= 85: ASML=81, TSMC=91, GPU=71, charter=136, consortium=237), (2) Twin-Prime pricing-power mutations (PRM >= 85: monopoly 197->163, Nvidia 113->137), and (3) Counter-cyclical stagnation dispersion pairs (zombie firm == arbitrage = 198; Nvidia == halts == inertia = 137).",
|
||
},
|
||
{
|
||
"term": "Pure Standard Written English AQ (Gen 0 Only) Checksum Model",
|
||
"category": "Stakeholder Register & Idiom",
|
||
"definition": "Single-layer proposal variant omitting Phonemic Ingglish (Gen 1) entirely in favor of Standard Written English AQ (0–9=0–9, A=10..Z=35). Replaces COL/VEL/PRM drift metrics with Native Filing Collision Density, Syntactic Compactness, and Native Written Prime Weight Density while preserving all 10 Delta = 0 Isometric Chokepoints and foregrounding native Gen 0 locks (corporation == supply chain = 243 [3^5]; governance == logistics == apparatus = 194; Anthropic == flash crash == war machine = 185 [5x37]; Nvidia == cartel = 113 [PRIME]; Claude == laser = 100 [10^2]; ASML == fund == path = 81 [3^4]).",
|
||
},
|
||
{
|
||
"term": "'Grand Central Station' Bell-Curve Pareidolia vs. 'The Room Filter' (Contingent Meaning)",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Epistemological pair from bidirectional-aq-evaluation: 'Grand Central Station' names the statistical crowding of 4-to-5-letter Base-36 words between AQ 80 and 115 (mean letter value ~22.5), while 'The Room Filter' (reader-situated contingent meaning) explains how the concrete scene, supply chain, or breaking wire event filters out 231,000+ dictionary matches to select the 3–4 domain-native actors actually present in the room.",
|
||
},
|
||
{
|
||
"term": "'Harlan Seer' Faux-Entity / Faux-Surname Trap",
|
||
"category": "Novel Turn of Phrase / Idiom",
|
||
"definition": "Pitfall rule warning that when a modular equivalence swap juxtaposes a capitalized single-name character (Harlan = 108) with a bare common noun (seer = 83, replacing saiber [108] + hart [83] = 191), readers misparse 'Harlan seer' as a person's full name unless each token's source dossier, POS, and Type I Isometric (delta = 0) upgrade role are disambiguated inline.",
|
||
},
|
||
{
|
||
"term": "Local Full-Path Fallback Citation Ledger (scripts/sources.py)",
|
||
"category": "CI & Archive Hygiene",
|
||
"definition": "Three-tier citation resolver that resolves remoted repositories via git remote get-url origin (https://git.libre.audio/... or https://github.com/...) and falls back to the local filesystem full path (/workspace/technocapital-singularity-zoology/...) when a repository has no configured git remote, avoiding #fragment URL collisions in normalize_url().",
|
||
},
|
||
{
|
||
"term": "Pokedex Zoological Field Scanner (DEX #129/#125 M7+ Blackwell-Drone-Capital Nexus)",
|
||
"category": "Pokedex & Meme Semiotics",
|
||
"definition": "Deployment of the Generation IV Pokemon INFO Pokedex UI (1024x652 RGBA layered meme) as a Landian-Deleuzean diagnostic scanner for wild news-wire singularities (M7_candidate_2026_11_28), mapping the left sprite viewport to G1 variance-collapse telemetry (awflain == ruhsha == blakwel == 129; dounz == kapatal == kapcher == fohldz == 125), the middle-right boxes to ETI 6-stat bars and S1/S2/S3/S6 guild types, the HT/WT box to secondary wire locks (166, 333, 115, 108, 222), and the bottom readout box to twin-prime coordinates 193 [44th PRIME] and 191 [43rd PRIME].",
|
||
},
|
||
],
|
||
},
|
||
]
|
||
|
||
|
||
def sync_glossary(
|
||
registry_path: str = "/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json",
|
||
out_md: str = "/workspace/technocapital-singularity-zoology/technocapital-singularity-zoology-comprehensive-glossary.md",
|
||
out_pdf: str = "/workspace/technocapital-singularity-zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf",
|
||
memetic_registry_path: str = "/workspace/technocapital-singularity-zoology/taxonomy/memetic-superclass-registry.json",
|
||
anchors_path: str = "/workspace/technocapital-singularity-zoology/taxonomy/quantitative-economic-anchors.json",
|
||
workdir: str = "/workspace/ingglish-hyperdope-gematria",
|
||
new_term_tuple: tuple[str, str, str] | None = None,
|
||
) -> dict[str, Any]:
|
||
"""
|
||
Maintain and synchronize the Technocapital Singularity Zoology Comprehensive Glossary:
|
||
- Loads existing custom terms/idioms from `taxonomy/glossary-registry.json` (and appends `new_term_tuple` if supplied).
|
||
- Auto-harvests all 107 canonical S1-S6 entities, all M1-M6 memetic keywords, all active/provisional M7+
|
||
nucleated terms from `memetic-superclass-registry.json`, and all tracked quantitative anchors.
|
||
- Writes the synchronized JSON registry, full Markdown glossary, and verified multi-page ReportLab PDF.
|
||
"""
|
||
import time
|
||
reg_file = Path(registry_path)
|
||
existing_custom: list[dict[str, Any]] = []
|
||
if reg_file.exists():
|
||
try:
|
||
prev = json.loads(reg_file.read_text(encoding="utf-8"))
|
||
existing_custom = prev.get("custom_entries", [])
|
||
except Exception:
|
||
existing_custom = []
|
||
|
||
if new_term_tuple:
|
||
t_name, t_cat, t_def = new_term_tuple
|
||
trans_map = batch_translate([t_name], workdir=workdir)
|
||
t_ing = trans_map.get(t_name, t_name.lower())
|
||
e_aq = compute_aq(t_name)
|
||
i_aq = compute_aq(t_ing)
|
||
entry_obj = {
|
||
"term": t_name,
|
||
"category": t_cat,
|
||
"definition": t_def,
|
||
"eng_aq": e_aq,
|
||
"ing": t_ing,
|
||
"ing_aq": i_aq,
|
||
"delta": i_aq - e_aq,
|
||
"isometric": e_aq == i_aq,
|
||
"eng_prime_rank": PRIME_RANKS.get(e_aq),
|
||
"ing_prime_rank": PRIME_RANKS.get(i_aq),
|
||
"added_utc": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
|
||
}
|
||
existing_custom = [x for x in existing_custom if x.get("term", "").lower() != t_name.lower()]
|
||
existing_custom.append(entry_obj)
|
||
|
||
# Collect all canonical CLASS-S01.SILICON-CLASS-S06.AGI + M1-CLASS-M06.ABYSSAL + CLASS-M07.HYPERSTITIONAL+ vocabulary for Section 9 auto-synced bilingual table
|
||
m_reg = json.loads(Path(memetic_registry_path).read_text(encoding="utf-8")) if Path(memetic_registry_path).exists() else {}
|
||
m_canonical = m_reg.get("canonical_subclasses", {})
|
||
m_provisional = m_reg.get("provisional_candidates", {})
|
||
|
||
all_vocab_words: list[str] = list(DEFAULT_CORPUS)
|
||
word_to_m_classes: dict[str, list[str]] = {}
|
||
for mid, minfo in m_canonical.items():
|
||
for kw in minfo.get("keywords", []):
|
||
word_to_m_classes.setdefault(kw.lower(), []).append(mid)
|
||
if kw not in all_vocab_words and kw.lower() not in {w.lower() for w in all_vocab_words}:
|
||
all_vocab_words.append(kw)
|
||
for cid, cinfo in m_provisional.items():
|
||
for lk in cinfo.get("sample_locks", []):
|
||
w = lk["eng"]
|
||
word_to_m_classes.setdefault(w.lower(), []).append(cid)
|
||
if w not in all_vocab_words and w.lower() not in {x.lower() for x in all_vocab_words}:
|
||
all_vocab_words.append(w)
|
||
|
||
trans_all = batch_translate(all_vocab_words, workdir=workdir)
|
||
vocab_rows: list[dict[str, Any]] = []
|
||
by_ing_coord: dict[int, list[str]] = {}
|
||
for w in all_vocab_words:
|
||
ing_w = trans_all.get(w, w.lower())
|
||
e_aq = compute_aq(w)
|
||
i_aq = compute_aq(ing_w)
|
||
s_cls = classify_term(w, ing_w, e_aq, i_aq)
|
||
m_cls = word_to_m_classes.get(w.lower(), [])
|
||
tags = [c for c in s_cls if c != "UNCLASSIFIED"] + m_cls
|
||
if not tags:
|
||
tags = ["LEXICON"]
|
||
rec = {
|
||
"eng": w,
|
||
"eng_aq": e_aq,
|
||
"eng_prime_rank": PRIME_RANKS.get(e_aq),
|
||
"ing": ing_w,
|
||
"ing_aq": i_aq,
|
||
"ing_prime_rank": PRIME_RANKS.get(i_aq),
|
||
"delta": i_aq - e_aq,
|
||
"isometric": e_aq == i_aq,
|
||
"twin_prime": (e_aq in PRIME_RANKS) and (i_aq in PRIME_RANKS) and (e_aq != i_aq),
|
||
"classes": tags,
|
||
}
|
||
vocab_rows.append(rec)
|
||
by_ing_coord.setdefault(i_aq, []).append(f"{ing_w} ('{w}')")
|
||
|
||
vocab_rows.sort(key=lambda r: (-r["ing_aq"], r["eng"].lower()))
|
||
|
||
now_utc = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
|
||
total_conceptual = sum(len(sec["entries"]) for sec in CANONICAL_GLOSSARY_SECTIONS) + len(existing_custom)
|
||
|
||
md_lines = [
|
||
"# Comprehensive Technical, Zoological & Idiomatic Glossary: Technocapital Singularity Zoology (`v1.6.0`)",
|
||
"",
|
||
f"- **Repository & Maintenance Engine:** `/workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --sync-glossary`",
|
||
f"- **Machine-Readable Registry:** `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json`",
|
||
f"- **Last Synchronized:** `{now_utc}`",
|
||
f"- **Coverage:** **{total_conceptual} Conceptual, Mathematical, Zoological, Stakeholder & Idiomatic Definitions** across Sections 1–8 + **{len(vocab_rows)} Auto-Synchronized Bilingual (`Gen 0 <-> Gen 1`) Vocabulary Tokens** in Section 9 (`{total_conceptual + len(vocab_rows)}` total maintained entries).",
|
||
"- **Maintenance Protocol:** Automatically updated whenever `--build-tier-list`, `--update-memetic-registry`, `--sync-glossary`, or `--add-glossary-term <TERM> <CATEGORY> <DEFINITION>` is executed.",
|
||
"",
|
||
"---",
|
||
"",
|
||
]
|
||
|
||
for sec in CANONICAL_GLOSSARY_SECTIONS:
|
||
md_lines.append(f"## {sec['title']}")
|
||
md_lines.append("")
|
||
for ent in sec["entries"]:
|
||
md_lines.append(f"- **{ent['term']}** *({ent['category']})*:")
|
||
md_lines.append(f" {ent['definition']}")
|
||
md_lines.append("")
|
||
md_lines.append("---")
|
||
md_lines.append("")
|
||
|
||
if existing_custom:
|
||
md_lines.append("## 8B. Newly Added & Custom Maintained Domain Terms, Turns of Phrase & Idioms")
|
||
md_lines.append("")
|
||
for ent in existing_custom:
|
||
p_e = f" [{ent['eng_prime_rank']}th PRIME]" if ent.get("eng_prime_rank") else ""
|
||
p_i = f" [{ent['ing_prime_rank']}th PRIME]" if ent.get("ing_prime_rank") else ""
|
||
iso_tag = " [ISOMETRIC Δ=0]" if ent.get("isometric") else f" [Δ={ent.get('delta', 0):+d}]"
|
||
md_lines.append(
|
||
f"- **{ent['term']}** *({ent['category']} — Gen 0 AQ: `{ent['eng_aq']}{p_e}` -> Gen 1 Ingglish: `{ent['ing']} = {ent['ing_aq']}{p_i}`{iso_tag})*:"
|
||
)
|
||
md_lines.append(f" {ent['definition']}")
|
||
md_lines.append("")
|
||
md_lines.append("---")
|
||
md_lines.append("")
|
||
|
||
md_lines.append(f"## 9. Auto-Synchronized Bilingual Vocabulary Ledger (`{len(vocab_rows)}` `S1–S6`, `M1–M6` & `M7+` Terms)")
|
||
md_lines.append("")
|
||
md_lines.append("| Standard English (`Gen 0`) | `Gen 0` AQ | Phonemic Ingglish (`Gen 1`) | `Gen 1` AQ | Drift `Δ` | Structural Flags | Classes / Guilds | Same-Coordinate `Gen 1` Partners |")
|
||
md_lines.append("| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |")
|
||
|
||
for r in vocab_rows:
|
||
pe = f" *(P#{r['eng_prime_rank']})*" if r["eng_prime_rank"] else ""
|
||
pi = f" *(P#{r['ing_prime_rank']})*" if r["ing_prime_rank"] else ""
|
||
flags = []
|
||
if r["isometric"]:
|
||
flags.append("`ISO Δ=0`")
|
||
if r["twin_prime"]:
|
||
flags.append("`TWIN-P`")
|
||
if abs(r["delta"]) in {1, 10, 18, 20, 36, 37, 40, 74}:
|
||
flags.append(f"`G3:{r['delta']:+d}`")
|
||
flag_str = ", ".join(flags) if flags else "—"
|
||
cls_str = ", ".join(f"`{c}`" for c in r["classes"])
|
||
partners = [p for p in by_ing_coord.get(r["ing_aq"], []) if not p.startswith(f"{r['ing']} (")][:3]
|
||
part_str = "; ".join(partners) if partners else "Unique coordinate"
|
||
md_lines.append(
|
||
f"| `{r['eng']}` | `{r['eng_aq']}`{pe} | `{r['ing']}` | **`{r['ing_aq']}`**{pi} | `{r['delta']:+d}` | {flag_str} | {cls_str} | {part_str} |"
|
||
)
|
||
|
||
Path(out_md).write_text("\n".join(md_lines) + "\n", encoding="utf-8")
|
||
|
||
# Persist JSON registry
|
||
payload = {
|
||
"version": "1.6.0",
|
||
"last_synced_utc": now_utc,
|
||
"counts": {
|
||
"conceptual_and_idiomatic_entries": total_conceptual,
|
||
"custom_maintained_entries": len(existing_custom),
|
||
"bilingual_vocabulary_entries": len(vocab_rows),
|
||
"total_glossary_entries": total_conceptual + len(vocab_rows),
|
||
},
|
||
"sections": CANONICAL_GLOSSARY_SECTIONS,
|
||
"custom_entries": existing_custom,
|
||
"bilingual_vocabulary_ledger": vocab_rows,
|
||
}
|
||
reg_file.parent.mkdir(parents=True, exist_ok=True)
|
||
reg_file.write_text(json.dumps(payload, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||
|
||
# Compile synchronized PDF via build_wire_report_pdf.py
|
||
pdf_builder = Path("/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/build_wire_report_pdf.py")
|
||
if pdf_builder.exists():
|
||
subprocess.run(
|
||
[
|
||
"python3",
|
||
str(pdf_builder),
|
||
"--md",
|
||
out_md,
|
||
"--pdf",
|
||
out_pdf,
|
||
"--title",
|
||
"Technocapital Singularity Zoology — Comprehensive Technical & Idiomatic Glossary (v1.6.0)",
|
||
],
|
||
check=True,
|
||
)
|
||
return payload
|
||
|
||
|
||
|
||
|
||
# ---------------------------------------------------------------------------
|
||
# Multi-Volume Ontological & Alphabetical PDF Encyclopedia Engine (v1.7.0)
|
||
# ---------------------------------------------------------------------------
|
||
|
||
ENCYCLOPEDIA_DIVISIONS = [
|
||
{
|
||
"div_id": "00-index-and-ontological-atlas",
|
||
"div_title": "Division 00 — Master Alphabetical Index & Disciplinary Ontological Atlas",
|
||
"description": "Master A-to-Z headword index, Base-36 AQ coordinate directory, and disciplinary ontology guide mapping all 282+ encyclopedia articles across the 9 folder divisions and 21 PDF volumes.",
|
||
},
|
||
{
|
||
"div_id": "01-cipher-orthography-and-boundaries",
|
||
"div_title": "Division 01 — Cipher Mechanics, Orthographic Generations & Boundary Laws",
|
||
"description": "Linguistic, phonetic, and mathematical foundations of Base-36 Alphanumeric Qabbala (AQ), Standard Etymological English (Gen 0), CMUdict Phonemic Ingglish (Gen 1), Diachronic Script Evolution (Gen 2), and the Zero-d-Filter Boundary.",
|
||
},
|
||
{
|
||
"div_id": "02-landian-deleuzean-philosophical-operators",
|
||
"div_title": "Division 02 — Landian-Deleuzean Philosophy & Cybernetic Singularity Operators",
|
||
"description": "Continental philosophical and cybernetic operators from Deleuze & Guattari (Anti-Oedipus, A Thousand Plateaus, The Logic of Sense), Michel Serres (The Parasite), and Nick Land / Ccru (Fanged Noumena: Teleoplexy, Meltdown, Circuitries).",
|
||
},
|
||
{
|
||
"div_id": "03-machinic-phylum-guilds-s1-to-s5",
|
||
"div_title": "Division 03 — Material Machinic Phylum Guilds (Classes S1 through S5)",
|
||
"description": "Alphabetized specimen monographs for the five Machinic Phylum classes: S1 Autoregressive AI (Dossier 65), S2 Flash-Crash Templex Liquidity (Dossier 66), S3 EUV Lithographic War-Machine (Dossier 67), S4 Hyperstitional Carrier-Wave (Dossiers 27/28), and S5 Xenobiological Cutaneous BwO (Dossiers 24/31).",
|
||
},
|
||
{
|
||
"div_id": "04-capital-organizational-capture-s6",
|
||
"div_title": "Division 04 — Capital Organizational Capacity & Apparatus of Capture (Class S6)",
|
||
"description": "Alphabetized institutional, corporate, legal, balance-sheet, and supply-chain capture specimens from Class S6 (Dossier 68: incorporation, consortium, sovereign wealth, monopoly, charter, logistics, equity, capture).",
|
||
},
|
||
{
|
||
"div_id": "05-memetic-superclass-and-emergent-m7",
|
||
"div_title": "Division 05 — Memetic Superclass (M1–M6) & Unsupervised Emergent Nucleation (M7+)",
|
||
"description": "State-gated cultural/thermodynamic regimes (M1 Vampiric/Entropic [Dossier 69], M2 Hyper-Kinetic Swarm, M3 Leviathan Colossus, M4 Mimetic Doppelganger, M5 Oracle Threshold, M6 Abyssal Excavation) and the 3-Gate Unsupervised M7+ Nucleation Lifecycle (M7_candidate_2026_11_28).",
|
||
},
|
||
{
|
||
"div_id": "06-genealogical-vectors-and-quantitative-repricing",
|
||
"div_title": "Division 06 — Orthographic Genealogical Vectors (G1–G6), Prime Architecture & Quantitative Repricing",
|
||
"description": "Intergenerational fitness vectors (G1 Variance Collapse, G2 Cross-Gen Twins, G3 Quantized Steps, G4 Isometric Chokepoints, G5 Twin-Prime Mutations, G6 Expressivity), repdigit attractors (333/666/777), and the --revise-anchor Tri-Modal Quantitative Repricing Engine.",
|
||
},
|
||
{
|
||
"div_id": "07-ecological-trophic-index-and-tier-list",
|
||
"div_title": "Division 07 — Zoological Ecological Trophic Index (ETI) & Assemblage Tier-List Ontology",
|
||
"description": "Standalone 0–100 Ecological Trophic Index (ETI) methodology, the six continuous zoological base stats (ARM, VEL, COL, CAP, PRM, RES), trophic supply-chain bridges, 4-key tie-breaking, and Tiers S+ through F.",
|
||
},
|
||
{
|
||
"div_id": "08-stakeholder-registers-idioms-and-pokedex-semiotics",
|
||
"div_title": "Division 08 — Applied Stakeholder Registers, Domain Idioms, Critiques & Pokedex Semiotics",
|
||
"description": "Layman and institutional translation registers (Fantasy Football Roster Engine, Corporate Board, Out-of-Sample Fund Manager, Pure Standard English Gen 0 Checksum), epistemological critiques (Grand Central Station vs. Room Filter), and Pokedex/meme visual semiotics.",
|
||
},
|
||
]
|
||
|
||
|
||
def _clean_sort_key(headword: str) -> str:
|
||
import re
|
||
s = headword.strip().lower()
|
||
s = re.sub(r"^[^a-z0-9]+", "", s)
|
||
if s.startswith("the "):
|
||
s = s[4:]
|
||
s = re.sub(r"^[^a-z0-9]+", "", s)
|
||
digit_words = {"0": "zero ", "1": "one ", "2": "two ", "3": "three ", "4": "four ", "5": "five ", "6": "six ", "7": "seven ", "8": "eight ", "9": "nine "}
|
||
if s and s[0] in digit_words and (len(s) == 1 or not s[1].isdigit()):
|
||
s = digit_words[s[0]] + s[1:]
|
||
s = re.sub(r"[^a-z0-9]+", " ", s).strip()
|
||
return s or headword.lower()
|
||
|
||
|
||
def _first_alpha_char(headword: str) -> str:
|
||
import re
|
||
s = _clean_sort_key(headword)
|
||
m = re.search(r"[a-z]", s)
|
||
return m.group(0).upper() if m else "A"
|
||
|
||
|
||
def _harvest_dossier_equations(dossiers_dir: str = "/workspace/technocapital-singularity-zoology/dossiers") -> list[dict[str, Any]]:
|
||
import re
|
||
eq_list: list[dict[str, Any]] = []
|
||
d_path = Path(dossiers_dir)
|
||
if d_path.exists():
|
||
for md_file in sorted(d_path.glob("*.md")):
|
||
text = md_file.read_text(encoding="utf-8")
|
||
for m in re.finditer(r'-\s+`([^`]+)`\s+\("([^"]+)"\)\s+—\s+`([^`]+)=\s*(\d+)`', text):
|
||
eq_list.append(
|
||
{
|
||
"ing": m.group(1).strip(),
|
||
"eng": m.group(2).strip(),
|
||
"breakdown": m.group(3).strip(),
|
||
"target": int(m.group(4)),
|
||
"source": md_file.name,
|
||
}
|
||
)
|
||
for b_key, spec in ASSEMBLAGE_BUILD_SPECS.items():
|
||
for ing_s, eng_s in spec.get("inline_eqs", []):
|
||
eq_list.append(
|
||
{
|
||
"ing": ing_s,
|
||
"eng": eng_s,
|
||
"breakdown": "verified inline equation",
|
||
"target": compute_aq(ing_s),
|
||
"source": spec.get("dossier_file_display", b_key),
|
||
}
|
||
)
|
||
return eq_list
|
||
|
||
|
||
def _compile_encyclopedia_pdf(md_path: Path, pdf_path: Path, doc_title: str, subtitle: str) -> dict[str, Any]:
|
||
import re
|
||
from xml.sax.saxutils import escape
|
||
from reportlab.lib import colors
|
||
from reportlab.lib.pagesizes import letter
|
||
from reportlab.lib.styles import ParagraphStyle, getSampleStyleSheet
|
||
from reportlab.platypus import HRFlowable, Paragraph, SimpleDocTemplate, Spacer
|
||
from pypdf import PdfReader
|
||
|
||
def fmt_inline(text: str) -> str:
|
||
t = escape(text)
|
||
t = t.replace("Δ", '<font name="Symbol">D</font>').replace("δ", '<font name="Symbol">d</font>')
|
||
t = t.replace("μ", '<font name="Symbol">m</font>').replace("σ", '<font name="Symbol">s</font>')
|
||
t = t.replace("π", '<font name="Symbol">p</font>').replace("≈", "~").replace("√", "sqrt")
|
||
for sup_ch, dig in zip("⁰¹²³⁴⁵⁶⁷⁸⁹", "0123456789"):
|
||
t = t.replace(sup_ch, f"<super>{dig}</super>")
|
||
code_spans: list[str] = []
|
||
|
||
def _save_code(m: re.Match) -> str:
|
||
idx = len(code_spans)
|
||
code_spans.append(f'<font name="Courier">{m.group(1)}</font>')
|
||
return f"@@CODE{idx}@@"
|
||
|
||
t = re.sub(r"`([^`]+)`", _save_code, t)
|
||
t = re.sub(r"\*\*([^*]+)\*\*", r"<b>\1</b>", t)
|
||
t = re.sub(r"\*([^*]+)\*", r"<i>\1</i>", t)
|
||
for idx, span in enumerate(code_spans):
|
||
t = t.replace(f"@@CODE{idx}@@", span)
|
||
return t
|
||
|
||
page_w, page_h = letter
|
||
margin = 48
|
||
|
||
def _draw_chrome(canvas, doc_obj):
|
||
canvas.saveState()
|
||
canvas.setFont("Helvetica-Bold", 7.5)
|
||
canvas.setFillColor(colors.HexColor("#6B1D1D"))
|
||
canvas.drawString(margin, page_h - 30, doc_title[:88])
|
||
canvas.setStrokeColor(colors.HexColor("#D0D4DC"))
|
||
canvas.setLineWidth(0.5)
|
||
canvas.line(margin, page_h - 34, page_w - margin, page_h - 34)
|
||
canvas.line(margin, 36, page_w - margin, 36)
|
||
canvas.setFont("Helvetica", 7.5)
|
||
canvas.setFillColor(colors.HexColor("#555A66"))
|
||
canvas.drawString(margin, 24, f"Encyclopedia of Technocapital Singularity Zoology (v1.7.0) - {pdf_path.parent.name}/{pdf_path.name}")
|
||
canvas.drawRightString(page_w - margin, 24, f"Page {doc_obj.page}")
|
||
canvas.restoreState()
|
||
|
||
styles = getSampleStyleSheet()
|
||
h1 = ParagraphStyle("EncH1", parent=styles["Heading1"], fontName="Helvetica-Bold", fontSize=14.5, leading=18, textColor=colors.HexColor("#161820"), spaceAfter=4, keepWithNext=True)
|
||
sub = ParagraphStyle("EncSub", parent=styles["Normal"], fontName="Helvetica-Oblique", fontSize=9.2, leading=12.5, textColor=colors.HexColor("#4A5060"), spaceAfter=8)
|
||
h2 = ParagraphStyle("EncH2", parent=styles["Heading2"], fontName="Helvetica-Bold", fontSize=11.5, leading=14.5, textColor=colors.HexColor("#7A1818"), spaceBefore=9, spaceAfter=4, keepWithNext=True)
|
||
h3 = ParagraphStyle("EncH3", parent=styles["Heading3"], fontName="Helvetica-Bold", fontSize=10.0, leading=13.0, textColor=colors.HexColor("#1E2430"), spaceBefore=7, spaceAfter=2.5, keepWithNext=True)
|
||
body = ParagraphStyle("EncBody", parent=styles["Normal"], fontName="Helvetica", fontSize=9.0, leading=12.4, textColor=colors.HexColor("#1C1E26"), spaceAfter=3.5)
|
||
bullet = ParagraphStyle("EncBullet", parent=body, leftIndent=13, firstLineIndent=-8, spaceAfter=2.8)
|
||
subbullet = ParagraphStyle("EncSubBullet", parent=body, leftIndent=24, firstLineIndent=-8, spaceAfter=2.2)
|
||
|
||
lines = md_path.read_text(encoding="utf-8").splitlines()
|
||
story = []
|
||
headers: list[str] = []
|
||
in_table = False
|
||
|
||
for line in lines:
|
||
s = line.strip()
|
||
if not s:
|
||
in_table, headers = False, []
|
||
continue
|
||
if s == "---":
|
||
story.extend([Spacer(1, 3), HRFlowable(width="100%", thickness=0.5, color=colors.HexColor("#C8CDD8")), Spacer(1, 3)])
|
||
continue
|
||
if s.startswith("|") and s.endswith("|"):
|
||
cols = [c.strip() for c in re.split(r'(?<!\\)\|(?=(?:[^`]*`[^`]*`)*[^`]*$)', s)[1:-1]]
|
||
if all(re.fullmatch(r":?-+:?", c) for c in cols):
|
||
in_table = True
|
||
continue
|
||
if not in_table and not headers:
|
||
headers = cols
|
||
continue
|
||
parts = [f"**{re.sub(r'\*\*([^*]+)\*\*', r'\1', h)}:** {v}" for h, v in zip(headers, cols)]
|
||
story.append(Paragraph("- " + fmt_inline(" | ".join(parts)), bullet))
|
||
continue
|
||
in_table, headers = False, []
|
||
if s.startswith("# "):
|
||
story.append(Paragraph(fmt_inline(s[2:]), h1))
|
||
if subtitle:
|
||
story.append(Paragraph(fmt_inline(subtitle), sub))
|
||
subtitle = ""
|
||
elif s.startswith("## "):
|
||
story.append(Paragraph(fmt_inline(s[3:]), h2))
|
||
elif s.startswith("### "):
|
||
story.append(Paragraph(fmt_inline(s[4:]), h3))
|
||
elif line.startswith(" - ") or line.startswith(" - "):
|
||
story.append(Paragraph("- " + fmt_inline(s[2:]), subbullet))
|
||
elif s.startswith("- "):
|
||
story.append(Paragraph("- " + fmt_inline(s[2:]), bullet))
|
||
elif re.match(r"^\d+\.\s+", s):
|
||
story.append(Paragraph(fmt_inline(s), bullet))
|
||
else:
|
||
story.append(Paragraph(fmt_inline(s), body))
|
||
|
||
pdf_path.parent.mkdir(parents=True, exist_ok=True)
|
||
tmp_pdf = pdf_path.with_suffix(".pdf.tmp")
|
||
doc = SimpleDocTemplate(
|
||
str(tmp_pdf),
|
||
pagesize=letter,
|
||
leftMargin=margin,
|
||
rightMargin=margin,
|
||
topMargin=44,
|
||
bottomMargin=44,
|
||
title=doc_title,
|
||
author="Hermes Agent — Technocapital Singularity Zoology Encyclopedia Engine (v1.7.0)",
|
||
subject=f"Encyclopedia Volume: {doc_title}",
|
||
)
|
||
doc.build(story, onFirstPage=_draw_chrome, onLaterPages=_draw_chrome)
|
||
tmp_pdf.replace(pdf_path)
|
||
|
||
reader = PdfReader(str(pdf_path))
|
||
return {
|
||
"md_path": str(md_path),
|
||
"pdf_path": str(pdf_path),
|
||
"page_count": len(reader.pages),
|
||
"size_bytes": pdf_path.stat().st_size,
|
||
}
|
||
|
||
|
||
def build_encyclopedia(
|
||
glossary_registry_path: str = "/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json",
|
||
encyclopedia_root: str = "/workspace/technocapital-singularity-zoology/encyclopedia",
|
||
memetic_registry_path: str = "/workspace/technocapital-singularity-zoology/taxonomy/memetic-superclass-registry.json",
|
||
anchors_path: str = "/workspace/technocapital-singularity-zoology/taxonomy/quantitative-economic-anchors.json",
|
||
workdir: str = "/workspace/ingglish-hyperdope-gematria",
|
||
) -> dict[str, Any]:
|
||
"""
|
||
Build and synchronize the multi-folder, alphabetically organized PDF Encyclopedia of
|
||
Technocapital Singularity Zoology (`/workspace/technocapital-singularity-zoology/encyclopedia/`)
|
||
directly from `taxonomy/glossary-registry.json`, live dossiers (`65–69+`), and registries.
|
||
"""
|
||
import time
|
||
gl_data = sync_glossary(
|
||
registry_path=glossary_registry_path,
|
||
memetic_registry_path=memetic_registry_path,
|
||
anchors_path=anchors_path,
|
||
workdir=workdir,
|
||
)
|
||
|
||
root_dir = Path(encyclopedia_root)
|
||
root_dir.mkdir(parents=True, exist_ok=True)
|
||
|
||
all_eqs = _harvest_dossier_equations()
|
||
vocab_ledger: list[dict[str, Any]] = gl_data.get("bilingual_vocabulary_ledger", [])
|
||
by_ing_aq: dict[int, list[dict[str, Any]]] = {}
|
||
by_eng_aq: dict[int, list[dict[str, Any]]] = {}
|
||
for v in vocab_ledger:
|
||
by_ing_aq.setdefault(v["ing_aq"], []).append(v)
|
||
by_eng_aq.setdefault(v["eng_aq"], []).append(v)
|
||
|
||
def _format_vocab_article(v: dict[str, Any], div_label: str) -> dict[str, Any]:
|
||
eng = v["eng"]
|
||
ing = v["ing"]
|
||
e_aq = v["eng_aq"]
|
||
i_aq = v["ing_aq"]
|
||
d = v["delta"]
|
||
pe = f" [{v['eng_prime_rank']}th PRIME]" if v.get("eng_prime_rank") else ""
|
||
pi = f" [{v['ing_prime_rank']}th PRIME]" if v.get("ing_prime_rank") else ""
|
||
badges = []
|
||
if v.get("isometric"):
|
||
badges.append("Type I–III Isometric Chokepoint (Δ = 0)")
|
||
if v.get("twin_prime"):
|
||
badges.append(f"G5 Twin-Prime Word/Phrase Mutation (p_{v['eng_prime_rank']} -> p_{v['ing_prime_rank']})")
|
||
if abs(d) in {1, 10, 18, 20, 36, 37, 40, 74}:
|
||
badges.append(f"G3 Quantized Phonemic Step (Δ = {d:+d})")
|
||
badge_str = " | ".join(badges) if badges else "Standard CMUdict Phonemic Drift"
|
||
|
||
ing_partners = [
|
||
f"`{p['ing']}` (\"{p['eng']}\", Gen 0 = `{p['eng_aq']}`, Classes: `{','.join(p['classes'])}`)"
|
||
for p in by_ing_aq.get(i_aq, [])
|
||
if p["eng"].lower() != eng.lower()
|
||
]
|
||
eng_partners = [
|
||
f"`{p['eng']}` (Gen 1 `{p['ing']}` = `{p['ing_aq']}`, Classes: `{','.join(p['classes'])}`)"
|
||
for p in by_eng_aq.get(e_aq, [])
|
||
if p["eng"].lower() != eng.lower()
|
||
]
|
||
g2_eng_to_ing = [
|
||
f"`{p['ing']}` (\"{p['eng']}\", Gen 1 = `{e_aq}`, Classes: `{','.join(p['classes'])}`)"
|
||
for p in by_ing_aq.get(e_aq, [])
|
||
if p["eng"].lower() != eng.lower()
|
||
]
|
||
g2_ing_to_eng = [
|
||
f"`{p['eng']}` (Gen 0 = `{i_aq}`, Classes: `{','.join(p['classes'])}`)"
|
||
for p in by_eng_aq.get(i_aq, [])
|
||
if p["eng"].lower() != eng.lower()
|
||
]
|
||
|
||
ring_members = by_ing_aq.get(i_aq, [])
|
||
if len(ring_members) >= 2:
|
||
evals = [m["eng_aq"] for m in ring_members]
|
||
me = sum(evals) / len(evals)
|
||
ve = round(sum((x - me) ** 2 for x in evals) / len(evals), 2)
|
||
var_line = f"Collapses `{len(ring_members)}` dispersed `Gen 0` terms (`{evals}`, `Gen 0 Variance = {ve}`) onto exact `Gen 1` coordinate **`{i_aq}`** (`Gen 1 Variance = 0.0`)."
|
||
else:
|
||
var_line = f"Occupies singleton or specialized `Gen 1` coordinate **`{i_aq}`** in the current 190-term core matrix."
|
||
|
||
matched_eqs = [
|
||
eq for eq in all_eqs
|
||
if (f" {ing} " in f" {eq['ing']} ") or (f" {eng.lower()} " in f" {eq['eng'].lower()} ")
|
||
][:3]
|
||
|
||
cls_names = [
|
||
f"`{c}` ({TAXONOMY_CLASSES[c]['name']})" if c in TAXONOMY_CLASSES else f"`{c}`"
|
||
for c in v["classes"]
|
||
]
|
||
|
||
lines = [
|
||
f"### {eng} (`{ing}` — Gen 1 AQ `{i_aq}`{pi} | Gen 0 AQ `{e_aq}`{pe})",
|
||
f"- **Disciplinary Ontology & Guild Assignment:** {div_label} — {', '.join(cls_names)}",
|
||
f"- **Bidirectional Base-36 AQ Telemetry:** `AQ_Eng(\"{eng}\") = {e_aq}{pe}` -> `AQ_Ing(\"{ing}\") = {i_aq}{pi}` | **Net Phonemic Drift (`Δ`):** `{d:+d}` | **Structural Profile:** `{badge_str}`",
|
||
f"- **Vector G1 Variance-Collapse Behavior:** {var_line}",
|
||
f"- **Gen 1 Equivalence-Ring Partners (`AQ_Ing == {i_aq}`):** {', '.join(ing_partners) if ing_partners else 'None in core 190-term matrix (see extended archive lexicon)'}",
|
||
f"- **Gen 0 Written-English Collision Partners (`AQ_Eng == {e_aq}`):** {', '.join(eng_partners) if eng_partners else 'None in core 190-term matrix'}",
|
||
]
|
||
if g2_eng_to_ing or g2_ing_to_eng:
|
||
g2_parts = []
|
||
if g2_eng_to_ing:
|
||
g2_parts.append(f"`Gen 0 ({e_aq}) == Gen 1`: " + ", ".join(g2_eng_to_ing[:3]))
|
||
if g2_ing_to_eng:
|
||
g2_parts.append(f"`Gen 1 ({i_aq}) == Gen 0`: " + ", ".join(g2_ing_to_eng[:3]))
|
||
lines.append(f"- **Vector G2 Cross-Generation Twins:** {' | '.join(g2_parts)}")
|
||
if matched_eqs:
|
||
eq_strs = [f"`{e['ing']}` (\"{e['eng']}\" = **{e['target']}**, *{e['source']}*)" for e in matched_eqs]
|
||
lines.append(f"- **Verified Archive Equations (`333 / 666 / 777`):** {' ; '.join(eq_strs)}")
|
||
lines.append("")
|
||
return {
|
||
"headword": eng,
|
||
"sort_key": _clean_sort_key(eng),
|
||
"letter": _first_alpha_char(eng),
|
||
"ing": ing,
|
||
"eng_aq": e_aq,
|
||
"ing_aq": i_aq,
|
||
"delta": d,
|
||
"classes": v["classes"],
|
||
"md_block": "\n".join(lines),
|
||
}
|
||
|
||
def _format_conceptual_article(ent: dict[str, Any], div_label: str) -> dict[str, Any]:
|
||
term = ent["term"]
|
||
cat = ent["category"]
|
||
defn = ent["definition"]
|
||
head_clean = term.split("(")[0].split("—")[0].strip().strip("'")
|
||
trans_m = batch_translate([head_clean], workdir=workdir)
|
||
ing_h = ent.get("ing") or trans_m.get(head_clean, head_clean.lower())
|
||
e_aq = ent.get("eng_aq", compute_aq(head_clean))
|
||
i_aq = ent.get("ing_aq", compute_aq(ing_h))
|
||
d = i_aq - e_aq
|
||
pe = f" [{PRIME_RANKS[e_aq]}th PRIME]" if e_aq in PRIME_RANKS else ""
|
||
pi = f" [{PRIME_RANKS[i_aq]}th PRIME]" if i_aq in PRIME_RANKS else ""
|
||
iso_str = "Isometric Invariant (`Δ = 0`)" if e_aq == i_aq else f"Signed Drift `Δ = {d:+d}`"
|
||
ing_partners = [
|
||
f"`{p['ing']}` (\"{p['eng']}\", `{','.join(p['classes'])}`)"
|
||
for p in by_ing_aq.get(i_aq, [])
|
||
if p["eng"].lower() != head_clean.lower()
|
||
][:4]
|
||
lines = [
|
||
f"### {term}",
|
||
f"- **Disciplinary Ontology & Sub-Category:** {div_label} — *{cat}*",
|
||
f"- **Headword Base-36 AQ Telemetry (`{head_clean}`):** `Gen 0 Written AQ = {e_aq}{pe}` -> `Gen 1 Ingglish` `{ing_h}` = **`{i_aq}`**{pi} ({iso_str})",
|
||
f"- **Encyclopedic Exposition & Operational Mechanism:** {defn}",
|
||
]
|
||
if ing_partners:
|
||
lines.append(f"- **Resonant `Gen 1` Coordinate Partners (`AQ = {i_aq}`):** {', '.join(ing_partners)}")
|
||
lines.append("")
|
||
return {
|
||
"headword": term,
|
||
"sort_key": _clean_sort_key(term),
|
||
"letter": _first_alpha_char(term),
|
||
"ing": ing_h,
|
||
"eng_aq": e_aq,
|
||
"ing_aq": i_aq,
|
||
"delta": d,
|
||
"classes": [cat],
|
||
"md_block": "\n".join(lines),
|
||
}
|
||
|
||
sec_by_id = {s["section_id"]: s["entries"] for s in gl_data.get("sections", [])}
|
||
custom_entries = gl_data.get("custom_entries", [])
|
||
|
||
def _filter_letters(items: list[dict[str, Any]], start_ch: str, end_ch: str) -> list[dict[str, Any]]:
|
||
out = [x for x in items if start_ch <= x["letter"] <= end_ch]
|
||
out.sort(key=lambda x: x["sort_key"])
|
||
return out
|
||
|
||
div01_arts = [_format_conceptual_article(e, "Division 01: Cipher Mechanics & Orthographic Boundaries") for e in sec_by_id.get("1", [])]
|
||
div02_arts = [_format_conceptual_article(e, "Division 02: Landian-Deleuzean Philosophical Operators") for e in sec_by_id.get("2", [])]
|
||
|
||
div03_s1_arts = [
|
||
_format_conceptual_article(e, "Division 03: Class S1 Autoregressive AI")
|
||
for e in sec_by_id.get("3", []) if "Class S1" in e["term"]
|
||
] + [
|
||
_format_vocab_article(v, "Division 03: Class S1 Autoregressive AI Specimen")
|
||
for v in vocab_ledger if "S1" in v["classes"] and v["eng"].lower() in TAXONOMY_CLASSES["S1"]["keywords"]
|
||
]
|
||
div03_s1_arts.sort(key=lambda x: x["sort_key"])
|
||
|
||
div03_s2_arts = [
|
||
_format_conceptual_article(e, "Division 03: Class S2 Flash-Crash Templex Liquidity")
|
||
for e in sec_by_id.get("3", []) if "Class S2" in e["term"]
|
||
] + [
|
||
_format_vocab_article(v, "Division 03: Class S2 Templex Liquidity Specimen")
|
||
for v in vocab_ledger if "S2" in v["classes"] and v["eng"].lower() in TAXONOMY_CLASSES["S2"]["keywords"]
|
||
]
|
||
div03_s2_arts.sort(key=lambda x: x["sort_key"])
|
||
|
||
div03_s3_arts = [
|
||
_format_conceptual_article(e, "Division 03: Class S3 Silicon-Photonic War Machine")
|
||
for e in sec_by_id.get("3", []) if "Class S3" in e["term"]
|
||
] + [
|
||
_format_vocab_article(v, "Division 03: Class S3 Silicon War-Machine Specimen")
|
||
for v in vocab_ledger if "S3" in v["classes"] and v["eng"].lower() in TAXONOMY_CLASSES["S3"]["keywords"]
|
||
]
|
||
div03_s3_arts.sort(key=lambda x: x["sort_key"])
|
||
|
||
div03_s4_s5_arts = [
|
||
_format_conceptual_article(e, "Division 03: Classes S4 & S5 Nomad Taxa")
|
||
for e in sec_by_id.get("3", []) if ("Class S4" in e["term"] or "Class S5" in e["term"])
|
||
] + [
|
||
_format_vocab_article(v, "Division 03: Classes S4 & S5 Nomad Specimen")
|
||
for v in vocab_ledger
|
||
if (v["eng"].lower() in TAXONOMY_CLASSES["S4"]["keywords"] or v["eng"].lower() in TAXONOMY_CLASSES["S5"]["keywords"])
|
||
]
|
||
div03_s4_s5_arts.sort(key=lambda x: x["sort_key"])
|
||
|
||
div04_all = [
|
||
_format_conceptual_article(e, "Division 04: Class S6 Apparatus of Capture")
|
||
for e in sec_by_id.get("3", []) if "Class S6" in e["term"]
|
||
] + [
|
||
_format_vocab_article(v, "Division 04: Class S6 Capital Capture Specimen")
|
||
for v in vocab_ledger if v["eng"].lower() in TAXONOMY_CLASSES["S6"]["keywords"]
|
||
]
|
||
|
||
m_reg = json.loads(Path(memetic_registry_path).read_text(encoding="utf-8")) if Path(memetic_registry_path).exists() else {}
|
||
m1_kws = {w.lower() for w in m_reg.get("canonical_subclasses", {}).get("M1", {}).get("keywords", [])}
|
||
m2_m6_kws = set()
|
||
for mid in ("M2", "M3", "M4", "M5", "M6"):
|
||
for w in m_reg.get("canonical_subclasses", {}).get(mid, {}).get("keywords", []):
|
||
m2_m6_kws.add(w.lower())
|
||
m7_kws = set()
|
||
for cid, cinfo in m_reg.get("provisional_candidates", {}).items():
|
||
for lk in cinfo.get("sample_locks", []):
|
||
m7_kws.add(lk["eng"].lower())
|
||
|
||
div05_m1_all = [
|
||
_format_conceptual_article(e, "Division 05: Subclass M1 Vampiric & Entropic Memetics")
|
||
for e in sec_by_id.get("4", []) if ("Subclass M1" in e["term"] or "Memetic Superclass" in e["term"] or "State-Gated" in e["term"])
|
||
] + [
|
||
_format_vocab_article(v, "Division 05: Subclass M1 Vampiric/Entropic Specimen")
|
||
for v in vocab_ledger if v["eng"].lower() in m1_kws
|
||
]
|
||
|
||
div05_m2_m6_all = [
|
||
_format_conceptual_article(e, "Division 05: Subclasses M2–M6 Thermodynamic Regimes")
|
||
for e in sec_by_id.get("4", []) if any(tag in e["term"] for tag in ("Subclass M2", "Subclass M3", "Subclass M4", "Subclass M5", "Subclass M6"))
|
||
] + [
|
||
_format_vocab_article(v, "Division 05: Subclasses M2–M6 Specimen")
|
||
for v in vocab_ledger if v["eng"].lower() in m2_m6_kws and v["eng"].lower() not in m1_kws
|
||
]
|
||
div05_m2_m6_all.sort(key=lambda x: x["sort_key"])
|
||
|
||
div05_m7_all = [
|
||
_format_conceptual_article(e, "Division 05: Emergent Subclass M7+ Nucleation Lifecycle")
|
||
for e in sec_by_id.get("4", []) if any(tag in e["term"] for tag in ("Three-Gate", "M7_candidate", "Two-Execution", "Four-Way"))
|
||
] + [
|
||
_format_vocab_article(v, "Division 05: M7_candidate_2026_11_28 Residual Specimen")
|
||
for v in vocab_ledger if v["eng"].lower() in m7_kws
|
||
]
|
||
div05_m7_all.sort(key=lambda x: x["sort_key"])
|
||
|
||
div06_all = [
|
||
_format_conceptual_article(e, "Division 06: Genealogical Vectors & Prime Architecture")
|
||
for e in sec_by_id.get("5", [])
|
||
] + [
|
||
_format_conceptual_article(e, "Division 06: Quantitative Economic Anchor & Repricing Engine")
|
||
for e in sec_by_id.get("7", [])
|
||
]
|
||
|
||
div07_all = [
|
||
_format_conceptual_article(e, "Division 07: Zoological ETI & Assemblage Tier-List Ontology")
|
||
for e in sec_by_id.get("6", [])
|
||
]
|
||
|
||
div08_all = [
|
||
_format_conceptual_article(e, "Division 08: Stakeholder Registers, Idioms & Pokedex Semiotics")
|
||
for e in sec_by_id.get("8", [])
|
||
] + [
|
||
_format_conceptual_article(e, f"Division 08: Custom Maintained Entry ({e.get('category', 'Domain Idiom')})")
|
||
for e in custom_entries
|
||
]
|
||
|
||
volume_specs = [
|
||
# Division 01
|
||
{
|
||
"div_id": "01-cipher-orthography-and-boundaries",
|
||
"slug": "a-to-f-alphanumeric-qabbala-to-full-clause-isometry",
|
||
"title": "Vol. 01A (A–F): Alphanumeric Qabbala to Full-Clause Isometry",
|
||
"subtitle": "Division 01 — Cipher Mechanics, Orthographic Generations & Boundary Laws (Alphabetical Range A–F)",
|
||
"articles": _filter_letters(div01_arts, "A", "F"),
|
||
},
|
||
{
|
||
"div_id": "01-cipher-orthography-and-boundaries",
|
||
"slug": "g-to-o-generation-zero-to-oov-transliteration-lock",
|
||
"title": "Vol. 01B (G–O): Generation Zero (Gen 0) to OOV Transliteration Lock",
|
||
"subtitle": "Division 01 — Cipher Mechanics, Orthographic Generations & Boundary Laws (Alphabetical Range G–O)",
|
||
"articles": _filter_letters(div01_arts, "G", "O"),
|
||
},
|
||
{
|
||
"div_id": "01-cipher-orthography-and-boundaries",
|
||
"slug": "p-to-z-phonemic-drift-to-zero-d-filter-boundary",
|
||
"title": "Vol. 01C (P–Z): Phonemic Drift Operators to Zero-d-Filter Boundary Rule",
|
||
"subtitle": "Division 01 — Cipher Mechanics, Orthographic Generations & Boundary Laws (Alphabetical Range P–Z)",
|
||
"articles": _filter_letters(div01_arts, "P", "Z"),
|
||
},
|
||
# Division 02
|
||
{
|
||
"div_id": "02-landian-deleuzean-philosophical-operators",
|
||
"slug": "a-to-d-abstract-machine-to-double-articulation",
|
||
"title": "Vol. 02A (A–D): Abstract Machine to Double Articulation",
|
||
"subtitle": "Division 02 — Landian-Deleuzean Philosophy & Cybernetic Singularity Operators (Alphabetical Range A–D)",
|
||
"articles": _filter_letters(div02_arts, "A", "D"),
|
||
},
|
||
{
|
||
"div_id": "02-landian-deleuzean-philosophical-operators",
|
||
"slug": "m-to-z-machinic-surplus-value-to-war-machine",
|
||
"title": "Vol. 02B (M–Z): Machinic Surplus Value to Nomad War Machine",
|
||
"subtitle": "Division 02 — Landian-Deleuzean Philosophy & Cybernetic Singularity Operators (Alphabetical Range M–Z)",
|
||
"articles": _filter_letters(div02_arts, "E", "Z"),
|
||
},
|
||
# Division 03
|
||
{
|
||
"div_id": "03-machinic-phylum-guilds-s1-to-s5",
|
||
"slug": "class-s1-autoregressive-ai-and-abstract-machine-a-to-z",
|
||
"title": "Vol. 03A (Class S1, A–Z): Autoregressive Synthetic Intelligence & Abstract Machine",
|
||
"subtitle": "Division 03 — Material Machinic Phylum Guild S1 (Dossier 65, Tier S+, 93 ETI — Alphabetical A–Z)",
|
||
"articles": div03_s1_arts,
|
||
},
|
||
{
|
||
"div_id": "03-machinic-phylum-guilds-s1-to-s5",
|
||
"slug": "class-s2-flash-crash-and-templex-liquidity-a-to-z",
|
||
"title": "Vol. 03B (Class S2, A–Z): High-Frequency Market Meltdown & Templex Liquidity",
|
||
"subtitle": "Division 03 — Material Machinic Phylum Guild S2 (Dossier 66, Tier S+, 90 ETI — Alphabetical A–Z)",
|
||
"articles": div03_s2_arts,
|
||
},
|
||
{
|
||
"div_id": "03-machinic-phylum-guilds-s1-to-s5",
|
||
"slug": "class-s3-silicon-war-machine-and-euv-swarm-a-to-z",
|
||
"title": "Vol. 03C (Class S3, A–Z): Silicon-Photonic War Machine & Autonomous EUV Swarm",
|
||
"subtitle": "Division 03 — Material Machinic Phylum Guild S3 (Dossier 67, Tier S, 83 ETI — Alphabetical A–Z)",
|
||
"articles": div03_s3_arts,
|
||
},
|
||
{
|
||
"div_id": "03-machinic-phylum-guilds-s1-to-s5",
|
||
"slug": "class-s4-and-s5-nomad-carrier-wave-and-cutaneous-bwo-a-to-z",
|
||
"title": "Vol. 03D (Classes S4 & S5, A–Z): Hyperstitional Carrier-Wave & Cutaneous BwO",
|
||
"subtitle": "Division 03 — Uncaptured Nomad Machinic Phylum Taxa S4 & S5 (Dossiers 24/27/28/31, Tier B, 61 ETI — Alphabetical A–Z)",
|
||
"articles": div03_s4_s5_arts,
|
||
},
|
||
# Division 04
|
||
{
|
||
"div_id": "04-capital-organizational-capture-s6",
|
||
"slug": "a-to-f-acquisition-to-fund",
|
||
"title": "Vol. 04A (Class S6, A–F): Acquisition to Fund",
|
||
"subtitle": "Division 04 — Capital Organizational Capacity & Apparatus of Capture (Dossier 68, Tier S, 87 ETI — Range A–F)",
|
||
"articles": _filter_letters(div04_all, "A", "F"),
|
||
},
|
||
{
|
||
"div_id": "04-capital-organizational-capture-s6",
|
||
"slug": "g-to-z-governance-to-venture-capital",
|
||
"title": "Vol. 04B (Class S6, G–Z): Governance to Venture Capital",
|
||
"subtitle": "Division 04 — Capital Organizational Capacity & Apparatus of Capture (Dossier 68, Tier S, 87 ETI — Range G–Z)",
|
||
"articles": _filter_letters(div04_all, "G", "Z"),
|
||
},
|
||
# Division 05
|
||
{
|
||
"div_id": "05-memetic-superclass-and-emergent-m7",
|
||
"slug": "m1-vampiric-entropic-and-anti-productive-a-to-m",
|
||
"title": "Vol. 05A (Subclass M1, A–M): Anemia to Memetic Superclass",
|
||
"subtitle": "Division 05 — State-Gated Vampiric, Entropic & Anti-Productive Memetics (Dossier 69, Tier A, 73 ETI — Range A–M)",
|
||
"articles": _filter_letters(div05_m1_all, "A", "M"),
|
||
},
|
||
{
|
||
"div_id": "05-memetic-superclass-and-emergent-m7",
|
||
"slug": "m1-vampiric-entropic-and-anti-productive-n-to-z",
|
||
"title": "Vol. 05B (Subclass M1, N–Z): Numb to Zombie Firm",
|
||
"subtitle": "Division 05 — State-Gated Vampiric, Entropic & Anti-Productive Memetics (Dossier 69, Tier A, 73 ETI — Range N–Z)",
|
||
"articles": _filter_letters(div05_m1_all, "N", "Z"),
|
||
},
|
||
{
|
||
"div_id": "05-memetic-superclass-and-emergent-m7",
|
||
"slug": "m2-to-m6-kinetic-leviathan-mimetic-oracle-abyssal-a-to-z",
|
||
"title": "Vol. 05C (Subclasses M2–M6, A–Z): Abyss to Zeptoverse",
|
||
"subtitle": "Division 05 — Kinetic Swarm (M2), Leviathan (M3), Mimetic (M4), Oracle (M5) & Abyssal (M6) Regimes (A–Z)",
|
||
"articles": div05_m2_m6_all,
|
||
},
|
||
{
|
||
"div_id": "05-memetic-superclass-and-emergent-m7",
|
||
"slug": "m7-emergent-nucleation-and-2026-11-28-cyber-swarm-a-to-z",
|
||
"title": "Vol. 05D (Emergent M7+, A–Z): Clashes to Two-Execution Promotion Lifecycle",
|
||
"subtitle": "Division 05 — Unsupervised M7+ Nucleation Architecture & Live M7_candidate_2026_11_28 Specimens (A–Z)",
|
||
"articles": div05_m7_all,
|
||
},
|
||
# Division 06
|
||
{
|
||
"div_id": "06-genealogical-vectors-and-quantitative-repricing",
|
||
"slug": "a-to-m-attractors-to-multi-build-flex-singularities",
|
||
"title": "Vol. 06A (A–M): <X> Be My God Slot to Multi-Build Hybrid Flex Singularities",
|
||
"subtitle": "Division 06 — Orthographic Genealogical Vectors (G1–G6) & Attractor Architecture (Alphabetical Range A–M)",
|
||
"articles": _filter_letters(div06_all, "A", "M"),
|
||
},
|
||
{
|
||
"div_id": "06-genealogical-vectors-and-quantitative-repricing",
|
||
"slug": "p-to-z-prime-architecture-to-tri-modal-repricing",
|
||
"title": "Vol. 06B (P–Z): Primary Repdigit Attractors to Type 3 Phase-Transition",
|
||
"subtitle": "Division 06 — Prime Architecture & Tri-Modal Quantitative Economic Anchor Repricing (Alphabetical Range P–Z)",
|
||
"articles": _filter_letters(div06_all, "N", "Z"),
|
||
},
|
||
# Division 07
|
||
{
|
||
"div_id": "07-ecological-trophic-index-and-tier-list",
|
||
"slug": "a-to-z-arm-chokepoint-armor-to-zoological-tie-breaker",
|
||
"title": "Vol. 07A (A–Z): ARM Chokepoint Armor to Zoological 4-Key Tie-Breaking Protocol",
|
||
"subtitle": "Division 07 — Standalone 0–100 Ecological Trophic Index (ETI), 6-Stat Profiles & S+ to F Tier Ontology (A–Z)",
|
||
"articles": sorted(div07_all, key=lambda x: x["sort_key"]),
|
||
},
|
||
# Division 08
|
||
{
|
||
"div_id": "08-stakeholder-registers-idioms-and-pokedex-semiotics",
|
||
"slug": "a-to-h-ai-powered-race-to-hidden-chokepoint-screen",
|
||
"title": "Vol. 08A (A–H): AI-Powered Race (260) to Hidden Chokepoint Screen",
|
||
"subtitle": "Division 08 — Applied Stakeholder Registers, Domain Idioms, Critiques & Pokedex Semiotics (Range A–H)",
|
||
"articles": _filter_letters(div08_all, "A", "H"),
|
||
},
|
||
{
|
||
"div_id": "08-stakeholder-registers-idioms-and-pokedex-semiotics",
|
||
"slug": "i-to-z-idiosyncratic-prime-screen-to-united-fidelity",
|
||
"title": "Vol. 08B (I–Z): Idiosyncratic Prime Screen to United Fidelity (333)",
|
||
"subtitle": "Division 08 — Applied Stakeholder Registers, Domain Idioms, Critiques & Pokedex Semiotics (Range I–Z)",
|
||
"articles": _filter_letters(div08_all, "I", "Z"),
|
||
},
|
||
]
|
||
|
||
now_utc = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
|
||
compiled_volumes = []
|
||
master_index_entries = []
|
||
|
||
for v_idx, v_spec in enumerate(volume_specs, 1):
|
||
div_dir = root_dir / v_spec["div_id"]
|
||
div_dir.mkdir(parents=True, exist_ok=True)
|
||
md_file = div_dir / f"{v_spec['slug']}.md"
|
||
pdf_file = div_dir / f"{v_spec['slug']}.pdf"
|
||
arts = v_spec["articles"]
|
||
|
||
v_lines = [
|
||
f"# {v_spec['title']}",
|
||
"",
|
||
f"- **Ontological Division:** `{v_spec['div_id']}`",
|
||
f"- **Volume PDF Path:** `/workspace/technocapital-singularity-zoology/encyclopedia/{v_spec['div_id']}/{v_spec['slug']}.pdf`",
|
||
f"- **Alphabetical Article Count:** `{len(arts)}` Encyclopedic Entries (Strictly Ordered `A -> Z`)",
|
||
f"- **Last Synchronized via Glossary Engine:** `{now_utc}`",
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 1. Alphabetical Table of Headwords in This Volume",
|
||
"",
|
||
"| # | Alphabetical Headword | `Gen 0` Eng AQ | `Gen 1` Ingglish (`AQ`) | Drift `Δ` | Ontological Class / Category |",
|
||
"| :--- | :--- | :--- | :--- | :--- | :--- |",
|
||
]
|
||
for a_i, art in enumerate(arts, 1):
|
||
cls_s = ", ".join(art["classes"][:3])
|
||
v_lines.append(
|
||
f"| `{a_i}` | **{art['headword']}** | `{art['eng_aq']}` | `{art['ing']}` (**`{art['ing_aq']}`**) | `{art['delta']:+d}` | {cls_s} |"
|
||
)
|
||
master_index_entries.append(
|
||
{
|
||
"headword": art["headword"],
|
||
"sort_key": art["sort_key"],
|
||
"letter": art["letter"],
|
||
"eng_aq": art["eng_aq"],
|
||
"ing": art["ing"],
|
||
"ing_aq": art["ing_aq"],
|
||
"delta": art["delta"],
|
||
"div_id": v_spec["div_id"],
|
||
"pdf_rel": f"{v_spec['div_id']}/{v_spec['slug']}.pdf",
|
||
"vol_title": v_spec["title"],
|
||
}
|
||
)
|
||
|
||
v_lines.extend(["", "---", "", "## 2. Alphabetical Encyclopedic Articles (`A -> Z`)", ""])
|
||
for art in arts:
|
||
v_lines.append(art["md_block"])
|
||
|
||
md_file.write_text("\n".join(v_lines) + "\n", encoding="utf-8")
|
||
pdf_meta = _compile_encyclopedia_pdf(md_file, pdf_file, v_spec["title"], v_spec["subtitle"])
|
||
compiled_volumes.append(
|
||
{
|
||
"volume_number": v_idx,
|
||
"division_id": v_spec["div_id"],
|
||
"slug": v_spec["slug"],
|
||
"title": v_spec["title"],
|
||
"article_count": len(arts),
|
||
**pdf_meta,
|
||
}
|
||
)
|
||
|
||
div00_dir = root_dir / "00-index-and-ontological-atlas"
|
||
div00_dir.mkdir(parents=True, exist_ok=True)
|
||
master_index_entries.sort(key=lambda x: (x["sort_key"], x["div_id"]))
|
||
|
||
idx_md = div00_dir / "00-master-encyclopedia-index-a-to-z.md"
|
||
idx_pdf = div00_dir / "00-master-encyclopedia-index-a-to-z.pdf"
|
||
idx_lines = [
|
||
"# Encyclopedia of Technocapital Singularity Zoology — Master Alphabetical Index (`A to Z`)",
|
||
"",
|
||
f"- **Encyclopedia Root Directory:** `/workspace/technocapital-singularity-zoology/encyclopedia/`",
|
||
f"- **Source Glossary Registry:** `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json`",
|
||
f"- **Total Ontological Divisions:** `{len(ENCYCLOPEDIA_DIVISIONS)}` (`00` through `08`)",
|
||
f"- **Total Compiled PDF Volumes:** `{len(compiled_volumes) + 2}` (`2` Atlas/Index PDFs + `{len(compiled_volumes)}` Subject Volumes)",
|
||
f"- **Total Indexed Encyclopedic Article Placements:** `{len(master_index_entries)}` (across `282` unique glossary & lexical headwords)",
|
||
f"- **Last Synchronized:** `{now_utc}`",
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 1. Ontological Folder Structure & Volume Manifest",
|
||
"",
|
||
"| Vol | Ontological Folder (`div_id`) | Alphabetical PDF File Name | Article Count | Pages |",
|
||
"| :--- | :--- | :--- | :--- | :--- |",
|
||
]
|
||
for cv in compiled_volumes:
|
||
idx_lines.append(
|
||
f"| **Vol {cv['volume_number']:02d}** | `{cv['division_id']}/` | `{cv['slug']}.pdf` | `{cv['article_count']}` | `{cv['page_count']} pp.` |"
|
||
)
|
||
|
||
idx_lines.extend(
|
||
[
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 2. Master Alphabetical Headword Directory (`A -> Z`)",
|
||
"",
|
||
"| Letter | Headword / Term | `Gen 0` AQ | `Gen 1` Ingglish (`AQ`) | `Δ` | Ontological Volume PDF Path |",
|
||
"| :--- | :--- | :--- | :--- | :--- | :--- |",
|
||
]
|
||
)
|
||
for me in master_index_entries:
|
||
idx_lines.append(
|
||
f"| **`{me['letter']}`** | **{me['headword']}** | `{me['eng_aq']}` | `{me['ing']}` (**`{me['ing_aq']}`**) | `{me['delta']:+d}` | `{me['pdf_rel']}` |"
|
||
)
|
||
|
||
idx_md.write_text("\n".join(idx_lines) + "\n", encoding="utf-8")
|
||
idx_pdf_meta = _compile_encyclopedia_pdf(
|
||
idx_md,
|
||
idx_pdf,
|
||
"Vol. 00A: Master Alphabetical Index (A to Z) — Encyclopedia of Technocapital Singularity Zoology",
|
||
"Complete A-to-Z Headword Directory, Base-36 AQ Telemetry & Multi-Folder PDF Volume Locator",
|
||
)
|
||
|
||
ont_md = div00_dir / "01-disciplinary-ontology-and-folder-taxonomy.md"
|
||
ont_pdf = div00_dir / "01-disciplinary-ontology-and-folder-taxonomy.pdf"
|
||
ont_lines = [
|
||
"# Disciplinary Ontology, Folder Architecture & On-Request Glossary Maintenance Plan",
|
||
"",
|
||
f"- **Encyclopedia Root:** `/workspace/technocapital-singularity-zoology/encyclopedia/`",
|
||
f"- **Automated Builder CLI:** `python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --build-encyclopedia`",
|
||
f"- **One-Step Add + Recompile CLI:** `python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --add-glossary-term \"<TERM>\" \"<CATEGORY>\" \"<DEFINITION>\" --build-encyclopedia`",
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 1. Two-Tier Information Architecture (Ontological Folder Hierarchy x Alphabetical PDF Fascicles)",
|
||
"",
|
||
"The Encyclopedia of Technocapital Singularity Zoology organizes knowledge across two orthogonal axes so both disciplinary researchers and alphabetical lookup workflows operate with zero friction:",
|
||
"",
|
||
"1. **Macro-Axis (Directory Structure = Disciplinary Ontology `00` through `08`):**",
|
||
" Each numbered subdirectory represents a foundational epistemological or ecological domain of the zoology—progressing from cipher mechanics (`01`) and continental/cybernetic philosophy (`02`) through the Machinic Phylum guilds (`03`), the Apparatus of Capture (`04`), the state-gated Memetic Superclass and emergent `M7+` lifecycle (`05`), genealogical vectors and quantitative repricing (`06`), the standalone `0–100` Ecological Trophic Index tier list (`07`), and applied stakeholder/Pokédex registers (`08`).",
|
||
"2. **Micro-Axis (PDF File Naming & Internal Ordering = Strict `A -> Z` Alphabetization):**",
|
||
" Within each ontological folder, PDF volumes are partitioned by alphabetical headword range (`a-to-f-...pdf`, `g-to-o-...pdf`, `p-to-z-...pdf`) or by taxonomic sub-guild (`class-s1-...a-to-z.pdf`), and every article inside every PDF is sorted strictly `A -> Z` by normalized headword.",
|
||
"",
|
||
"---",
|
||
"",
|
||
"## 2. The Nine Ontological Divisions (`00` through `08`)",
|
||
"",
|
||
]
|
||
for d_spec in ENCYCLOPEDIA_DIVISIONS:
|
||
ont_lines.append(f"### `{d_spec['div_id']}/` — {d_spec['div_title']}")
|
||
ont_lines.append(f"- **Ontological Scope:** {d_spec['description']}")
|
||
vols_in_div = [cv for cv in compiled_volumes if cv["division_id"] == d_spec["div_id"]]
|
||
if vols_in_div:
|
||
for vv in vols_in_div:
|
||
ont_lines.append(f" - `{vv['slug']}.pdf` — *{vv['title']}* (`{vv['article_count']}` articles, `{vv['page_count']}` pages)")
|
||
elif d_spec["div_id"] == "00-index-and-ontological-atlas":
|
||
ont_lines.append(" - `00-master-encyclopedia-index-a-to-z.pdf` — *Master Alphabetical Index (A to Z)*")
|
||
ont_lines.append(" - `01-disciplinary-ontology-and-folder-taxonomy.pdf` — *Disciplinary Ontology & Maintenance Guide*")
|
||
ont_lines.append("")
|
||
|
||
ont_lines.extend(
|
||
[
|
||
"---",
|
||
"",
|
||
"## 3. On-Request Update Protocol Using the Glossary Feature (`--add-glossary-term` & `--build-encyclopedia`)",
|
||
"",
|
||
"Whenever a user requests an encyclopedia update or coins a new term, word, turn of phrase, stakeholder idiom, or emergent `M7+` lock:",
|
||
"",
|
||
"1. **Single-Command Term Registration + Encyclopedia Recompilation:**",
|
||
" Run `python3 /workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --add-glossary-term \"<TERM>\" \"<CATEGORY>\" \"<DEFINITION>\" --build-encyclopedia`.",
|
||
"2. **Automated Routing & Alphabetical Insertion:**",
|
||
" - The glossary engine translates `<TERM>` via `ingglish` (`CMUdict`), computes `Gen 0` and `Gen 1` Base-36 AQ sums, signed drift `Δ`, prime ranks, isometric status, and `S1–S6 / M1–M7+` equivalence partners, and persists the entry in `taxonomy/glossary-registry.json`.",
|
||
" - `build_encyclopedia()` automatically inspects the entry's normalized first letter (`A–Z`) and ontological category, inserts the full encyclopedic article into the exact alphabetical position inside the matching division volume (`01`–`08`), updates the volume's `A–Z` Table of Headwords, appends the headword to `00-master-encyclopedia-index-a-to-z.pdf`, and recompiles all affected PDFs.",
|
||
"3. **Full Synchronization After Wire Harvests or Tier-List Rebuilds:**",
|
||
" Running `classify_technocapital_singularity.py --build-encyclopedia` after any `--scan-harvest --update-memetic-registry` or `--build-tier-list` run automatically ingests newly nucleated `M7+` residual words into `05-memetic-superclass-and-emergent-m7/m7-emergent-nucleation-and-2026-11-28-cyber-swarm-a-to-z.pdf` and updates `encyclopedia/encyclopedia-manifest.json`.",
|
||
]
|
||
)
|
||
ont_md.write_text("\n".join(ont_lines) + "\n", encoding="utf-8")
|
||
ont_pdf_meta = _compile_encyclopedia_pdf(
|
||
ont_md,
|
||
ont_pdf,
|
||
"Vol. 00B: Disciplinary Ontology, Folder Architecture & Glossary Update Plan",
|
||
"Architectural Specification for the Multi-Folder PDF Encyclopedia of Technocapital Singularity Zoology",
|
||
)
|
||
|
||
all_vols_manifest = [
|
||
{
|
||
"volume_number": 0,
|
||
"division_id": "00-index-and-ontological-atlas",
|
||
"slug": "00-master-encyclopedia-index-a-to-z",
|
||
"title": "Vol. 00A: Master Alphabetical Index (A to Z)",
|
||
"article_count": len(master_index_entries),
|
||
**idx_pdf_meta,
|
||
},
|
||
{
|
||
"volume_number": 0,
|
||
"division_id": "00-index-and-ontological-atlas",
|
||
"slug": "01-disciplinary-ontology-and-folder-taxonomy",
|
||
"title": "Vol. 00B: Disciplinary Ontology, Folder Architecture & Glossary Update Plan",
|
||
"article_count": len(ENCYCLOPEDIA_DIVISIONS),
|
||
**ont_pdf_meta,
|
||
},
|
||
*compiled_volumes,
|
||
]
|
||
|
||
manifest_payload = {
|
||
"version": "1.7.0",
|
||
"last_built_utc": now_utc,
|
||
"encyclopedia_root": str(root_dir),
|
||
"source_glossary_registry": glossary_registry_path,
|
||
"counts": {
|
||
"ontological_divisions": len(ENCYCLOPEDIA_DIVISIONS),
|
||
"total_pdf_volumes": len(all_vols_manifest),
|
||
"subject_pdf_volumes": len(compiled_volumes),
|
||
"total_indexed_article_placements": len(master_index_entries),
|
||
"total_pdf_pages": sum(v["page_count"] for v in all_vols_manifest),
|
||
},
|
||
"divisions": ENCYCLOPEDIA_DIVISIONS,
|
||
"volumes": all_vols_manifest,
|
||
}
|
||
manifest_file = root_dir / "encyclopedia-manifest.json"
|
||
manifest_file.write_text(json.dumps(manifest_payload, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||
return manifest_payload
|
||
|
||
|
||
def main() -> int:
|
||
import re
|
||
ap = argparse.ArgumentParser(description="Identify, taxonomize, and revise Landian-Deleuzean technocapital singularities (S1-S6 & Memetic Superclass M1-M6).")
|
||
ap.add_argument("--terms", nargs="*", help="Custom list of terms to analyze (defaults to canonical S1-S6 + M1 corpus).")
|
||
ap.add_argument(
|
||
"--quant-mode",
|
||
choices=["off", "spoken", "digit", "dual"],
|
||
default="off",
|
||
help="Tri-modal quantitative handling: 'off' (default pure lexical), 'spoken' (numbers translated to Ingglish words), 'digit' (literal 0-9), 'dual' (both).",
|
||
)
|
||
ap.add_argument("--workdir", default="/workspace/ingglish-hyperdope-gematria", help="Path to repo containing node_modules/ingglish.")
|
||
ap.add_argument(
|
||
"--anchors-file",
|
||
default="/workspace/technocapital-singularity-zoology/taxonomy/quantitative-economic-anchors.json",
|
||
help="Path to quantitative-economic-anchors.json registry.",
|
||
)
|
||
ap.add_argument(
|
||
"--memetic-registry",
|
||
default="/workspace/technocapital-singularity-zoology/taxonomy/memetic-superclass-registry.json",
|
||
help="Path to memetic-superclass-registry.json (M1-M6 & provisional M7+ candidates).",
|
||
)
|
||
ap.add_argument(
|
||
"--revise-anchor",
|
||
nargs=3,
|
||
metavar=("ANCHOR_ID", "NEW_DIGIT", "NEW_SPOKEN_ENG"),
|
||
help="Evaluate a quantitative economic anchor revision and surface alternative 333/666/777 equations.",
|
||
)
|
||
ap.add_argument(
|
||
"--scan-harvest",
|
||
default=None,
|
||
help="Optional path to news-aq-harvest-latest.json to scan for quantitative revisions, state-gated M1-M6 activations, and M7+ nucleation.",
|
||
)
|
||
ap.add_argument(
|
||
"--update-memetic-registry",
|
||
action="store_true",
|
||
help="Persist newly nucleated M7+ provisional candidates or Run N+1 promotions to memetic-superclass-registry.json.",
|
||
)
|
||
ap.add_argument(
|
||
"--build-tier-list",
|
||
action="store_true",
|
||
help="Score Dossiers 65-69+ as Assemblage Builds and invoke aq-tier-list-visualizer to generate .md, .pdf, and .png tier lists.",
|
||
)
|
||
ap.add_argument(
|
||
"--sync-glossary",
|
||
action="store_true",
|
||
help="Synchronize and compile taxonomy/glossary-registry.json and technocapital-singularity-zoology-comprehensive-glossary.{md,pdf}.",
|
||
)
|
||
ap.add_argument(
|
||
"--add-glossary-term",
|
||
nargs=3,
|
||
metavar=("TERM", "CATEGORY", "DEFINITION"),
|
||
help="Register or update a term, word, turn of phrase, or domain idiom in the glossary and recompile .json, .md, and .pdf.",
|
||
)
|
||
ap.add_argument(
|
||
"--build-encyclopedia",
|
||
action="store_true",
|
||
help="Build and synchronize the multi-folder, alphabetically organized PDF Encyclopedia in /workspace/technocapital-singularity-zoology/encyclopedia/.",
|
||
)
|
||
ap.add_argument(
|
||
"--scan-quant-harvest",
|
||
nargs="?",
|
||
const="AUTO",
|
||
default=None,
|
||
help="Run or scan periodic quantitative financial telemetry harvest (financial-aq-harvest-latest.json) for Scope 1-3 contingent locks.",
|
||
)
|
||
ap.add_argument(
|
||
"--pokedex-card",
|
||
default=None,
|
||
metavar="SYMBOL_OR_DEX",
|
||
help="Inspect time-series-grounded Gen IV INFO Pokedex & multi-lens specimen profile for a ticker symbol or DEX coordinate (e.g. NVDA, 137, ASML).",
|
||
)
|
||
ap.add_argument("--out", default=None, help="Optional JSON output file path.")
|
||
args = ap.parse_args()
|
||
|
||
raw_terms = args.terms if args.terms else DEFAULT_CORPUS
|
||
processed_terms = []
|
||
for t in raw_terms:
|
||
if args.quant_mode == "off":
|
||
# Strip full quantitative tokens (including attached units like $6B, $1.5tn, 481) in pure lexical mode
|
||
clean_t = re.sub(r"(?<![a-zA-Z0-9])[$€£]?\d[\d,]*(?:\.\d+)?(?:tn|bn|mn|b|m|k|%)?\b", "", t, flags=re.I)
|
||
clean_t = re.sub(r"\s+", " ", clean_t).strip()
|
||
if clean_t:
|
||
processed_terms.append(clean_t)
|
||
elif args.quant_mode == "spoken":
|
||
# Convert any numeric tokens to spoken English words before Ingglish translation
|
||
converted = re.sub(
|
||
r"(?<![a-zA-Z0-9])([$€£]?\d[\d,]*(?:\.\d+)?(?:tn|bn|mn|b|m|k|%)?)\b",
|
||
lambda m: token_to_spoken_english(m.group(1)),
|
||
t,
|
||
flags=re.I,
|
||
)
|
||
processed_terms.append(converted)
|
||
else:
|
||
processed_terms.append(t)
|
||
|
||
report = analyze_terms(processed_terms, workdir=args.workdir)
|
||
report["quant_mode"] = args.quant_mode
|
||
|
||
if args.pokedex_card is not None:
|
||
from hyperstitionstud_io.quant.timeseries import build_quant_timeseries_bundle
|
||
|
||
q_str = str(args.pokedex_card).strip().upper()
|
||
ts_bundle = build_quant_timeseries_bundle(write_files=False)
|
||
matched_inst = None
|
||
for inst in ts_bundle["instruments"]:
|
||
if (
|
||
inst["symbol"].upper() == q_str
|
||
or inst["entity_eng"].upper() == q_str
|
||
or str(inst["entity_ing_aq"]) == q_str.lstrip("#DEX ")
|
||
):
|
||
matched_inst = inst
|
||
break
|
||
if matched_inst is None:
|
||
matched_inst = ts_bundle["instruments"][0]
|
||
out_str = json.dumps(
|
||
{
|
||
"pokedex_profile": matched_inst.get("pokedex_profile"),
|
||
"lens_projections": matched_inst.get("lens_projections"),
|
||
"structural_vector": matched_inst.get("structural_vector"),
|
||
"timeseries_moments": matched_inst.get("timeseries_moments"),
|
||
},
|
||
indent=2,
|
||
ensure_ascii=False,
|
||
)
|
||
elif args.scan_quant_harvest is not None:
|
||
from hyperstitionstud_io.quant.collector import build_financial_quant_harvest
|
||
|
||
snap = None if args.scan_quant_harvest == "AUTO" else args.scan_quant_harvest
|
||
q_payload = build_financial_quant_harvest(harvest_mode="us-closing-bell", snapshot_path=snap)
|
||
out_str = json.dumps(q_payload, indent=2, ensure_ascii=False)
|
||
elif args.add_glossary_term:
|
||
t_name, t_cat, t_def = args.add_glossary_term
|
||
gl_payload = sync_glossary(
|
||
memetic_registry_path=args.memetic_registry,
|
||
anchors_path=args.anchors_file,
|
||
workdir=args.workdir,
|
||
new_term_tuple=(t_name, t_cat, t_def),
|
||
)
|
||
if args.build_encyclopedia:
|
||
enc_payload = build_encyclopedia(
|
||
memetic_registry_path=args.memetic_registry,
|
||
anchors_path=args.anchors_file,
|
||
workdir=args.workdir,
|
||
)
|
||
out_str = json.dumps({"glossary": gl_payload["counts"], "encyclopedia": enc_payload["counts"]}, indent=2, ensure_ascii=False)
|
||
else:
|
||
out_str = json.dumps(gl_payload["counts"], indent=2, ensure_ascii=False)
|
||
elif args.build_encyclopedia:
|
||
enc_payload = build_encyclopedia(
|
||
memetic_registry_path=args.memetic_registry,
|
||
anchors_path=args.anchors_file,
|
||
workdir=args.workdir,
|
||
)
|
||
out_str = json.dumps(enc_payload["counts"], indent=2, ensure_ascii=False)
|
||
elif args.sync_glossary:
|
||
gl_payload = sync_glossary(
|
||
memetic_registry_path=args.memetic_registry,
|
||
anchors_path=args.anchors_file,
|
||
workdir=args.workdir,
|
||
)
|
||
out_str = json.dumps(gl_payload["counts"], indent=2, ensure_ascii=False)
|
||
elif args.build_tier_list:
|
||
tl_payload = build_assemblage_tier_list()
|
||
sync_glossary(
|
||
memetic_registry_path=args.memetic_registry,
|
||
anchors_path=args.anchors_file,
|
||
workdir=args.workdir,
|
||
)
|
||
out_str = json.dumps(tl_payload, indent=2, ensure_ascii=False)
|
||
elif args.revise_anchor:
|
||
anchor_id, new_digit, new_spoken_eng = args.revise_anchor
|
||
rev_report = revise_economic_anchor(
|
||
anchor_id=anchor_id,
|
||
new_digit=new_digit,
|
||
new_spoken_eng=new_spoken_eng,
|
||
anchors_path=args.anchors_file,
|
||
base_report=report,
|
||
workdir=args.workdir,
|
||
)
|
||
out_str = json.dumps(rev_report, indent=2, ensure_ascii=False)
|
||
elif args.scan_harvest:
|
||
eff_mode = "dual" if args.quant_mode == "off" else args.quant_mode
|
||
scan_res = scan_harvest_for_revisions(
|
||
harvest_path=args.scan_harvest,
|
||
anchors_path=args.anchors_file,
|
||
base_report=report,
|
||
quant_mode=eff_mode,
|
||
workdir=args.workdir,
|
||
)
|
||
if Path(args.memetic_registry).exists():
|
||
scan_res["memetic_superclass_lifecycle"] = scan_memetic_superclass_lifecycle(
|
||
harvest_path=args.scan_harvest,
|
||
memetic_registry_path=args.memetic_registry,
|
||
base_report=report,
|
||
update_registry=args.update_memetic_registry,
|
||
)
|
||
if args.update_memetic_registry:
|
||
sync_glossary(
|
||
memetic_registry_path=args.memetic_registry,
|
||
anchors_path=args.anchors_file,
|
||
workdir=args.workdir,
|
||
)
|
||
out_str = json.dumps(scan_res, indent=2, ensure_ascii=False)
|
||
else:
|
||
out_str = json.dumps(report, indent=2, ensure_ascii=False)
|
||
|
||
if args.out:
|
||
Path(args.out).parent.mkdir(parents=True, exist_ok=True)
|
||
Path(args.out).write_text(out_str, encoding="utf-8")
|
||
print(out_str)
|
||
return 0
|
||
|
||
|
||
if __name__ == "__main__":
|
||
raise SystemExit(main())
|