code wiki / _hdl_build / nx_elara_prompt_probe.nx

nx_elara_prompt_probe.nx

buildroot/runtime/_hdl_build/nx_elara_prompt_probe.nx

5488 B84 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind probetopic elara
docsdependenciesstructsconstsfunctions

about

nx_elara_prompt_probe.nx -- GPU-FREE verification of the chat photo-prompt composition. Runs the REAL composer (go_compose_photo_prompt: trigger -> camera -> body, SHARED with the daemon) against the REAL data files, so it proves the CODE and the DATA together. Run it from /volume1/ai/gen (the daemon's cwd) -- the loaders read elara_appearance.txt / elara_shots.txt / elara_quality.txt RELATIVE to cwd, so running it anywhere else silently exercises the baked defaults instead of what actually ships. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_companion_identity.nx nx_companion_wardrobe.nx nx_elara_prompt_probe.nx

imports: nx_syscalls.nxnx_companion_identity.nxnx_companion_wardrobe.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ pr sys_write ↻ compose sys_mmap ↻ go_compose_photo_prompt sys_mmap ↻ go_build_photo_prompt sys_mmap ↻ go_load_appearance sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ci_cat cw_weights_load sys_mmap ↻ gc_read2 sys_read_file ↻ cw_weights_parse gc_ints

structs

none

consts

10const K_MAGIC_16384: i64 = 16384

functions

12func pr(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1, s, n); return n }
called by 2: pr_nummain calls 1: sys_write
13func pr_num(v: i64) -> i64 { let t: *u8 = sys_mmap(28); var m: i64 = v; var k: i64 = 0; if m==0 { t[0]=48 as u8; k=1 } while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8 = sys_mmap(28); var q: i64 = 0; while k>0 { k=k-1; o[q]=t[k]; q=q+1 } o[q]=0 as u8; return pr(o) }
called by 1: main calls 2: sys_mmappr
15func compose(scene: *u8, seed: i64, out: *u8) -> i64
23func main() -> i64