code wiki / (root) / nx_statuscensus.nx

nx_statuscensus.nx

buildroot/runtime/nx_statuscensus.nx

1687 B27 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_statuscensus.nx -- TS11 (/compare/trafficsafety): STATUS ANALYTICS + THE NON-EMPTY-200 SLA GAUGE, the PROGRAM. Runs the ONE classifier in nx_statuscensus_lib.nx over the live journals (the edge's sites_telemetry.log tail window and the tools API's actlog.jrnl), truncate-writes the LEVEL to knowledge/status/statuscensus.status (canonical verdict= LAST line) and appends one row per run to knowledge/status/statuscensus.log (the TRAJECTORY). Bars come from knowledge/statuscensus.conf (window_bytes= sla_permil_min= min_rows=); an absent conf announces src=default. Exit 0 GREEN / 1 RED / 3 UNOBSERVED. The gate nx_statuscensus_gate drives the same lib over planted fixtures, so it cannot disagree with this program on a bucket. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 0 importers

nx_statuscensus_lib.nx nx_statuscensus.nx

imports: nx_statuscensus_lib.nx

imported by: nobody (leaf or entry point)

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

main sc_conf 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 sc_eol sc_find_num sc_slen sc_run sys_mmap ↻ sc_read_tail sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ sys_mmap ↻ sys_read ↻ sc_eol ↻ sc_census_edge sys_mmap ↻ sc_eol ↻ sc_has

structs

none

consts

11const SC_TEL_PATH: *u8 = "sites_telemetry.log"
12const SC_ACT_PATH: *u8 = "knowledge/status/actlog.jrnl"
13const SC_STATUS_PATH: *u8 = "knowledge/status/statuscensus.status"
14const SC_STATUS_TMP: *u8 = "knowledge/status/statuscensus.status.tmp"
15const SC_LOG_PATH: *u8 = "knowledge/status/statuscensus.log"

functions

17func main() -> i64
calls 2: sc_confsc_run