code wiki / _hdl_build / nx_vqoe_gate.nx

nx_vqoe_gate.nx

buildroot/runtime/_hdl_build/nx_vqoe_gate.nx

15797 B373 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_vqoe_gate.nx -- the STANDING VIDEO SHIP-GATE (F601; eats debt seq35). WHY: prior /video seeds measured the ENCODER VM (36-81fps) while the received room ran 1fps -- the 100x engine-truth-vs-field-truth gap that made /video suck. This organ grades the thing the family actually experiences: the RECEIVER-side /api/vqoe beacons (vqoe.jsonl, appended by nx_mgmt_api ma_vqoe from real rooms + the headless probe). It publishes a machine verdict the reliability plane (nx_deploy_ready via knowledge/registry/deploy_checks.tsv) and any agent can gate on BEFORE shipping video changes. VERDICTS (honest three-state): GREEN = fresh beacons within thresholds -> ship. AMBER = insufficient fresh evidence -> ship is UNPROVEN (not blocked; the remediation is to generate evidence: headless probe or a real call). No GREEN marker = deploy_ready warns. RED = received-room truth failed a threshold -> DO NOT ship video changes. DATA-DRIVEN (rule 11/17): thresholds live in knowledge/registry/vqoe_gate.conf key=value rows, compiled defaults only as bootstrap fallback. ENVELOPE DECLARED (scale law): reads the TAIL tail_bytes of vqoe.jsonl (default 4MiB), keeps <=8192 rtt samples; over-cap is COUNTED + printed, never silent. Imports ONLY nx_syscalls = drift-immune (the reliability-guard pattern). usage: nx_vqoe_gate [jsonl] [conf] [outlog] (defaults: vqoe.jsonl, knowledge/registry/vqoe_gate.conf, knowledge/status/video_vqoe_gate.log) license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_vqoe_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close vg_confget vg_lineval sys_clock_gettime_real sys_openat_rd ↻ sys_lseek ↻ sys_read ↻ sys_close ↻ vg_findint vg_starts vg_s vg_n sys_mmap ↻ sys_openat_wr sys_write sys_renameat vg_puts sys_write ↻ sys_exit

structs

none

consts

22const VG_RTT_CAP: i64 = 8192

functions

24func vg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
26func vg_s(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
32func vg_n(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
45func vg_starts(b: *u8, off: i64, le: i64, lit: *u8) -> i64
called by 1: vg_findint
57func vg_findint(b: *u8, le: i64, needle: *u8, start: i64, oval: *i64) -> i64
called by 1: main calls 1: vg_starts
86func vg_lineval(cb: *u8, ls: i64, le: i64, key: *u8) -> i64
called by 1: vg_confget
107func vg_confget(cb: *u8, cn: i64, key: *u8, dflt: i64) -> i64
called by 1: main calls 1: vg_lineval
125func main(argc: i64, argv: *i64) -> i64