code wiki / (root) / nx_kkslider_stats.nx

nx_kkslider_stats.nx

buildroot/runtime/nx_kkslider_stats.nx

11820 B246 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_kkslider_stats.nx -- SLIDER-SEMANTICS MEASUREMENT for the card lane (2026-08-19, the re_card_to_being middle: which shapeValueBody index MEANS what). The bones cheatsheet in the KK pack grounds the SKELETON side; the slider INDEX order is not documented in any artifact we bank, so it is MEASURED instead of recalled: decode shapeValueBody from every banked card whose BepisDB metadata carries community tags (tall, petite, busty, slim...), and report the per-index value distribution of tagged vs untagged cards. An index whose tagged-mean separates from its rest-mean across a growing corpus is that tag's slider, with the evidence count printed beside it. NUMBERS, NEVER VERDICTS (an uncalibrated classifier must report numbers): this organ prints n/mean/delta per (tag, index) and the caller judges with the counts in view. Corpus shape = the bepis mirror lane: <dir>/<name>.png + <dir>/<name>.meta.json pairs. HONESTY COUNTERS: pairs_seen / kk_decoded / skipped_dialect (AIS and friends decode with other keys -- skipped, never silently zero) / decode_partial (parsed<declared stops the card's row). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_kkfacts_lib.nx nx_kkslider_stats.nx

imports: nx_syscalls.nxnx_kkfacts_lib.nx

imported by: nobody (leaf or entry point)

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

main ks_w sys_write ks_len sys_exit sys_mmap nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_openat_rd sys_getdents64 dirent_reclen dirent_name ks_len ↻ ks_cat sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close kk_probe kk_probe_marker kk_b kk_find sys_mmap ↻ nx_img_dims _be32

structs

none

consts

17const KS_MAXCARDS: i64 = 512 // corpus ceiling per run; reaching it REFUSES loudly, never truncates
18const KS_MAXTAGS: i64 = 64 // distinct tags tracked; overflow is counted and announced
19const KS_TAGLEN: i64 = 32 // one tag name slot
20const KS_NBODY: i64 = 44 // shapeValueBody carries 44 floats (measured on the benchmark card)
21const KS_MAXVALS: i64 = 256 // decode reserve, same bound the kkfacts CLI uses
22const KS_DIRBUF: i64 = 65536
23const KS_PATH: i64 = 1024
24const KS_METAEXT: *u8 = ".meta.json"
25const KS_METAEXT_LEN: i64 = 10
26const KS_NL: i64 = 10

functions

28func ks_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: ks_wks_findmain
29func ks_w(s: *u8) -> i64 { sys_write(1, s, ks_len(s)); return 0 }
called by 1: main calls 2: sys_writeks_len
30func ks_n(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
43func ks_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { d[o+i] = s[i]; i = i + 1 } d[o+i] = 0 as u8; return o + i }
called by 2: ks_has_tagmain
44func ks_find(b: *u8, start: i64, end: i64, needle: *u8) -> i64
called by 2: ks_has_tagks_collect_tags calls 1: ks_len
57func ks_has_tag(mb: *u8, mn: i64, tag: *u8) -> i64
called by 1: main calls 3: sys_mmapks_catks_find
66func ks_collect_tags(mb: *u8, mn: i64, tags: *u8, ntags: *i64) -> i64
called by 1: main calls 1: ks_find
100func main(argc: i64, argv: *i64) -> i64