code wiki / (root) / nx_authorgen.nx

nx_authorgen.nx

buildroot/runtime/nx_authorgen.nx

9596 B151 linesdepth 4pulls 7 transitivereach 3 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_genome.nx nx_worldpipe.nx nx_authorgen.nx nx_authorgame_gate.nx nx_authorgen_gate.nx nx_authorworld_gate.nx

imports: nx_syscalls.nxnx_genome.nxnx_worldpipe.nx

imported by: nx_authorgame_gate.nxnx_authorgen_gate.nxnx_authorworld_gate.nx

structs

none

consts

13const K_MAGIC_2500: i64 = 2500
14const K_MAGIC_12345: i64 = 12345

functions

27func ag_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: ag_hasag_parse
28func ag_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c }
called by 1: ag_has
30func ag_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: ag_parse calls 2: ag_slenag_lc
44func ag_parse(text: *u8) -> i64
139func ag_build() -> i64
called by 1: main calls 1: genome_build
143func ag_plan() -> i64 { return AG_PLAN }
called by 1: main
144func ag_kind() -> i64 { return AG_KIND } // 0 none/refused, 1 creature, 2 world, 3 game
called by 3: author_gamemainmain
145func ag_nfeat() -> i64 { return AG_NFEAT }
146func ag_unmet() -> i64 { return AG_UNMET }
called by 1: main
147func ag_game_gw() -> i64 { return AG_GW }
called by 1: author_game
148func ag_game_gh() -> i64 { return AG_GH }
called by 1: author_game
149func ag_game_ng() -> i64 { return AG_NG }
called by 1: author_game
150func ag_game_nh() -> i64 { return AG_NH }
called by 1: author_game
151func ag_game_seed() -> i64 { return AG_SEED }
called by 1: author_game