code wiki / _hdl_build / nx_vizsla_realm.nx
nx_vizsla_realm.nx
buildroot/runtime/_hdl_build/nx_vizsla_realm.nx
about
nx_vizsla_realm.nx -- NISHI VIZSLA: three INTEGRATED relationship managers with SEPARATE FOCUSES. Operator
2026-06-23: "an option to add to our personal / professional / business relationship manager like a prm crm
and crm for business all integrated but with seperate focuses." One person, one engine, three focused books:
personal (PRM) -- family / close / friend ; staying-in-touch, birthdays, thank-yous
professional (RM) -- mentor / colleague / network / recruiter ; keep-warm, the career channel
business (CRM) -- lead / prospect / customer / partner ; tighter follow-up (soon_days 7)
A realm maps to the tenant-id "<person>_<realm>" (underscore is a valid tid char) so it REUSES the proven,
fully-isolated tenant engine (nx_vizsla_tenant) -- integration via the shared <person> prefix, separation via
the per-realm book + per-realm TIER focus. Sovereign: composes _offc/nx_vizsla_tenant.elf, re-implements
nothing. The tiers are DATA written at provision (refine = edit, law 11). license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 12 | const K_MAGIC_1024: i64 = 1024 |
functions
| 14 | func vz_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 15 | func vz_p(s: *u8) -> i64 { sys_write(1, s, vz_slen(s)); return 0 } |
| 17 | func vz_eq(a: *u8, b: *u8) -> i64 |
| 24 | func vz_cat(dst: *u8, off: i64, s: *u8) -> i64 |
| 30 | func vz_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 32 | func vz_writefile(path: *u8, content: *u8) -> i64 |
| 41 | func vz_tiers(realm: *u8) -> *u8 |
| 49 | func vz_tid(person: *u8, realm: *u8, out: *u8) -> i64 |
| 57 | func vz_run_tenant(cmd: *u8, base: *u8, tid: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> i64 |
| 81 | func vz_cmd_provision(base: *u8, person: *u8, realm: *u8) -> i64 |
| 95 | func main(argc: i64, argv: *i64) -> i64 |