code wiki / (root) / nx_emit_gate.nx

nx_emit_gate.nx

buildroot/runtime/nx_emit_gate.nx

6076 B128 linesdepth 8pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic emit
docsdependenciesstructsconstsfunctions

about

nx_emit_gate.nx -- REFEREE for WRITING rung W-ING-4 (nx_emit): the END-TO-END demonstration the operator asked for -- a multi-scene STORY run through the whole pipeline -> register route + per-scene IMAGE PROMPTS + COMPANION CONTEXT. The story here is a tasteful (SFW) romance: the engine is register-blind, so this proves the exact machinery the operator points at an explicit Literotica-class story on the local-LLM lane (with their own roster + lexicon + register terms). [T1..T4] per-scene image prompt + companion context = exact expected strings. [T5] register route on the whole story -> SFW lane (mild romance below threshold). [T6] NEG-CONTROL: an entity-free scene -> EMPTY prompt (never fabricates a tag). Evidence -> stdout + knowledge/status/emit_gate.log. Exit 0/1. Sovereign.

dependencies 3 imports · 0 importers

nx_syscalls_x86_64.nx nx_emit.nx nx_register.nx nx_emit_gate.nx

imports: nx_syscalls_x86_64.nxnx_emit.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 slen pr_kv gp ↻ gn em_image_prompt em_append_present ig_name_off ig_count_name_in ig_match_at wc_is_alpha wc_lower wc_lower ↻ em_append em_append_at pr_str gp ↻ streq em_companion_ctx em_append ↻ em_append_present ↻ em_append_num em_image_prompt_focus em_append_at ↻ ig_name_off ↻ ig_count_name_in ↻ em_append ↻ em_append_present ↻ rg_score ig_name_off ↻ ig_count_name_in ↻ gn ↻ rg_decision

structs

none

consts

none

functions

18func gp(logfd: i64, s: *u8) -> i64
called by 3: pr_strpr_kvmain
25func gn(logfd: i64, v: i64) -> i64
called by 2: pr_kvmain
39func slen(s: *u8) -> i64
called by 1: main
44func streq(a: *u8, b: *u8) -> i64
called by 1: pr_str
53func pr_str(logfd: i64, label: *u8, got: *u8, exp: *u8) -> i64
called by 1: main calls 2: gpstreq
59func pr_kv(logfd: i64, label: *u8, got: i64, exp: i64) -> i64
called by 1: main calls 2: gpgn
65func main() -> i64