code wiki / (root) / nx_statuscensus_gate.nx

nx_statuscensus_gate.nx

buildroot/runtime/nx_statuscensus_gate.nx

11017 B177 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_statuscensus_gate.nx -- TS11 referee: drives the ONE classifier (nx_statuscensus_lib) IN-PROCESS over planted journals in /tmp/nx_statuscensus_gate/ (never the production journals: a gate must not share its fixture with a beat). Four runs: A RED (every bucket populated once, three planted rows that a naive body-bytes rule would count as delivered), B GREEN (120 clean rows, tools journal ABSENT -> that axis abstains, never acquits), C UNOBSERVED (min_rows above the fixture -> rc 3, no vote), D TAIL WINDOW (window five bytes short of the file -> the cut first row is skipped and the byte count is announced). Then the trajectory log holds exactly one row per run. Every number is asserted AND emitted (gv_check_eq) so an outside arithmetic can contradict it. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_statuscensus_lib.nx nx_gate_verdict.nx nx_statuscensus_gate.nx

imports: nx_statuscensus_lib.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr 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 ↻ g_edge sc_fputs sys_write ↻ sc_slen sc_fputn sys_mmap ↻ sys_write ↻ g_act sc_fputn ↻ g_tab sc_fputs ↻ 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 ↻

structs

none

consts

12const G_DIR: *u8 = "/tmp/nx_statuscensus_gate"
13const G_EDGE: *u8 = "/tmp/nx_statuscensus_gate/edge.log"
14const G_EDGE_GREEN: *u8 = "/tmp/nx_statuscensus_gate/edge_green.log"
15const G_ACT: *u8 = "/tmp/nx_statuscensus_gate/act.jrnl"
16const G_ACT_ABSENT: *u8 = "/tmp/nx_statuscensus_gate/absent.jrnl"
17const G_STATUS: *u8 = "/tmp/nx_statuscensus_gate/census.status"
18const G_TMP: *u8 = "/tmp/nx_statuscensus_gate/census.status.tmp"
19const G_LOG: *u8 = "/tmp/nx_statuscensus_gate/census.log"
20const G_MODE_DIR: i64 = 493
21const G_MODE_FILE: i64 = 420
22const G_WINDOW: i64 = 1048576
23const G_SLA: i64 = 990
24const G_MINROWS_ONE: i64 = 1
25const G_MINROWS_HUGE: i64 = 100000
26const G_GREEN_ROWS: i64 = 120
27const G_CUT: i64 = 5
28const G_RUNS: i64 = 4
29const G_ABSENT_NUM: i64 = 0 - 999999
31const A_EDGE_TOTAL: i64 = 10
32const A_EDGE_DELIV: i64 = 6
33const A_EDGE_EMPTY: i64 = 1
34const A_EDGE_404: i64 = 1
35const A_EDGE_SYNTH: i64 = 1
36const A_EDGE_UNDEF: i64 = 1
37const A_EDGE_PROXIED: i64 = 1
38const A_EDGE_PERMIL: i64 = 600
39const A_ACT_TOTAL: i64 = 7
40const A_ACT_DELIV: i64 = 4
41const A_ACT_EMPTY: i64 = 1
42const A_ACT_ERROR: i64 = 1
43const A_ACT_RECEIPT: i64 = 1
44const A_ACT_PERMIL: i64 = 571
45const G_PERMIL_FULL: i64 = 1000
46const G_UNVOTED: i64 = 0 - 1

functions

48func g_tab(fd: i64) -> i64 { let b: *u8 = sys_mmap(2); b[0] = SC_TAB as u8; sys_write(fd, b, 1); return 0 }
called by 1: g_act
49func g_edge(fd: i64, ts: i64, acc: *u8, vh: i64, by: i64, rc: i64) -> i64
called by 1: main calls 2: sc_fputssc_fputn
55func g_act(fd: i64, ts: i64, status: *u8, lane: *u8, ec: i64, by: i64) -> i64
called by 1: main calls 3: sc_fputng_tabsc_fputs
62func g_num(buf: *u8, n: i64, key: *u8) -> i64
called by 1: main calls 1: sc_find_num
67func g_lastline_is(buf: *u8, n: i64, tail: *u8) -> i64
called by 1: main calls 2: sc_slensc_has
73func main() -> i64