code wiki / _hdl_build / nx_connect_csae_report.nx

nx_connect_csae_report.nx

buildroot/runtime/_hdl_build/nx_connect_csae_report.nx

4429 B75 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_csae_report.nx -- CONNECT capability: mandatory CSAE / CyberTipline reporting pipeline (CIQ roadmap exec cell). Big platforms HAVE reporting (US REPORT Act) = parity on existence; Nishi's exceed is RELIABILITY BY CONSTRUCTION: fail-closed + idempotent. A reportable child-safety event MUST yield exactly one preserved report, never silently dropped on a transient failure, never duplicated on retry. MEASURED head-to-head: a best-effort (fire-and-forget, incumbent-style) pipeline drops reports on transient failure; Nishi's fail-closed pipeline retries until the report is durably persisted, and is idempotent (a second pass creates zero duplicates). 100% sovereign, integer, append-only (rule #13). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_connect_csae_report.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 cw sys_write cn sys_mmap ↻ sys_write ↻ sink_fails sys_exit

structs

none

consts

10const CS_N: i64 = 9 // flagged events
11const CS_SEV_MIN: i64 = 2 // severity >= this is reportable (named threshold)

functions

13func cw(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 1: main calls 1: sys_write
14func cn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); 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} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
17func sink_fails(evid: i64, attempt: i64) -> i64 { if attempt == 1 { if (evid % 3) == 0 { return 1 } } return 0 }
called by 1: main
19func main() -> i64