code wiki / _hdl_build / nx_aid_gate.nx
nx_aid_gate.nx
buildroot/runtime/_hdl_build/nx_aid_gate.nx
about
nx_aid_gate.nx -- GATE: charity anti-scam R-AID. T1 a genuinely NEEDY household trips no flags (risk 0) and is
served. T2 a DOUBLE-DIPPER (claims across many orgs) is flagged for REVIEW (not denied). T3 a RESELLER (units
far beyond household use) is flagged HIGH (not denied). T4 THE FAIL-OPEN GUARANTEE: ad_auto_deny == 0 for
EVERYONE incl the reseller -- the system never auto-denies. T5 ADDITIVE ledger + privacy (claims accumulate,
history intact, recipient is a token w/ no PII). T6 the review queue renders (flagged only, reasons, privacy
note) + ships. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_aid.nxnx_publisher.nxnx_seg_store.nxnx_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
| 12 | const AG_STORE: *u8 = "knowledge/store/aid-" |
| 13 | const AG_STAGE_FILE: *u8 = "knowledge/staging/aid/review.html" |
| 14 | const AG_LIVE_FILE: *u8 = "knowledge/publish/aid-live/review.html" |
| 15 | const NOW: i64 = 110 |
functions
| 17 | func g_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 18 | func g_i(v: i64) -> i64 |
| 26 | func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 28 | func main() -> i64 |