code wiki / _hdl_build / nx_pub_submit.nx
nx_pub_submit.nx
buildroot/runtime/_hdl_build/nx_pub_submit.nx
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
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
structs
| none |
consts
| none |
functions
| 19 | func 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 } |
| 21 | func main(argc: i64, argv: *i64) -> i64 |