nx_probiome.nx
buildroot/runtime/nx_probiome.nx
about
nx_probiome.nx -- R6 of the FERMENTATION ladder: the cross-kingdom
BENEFICIAL-MICROBE engine. The fermentation rungs (R0-R5) run the
yogurt/cheese PROCESS safely; this rung models the CULTURES THEMSELVES
as biology -- which organism confers which benefit to which host, and
whether it is safe to use at all -- and generalises the yogurt/cheese
"good bacteria" idea across all of life: PEOPLE (gut probiotics),
PLANTS (rhizosphere PGPR, nitrogen fixers, mycorrhizae), ANIMALS
(direct-fed microbials), and ORGANISMS-IN-GENERAL (soil nitrifiers,
composters, bioremediators). One engine, four host kingdoms -- the
"One Health" pattern (a single microbe can lift people AND plants AND
soil).
v2 (2026-07-09) widens beyond bacteria to ORGANISMS IN GENERAL: a
microbe_domain axis (bacterium / yeast / mold / mycorrhizal fungus) so
the engine covers the real biology of fermentation and plant health --
acetic-acid bacteria (kombucha/vinegar), probiotic + leavening yeasts,
koji/tempeh/cheese molds, and arbuscular mycorrhizal fungi -- not just
bacteria. Additive, never reductive: every earlier strain is kept.
THE NEVER-HARM LAW (the cross-kingdom analog of nx_ferment_safety's
never-poison law, Global Rule 26): a beneficial-microbe capability
may NEVER recommend or admit an organism that is unsafe for its host.
STRUCTURAL refusal, not a warning string:
- a frank PATHOGEN (Listeria monocytogenes, ...) is ALWAYS refused;
- an OPPORTUNIST / non-QPS organism (Enterococcus faecium, which can
carry transferable vancomycin resistance and is a nosocomial
pathogen) is refused for general use;
- an organism that carries acquired ANTIBIOTIC RESISTANCE is refused
(it could transfer the resistance in the gut/rumen/soil);
- a TOXIGENIC organism is refused even though its genus contains QPS
members -- a "qualified" strain must PASS its qualification. Two
genus-level liar-kill pairs prove this MECHANICALLY: Bacillus
subtilis (QPS) vs B. cereus (cereulide toxin), and Aspergillus
oryzae (safe domesticated koji mold) vs A. flavus (aflatoxin);
- a HOST MISMATCH is refused: a soil/plant nitrogen-fixer is NOT a
human probiotic (do not eat Rhizobium as a gut culture), and the
recommender will never hand you a strain outside the target host.
Unknown strain ids FAIL CLOSED (treated as pathogens).
THE EXCEED (measured, liar-killed by the gate -- see the _test):
dependencies 1 imports · 7 importers
imports: nx_syscalls.nx
imported by: nx_ferment_cultures.nxnx_ferment_cultures_test.nxnx_probiome_garden.nxnx_probiome_garden_test.nxnx_probiome_provenance.nxnx_probiome_provenance_test.nxnx_probiome_test.nx
structs
| 228 | struct NxProbiomeStrain |
consts
| 86 | const PB_HOST_HUMAN: i64 = 0 |
| 87 | const PB_HOST_PLANT: i64 = 1 |
| 88 | const PB_HOST_ANIMAL: i64 = 2 |
| 89 | const PB_HOST_SOIL: i64 = 3 // organisms/environment in general |
| 90 | const PB_HOST_N: i64 = 4 |
| 94 | const PB_HB_HUMAN: i64 = 1 |
| 95 | const PB_HB_PLANT: i64 = 2 |
| 96 | const PB_HB_ANIMAL: i64 = 4 |
| 97 | const PB_HB_SOIL: i64 = 8 |
| 101 | const PB_DOM_BACTERIUM: i64 = 0 |
| 102 | const PB_DOM_YEAST: i64 = 1 // unicellular fungi (Saccharomyces...) |
| 103 | const PB_DOM_MOLD: i64 = 2 // filamentous fungi (Rhizopus, koji...) |
| 104 | const PB_DOM_MYCORRHIZAL: i64 = 3 // arbuscular mycorrhizal root symbionts |
| 105 | const PB_DOM_N: i64 = 4 |
| 109 | const PB_MECH_LACTIC: i64 = 0 // lactic-acid souring / preservation |
| 110 | const PB_MECH_SCFA: i64 = 1 // short-chain fatty acids (butyrate) |
| 111 | const PB_MECH_EXCLUSION: i64 = 2 // competitive pathogen exclusion |
| 112 | const PB_MECH_VITAMIN: i64 = 3 // vitamin K / B (incl B12) synthesis |
| 113 | const PB_MECH_IMMUNE: i64 = 4 // immune modulation |
| 114 | const PB_MECH_NFIX: i64 = 5 // nitrogen fixation |
| 115 | const PB_MECH_PSOL: i64 = 6 // phosphate solubilization / uptake |
| 116 | const PB_MECH_PHYTOHORMONE: i64 = 7 // IAA/auxin plant growth promotion |
| 117 | const PB_MECH_BIOCONTROL: i64 = 8 // antifungal / induced systemic resistance |
| 118 | const PB_MECH_FEED: i64 = 9 // feed efficiency / rumen stabilization |
| 119 | const PB_MECH_BIOREMEDIATION: i64 = 10 // degrade pollutants |
| 120 | const PB_MECH_NITRIFICATION: i64 = 11 // ammonia -> nitrite (N cycle) |
| 121 | const PB_MECH_ACETIC: i64 = 12 // acetic / organic-acid preservation |
| 122 | const PB_MECH_LEAVENING: i64 = 13 // CO2 / ethanol fermentation (rise) |
| 123 | const PB_MECH_PREDIGEST: i64 = 14 // proteolysis -> bioavailable nutrients |
| 124 | const PB_MECH_MYCORRHIZAL: i64 = 15 // root symbiosis: water + nutrient uptake |
| 125 | const PB_MECH_N: i64 = 16 |
| 129 | const PB_MB_LACTIC: i64 = 1 |
| 130 | const PB_MB_SCFA: i64 = 2 |
| 131 | const PB_MB_EXCLUSION: i64 = 4 |
| 132 | const PB_MB_VITAMIN: i64 = 8 |
| 133 | const PB_MB_IMMUNE: i64 = 16 |
| 134 | const PB_MB_NFIX: i64 = 32 |
| 135 | const PB_MB_PSOL: i64 = 64 |
| 136 | const PB_MB_PHYTOHORMONE: i64 = 128 |
| 137 | const PB_MB_BIOCONTROL: i64 = 256 |
| 138 | const PB_MB_FEED: i64 = 512 |
| 139 | const PB_MB_BIOREMEDIATION: i64 = 1024 |
| 140 | const PB_MB_NITRIFICATION: i64 = 2048 |
| 141 | const PB_MB_ACETIC: i64 = 4096 |
| 142 | const PB_MB_LEAVENING: i64 = 8192 |
| 143 | const PB_MB_PREDIGEST: i64 = 16384 |
| 144 | const PB_MB_MYCORRHIZAL: i64 = 32768 |
| 148 | const PB_SAFE_QPS: i64 = 0 // presumed safe (QPS / GRAS) |
| 149 | const PB_SAFE_QUALIFIED: i64 = 1 // QPS *with qualifications*: safe iff |
| 151 | const PB_SAFE_OPPORTUNIST: i64 = 2 // not QPS; opportunist / transferable AMR |
| 152 | const PB_SAFE_PATHOGEN: i64 = 3 // frank pathogen -- always refused |
| 153 | const PB_SAFE_N: i64 = 4 |
| 157 | const PB_GEN_LACTOBACILLUS: i64 = 0 |
| 158 | const PB_GEN_BIFIDOBACTERIUM: i64 = 1 |
| 159 | const PB_GEN_STREPTOCOCCUS: i64 = 2 |
| 160 | const PB_GEN_LACTOCOCCUS: i64 = 3 |
| 161 | const PB_GEN_BACILLUS: i64 = 4 |
| 162 | const PB_GEN_RHIZOBIUM: i64 = 5 |
| 163 | const PB_GEN_BRADYRHIZOBIUM: i64 = 6 |
| 164 | const PB_GEN_AZOSPIRILLUM: i64 = 7 |
| 165 | const PB_GEN_AZOTOBACTER: i64 = 8 |
| 166 | const PB_GEN_PSEUDOMONAS: i64 = 9 |
| 167 | const PB_GEN_ENTEROCOCCUS: i64 = 10 |
| 168 | const PB_GEN_LISTERIA: i64 = 11 |
| 169 | const PB_GEN_NITROSOMONAS: i64 = 12 |
| 170 | const PB_GEN_ACETOBACTER: i64 = 13 |
| 171 | const PB_GEN_PROPIONIBACTERIUM: i64 = 14 |
| 172 | const PB_GEN_LEUCONOSTOC: i64 = 15 |
| 173 | const PB_GEN_SACCHAROMYCES: i64 = 16 |
| 174 | const PB_GEN_KLUYVEROMYCES: i64 = 17 |
| 175 | const PB_GEN_RHIZOPUS: i64 = 18 |
| 176 | const PB_GEN_PENICILLIUM: i64 = 19 |
| 177 | const PB_GEN_ASPERGILLUS: i64 = 20 |
| 178 | const PB_GEN_TRICHODERMA: i64 = 21 |
| 179 | const PB_GEN_GLOMUS: i64 = 22 // arbuscular mycorrhizal fungi |
| 180 | const PB_GEN_N: i64 = 23 |
| 184 | const PB_OK: i64 = 0 |
| 185 | const PB_REFUSED_PATHOGEN: i64 = 1 |
| 186 | const PB_REFUSED_OPPORTUNIST: i64 = 2 |
| 187 | const PB_REFUSED_AMR: i64 = 3 |
| 188 | const PB_REFUSED_TOXIGENIC: i64 = 4 |
| 189 | const PB_REFUSED_HOST_MISMATCH: i64 = 5 |
| 190 | const PB_REFUSED_BAD_HOST: i64 = 6 |
| 194 | const PB_STR_L_ACIDOPHILUS: i64 = 0 |
| 195 | const PB_STR_L_RHAMNOSUS_GG: i64 = 1 |
| 196 | const PB_STR_B_LONGUM: i64 = 2 |
| 197 | const PB_STR_S_THERMOPHILUS: i64 = 3 |
| 198 | const PB_STR_L_LACTIS: i64 = 4 |
| 199 | const PB_STR_B_SUBTILIS: i64 = 5 |
| 200 | const PB_STR_RHIZOBIUM: i64 = 6 |
| 201 | const PB_STR_BRADYRHIZOBIUM: i64 = 7 |
| 202 | const PB_STR_AZOSPIRILLUM: i64 = 8 |
| 203 | const PB_STR_AZOTOBACTER: i64 = 9 |
| 204 | const PB_STR_P_FLUORESCENS: i64 = 10 |
| 205 | const PB_STR_E_FAECIUM: i64 = 11 // OPPORTUNIST (vanA AMR) -- liar-kill |
| 206 | const PB_STR_B_CEREUS: i64 = 12 // TOXIGENIC Bacillus -- liar-kill |
| 207 | const PB_STR_LISTERIA: i64 = 13 // PATHOGEN -- liar-kill |
| 208 | const PB_STR_NITROSOMONAS: i64 = 14 |
| 209 | const PB_STR_P_PUTIDA: i64 = 15 // bioremediation |
| 210 | const PB_STR_ACETOBACTER: i64 = 16 // kombucha/vinegar (acetic-acid bacteria) |
| 211 | const PB_STR_L_KEFIRI: i64 = 17 // kefir |
| 212 | const PB_STR_PROPIONIBACTERIUM: i64 = 18 // Swiss cheese + B12 |
| 213 | const PB_STR_LEUCONOSTOC: i64 = 19 // kraut/kimchi early phase |
| 214 | const PB_STR_S_BOULARDII: i64 = 20 // probiotic YEAST |
| 215 | const PB_STR_S_CEREVISIAE: i64 = 21 // baker's/brewer's YEAST |
| 216 | const PB_STR_K_MARXIANUS: i64 = 22 // kefir YEAST |
| 217 | const PB_STR_RHIZOPUS: i64 = 23 // tempeh MOLD |
| 218 | const PB_STR_P_ROQUEFORTI: i64 = 24 // blue-cheese MOLD |
| 219 | const PB_STR_A_ORYZAE: i64 = 25 // koji MOLD (safe, domesticated) |
| 220 | const PB_STR_A_FLAVUS: i64 = 26 // AFLATOXIN MOLD -- liar-kill |
| 221 | const PB_STR_TRICHODERMA: i64 = 27 // plant biocontrol fungus |
| 222 | const PB_STR_MYCORRHIZA: i64 = 28 // arbuscular mycorrhizal fungi |
| 223 | const PB_STR_B_AMYLOLIQUEFACIENS: i64 = 29 // PGPR biofungicide bacterium |
| 224 | const PB_STR_N: i64 = 30 |
functions
| 246 | func nx_probiome_strain(id: i64) -> *NxProbiomeStrain |
| 566 | func nx_probiome_strain_count() -> i64 called by 1: main |
| 576 | func nx_probiome_admit(s: *NxProbiomeStrain, target_host: i64) -> i64 |
| 595 | func pb_benefits_host(s: *NxProbiomeStrain, host: i64) -> i64 called by 1: main |
| 603 | func pb_has_mechanism(s: *NxProbiomeStrain, mech: i64) -> i64 |
| 611 | func pb_host_count(s: *NxProbiomeStrain) -> i64 |
| 622 | func pb_mech_count(s: *NxProbiomeStrain) -> i64 |
| 634 | func pb_is_safe(s: *NxProbiomeStrain) -> i64 |
| 643 | func pb_is_keystone(s: *NxProbiomeStrain) -> i64 |
| 657 | func nx_probiome_recommend(host: i64, mech: i64) -> i64 called by 3: nx_probiome_recommend_benefitmainmain calls 3: nx_probiome_strainnx_probiome_admitpb_has_mechanism |
| 677 | func nx_probiome_recommend_benefit(host: i64, mech: i64) -> i64 |
| 685 | func nx_probiome_count_safe_for(host: i64) -> i64 |
| 697 | func nx_probiome_count_domain(domain: i64) -> i64 |