nx_site_publish_gate.nx
buildroot/runtime/nx_site_publish_gate.nx
about
nx_site_publish_gate.nx -- gates artifact-publish placement semantics on a THROWAWAY CWD (the docroot
is CWD-relative sites/): fresh publish lands byte-identical; republish preserves .prev AND lands v2;
traversal ('..', absolute) DENIED with NOTHING written; secret-needle relpath DENIED via the IO layer;
absent source honest ABSENT. Runner: mkdir a scratch dir, cd into it, run. Exit 0 only on all-PASS.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_site_publish_lib.nxnx_seg_store.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
| 9 | const SG_CHECKS: i64 = 7 |
| 10 | const SG_AV: i64 = 64 // synthetic argv cells |
| 11 | const SG_RB: i64 = 4096 // read-back buffer |
functions
| 13 | func sg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 18 | func sg_run(src: *u8, site: *u8, rel: *u8) -> i64 |
| 27 | func sg_eq(path: *u8, expect: *u8) -> i64 |
| 34 | func sg_absent(path: *u8) -> i64 |
| 40 | func main() -> i64 |