nx_artlicense_gate.nx
buildroot/runtime/nx_artlicense_gate.nx
about
nx_artlicense_gate.nx -- THE GATE FOR THE LICENSE CHAIN AND ROYALTY LEDGER (nx_artlicense), 2026-08-24.
SUBJECT: the nx_artlicense ELF forked for real; its exit code IS the contract (0 SHIP-OK / 3 REVIEW / 4 REFUSE)
and every REFUSE must NAME its conjunct. Fixture chain rows in /tmp/nx_artlicense_gate/chain.conf cover one
row per refusal reason plus the positive control; the ledger is unlinked at SETUP so idempotency is measured
against a state this run established. A guard that refuses everything passes every deny-test, so the ALLOW
case (ok / DE-territory) is load-bearing, not decoration.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.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
| 13 | const AG_SUBJECT_DEFAULT: *u8 = "nx_artlicense.elf" |
| 14 | const AG_DIR: *u8 = "/tmp/nx_artlicense_gate" |
| 15 | const AG_CONF: *u8 = "/tmp/nx_artlicense_gate/chain.conf" |
| 16 | const AG_LEDGER: *u8 = "/tmp/nx_artlicense_gate/royalty.tsv" |
| 17 | const AG_MODE_DIR: i64 = 493 |
| 18 | const AG_MODE_0644: i64 = 420 |
| 19 | const AG_CAPTURE_CAP: i64 = 65536 |
| 20 | const AG_ARGV_SLOTS: i64 = 10 |
| 21 | const AG_SLOT: i64 = 8 |
| 22 | const AG_EXIT_OK: i64 = 0 |
| 23 | const AG_EXIT_REVIEW: i64 = 3 |
| 24 | const AG_EXIT_REFUSE: i64 = 4 |
| 25 | const AG_NOW_INSIDE: *u8 = "1600" |
functions
| 27 | func ag_write_text(path: *u8, s: *u8) -> i64 |
| 37 | func ag_exists(path: *u8) -> i64 |
| 44 | func ag_run(subject: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8, a6: *u8, out: *u8, outlen: *i64) -> i64 |
| 57 | func main(argc: i64, argv: *i64) -> i64 |