code wiki / (root) / nx_vidclass_adversary_gate.nx

nx_vidclass_adversary_gate.nx

buildroot/runtime/nx_vidclass_adversary_gate.nx

5172 B76 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic vidclass
docsdependenciesstructsconstsfunctions

about

nx_vidclass_adversary_gate.nx -- CRITIC/ADVERSARY red-team of the video-classification ruler (operator method: researcher -> census -> critic -> ADVERSARY -> coach). A classifier is not trusted until it SURVIVES an attack. Precedent: nx_card_adversary_gate 7/7 = LAW. This tries to BREAK ts_rhythm_marks + ts_classify: A1 NOISE-NOT-RHYTHM (the critical one): pseudo-random high-motion (LCG) must NOT be flagged rhythmic -- if chaos reads as "dance", the whole signal is worthless. A2 PERIODIC-SURVIVES-NOISE: a real periodic beat WITH jitter must STILL be detected (real dance isn't clean). A3 QUIET-NOT-ACTIVE: an all-low clip must NOT label active/rhythmic (no false positive). A4 SINGLE-SPIKE-NOT-SCENEHEAVY: one scene cut in a long clip must NOT label scene-heavy (density holds). A5 DISCRIMINATION: a truly-rhythmic clip labels 2 AND a noisy-active clip labels != 2 -- the ruler SEPARATES them (the "distinguishes a good X from the fake" test). A ruler that can't separate is a fake ruler. Deterministic (LCG, fixed seed) so the gate is reproducible. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_ts_marks.nx nx_vidclass_adversary_gate.nx

imports: nx_ts_marks.nx

imported by: nobody (leaf or entry point)

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

main lcg_next ts_rhythm_marks tm_window_rhythmic gp gn ts_classify

structs

none

consts

none

functions

14func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return sys_write(1, s, n) }
called by 1: main
15func gn(v: i64) -> i64
called by 1: main
25func lcg_next(state: *i64) -> i64 { state[0] = (state[0] * 1103515245 + 12345) & 0x7fffffff; return state[0] }
called by 1: main
27func main(argc: i64, argv: *i64) -> i64