code wiki / _hdl_build / nx_vizsla_ics_gate.nx

nx_vizsla_ics_gate.nx

buildroot/runtime/_hdl_build/nx_vizsla_ics_gate.nx

16224 B428 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic vizsla
docsdependenciesstructsconstsfunctions

about

nx_vizsla_ics_gate.nx -- VIZSLA R-CAL.4 gate: RFC 5545 .ics EXPORT is gate-proven against construction-known fixtures. GENUINE COMPOSITION: forks the blessed calendar organ to LOAD the store, then the ics organ to EXPORT it -- the gate never fabricates store bytes itself. fixture (loaded via nx_vizsla_calendar, seg-6201): EVENT launch 2026-06-20 10:00 +90 title "pizza,night;launch" (TEXT-escape exercise) EVENT ride 2026-07-03 08:00 +120 title 86-char token (75-octet folding exercise) EVENT far 2026-09-01 08:00 +60 out-of-window (exclusion exercise) RRULE standup 2026-06-01 WEEKLY/2 x6 -> native RRULE passthrough RRULE bday 2024-02-29 YEARLY/1 x50 -> intersects window via last-occurrence (2073) window 2026-06-01..2026-07-31 => events=2 rules=2 => 4 VEVENTs. Rows: 1 export-ok exit 0 + VIZSLA-ICS-VERDICT events=2 rules=2 2 vcalendar-frame BEGIN:VCALENDAR + VERSION:2.0 + PRODID + END:VCALENDAR 3 crlf-strict every LF preceded by CR (RFC5545 line ends), >=10 lines 4 vevent-count exactly 4 BEGIN:VEVENT 5 dtstart-dtend launch DTSTART:20260620T100000 + DTEND:20260620T113000 6 uid-stable UID:launch-20260620@nishi.vizsla 7 rrule-weekly RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=6 8 rrule-yearly RRULE:FREQ=YEARLY;INTERVAL=1;COUNT=50 9 summary-escaping SUMMARY:pizza\,night\;launch (backslash-escaped , and ;) 10 fold-75 no physical line >75 octets + a CRLF+space continuation + folded=1 11 window-exclusion UID:far- ABSENT (out-of-window event not exported) 12 export-determinism two exports byte-identical (no clocks in the artifact) 13 loud-fail-bad-date export from=2026-13-99 => exit 1 [negative control] 14 loud-fail-unwritable export into a nonexistent dir => exit 1 [negative control] Evidence: VIZSLA-ICS-GATE -> stdout + knowledge/status/vizsla_gate.log; exit 0 iff 14/14. spec: knowledge/research/2026-06-22-vizsla-sclass-roadmap.md license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_vizsla_ics_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 ig_p sys_write ig_slen ig_ensure sys_openat_rd sys_close ig_p ↻ ig_runv sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 ig_args sys_mmap ↻ sys_mmap ↻ ig_cat ig_catn sys_mmap ↻ sys_now_us sys_mmap ↻ sys_clock_gettime_mono ig_write sys_openat_wr ↻ sys_write ↻ ig_slen ↻ sys_close ↻ ig_runv ↻ ig_args ↻ ig_has sys_mmap ↻ ig_readall sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻

structs

none

consts

none

functions

32func ig_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
33func ig_p(s: *u8) -> i64 { sys_write(1, s, ig_slen(s)); return 0 }
35func ig_cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
41func ig_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
54func ig_write(path: *u8, content: *u8) -> i64
62func ig_readall(path: *u8, szout: *i64) -> *u8
79func ig_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
109func ig_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapig_readallig_slen
128func ig_count(path: *u8, needle: *u8) -> i64
148func ig_crlf_lines(path: *u8) -> i64
167func ig_maxline(path: *u8) -> i64
189func ig_fileeq(p1: *u8, p2: *u8) -> i64
204func ig_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: ig_p
211func ig_args(a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8) -> *i64
called by 2: ig_ensuremain calls 1: sys_mmap
222func ig_ensure(elf: *u8, organ: *u8) -> i64
230func main(argc: i64, argv: *i64) -> i64