code wiki / _hdl_build / nx_evidence_pack.nx

nx_evidence_pack.nx

buildroot/runtime/_hdl_build/nx_evidence_pack.nx

39040 B728 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic evidence
docsdependenciesstructsconstsfunctions

about

nx_evidence_pack.nx -- the CONSISTENT EVIDENCE PUBLISHER (operator 2026-07-16: "publish evidence consistent workstream where i can see evidence for all of this work ... clear evidence publishing, consistent screenshots, recordings"). One organ turns a session's evidence artifacts into ONE publishable unit under the /evidence/<run>/ namespace, tied to its workstream: index.html -- plain-english page (title, workstream, verdict, figures+captions, metrics table) api.json -- the machine-readable detail (dashboards speak plain english; machines get JSON) ship.manifest-- nx_content_ship rows (put+verify) so publish = ONE proven sovereign command Manifest lines: title=/workstream=/run=/verdict=/date=/link= meta; `img|<file>|<caption>`; `metric|<name>|<value>|<note>`. CRLF tolerated. Asset refs emitted ABSOLUTE (/evidence/<run>/<file>) per the edge slash-strip law (relative refs = RED in nx_page_verify). usage: nx_evidence_pack <manifest> <outdir> (artifacts already staged in <outdir>) license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_evidence_pack.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 ev_w sys_write sys_exit ev_eq ev_index sys_mmap ev_cat sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ev_w ↻ ev_split ev_pipe ev_catn ev_write_file sys_openat_wr sys_write ↻ sys_close ↻ ev_pfx ev_slen ev_chip ev_cat ↻ ev_catn ↻ sys_mmap ↻ sys_read_file ↻ ev_pfx ↻ ev_pipe ↻ ev_cat ↻ ev_catn ↻ ev_write_file ↻ ev_catj itoa_sb sys_mmap ↻ sys_write ↻

structs

76struct EvMeta

consts

14const EV_MAGIC_2048: i64 = 2048
15const EV_MAGIC_1000000: i64 = 1000000
17const EV_OUT_CAP: i64 = 1048576
18const EV_MAX_IMG: i64 = 24
19const EV_MAX_MET: i64 = 32
20const EV_FILE_MODE: i64 = 420 // 0644

functions

22func ev_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: ev_indexmain calls 1: sys_write
23func ev_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: ev_pfx
26func ev_cat(buf: *u8, off: i64, s: *u8) -> i64
called by 3: ev_chipev_indexmain
32func ev_catn(buf: *u8, off: i64, s: *u8, n: i64) -> i64
called by 3: ev_chipev_indexmain
38func ev_catj(buf: *u8, off: i64, s: *u8, n: i64) -> i64
called by 1: main
52func itoa_sb(buf: *u8, o: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
62func ev_write_file(path: *u8, buf: *u8, n: i64) -> i64
87func ev_pfx(src: *u8, lo: i64, n: i64, p: *u8) -> i64
called by 2: ev_indexmain calls 1: ev_slen
95func ev_pipe(src: *u8, off: i64, end: i64) -> i64
called by 2: ev_splitmain
101func ev_eq(a: *u8, b: *u8) -> i64
called by 1: main
108func ev_split(mf: *u8, lo: i64, end: i64, fld: *i64, maxf: i64) -> i64
called by 1: ev_index calls 1: ev_pipe
124func ev_chip(hb: *u8, o: i64, mf: *u8, off: i64, len: i64) -> i64
called by 1: ev_index calls 2: ev_catev_catn
139func ev_index(root: *u8) -> i64
413func main(argc: i64, argv: *i64) -> i64