nx_docpub_pulse.nx
buildroot/runtime/nx_docpub_pulse.nx
about
nx_docpub_pulse.nx -- R3 autonomy CORE: the CONTENT-CHANGE GATE for "publish docs as we work". The memory
flagged version-spam (every pulse re-stages even with no real change) as THE blocker to arming an autonomous
re-publish loop. This organ computes a deterministic content fingerprint over the generated doc SITE and
decides STAGE (content changed / first run) vs SKIP (unchanged) -- so an autonomous pulse only re-stages real
changes. The actual generate (nx_docpub_site) + stage (nx_docpub_publish) run only on a STAGE decision.
Self-contained (only nx_syscalls; poly rolling hash, no crypto import). Gated with version-spam teeth.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.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
| 10 | const K_MAGIC_1048576: i64 = 1048576 |
| 11 | const K_MAGIC_1469598103: i64 = 1469598103 |
functions
| 13 | func pls_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 18 | func pls_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func pls_hash_file(path: *u8, h: i64) -> i64 |
| 33 | func pls_atoi(buf: *u8, n: i64) -> i64 called by 1: pls_read_fp |
| 38 | func pls_read_fp(path: *u8) -> i64 |
| 45 | func pls_write_fp(path: *u8, v: i64) -> i64 |
| 53 | func pls_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd >= 0 { sys_close(fd) } return 0 } |
| 54 | func pls_wr(path: *u8, content: *u8) -> i64 |
| 60 | func pls_decide(fp: *u8, h: i64) -> i64 |
| 65 | func pls_decide_test(fp: *u8, a: *u8, b: *u8) -> i64 |
| 70 | func pls_decide_site(fp: *u8) -> i64 |
| 82 | func main() -> i64 |