code wiki / _hdl_build / nx_uiq_sentinel_lib.nx
nx_uiq_sentinel_lib.nx
buildroot/runtime/_hdl_build/nx_uiq_sentinel_lib.nx
about
nx_uiq_sentinel_lib.nx -- F106c: the zero-Claude experiential sentinel (console + atree composed).
baseline = bless the CURRENT docroot: copy each live page + record its console error/warning counts
and ARIA-tree node count into a manifest. check = re-audit every baselined page NOW and classify:
MISSING page gone from the docroot -> verdict REGRESSED
CONSOLE-REGRESSED console errors NOW > errors at baseline -> verdict REGRESSED
STRUCT-DRIFT Zhang-Shasha TED(baseline, now) > 0 -> verdict DRIFT (review)
NEW page in docroot but not in the manifest -> counted, note only
A cron can run `check` forever with zero sessions; a non-CLEAN verdict is the signal to look.
HONEST ENVELOPE: page cap 256 declared; TED refused (capped++) when a tree exceeds 512 nodes;
baseline read-failures counted loudly; detail rows capped at 40 with a capped flag.
license_tier: ORIGINAL genealogy: F106c; composes nx_uiq_console_lib + nx_uiq_atree_lib
dependencies 1 imports · 2 importers
imports: nx_uiq_atree_lib.nx
imported by: nx_uiq_sentinel.nxnx_uiq_sentinel_gate.nx
structs
| none |
consts
| 13 | const US_MAGIC_65536: i64 = 65536 |
| 14 | const US_MAGIC_1024: i64 = 1024 |
| 16 | const US_CAP_PAGES: i64 = 256 |
| 17 | const US_CAP_DETAIL: i64 = 40 |
| 18 | const US_ARENA: i64 = 32768 |
functions
| 20 | func us_cat(dst: *u8, off: i64, src: *u8) -> i64 |
| 28 | func us_itoa(dst: *u8, off: i64, v: i64) -> i64 |
| 43 | func us_atoi(buf: *u8, off: i64, out: *i64) -> i64 called by 1: us_check |
| 55 | func us_ends(s: *u8, lit: *u8) -> i64 called by 1: us_scan_dir |
| 64 | func us_has(s: *u8, lit: *u8) -> i64 |
| 71 | func us_write(path: *u8, buf: *u8, n: i64) -> i64 |
| 81 | func us_scan_dir(dir: *u8, arena: *u8, offs: *i64, cap: i64) -> i64 |
| 122 | func us_read_list(listfile: *u8, arena: *u8, offs: *i64, cap: i64) -> i64 |
| 149 | func us_last_warns() -> i64 called by 1: us_baseline |
| 156 | func us_baseline(dirz: *u8, prefix: *u8, listfile: *u8, emit: i64) -> i64 |
| 222 | func us_check(dirz: *u8, prefix: *u8, out: *i64, emit: i64, doscan: i64) -> i64 |
| 365 | func us_verdict(d: *u8, o: i64, r: i64, out: *i64) -> i64 |
| 376 | func us_emit_json(path: *u8, now: i64, r: i64, out: *i64) -> i64 |
| 399 | func us_cron() -> i64 |
| 434 | func us_selftest() -> i64 |