code wiki / _hdl_build / nx_vizsla_jobs_register.nx
nx_vizsla_jobs_register.nx source
↩ module page · 45 lines · 3706 B
1// nx_vizsla_jobs_register.nx -- registers VIZSLA V2a (job-search engine) via
2// the Librarian. ENGINEER evidence = the V2a gate re-run from its DURABLE home
3// (_offc/nx_vizsla_jobs_gate.elf against _offc/nx_vizsla_jobs.elf, 10 KAT rows;
4// missing-instrument tamper run RED proven).
5// license_tier: ORIGINAL
6import "nx_cap_register.nx"
7import "nx_capreg_librarian.nx"
8import "nx_syscalls.nx"
9
10func vjreg_run(path: *u8, a1: *u8) -> i64 {
11 let pid: i64 = sys_fork()
12 if pid == 0 {
13 let dn: i64 = sys_openat_wr("/dev/null" as *u8, 0x1a4)
14 if dn >= 0 { sys_dup3(dn, 1, 0); sys_dup3(dn, 2, 0) }
15 let argv: *i64 = sys_mmap(32) as *i64
16 argv[0] = path as i64
17 var i: i64 = 1
18 if (a1 as i64) != 0 { argv[i] = a1 as i64; i = i + 1 }
19 argv[i] = 0
20 let envp: *i64 = sys_mmap(16) as *i64; envp[0] = 0
21 sys_execve(path, argv, envp); sys_exit(127)
22 }
23 let st: *i64 = sys_mmap(16) as *i64
24 sys_wait4(pid, st, 0)
25 return st[0]
26}
27
28func main() -> i64 {
29 var allok: i64 = 1
30 if vjreg_run("_offc/nx_vizsla_jobs_gate.elf" as *u8, "_offc/nx_vizsla_jobs.elf" as *u8) != 0 { allok = 0 }
31 cr_w(1, "ENGINEER: vizsla V2a jobs gate (10 KAT rows) pass=" as *u8); cr_wn(1, allok); cr_w(1, "\n" as *u8)
32 let eng: i64 = ig_engineer(1, 1, 1, allok)
33 let dec: i64 = ig_decision(eng, ig_council(eng, 1, 1, 2), 1)
34 if dec != IG_INGEST { cr_w(1, "HELD\n" as *u8); sys_exit(1) }
35 if cr_can_register(5, 2, 6, dec) != 1 { cr_w(1, "REFUSED\n" as *u8); sys_exit(1) }
36 let lp: *u8 = "/tmp/nishi_cap_registry.log" as *u8
37 let jp: *u8 = "knowledge/status/cap_registry_durable.log" as *u8
38 let idx: i64 = cl_next_idx(lp, jp)
39 let ok: i64 = cl_register_dual(lp, jp, idx, 5,
40 2, "GEN NISHI-VIZSLA-V2A JOB-SEARCH-ENGINE (arc=VIZSLA rung V2a; fills career/AUTHOR job-search-engine + career/EDITOR application-tracker from the V0 gap profile). nx_vizsla_jobs: match = SEEK/SKILL profile (data-edited weights, law 11/25) scored against POST corpus, rank rows score-desc file-order tiebreak, ZERO-SCORE postings PRINTED not dropped (matched= counts score>0), ranking is the FAMILY fit function not an ad-funded board order; track = APP rows -> canonical NXR1 -> CID keys app:nxc1-... on seg_store (idempotent additive application history, same substrate as V1 budget); cadence = chronological walk, LAST status per posting wins, CLOSED statuses FROM PROFILE DATA suppress follow-up while history stays additive. GATE nx_vizsla_jobs_gate 10/10=1000 GREEN sovereign first-compile (loud-fail, hand-computed best-match order ada j2-500/j1-300 exact, zero-score named + matched=3, multi-member bea j4-500 from SAME corpus, match determinism, track new=4 seg-2001, idempotent retrack new=0 dup=4 none, cadence last-status-wins j2 interview, closed j1 suppressed-but-counted apps=4 posts=2 open=1 closed=1, cadence determinism); missing-instrument tamper run 0/10 RED proven; re-gated GREEN from durable home. LIVE: knowledge/vizsla/{job_profile,postings,applications}.txt templates + jobs- store seeded (match rank list, real-store idempotency dup_instore=1 segment=none, cadence follow-up row). HONEST SCOPE: V2a = scoring+tracker+cadence on fixture/template corpus; V2b NAMED DEBT = live posting census via own-TLS entity-gather feeding the same POST format (Market Researcher lane) -- reach EXCEED lands there. Blessed _offc/nx_vizsla_jobs{,_gate}.elf; spec knowledge/specs/2026-06-10-nishi-vizsla-ladder.md" as *u8)
41 if ok != 1 { cr_w(1, "DUAL-WRITE FAILED\n" as *u8); sys_exit(1) }
42 cr_w(1, "CAPREG idx=" as *u8); cr_wn(1, idx); cr_w(1, " REGISTERED (NISHI VIZSLA V2a job-search engine)\n" as *u8)
43 sys_exit(0)
44 return 0
45}