nx_authorgen.nx
buildroot/runtime/nx_authorgen.nx
about
nx_authorgen.nx -- ★THE AUTHORING FRONT-END (operator 2026-07-13, ref orcaclient.com "Describe a Mod, Get It
Built"): natural-language request -> a structured content descriptor -> the generative engine BUILDS it -> VALIDATE.
The Orca pattern on the sovereign substrate: describe a creature in words, get it built and placed in the world.
v0 = a RULE-BASED parser (data-driven keyword->gene rules, case-insensitive substring match) -- honest as a v0;
the trained-LLM front-end (our own no-float Qwen) is the named upgrade. ★ANTI-HALLUCINATION (the real
differentiator vs "the AI writes the code and hopes"): report which requested features were BUILT and which CANNOT
be, and REFUSE (build nothing) when no creature is recognized -- no fake builds. (Named nx_authorgen to avoid the
existing nx_intent.nx = Captain Moroni intent-declaration security primitive; different concern entirely.)
license_tier: ORIGINAL
dependencies 3 imports · 3 importers
imports: nx_syscalls.nxnx_genome.nxnx_worldpipe.nx
imported by: nx_authorgame_gate.nxnx_authorgen_gate.nxnx_authorworld_gate.nx
structs
| none |
consts
| 13 | const K_MAGIC_2500: i64 = 2500 |
| 14 | const K_MAGIC_12345: i64 = 12345 |
functions
| 27 | func ag_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 28 | func ag_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c } called by 1: ag_has |
| 30 | func ag_has(hay: *u8, n: i64, needle: *u8) -> i64 |
| 44 | func ag_parse(text: *u8) -> i64 called by 3: author_gamemainmain calls 11: gen_defaultsag_slenag_hasgen_set_earlengen_set_armpairsgen_set_horns+5 |
| 139 | func ag_build() -> i64 |
| 143 | func ag_plan() -> i64 { return AG_PLAN } called by 1: main |
| 144 | func ag_kind() -> i64 { return AG_KIND } // 0 none/refused, 1 creature, 2 world, 3 game |
| 145 | func ag_nfeat() -> i64 { return AG_NFEAT } |
| 146 | func ag_unmet() -> i64 { return AG_UNMET } called by 1: main |
| 147 | func ag_game_gw() -> i64 { return AG_GW } called by 1: author_game |
| 148 | func ag_game_gh() -> i64 { return AG_GH } called by 1: author_game |
| 149 | func ag_game_ng() -> i64 { return AG_NG } called by 1: author_game |
| 150 | func ag_game_nh() -> i64 { return AG_NH } called by 1: author_game |
| 151 | func ag_game_seed() -> i64 { return AG_SEED } called by 1: author_game |