code wiki / _hdl_build / nx_vizsla_report.nx

nx_vizsla_report.nx

buildroot/runtime/_hdl_build/nx_vizsla_report.nx

10416 B270 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic vizsla
docsdependenciesstructsconstsfunctions

about

nx_vizsla_report.nx -- NISHI VIZSLA: ACTIVITY ANALYTICS / PORTFOLIO REPORTING (PRM/CRM depth e). Operator 2026-06-23: "i want our prm crm ... s class exceeds and im sure we have none of the depth of real system yet." This is the REPORTING dimension a real CRM has: roll the WHOLE typed-interaction log up into actionable analytics -- total volume, breakdown BY TYPE (call/meeting/email/...), breakdown BY CONTACT (most-active relationships), a RECENT-WINDOW count (momentum), and the date SPAN. Reads the "int:" records that nx_vizsla_log writes on the sovereign CID/seg_store plane; read-only; computed LOCALLY (no cloud, no data sale). Integer-only NO-FLOAT, deterministic (no clock in stdout). Discovers contacts/types from the data itself (single responsibility -- does not depend on the roster). activity <prefix> <today> [window_days] -> per-type + per-contact + window + span; verdict = the rollup. MODEL AS DATA: window default 30 days (refine = arg). Type/contact lists sorted by count descending. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_seg_store.nx nx_vizsla_report.nx

imports: nx_syscalls.nxnx_seg_store.nx

imported by: nobody (leaf or entry point)

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

main vr_p sys_write vr_slen vr_eq vr_datedays sys_mmap vr_atoi sys_mmap ↻ ss_manifest ss_manifest_file sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close vr_cat ss_readall ↻ ss_r32 vr_iskind vr_slen ↻ vr_kmemeq vr_slen ↻ vr_field ss_r32 ↻ vr_kmemeq ↻ vr_bump vr_eq ↻ vr_dup vr_slen ↻ sys_mmap ↻ vr_record vr_dup ↻ vr_sort vr_catn sys_mmap ↻ sys_write ↻

structs

none

consts

14const K_MAGIC_1970: i64 = 1970
15const K_MAGIC_146097: i64 = 146097
16const K_MAGIC_719468: i64 = 719468
17const K_MAGIC_9000000: i64 = 9000000
18const K_MAGIC_131072: i64 = 131072

functions

20func vr_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
21func vr_p(s: *u8) -> i64 { sys_write(1, s, vr_slen(s)); return 0 }
called by 1: main calls 2: sys_writevr_slen
23func vr_eq(a: *u8, b: *u8) -> i64
called by 2: vr_bumpmain
30func vr_dup(s: *u8) -> *u8
called by 2: vr_bumpvr_record calls 2: vr_slensys_mmap
38func vr_atoi(s: *u8) -> i64
called by 1: main
45func vr_cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
51func vr_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
64func vr_kmemeq(b: *u8, off: i64, n: i64, s: *u8) -> i64
called by 2: vr_iskindvr_field calls 1: vr_slen
71func vr_iskind(b: *u8, koff: i64, kl: i64, pfx: *u8) -> i64
called by 1: main calls 2: vr_slenvr_kmemeq
77func vr_field(rec: *u8, rl: i64, want: *u8, out: *u8, cap: i64) -> i64
called by 1: main calls 2: ss_r32vr_kmemeq
101func vr_datedays(s: *u8) -> i64
called by 1: main calls 1: sys_mmap
137func vr_bump(names: *i64, cnts: *i64, np: *i64, s: *u8) -> i64
called by 1: main calls 2: vr_eqvr_dup
145func vr_sort(names: *i64, cnts: *i64, n: i64) -> i64
called by 1: main
161func vr_record(dnum: i64, today: i64, window: i64, fdt: *u8, st: *i64, fmin: *i64, fmax: *i64) -> i64
called by 1: main calls 1: vr_dup
172func main(argc: i64, argv: *i64) -> i64