code wiki / _hdl_build / nx_compare_cite_gate.nx
nx_compare_cite_gate.nx
buildroot/runtime/_hdl_build/nx_compare_cite_gate.nx
about
nx_compare_cite_gate.nx -- END-TO-END PROOF of nx_compare_cite: the ref row and its inline mark land
together under compare-and-swap, the pin is COMPUTED from the mirror, exactly one row is marked, a
re-run is a no-op, and every refusal leaves both files byte-identical (hash-compared, never size).
Runs the PROMOTED organ (/volume1/homes/elderwesto/nishihost/nx_compare_cite.elf) with cwd = a /tmp
fixture tree that mirrors the estate's shape (buildroot/knowledge/compare/<dom>.refs|.matrix and
knowledge/fetched/<mirror>), so production data is unreachable by construction. The organ composes
nx_atomic_publish by absolute path, so that promoted twin is a gv_need precondition, not an assumption.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_sha256.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_tool_run.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
| 16 | const CG_FIX: *u8 = "/tmp/nx_compare_cite_gate" |
| 17 | const CG_ELF: *u8 = "/volume1/homes/elderwesto/nishihost/nx_compare_cite.elf" |
| 18 | const CG_PUB: *u8 = "/volume1/homes/elderwesto/nishihost/nx_atomic_publish.elf" |
| 19 | const CG_REFS: *u8 = "/tmp/nx_compare_cite_gate/buildroot/knowledge/compare/fx.refs" |
| 20 | const CG_MATRIX: *u8 = "/tmp/nx_compare_cite_gate/buildroot/knowledge/compare/fx.matrix" |
| 21 | const CG_MIRROR: *u8 = "/tmp/nx_compare_cite_gate/knowledge/fetched/fx_mirror.html" |
| 22 | const CG_MIRROR_REL: *u8 = "knowledge/fetched/fx_mirror.html" |
| 23 | const CG_SPEC: *u8 = "/tmp/nx_compare_cite_gate/spec.txt" |
| 24 | const CG_SPEC_ARG: *u8 = "@/tmp/nx_compare_cite_gate/spec.txt" |
| 25 | const CG_OUTCAP: i64 = 65536 |
| 26 | const CG_PATHCAP: i64 = 512 |
| 27 | const CG_HEX: i64 = 64 |
| 28 | const CG_ARGV: i64 = 12 |
functions
| 30 | func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 33 | func cg_hash(path: *u8, hex: *u8) -> i64 |
| 47 | func cg_cite(dom: *u8, key: *u8, label: *u8, cite: *u8, url: *u8, mirror: *u8, cls: *u8, grounds: *u8, out: *u8, outn: *i64) -> i64 |
| 62 | func main() -> i64 |