code wiki / _hdl_build / nx_vizsla_recruiter_register.nx

nx_vizsla_recruiter_register.nx source

↩ module page · 44 lines · 4174 B

1// nx_vizsla_recruiter_register.nx -- registers VIZSLA V2c (recruiter-channel 2// engine) via the Librarian. ENGINEER evidence = the V2c gate re-run from its 3// DURABLE home (13 KAT rows; missing-instrument tamper run RED proven). 4// license_tier: ORIGINAL 5import "nx_cap_register.nx" 6import "nx_capreg_librarian.nx" 7import "nx_syscalls.nx" 8 9func vrreg_run(path: *u8, a1: *u8) -> i64 { 10 let pid: i64 = sys_fork() 11 if pid == 0 { 12 let dn: i64 = sys_openat_wr("/dev/null" as *u8, 0x1a4) 13 if dn >= 0 { sys_dup3(dn, 1, 0); sys_dup3(dn, 2, 0) } 14 let argv: *i64 = sys_mmap(32) as *i64 15 argv[0] = path as i64 16 var i: i64 = 1 17 if (a1 as i64) != 0 { argv[i] = a1 as i64; i = i + 1 } 18 argv[i] = 0 19 let envp: *i64 = sys_mmap(16) as *i64; envp[0] = 0 20 sys_execve(path, argv, envp); sys_exit(127) 21 } 22 let st: *i64 = sys_mmap(16) as *i64 23 sys_wait4(pid, st, 0) 24 return st[0] 25} 26 27func main() -> i64 { 28 var allok: i64 = 1 29 if vrreg_run("_offc/nx_vizsla_recruiter_gate.elf" as *u8, "_offc/nx_vizsla_recruiter.elf" as *u8) != 0 { allok = 0 } 30 cr_w(1, "ENGINEER: vizsla V2c recruiter gate (13 KAT rows) pass=" as *u8); cr_wn(1, allok); cr_w(1, "\n" as *u8) 31 let eng: i64 = ig_engineer(1, 1, 1, allok) 32 let dec: i64 = ig_decision(eng, ig_council(eng, 1, 1, 2), 1) 33 if dec != IG_INGEST { cr_w(1, "HELD\n" as *u8); sys_exit(1) } 34 if cr_can_register(5, 2, 6, dec) != 1 { cr_w(1, "REFUSED\n" as *u8); sys_exit(1) } 35 let lp: *u8 = "/tmp/nishi_cap_registry.log" as *u8 36 let jp: *u8 = "knowledge/status/cap_registry_durable.log" as *u8 37 let idx: i64 = cl_next_idx(lp, jp) 38 let ok: i64 = cl_register_dual(lp, jp, idx, 5, 39 2, "GEN NISHI-VIZSLA-V2C RECRUITER-CHANNEL-ENGINE (arc=VIZSLA rung V2c; operator directive 2026-06-10: in the new job search HAVING A RECRUITER IS A BIG DEAL because AI broke the standard process -- cold applications drown in AI slush vs AI screeners; the human channel is the high-yield path). THEORY AS DATA (channels.txt: CHANNEL weights recruiter 700 > referral 550 > cold-apply 100, CONF stale_days/strong_permil, AGENT rows w/ specialty terms + * wildcard portal -- refining the model incl. NEW channels = data edit, never recompile, gate-PROVEN by stale_days 30->60 flip). nx_vizsla_recruiter: route = every posting -> best (channel weight, term overlap, file order) agent; cold-apply routes state=WEAK = the broken standard process NAMED per posting not hidden; touch = TOUCH rows -> NXR1 -> CID tch: keys on seg_store (idempotent additive relationship history); warm = keep-warm cadence over STRONG-channel agents only (worth-tending derived from same data): LATEST-date-wins (not last-stored), Hinnant civil-date day arithmetic, FRESH/none STALE/reconnect COLD/introduce, today via argv = deterministic. GATE nx_vizsla_recruiter_gate 13/13=1000 GREEN sovereign first-compile (loud-fail; hand-routed corpus j2 recruiter/r1 ov=3, j4 referral fallback, j5 cold-apply WEAK + verdict 5/4/1/0; equal-overlap higher-channel wins; determinism x2; touch new=3 seg-3001; idempotent retouch; latest-date-wins r1 FRESH days=9 w/ older row stored later; hand-counted 51 days STALE reconnect; never-touched COLD introduce + weak-channel portal EXCLUDED from tending; DATA-DRIVEN stale 60 => r2 FRESH same binary); missing-instrument tamper 0/13 RED; re-gated GREEN from durable home. LIVE: knowledge/vizsla/channels.txt + touches.txt templates, recruit- store seeded (route names the WEAK cold route on the postings template; retouch dup_instore=1 segment=none; warm flags never-touched referral COLD). EXCEED: job boards/ATS do not model the relationship channel at all -- they ARE the broken channel; Vizsla routes around them and tends relationships BEFORE they are needed. Outreach drafts (human sends) = V4. Blessed _offc/nx_vizsla_recruiter{,_gate}.elf; spec knowledge/specs/2026-06-10-nishi-vizsla-ladder.md (V2c section)" as *u8) 40 if ok != 1 { cr_w(1, "DUAL-WRITE FAILED\n" as *u8); sys_exit(1) } 41 cr_w(1, "CAPREG idx=" as *u8); cr_wn(1, idx); cr_w(1, " REGISTERED (NISHI VIZSLA V2c recruiter-channel engine)\n" as *u8) 42 sys_exit(0) 43 return 0 44}