code wiki / _hdl_build / nx_hub_publish_bin.nx

nx_hub_publish_bin.nx

buildroot/runtime/_hdl_build/nx_hub_publish_bin.nx

2427 B38 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic hub
docsdependenciesstructsconstsfunctions

about

nx_hub_publish_bin.nx -- submit the two HUB BINARIES to the publisher (policy=outward, operator-approval gated; NO direct nx_aw_send). Separate from nx_hub_publish (content) so re-running never duplicates the content rows. The publisher STAGES (verify landed-sha, ledger) on approval; the live atomic-promote + daemon restart (sites.elf selfswap via the F-class runbook) remains the operator/hostctl step. - nx_hub_gw.elf -> /volume1/ai/hub/nx_hub_gw.elf.new (new gateway, realm=nishi_site_admin) - sites_daemon_v2.elf-> /volume1/homes/elderwesto/nishihost/sites.elf.new (VERIFIED live path; carries /hub route) Sovereign: nx_syscalls + nx_publisher. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_publisher.nx nx_hub_publish_bin.nx

imports: nx_syscalls.nxnx_publisher.nx

imported by: nobody (leaf or entry point)

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

main pp sys_write sub pub_submit pub_init 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 sha256_update sha256_final sys_munmap pub_hexd pub_build_rec fa_cat fa_appendz fa_append sys_mmap ↻ sys_openat_append sys_flock fa_write_all sys_close ↻ fa_len pub_queue_default pp ↻ pn sys_write ↻ sys_mmap ↻ pn ↻ sys_exit

structs

none

consts

none

functions

11func pp(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 2: submain calls 1: sys_write
12func pn(v: i64) -> i64
called by 2: submain calls 2: sys_writesys_mmap
22func sub(src: *u8, dest: *u8, label: *u8) -> i64
called by 1: main calls 3: pub_submitpppn
29func main(argc: i64, argv: *i64) -> i64
calls 4: ppsubpnsys_exit