code wiki / (root) / nx_incumbents.nx

nx_incumbents.nx

buildroot/runtime/nx_incumbents.nx

6311 B124 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_incumbents.nx -- CLI over nx_incumbent_lib (engineshift ES28): build the incumbent index, or answer a board's rung contracts from it. The clock runs the bare form daily (nx_clockjob put incumbentidx 86400 nx_incumbents). nx_incumbents -> build the index (roots probed from the CWD: buildroot/runtime, else runtime) and print the envelope nx_incumbents index -> the same nx_incumbents <domain> [rung] -> one INCUMBENTS(...) line per rung| row of the domain's plan (or the one rung), the envelope, and a verdict LAST. The CLI knows no matrix, so nothing is excluded here; the ranker excludes the rung's own organ. exit: 0 answered or built | 1 index STALE or MALFORMED (present but refused as an answer) | 2 usage | 3 index ABSENT, plan unreadable in both trees, or build failed license_tier: ORIGINAL Writes only knowledge/status/incumbent_index.txt (atomic). No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_incumbent_lib.nx nx_barfresh_lib.nx nx_incumbents.nx

imports: nx_syscalls.nxnx_incumbent_lib.nxnx_barfresh_lib.nx

imported by: nobody (leaf or entry point)

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

main inc_conf_load 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 inc_lend inc_conf_take inc_kv_int inc_slen inc_atoi inc_is_digit inc_streq sys_mmap ↻ inc_cwd_is_nishihost sys_openat_rd ↻ sys_close ↻ inc_index_build sys_mmap ↻ inc_now sys_mmap ↻ sys_clock_gettime_real

structs

none

consts

16const NIC_ARG_VERB: i64 = 1
17const NIC_ARG_RUNG: i64 = 2
18const NIC_EXIT_OK: i64 = 0
19const NIC_EXIT_REFUSED: i64 = 1
20const NIC_EXIT_USAGE: i64 = 2
21const NIC_EXIT_ABSENT: i64 = 3
22const NIC_STDOUT: i64 = 1
23const NIC_OUT_CAP: i64 = 16384
24const NIC_VERB_INDEX: *u8 = "index"
25const NIC_RUNG_TAG: *u8 = "rung|"
26const NIC_F_ID: i64 = 1
27const NIC_F_TITLE: i64 = 2
28const NIC_F_SYM: i64 = 3
29const NIC_F_NOTE: i64 = 4

functions

31func nic_w(s: *u8) -> i64 { return sys_write(NIC_STDOUT, s, inc_slen(s)) }
called by 2: nic_wnmain calls 2: sys_writeinc_slen
32func nic_wn(v: i64) -> i64
called by 1: main calls 3: sys_mmapinc_catnnic_w
38func nic_field(buf: *u8, p: i64, e: i64, k: i64, dst: *u8, cap: i64) -> i64
called by 1: main calls 2: sys_mmapbf_field
49func main(argc: i64, argv: *i64) -> i64