code wiki / (root) / nx_probiome_provenance.nx

nx_probiome_provenance.nx

buildroot/runtime/nx_probiome_provenance.nx

5245 B90 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic probiome
docsdependenciesstructsconstsfunctions

about

nx_probiome_provenance.nx -- R6d grounding: "research not bro science". Maps each nx_probiome cite_id (1..22) to the REAL source file the Nishi researcher fetched (nx_probiome_research_fetch -> knowledge/fetched/ probiome_c<NN>_*.raw) and proves the file genuinely landed: it must be at least PG_MIN_SOURCE_BYTES, so a 404 error page (~48 KB here) can NEVER masquerade as a citation. This is the honest counterpart of the food branch's nx_food_ground_gate ("N science rules cited to real fetched sources"). Absolute paths (cwd-independent: the native-lane gate runs from bench/, the researcher wrote from nxc2/, so a relative path would diverge). genealogy_id: nishi_food_ground_gate + rule4_verified_facts_not_assumptions

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_probiome.nx nx_probiome_provenance.nx nx_probiome_provenance_test.nx

imports: nx_syscalls.nxnx_probiome.nx

imported by: nx_probiome_provenance_test.nx

structs

none

consts

20const PG_MIN_SOURCE_BYTES: i64 = 80000
21const PG_CITE_N: i64 = 22 // cite ids 1..22 are all referenced by strains

functions

25func pg_cite_path(cite: i64) -> *u8
52func pg_file_size(path: *u8) -> i64
62func pg_cite_grounded(cite: i64) -> i64
69func pg_count_grounded() -> i64
called by 1: main calls 1: pg_cite_grounded
81func pg_uncited_strains() -> i64
called by 1: main calls 1: nx_probiome_strain