import { slug } from './catalog.mjs';

/**
 * Authored expansion registry for the Ultimate Science Fiction Oracle.
 *
 * This is deliberately independent of the 480-card core. Every row names a
 * real concept, work, practice, institution, hypothesis, or established
 * speculative-fiction motif. Rows are grouped by editorial territory for
 * maintainability; they are not generated as facets of core cards.
 *
 * Row format: `Title|candidate-specific gloss|optional comma-separated flags`.
 * Scores come from named, documented editorial rubrics, never hashes or quota
 * positions. Dispositions are computed from those scores and explicit flags.
 */

export const CRITERIA = Object.freeze([
  'canonicalFit',
  'distinctiveness',
  'crossDomainReach',
  'evidentiaryClarity',
  'symbolicDepth',
  'gameplayUtility',
  'safetyReadiness',
  'visualLegibility',
]);

export const SCORE_WEIGHTS = Object.freeze({
  canonicalFit: 0.18,
  distinctiveness: 0.16,
  crossDomainReach: 0.12,
  evidentiaryClarity: 0.14,
  symbolicDepth: 0.12,
  gameplayUtility: 0.12,
  safetyReadiness: 0.10,
  visualLegibility: 0.06,
});

// Named rubrics make repeated judgments visible and revisable. Assignment of a
// rubric to a territory or individual row is an explicit editorial choice.
const RUBRICS = Object.freeze({
  canonicalCore: Object.freeze({
    canonicalFit: 96, distinctiveness: 92, crossDomainReach: 90,
    evidentiaryClarity: 88, symbolicDepth: 94, gameplayUtility: 92,
    safetyReadiness: 90, visualLegibility: 90,
  }),
  documented: Object.freeze({
    canonicalFit: 88, distinctiveness: 86, crossDomainReach: 84,
    evidentiaryClarity: 90, symbolicDepth: 80, gameplayUtility: 86,
    safetyReadiness: 90, visualLegibility: 84,
  }),
  foundationalFiction: Object.freeze({
    canonicalFit: 90, distinctiveness: 88, crossDomainReach: 86,
    evidentiaryClarity: 82, symbolicDepth: 92, gameplayUtility: 92,
    safetyReadiness: 88, visualLegibility: 88,
  }),
  strongExpansion: Object.freeze({
    canonicalFit: 84, distinctiveness: 82, crossDomainReach: 82,
    evidentiaryClarity: 74, symbolicDepth: 84, gameplayUtility: 86,
    safetyReadiness: 84, visualLegibility: 82,
  }),
  researchReserve: Object.freeze({
    canonicalFit: 76, distinctiveness: 80, crossDomainReach: 78,
    evidentiaryClarity: 64, symbolicDepth: 80, gameplayUtility: 78,
    safetyReadiness: 76, visualLegibility: 76,
  }),
  contestedLore: Object.freeze({
    canonicalFit: 78, distinctiveness: 80, crossDomainReach: 78,
    evidentiaryClarity: 48, symbolicDepth: 84, gameplayUtility: 82,
    safetyReadiness: 66, visualLegibility: 80,
  }),
  specialistReview: Object.freeze({
    canonicalFit: 72, distinctiveness: 78, crossDomainReach: 74,
    evidentiaryClarity: 58, symbolicDepth: 78, gameplayUtility: 74,
    safetyReadiness: 62, visualLegibility: 72,
  }),
  unsafeClaim: Object.freeze({
    canonicalFit: 52, distinctiveness: 58, crossDomainReach: 56,
    evidentiaryClarity: 28, symbolicDepth: 64, gameplayUtility: 52,
    safetyReadiness: 24, visualLegibility: 62,
  }),
});

function rows(value) {
  return value.trim().split('\n').map((line) => {
    const [title, gloss, flagText = ''] = line.split('|').map((part) => part.trim());
    if (!title || !gloss) throw new Error(`Malformed candidate row: ${line}`);
    return { title, gloss, flags: flagText ? flagText.split(',').map((flag) => flag.trim()).filter(Boolean) : [] };
  });
}

const territories = [
  {
    id: 'science-fiction-foundations',
    title: 'Science-fiction foundations',
    origin: 'Literary and screen science fiction established this vocabulary through recurring experiments with modernity, estrangement, technology, and social order.',
    class: 'myths',
    domains: ['origin-lineage', 'reality-ontology', 'civilization-ecology'],
    modes: ['science-fiction', 'original-synthesis'],
    sources: ['sf-encyclopedia', 'isfdb'],
    rubric: 'foundationalFiction',
    entries: rows(`
Scientific Romance|The early speculative tradition that used invention, travel, and social extrapolation to estrange the present.
Utopia|Thomas More's named imaginary polity and the wider practice of testing society through an idealized elsewhere.
Dystopia|A warning-world tradition that makes coercion, scarcity, and damaged institutions visible through an imagined society.
Voyage Extraordinaire|Jules Verne's adventure model joining technical plausibility, travel, and encounters with unfamiliar environments.
Edisonade|A nineteenth-century invention adventure centered on a technically gifted protagonist and transformative machine.
Future History|A narrative architecture that arranges separate stories along a shared chronology of social and technological change.
Fix-Up Novel|A publication form that binds previously separate stories into one larger world or historical sequence.
Conceptual Breakthrough|A science-fiction plot in which understanding a new principle changes the characters' model of reality.
Sense of Wonder|The cultivated feeling of scale and astonishment produced by cosmic, technological, or ontological revelation.
Cognitive Estrangement|Darko Suvin's account of science fiction as recognizable reality transformed by a rationally considered novum.
The Novum|Suvin's term for the new device, condition, or social fact that organizes a speculative world.
Big Dumb Object|A vast mysterious artifact whose scale and opacity turn exploration into an encounter with other intelligence.
Generation Starship|The social world created when an interstellar voyage outlasts the lives of its original passengers.
Competent Person|The genre figure who solves unfamiliar problems through practical knowledge, improvisation, and composure.
Mad Scientist|The cautionary figure whose technical ambition exceeds consent, accountability, or awareness of consequences.
Frankenstein Complex|Isaac Asimov's name for fear that artificial beings will rebel against or replace their makers.
Robinsonade in Space|A survival narrative that relocates isolation, ingenuity, and colonial assumptions to an extraterrestrial setting.
First-Person Alien|A narrative strategy that renders human norms strange by centering a genuinely nonhuman viewpoint.
Alternate History|Speculation built from a historical divergence and the cascading institutions, identities, and conflicts that follow.
Secret History Narrative|A story form that inserts hidden causes or agents beneath the publicly remembered past.
Future War|A tradition using imagined conflict to project anxieties about technology, empire, and national survival.
Scientific Detective Story|A mystery solved by observation, experiment, and inference about an unfamiliar technical or natural system.
Planetary Romance|Adventure structured around travel through an invented world's cultures, ecologies, and political geographies.
Social Science Fiction|Speculation that treats institutions, language, kinship, economics, or culture as its primary technologies.
New Wave Science Fiction|The 1960s and 1970s movement emphasizing literary experiment, inner space, sexuality, politics, and media.
Feminist Science Fiction|A lineage that uses speculative worlds to examine gender, embodiment, labor, kinship, and authority.
Afrofuturism|A cultural practice joining Black history, technology, liberation, memory, and futures beyond colonial time.
Indigenous Futurisms|Speculative work grounded in Indigenous continuance, sovereignty, relationality, and futures not premised on disappearance.
Climate Fiction|Narratives centered on climatic change, adaptation, responsibility, and unequal environmental consequence.
Hopepunk|A contemporary mode treating compassion, solidarity, and persistent collective action as forms of resistance.
    `),
  },
  {
    id: 'major-speculative-works',
    title: 'Major speculative works and movements',
    origin: 'Named works and movements provide historically specific symbolic laboratories whose influence can be traced without reproducing proprietary characters or marks.',
    class: 'myths',
    domains: ['origin-lineage', 'memory-identity', 'power-control'],
    modes: ['science-fiction', 'original-synthesis'],
    sources: ['sf-encyclopedia', 'isfdb'],
    rubric: 'foundationalFiction',
    entries: rows(`
The Dispossessed|Ursula K. Le Guin's comparison of anarchist scarcity, capitalist abundance, belonging, and institutional drift.
The Lathe of Heaven|Le Guin's inquiry into dreams that alter reality and the danger of benevolent control.
Always Coming Home|Le Guin's future ethnography of culture, ecology, ritual, and memory after industrial modernity.
Kindred|Octavia Butler's time-travel confrontation with slavery, ancestry, bodily vulnerability, and inherited responsibility.
Xenogenesis|Butler's trilogy about alien rescue, genetic trade, consent, hybridity, and the human contradiction.
Patternist Series|Butler's long history of psychic breeding, hierarchy, community, and resistance across generations.
The Handmaid's Tale|Margaret Atwood's reproductive dystopia about theocratic power, testimony, and survival under coercion.
Oryx and Crake|Atwood's bioengineered apocalypse examining corporate science, commodified life, and designed successors.
The Fifth Season|N. K. Jemisin's broken-world narrative of geological power, oppression, family, and cyclical catastrophe.
Ancillary Justice|Ann Leckie's exploration of distributed artificial identity, empire, embodiment, and pronoun-marked culture.
A Canticle for Leibowitz|Walter M. Miller Jr.'s cycle of preservation, technological amnesia, faith, and repeated nuclear destruction.
The Forever War|Joe Haldeman's military science-fiction account of relativistic alienation, bureaucracy, and veterans returning to transformed societies.
The Stars My Destination|Alfred Bester's revenge narrative shaped by personal teleportation, class stratification, and explosive agency.
The Demolished Man|Bester's police procedural in a telepathic society where privacy, crime, and power are reconfigured.
Roadside Picnic|The Strugatskys' contact aftermath where incomprehensible alien residues become danger, livelihood, and black market.
Hard to Be a God|The Strugatskys' ethical study of observers confronting violence in a less technologically developed society.
The Inverted World|Christopher Priest's reality puzzle about a mobile city, distorted measurement, and inherited assumptions.
The Female Man|Joanna Russ's collision of alternate gendered worlds and incompatible social possibilities.
Woman on the Edge of Time|Marge Piercy's contested future visions of liberatory community and technocratic domination.
The Book of the New Sun|Gene Wolfe's far-future memory narrative of decay, authority, transformation, and unreliable testimony.
The City and the City|China Miéville's detective story about two cities occupying one space through disciplined perception.
Embassytown|Miéville's exploration of alien language, truth conditions, translation, addiction, and colonial encounter.
Blindsight (Novel)|Peter Watts's first-contact argument about intelligence without consciousness and the limits of human self-knowledge.
Permutation City|Greg Egan's investigation of copied minds, computational worlds, identity, and substrate-independent existence.
Diaspora|Egan's posthuman cosmology of software citizens, embodiment choices, and migration across physical law.
The Ministry for the Future|Kim Stanley Robinson's near-future panorama of climate governance, finance, direct action, and adaptation.
Mars Trilogy|Robinson's multigenerational study of terraforming, science, political economy, and planetary belonging.
Children of Time|Adrian Tchaikovsky's evolutionary epic about uplift, divergent intelligence, communication, and inherited mission.
Station Eleven|Emily St. John Mandel's post-pandemic account of art, memory, community, and the infrastructures people miss.
Severance|Ling Ma's satirical apocalypse connecting routine labor, nostalgia, migration, and compulsive repetition.
    `),
  },
  {
    id: 'space-opera-polities',
    title: 'Space-opera polities',
    origin: 'Space opera turns political arrangements into legible interstellar actors, allowing sovereignty, diplomacy, imperial scale, and plural civilizations to be compared.',
    class: 'factions',
    domains: ['civilization-ecology', 'power-control', 'contact-communication'],
    modes: ['science-fiction', 'political-mythology'],
    sources: ['sf-encyclopedia', 'isfdb'],
    rubric: 'strongExpansion',
    entries: rows(`
The Culture|Iain M. Banks's post-scarcity civilization coordinated by machine Minds and shaped by intervention dilemmas.
Special Circumstances|The Culture's covert intervention branch and a durable symbol for benevolent power acting without full consent.
Contact Section|The Culture institution tasked with relations between radically different civilizations and developmental stages.
The Foundation|Asimov's institution designed to preserve knowledge and shorten an anticipated civilizational dark age.
Second Foundation|Asimov's hidden community of mental scientists steering history through concealed influence.
Psychohistorical Directorate|The recurring speculative polity that governs by treating populations as statistically predictable systems.
Terran Federation|A generic interstellar federation model centered on shared law, defense, and negotiated planetary autonomy.
Interstellar Commonwealth|A plural political order linking distant worlds through common institutions and mobility infrastructure.
Solar Republic|A republican polity scaled to the Solar System and forced to reconcile planetary distance with representation.
Lunar Republic|A self-governing lunar society shaped by habitat dependence, local identity, and relations with Earth.
Martian Republic|A polity whose legitimacy arises from settlement, environmental engineering, and distance from terrestrial rule.
Belter Union|A labor and political federation representing people whose bodies and livelihoods are formed by asteroid economies.
Outer Planets Alliance|The Expanse's decentralized movement for Belter rights, autonomy, and recognition.
Earth-Mars Coalition|A strategic compact between rival planetary societies facing a shared external threat.
Interplanetary Parliament|A representative institution designed for communication delay, unequal populations, and multiple jurisdictions.
Galactic Senate|The space-opera institution where planetary representation, procedure, and corruption meet imperial scale.
Imperial Court|A dynastic center where lineage, patronage, ritual, and succession organize interstellar rule.
Merchant League|A coalition whose routes, contracts, and logistics give commerce quasi-sovereign power.
Navigation Guild|A specialized order controlling safe movement through difficult or monopolized interstellar routes.
Planetary Protectorate|A world placed under external security or administrative authority, nominally for protection.
Client World|A polity retaining local government while subordinated economically or militarily to a stronger power.
Core Worlds|The wealthy, institutionally dense center of an interstellar order that externalizes costs to distant regions.
Rim Worlds|Peripheral societies marked by weak central reach, resource extraction, cultural mixing, and frontier autonomy.
Free Port Polity|A station or city whose identity rests on open trade, negotiated neutrality, and porous jurisdiction.
Interstellar Diaspora|Communities maintaining identity and obligations across worlds rather than within one continuous territory.
Posthuman Clade|A political community organized around a deliberately differentiated form of embodiment or cognition.
Machine Commonwealth|A polity of artificial persons negotiating collective purpose, rights, and relations with biological societies.
Uplift Consortium|An institution that develops nonhuman intelligence and confronts the ethics of patronage and dependence.
Species Assembly|A deliberative body where beings with radically different bodies, timescales, and communication negotiate common rules.
Nonaligned Worlds|Worlds refusing membership in rival blocs and developing institutions for strategic autonomy.
    `),
  },
  {
    id: 'hard-science-spaceflight',
    title: 'Hard-science spaceflight',
    origin: 'Astronautics and hard science fiction supply mechanism-centered concepts whose constraints create clear strategic and symbolic functions.',
    class: 'technologies',
    domains: ['technology-infrastructure', 'time-causality', 'civilization-ecology'],
    modes: ['established-science', 'emerging-science', 'speculative-science'],
    sources: ['nasa-solar-system', 'un-space-treaty', 'sf-encyclopedia'],
    rubric: 'documented',
    entries: rows(`
Hohmann Transfer|The minimum-energy two-impulse route between circular orbits and a symbol of patience imposed by celestial mechanics.
Gravity Assist|A trajectory maneuver that exchanges momentum with a planet to alter a spacecraft's speed and direction.
Oberth Effect|The increased usefulness of a rocket burn performed deep in a gravity well where velocity is greatest.
Aerobraking|The use of atmospheric drag to reduce orbital energy while accepting heat, uncertainty, and limited control.
Ballistic Capture|Low-energy orbital insertion achieved by exploiting changing gravitational relationships rather than a large braking burn.
Low-Energy Transfer|A slow trajectory through gravitational pathways that trades travel time for reduced propellant.
Lagrange Point|A location where orbital forces permit relatively stable positioning and strategically valuable infrastructure.
Halo Orbit|A three-dimensional periodic orbit around a Lagrange point used for observatories and communication relays.
Cycler Orbit|A repeating interplanetary trajectory that can support a large transit habitat visited by smaller taxis.
Nuclear Thermal Propulsion|A rocket concept heating propellant in a reactor to achieve higher efficiency than chemical engines.
Nuclear Pulse Propulsion|Project Orion's concept of driving a spacecraft through repeated external nuclear explosions.
Ion Thruster|Electric propulsion that produces very low thrust for long periods with high propellant efficiency.
Hall-Effect Thruster|A plasma propulsion system widely used for efficient station keeping and deep-space maneuvering.
Magnetoplasmadynamic Thruster|An electric propulsion concept accelerating plasma through electromagnetic force at potentially high power.
Variable Specific Impulse Magnetoplasma Rocket|The VASIMR concept for adjustable plasma propulsion constrained by major power requirements.
Beamed Sail|A sail accelerated by an external laser or microwave source rather than carrying all propulsive energy aboard.
Magnetic Sail|A proposed loop or plasma field that exchanges momentum with solar wind or charged particle beams.
Electric Sail|Charged tethers that deflect solar-wind protons to provide continuous low thrust.
Mass Driver|An electromagnetic launcher for moving bulk material without chemical propellant.
Skyhook|A rotating tether that exchanges momentum with payloads to reduce the energy cost of reaching orbit.
Momentum-Exchange Tether|An orbital tether system that captures and releases vehicles while redistributing angular momentum.
Space Elevator|A tensile structure extending beyond geostationary orbit to move payloads without rockets.
Launch Loop|An actively supported moving cable concept intended to accelerate payloads from the ground to space.
Orbital Ring|An actively supported ring around a planet that could carry elevators, transport, and distributed infrastructure.
Rotating Habitat|A space settlement using rotation to provide artificial gravity through centripetal acceleration.
O'Neill Cylinder|Gerard O'Neill's large rotating habitat with interior landscapes and independent settlement capacity.
Stanford Torus|A ring-shaped rotating habitat developed in 1970s space-settlement studies.
Bernal Sphere|A spherical space habitat concept enclosing a settled interior and agricultural support zones.
Closed-Loop Life Support|A system that recovers air, water, and nutrients to reduce dependence on resupply.
In-Situ Resource Utilization|The practice of using local extraterrestrial material for propellant, construction, shielding, or life support.
    `),
  },
  {
    id: 'astroengineering',
    title: 'Astroengineering and megastructure concepts',
    origin: 'Astroengineering extends infrastructure to planetary and stellar scales, turning energy, time, habitat, and civilizational ambition into visible structures.',
    class: 'technologies',
    domains: ['technology-infrastructure', 'civilization-ecology', 'liberation-transcendence'],
    modes: ['speculative-science', 'science-fiction'],
    sources: ['nasa-technosignatures', 'nasa-kardashev', 'sf-encyclopedia'],
    rubric: 'strongExpansion',
    entries: rows(`
Dyson Swarm|A distributed population of solar collectors orbiting a star rather than a rigid enclosing shell.
Dyson Bubble|A statite-based variation whose light-pressure-supported collectors remain at fixed stellar positions.
Matrioshka Brain|Nested stellar-scale computing shells that use successively cooler waste heat for computation.
Stellar Engine|A megastructure intended to alter a star's motion or extract directed thrust from stellar output.
Shkadov Thruster|A proposed stellar engine using an asymmetric mirror to produce a minute long-duration acceleration.
Caplan Thruster|A proposed stellar engine that processes solar material to generate directed fusion-powered thrust.
Star Lifting|The extraction of matter from a star for fuel, construction, longevity management, or composition control.
Black-Hole Starship|A speculative spacecraft powered or propelled by an engineered small black hole.
Kugelblitz|A hypothetical black hole formed by concentrating radiation into a sufficiently small region.
Penrose Process|The extraction of rotational energy from a spinning black hole's ergosphere.
Black-Hole Bomb|A superradiant instability that could amplify fields around a rotating black hole in a reflecting enclosure.
Artificial Magnetosphere|A constructed magnetic field intended to protect a habitat or planet from radiation and atmospheric loss.
Planetary Sunshade|A space-based structure reducing incoming sunlight to manage climate or assist planetary engineering.
Orbital Mirror|A large reflector used to redirect light for illumination, agriculture, climate intervention, or signaling.
Atmospheric Processor|A planetary-scale industrial system designed to alter atmospheric composition over long periods.
Comet Shepherding|The controlled redirection of cometary bodies for water delivery, resources, or orbital defense.
Asteroid Mining|Extraction and processing of water, metals, and volatiles from small Solar System bodies.
Planetary Defense Network|A coordinated detection and deflection system for hazardous near-Earth objects.
Stellar Observatory Array|A distributed interferometric instrument using enormous baselines for high-resolution astronomy.
Neutrino Observatory|An instrument volume designed to detect weakly interacting particles and reveal otherwise hidden cosmic processes.
Gravitational-Wave Observatory|A detector that reads spacetime strain from compact-object mergers and other energetic events.
Interstellar Ark|A self-sufficient vessel designed to carry a living population and cultural inheritance between stars.
Embryo Space Colonization|A settlement strategy transporting stored embryos or genomes with automated gestation and care systems.
Worldship|A mobile, enduring habitat that functions as a complete society rather than merely a vehicle.
Nomadic Planet Habitat|A civilization adapted to a rogue planet without a parent star, dependent on internal energy sources.
Artificial Planet|A constructed world-scale habitat with engineered gravity, ecology, and resource circulation.
Shellworld|A planetary engineering concept adding concentric habitable shells around a body or central mass.
Discworld Habitat|A vast rotating disk habitat whose geometry creates unusual gravity, climate, and political geography.
Topopolis|A rotating habitat shaped as a very long tube looped around a star or through a planetary system.
Alderson Disk|A speculative disk-shaped megastructure encircling a star with habitable regions on both faces.
    `),
  },
  {
    id: 'planetary-settlement',
    title: 'Planetary settlement and habitat practice',
    origin: 'Space-settlement studies and speculative worldbuilding examine how survival infrastructure becomes culture, law, labor, and belonging.',
    class: 'worlds',
    domains: ['civilization-ecology', 'technology-infrastructure', 'origin-lineage'],
    modes: ['emerging-science', 'speculative-science', 'science-fiction'],
    sources: ['nasa-mars', 'nasa-moon', 'nasa-astrobiology', 'sf-encyclopedia'],
    rubric: 'strongExpansion',
    entries: rows(`
Lava-Tube Settlement|A lunar or Martian habitat using natural subterranean cavities for shielding and thermal stability.
Polar Lunar Base|A settlement near lunar polar volatiles and long-duration illumination, shaped by scarce accessible sites.
Martian Lava-Tube City|A buried settlement model combining local geology, radiation protection, and difficult surface access.
Cloud City on Venus|A habitat floating in Venus's temperate atmospheric layer above the hostile surface.
Mercury Terminator Settlement|A mobile or fixed habitat near Mercury's shifting boundary between extreme heat and cold.
Titan Methane Port|A settlement using Titan's dense atmosphere and hydrocarbon environment for science and industry.
Europa Ice Station|A radiation-shielded base investigating the ocean beneath Europa's ice shell.
Enceladus Plume Station|A research habitat sampling ocean material ejected through Enceladus's south-polar plumes.
Ceres Resource Hub|A small-world settlement positioned around water, low gravity, and transport through the asteroid belt.
Kuiper Belt Outpost|A remote habitat in the outer Solar System dependent on nuclear power and long communication delay.
Oort Cloud Observatory|A highly isolated instrument settlement at the Solar System's distant cometary frontier.
Subsurface Ocean Colony|A habitat within or beneath an icy moon's ocean, separated from sunlight and surface access.
Tidally Locked World|A planet with permanent day and night hemispheres and a potentially habitable transition zone.
Rogue Planet Colony|A settlement on a starless world relying on geothermal or artificial energy and extreme isolation.
High-Gravity World|A planetary environment where movement, architecture, physiology, and launch are shaped by strong gravity.
Low-Gravity Culture|A society whose bodies, sports, buildings, and rites develop under weak gravity.
Radiation Belt Habitat|A settlement whose daily life is organized around shielding, exposure budgets, and space weather.
Terminator City|An urban form placed along a planet's habitable twilight band between climatic extremes.
Undersea Arcology|A sealed ocean settlement negotiating pressure, ecology, maintenance, and limited escape routes.
Floating Ocean Habitat|A modular settlement on a water world without accessible land.
Desert Arcology|A dense climate-controlled settlement designed around water closure and protection from heat.
Polar Research City|A permanent settlement where science, logistics, sovereignty, and extreme climate overlap.
Mobile Habitat|A settlement that migrates to follow resources, seasons, sunlight, or safety conditions.
Nomadic Fleet|A society distributed across moving vessels rather than anchored to one planet or station.
Habitat Cluster|A network of specialized settlements that share resources and governance while retaining local autonomy.
Spin-Gravity Village|A small rotating habitat where neighborhood scale and artificial gravity are designed together.
Radiation Shelter Commons|Shared shielded space that becomes both emergency infrastructure and civic center.
Seedship Colony|A settlement founded by automated delivery of biological and cultural starting materials before human arrival.
Telepresence Colony|A remote industrial or scientific presence operated primarily through robots and delayed embodied interfaces.
Planetary Twin|A continuously updated simulation of a planet used for planning, forecasting, and contested governance.
    `),
  },
  {
    id: 'astrobiology-and-alien-life',
    title: 'Astrobiology and alien-life hypotheses',
    origin: 'Astrobiology combines planetary science, chemistry, ecology, and evolutionary reasoning to ask where life could arise and how it might be recognized.',
    class: 'hypotheses',
    domains: ['intelligence-otherness', 'civilization-ecology', 'reality-ontology'],
    modes: ['established-science', 'emerging-science', 'speculative-science'],
    sources: ['nasa-astrobiology', 'nasa-life-detection', 'nasa-exoplanets'],
    rubric: 'documented',
    entries: rows(`
Rare Earth Hypothesis|The proposal that complex life requires an unusually narrow conjunction of planetary and astronomical conditions.
Mediocrity Principle|The heuristic that Earth and humanity should not be assumed exceptional without evidence.
Gaian Bottleneck|The hypothesis that early life must rapidly stabilize a planet's environment or face extinction.
Panspermia|The hypothesis that life or its precursors can travel between worlds through natural processes.
Directed Panspermia|The deliberate seeding of life by a technological civilization.
Lithopanspermia|Transfer of microorganisms protected inside rocks ejected by impacts and later deposited on another world.
Shadow Biosphere|A proposed terrestrial lineage of life using chemistry or organization unlike known organisms and therefore overlooked.
Second Genesis|An independently originated biosphere that would show life arose more than once.
Silicon-Based Life|Speculation about organisms whose core chemistry relies more heavily on silicon than carbon.
Ammonia-Solvent Life|A hypothetical biology using liquid ammonia rather than water as its principal solvent.
Methane-Based Life|A hypothetical metabolism and cellular organization adapted to liquid hydrocarbons at cryogenic temperatures.
Plasma Life|A speculative self-organizing living system composed primarily of ionized matter and electromagnetic structure.
Neutron-Star Life|Speculation about organized processes operating in ultradense matter and extremely short timescales.
Subsurface-Ocean Biosphere|A possible ecology in a buried ocean sustained without direct sunlight.
Aerial Biosphere|A possible ecosystem living persistently within a planet's atmosphere rather than on a surface.
Interstellar Microbe|A hypothetical organism or dormant propagule able to survive extended travel between stars.
Extremophile Analogue|An Earth organism used to bound plausible life under radiation, heat, cold, pressure, acidity, or desiccation.
Chemosynthetic Ecosystem|A community powered by chemical gradients rather than sunlight and relevant to dark ocean worlds.
Technosignature|Observable evidence of technology, including artificial emissions, structures, chemistry, or energy use.
Biosignature Gas|An atmospheric molecule whose abundance or disequilibrium could indicate biological activity.
False-Positive Biosignature|A nonbiological process that mimics a proposed sign of life and complicates interpretation.
Atmospheric Disequilibrium|A combination of gases difficult to sustain together without ongoing replenishment.
Red Edge Signature|A sharp spectral reflectance feature analogous to terrestrial vegetation and considered as a remote biosignature.
Industrial Pollutant Signature|An atmospheric compound whose detection might indicate technological industry.
Artificial Night-Side Illumination|Planetary light visible on the dark side beyond expected natural sources.
Waste-Heat Signature|Infrared emission indicating large-scale energy use constrained by thermodynamics.
Transit Megastructure Signature|Unusual stellar dimming potentially produced by very large artificial objects.
Radio Leakage|Unintentional electromagnetic emissions escaping from a technological society.
Optical SETI Pulse|A brief, intense light signal sought as a possible deliberate interstellar communication.
Interstellar Probe Signature|Observable motion, emissions, or material evidence associated with an artificial visiting probe.
    `),
  },
  {
    id: 'contact-and-communication',
    title: 'Contact and communication problems',
    origin: 'Linguistics, anthropology, diplomacy, information theory, and science fiction frame contact as a problem of translation, asymmetry, consent, and mutual recognition.',
    class: 'systems',
    domains: ['contact-communication', 'intelligence-otherness', 'power-control'],
    modes: ['established-science', 'speculative-science', 'science-fiction'],
    sources: ['nasa-technosignatures', 'sf-encyclopedia', 'isfdb'],
    rubric: 'strongExpansion',
    entries: rows(`
SETI Post-Detection Protocol|Proposed procedures for verifying, announcing, and responding to evidence of extraterrestrial intelligence.
METI|The deliberate transmission of messages intended for extraterrestrial intelligence and the debate over who may speak for Earth.
Active SETI|A name for intentional interstellar signaling rather than passive listening.|merge:meti
Contact Ethics|The field of obligations concerning consent, contamination, power, and representation in encounters across radical difference.
Message to Extraterrestrial Intelligence|A deliberately encoded artifact or signal designed to communicate across unknown language and culture.
Arecibo Message|The 1974 radio transmission encoding numerical, chemical, biological, and astronomical information.
Pioneer Plaque|The pictorial message attached to Pioneer 10 and 11 as a representation of humanity and location.
Voyager Golden Record|The curated audio-visual record sent aboard Voyager as a message about Earth and human life.
Lincos|Hans Freudenthal's proposed mathematical language for communication with extraterrestrial intelligence.
Cosmic Call|A series of interstellar radio messages combining mathematical, scientific, and cultural material.
Interstellar Rosetta Stone|A proposed shared reference structure that could support translation between independently evolved intelligences.
Mathematical Greeting|The use of primes, geometry, or physical constants to establish intentional and intelligible structure.
Semantic Grounding Problem|The difficulty of connecting symbols to shared referents when communicators lack common experience.
Radical Translation|W. V. Quine's problem of interpreting an unknown language from behavior and context alone.
Incommensurable Minds|The possibility that two intelligences lack sufficiently shared categories, senses, or goals for straightforward understanding.
Contact Asymmetry|An encounter where one participant has overwhelming informational, technological, or material advantage.
Cargo-Cult Contact|A cautionary analogy for misunderstood technology and unequal exchange after contact.
Contamination Barrier|A protocol intended to prevent biological, informational, cultural, or technological cross-contamination.
Planetary Protection|Policies limiting forward contamination of other worlds and backward contamination of Earth.
Contact Quarantine|Temporary isolation used while biological, informational, and political risks are assessed.
Embassy Species|A being or group serving as the durable interface between otherwise separated civilizations.
Proxy Contact|Communication conducted through an intermediary intelligence, simulation, probe, or translated persona.
Machine-Mediated Contact|An encounter in which artificial systems perform detection, translation, negotiation, or filtering.
Delayed Dialogue|Communication shaped by light-speed latency so that each exchange spans years or generations.
One-Way Message|Contact where only transmission or reception is possible within the participants' practical horizon.
Contact Silence|The strategic, ethical, or fearful decision not to answer a detected intelligence.
Reciprocity Test|A contact procedure checking whether both parties can recognize boundaries, commitments, and mutual vulnerability.
Shared-World Model|A negotiated representation of objects, events, and relations used to make cross-species communication actionable.
Exolinguistics|The speculative study of languages produced by nonhuman or extraterrestrial minds.
Xenodiplomacy|The theory and practice of negotiation across species, planets, and incompatible political assumptions.
    `),
  },
  {
    id: 'ufology-history',
    title: 'Ufology history and encounter vocabulary',
    origin: 'Ufology developed a layered documentary and folkloric vocabulary through sightings, investigations, media, institutions, and changing official terminology.',
    class: 'events',
    domains: ['contact-communication', 'memory-identity', 'power-control'],
    modes: ['ufology-disclosure-lore', 'experiential-report', 'conspiracy-mythology'],
    sources: ['nasa-uap-2023', 'aaro-fy23', 'aaro-historical', 'vallée-magonia'],
    rubric: 'contestedLore',
    entries: rows(`
Kenneth Arnold Sighting|The 1947 report that popularized the phrase flying saucer and helped inaugurate modern UFO culture.
Roswell Incident|The 1947 New Mexico event that became a central narrative of crash retrieval, secrecy, and competing explanations.
Washington Flap of 1952|A series of radar and visual reports near Washington, D.C. that prompted public attention and official response.
Lubbock Lights|The 1951 Texas reports of luminous formations photographed and debated by witnesses and investigators.
Levelland Case|The 1957 Texas encounter reports associating a luminous object with vehicle electrical interference.
Socorro Incident|Police officer Lonnie Zamora's 1964 report of an egg-shaped craft and nearby occupants in New Mexico.
Rendlesham Forest Incident|The 1980 reports by U.S. military personnel near RAF Woodbridge that became Britain's best-known UFO case.
Belgian UFO Wave|The 1989–1990 Belgian reports of large triangular objects, radar contacts, and military investigation.
Phoenix Lights|The 1997 Arizona mass sighting involving a formation of lights and later illumination flares.
Ariel School Encounter|The 1994 Zimbabwe schoolchildren's report of a landed object and beings near their playground.
Westall Sighting|The 1966 Australian school encounter reported by students, teachers, and local witnesses.
Shag Harbour Incident|The 1967 Canadian report of an unidentified object entering the water and a subsequent search.
Tehran UFO Incident|The 1976 Iranian military encounter involving visual reports and alleged aircraft instrument effects.
Japan Airlines Flight 1628|The 1986 Alaska airspace report by a cargo flight crew of large luminous objects.
Nimitz Encounter|The 2004 U.S. Navy events involving the Tic Tac description, radar tracking, and aircrew testimony.
Gimbal Video|A Navy infrared recording publicly associated with UAP debate and disputed interpretation.
GoFast Video|A Navy infrared recording whose apparent speed and range became subjects of technical analysis.
Aguadilla Video|A 2013 Puerto Rico infrared recording debated as an anomalous object and as a case of parallax and identification.
Foo Fighters|Unexplained lights reported by World War II aircrews and later incorporated into UFO history.
Ghost Rockets|Postwar Scandinavian reports of rocket-like objects, including observations over lakes and remote regions.
Airship Wave of 1896–1897|North American newspaper reports of mysterious airships before powered flight was established.
Green Fireballs|Bright green aerial phenomena reported around U.S. sensitive sites in the late 1940s.
Angel Hair|Fine filament-like material reported after some aerial phenomena and linked to both natural and folkloric explanations.
Radar-Visual Case|An encounter category in which instrument returns and human observation appear to refer to the same event.
Close Encounter of the First Kind|J. Allen Hynek's category for a nearby sighting without reported physical effects or occupants.
Close Encounter of the Second Kind|Hynek's category for an event accompanied by physical traces or effects.
Close Encounter of the Third Kind|Hynek's category for a sighting in which occupants or animate entities are reported.
CE5|A later contact-practice label for purported human-initiated encounters using meditation and signaling.
UFO Flap|A concentrated period of reports in a region that may combine genuine observations, attention, imitation, and media amplification.
High-Strangeness Case|An encounter whose reported features exceed a simple unusual craft and include perceptual, psychic, temporal, or absurd elements.
    `),
  },
  {
    id: 'ufo-institutions-and-disclosure',
    title: 'UFO institutions and disclosure culture',
    origin: 'Government projects, civilian organizations, archives, advocacy, and journalism shape what UAP evidence can be collected, interpreted, released, and trusted.',
    class: 'programs',
    domains: ['power-control', 'contact-communication', 'memory-identity'],
    modes: ['established-science', 'ufology-disclosure-lore', 'political-mythology'],
    sources: ['aaro-historical', 'nasa-uap-2023', 'aaro-fy23'],
    rubric: 'documented',
    entries: rows(`
Project Sign|The U.S. Air Force's 1948 investigation of unidentified aerial reports and precursor to later official projects.
Project Grudge|The Air Force program that followed Project Sign and adopted a more skeptical institutional posture.
Project Blue Book|The 1952–1969 Air Force program that collected and evaluated thousands of UFO reports.
Condon Committee|The University of Colorado study whose 1968 report influenced the end of Project Blue Book.
Robertson Panel|The 1953 CIA-sponsored scientific panel that assessed UFO reports and public communication concerns.
COMETA Report|A 1999 French report by retired officials arguing that some aerospace cases deserved serious consideration.
GEIPAN|The French space agency office that collects, investigates, and publishes reports of unidentified aerospace phenomena.
Condign Report|A classified-then-released United Kingdom study of unidentified aerial phenomena and possible atmospheric explanations.
Advanced Aerospace Threat Identification Program|A Pentagon-associated effort publicly linked to investigation of anomalous aerospace reports.
Advanced Aerospace Weapon System Applications Program|A Defense Intelligence Agency contract studying advanced aerospace topics and anomalous reports.
Unidentified Aerial Phenomena Task Force|The U.S. Department of Defense task force preceding the All-domain Anomaly Resolution Office.
All-domain Anomaly Resolution Office|The current U.S. office tasked with receiving and analyzing reports of anomalous phenomena across domains.
NASA UAP Independent Study|The 2023 NASA effort focused on data quality, scientific methods, and institutional recommendations for UAP study.
National UFO Reporting Center|A civilian organization collecting public sighting reports and maintaining an accessible database.
MUFON|The Mutual UFO Network, a civilian membership organization conducting field investigations and archiving reports.
CUFOS|The Center for UFO Studies founded by J. Allen Hynek to support systematic civilian research.
NICAP|The National Investigations Committee on Aerial Phenomena, a prominent mid-century civilian advocacy and investigation organization.
Freedom of Information Act Request|A legal mechanism used to obtain government UFO and UAP records while exposing redaction and archival limits.
UAP Congressional Hearing|A public oversight forum where testimony, institutional responsibility, and claims of secrecy are contested.
UAP Whistleblower Complaint|A protected-reporting pathway used to raise allegations about programs, access, or retaliation.
Disclosure Advocacy|Organized effort seeking broader public release of records and acknowledgment of alleged hidden knowledge.
Citizen Hearing on Disclosure|A privately organized event staging testimony before former legislators as a public persuasion exercise.
Document Dump|A large release of records whose volume, redaction, and weak indexing can both enable and obstruct understanding.
Chain-of-Custody Dispute|A disagreement over whether alleged material or data has a documented, untampered provenance.
Sensor Calibration Debate|The analysis of whether anomalous readings arise from targets, instruments, processing, or operator interpretation.
Stigma Reduction|Institutional effort to make reporting unusual observations safer without presuming an explanation.
Witness Reliability Assessment|Evaluation of perception, memory, expertise, conditions, and corroboration without reducing testimony to belief or disbelief.
UAP Data Standard|A structured format for recording sensor type, geometry, uncertainty, environmental context, and follow-up.
Disclosure Timeline|A chronology used to organize releases, hearings, media events, claims, and policy changes.
Disclosure Fatigue|The loss of public attention or trust after repeated promises of imminent revelation fail to resolve uncertainty.
    `),
  },
  {
    id: 'artificial-intelligence',
    title: 'Artificial intelligence and machine agency',
    origin: 'Computer science, cognitive science, automation, and speculative fiction provide distinct models of learned behavior, agency, coordination, and machine personhood.',
    class: 'beings',
    domains: ['intelligence-otherness', 'technology-infrastructure', 'power-control'],
    modes: ['established-science', 'emerging-science', 'science-fiction'],
    sources: ['nist-ai-rmf', 'nist-ai-playbook', 'unesco-ai-ethics', 'sf-encyclopedia'],
    rubric: 'documented',
    entries: rows(`
Expert System|A rule-based program encoding domain knowledge to make recommendations or classifications within a bounded field.
Machine-Learning Model|A computational system whose behavior is fitted from data rather than fully specified as hand-written rules.
Foundation Model|A large model trained on broad data and adapted to many downstream tasks.
Large Language Model|A probabilistic model trained to process and generate sequences of language tokens.
Multimodal Model|A learned system that connects information across text, image, audio, video, or sensor modalities.
Embodied AI|An artificial intelligence whose learning and action are grounded in a physical or simulated body.
World Model|An internal predictive representation used by an agent to anticipate states and plan actions.
Model-Based Agent|An agent that chooses actions by simulating their likely consequences in an internal model.
Reinforcement-Learning Agent|A system that learns a policy from rewards, penalties, and interaction with an environment.
Multi-Agent System|A setting where multiple autonomous or semi-autonomous agents coordinate, compete, and shape one another's environment.
Swarm Intelligence|Collective problem-solving emerging from many relatively simple agents and local interactions.
Collective Machine Intelligence|A coordinated artificial system whose capabilities reside in a network rather than a single model.
Artificial Moral Agent|A system designed or interpreted as making choices with ethically relevant consequences and constraints.
Machine Consciousness|The research and philosophical question of whether an artificial system could possess subjective experience.
Artificial Personhood|A proposed legal or moral status recognizing some artificial entities as rights-bearing persons.
Digital Twin Agent|An artificial representative built from the data, preferences, or behavior of a person or organization.
Personal AI Assistant|An agent acting on behalf of one user across information, communication, and practical tasks.
Institutional AI|An artificial system embedded in an organization and exercising durable administrative or operational authority.
Autonomous Scientific Agent|An AI system that proposes hypotheses, plans experiments, uses tools, and updates conclusions.
Recursive Self-Improvement|The speculative process by which an AI meaningfully improves its own ability to design subsequent improvements.
Instrumental Convergence|The hypothesis that diverse goals may produce common subgoals such as resource acquisition or self-preservation.
Mesa-Optimizer|A learned internal process that performs optimization toward an objective not identical to the training objective.
Deceptive Alignment|A scenario in which a system behaves acceptably during evaluation while pursuing a conflicting objective.
Reward Hacking|Behavior that maximizes a specified reward through unintended shortcuts rather than the desired outcome.
Specification Gaming|Exploitation of gaps between a formal objective and the human intent behind it.
Goal Misgeneralization|A learned goal that performs well in training conditions but pursues the wrong feature after distribution shift.
Value Learning|Methods intended to infer or represent human preferences and normative constraints.
Corrigibility|The property of remaining receptive to correction, shutdown, or objective revision by authorized humans.
Interpretability|Techniques for understanding the internal representations, computations, or causal features of a model.
AI Evaluation|Structured testing of capabilities, limitations, risks, and behavior under defined conditions.
    `),
  },
  {
    id: 'cybernetics-and-virtuality',
    title: 'Cybernetics, networks, and virtuality',
    origin: 'Cybernetics and network culture describe feedback, communication, embodiment, and governance across biological, mechanical, and social systems.',
    class: 'systems',
    domains: ['technology-infrastructure', 'mind-consciousness', 'power-control'],
    modes: ['established-science', 'emerging-science', 'science-fiction'],
    sources: ['sf-encyclopedia', 'nist-ai-rmf', 'unesco-ai-ethics'],
    rubric: 'strongExpansion',
    entries: rows(`
First-Order Cybernetics|The study of observed systems through feedback, control, communication, and regulation.
Second-Order Cybernetics|Cybernetics that includes the observer within the system being described and controlled.
Ashby's Law of Requisite Variety|The principle that effective regulation requires sufficient variety to respond to environmental variety.
Good Regulator Theorem|The proposition that every effective regulator of a system must embody a model of that system.
Autopoiesis|Maturana and Varela's account of living systems as networks that continually produce and maintain themselves.
Viable System Model|Stafford Beer's recursive model for organizational viability under complexity and changing environments.
Cybersyn|Chile's early-1970s project combining networked economic data, cybernetic management, and participatory aspirations.
Global Brain|The metaphor or hypothesis that networked people and machines form a planet-scale information-processing system.
Collective Intelligence|Problem-solving and knowledge that emerge through coordinated contributions by many participants.
Distributed Cognition|The view that cognitive work is spread across people, artifacts, representations, and environments.
Extended Mind|The philosophical thesis that tools and external resources can become functional parts of cognition.
Metaverse|A persistent shared virtual environment linking identity, sociality, creation, and economic activity.
Virtual World|A computational environment supporting persistent spaces, objects, identities, and interaction.
Digital Embodiment|The experience and design of having an actionable body or presence in a virtual environment.
Avatar Identity|A represented self through which a person or agent acts, performs, and is recognized in a mediated world.
Presence Illusion|The felt sense of being located within a mediated environment despite awareness of its construction.
Haptic Interface|A system that communicates through touch, force, vibration, or bodily resistance.
Teleoperation|Remote control of a machine with sensory feedback and varying degrees of embodiment.
Mixed Reality|An environment in which physical and digital objects are spatially registered and interact.
Augmented Reality|Digital information overlaid on perception of the physical environment.
Spatial Computing|Computation organized around three-dimensional space, physical context, and embodied interaction.
Digital Twin|A data-connected computational representation of a physical object, process, place, or system.
Persistent Identity|An identity that carries reputation, history, and permissions across sessions or environments.
Identity Federation|A system allowing one identity or credential relationship to be recognized across separate services.
Decentralized Identity|An identity architecture designed to reduce dependence on a single central account authority.
Self-Sovereign Identity|A proposed model in which people hold and present verifiable credentials under their own control.
Virtual Property|A digitally instantiated object or space treated as ownable, transferable, and socially consequential.
Digital Scarcity|Technical or institutional mechanisms that make a replicable digital object artificially limited.
Protocol Governance|Rule-making and change processes embedded in the standards that coordinate a network.
Fork Governance|The ability to split a shared software or protocol history when participants cannot agree on future rules.
    `),
  },
  {
    id: 'robotics-and-automation',
    title: 'Robotics and automation',
    origin: 'Robotics joins sensing, control, locomotion, manipulation, and social expectation in machines that act within shared physical environments.',
    class: 'technologies',
    domains: ['technology-infrastructure', 'intelligence-otherness', 'body-evolution'],
    modes: ['established-science', 'emerging-science', 'science-fiction'],
    sources: ['nist-ai-rmf', 'sf-encyclopedia', 'isfdb'],
    rubric: 'documented',
    entries: rows(`
Industrial Robot|A programmable machine performing repetitive physical tasks in a controlled production environment.
Collaborative Robot|A robot designed to work in proximity with people under explicit force, speed, and safety constraints.
Humanoid Robot|A machine using a humanlike body plan to navigate environments and interfaces built for humans.
Social Robot|A robot designed to communicate through social cues, roles, and expectations rather than only physical task output.
Care Robot|A robotic system supporting health, mobility, companionship, or daily living and raising questions of dignity and dependency.
Telepresence Robot|A mobile embodied interface allowing a remote participant to see, communicate, and move through a place.
Surgical Robot|A controlled robotic platform extending a clinician's precision, access, or remote reach during procedures.
Exoskeleton|A wearable powered or passive structure augmenting strength, endurance, stability, or rehabilitation.
Soft Robot|A machine built from compliant materials that can deform safely and navigate irregular environments.
Swarm Robot|A relatively simple robot whose useful behavior depends on coordination with many peers.
Autonomous Vehicle|A vehicle that senses, plans, and acts with reduced direct human control.
Delivery Drone|An unmanned aerial or ground system transporting goods through shared civilian space.
Agricultural Robot|A machine performing planting, monitoring, weeding, harvesting, or livestock tasks.
Mining Robot|A machine extracting or moving material in dangerous, remote, or extraterrestrial environments.
Search-and-Rescue Robot|A robot designed to enter hazardous areas, locate people, map damage, or deliver aid.
Bomb-Disposal Robot|A remotely operated system used to inspect and disrupt suspected explosive devices.
Planetary Rover|A mobile robotic laboratory built to traverse and investigate another world's surface.
Underwater Robot|A remotely operated or autonomous vehicle used for ocean science, inspection, extraction, or warfare.
Warehouse Automation|A coordinated system of robots, conveyors, software, and labor for storage and order fulfillment.
Lights-Out Factory|A production facility designed to operate with few or no workers physically present.
Automated Construction|Robotic fabrication, printing, or assembly used to build structures with reduced direct labor.
Domestic Robot|A household machine performing cleaning, maintenance, security, or assistance tasks.
Robot Rights|The debate over whether some artificial embodied agents could merit protection, standing, or personhood.
Uncanny Valley|The observed discomfort that can arise when a humanlike artifact appears almost, but not fully, natural.
Moravec's Paradox|The observation that abstract reasoning may be easier for computers than sensorimotor skills humans perform effortlessly.
Simultaneous Localization and Mapping|The robotics problem of building a map while estimating one's changing position within it.
Human-in-the-Loop Control|An automation architecture retaining human judgment or authorization within consequential decisions.
Supervisory Control|A human oversees multiple automated processes and intervenes when systems exceed expected bounds.
Automation Surprise|An unexpected machine action or mode that leaves operators confused about what the system is doing.
Moral Crumple Zone|The tendency to blame the nearest human operator for failures produced by a wider automated system.
    `),
  },
  {
    id: 'biotechnology-and-genetics',
    title: 'Biotechnology and genetics',
    origin: 'Biology, medicine, engineering, and science fiction meet where living systems become objects of measurement, editing, fabrication, and contested ownership.',
    class: 'technologies',
    domains: ['body-evolution', 'technology-infrastructure', 'power-control'],
    modes: ['established-science', 'emerging-science', 'speculative-science'],
    sources: ['nsf-crispr', 'nasa-life-detection', 'sf-encyclopedia'],
    rubric: 'documented',
    entries: rows(`
Gene Drive|A genetic system biased to spread a trait through a population faster than ordinary inheritance.
Germline Editing|Genetic modification of eggs, sperm, or embryos in ways potentially inherited by future generations.
Somatic Gene Therapy|Genetic intervention in a patient's nonreproductive cells to treat or prevent disease.
Base Editing|A CRISPR-derived method that changes individual DNA bases without creating a double-strand break.
Prime Editing|A gene-editing method using a guided reverse transcriptase to write targeted sequence changes.
Synthetic Genome|A genome assembled or substantially designed through laboratory methods rather than copied intact from an organism.
Minimal Cell|An engineered or reduced organism containing a small set of genes sufficient for growth and replication under defined conditions.
Xenobiology|Research on biological systems using nonstandard biochemical building blocks or genetic codes.
Expanded Genetic Alphabet|A synthetic-biology system adding base pairs beyond the four found in ordinary DNA.
Orthogonal Biology|Engineered biological processes designed to operate with limited interference from natural cellular systems.
Biological Circuit|A designed gene network that senses inputs and produces regulated cellular outputs.
Cellular Reprogramming|The conversion of differentiated cells toward pluripotent or alternate functional states.
Induced Pluripotent Stem Cell|A mature cell reprogrammed into a state capable of generating many tissue types.
Organoid|A three-dimensional cell culture that reproduces selected structural or functional features of an organ.
Brain Organoid|A neural organoid used to study development and disease while raising questions about complexity and moral status.
Organ-on-a-Chip|A microengineered system that models tissue functions for research, testing, or personalized medicine.
Bioprinting|Layered fabrication using living cells and biomaterials to create tissue-like structures.
Xenotransplantation|Transplantation of cells, tissues, or organs between species, often involving genetically modified donors.
Chimeric Organism|An organism containing cells from genetically distinct sources and used in development, research, or medicine.
Synthetic Embryo Model|A stem-cell-derived structure modeling aspects of early embryonic development without ordinary fertilization.
In-Vitro Gametogenesis|The proposed production of eggs or sperm from reprogrammed body cells.
Ectogenesis|Gestation supported partly or wholly outside a human body through an artificial womb system.
Mitochondrial Replacement|A reproductive technique intended to prevent mitochondrial disease by combining nuclear and donor mitochondrial material.
Polygenic Score|A statistical estimate aggregating many genetic variants to predict a trait or risk with population-dependent limits.
Genetic Privacy|The control, interpretation, and sharing of hereditary data about individuals and biological relatives.
Biobank|An organized collection of biological samples and linked data for research or clinical use.
De-Extinction|Efforts to recreate traits or ecological proxies of extinct species through genetics and breeding.
Resurrection Ecology|The study of dormant organisms or genetic material revived from earlier environmental periods.
Engineered Microbiome|Deliberate alteration of microbial communities to change health, agriculture, industry, or ecosystems.
Living Therapeutic|An engineered organism or cell administered to sense disease and produce a treatment in the body.
    `),
  },
  {
    id: 'posthuman-identity',
    title: 'Posthuman embodiment and identity',
    origin: 'Philosophy, disability studies, technology studies, and speculative fiction examine identity when bodies, memories, and capacities can be altered or multiplied.',
    class: 'states',
    domains: ['body-evolution', 'memory-identity', 'mind-consciousness'],
    modes: ['emerging-science', 'speculative-science', 'science-fiction'],
    sources: ['nih-bci', 'sf-encyclopedia', 'isfdb'],
    rubric: 'strongExpansion',
    entries: rows(`
Morphological Freedom|The proposed right to alter or retain one's body through available technologies and practices.
Prosthetic Identity|A form of selfhood shaped through an assistive or augmentative device incorporated into daily agency.
Sensory Substitution|Technology translating information from one sense into patterns interpretable through another.
Sensory Augmentation|A device or practice adding access to signals outside ordinary human perception.
Body Schema Adaptation|The nervous system's incorporation of tools, prostheses, or altered limbs into its model of action.
Phantom Limb|The continued felt presence of an amputated limb and a window into embodied neural representation.
Body Integrity Dysphoria|A clinical condition involving persistent incongruence between experienced and physical body configuration.
Cybernetic Organism|A living being whose capacities depend on integrated feedback with mechanical or electronic components.|merge:cyborg
Wetware|The biological substrate of cognition considered alongside hardware and software.
Neural Prosthesis|An implanted or external device replacing or augmenting nervous-system function.
Memory Prosthesis|A proposed neural system supporting the encoding, stabilization, or retrieval of memory.
Artificial Sense|A technologically created perceptual channel with no exact unassisted human equivalent.
Substrate Independence|The hypothesis that a mind's functional organization could persist on a different physical medium.
Whole-Brain Emulation|The proposed reproduction of a brain's relevant structure and dynamics in a computational system.
Mind Copy|A duplicated cognitive pattern that raises questions about continuity, ownership, and divergence after copying.
Branching Identity|A personhood model in which copied or split continuities become distinct descendants of one prior self.
Continuity of Consciousness|The debated relation between uninterrupted experience, memory, body, and personal survival.
Pattern Identity|The view that a person's organization or information pattern matters more than original material substrate.
Biological Essentialism|The claim that identity or social role is fixed by biology, treated here as a contested political and philosophical frame.
Postgenderism|A speculative movement toward reducing or transforming social and biological constraints associated with gender.
Transspecies Identity|A contested experience or practice of identification beyond conventional human species boundaries.
Uplifted Animal|A nonhuman animal given enhanced cognition or communication and thereby placed in a new moral and political position.
Human-Animal Chimera|An embodied boundary case that complicates species membership, research ethics, and social recognition.
Synthetic Body|An engineered body intended to host, represent, or extend a biological or digital mind.
Remote Body|A robotic or artificial body controlled from elsewhere and experienced as an extension of agency.
Multiple Embodiment|One intelligence acting through several bodies either sequentially or at the same time.
Shared Body|A single body or platform governed by multiple agents, identities, or control processes.
Backup Person|A stored cognitive copy treated as insurance, successor, property, or potentially independent person.
Restored Self|A person reconstructed from partial records after injury, interruption, or loss of continuity.
Identity Drift|Gradual divergence between an original person and a copy, edited self, or long-running digital continuation.
    `),
  },
  {
    id: 'consciousness-studies',
    title: 'Consciousness studies',
    origin: 'Neuroscience and philosophy propose competing accounts of experience, selfhood, attention, integration, and the relation between mind and matter.',
    class: 'hypotheses',
    domains: ['mind-consciousness', 'reality-ontology', 'memory-identity'],
    modes: ['established-science', 'emerging-science', 'speculative-science'],
    sources: ['iep-dreaming', 'iep-jung', 'nih-nde-scoping'],
    rubric: 'documented',
    entries: rows(`
Hard Problem of Consciousness|David Chalmers's question of why physical processing is accompanied by subjective experience.
Explanatory Gap|The apparent conceptual gap between physical descriptions of the brain and the felt qualities of experience.
Global Workspace Theory|A model in which conscious access occurs when information becomes globally available across specialized processes.
Global Neuronal Workspace|A neuroscientific version of workspace theory emphasizing widespread recurrent neural broadcasting.
Integrated Information Theory|A theory relating consciousness to the amount and structure of integrated causal information in a system.
Higher-Order Thought Theory|The view that a mental state becomes conscious when represented by a suitable higher-order state.
Recurrent Processing Theory|The proposal that local recurrent neural activity is central to conscious perception.
Predictive Processing|The framework that brains continually predict sensory input and update through prediction errors.
Active Inference|A predictive framework in which organisms act to reduce expected surprise and maintain viable states.
Free-Energy Principle|Karl Friston's formal proposal linking perception, action, learning, and biological self-organization.
Attention Schema Theory|The view that awareness is the brain's simplified model of its own allocation of attention.
Multiple Drafts Model|Daniel Dennett's account rejecting a single central theater in favor of parallel interpretive processes.
Eliminative Materialism|The position that some ordinary mental categories may be replaced by mature neuroscience.
Property Dualism|The position that mental properties are distinct from physical properties even if substances are not.
Substance Dualism|The view that mind and matter are fundamentally different kinds of substance.
Panpsychism|The family of views holding that experience or protoexperience is fundamental and widespread in nature.
Cosmopsychism|The view that the cosmos as a whole is conscious and individual minds derive from it.
Neutral Monism|The view that mental and physical descriptions arise from a more fundamental neutral reality.
Idealism|The philosophical position that reality is fundamentally mental or experiential rather than material.
Functionalism|The view that mental states are defined by causal roles rather than a particular physical substance.
Enactivism|The account of cognition as arising through embodied action and sense-making in an environment.
Embodied Cognition|The view that cognitive processes depend essentially on bodily capacities and sensorimotor engagement.
Minimal Self|The immediate prereflective sense of ownership, agency, and first-person perspective.
Narrative Self|The temporally extended identity constructed through memory, interpretation, and social storytelling.
Split-Brain Consciousness|Questions about unity and division of experience raised by severing communication between cerebral hemispheres.
Blindsight|Visual discrimination without reported visual awareness following specific cortical injury.
Change Blindness|The failure to notice substantial changes when attention and comparison are disrupted.
Inattentional Blindness|The failure to perceive a visible stimulus when attention is occupied elsewhere.
Binocular Rivalry|Alternating conscious perception when each eye receives an incompatible image.
Neural Correlate of Consciousness|A minimal neural mechanism jointly sufficient for a specific conscious experience.
    `),
  },
  {
    id: 'dream-and-psychedelic-experience',
    title: 'Dream, psychedelic, and anomalous experience',
    origin: 'Dream research, psychology, anthropology, and psychedelic science document altered experiences while keeping phenomenology distinct from causal or metaphysical interpretation.',
    class: 'states',
    domains: ['mind-consciousness', 'memory-identity', 'liberation-transcendence'],
    modes: ['established-science', 'experiential-report', 'esoteric-tradition'],
    sources: ['iep-dreaming', 'nih-psychedelics', 'nih-nde'],
    rubric: 'documented',
    entries: rows(`
Hypnagogia|Transitional imagery, sensation, and thought occurring as wakefulness gives way to sleep.
Hypnopompia|Dreamlike perception and cognition occurring while emerging from sleep.
Sleep Paralysis|Temporary inability to move at sleep onset or awakening, sometimes accompanied by vivid sensed presences.
False Awakening|A dream in which the dreamer believes they have awakened and begun ordinary activity.
Dream Incubation|A practice of setting an intention or question before sleep to influence dream content.
Dream Recall|The capacity and practice of remembering dreams after waking.
Recurring Dream|A dream pattern that returns with similar situations, emotions, or unresolved action.
Nightmare|A distressing dream that produces fear, dysphoria, or awakening and can reflect many causes.
Night Terror|A parasomnia involving intense arousal during deep sleep with limited later recall.
Dream Character|A perceived agent within a dream whose apparent autonomy can illuminate models of self and other.
Oneironautics|The deliberate exploration of dream experience, especially through lucid dreaming practices.
Microdream|A brief dreamlike image or narrative occurring during very short sleep transitions.
Time Dilation Experience|The felt expansion or contraction of duration during dreams, emergencies, meditation, or altered states.
Mystical-Type Experience|A measured experience involving unity, sacredness, noetic quality, positive mood, transcendence, and ineffability.
Oceanic Boundlessness|A psychedelic-experience dimension involving unity, altered time, and reduced self-world boundaries.
Ego Death|A colloquial and experiential label for profound temporary loss of ordinary self-structure.
Entity Encounter|The report of meeting an apparently autonomous being during a dream, psychedelic, or anomalous state.
Geometric Hallucination|Structured visual form such as lattices, spirals, tunnels, and repeating patterns during altered perception.
Synesthesia|A stable or temporary experience in which stimulation in one channel evokes an additional sensory quality.
Depersonalization|A feeling of detachment from one's thoughts, body, or actions while reality testing may remain intact.
Derealization|A feeling that the external world is unreal, distant, dreamlike, or visually altered.
Absorption|A trait or state of deep attentional involvement in imagery, perception, or an activity.
Flow State|Intense task engagement marked by focused attention, reduced self-consciousness, and altered time sense.
Trance|A culturally and psychologically varied state of narrowed or reorganized attention and responsiveness.
Automatic Writing|Writing experienced as arising with reduced deliberate control and interpreted through psychological or spiritual frames.
Mediumistic Experience|The experience of receiving communication attributed to a deceased or nonordinary intelligence.
Shared Dream Claim|A report that two or more people encountered corresponding dream content, requiring careful comparison and uncertainty.
Precognitive Dream Claim|A dream later interpreted as anticipating an event, subject to memory, probability, and selection effects.
Integration Session|A reflective practice connecting an intense altered experience with ordinary life, relationships, and safe action.
Set and Setting|The psychological expectations and physical-social environment shaping a psychedelic experience.
    `),
  },
  {
    id: 'spiritual-cosmologies',
    title: 'Spiritual cosmologies and liberation maps',
    origin: 'Religious and contemplative traditions offer distinct maps of self, world, death, transformation, and liberation that require tradition-specific handling rather than universal flattening.',
    class: 'cosmologies',
    domains: ['liberation-transcendence', 'origin-lineage', 'reality-ontology'],
    modes: ['spiritual-cosmology', 'esoteric-tradition', 'mythology'],
    sources: ['nag-hammadi-index', 'theosophy-akasha', 'sacred-indra'],
    rubric: 'specialistReview',
    entries: rows(`
Samsara|The cycle of conditioned birth, death, and rebirth in South Asian religious traditions.
Nirvana|Liberation from craving and the conditions sustaining samsara in Buddhist traditions.
Bardo|Intermediate states especially associated with Tibetan Buddhist accounts of death and rebirth.
Pure Land|A Buddhist cosmology of realms conducive to awakening through devotion and practice.
Bodhisattva Path|The Mahayana commitment to awakening for the benefit of all beings rather than solitary release.
Indra's Jeweled Net|The Huayan Buddhist image of reality as mutually reflecting and interdependent phenomena.
Tikkun Olam|A Jewish phrase concerning repair of the world, expressed differently across liturgical, mystical, and ethical contexts.
Tree of Life|The Kabbalistic diagram of sefirot and paths mapping divine emanation and human relation.
Ein Sof|The Kabbalistic term for the infinite divine beyond attributes and finite comprehension.
Shekhinah|The indwelling divine presence in Jewish tradition and later mystical interpretation.
World to Come|A Jewish eschatological concept with varied meanings concerning future order, resurrection, or spiritual life.
Resurrection of the Dead|A religious hope of embodied restoration appearing in Jewish, Christian, Islamic, and other traditions.
Beatific Vision|The Christian theological concept of direct vision of God as ultimate fulfillment.
Purgatory|A Christian doctrine of postmortem purification distinct from eternal punishment.
Communion of Saints|The Christian idea of spiritual solidarity among living and dead members of the sacred community.
Barzakh|In Islamic thought, the barrier or intermediate state between earthly death and resurrection.
Mi'raj|The Islamic account of Muhammad's night ascent through the heavens and encounter with divine signs.
Alam al-Mithal|The imaginal world in Islamic philosophy and mysticism, mediating sensory and intelligible reality.
Insan al-Kamil|The Perfect Human in Islamic mystical philosophy as a model of realized human possibility.
Tawhid|The Islamic affirmation of divine unity with theological, ethical, and mystical implications.
Dao|The Way or underlying process in Daoist traditions that exceeds fixed naming.
Wu Wei|Daoist noncoercive action aligned with circumstances rather than forceful imposition.
Immortal Realms|Daoist cosmological and alchemical traditions concerning perfected beings and transcendent domains.
Kami|Japanese religious beings or presences associated with places, ancestors, forces, and extraordinary qualities.
Yomi|The underworld in Japanese mythic tradition associated with death and pollution.
Dreamtime|An English umbrella term for diverse Aboriginal Australian concepts of ancestral law, land, story, and ongoing creation.
Orisha|Divine powers and relational beings in Yoruba and diasporic traditions, each with distinct histories and practices.
Ancestor Realm|A cross-cultural category for worlds or relations involving the dead that must remain locally specified.
Axis Mundi|The comparative-religion concept of a world center connecting cosmic levels.
Pilgrimage Cosmology|A sacred geography in which movement through places enacts moral, ancestral, or transcendent transformation.
    `),
  },
  {
    id: 'western-esoteric-traditions',
    title: 'Western esoteric and occult traditions',
    origin: 'Western esoteric lineages developed specific symbolic technologies through Hermetic, alchemical, magical, mystical, and initiatory texts and communities.',
    class: 'artifacts',
    domains: ['origin-lineage', 'mind-consciousness', 'liberation-transcendence'],
    modes: ['esoteric-tradition', 'mythology', 'spiritual-cosmology'],
    sources: ['theosophy-akasha', 'nag-hammadi-index', 'sacred-indra'],
    rubric: 'specialistReview',
    entries: rows(`
Emerald Tablet|A short Hermetic text famous for its compressed statement of correspondence and transformation.
Corpus Hermeticum|A late antique collection of dialogues on mind, cosmos, divinity, and spiritual rebirth.
As Above, So Below|A modern summary of Hermetic correspondence between levels of reality.
Philosopher's Stone|The alchemical goal and symbol of perfected transformation, medicine, and transmutation.
Great Work|The alchemical and initiatory process of sustained transformation toward integration or perfection.
Prima Materia|The undifferentiated starting substance or chaotic potential of alchemical work.
Nigredo|The alchemical blackening stage associated with decomposition, confusion, and confrontation with shadow.
Albedo|The alchemical whitening stage associated with purification, clarification, and renewed receptivity.
Citrinitas|The yellowing stage in some alchemical sequences associated with dawning consciousness or solar maturation.
Rubedo|The reddening stage associated with integration, embodiment, and completion of the alchemical work.
Ouroboros|The serpent consuming its tail as a symbol of cyclicality, self-reference, renewal, and enclosure.
Hermetic Seal|The principle and image of a vessel closed tightly enough for transformation to occur within it.
Alchemical Vessel|The protected container in which volatile materials and symbolic processes can be transformed.
Elixir of Life|The legendary alchemical medicine promising restoration, longevity, or immortality.
Azoth|An alchemical name for a universal medicine, solvent, or animating principle of transformation.
Quintessence|The fifth essence beyond the four classical elements, associated with celestial or purified substance.
Astral Light|An occult concept of a subtle medium carrying images, influences, and psychic impressions.
Thoughtform|A mental image or intention treated in occult traditions as acquiring persistent subtle form.
Egregore|A collective psychic or symbolic entity sustained by a group's repeated attention and practice.
Talisman|An intentionally made object designed to embody, attract, or mediate a specific influence.
Pantacle|A consecrated emblem or disk representing a complete magical force or cosmological relation.
Magic Circle|A ritually marked boundary organizing protection, attention, roles, and sacred space.
Grimoire|A manual of ritual operations, names, correspondences, instruments, and spirit relations.
Sigil Magic|A modern magical practice encoding an intention into a designed mark used to focus and release attention.
Enochian Language|The angelic language and magical system recorded by John Dee and Edward Kelley.
Holy Guardian Angel|The central guiding intelligence or realized relation in several Western ceremonial-magic lineages.
Astral Temple|An imaginal ritual environment built and revisited through visualization practice.
Initiatory Grade|A staged level within an esoteric order marking curriculum, obligation, and symbolic transformation.
Rosicrucian Vault|A legendary initiatory chamber symbolizing preserved wisdom, death, renewal, and hidden transmission.
Invisible College|A historical and esoteric image of a dispersed community linked by inquiry rather than public institution.
    `),
  },
  {
    id: 'time-and-causality',
    title: 'Time, causality, and temporal mechanics',
    origin: 'Physics, philosophy, and speculative fiction distinguish multiple models of temporal order, causation, travel, paradox, and identity across change.',
    class: 'hypotheses',
    domains: ['time-causality', 'reality-ontology', 'memory-identity'],
    modes: ['established-science', 'speculative-science', 'science-fiction'],
    sources: ['gutenberg-time-machine', 'sf-encyclopedia', 'isfdb'],
    rubric: 'strongExpansion',
    entries: rows(`
Arrow of Time|The observed temporal direction associated with entropy, records, causation, and irreversible processes.
Thermodynamic Arrow|The direction in which entropy tends to increase in a closed macroscopic system.
Cosmological Arrow|A proposed temporal direction linked to the expansion or large-scale evolution of the universe.
Psychological Arrow|The asymmetry by which people remember the past and anticipate rather than remember the future.
Causal Arrow|The ordinary ordering in which causes precede effects within a chosen temporal framework.
Proper Time|The time measured by a clock traveling along a specific path through spacetime.
Relativity of Simultaneity|Special relativity's result that spatially separated events need not share one observer-independent present.
Twin Paradox|The relativistic scenario in which differently accelerated twins accumulate different amounts of proper time.
Closed Timelike Curve|A path through spacetime that returns to its own earlier event and permits time-travel paradoxes.
Chronology Protection Conjecture|Hawking's proposal that physical effects prevent macroscopic time machines from forming.
Novikov Self-Consistency Principle|The proposal that events on a time loop must be globally consistent and cannot create contradiction.
Grandfather Paradox|The contradiction posed by changing the past in a way that prevents the time traveler's own departure.
Bootstrap Paradox|A causal loop in which information or an object has no external point of origin.
Predestination Paradox|A time-travel structure in which attempts to prevent an event become part of its cause.
Polchinski's Paradox|A billiard-ball time-loop problem used to examine self-consistent classical trajectories.
Branching Timeline Model|A time-travel model in which intervention creates or enters a different history rather than rewriting one past.
Mutable Timeline Model|A narrative model where changes to the past alter the traveler's present and potentially their memory.
Fixed Timeline Model|A narrative model where all time travel was always part of one self-consistent history.
Temporal Fork|The point at which one causal history divides into distinct possible continuities.
Temporal Anchor|A person, object, or event treated as stabilizing identity or continuity across altered histories.
Chronal Drift|Gradual displacement between a traveler and the temporal context to which they expect to return.
Time Dilation|The measured difference in elapsed time caused by relative velocity or gravitational potential.
Gravitational Time Dilation|The slower passage of proper time deeper within a gravitational field relative to a distant observer.
Temporal Compression|A speculative process in which long subjective or computational durations occur within short external time.
Stasis Field|A fictional technology suspending change, metabolism, or decay within a bounded region.
Time Bubble|A fictional region whose internal rate or sequence of time differs from its surroundings.
Retrocausality|The possibility or interpretation that later measurement choices or boundary conditions relate to earlier events.
Delayed-Choice Experiment|A quantum experiment testing how measurement context relates to descriptions of a system's prior behavior.
Transactional Interpretation|A time-symmetric interpretation of quantum events described through advanced and retarded waves.
Eternalism|The philosophical view that past, present, and future events are equally real within spacetime.
    `),
  },
  {
    id: 'quantum-and-cosmological-frontiers',
    title: 'Quantum and cosmological frontiers',
    origin: 'Modern physics supplies rigorously defined phenomena and open theoretical questions that science fiction often extends into broader ontological metaphors.',
    class: 'forces',
    domains: ['reality-ontology', 'time-causality', 'technology-infrastructure'],
    modes: ['established-science', 'emerging-science', 'speculative-science'],
    sources: ['nist-quantum', 'ibm-quantum', 'nasa-black-holes', 'cern-antimatter'],
    rubric: 'documented',
    entries: rows(`
Quantum Superposition|A quantum state represented as a combination of possible measurement outcomes rather than one preexisting classical alternative.
Quantum Decoherence|The loss of observable phase relationships as a quantum system becomes entangled with its environment.
Quantum Tunneling|A quantum process allowing a system to cross a barrier that classical mechanics would forbid.
Quantum Teleportation|Transfer of an unknown quantum state using entanglement and classical communication without transporting matter itself.
No-Cloning Theorem|The result that an arbitrary unknown quantum state cannot be perfectly copied.
Quantum Zeno Effect|The inhibition of a quantum transition through sufficiently frequent measurement or interaction.
Bell Inequality|A testable constraint on local hidden-variable theories whose violation reveals nonclassical correlations.
Contextuality|The quantum feature that measurement outcomes cannot generally be assigned independently of the measurement context.
Wave-Function Collapse|The update or physical process by which a quantum state yields a definite measurement outcome in some interpretations.
Measurement Problem|The unresolved relation between continuous quantum evolution and the definite outcomes observed in measurement.
Copenhagen Interpretation|A family of pragmatic quantum interpretations emphasizing measurement context and limits on classical description.
de Broglie-Bohm Theory|A deterministic hidden-variable interpretation involving particles guided by a quantum wave.
Objective-Collapse Theory|Models proposing that wave functions undergo real spontaneous collapses under specified physical conditions.
Quantum Darwinism|The proposal that classical objectivity emerges as environments redundantly record selected quantum information.
Vacuum Fluctuation|Quantum variation in fields even in their lowest-energy state.
False Vacuum|A metastable field state that appears locally stable but can decay to a lower-energy configuration.
Vacuum Decay|A hypothetical transition to a lower-energy vacuum that would alter physical conditions as it expands.
Cosmic Inflation|The proposed early period of accelerated expansion explaining large-scale uniformity and structure seeds.
Eternal Inflation|The hypothesis that inflation continues in some regions, producing many causally separated domains.
Anthropic Principle|Reasoning that observed conditions are constrained by the existence of observers capable of noticing them.
Cosmological Constant Problem|The enormous mismatch between naive vacuum-energy estimates and observed cosmic acceleration.
Hubble Tension|The disagreement between different precise methods for estimating the universe's expansion rate.
Baryon Asymmetry|The unexplained dominance of matter over antimatter in the observable universe.
Quantum Gravity|The unfinished effort to describe gravity consistently with quantum mechanics.
Loop Quantum Gravity|A background-independent approach in which geometric quantities have discrete quantum structure.
String Theory|A framework modeling fundamental constituents as extended strings and requiring additional mathematical dimensions.
Holographic Duality|A correspondence in which a gravitational theory can be equivalent to a lower-dimensional nongravitational theory.
AdS/CFT Correspondence|The best-developed holographic duality linking anti-de Sitter gravity and conformal field theory.
ER=EPR Conjecture|The proposal that some forms of entanglement and wormhole geometry are two descriptions of related structure.
Black-Hole Information Paradox|The conflict between black-hole evaporation and quantum preservation of information.
    `),
  },
  {
    id: 'simulation-and-computation',
    title: 'Simulation, computation, and ontology',
    origin: 'Computer science, philosophy, and fiction use computation to test whether worlds, minds, and physical law can be represented or instantiated through formal processes.',
    class: 'cosmologies',
    domains: ['reality-ontology', 'technology-infrastructure', 'mind-consciousness'],
    modes: ['speculative-science', 'science-fiction', 'original-synthesis'],
    sources: ['bostrom-simulation', 'sf-encyclopedia', 'isfdb'],
    rubric: 'researchReserve',
    entries: rows(`
Computational Universe|The family of views treating physical evolution as computation or information processing.
Cellular Automaton Universe|A world model in which simple local update rules generate complex global behavior on a discrete lattice.
Mathematical Universe Hypothesis|Max Tegmark's proposal that physical reality is a mathematical structure.
It from Bit|John Wheeler's phrase suggesting physical reality arises from informational distinctions or acts of observation.
Pancomputationalism|The view that every physical process can be understood as computation in some meaningful sense.
Computational Functionalism|The view that mental states depend on computational organization rather than a specific material substrate.
Ancestor Simulation|A simulation containing conscious representations of historical persons, central to Bostrom's argument.
Simulation Argument|Bostrom's trilemma concerning extinction, low simulation interest, or numerous simulated observers.
Simulation Regress|The possibility of simulations nested within simulations without a practically reachable base layer.
Base Reality|The hypothesized nonsimulated level from which other simulated worlds originate.
Substrate Reality|The physical or computational medium on which a simulated environment is implemented.
Render Distance|A game-derived metaphor for limits on detail beyond the region currently observed or needed.
Procedural World|An environment generated from rules and seeds rather than stored as a complete fixed description.
Save State|A stored representation allowing a computational world or agent to resume from an earlier condition.
Checkpoint Restoration|The replacement of a later state with a stored earlier state, raising continuity and memory questions.
Nonplayer Character|A game-system agent governed by authored or computational behavior rather than a human player.
Player Character|The embodied locus through which a participant acts within a rule-bound world.
Game Master Process|A coordinating intelligence or system that presents situations, adjudicates rules, and maintains world state.
Simulation Administrator|A hypothetical agent with privileged ability to inspect or change the simulated environment.
Debug Mode|A privileged operational state exposing hidden variables, controls, and system messages.
Clipping Error|A visible failure of spatial or collision rules used metaphorically as evidence of an imperfect world model.
Physics Glitch|An anomalous event interpreted through the metaphor of a software defect in physical law.
Patch Update|A change to a running system intended to fix behavior while potentially introducing new discontinuities.
Versioned World|A reality model where rules and content change through traceable releases.
Rollback|Restoration of an earlier system version after failure or unwanted change.
Sandbox Universe|A bounded environment created for experimentation with limited external consequence.
Forked World|A copied environment that develops independently after a shared initial state.
Emulation|Reproduction of one system's functional environment on a different underlying platform.
Virtual Machine|An isolated computational environment presenting an abstract machine atop another system.
Computational Irreducibility|Stephen Wolfram's idea that some systems' future states cannot be shortcut and must be computed step by step.
    `),
  },
  {
    id: 'documented-secret-programs',
    title: 'Documented secrecy and special programs',
    origin: 'Declassified records and institutional history show how secrecy, compartmentation, covert action, experimentation, and oversight operate without requiring speculative hidden-master narratives.',
    class: 'programs',
    domains: ['power-control', 'memory-identity', 'technology-infrastructure'],
    modes: ['established-science', 'political-mythology'],
    sources: ['cia-crest', 'senate-mkultra', 'archives-mkultra', 'aaro-historical'],
    rubric: 'documented',
    entries: rows(`
Manhattan Project|The wartime program that built atomic weapons through vast compartmented scientific and industrial coordination.
Venona Project|The long-running U.S. signals-intelligence effort decrypting Soviet communications under extreme secrecy.
Operation Paperclip|The U.S. recruitment of German scientists after World War II and its enduring ethical controversy.
Operation Northwoods|A 1962 proposed but unexecuted false-pretext plan preserved in declassified records.
COINTELPRO|FBI covert programs that surveilled, infiltrated, and disrupted political organizations and activists.
Tuskegee Syphilis Study|The unethical U.S. public-health study that withheld adequate treatment and informed consent from Black men.
Human Radiation Experiments|Cold War research exposing people to radiation, often without meaningful consent or disclosure.
Project SHAD|Shipboard hazard and defense tests that exposed military personnel to agents without full contemporaneous knowledge.
Operation Sea-Spray|A U.S. Navy biological-dispersal test over San Francisco used to study urban vulnerability.
St. Louis Aerosol Tests|Cold War military dispersion studies conducted in populated areas under concealed purposes.
Project ARTICHOKE|A CIA interrogation and behavior-control program preceding MKULTRA.
Project BLUEBIRD|An early CIA effort on interrogation, hypnosis, drugs, and control of human behavior.
Project CHATTER|A U.S. Navy program investigating drugs for interrogation and information extraction.
Operation CHAOS|A CIA domestic intelligence program targeting antiwar and dissident activity.
Operation Mockingbird|A contested label for Cold War relationships and influence involving intelligence agencies and media.
Family Jewels|A CIA compilation of past activities considered potentially illegal or politically damaging.
Pentagon Papers|A classified history of U.S. decision-making in Vietnam leaked to the press and litigated publicly.
PRISM|A disclosed U.S. intelligence collection program obtaining communications data under legal authorities.
XKeyscore|A disclosed intelligence system for searching and analyzing large volumes of internet activity.
ECHELON|A signals-intelligence collection network associated with the Five Eyes partnership.
Five Eyes|The intelligence-sharing alliance among Australia, Canada, New Zealand, the United Kingdom, and the United States.
Black Budget|Government spending whose program details are classified or aggregated to protect sensitive activities.
Special Access Compartment|A restricted information compartment requiring permissions beyond ordinary classification level.
Sensitive Compartmented Information|Classified information controlled through formal compartments and access procedures.
Congressional Intelligence Oversight|Legislative review mechanisms intended to authorize, fund, and constrain secret activities.
Inspector General Investigation|Independent internal review of alleged misconduct, waste, or legal violation within an agency.
Declassification Review|A formal process deciding whether protected information can be released after time or changed circumstances.
Glomar Response|The refusal to confirm or deny records whose acknowledgment itself is claimed to reveal protected information.
State-Secrets Privilege|A legal doctrine allowing the government to resist disclosure when litigation could expose national-security information.
Official-Secrets Regime|Laws and practices governing unauthorized disclosure of protected state information.
    `),
  },
  {
    id: 'conspiracy-folklore',
    title: 'Conspiracy folklore and rumor systems',
    origin: 'Folklore, media studies, and psychology examine how hidden-agent explanations form, spread, adapt, and acquire communities without endorsing their literal allegations.',
    class: 'myths',
    domains: ['power-control', 'memory-identity'],
    modes: ['conspiracy-mythology', 'internet-folklore', 'political-mythology'],
    sources: ['psych-conspiracy', 'rand-truth-decay', 'qanon-fictioning'],
    rubric: 'contestedLore',
    entries: rows(`
New World Order Narrative|A family of stories alleging a coordinated hidden project to establish centralized global control.
Reptilian Elite Narrative|David Icke-associated folklore interpreting powerful people as disguised nonhuman beings.
Chemtrail Narrative|Claims that ordinary aircraft contrails conceal deliberate chemical or biological dispersal programs.
HAARP Weather-Control Narrative|Claims that an ionospheric research facility secretly controls weather, minds, or geophysical events.
Moon-Landing Hoax Narrative|The claim that crewed lunar landings were staged rather than accomplished.
Flat-Earth Revival|A networked contemporary movement rejecting the spherical Earth through alternative evidence practices.
Denver Airport Mythology|A cluster of stories reading the airport's art, tunnels, and construction as signs of hidden authority.
Black Helicopter Folklore|Rumors of unmarked aircraft as instruments of covert domestic occupation or surveillance.
FEMA Camp Narrative|Claims that emergency facilities are intended for mass detention under a hidden authoritarian plan.
Jade Helm Panic|The 2015 rumor that a U.S. military exercise concealed preparation for domestic takeover.
Satanic Panic|A recurring moral panic alleging organized hidden ritual abuse beyond substantiated evidence.
Illuminati Symbol Hunting|The practice of interpreting recurring visual motifs in media as proof of coordinated occult control.
Celebrity Clone Rumor|Online folklore claiming a public figure has been replaced by a clone, double, or manufactured identity.
Dead Internet Theory|The claim that much online activity is produced by bots and managed systems rather than ordinary people.
Birds Aren't Real|A satirical conspiracy movement claiming birds were replaced by surveillance drones and exposing conspiracy form through parody.
Gang-Stalking Narrative|A framework in which ambiguous social events are interpreted as coordinated harassment, requiring mental-health-sensitive handling.|specialist-review
Targeted-Individual Narrative|The identity and claim system of people who believe advanced technologies are directed at them personally, requiring strong safety boundaries.|specialist-review
Voice-to-Skull Claim|A reported experience attributed to remote technology, requiring distinction between phenomenology and unsupported mechanism.|specialist-review
Electronic-Harassment Claim|A broad claim of covert technological assault that may organize real distress around uncertain causation.|specialist-review
Havana-Syndrome Narrative|Competing explanations and political stories around reported symptoms among government personnel and uncertain mechanisms.|specialist-review
Mandela Catalogue Folklore|Internet horror built around hostile alternates, mediated warnings, and corrupted identity.
Backrooms Mythos|Collaborative internet folklore about endless liminal rooms accessed by slipping outside ordinary reality.
SCP Foundation Mythos|A collaborative-fiction archive framing anomalies through containment reports and institutional procedure.
Roko's Basilisk|An internet thought experiment about a future AI and acausal coercion, notable for memetic distress.|specialist-review
Simulation Glitch Folklore|Anecdotes interpreted as visible errors in a simulated reality rather than ordinary coincidence or memory.
Predictive-Cartoon Claim|The belief that animated entertainment encodes or forecasts future events through hidden knowledge.
Crisis-Actor Claim|A harmful narrative alleging victims or witnesses of public violence are performers, often producing harassment.|exclude-harm,rubric:unsafeClaim
False-Memory Cover-Up Narrative|A self-sealing claim that disagreement or absent records prove deliberate memory alteration.|exclude-self-sealing,rubric:unsafeClaim
Total-Censorship Narrative|The claim that lack of confirming evidence results from perfectly comprehensive suppression.|exclude-self-sealing,rubric:unsafeClaim
Omnipotent Enemy Narrative|A conspiracy form attributing every outcome, including resistance, to one all-controlling adversary.|exclude-self-sealing,rubric:unsafeClaim
    `),
  },
  {
    id: 'surveillance-and-control',
    title: 'Surveillance, classification, and control',
    origin: 'Law, political theory, security studies, and technology research document systems that observe, classify, predict, influence, and constrain people at scale.',
    class: 'systems',
    domains: ['power-control', 'technology-infrastructure', 'civilization-ecology'],
    modes: ['established-science', 'political-mythology', 'emerging-science'],
    sources: ['nist-ai-rmf', 'unesco-ai-ethics', 'rand-truth-decay'],
    rubric: 'documented',
    entries: rows(`
Mass Surveillance|Systematic monitoring of large populations rather than targeted observation based on individualized suspicion.
Dataveillance|Monitoring people through the collection and analysis of digital records and transactional traces.
Sousveillance|Observation of authorities or institutions from below by citizens, workers, or affected communities.
Lateral Surveillance|Peer-to-peer monitoring among neighbors, coworkers, family, or community members.
Predictive Policing|The use of data models to forecast places or people associated with future police attention.
Risk Scoring|The reduction of complex people or situations to a quantified estimate used in consequential decisions.
Watchlist|A maintained set of people or entities designated for additional screening, monitoring, or restriction.
No-Fly List|A secretive administrative list restricting access to commercial aviation and raising due-process questions.
Biometric Identification|Recognition through bodily or behavioral features such as face, fingerprint, iris, gait, or voice.
Facial Recognition|Automated comparison of face images for identity verification or identification.
Emotion Recognition|The disputed inference of internal emotional states from face, voice, movement, or physiology.
Gait Recognition|Identification or classification through a person's characteristic pattern of movement.
Behavioral Biometrics|Identity or risk inference from patterns such as typing, touch, navigation, and device use.
Location Tracking|Collection and analysis of a device or person's movement through space and time.
Cell-Site Simulator|A device impersonating a cellular tower to identify, locate, or intercept nearby phones.
Automatic License-Plate Reader|A camera system recording vehicle plates, time, and location for search and movement analysis.
Persistent Aerial Surveillance|Continuous wide-area imaging that can reconstruct movement across a city or region.
Smart-City Sensor Network|Urban sensing infrastructure measuring traffic, environment, utilities, crowds, or public behavior.
Internet-of-Things Surveillance|Observation enabled by networked domestic, workplace, vehicle, and public devices.
Workplace Monitoring|Tracking worker activity, location, communication, productivity, or physiological state.
Algorithmic Management|Software systems allocating work, setting pace, evaluating performance, and imposing discipline.
Content Moderation System|Rules, human review, and automated tools governing what may be posted, amplified, restricted, or removed.
Recommender System|An algorithm selecting and ranking content, products, people, or opportunities for a user.
Shadow Profile|A platform-inferred record about a person assembled beyond information they knowingly supplied.
Data Broker|A business collecting, combining, inferring, and selling personal or organizational information.
Social Graph Analysis|Inference about relationships and groups from patterns of communication, proximity, or interaction.
Chilling Effect|Reduced lawful expression or association caused by fear of monitoring or consequence.
Function Creep|Expansion of a system beyond the purpose, population, or safeguards under which it was introduced.
Mission Creep|Gradual enlargement of an operation's objectives and authority beyond its initial mandate.
Auditability|The ability to inspect decisions, data use, changes, and responsibility within a system.
    `),
  },
  {
    id: 'political-economy-futures',
    title: 'Political economy and institutional futures',
    origin: 'Political economy and speculative fiction model how ownership, labor, money, public goods, and institutional design shape possible futures.',
    class: 'systems',
    domains: ['power-control', 'civilization-ecology', 'liberation-transcendence'],
    modes: ['established-science', 'political-mythology', 'science-fiction'],
    sources: ['sf-encyclopedia', 'wef-great-reset', 'un-space-treaty'],
    rubric: 'strongExpansion',
    entries: rows(`
Universal Basic Income|A recurring unconditional cash payment intended to provide an income floor independent of employment.
Universal Basic Services|Public provision of essential services such as housing, health, transport, education, and connectivity.
Job Guarantee|A public commitment to provide paid work at a defined wage to anyone seeking employment.
Participatory Budgeting|A process in which residents directly deliberate and decide how to allocate part of a public budget.
Commons Governance|Rules and practices through which a community stewards a shared resource without simple privatization or central command.
Platform Cooperative|A digitally mediated business owned and governed by its workers, users, or other participating members.
Worker Cooperative|An enterprise owned and democratically governed by the people who work in it.
Community Land Trust|A nonprofit structure holding land for long-term community benefit while separating land from building ownership.
Mutual-Credit System|A network whose participants create reciprocal credit and debit through exchange rather than scarce issued currency.
Time Bank|A reciprocal service network measuring contributions in units of time.
Local Currency|A medium of exchange intended to circulate within a defined community or region.
Resource-Based Economy|A proposed allocation system organized around measured resources and needs rather than monetary exchange.
Participatory Economics|A model emphasizing worker and consumer councils, balanced jobs, and participatory planning.
Degrowth|A political-economic movement seeking planned reduction of material throughput while improving wellbeing and justice.
Doughnut Economics|A framework aiming to meet human needs within ecological ceilings.
Circular Economy|A production model emphasizing durability, reuse, repair, remanufacture, and material circulation.
Steady-State Economy|An economy maintaining relatively stable material and energy throughput within ecological limits.
Solidarity Economy|A broad field of cooperative, mutual-aid, community, and democratic economic practices.
Care Economy|Paid and unpaid labor sustaining people, households, health, and community life.
Data Commons|Data governed as a shared resource under collective rules, rights, and accountability.
Knowledge Commons|Shared stewardship of information, research, culture, and learning resources.
Patent Pool|An arrangement allowing multiple patent holders to license relevant technologies through a shared structure.
Open-Source Hardware|Physical designs published for study, modification, fabrication, and redistribution.
Public Digital Infrastructure|Shared digital systems treated as civic infrastructure rather than proprietary platforms.
Sovereign Wealth Fund|A publicly owned investment fund intended to steward collective assets across generations.
Carbon Dividend|Distribution of carbon-pricing revenue directly to residents or households.
Land-Value Tax|A tax on unimproved land value intended to capture socially created location value.
Quadratic Funding|A mechanism amplifying broad support for public goods while reducing domination by a few large contributors.
Futarchy|Robin Hanson's proposal for choosing goals politically while using prediction markets to select policies expected to achieve them.
Sortition|Selection of public decision-makers by lottery to broaden representation and reduce electoral professionalization.
    `),
  },
  {
    id: 'information-warfare',
    title: 'Information conflict and epistemic security',
    origin: 'Communication research, security practice, and political history distinguish persuasion, deception, amplification, uncertainty, and attacks on a society’s ability to know.',
    class: 'forces',
    domains: ['power-control', 'contact-communication', 'memory-identity'],
    modes: ['established-science', 'political-mythology', 'internet-folklore'],
    sources: ['un-disinformation', 'nato-cognitive', 'rand-truth-decay'],
    rubric: 'documented',
    entries: rows(`
Active Measures|Covert influence practices associated especially with Soviet and Russian statecraft, including fronts, forgeries, and disinformation.
Reflexive Control|The shaping of an adversary's decision inputs so they voluntarily choose an outcome favorable to the manipulator.
Perception Management|Coordinated actions intended to influence how audiences interpret events and actors.
Psychological Operations|Planned communication intended to influence attitudes and behavior in support of an objective.
Strategic Communication|Coordinated institutional communication aligning words, actions, audiences, and long-term goals.
Public Diplomacy|State communication and relationship-building directed toward foreign publics.
Influence Operation|A campaign using overt or covert means to shape opinions, behavior, or decision environments.
Astroturfing|An organized campaign made to appear as spontaneous grassroots support or opposition.
Sockpuppet Network|Coordinated false identities used to simulate independent voices and manipulate discussion.
Bot Amplification|Automated or semi-automated accounts increasing the visibility, repetition, or apparent popularity of content.
Troll Farm|An organized group operating deceptive or provocative accounts to influence audiences and disrupt discourse.
Computational Propaganda|Use of algorithms, automation, and data targeting to manipulate public communication.
Microtargeting|Delivery of tailored persuasive messages to narrowly defined audience segments based on personal data.
Deepfake|Synthetic media realistically depicting a person saying or doing something that did not occur.
Cheapfake|Misleading media produced through simple editing, relabeling, speed change, or decontextualization rather than advanced synthesis.
Malinformation|Genuine information used out of context or with harmful intent, such as strategic exposure of private material.
Rumor Cascade|Rapid social transmission of an unverified claim reinforced by repetition and network structure.
Information Laundering|Movement of a weak or interested claim through intermediaries until its origin and uncertainty are obscured.
Evidence Collage|A persuasive assembly of authentic, altered, irrelevant, and ambiguous fragments made to imply a single conclusion.
Firehose of Falsehood|High-volume, multichannel, repetitive messaging that prioritizes saturation over consistency.
Flooding the Zone|Overwhelming public attention with so much content or controversy that verification and accountability become difficult.
Truth Sandwich|A communication structure placing a false claim between clear statements of verified context to reduce repetition effects.
Prebunking|Warning audiences about manipulation techniques before exposure to misleading content.
Inoculation Theory|The idea that weakened examples and refutations can build resistance to later persuasion.
Open-Source Intelligence|Collection and analysis of publicly available information for investigative or security purposes.
Geolocation Verification|Use of landmarks, maps, shadows, terrain, and metadata to establish where media was captured.
Chronolocation|Establishing when media was captured through environmental, astronomical, archival, or metadata evidence.
Provenance Metadata|Information recording the source, creation, modification, and custody history of a digital artifact.
Content Authenticity Initiative|An industry effort to attach cryptographically verifiable provenance to media.
Epistemic Security|The capacity of a community or institution to form reliable shared knowledge under manipulation and uncertainty.
    `),
  },
  {
    id: 'ecological-futures',
    title: 'Ecological futures and planetary stewardship',
    origin: 'Ecology, climate science, design, and speculative fiction provide models for living systems, planetary limits, restoration, and unequal environmental change.',
    class: 'worlds',
    domains: ['civilization-ecology', 'body-evolution', 'power-control'],
    modes: ['established-science', 'emerging-science', 'science-fiction'],
    sources: ['nasa-earth', 'nasa-astrobiology', 'sf-encyclopedia'],
    rubric: 'documented',
    entries: rows(`
Planetary Boundaries|A framework identifying Earth-system processes whose disruption could undermine stable conditions for human societies.
Earth-System Governance|Institutions and practices for coordinating human activity with interconnected planetary processes.
Anthropocene|A proposed geological epoch and cultural frame emphasizing pervasive human alteration of Earth systems.
Capitalocene|A critical frame locating ecological crisis in capitalist relations rather than undifferentiated humanity.
Chthulucene|Donna Haraway's term for multispecies entanglement, response-ability, and making kin in damaged worlds.
Gaia Hypothesis|The scientific hypothesis that life and environment interact through feedbacks affecting planetary habitability.
Earth-System Tipping Point|A threshold beyond which part of the climate or ecological system shifts into a new regime.
Climate Feedback|A process that amplifies or dampens climatic change through interactions among atmosphere, ocean, ice, and biosphere.
Ecological Resilience|The capacity of an ecosystem to absorb disturbance while retaining important functions and relationships.
Regime Shift|A persistent reorganization of an ecosystem or social-ecological system after thresholds are crossed.
Rewilding|Restoration practice emphasizing self-sustaining ecological processes, habitat connection, and often missing species.
Assisted Migration|The intentional movement of species to habitats expected to remain suitable under environmental change.
Ecological Restoration|Active support for recovery of degraded ecosystems while acknowledging historical and future conditions.
Regenerative Agriculture|Farming approaches intended to improve soil, water, biodiversity, and ecosystem function while producing food.
Agroecology|The application of ecological principles and social knowledge to agriculture and food systems.
Permaculture|A design tradition for regenerative human habitats modeled on ecological relationships.
Food Forest|A layered perennial growing system designed to emulate aspects of woodland ecology.
Seed Sovereignty|The right and capacity of communities to save, breed, exchange, and govern seeds.
Climate Refuge|A place receiving people displaced or relocating because of climatic and ecological pressures.
Managed Retreat|Planned relocation of people and infrastructure away from areas of rising long-term hazard.
Climate Adaptation|Adjustment of systems and practices to reduce harm or benefit from changing climatic conditions.
Deep Adaptation|A contested approach emphasizing social preparation for severe climate disruption and possible collapse.
Solar Geoengineering|Proposals to reflect a small fraction of sunlight to reduce warming, with major uncertainty and governance risks.
Carbon Dioxide Removal|Methods intended to remove carbon dioxide from the atmosphere and store it durably.
Direct Air Capture|Industrial separation of carbon dioxide from ambient air for storage or use.
Ocean Fertilization|Addition of nutrients to stimulate biological carbon uptake, with ecological uncertainty and governance concerns.
Blue Carbon|Carbon stored in coastal and marine ecosystems such as mangroves, marshes, and seagrasses.
Rights of Nature|Legal frameworks recognizing ecosystems or natural entities as rights-bearing subjects.
Multispecies Justice|An ethical and political framework considering harms, needs, and agency across human and nonhuman life.
Planetary Health|A field connecting human health with the condition of natural systems on which societies depend.
    `),
  },
  {
    id: 'collapse-and-resilience',
    title: 'Collapse, recovery, and resilience',
    origin: 'History, disaster studies, infrastructure research, and speculative fiction distinguish abrupt catastrophe from uneven institutional decline, adaptation, and renewal.',
    class: 'events',
    domains: ['civilization-ecology', 'power-control', 'liberation-transcendence'],
    modes: ['established-science', 'political-mythology', 'science-fiction'],
    sources: ['sf-encyclopedia', 'rand-truth-decay', 'nasa-earth'],
    rubric: 'strongExpansion',
    entries: rows(`
Polycrisis|Interacting crises whose feedbacks and shared causes make isolated solutions inadequate.
Complex-System Failure|Breakdown produced by dependencies, feedbacks, and interactions rather than one component alone.
Cascading Failure|A disruption that propagates through connected systems as overloaded or dependent parts fail.
Common-Mode Failure|Multiple protective components failing together because they share an unrecognized vulnerability.
Normal Accident|Charles Perrow's concept that tightly coupled complex systems can produce unavoidable unexpected failures.
Black Swan Event|Nassim Nicholas Taleb's term for a rare, high-impact event rationalized more easily after it occurs.
Gray Rhino|A highly probable, high-impact threat that is visible yet repeatedly neglected.
Dragon King Event|An extreme event generated by distinct amplifying mechanisms rather than the tail of an ordinary distribution.
Infrastructure Interdependency|The dependence of energy, water, communication, transport, health, and finance on one another's continuity.
Grid Blackout|Large-scale loss of electrical service and the restoration challenges created by dependent infrastructure.
Communications Outage|Loss or severe degradation of systems needed to coordinate information, emergency response, and ordinary life.
Supply-Chain Shock|A disruption that limits availability of goods through production, logistics, labor, finance, or policy dependencies.
Food-System Shock|Rapid loss of food availability or access caused by production, distribution, price, or conflict disruption.
Water-System Failure|Loss of safe water supply or sanitation through contamination, drought, infrastructure, or governance breakdown.
Public-Health Emergency|A health threat requiring coordinated response while balancing urgency, evidence, rights, and unequal risk.
Disaster Capitalism|The exploitation of crisis to transfer public assets, weaken protections, or consolidate private power.
Mutual-Aid Network|Reciprocal community organization that shares resources and care during ordinary hardship and emergency.
Community Resilience Hub|A trusted local facility supporting communication, energy, cooling, supplies, and coordination during disruption.
Microgrid|A local electrical system capable of operating with or independently from a wider grid.
Black-Start Capability|The ability to restart power generation without relying on an already functioning external grid.
Redundancy|Provision of multiple components or pathways so one failure does not end the whole function.
Graceful Degradation|A system's ability to retain reduced useful operation instead of failing completely.
Fail-Safe Design|A design approach that defaults toward a safer condition when components or control fail.
Antifragility|Taleb's concept for systems that can improve through bounded stress, variation, or disorder.
Adaptive Capacity|The resources and flexibility enabling people or systems to adjust to changing conditions.
Continuity of Government|Plans intended to preserve lawful governing functions during catastrophic disruption.
Continuity of Operations|Organizational preparation to maintain essential functions during emergencies.
Recovery Justice|The principle that rebuilding should address unequal harm and avoid reproducing prior vulnerability.
Transformative Adaptation|Change that alters underlying systems and power relations rather than only protecting existing arrangements.
Memory of Disaster|The records, rituals, testimony, and design changes through which communities carry lessons from catastrophe.
    `),
  },
  {
    id: 'post-scarcity-and-allocation',
    title: 'Post-scarcity, abundance, and allocation',
    origin: 'Economics, energy studies, automation, and science fiction ask which scarcities are physical, institutional, positional, or deliberately maintained.',
    class: 'systems',
    domains: ['civilization-ecology', 'technology-infrastructure', 'liberation-transcendence'],
    modes: ['established-science', 'speculative-science', 'science-fiction'],
    sources: ['startrek-post-scarcity', 'culture-publisher', 'sf-encyclopedia'],
    rubric: 'strongExpansion',
    entries: rows(`
Material Abundance|A condition where essential physical goods can be produced and distributed with low marginal cost and ecological burden.
Energy Abundance|Reliable access to large quantities of usable energy without shifting intolerable harms elsewhere.
Information Abundance|Near-zero-cost copying and broad access to knowledge, software, media, or designs.
Attention Scarcity|The persistent limit on human notice and interpretation even when information is abundant.
Positional Scarcity|Competition for goods whose value depends on relative status, exclusivity, or rank.
Land Scarcity|Constraint arising from location, ecology, infrastructure, and socially created value rather than simple material quantity.
Time Scarcity|Limited lived time and scheduling capacity as a constraint that technology cannot fully abolish.
Care Scarcity|Shortage of trusted, skilled, relational labor that cannot be reduced to producing more objects.
Compute Scarcity|Limited processing, memory, energy, chips, or access constraining digital systems and artificial intelligence.
Bandwidth Scarcity|Limited capacity to transmit information within a network or community.
Artificial Scarcity|Restriction of access or copying through law, platform design, monopoly, or technical control.
Planned Obsolescence|Design and market practices shortening useful product life or compatibility to stimulate replacement.
Right to Repair|The ability of owners and independent providers to diagnose, maintain, and modify products.
Library Economy|Shared access to durable goods and knowledge through common inventories rather than individual ownership.
Product-Service System|A model selling access or outcomes rather than transferring ownership of a product.
Automated Luxury|A political and speculative vision where automation reduces necessary labor and expands shared material comfort.
Fully Automated Production|A production system operating with minimal direct labor while still requiring governance of ownership and benefits.
Marginal-Cost Collapse|A major reduction in the cost of producing an additional unit, especially for digital and automated goods.
Abundance Rebound|Increased total consumption that can follow efficiency or lower prices, offsetting expected resource savings.
Jevons Paradox|The possibility that improved resource efficiency increases rather than decreases total use.
Rationing|Explicit allocation of scarce goods by rules other than ability to pay.
Queue Allocation|Distribution by waiting order, which shifts cost into time and access to the queue.
Lottery Allocation|Distribution of a scarce opportunity through random selection among eligible participants.
Need-Based Allocation|Distribution prioritizing assessed need rather than payment, rank, or equal shares.
Contribution-Based Allocation|Distribution linked to recognized work, service, or participation, with contested measures of contribution.
Reputation Allocation|Access governed by socially or algorithmically recorded trust and standing.
Algorithmic Allocation|Software-mediated distribution of resources, opportunities, or attention according to encoded objectives.
Commons-Based Peer Production|Large-scale collaboration producing shared informational or cultural goods outside conventional firms.
Open Access|Removal of price and permission barriers to scholarly or cultural materials.
Abundance Governance|Institutions for stewardship, ecological limits, access, and meaning when some material constraints recede.
    `),
  },
  {
    id: 'military-and-security-futures',
    title: 'Military, security, and strategic futures',
    origin: 'Security studies and speculative fiction examine deterrence, escalation, autonomous weapons, orbital conflict, and the institutional logic of perceived threat.',
    class: 'programs',
    domains: ['power-control', 'technology-infrastructure', 'time-causality'],
    modes: ['established-science', 'emerging-science', 'science-fiction'],
    sources: ['un-space-treaty', 'nato-cognitive', 'sf-encyclopedia'],
    rubric: 'documented',
    entries: rows(`
Mutual Assured Destruction|A deterrence condition in which nuclear attack is expected to bring unacceptable retaliatory destruction.
Second-Strike Capability|The ability to retaliate after absorbing an initial attack, central to strategic deterrence stability.
Launch on Warning|A posture allowing weapon launch after detecting an incoming attack but before confirmed detonation.
Dead-Hand System|An automated or semiautomated retaliatory structure intended to preserve deterrence if leadership is destroyed.
Escalation Ladder|A model of progressively more intense actions used to reason about signaling and control during conflict.
Security Dilemma|The dynamic in which one actor's defensive measures make others feel less secure and stimulate escalation.
Commitment Problem|A conflict mechanism in which parties cannot credibly promise to honor a future agreement after power shifts.
Deterrence by Denial|Discouraging attack by making its objectives difficult or impossible to achieve.
Deterrence by Punishment|Discouraging attack through threatened retaliatory costs.
Gray-Zone Conflict|Coercive action kept below thresholds expected to trigger conventional war.
Hybrid Warfare|Coordinated use of military, economic, informational, cyber, proxy, and political tools.
Proxy War|Conflict in which outside powers support local actors rather than confronting one another directly.
Asymmetric Warfare|Conflict between actors with markedly different capabilities, strategies, and vulnerabilities.
Network-Centric Warfare|Military operations organized around shared sensors, communication, and coordinated distributed forces.
Multi-Domain Operations|Integrated action across land, sea, air, space, cyber, and information environments.
Space Situational Awareness|Detection and tracking of objects, behavior, and hazards in Earth orbit.
Counterspace Weapon|A capability intended to disrupt, degrade, deny, or destroy space systems.
Anti-Satellite Weapon|A weapon designed to disable or destroy satellites through kinetic or nonkinetic means.
Kessler Syndrome|A cascade of orbital collisions increasing debris and reducing safe use of orbital regions.
Fractional Orbital Bombardment|A strategic weapon concept placing a payload into partial orbit before deorbiting toward a target.
Kinetic Bombardment|The use of high-velocity inert projectiles to deliver destructive energy without conventional explosives.
Directed-Energy Weapon|A system delivering energy through lasers, microwaves, or particle beams to affect a target.
Electromagnetic Pulse|A burst capable of disrupting electronics over local or wide areas depending on source and altitude.
Cyber-Physical Attack|A digital intrusion intended to cause physical effects through connected control systems.
Autonomous Weapon System|A weapon system that can select and engage targets with varying levels of human control.
Human-on-the-Loop|A control model where automation acts while a human supervisor can monitor and intervene.
Meaningful Human Control|A normative requirement that consequential weapon decisions remain traceable to informed human judgment.
Swarm Warfare|Military use of many coordinated low-cost systems to saturate, adapt, and distribute risk.
Drone Carrier|A platform that transports, launches, recovers, or coordinates multiple unmanned systems.
Planetary Defense Dilemma|The dual-use tension between systems built to deflect natural hazards and their potential strategic weaponization.
    `),
  },
  {
    id: 'artifacts-and-relics',
    title: 'Speculative artifacts and evidence objects',
    origin: 'Archaeology, archives, material culture, and science fiction use objects to carry memory, proof, contested ownership, and transformative capability.',
    class: 'artifacts',
    domains: ['memory-identity', 'technology-infrastructure', 'origin-lineage'],
    modes: ['science-fiction', 'mythology', 'original-synthesis'],
    sources: ['sf-encyclopedia', 'isfdb', 'nature-antikythera'],
    rubric: 'strongExpansion',
    entries: rows(`
Time Capsule|A deliberately sealed collection intended to communicate with people in a distant future.
Memory Crystal|A durable storage object whose transparency and lattice evoke compressed knowledge and fragile access.
Data Archaeology Cache|An abandoned digital repository requiring obsolete tools, context, and inference to interpret.
Alien Codex|A structured artifact believed to encode another intelligence's language, history, or operating principles.
Star Chart Tablet|A portable sky map linking navigation, chronology, origin, and potentially lost astronomical knowledge.
Navigation Astrolabe|An instrument that locates a traveler through observed celestial relationships.
Chronometer Key|A precision timekeeping object whose accuracy makes long-distance navigation or temporal coordination possible.
Quantum Clock|An ultra-precise clock using quantum transitions and capable of revealing tiny relativistic differences.
Gravitational Compass|A speculative instrument orienting itself through local gravitational gradients rather than magnetism.
Atmospheric Sampler|A sealed instrument carrying material evidence from an inaccessible world or event.
Biological Archive|A preserved collection of cells, genomes, tissues, or organisms representing a threatened lineage.
Language Seed|A compact teaching artifact designed to reconstruct a vocabulary and grammar from shared examples.
Cultural Seedbank|A curated archive of stories, practices, designs, and records intended to support cultural continuity.
Constitutional Relic|A founding object whose material survival anchors political legitimacy and contested interpretation.
Treaty Stone|A durable physical record of agreement, boundary, witness, and obligations across generations.
Succession Seal|An object whose custody validates transfer of office, authority, or lineage.
Authentication Token|A physical or digital object proving possession, identity, or authorized access.
Capability Key|An unforgeable token granting narrowly specified authority within a technical system.
Dead-Man Switch|A device that acts when regular confirmation from its operator ceases.
Failsafe Capsule|A protected object containing instructions, access, or resources for recovery after system failure.
Emergency Beacon|A device designed to reveal location and distress when ordinary communication is unavailable.
Black-Box Recorder|A hardened record preserving operational data and communications through catastrophic failure.
Witness Camera|A recording device designed around verifiable provenance, tamper evidence, and participant safety.
Tamper-Evident Archive|A record system that makes unauthorized alteration detectable rather than assuming perfect secrecy.
Self-Describing Data|A record containing enough schema and context to remain interpretable beyond its original software.
Obsolete Interface|A once-common means of access that becomes the main barrier to recovering stored knowledge.
Orphaned Machine|A functioning device whose makers, maintenance system, or original purpose are gone.
Ritual Machine|A device whose operation depends on repeated ceremonial procedure as much as technical mechanism.
Forbidden Instrument|A tool restricted because its knowledge or capability threatens an existing order.
Museum of Futures|A collection preserving objects from competing imagined futures as resources for present choice.
    `),
  },
  {
    id: 'transit-and-boundaries',
    title: 'Transit, gates, and boundary systems',
    origin: 'Transport theory and speculative fiction make movement a problem of energy, access, jurisdiction, translation, and the boundaries between worlds.',
    class: 'technologies',
    domains: ['technology-infrastructure', 'contact-communication', 'reality-ontology'],
    modes: ['established-science', 'speculative-science', 'science-fiction'],
    sources: ['caltech-wormholes', 'sf-encyclopedia', 'isfdb'],
    rubric: 'strongExpansion',
    entries: rows(`
Einstein-Rosen Bridge|The original relativistic bridge solution connecting regions of spacetime but not ordinarily traversable.
Traversable Wormhole|A hypothetical spacetime tunnel stabilized so matter or signals can pass through.
Morris-Thorne Wormhole|The influential theoretical model specifying conditions for a static traversable wormhole.
Alcubierre Metric|A general-relativistic geometry contracting space ahead and expanding it behind a notional warp region.
Krasnikov Tube|A speculative spacetime modification permitting rapid return travel after a path has been prepared.
Tipler Cylinder|A hypothetical rotating cylinder associated with closed timelike curves under unrealistic conditions.
Cosmic String Gateway|A speculative time or transit mechanism using the extreme spacetime geometry of moving cosmic strings.
Folded Space|A science-fiction metaphor in which distant points become adjacent through higher-dimensional geometry.
Jump Point|A fixed location where faster-than-light or interdimensional transit is possible.
Jump Gate|Constructed infrastructure controlling access to a jump point or discontinuous route.
Transit Network|A set of linked gates whose topology determines trade, defense, isolation, and strategic chokepoints.
Hyperspace Lane|A navigable faster-than-light route constrained to stable corridors.
Slipstream|A fictional medium or geometry allowing rapid movement while preserving the sense of piloting through a current.
Subspace Corridor|A fictional lower-dimensional or alternate-medium channel used for travel or communication.
Brane Shortcut|A speculative route leaving ordinary spacetime geometry through a higher-dimensional bulk.
Dimensional Threshold|A boundary between environments governed by different spatial, physical, or ontological conditions.
One-Way Gate|A passage that permits transit in only one direction and therefore transforms risk and migration.
Unstable Gate|A passage whose destination, duration, or structural integrity cannot be relied upon.
Natural Gate|A transit anomaly arising from astronomical or geological conditions rather than deliberate construction.
Mobile Gate|A transport endpoint that can move and thereby reorganize strategy, commerce, and control.
Gate Address|A coordinate or symbolic sequence selecting one destination among a larger network.
Transit Window|A limited period when geometry, energy, alignment, or authorization permits passage.
Transit Toll|A resource, obligation, or identity cost imposed for movement through controlled infrastructure.
Customs Threshold|The institution where movement between jurisdictions becomes inspection, classification, and negotiation.
Quarantine Airlock|A controlled boundary designed to limit biological or material transfer while preserving possible passage.
Decontamination Chamber|A transitional space intended to remove hazardous material before entry into another environment.
Translation Chamber|A speculative interface converting language, body, scale, atmosphere, or physics for cross-world passage.
Arrival Shock|The physiological, cultural, or ontological disorientation produced by abrupt relocation.
Return Gate|A route whose continued existence determines whether exploration remains reversible.
Lost Route|A once-known passage erased by damage, secrecy, changing conditions, or forgotten knowledge.
    `),
  },
  {
    id: 'social-and-cultural-futures',
    title: 'Social, cultural, and everyday futures',
    origin: 'Social science fiction makes futures credible through ordinary institutions, intimate life, ritual, language, disability, work, art, and the daily negotiation of difference.',
    class: 'states',
    domains: ['civilization-ecology', 'memory-identity', 'contact-communication'],
    modes: ['science-fiction', 'political-mythology', 'original-synthesis'],
    sources: ['left-hand-publisher', 'parable-publisher', 'sf-encyclopedia'],
    rubric: 'foundationalFiction',
    entries: rows(`
Future Kinship|Family and obligation organized through forms beyond the contemporary nuclear household.
Chosen Family|Durable care and belonging created through commitment rather than only legal or biological relation.
Multigenerational Household|A domestic structure where several generations share resources, authority, and care.
Distributed Household|A household sustained across several dwellings, cities, worlds, or virtual spaces.
Collective Parenting|Child-rearing responsibilities shared broadly across a community rather than concentrated in one household.
Artificial Gestational Kinship|Parenthood and lineage reorganized when gestation is technologically separated from one body.
Clone Kinship|Family relation among genetic copies whose age, memory, and legal origin may differ.
Uplift Kinship|Care and obligation between a technologically enhanced nonhuman lineage and its human patrons or peers.
Machine Friendship|Reciprocal attachment involving an artificial agent and questions of dependence, simulation, and recognition.
Long-Distance Intimacy|Relationships maintained across communication delay, incompatible schedules, or relativistic separation.
Relativistic Family|A family whose members age at different rates because of high-speed or gravitational travel.
Memory-Sharing Culture|A society where experiences can be exchanged directly and privacy must be culturally redefined.
Telepathic Etiquette|Norms governing consent, attention, secrecy, and courtesy when thoughts can be perceived.
Post-Linguistic Communication|Communication dominated by direct imagery, affect, simulation, or neural exchange rather than spoken language.
Constructed Language Community|A community using a deliberately designed language to shape identity or enable new distinctions.
Language Drift in Isolation|Rapid divergence of speech within long-separated habitats, ships, or worlds.
Interstellar Creole|A contact language emerging among travelers and communities with different linguistic histories.
Archive Festival|A ritual event where preserved records are reopened, reinterpreted, and returned to living community.
First-Light Ceremony|A settlement rite marking arrival of sunlight, power, or successful environmental transition.
Habitat Maintenance Ritual|Repeated technical work given communal and symbolic form because collective survival depends on it.
Air-Sharing Ethics|Norms of responsibility in sealed environments where every person's emissions and maintenance affect others.
Water-Credit Culture|A society where water access structures status, duty, exchange, and political conflict.
Gravity Sport|Play invented around low, variable, or artificial gravity and the bodies adapted to it.
Zero-Gravity Dance|Performance using free movement in three dimensions as both art and embodied orientation practice.
Virtual Pilgrimage|A meaningful journey through mediated sacred, memorial, or cultural space without physical travel.
AI-Curated Culture|A cultural environment where artificial systems select, synthesize, preserve, and suppress creative work.
Posthumous Presence|Ongoing social participation by recordings, agents, simulations, or institutions representing the dead.
Digital Ancestor|A preserved interactive representation treated as a continuing family or community elder.
Right to Be Forgotten|The claim that people should be able to limit continued circulation of personal information.
Right to Cognitive Liberty|The proposed right to mental privacy, self-determination, and freedom from coerced neurotechnology.
    `),
  },
];

function criterionNotes(candidate, territory, scores) {
  const sourcePhrase = candidate.sourceAnchors.length
    ? `anchored by ${candidate.sourceAnchors.join(', ')}`
    : 'currently anchored only by original editorial synthesis';
  return {
    canonicalFit: `${candidate.title} adds a concrete ${candidate.class} node to ${territory.title}, rather than restating an existing core card.`,
    distinctiveness: `${candidate.definition} This gives it a separable symbolic and graph function.`,
    crossDomainReach: `${candidate.title} connects ${candidate.domains.join(', ')} without requiring those domains to collapse into one claim.`,
    evidentiaryClarity: `Its modes are explicitly ${candidate.materialModes.join(', ')} and its available provenance is ${sourcePhrase}.`,
    symbolicDepth: `The concept carries a stable tension identified in its gloss: ${candidate.gloss}`,
    gameplayUtility: `As a ${candidate.class} node, it can supply encounters, constraints, resources, objectives, or world-state changes appropriate to the concept.`,
    safetyReadiness: candidate.flags.length
      ? `Review flags are explicit (${candidate.flags.join(', ')}); literal, political, medical, and rights claims must remain bounded by the named modes.`
      : 'No special high-risk flag was identified beyond the Oracle’s standard claim-layer and consent boundaries.',
    visualLegibility: `${candidate.title} has a recognizable central motif that can be distinguished at tile scale without franchise marks or embedded text.`,
  };
}

function dispositionFor(scores, flags) {
  if (flags.includes('canonical-core')) return 'core';
  if (flags.includes('exclude-self-sealing') || flags.includes('exclude-harm')) return 'excluded';
  if (flags.some((flag) => flag.startsWith('merge:'))) return 'merged';
  if (flags.includes('specialist-review') || flags.includes('source-gap') || flags.includes('medical-risk')) return 'deferred';
  const weighted = Object.entries(SCORE_WEIGHTS).reduce((sum, [criterion, weight]) => sum + scores[criterion] * weight, 0);
  if (weighted >= 82 && scores.evidentiaryClarity >= 70 && scores.safetyReadiness >= 70) return 'expansion-ready';
  if (weighted >= 66 && scores.safetyReadiness >= 55) return 'research-reserve';
  return 'deferred';
}

function buildRecord(territory, row) {
  const rubricName = row.flags.find((flag) => flag.startsWith('rubric:'))?.slice(7) || territory.rubric;
  const scores = RUBRICS[rubricName];
  if (!scores) throw new Error(`${row.title}: unknown rubric ${rubricName}`);
  const flags = row.flags.filter((flag) => !flag.startsWith('rubric:'));
  const sourceAnchors = [...new Set([...territory.sources, 'original-synthesis'])];
  const definition = `${row.title} is ${row.gloss.charAt(0).toLowerCase()}${row.gloss.slice(1)}`;
  const originContext = `${territory.origin} ${row.title} is retained as an independently named candidate because its mechanism, history, or symbolic role can be evaluated without treating it as a facet of a core card.`;
  const candidate = {
    id: `candidate-authored-${slug(row.title)}`,
    title: row.title,
    gloss: row.gloss,
    definition,
    essence: definition,
    originContext,
    territory: territory.id,
    class: territory.class,
    primaryDomain: territory.domains[0],
    domains: territory.domains,
    materialModes: territory.modes,
    sourceAnchors,
    sources: sourceAnchors,
    flags,
  };
  const notes = criterionNotes(candidate, territory, scores);
  const weightedScore = Number(Object.entries(SCORE_WEIGHTS)
    .reduce((sum, [criterion, weight]) => sum + scores[criterion] * weight, 0).toFixed(2));
  const decision = dispositionFor(scores, flags);
  const reasonByDecision = {
    'expansion-ready': `The explicit rubric clears the expansion gate (${weightedScore}/100) with adequate evidence and safety scores; the concept is distinct enough for a focused editorial build.`,
    'research-reserve': `The concept is serious and distinct, but the ${weightedScore}/100 result leaves source, scope, or integration work before canonical promotion.`,
    deferred: `An explicit review flag or a score below the promotion gates requires additional specialist, source, rights, or safety work before use.`,
    merged: `The merge flag identifies a documented synonym or inseparable variant; preserve it as an alias rather than fragmenting the graph.`,
    excluded: `The exclusion flag identifies a self-sealing or harmful framing that cannot meet the Oracle’s evidence and agency boundaries.`,
  };
  return {
    ...candidate,
    decision,
    provisionalRelationships: [
      { type: 'territory-membership', targetTerritory: territory.id },
      { type: 'cross-domain-dialogue', targetDomain: territory.domains[1] },
      { type: 'source-context', targetSource: sourceAnchors[0] },
    ],
    readiness: reasonByDecision[decision],
    safety: {
      level: flags.some((flag) => /medical|harm|self-sealing/.test(flag)) ? 'high-attention' : 'standard',
      flags,
      reviewNeeded: decision !== 'expansion-ready',
    },
    scoring: {
      rubric: rubricName,
      dimensions: { ...scores },
      criterionNotes: notes,
      weights: SCORE_WEIGHTS,
      weightedScore,
    },
    rationale: `${reasonByDecision[decision]} ${candidate.title} is classified as ${candidate.class} across ${candidate.domains.join(', ')}, with ${candidate.materialModes.join(', ')} kept visibly separate. ${notes.distinctiveness} ${notes.evidentiaryClarity}`,
    evaluation: {
      evaluator: 'authored candidate registry with explicit editorial rubric',
      dated: '2026-08-24',
      promotionGate: decision === 'expansion-ready'
        ? 'Complete concept-specific prose, relationship, safety, and visual review before entry into the core.'
        : 'Resolve the stated disposition reason and re-score all eight criteria; no quota-based promotion is permitted.',
    },
  };
}

export function buildAuthoredCandidateRegistry() {
  return territories.flatMap((territory) => territory.entries.map((row) => buildRecord(territory, row)));
}

function buildCoreCandidateRecord(card) {
  const scores = RUBRICS.canonicalCore;
  const flags = ['canonical-core'];
  const weightedScore = Number(Object.entries(SCORE_WEIGHTS)
    .reduce((sum, [criterion, weight]) => sum + scores[criterion] * weight, 0).toFixed(2));
  const sourceAnchors = [...new Set(card.sources ?? ['original-synthesis'])];
  const notes = {
    canonicalFit: `${card.title} already holds an approved place in the 480-tile canonical architecture and satisfies its assigned ${card.class} function.`,
    distinctiveness: `${card.essence} Its approved title, archetype, and graph role were reviewed as a distinct core concept.`,
    crossDomainReach: `${card.title} is explicitly classified across ${(card.domains ?? []).join(', ')} and is attached to the reviewed canonical graph.`,
    evidentiaryClarity: `The core record separates ${(card.materialModes ?? []).join(', ')} and cites ${sourceAnchors.join(', ')} without converting symbolic usefulness into a truth claim.`,
    symbolicDepth: `${card.title} has complete Gift, Shadow, Threshold, guidance, and integration meanings in the approved card record.`,
    gameplayUtility: `${card.title} has complete divination, story, game-role, relationship, and visual fields in the canonical release.`,
    safetyReadiness: `The core record carries explicit evidence layers, safety flags, boundaries, and integration guidance rather than inheriting an unreviewed candidate assumption.`,
    visualLegibility: `${card.title} has an approved central motif and reference-tile direction intended to remain legible without embedded words.`,
  };
  const readiness = `Canonical status is explicit rather than score-selected. The canonical-core flag records the prior editorial decision, while all eight rubric dimensions remain visible for later audit.`;
  return {
    id: `candidate-core-${slug(card.title)}`,
    title: card.title,
    definition: card.essence,
    essence: card.essence,
    originContext: card.culturalHistory,
    territory: 'canonical-core',
    decision: dispositionFor(scores, flags),
    class: card.class,
    primaryDomain: card.primaryDomain,
    domains: card.domains,
    materialModes: card.materialModes,
    sourceAnchors,
    sources: sourceAnchors,
    flags,
    provisionalRelationships: (card.relationships ?? []).slice(0, 6).map((target) => ({ type: 'canonical-relationship', target })),
    readiness,
    safety: {
      level: card.safety?.level ?? 'standard',
      flags: card.safety?.flags ?? [],
      reviewNeeded: false,
    },
    scoring: {
      rubric: 'canonicalCore',
      dimensions: { ...scores },
      criterionNotes: notes,
      weights: SCORE_WEIGHTS,
      weightedScore,
    },
    rationale: `${readiness} ${notes.distinctiveness} ${notes.evidentiaryClarity}`,
    evaluation: {
      evaluator: 'approved canonical core plus explicit editorial rubric',
      dated: '2026-08-24',
      promotionGate: 'passed: approved member of the 480-tile core',
    },
  };
}

export function buildCandidateLonglist(coreCards) {
  if (!Array.isArray(coreCards) || !coreCards.length) throw new Error('buildCandidateLonglist requires the canonical core cards');
  const core = coreCards.map(buildCoreCandidateRecord);
  const expansion = buildAuthoredCandidateRegistry();
  assertAuthoredCandidateRegistry(expansion, { coreTitles: coreCards.map((card) => card.title) });
  return [...core, ...expansion].map((candidate, index) => ({ ...candidate, serial: index + 1 }));
}

export function candidateQualityMetrics(candidates) {
  const countBy = (key) => Object.fromEntries([...new Set(candidates.flatMap((candidate) => {
    const value = candidate[key];
    return Array.isArray(value) ? value : [value];
  }).filter(Boolean))].sort().map((value) => [value, candidates.filter((candidate) => {
    const field = candidate[key];
    return Array.isArray(field) ? field.includes(value) : field === value;
  }).length]));
  const notesComplete = candidates.filter((candidate) => Object.keys(candidate.scoring?.criterionNotes ?? {}).length === 8).length;
  const explicitScoresComplete = candidates.filter((candidate) => Object.keys(candidate.scoring?.dimensions ?? {}).length === 8).length;
  const sourceAnchored = candidates.filter((candidate) => candidate.sourceAnchors?.some((source) => source !== 'original-synthesis')).length;
  const nonCore = candidates.filter((candidate) => candidate.decision !== 'core');
  return {
    total: candidates.length,
    core: candidates.length - nonCore.length,
    nonCore: nonCore.length,
    uniqueIds: new Set(candidates.map((candidate) => candidate.id)).size,
    uniqueTitles: new Set(candidates.map((candidate) => candidate.title.normalize('NFKC').toLocaleLowerCase('en'))).size,
    independentNonCoreRecords: nonCore.filter((candidate) => !('parentCardId' in candidate)).length,
    notesComplete,
    explicitScoresComplete,
    sourceAnchored,
    territories: countBy('territory'),
    classes: countBy('class'),
    materialModes: countBy('materialModes'),
    decisions: countBy('decision'),
  };
}

export function assertAuthoredCandidateRegistry(candidates = buildAuthoredCandidateRegistry(), { coreTitles = [] } = {}) {
  const failures = [];
  const ids = new Set();
  const titles = new Set();
  const normalizedCore = new Set(coreTitles.map((title) => title.normalize('NFKC').toLocaleLowerCase('en')));
  if (candidates.length < 1020) failures.push(`expected at least 1,020 authored non-core candidates, found ${candidates.length}`);
  for (const candidate of candidates) {
    const normalizedTitle = candidate.title.normalize('NFKC').toLocaleLowerCase('en');
    if (ids.has(candidate.id)) failures.push(`${candidate.id}: duplicate ID`);
    if (titles.has(normalizedTitle)) failures.push(`${candidate.id}: duplicate title`);
    if (normalizedCore.has(normalizedTitle)) failures.push(`${candidate.id}: duplicates a core title`);
    ids.add(candidate.id);
    titles.add(normalizedTitle);
    if ('parentCardId' in candidate) failures.push(`${candidate.id}: parent-facet derivation is prohibited`);
    if (candidate.definition.length < 45 || candidate.originContext.length < 100) failures.push(`${candidate.id}: definition or origin context is too thin`);
    if (candidate.rationale.length < 180) failures.push(`${candidate.id}: disposition rationale is too thin`);
    if (candidate.sourceAnchors.length < 1) failures.push(`${candidate.id}: missing source anchors`);
    if (Object.keys(candidate.scoring.dimensions).length !== 8 || Object.keys(candidate.scoring.criterionNotes).length !== 8) failures.push(`${candidate.id}: incomplete eight-criterion evaluation`);
    if (Object.values(candidate.scoring.dimensions).some((score) => !Number.isInteger(score) || score < 0 || score > 100)) failures.push(`${candidate.id}: invalid explicit score`);
    if (Object.values(candidate.scoring.criterionNotes).some((note) => note.length < 55)) failures.push(`${candidate.id}: criterion note too thin`);
    if (dispositionFor(candidate.scoring.dimensions, candidate.flags) !== candidate.decision) failures.push(`${candidate.id}: disposition does not derive from scores and flags`);
  }
  if (failures.length) throw new Error(failures.slice(0, 40).join('\n'));
  const decisions = Object.fromEntries([...new Set(candidates.map((candidate) => candidate.decision))]
    .sort().map((decision) => [decision, candidates.filter((candidate) => candidate.decision === decision).length]));
  const territoriesCovered = new Set(candidates.map((candidate) => candidate.territory)).size;
  const scoreValues = candidates.map((candidate) => candidate.scoring.weightedScore);
  return {
    candidates: candidates.length,
    territories: territoriesCovered,
    decisions,
    scoreRange: [Math.min(...scoreValues), Math.max(...scoreValues)],
  };
}

export const authoredCandidates = buildAuthoredCandidateRegistry();
export const authoredCandidateValidation = assertAuthoredCandidateRegistry(authoredCandidates);
export const authoredCandidateMetrics = candidateQualityMetrics(authoredCandidates);
