nx_char_verify.nx
buildroot/runtime/nx_char_verify.nx
about
nx_char_verify.nx -- sovereign recursive grep over the Elder AI platform tree to VERIFY the real character
appearance (operator: "Elara is a blonde, doublecheck"). Reuses the nx_explore getdents64 walk pattern, but
rooted at the platform tree and scanning readable/db files (not just .nx) for the character's hair/appearance.
Prints path + each matching line so the REAL DNA is read, not assumed. Root + queries baked (nx_sov_build_run
does not forward args). Zero egress, sovereign. license_tier: ORIGINAL expect_exit: 0
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
| 7 | const CV_MAGIC_65536: i64 = 65536 |
| 8 | const CV_MAGIC_2048: i64 = 2048 |
| 10 | const CV_ROOT: *u8 = "/mnt/c/Users/elder/elder-ai-platform" as *u8 |
| 11 | const CV_FBUF: i64 = 4194304 |
| 12 | const CV_MAXDEPTH: i64 = 16 |
| 13 | const CV_MAXLINES: i64 = 8 // print at most this many matching lines per file |
functions
| 15 | func cv_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 16 | func cv_puts(s: *u8) -> i64 { sys_write(1, s, cv_strlen(s)); return 0 } |
| 17 | func cv_find(buf: *u8, lo: i64, hi: i64, pat: *u8, pl: i64) -> i64 called by 1: cv_scan |
| 23 | func cv_is_dot(name: *u8) -> i64 { if name[0]==(46 as u8){ if name[1]==(0 as u8){return 1} if name[1]==(46 as u8){ if name[2]==(0 as u8){return 1} } } return 0 } called by 1: cv_walk |
| 24 | func cv_join(dirpath: *u8, name: *u8, out: *u8) -> i64 { var p: i64=0; var a: i64=0; while dirpath[a]!=(0 as u8){out[p]=dirpath[a];p=p+1;a=a+1} out[p]=47 as u8; p=p+1; var b: i64=0; while name[b]!=(0 as u8){out[p]=name[b];p=p+1;b=b+1} out[p]=0 as u8; return 0 } called by 1: cv_walk |
| 26 | func cv_ends(name: *u8, suf: *u8) -> i64 { let n: i64=cv_strlen(name); let s: i64=cv_strlen(suf); if n<s {return 0} var i: i64=0; while i<s { if name[n-s+i]!=suf[i]{return 0} i=i+1 } return 1 } |
| 28 | func cv_skip(name: *u8) -> i64 |
| 38 | func cv_scan(path: *u8, q1: *u8, l1: i64, q2: *u8, l2: i64, fbuf: *u8) -> i64 |
| 75 | func cv_walk(dirpath: *u8, q1: *u8, l1: i64, q2: *u8, l2: i64, fbuf: *u8, depth: i64) -> i64 called by 2: cv_walkmain calls 12: sys_openat_rdsys_mmapsys_getdents64dirent_reclendirent_typedirent_name+6 |
| 108 | func main() -> i64 |