code wiki / _hdl_build / nx_ims_batch2_publish.nx
nx_ims_batch2_publish.nx
buildroot/runtime/_hdl_build/nx_ims_batch2_publish.nx
about
nx_ims_batch2_publish.nx -- land batch #2 LIVE through the GUARDED + VERSIONED publish path
(vpub): first snapshot a content-addressed rollback version, then the A3 fail-closed guard must
ALLOW before the NAS push runs. ADDITIVE. Publishes, in order: the re-emitted START hub (so its
rendered tree's forward link to the new SUBSTRATE child is LIVE -> reachability=100), the re-emitted
PRODUCTS hub (its prev/next + the product children's chain), then the new SUBSTRATE hub and the 6 new
pages. The corpus set = EVERY slug any of these pages links to (all 20 wiki slugs); a missing slug =>
the guard rejects with PG_REJECT_DEAD_LINK (fail-closed), which is the safety property we want.
REUSE (no publish/version/push substrate reinvented): nx_wiki_versioned_publish vpub.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_wiki_versioned_publish.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
| 25 | const PB_EPOCH: i64 = 1781870000 |
functions
| 14 | func p_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func p_num(v: i64) -> i64 |
| 27 | func pb_publish(slug: *u8, path: *u8, cs_ptr: *i64, cs_len: *i64, ncorpus: i64) -> i64 |
| 41 | func main() -> i64 |