nx_pushback_publish_gate.nx
buildroot/runtime/nx_pushback_publish_gate.nx
about
nx_pushback_publish_gate.nx -- THE COMMUNITY PUSH-BACK GATE (/compare/modding MD23, 2026-09-06). A three-member house package
(an OBJ, a PNG under a subdirectory, a VMD) is written under /tmp/nx_pushback_publish_gate/pkg/ at runtime with one cc0 row
on a SCRATCH journal, a scratch community table (two dist targets, one api-desc target, one target demanding YES) and a
referee grade file. The rung's done-rule is the spine: one house character publishes to two communities with IDENTICAL
manifests (the written copies hash equal to each other and to the source), the archive is a real 7z the estate's own reader
counts, the content id is the sha256 of the written archive, the index row and the publish row carry the licence and the
grade; and every refusal the rung names is REFUSED BY NAME: a rip whose journal row carries a licence class the rights table
lacks (PROVENANCE UNKNOWN-LICENCE, cleared by a superseding journal row without re-emitting), a non-redistributable
package licence below the community floor, a tampered member and a forged head (MANIFEST-REFUSED), a missing or
out-of-range grade (UNGRADED), an unknown community, an unreadable table or manifest. The command is the second witness
through the ladder on the PRODUCTION community table (usage, the default grade path, the communities verb).
usage: nx_pushback_publish_gate (no args)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_pushback_lib.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 19 | const PG_DIR: *u8 = "/tmp/nx_pushback_publish_gate" |
| 20 | const PG_PKG: *u8 = "/tmp/nx_pushback_publish_gate/pkg" |
| 21 | const PG_TEX: *u8 = "/tmp/nx_pushback_publish_gate/pkg/textures" |
| 22 | const PG_A_REL: *u8 = "a.obj" |
| 23 | const PG_B_REL: *u8 = "textures/b.png" |
| 24 | const PG_C_REL: *u8 = "c.vmd" |
| 25 | const PG_A: *u8 = "/tmp/nx_pushback_publish_gate/pkg/a.obj" |
| 26 | const PG_B: *u8 = "/tmp/nx_pushback_publish_gate/pkg/textures/b.png" |
| 27 | const PG_C: *u8 = "/tmp/nx_pushback_publish_gate/pkg/c.vmd" |
| 28 | const PG_JRNL: *u8 = "/tmp/nx_pushback_publish_gate/assets.jrnl" |
| 29 | const PG_CONF: *u8 = "/tmp/nx_pushback_publish_gate/communities.conf" |
| 30 | const PG_CONF_ABSENT: *u8 = "/tmp/nx_pushback_publish_gate/absent.conf" |
| 31 | const PG_GRADE: *u8 = "/tmp/nx_pushback_publish_gate/referee.grade" |
| 32 | const PG_GRADE_BAD: *u8 = "/tmp/nx_pushback_publish_gate/bad.grade" |
| 33 | const PG_GRADE_ABSENT: *u8 = "/tmp/nx_pushback_publish_gate/absent.grade" |
| 34 | const PG_GRADE_IN_PKG: *u8 = "/tmp/nx_pushback_publish_gate/pkg/referee.grade" |
| 35 | const PG_OUT1: *u8 = "/tmp/nx_pushback_publish_gate/out1" |
| 36 | const PG_OUT2: *u8 = "/tmp/nx_pushback_publish_gate/out2" |
| 37 | const PG_OUT3: *u8 = "/tmp/nx_pushback_publish_gate/out3" |
| 38 | const PG_CLI_ARCHIVE: *u8 = "/tmp/nx_pushback_publish_gate/pkg/pushback/nishi-dist/house-cape-1.2.0.7z" |
| 39 | const PG_M1: *u8 = "/tmp/nx_pushback_publish_gate/one.nxmod" |
| 40 | const PG_M_NC: *u8 = "/tmp/nx_pushback_publish_gate/nc.nxmod" |
| 41 | const PG_M_RIP: *u8 = "/tmp/nx_pushback_publish_gate/rip.nxmod" |
| 42 | const PG_M_FORGED: *u8 = "/tmp/nx_pushback_publish_gate/forged.nxmod" |
| 43 | const PG_M_ABSENT: *u8 = "/tmp/nx_pushback_publish_gate/absent.nxmod" |
| 44 | const PG_ELF_LIVE: *u8 = "./nx_pushback_publish.elf" |
| 45 | const PG_ELF_STAGE: *u8 = "./nx_pushback_publish.sov.elf.new" |
| 46 | const PG_ELF_BUILD: *u8 = "buildroot/_build/nx_pushback_publish.sov.elf" |
| 47 | const PG_NAME: *u8 = "house-cape" |
| 48 | const PG_VER: *u8 = "1.2.0" |
| 49 | const PG_GAMES: *u8 = "skyrimse,palworld" |
| 50 | const PG_DEPS: *u8 = "nx_base@1.0" |
| 51 | const PG_LIC: *u8 = "cc0-1.0" |
| 52 | const PG_LIC_NC: *u8 = "cc-by-nc-4.0" |
| 53 | const PG_LIC_RIP: *u8 = "rip-licence-unknown-zz" |
| 54 | const PG_SRC_URL: *u8 = "https://example.invalid/house-cape" |
| 55 | const PG_RIP_URL: *u8 = "https://ripsite.invalid/dark-elf-blader" |
| 56 | const PG_ORIGIN: *u8 = "nx_pushback_publish_gate" |
| 57 | const PG_EPOCH: i64 = 1788713000 |
| 58 | const PG_EPOCH2: i64 = 1788713001 |
| 59 | const PG_PERMIL: i64 = 812 |
| 60 | const PG_CAP: i64 = 65536 |
| 61 | const PG_DIR_MODE: i64 = 493 |
| 62 | const PG_FILE_MODE: i64 = 420 |
| 63 | const PG_A_LEN: i64 = 40 |
| 64 | const PG_B_LEN: i64 = 40 |
| 65 | const PG_C_LEN: i64 = 30 |
| 66 | const PG_VMD_MAGIC_LEN: i64 = 25 |
| 67 | const PG_MEMBERS: i64 = 3 |
| 68 | const PG_ARCHIVE_MEMBERS: i64 = 4 |
| 69 | const PG_CONF_ROWS: i64 = 4 |
| 70 | const PG_ARCH_NAME: *u8 = "house-cape-1.2.0.7z" |
| 71 | const PG_MAN_NAME: *u8 = "house-cape-1.2.0.nxmod" |
| 72 | const PG_COMM_2: *u8 = "nishi-dist,nishi-swarm" |
| 73 | const PG_COMM_3: *u8 = "nishi-dist,nishi-swarm,nexus-desc" |
| 74 | const PG_COMM_DIST: *u8 = "nishi-dist" |
| 75 | const PG_COMM_STRICT: *u8 = "strict-only" |
| 76 | const PG_COMM_NOBODY: *u8 = "nobody" |
| 77 | const PG_CONF_TEXT: *u8 = "community|nishi-dist|dist|https://nishifamily.com/dist|1|scratch dist target\ncommunity|nishi-swarm|dist|magnet|1|scratch swarm target\ncommunity|nexus-desc|api-desc|https://api.nexusmods.com/v1|2|scratch descriptor target\ncommunity|strict-only|dist|magnet|2|demands an outright YES\n" |
| 78 | const PG_GRADE_TEXT: *u8 = "grade|812|cjc_panel|2026-09-06\n" |
| 79 | const PG_GRADE_BAD_TEXT: *u8 = "grade|1500|cjc_panel|2026-09-06\n" |
functions
| 81 | func pg_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 82 | func pg_write_file(path: *u8, b: *u8, n: i64) -> i64 |
| 90 | func pg_write_text(path: *u8, s: *u8) -> i64 { return pg_write_file(path, s, mm_len(s)) } |
| 91 | func pg_same_file(a: *u8, b: *u8) -> i64 |
| 103 | func pg_join(dir: *u8, name: *u8) -> *u8 { let o: *u8 = sys_mmap(PB_PATH_CAP); mm_join_path(dir, name, o); return o } |
| 104 | func pg_join3(dir: *u8, sub: *u8, name: *u8) -> *u8 { return pg_join(pg_join(dir, sub), name) } |
| 105 | func pg_write_a() -> i64 { return pg_write_file(PG_A, "v 0 0 0\nv 1 0 0\nv 0 1 0\nf 1 2 3\n# cape\n" as *u8, PG_A_LEN) } |
| 106 | func pg_write_b(flip: i64) -> i64 |
| 114 | func pg_write_c() -> i64 |
| 121 | func pg_emit(out: *u8, lic: *u8, head65: *u8, info: *i64) -> i64 |
| 126 | func pg_contains(path: *u8, needle: *u8) -> i64 |
| 133 | func main(argc: i64, argv: *i64) -> i64 |