code wiki / (root) / nx_dialogue_gate.nx

nx_dialogue_gate.nx

buildroot/runtime/nx_dialogue_gate.nx

8901 B157 linesdepth 9pulls 14 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_dialogue_gate.nx -- REFEREE for WRITING rung W-DLG-1 (nx_dialogue). [T1] turn + session counting and side identification. [T2] per-turn intensity scoring is exact (benign proxy lexicon, per the seam). [T3] all four cells, one session of each kind -> exact cell id. [T4] THE HEADLINE METRIC on a 4-session corpus: tally = [1,1,1,1], unprompted rate = 250 permil, and the PARTITION SUMS to the session count (a partition is a claim: check the parts). [T5] first-explicit-turn index + NEG-CONTROL (a clean session returns -1, not 0). [T6] escalation slope: rising positive, flat zero, falling NEGATIVE (sign discriminates). [T7] NEG-CONTROL the detector can FAIL TO FIRE: raise the threshold above every score and the same corpus collapses to 4 NEITHER -- proving the meter is not a constant that always accuses. [T8] whole-word: a longer word CONTAINING a lexicon term does not score (heated != overheated). [T9] division guard: rate over an empty corpus is 0, not a trap. Evidence -> stdout + knowledge/status/dialogue_gate.log. Exit 0 GREEN / 1 RED. Sovereign x86_64. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_dialogue.nx nx_dialogue_gate.nx

imports: nx_syscalls_x86_64.nxnx_dialogue.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 slen pr gp ↻ gn dl_count_turns dl_marker_side mg_line_is sc_next_line dl_count_sessions mg_count mg_line_is ↻ sc_next_line ↻ dl_marker_side ↻ dl_side_max dl_marker_side ↻ rg_score ig_name_off ig_count_name_in ig_match_at wc_is_alpha wc_lower wc_lower ↻ sc_next_line ↻ dl_cell dl_side_max ↻ dl_tally dl_count_sessions ↻ dl_session_start mg_line_is ↻ sc_next_line ↻ dl_session_end sc_next_line ↻ mg_line_is ↻ dl_cell ↻ dl_rate_permil dl_first_explicit dl_marker_side ↻

structs

none

consts

none

functions

20func gp(logfd: i64, s: *u8) -> i64
called by 2: prmain
27func gn(logfd: i64, v: i64) -> i64
called by 1: pr
45func slen(s: *u8) -> i64
called by 1: main
50func pr(logfd: i64, label: *u8, got: i64, exp: i64) -> i64
called by 1: main calls 2: gpgn
59func main() -> i64