code wiki / (root) / nx_acquire.nx

nx_acquire.nx

buildroot/runtime/nx_acquire.nx

8955 B190 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic acquire
docsdependenciesstructsconstsfunctions

about

nx_acquire.nx -- THE LIBRARIAN'S SHELF. Reads knowledge/acquire_sources.conf and answers, for every external work we know of, the only question that matters: WHAT MAY WE DO WITH IT? This is the organ that makes the other two live. nx_acquire_lib holds the DOOR (evidence gates rights) and nx_licgate_lib holds the RIGHTS TABLE; until something drove them from real data they were a correct decision nobody asked. A capability with no caller is an adoption gap, not a feature. ONE RIGHTS TABLE. The licence columns come from knowledge/model_license.conf via lg_find_license -- the same table, the same encoding, the same fail-closed semantics the shippability verdict uses. A second table keyed differently for "code" versus "models" is how two answers for one licence get created, and the estate already measured FIVE non-communicating licence taxonomies. FAIL-CLOSED AT EVERY UNKNOWN: a malformed evidence word, an unparseable row, or a licence id absent from the rights table all degrade toward REVIEW and never toward permission. Silence is never permission, and "I could not read the row" must never arrive in the same word as "you may". license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_licgate_lib.nx nx_acquire_lib.nx nx_acquire.nx

imports: nx_syscalls.nxnx_licgate_lib.nxnx_acquire_lib.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 ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close aqx_puts sys_write ↻ lg_len lg_ctx sys_mmap ↻ sys_read_file ↻ lg_field lg_num lg_sseq aq_res sys_mmap ↻ aqx_fieldz sys_mmap ↻ lg_field ↻ aq_ev_parse aqx_pad aqx_puts ↻

structs

none

consts

21const AQX_FCAP: i64 = 512
22const AQX_TAB: i64 = 9
23const AQX_NL: i64 = 10
24const AQX_HASH: i64 = 35
25const AQX_A: i64 = 65
26const AQX_L: i64 = 76
27const AQX_NUMCAP: i64 = 32

functions

29func aqx_puts(s: *u8) -> i64 { sys_write(1, s, lg_len(s)); return 0 }
called by 2: aqx_padmain calls 2: sys_writelg_len
31func aqx_num(v: i64) -> i64
called by 1: main calls 3: sys_mmapsys_writesys_munmap
48func aqx_fieldz(buf: *u8, s: i64, e: i64, idx: i64, out: *u8, cap: i64) -> i64
called by 1: main calls 2: sys_mmaplg_field
66func aqx_pad(s: *u8, width: i64) -> i64
called by 1: main calls 2: aqx_putslg_len
73func main(argc: i64, argv: *i64) -> i64