code wiki / (root) / nx_share_rec.nx

nx_share_rec.nx

buildroot/runtime/nx_share_rec.nx

4912 B105 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic share
docsdependenciesstructsconstsfunctions

about

nx_share_rec.nx -- WHAT-TO-SHARE RECOMMENDATION (sharing ring rung 2; the number-one 2025/26 sharing-frontier wave, gapmap momentum 205). Inverts SHARE-FIT: given an ITEM (a job with requirement skills), rank WHO in the graph it fits BEFORE sharing -- so a share goes where it actually grows someone, not into the void. SHARE-REC: for every person in the roster compute match_score (nx_career) -> rank by fit -> tier each as STRONG / STRETCH / SKIP. Tier thresholds are ARGUMENTS (law: no hardcoded caps) -- the caller (UI/config) owns them. Deterministic ranking (selection sort, ties keep roster order). Empty roster / empty reqs = LOUD. Composes the nx_career pure core. Argless = selftest gate. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_career.nx nx_share_rec.nx

imports: nx_career.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main p sys_write slen sr_rank p ↻ skills_parse match_score skill_find seq pn p ↻ sys_mmap sys_write ↻ sr_tier seq ↻

structs

none

consts

none

functions

11func sr_rank(reqs: *u8, names: *i64, profs: *i64, n: i64, order: *i64, scores: *i64) -> i64
called by 1: main calls 3: pskills_parsematch_score
46func sr_tier(score: i64, strong_min: i64, stretch_min: i64) -> *u8
called by 1: main
52func main() -> i64