code wiki / _hdl_build / nx_ws_manifest_emit_gate.nx
nx_ws_manifest_emit_gate.nx
buildroot/runtime/_hdl_build/nx_ws_manifest_emit_gate.nx
about
nx_ws_manifest_emit_gate.nx -- HERMETIC gate for the WMS durability emitter. Builds a private
temp dir of fake project-*.md (+ decoy non-project files), a curated stub manifest, then drives
wme_emit and asserts the manifest auto-index is COMPLETE and CORRECT. The load-bearing test is
the LOSS-DETECTOR negative control (T5/T6): after a NEW workstream appears on disk, wme_is_stale
MUST flag it (1), and re-emitting MUST clear it (0) -- that is "never lose a workstream" proven
mechanically, not asserted. Sovereign: imports nx_syscalls + the lib only. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_ws_index_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 G_DIR: *u8 = "/tmp/nx_wme_gate" |
| 11 | const G_MAN: *u8 = "/tmp/nx_wme_gate/manifest.md" |
functions
| 13 | func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func gn(v: i64) -> i64 |
| 23 | func gstrlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: gwrite |
| 26 | func gwrite(fname: *u8, content: *u8) -> i64 |
| 44 | func gman_has(needle: *u8) -> i64 |
| 52 | func main(argc: i64, argv: *i64) -> i64 |