code wiki / _hdl_build / nx_uiq_sentinel_lib.nx

nx_uiq_sentinel_lib.nx

buildroot/runtime/_hdl_build/nx_uiq_sentinel_lib.nx

19281 B477 linesdepth 8pulls 9 transitivereach 2 importersview sourcekind librarytopic uiq
docsdependenciesstructsconstsfunctions

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

nx_uiq_atree_lib.nx nx_uiq_sentinel_lib.nx nx_uiq_sentinel.nx nx_uiq_sentinel_gate.nx

imports: nx_uiq_atree_lib.nx

imported by: nx_uiq_sentinel.nxnx_uiq_sentinel_gate.nx

structs

none

consts

13const US_MAGIC_65536: i64 = 65536
14const US_MAGIC_1024: i64 = 1024
16const US_CAP_PAGES: i64 = 256
17const US_CAP_DETAIL: i64 = 40
18const US_ARENA: i64 = 32768

functions

20func us_cat(dst: *u8, off: i64, src: *u8) -> i64
28func us_itoa(dst: *u8, off: i64, v: i64) -> i64
43func us_atoi(buf: *u8, off: i64, out: *i64) -> i64
called by 1: us_check
55func us_ends(s: *u8, lit: *u8) -> i64
called by 1: us_scan_dir
64func us_has(s: *u8, lit: *u8) -> i64
called by 1: us_scan_dir calls 1: cs_find_from
71func us_write(path: *u8, buf: *u8, n: i64) -> i64
81func us_scan_dir(dir: *u8, arena: *u8, offs: *i64, cap: i64) -> i64
122func us_read_list(listfile: *u8, arena: *u8, offs: *i64, cap: i64) -> i64
called by 1: us_baseline calls 1: cs_slurp
149func us_last_warns() -> i64
called by 1: us_baseline
156func us_baseline(dirz: *u8, prefix: *u8, listfile: *u8, emit: i64) -> i64
222func us_check(dirz: *u8, prefix: *u8, out: *i64, emit: i64, doscan: i64) -> i64
365func us_verdict(d: *u8, o: i64, r: i64, out: *i64) -> i64
called by 2: us_emit_jsonus_cron calls 1: us_cat
376func us_emit_json(path: *u8, now: i64, r: i64, out: *i64) -> i64
399func us_cron() -> i64
434func us_selftest() -> i64