code wiki / bin / nx_sites_intel.nx

nx_sites_intel.nx

buildroot/runtime/bin/nx_sites_intel.nx

7538 B197 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic sites
docsdependenciesstructsconstsfunctions

about

nx_sites_intel.nx -- the IMPROVE layer of the self-improving sites system. A sovereign, operator-run analyzer that reads the additive telemetry log (the SENSE layer's append-only output) and emits a structured intelligence report. It UNDERSTANDS the additive history: connection volume, success vs failure (by verdict), LAN/internet access mix, per-vhost mix, and the TLS handshake latency distribution (min/avg/max + a histogram). This is the quantified S-class scorecard -- re-run it as the log grows to track improvement over time (the additive log is the training data). PRIVACY (no-tracking cardinal): the telemetry log it reads contains NO PII -- only a coarse LAN/internet bit, timings, byte counts, and outcome codes. No IPs, no UA/Referer, no cross-session correlation. Usage: nx_sites_intel.elf (reads the hardcoded telemetry path) license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_sites_intel.nx

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ai_puts sys_write ai_slen ai_pint ai_find ai_kv ai_puts ↻ ai_putdec sys_mmap ↻ sys_write ↻

structs

none

consts

22const NX_INTEL_LOG_PATH: *u8 = "/volume1/homes/elderwesto/nishihost/sites_telemetry.log" as *u8

functions

24func ai_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 { n = n + 1 } return n }
called by 1: ai_puts
25func ai_puts(s: *u8) -> i64 { sys_write(1, s, ai_slen(s)); return 0 }
called by 2: ai_kvmain calls 2: sys_writeai_slen
27func ai_putdec(v: i64) -> i64
called by 1: ai_kv calls 2: sys_mmapsys_write
47func ai_kv(label: *u8, v: i64) -> i64 { ai_puts(label); ai_putdec(v); ai_puts("\n" as *u8); return 0 }
called by 1: main calls 2: ai_putsai_putdec
51func ai_find(buf: *u8, ls: i64, le: i64, key: *u8, klen: i64) -> i64
called by 1: main
67func ai_pint(buf: *u8, pos: i64, le: i64) -> i64
called by 1: main
84func main() -> i64