nx_unread_sensor.nx
buildroot/runtime/nx_unread_sensor.nx
about
nx_unread_sensor.nx -- WHICH STATUS ARTIFACTS DOES NOTHING NAME.
usage: nx_unread_sensor [statusdir] default knowledge/status/
exit: 0 GREEN (single-namer count at or below its ratchet) | 1 RED (it rose) | 3 UNPROVEN
See nx_unread_sensor_lib.nx for why this exists and for the blind spots it declares. In short: this
estate rediscovered "a sensor nothing reads" four times in one day, and owned no instrument that could
have found the fifth. Every number below is a FLOOR on readers, so a row here is a QUESTION.
IT REFUSES TO RUN ON A SATURATED BOX. Composing ct_admit_now costs one small /proc read and no fork,
and the alternative is a corpus-wide scan that becomes the load it was built to explain --
A DIAGNOSTIC THAT CANNOT REFUSE TO RUN IS A LOAD GENERATOR WITH GOOD INTENTIONS.
THE RATCHET SELF-BASELINES ON FIRST SIGHT, so shipping it cannot turn every build red on day one, and
it is written ONLY on a fall or a first run: a ratchet that rewrites its baseline on a RISE launders
itself green and is worse than no ratchet at all.
license_tier: ORIGINAL expect_exit: 0 Read-only. No hw writes (Rule 26).
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gatekit_lib.nxnx_ctxtop_lib.nxnx_unread_sensor_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 23 | const UR_MAXART: i64 = 512 |
| 24 | const UR_STRIDE: i64 = 96 |
| 25 | const UR_NAMES_BYTES: i64 = 49152 // UR_MAXART * UR_STRIDE |
| 26 | const UR_I64_BYTES: i64 = 4096 // UR_MAXART * 8 |
| 27 | const UR_FILECAP: i64 = 262144 |
| 28 | const UR_PATHCAP: i64 = 1024 |
| 29 | const UR_CORPUS_STRIDE: i64 = 256 |
| 30 | const UR_DIRBUF: i64 = 65536 |
| 31 | const UR_DIRENT_NAME_OFF: i64 = 19 |
| 32 | const UR_BASELINE: *u8 = "knowledge/status/unread_sensor.baseline" |
| 33 | const UR_BASELINE_NAME: *u8 = "unread_sensor.baseline" |
| 34 | const UR_MODE_644: i64 = 420 |
| 35 | const UR_EXIT_GREEN: i64 = 0 |
| 36 | const UR_EXIT_RED: i64 = 1 |
| 37 | const UR_EXIT_UNPROVEN: i64 = 3 |
| 38 | const UR_NEEDLE: *u8 = "knowledge/status/" |
| 39 | const UR_NEEDLE_LEN: i64 = 17 |
functions
| 41 | func ur_puts(s: *u8) -> i64 { sys_write(1, s, us_len(s)); return 0 } |
| 42 | func ur_num(v: i64) -> i64 |
| 50 | func main(argc: i64, argv: *i64) -> i64 |