nx_intelmine_lib.nx
buildroot/runtime/nx_intelmine_lib.nx
about
nx_intelmine_lib.nx -- THE PROPOSER: mined signals become candidate rows on the /compare board that owns them
(/compare/intelmine IM3 im_propose_rows, IM24 ic_propose). LIB. Inputs already exist as data: the review rubric over
a title's journal (nx_reviewmine_lib: defect and feature tables per tier) and the installed-mode census row (what the
title ships). knowledge/reviewmine/capability_map.conf routes each signal (kind|term) to a domain and a rung title.
Output: <outdir>/<domain>.proposed rows, APPENDED and deduped by (appid, kind, term); the proposer never writes a
board -- a seat adjudicates a proposal with the goal map, and only then does a rung land.
SIGNALS (the operator's split): DEFECT (a defect term in the does-not-meet or mixed tiers), WE-DO-BETTER (a feature
complained about at least as often as praised), DEMANDED (a feature praised but asked for more: a demand cue beside
it), THEY-DO-WELL (praised more than complained -- take it), SHIPS (an installed fingerprint: the title ships it).
Row: prop|<epoch>|<appid>|<name>|<signal>|<kind>|<term>|<domain>|<rung title>|<evidence>
license_tier: ORIGINAL
dependencies 3 imports · 2 importers
imports: nx_syscalls.nxnx_reviewmine_lib.nxnx_installed_census_lib.nx
imported by: nx_intelmine_propose.nxnx_intelmine_propose_gate.nx
structs
| none |
consts
| 17 | const IP_MAP_MAX: i64 = 1024 |
| 18 | const IP_ARENA: i64 = 262144 |
| 19 | const IP_NAME_CAP: i64 = 512 |
| 20 | const IP_ROW_CAP: i64 = 4096 |
| 21 | const IP_PATH_CAP: i64 = 1024 |
| 23 | const IP_KIND_W: i64 = 32 // one capability_map row: the kind cell |
| 24 | const IP_TERM_W: i64 = 64 // the term cell |
| 25 | const IP_DOMAIN_W: i64 = 64 // the domain cell |
| 26 | const IP_CLASS_W: i64 = 256 // one census class-label cell (labels joined by semicolons) |
| 27 | const IP_IDKEY_CAP: i64 = 64 // the |<appid>| dedupe key |
| 28 | const IP_EVIDENCE_CAP: i64 = 256 // the evidence field of one proposal row |
| 29 | const IP_F_KIND: i64 = 0 // capability_map.conf fields |
| 30 | const IP_F_TERM: i64 = 1 |
| 31 | const IP_F_DOMAIN: i64 = 2 |
| 32 | const IP_F_TITLE: i64 = 3 |
| 33 | const IP_CENSUS_F_APPID: i64 = 1 // i| census row fields |
| 34 | const IP_CENSUS_F_NAME: i64 = 2 |
| 35 | const IP_CENSUS_FIRST_CLASS_FIELD: i64 = 11 // engine sits in field 11 of an i| census row (0 = the i marker) |
| 36 | const IP_CH_SEMI: i64 = 59 |
| 37 | const IP_CH_LBRACE: i64 = 123 |
| 38 | const IP_CH_RBRACE: i64 = 125 |
| 39 | const IP_DUP_KEY_CAP: i64 = 512 |
functions
| 56 | func ip_init() -> i64 |
| 65 | func ip_lc(c: i64) -> i64 { if c >= RM_UPPER_A { if c <= RM_UPPER_Z { return c + RM_CASE_DELTA } } return c } called by 1: ip_streq_ci |
| 66 | func ip_streq_ci(a: *u8, b: *u8) -> i64 |
| 73 | func ip_field(b: *u8, s: i64, e: i64, f: i64, out: *u8, cap: i64) -> i64 |
| 90 | func ip_map_load(path: *u8) -> i64 |
| 124 | func ip_map_count() -> i64 { return ip_n } |
| 125 | func ip_map_find(kind: *u8, term: *u8) -> i64 called by 4: ip_propose_defectsip_propose_featuresip_propose_installedmain calls 2: rm_streqip_streq_ci |
| 133 | func ip_map_domain(i: i64) -> *u8 { return (ip_domain as i64 + i * IP_DOMAIN_W) as *u8 } called by 1: ip_emit |
| 135 | func ip_map_title(i: i64, title: *u8, out: *u8, cap: i64) -> i64 |
| 151 | func ip_census_load(census_path: *u8, appid: i64) -> i64 |
| 177 | func ip_census_name_get() -> *u8 { return ip_census_name } |
| 178 | func ip_census_class_get(c: i64) -> *u8 { return (ip_census_class as i64 + c * IP_CLASS_W) as *u8 } |
| 180 | func ip_emit(outdir: *u8, epoch: i64, appid: i64, name: *u8, signal: *u8, kind: *u8, term: *u8, mapi: i64, evidence: *u8) -> i64 |
| 236 | func ip_rows_written_get() -> i64 { return ip_rows_written } |
| 237 | func ip_rows_dup_get() -> i64 { return ip_rows_dup } |
| 238 | func ip_rows_unmapped_get() -> i64 { return ip_rows_unmapped } |
| 239 | func ip_counters_reset() -> i64 { ip_rows_written = 0; ip_rows_dup = 0; ip_rows_unmapped = 0; return 0 } |
| 241 | func ip_propose_defects(outdir: *u8, epoch: i64, appid: i64, name: *u8, top: i64, min_support: i64) -> i64 |
| 265 | func ip_propose_features(outdir: *u8, epoch: i64, appid: i64, name: *u8, top: i64, min_support: i64) -> i64 called by 2: mainmain calls 9: sys_mmaprm_rubric_rankrm_vocab_tokip_map_findrm_vocab_tierrm_vocab_dem+3 |
| 295 | func ip_propose_installed(outdir: *u8, epoch: i64, appid: i64, name: *u8) -> i64 |