code wiki / (root) / nx_atlas_citeverify2.nx

nx_atlas_citeverify2.nx

buildroot/runtime/nx_atlas_citeverify2.nx

3033 B78 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic atlas
docsdependenciesstructsconstsfunctions

about

nx_atlas_citeverify2.nx -- atlas-hygiene MULTI-AUTHORITY CITATION FIREWALL (beyond-SOTA / Callout 1+). Cross-checks a DOI against TWO independent authorities: Crossref AND OpenAlex. VERIFIED (exit 0) only if BOTH return 200; QUARANTINE (exit 5) if either misses -- resilient to one authority being down or wrong, which a single-source check is not. Forks the deployed nx_https_get.elf twice. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_tool_run.nx nx_atlas_citeverify2.nx

imports: nx_syscalls.nxnx_tool_run.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main cv_puts sys_write cv_slen sys_exit sys_mmap cv_append cv_fetch sys_mmap ↻ tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close ↻ sys_execve sys_exit ↻ sys_read sys_wait4 wait_exit_code cv_contains cv_slen ↻

structs

none

consts

7const K_MAGIC_1048576: i64 = 1048576
8const K_MAGIC_1024: i64 = 1024

functions

9func cv_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: cv_putscv_contains
10func cv_puts(s: *u8) -> i64 { sys_write(1, s, cv_slen(s)); return 0 }
called by 1: main calls 2: sys_writecv_slen
11func cv_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: cv_slen
23func cv_append(dst: *u8, di: i64, src: *u8) -> i64
called by 1: main
29func cv_fetch(url: *u8, out: *u8, olen: *i64) -> i64
called by 1: main calls 2: sys_mmaptr_run_capture
37func main(argc: i64, argv: *i64) -> i64