code wiki / (root) / nx_ferment_invent.nx

nx_ferment_invent.nx

buildroot/runtime/nx_ferment_invent.nx

3083 B72 linesdepth 4pulls 5 transitivereach 1 importersview sourcekind librarytopic ferment
docsdependenciesstructsconstsfunctions

about

nx_ferment_invent.nx -- R5 of the FERMENTATION ladder: GENERATIVE design. "Actually create new fermentations." Given a substrate (-> ferment kind), an oxygen regime, a hold-temperature range, a time target, and a salt level, the inventor SEARCHES the design space, PREDICTS each candidate's set-time with R3 (nx_ferment_kinetics), and HARD-GATES every candidate through R0 (nx_ferment_validate, the never-poison law). It returns the fastest-setting candidate that is SAFE -- or none. The defining property: a returned recipe is SAFE BY CONSTRUCTION. No cookbook does this -- it cannot generate a NOVEL process and prove it won't poison anyone. An unsafe candidate (too-cold anaerobic that never reaches pH 4.6 in time; an under-salted vegetable ferment) is REJECTED by the same R0 gate the live process uses. Composition, not a new stack. genealogy_id: nishi_ferment_safety_r0 + nishi_ferment_kinetics_r3 + generate_and_test_synthesis

dependencies 3 imports · 1 importers

nx_syscalls.nx nx_ferment_safety.nx nx_ferment_kinetics.nx nx_ferment_invent.nx nx_ferment_invent_test.nx

imports: nx_syscalls.nxnx_ferment_safety.nxnx_ferment_kinetics.nx

imported by: nx_ferment_invent_test.nx

structs

23struct NxFermentRecipe

consts

21const K_MAGIC_999999: i64 = 999999

functions

35func nx_ferment_invent(env: *NxFermentSafetyEnvelope,