code wiki / _hdl_build / nx_pub_library_handoff.nx

nx_pub_library_handoff.nx

buildroot/runtime/_hdl_build/nx_pub_library_handoff.nx

3557 B51 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_library_handoff.nx -- push the LIBRARY consumed-sources catalog to the Nishi Publisher (operator 2026-06-20: "push to the publisher"). The library workstream REQUESTS; the publisher SHIPS (no direct push -- the sites.elf-outage law). Mirrors nx_pub_teacher_handoff: imports the real publisher ONLY (small object), submits web_assets/library-sources.html to an isolated library queue, and runs the publisher's full pipeline (serialize -> idempotent sha-skip -> stage -> VERIFY-sha -> ATOMIC-promote -> ledger) to a LOCAL liveroot. The OUTWARD transport liveroot -> nishifamily.com/library is OPERATOR-GATED (publisher R6 policy=outward + the R8 transport rung) -- not run in-sandbox (no egress). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_publisher.nx nx_itoa_lib.nx nx_syscalls.nx nx_pub_library_handoff.nx

imports: nx_publisher.nxnx_itoa_lib.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 lh_puts sys_write lh_exists sys_openat_rd sys_close sys_exit pub_init sys_mkdir pub_submit_to sys_mmap nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ pub_sha_file sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_seed_allocated sha256_k

structs

none

consts

none

functions

12func lh_puts(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
17func lh_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
18func lh_exists(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
20func main() -> i64