code wiki / _hdl_build / nx_vizsla_report.nx
nx_vizsla_report.nx
buildroot/runtime/_hdl_build/nx_vizsla_report.nx
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
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
structs
| none |
consts
| 14 | const K_MAGIC_1970: i64 = 1970 |
| 15 | const K_MAGIC_146097: i64 = 146097 |
| 16 | const K_MAGIC_719468: i64 = 719468 |
| 17 | const K_MAGIC_9000000: i64 = 9000000 |
| 18 | const K_MAGIC_131072: i64 = 131072 |
functions
| 20 | func vr_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 21 | func vr_p(s: *u8) -> i64 { sys_write(1, s, vr_slen(s)); return 0 } |
| 23 | func vr_eq(a: *u8, b: *u8) -> i64 |
| 30 | func vr_dup(s: *u8) -> *u8 |
| 38 | func vr_atoi(s: *u8) -> i64 called by 1: main |
| 45 | func vr_cat(dst: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 51 | func vr_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 64 | func vr_kmemeq(b: *u8, off: i64, n: i64, s: *u8) -> i64 |
| 71 | func vr_iskind(b: *u8, koff: i64, kl: i64, pfx: *u8) -> i64 |
| 77 | func vr_field(rec: *u8, rl: i64, want: *u8, out: *u8, cap: i64) -> i64 |
| 101 | func vr_datedays(s: *u8) -> i64 |
| 137 | func vr_bump(names: *i64, cnts: *i64, np: *i64, s: *u8) -> i64 |
| 145 | func vr_sort(names: *i64, cnts: *i64, n: i64) -> i64 called by 1: main |
| 161 | func vr_record(dnum: i64, today: i64, window: i64, fdt: *u8, st: *i64, fmin: *i64, fmax: *i64) -> i64 |
| 172 | func main(argc: i64, argv: *i64) -> i64 |