code wiki / _hdl_build / nx_pub_vroom_ship.nx

nx_pub_vroom_ship.nx

buildroot/runtime/_hdl_build/nx_pub_vroom_ship.nx

4687 B75 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_vroom_ship.nx -- SHIP the video room through the Nishi Publisher's GOVERNED OUTWARD lane (operator 2026-06-22: "ship this stuff and get the nishi publisher you are doing"). Unlike the internal handoff (nx_pub_vroom_handoff), this runs the R6-governed path: submit with policy=OUTWARD (held fail-closed) -> record the OPERATOR APPROVAL of the exact artifact sha (the operator-gating made mechanical -- "ship this stuff" IS the approval) -> pub_run_governed SHIPS the approved bytes (sha-verified -> atomic-promote -> ledger) to the OUTWARD liveroot. HONEST SCOPE: this completes the publisher's governed outward publish to the liveroot. The final NETWORK TRANSPORT (liveroot -> live NAS 192.168.8.227 -> nishifamily.com/video) rides the team's SSH and needs /tmp/nxpw; if that credential is absent this session, the bytes are governed-approved + staged, and nx_vroom_deploy ships them the instant the credential is present. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_publisher.nx nx_syscalls.nx nx_pub_vroom_ship.nx

imports: nx_publisher.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sp sys_write sx sys_openat_rd sys_close sys_exit pub_init sys_mkdir pub_submit_to sys_mmap pub_sha_file sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word sha256_final blk_set_byte ↻ sha256_compress ↻ sys_munmap pub_hexd pub_build_rec fa_cat fa_appendz fa_append sys_mmap ↻

structs

none

consts

none

functions

15func sp(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 as u8 { n=n+1 } sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
16func spn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let d: *u8=sys_mmap(24); var k: i64=0; while m>0 { d[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } var i: i64=k-1; while i>=0 { let o: *u8=sys_mmap(1); o[0]=d[i]; sys_write(1,o,1); i=i-1 } return 0 }
called by 1: main calls 2: sys_writesys_mmap
17func sx(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
19func main() -> i64