code wiki / _hdl_build / nx_vizsla_ops_register.nx
nx_vizsla_ops_register.nx source
↩ module page · 44 lines · 4273 B
1// nx_vizsla_ops_register.nx -- registers VIZSLA V6 (projects+maintenance
2// fabric) via the Librarian. ENGINEER evidence = the V6 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 voreg_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 voreg_run("_offc/nx_vizsla_ops_gate.elf" as *u8, "_offc/nx_vizsla_ops.elf" as *u8) != 0 { allok = 0 }
30 cr_w(1, "ENGINEER: vizsla V6 ops 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-V6 PROJECTS-MAINTENANCE-FABRIC (arc=VIZSLA rung V6; operator directive 2026-06-10: EVERYTHING decomposes into PROJECTS we need to do and MAINTENANCE we need to do, from buying stock or valuables to maintaining your oil; feeds = LinkedIn / Rocket Money / PRM / IoT / maintenance logs). RESEARCHED modern-American catalog AS DATA (knowledge/vizsla/maintenance_catalog.txt: 11 asset classes, 50+ MAINT cadence rows w/ day intervals -- home AmFam/Opendoor/SageSure, vehicle CARFAX/ConsumerReports, finance USBank/Vanguard/Experian; operator callouts = row edits, never recompiles, gate-PROVEN by soon_days 14->5 flip). nx_vizsla_ops: log = DONE/STEPDONE rows -> NXR1 -> CID mnt:/stp: keys on seg_store (idempotent additive history, one tamper-evident fabric for ALL family operations); due <catalog> <assets> <prefix> <today> = per HAVE-asset x class-task dashboard, LATEST-done-wins Hinnant civil-day arithmetic, states OK / DUE(<=soon_days) / OVERDUE(do-now) / NEVER(schedule-first), loud-fail on HAVE w/ unknown class; status = per-project steps_done/steps, next = lowest undone seq, ACTIVE/COMPLETE. GATE nx_vizsla_ops_gate 13/13=1000 GREEN sovereign first-compile (loud-fail; log new=7 seg-4001; idempotent relog; HAND-COUNTED rows exact: oil 146d due_in=34 OK w/ latest-wins over later-stored older row, tire 172d due_in=8 DUE, filter 105d due_in=-15 OVERDUE, registration NEVER; verdict 2/4/1/1/1/1; DATA-DRIVEN soon 5 => tire OK ok=2 same binary; due+status determinism; deck 2/3 next=3:railings ACTIVE; tax COMPLETE); missing-instrument tamper 0/13 RED; re-gated GREEN from durable home. LIVE: assets.txt (10 example assets) x catalog = 53 cadence slots (52 NEVER awaiting first real DONE, template net-worth row OK); projects.txt ships vizsla-onboarding (next=1:fill-household-interview) + buy-valuables (the operator stock/valuables example as ordered steps); ops- store seeded idempotent. FEED ADAPTERS = NAMED DEBTS in spec: rocket-money->V1 transactions + subscription-audit DONEs, LinkedIn->V2a/b postings + career DONEs, PRM->V2c touches, IoT->asset rows + auto-DONE events. EXCEED: consumer tools silo these (CarFax vs Mint vs Todoist) w/ no shared additive history, no time travel, no tamper evidence. Blessed _offc/nx_vizsla_ops{,_gate}.elf; spec knowledge/specs/2026-06-10-nishi-vizsla-ladder.md (V6 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 V6 projects+maintenance fabric)\n" as *u8)
42 sys_exit(0)
43 return 0
44}