code wiki / _hdl_build / nx_vizsla_log.nx

nx_vizsla_log.nx

buildroot/runtime/_hdl_build/nx_vizsla_log.nx

14003 B347 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tooltopic vizsla
docsdependenciesstructsconstsfunctions

about

nx_vizsla_log.nx -- NISHI VIZSLA: TYPED INTERACTIONS + TIMELINE (PRM/CRM depth b,c). Operator 2026-06-23: real-system depth. A real interaction is not one generic "touch" -- it has a TYPE (call/meeting/email/note/ text/coffee/intro/gift...) and CONTENT. This stores typed interactions as ADDITIVE CID records on the sovereign seg_store plane and renders a full chronological per-contact TIMELINE (newest-first). Type is data (any label). Foundation for typed-weighted health + reporting. Computed locally; tamper-evident; idempotent. load <logfile> <prefix> [segid] INT <date> <contact> <type> <note...> -> "int:" records timeline <prefix> <contact> that contact's interactions newest-first + first/last/count verdict The note is the REST OF THE LINE (multi-word content preserved). Determinism: no clocks in stdout. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_canon_cid.nx nx_seg_store.nx nx_vizsla_log.nx

imports: nx_syscalls.nxnx_canon_cid.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 vl_p sys_write vl_slen vl_eq vl_cmd_load vl_p ↻ vl_atoi sys_now_us sys_mmap sys_clock_gettime_mono sys_mmap ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_begin ss_begin_cap sys_mmap ↻ vl_tok vl_isws vl_eq ↻ vl_restline vl_isws ↻ vl_datedays sys_mmap ↻ vl_put sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap cid_of sys_mmap ↻ sha256_digest sys_mmap ↻

structs

none

consts

13const K_MAGIC_1970: i64 = 1970
14const K_MAGIC_146097: i64 = 146097
15const K_MAGIC_719468: i64 = 719468
16const K_MAGIC_4096: i64 = 4096
17const K_MAGIC_1024: i64 = 1024
18const K_MAGIC_2048: i64 = 2048
19const K_MAGIC_131072: i64 = 131072

functions

21func vl_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
22func vl_p(s: *u8) -> i64 { sys_write(1, s, vl_slen(s)); return 0 }
24func vl_eq(a: *u8, b: *u8) -> i64
31func vl_dup(s: *u8) -> *u8
39func vl_atoi(s: *u8) -> i64
called by 1: vl_cmd_load
46func vl_isws(c: i64) -> i64 { if c == 32 { return 1 } if c == 13 { return 1 } if c == 9 { return 1 } return 0 }
called by 2: vl_tokvl_restline
48func vl_tok(b: *u8, off: i64, lend: i64, dst: *u8, cap: i64) -> i64
called by 1: vl_cmd_load calls 1: vl_isws
64func vl_restline(b: *u8, p: i64, e: i64, dst: *u8, cap: i64) -> i64
called by 1: vl_cmd_load calls 1: vl_isws
74func vl_cat(dst: *u8, off: i64, s: *u8) -> i64
80func vl_catn(dst: *u8, off: i64, v: i64) -> i64
called by 2: vl_cmd_loadvl_cmd_timeline calls 1: sys_mmap
93func vl_kmemeq(b: *u8, off: i64, n: i64, s: *u8) -> i64
called by 2: vl_iskindvl_field calls 1: vl_slen
100func vl_iskind(b: *u8, koff: i64, kl: i64, pfx: *u8) -> i64
called by 1: vl_cmd_timeline calls 2: vl_slenvl_kmemeq
106func vl_field(rec: *u8, rl: i64, want: *u8, out: *u8, cap: i64) -> i64
called by 1: vl_cmd_timeline calls 2: ss_r32vl_kmemeq
130func vl_datedays(s: *u8) -> i64
called by 2: vl_cmd_loadvl_cmd_timeline calls 1: sys_mmap
165func vl_put(keys: *i64, vals: *i64, nf: i64, kp: *u8, st: *i64) -> i64
188func vl_cmd_load(argc: i64, argv: *i64) -> i64
252func vl_cmd_timeline(argc: i64, argv: *i64) -> i64
340func main(argc: i64, argv: *i64) -> i64