code wiki / _hdl_build / nx_pub_plane.nx
nx_pub_plane.nx
buildroot/runtime/_hdl_build/nx_pub_plane.nx
about
nx_pub_plane.nx -- THE PUBLISHING PLANE driver: one command, every site, all discovery artifacts
DERIVED from the per-site registry. The organ the operator asked for when they said publishing is
"random and arbitrary" and that they want to "focus on work, not on where something was put".
nx_pub_plane list [conf] the configured sites (proves the site table parses)
nx_pub_plane emit <site> [conf] write <docroot>/{sitemap.xml,robots.txt,llms.txt}
nx_pub_plane emitall [conf] every configured site, one pass
nx_pub_plane adopt <site> [conf] bring UNREGISTERED docroot entries into the registry
(idempotent; the migration step that must run BEFORE
the gateway starts refusing, or it refuses live pages)
nx_pub_plane check <site> <relpath> [conf] THE GATEWAY: exit 0 publishable, 3 REFUSED
Proof lives in the sibling verifier nx_pub_plane_gate.nx (the /api/gate_run route executes
VERIFIERS ONLY -- a name ending in gate/test/kat -- which is what keeps that route never-brick).
Default site table: knowledge/pub_sites.conf (DATA -- adding a site is a row, never a recompile).
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_pub_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
| 20 | const PP_CONF: i64 = 65536 |
| 21 | const PP_SPANS: i64 = 128 |
| 22 | const PP_PATHCAP: i64 = 1024 |
| 23 | const PP_NAMECAP: i64 = 256 |
| 24 | const PP_SPAN: i64 = 16 |
| 25 | const PP_ARG_A: i64 = 2 |
| 26 | const PP_ARG_B: i64 = 3 |
| 27 | const PP_ARG_C: i64 = 4 |
| 28 | const PP_EXIT_USAGE: i64 = 2 |
| 29 | const PP_EXIT_REFUSED: i64 = 3 |
| 30 | const PP_EXIT_EMIT: i64 = 1 |
| 31 | const PP_EXIT_NOSITE: i64 = 4 |
| 32 | const PP_HASH: i64 = 35 |
| 33 | const PP_OUTCAP: i64 = 1048576 |
functions
| 35 | func pp_puts(s: *u8) -> i64 { return pl_puts(s) } |
| 36 | func pp_werr(s: *u8) -> i64 { return pl_werr(s) } |
| 37 | func pp_num(v: i64) -> i64 |
| 45 | func pp_span_puts(q: *u8, s: i64, e: i64) -> i64 |
| 54 | func pp_emit_site(conf: *u8, spans: *i64, site: *u8) -> i64 |
| 112 | func pp_walk(confpath: *u8, mode: i64) -> i64 |
| 173 | func pp_board(confpath: *u8, outpath: *u8) -> i64 |
| 272 | func main(argc: i64, argv: *i64) -> i64 |