code wiki / _hdl_build / nx_link.nx

nx_link.nx

buildroot/runtime/_hdl_build/nx_link.nx

8108 B115 linesdepth 6pulls 11 transitivereach 3 importersview sourcekind librarytopic link
docsdependenciesstructsconstsfunctions

about

nx_link.nx -- LIB: the GRAND UNIFIER (R-LINK). One canonical item resolves to ALL its facets across the separate sovereign stores and renders as ONE view: its seed-to-feed LINEAGE (bio-), its clean/impact score (food-), its cheapest local PRICE (price-), and whether a neighbour has it to SWAP (swap-). The integration surface of the whole session -- a single strawberry shows its passport + clean score + best price + swap availability, together. Composes nx_lineage/nx_impact/nx_price/nx_swap (rule 22). Honest: every facet is present-or-absent ("-" sentinel / empty lookup -> a graceful "not recorded", never a fabricated value). Sovereign seg-store (knowledge/store/link-*, NO TSV). license_tier: ORIGINAL

dependencies 6 imports · 2 importers

nx_lineage.nx nx_impact.nx nx_price.nx nx_swap.nx nx_seg_store.nx nx_syscalls.nx nx_link.nx nx_link_auto.nx nx_link_gate.nx

imports: nx_lineage.nxnx_impact.nxnx_price.nxnx_swap.nxnx_seg_store.nxnx_syscalls.nx

imported by: nx_link_auto.nxnx_link_gate.nx

structs

none

consts

none

functions

15func lk_put(prefix: *u8, key: *u8, val: *u8) -> i64
26func lk_key(canonical: *u8, out: *u8) -> i64 { var o: i64 = 0; o = as_append(out, o, "link:item:" as *u8); o = as_append(out, o, canonical); out[o] = 0 as u8; return o }
called by 2: lk_registerlk_field calls 1: as_append
27func lk_register(prefix: *u8, canonical: *u8, display: *u8, bio_id: *u8, impact_item: *u8, price_item: *u8, swap_species: *u8) -> i64
37func lk_field(prefix: *u8, canonical: *u8, f: i64, out: *u8) -> i64
44func lk_present(facet: *u8) -> i64
51func lk_render_item(link_pfx: *u8, bio_pfx: *u8, food_pfx: *u8, price_pfx: *u8, swap_pfx: *u8, canonical: *u8, area: *u8, out: *u8) -> i64