code wiki / _hdl_build / nx_pub_reader_handoff.nx
nx_pub_reader_handoff.nx
buildroot/runtime/_hdl_build/nx_pub_reader_handoff.nx
about
nx_pub_reader_handoff.nx -- push the ZERO-JS reader + library shelf updates to the Nishi Publisher (operator
2026-06-21: "push the updates to the publisher, don't directly do"). The reader workstream REQUESTS; the
publisher SHIPS (no direct push -- the sites.elf-outage law). Mirrors nx_pub_library_handoff exactly: import the
real publisher, pub_submit each artifact to an ISOLATED reader queue, then run the publisher's full pipeline
(serialize -> idempotent sha-skip -> stage -> VERIFY-sha -> ATOMIC-promote -> ledger) to a LOCAL liveroot.
Artifacts = the new sovereign zero-JS surfaces: the library shelf + a representative reader page.
The OUTWARD transport liveroot -> nishifamily.com is OPERATOR-GATED (publisher R6 policy=outward + R8 transport)
and needs the REAL book content (NAS) -- NOT run in-sandbox. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
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
structs
| none |
consts
| 12 | const K_MAGIC_1024: i64 = 1024 |
| 13 | const K_MAGIC_65536: i64 = 65536 |
functions
| 15 | func rh_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 } |
| 20 | func rh_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 21 | func rh_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 22 | func rh_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){d[o+i]=s[i];i=i+1} return o+i } |
| 24 | func rh_cover(q: *u8, slug: *u8, ext: *u8) -> i64 |
| 32 | func rh_pub_slug(q: *u8, slug: *u8) -> i64 |
| 45 | func main() -> i64 |