code wiki / _hdl_build / nx_link.nx
nx_link.nx
buildroot/runtime/_hdl_build/nx_link.nx
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
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
| 15 | func lk_put(prefix: *u8, key: *u8, val: *u8) -> i64 |
| 26 | func 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 } |
| 27 | func lk_register(prefix: *u8, canonical: *u8, display: *u8, bio_id: *u8, impact_item: *u8, price_item: *u8, swap_species: *u8) -> i64 |
| 37 | func lk_field(prefix: *u8, canonical: *u8, f: i64, out: *u8) -> i64 |
| 44 | func lk_present(facet: *u8) -> i64 |
| 51 | func 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 |