code wiki / (root) / nx_register_gate.nx

nx_register_gate.nx

buildroot/runtime/nx_register_gate.nx

4699 B110 linesdepth 8pulls 11 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_register_gate.nx -- REFEREE for WRITING rung W-ING-3 (nx_register). [T1] SFW: below-threshold score routes to the SFW lane (0). [T2] EXPLICIT + governance OK: at/above threshold + age+consent+locale -> the local-LLM explicit lane (1). [T3] NEG-CONTROL governance non-bypass: same explicit score, but age OR consent OR locale failing -> REFUSE (2). Explicit content cannot skip the gate. [T4] NEG-CONTROL whole-word: "graphical" must NOT score as "graphic". [T5] NEG-CONTROL no over-routing: benign text stays SFW even with governance OK. Lexicon (DATA, benign proxy): calm=1 heated=3 graphic=5 ; threshold=5. Evidence -> stdout + knowledge/status/register_gate.log. Exit 0/1. Sovereign x86_64. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_register.nx nx_register_gate.nx

imports: nx_syscalls_x86_64.nxnx_register.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_append gp rg_score ig_name_off ig_count_name_in ig_match_at wc_is_alpha wc_lower wc_lower ↻ slen pr_kv gp ↻ gn rg_decision

structs

none

consts

none

functions

18func gp(logfd: i64, s: *u8) -> i64
called by 2: pr_kvmain
25func gn(logfd: i64, v: i64) -> i64
called by 1: pr_kv
43func slen(s: *u8) -> i64
called by 1: main
48func pr_kv(logfd: i64, label: *u8, got: i64, exp: i64) -> i64
called by 1: main calls 2: gpgn
57func main() -> i64