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

7404 B115 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic ws
docsdependenciesstructsconstsfunctions

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 3 imports · 0 importers

nx_syscalls.nx nx_ws_index_lib.nx nx_gate_verdict.nx nx_ws_manifest_emit_gate.nx

imports: nx_syscalls.nxnx_ws_index_lib.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

11const G_DIR: *u8 = "/tmp/nx_wme_gate"
12const G_MAN: *u8 = "/tmp/nx_wme_gate/manifest.md"

functions

14func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
15func gn(v: i64) -> i64
24func gstrlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
27func gwrite(fname: *u8, content: *u8) -> i64
45func gman_has(needle: *u8) -> i64
53func main(argc: i64, argv: *i64) -> i64