code wiki / _hdl_build / nx_pub_submit.nx

nx_pub_submit.nx

buildroot/runtime/_hdl_build/nx_pub_submit.nx

2023 B41 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_submit.nx -- THE NISHI PUBLISHER intake CLI (the law-compliant front door). Operator law [[project-nishi-publisher-role-2026-06-20]]: NO workstream pushes to nishifamily.com directly; every publish flows through pub_submit -> the durable, concurrency-safe queue. nx_publisher.nx exposes pub_submit() as a FUNCTION but there was no CLI; this is the thin, reusable driver so any rung (gallery UI, login, thumbnails, ...) submits a build artifact through the one front door. usage: nx_pub_submit <src> <dest> <site> <requester> <policy> src = local artifact path (the verified build output) dest = ABSOLUTE NAS path of the live target (e.g. /volume1/ai/galx/nx_gallery_serve.elf) site = logical site (e.g. nishifamily) requester= the submitting workstream (audit trail) policy = free-form policy tag (e.g. binary-galx-serve) Returns 0 on durable submit; the publisher SHIPS (nx_pub_ship) + the owning supervisor PROMOTES. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_publisher.nx nx_syscalls.nx nx_pub_submit.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 sub_puts sys_write sys_exit pub_init pub_submit pub_init ↻ 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_update sha256_compress_ni_blocks blk_set_byte

structs

none

consts

none

functions

19func sub_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return n }
called by 1: main calls 1: sys_write
21func main(argc: i64, argv: *i64) -> i64